Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp1462968ybc; Tue, 19 Nov 2019 21:57:57 -0800 (PST) X-Google-Smtp-Source: APXvYqygZjBWvU6j4B40nud7cvxncaWI8J2u757ZEKCzonH6kn3i3TTSDqEUgTJNavTXkGvSJSF3 X-Received: by 2002:a17:906:d293:: with SMTP id ay19mr2773802ejb.146.1574229477455; Tue, 19 Nov 2019 21:57:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574229477; cv=none; d=google.com; s=arc-20160816; b=dGQ+c5JqHD0v3KCr4v646ECu5anwnn58PrSC8HqGJZ6CkWrKB3LF9w+Oq0ByDhtzol T+G2A4b0P2B80/jUQDK6VYvsdhX6JDo+EoqdiX02SNeEF1s8+/SI3RQRFY3Y7m9iS7q0 xGq8gAivcgi8rJS13Mkg6wHl6AhPdCXAVwCi5yS7t5feLd+Q0H+NUGa/9YMbOEeF0I+e r1kI5R6Jk7LIio8Bk/ulXyY//TYFNfsNagYN6qbs0JYs26svS1OFqlGv8ly5LsHuaqno 9uM1VIaAa6uKUpHNTBqAPZd0HLkCGccyeCfBQh9fNn4QR9AlKoRh8ynn/DOwZlIp/Wu3 GCZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:cc:to:from:date:references :in-reply-to:message-id:mime-version:user-agent:dkim-signature :dkim-signature; bh=f3+K46N0DWX5LuAKDC/fiNXYVVrmkSghYy+SQPmLsVo=; b=THokcCCtF9DgysiKU1wknFyxD3E3sIsk9fzRIL3aF9zE5nYkEjgefb0joWdhWjI8Po uUN97T+xhvAJgqeZFmdmtCMSGIcyIHnqrx88lNPALL1ZfE1a0r0MMbmnVu2bHG0RuidR ZevlSxvWj/eG+4NSZ/LZHwiDkI53BPZYFAPrh0xFFXjwM2GAqBeu+Mdct9zzUC5O9HCQ 6h/kbFw0PQjgHGOUB6idiU0Ns5Zre52xKkKmoWBOl+fH/c3pzTigtdYwGyRJAtI5A8xm /QaHnk3MRz3BZBgwR797HV2ru9aRIvY042pfl+7tgDgv7cap1caHDrpqVAcDEFlec5/B meBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@aj.id.au header.s=fm1 header.b=nrS5ftCQ; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=k0JWxE14; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x14si17725830edl.128.2019.11.19.21.57.22; Tue, 19 Nov 2019 21:57:57 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@aj.id.au header.s=fm1 header.b=nrS5ftCQ; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=k0JWxE14; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727067AbfKTFzZ (ORCPT + 99 others); Wed, 20 Nov 2019 00:55:25 -0500 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:55681 "EHLO out4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726014AbfKTFzZ (ORCPT ); Wed, 20 Nov 2019 00:55:25 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 463E321EBC; Wed, 20 Nov 2019 00:55:24 -0500 (EST) Received: from imap2 ([10.202.2.52]) by compute4.internal (MEProxy); Wed, 20 Nov 2019 00:55:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aj.id.au; h= mime-version:message-id:in-reply-to:references:date:from:to:cc :subject:content-type; s=fm1; bh=f3+K46N0DWX5LuAKDC/fiNXYVVrmkSg hYy+SQPmLsVo=; b=nrS5ftCQfJhb/0SIriK4G4/USapAcazY5+vRGPrXnyUajqo mr0cUrqurVBtgUBulgP/odWXDPhQU7PGQEoa319vP7IYQHHcuej3zbq3x/xaxL/J Abac7EzsOusr1YxoJSj44wgX7c26KRsuf5/mOCUs39a1FE05ma9dwCBN5jRzdUOg zC3IovVzEwZ5l87a67SjHfBRGW3K+8hoDZSYE/NM61EBPEUjvGPGAnTxA1FBlDjx 4Poi08XpAR/OCyWf6doXY5ERtZMulMOgFjmLBUMArwUsleUkca8efD5scGT+03Mq BcLGKKD4zsTULYqAja70jDfV+ZwegmAuqAqSnbw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=f3+K46 N0DWX5LuAKDC/fiNXYVVrmkSghYy+SQPmLsVo=; b=k0JWxE14P4oWIkMi8r0cec p9Ihj7W1MZ2ZBJ7l+gcvoPC4o2DR7sanbIj1fHNAUmD+Lnpj2Tjsi1/F2a/fj5Xj +4DgYuHeuJdw5HKV2R9zE70EBuAQ6/k3KEsKleTcFtoVKwwzbLJKPpdep++Ik+Mr LmhulH+vUEIbsPuGITgNBgqdU3WKSKtTuwVFYH5cASMiPoGZDXUkQ3V4b70a7Cvx NAC7okXuQfRIFTNzBGhwJNRZoQ6Q0N5dlMcvDA+JVXvXdo82Xz6vNH1LQslqHLHP ePnaU10QZ1pyiSDAgmVdhDeTTR2tLd7WFOYB3GE3rL6lJiYBcs0CkRA27kzlsE+w == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrudegledgkeelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvffutgesthdtredtreertdenucfhrhhomhepfdetnhgu rhgvficulfgvfhhfvghrhidfuceorghnughrvgifsegrjhdrihgurdgruheqnecurfgrrh grmhepmhgrihhlfhhrohhmpegrnhgurhgvfiesrghjrdhiugdrrghunecuvehluhhsthgv rhfuihiivgeptd X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 478B9E00A3; Wed, 20 Nov 2019 00:55:23 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.1.7-578-g826f590-fmstable-20191119v1 Mime-Version: 1.0 Message-Id: In-Reply-To: <20191118123707.GA5560@cnn> References: <20191118123707.GA5560@cnn> Date: Wed, 20 Nov 2019 16:26:47 +1030 From: "Andrew Jeffery" To: manikandan-e , "Joel Stanley" Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-aspeed@lists.ozlabs.org, manikandan.e@hcl.com Subject: Re: [PATCH] ARM: dts: aspeed: Adding Facebook Yosemite V2 BMC Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 18 Nov 2019, at 23:07, manikandan-e wrote: > The Yosemite V2 is a facebook multi-node server > platform that host four OCP server. The BMC > in the Yosemite V2 platorm based on AST2500 SoC. > > This patch adds linux device tree entry related to > Yosemite V2 specific devices connected to BMC SoC. > > Signed-off-by: manikandan-e > --- > .../boot/dts/aspeed-bmc-facebook-yosemitev2.dts | 170 +++++++++++++++++++++ > 1 file changed, 170 insertions(+) > create mode 100644 arch/arm/boot/dts/aspeed-bmc-facebook-yosemitev2.dts > > diff --git a/arch/arm/boot/dts/aspeed-bmc-facebook-yosemitev2.dts > b/arch/arm/boot/dts/aspeed-bmc-facebook-yosemitev2.dts > new file mode 100644 > index 0000000..46a285a > --- /dev/null > +++ b/arch/arm/boot/dts/aspeed-bmc-facebook-yosemitev2.dts > @@ -0,0 +1,170 @@ > +// SPDX-License-Identifier: GPL-2.0+ > +// Copyright (c) 2018 Facebook Inc. > +// Author: > +/dts-v1/; > + > +#include "aspeed-g5.dtsi" > +#include > + > +/ { > + model = "Facebook Yosemitev2 BMC"; > + compatible = "facebook,yosemitev2-bmc", "aspeed,ast2500"; > + aliases { > + serial0 = &uart1; > + serial4 = &uart5; > + }; > + chosen { > + stdout-path = &uart5; > + bootargs = "console=ttyS4,115200 earlyprintk"; > + }; > + > + memory@80000000 { > + reg = <0x80000000 0x20000000>; > + }; > + > + iio-hwmon { > + // VOLATAGE SENSOR > + compatible = "iio-hwmon"; > + io-channels = <&adc 0> , <&adc 1> , <&adc 2> , <&adc 3> , > + <&adc 4> , <&adc 5> , <&adc 6> , <&adc 7> , > + <&adc 8> , <&adc 9> , <&adc 10>, <&adc 11> , > + <&adc 12> , <&adc 13> , <&adc 14> , <&adc 15> ; > + }; > +}; > + > +&fmc { > + status = "okay"; > + flash@0 { > + status = "okay"; > + m25p,fast-read; > +#include "openbmc-flash-layout.dtsi" > + }; > +}; > + > +&spi1 { > + status = "okay"; > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_spi1_default>; > + flash@0 { > + status = "okay"; > + m25p,fast-read; > + label = "pnor"; > + }; > +}; > + > +&lpc_snoop { > + status = "okay"; > + snoop-ports = <0x80>; > +}; > + > +&lpc_ctrl { > + // Enable lpc clock > + status = "okay"; Something I'm intending to fix in the devicetrees using LPC is to hog the pins in the pinctrl node. You should consider doing the same here. > +}; > + > +&vuart { > + // VUART Host Console > + status = "okay"; > +}; > + > +&uart1 { > + // Host Console > + status = "okay"; > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_txd1_default > + &pinctrl_rxd1_default>; > +}; > + > +&uart2 { > + // SoL Host Console > + status = "okay"; Also needs pinctrl configuration. > +}; > + > +&uart3 { > + // SoL BMC Console > + status = "okay"; Again needs pinctrl. > +}; > + > +&uart5 { > + // BMC Console > + status = "okay"; > +}; > + > +&mac0 { > + status = "okay"; > + > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_rmii1_default>; > + use-ncsi; > +}; > + > +&adc { > + status = "okay"; Strongly suggest adding the pinctrl properties here to ensure exclusive access for the ADC pins. Otherwise it looks reasonable. Andrew