Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1452933pxb; Thu, 4 Nov 2021 02:33:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJywkud9ImIKR2D+JPwAQ2swIdpPgBGEaXr5BzffrddnWbFKJGKytjbj/tFK8s2zB/37QDm1 X-Received: by 2002:a05:6e02:b42:: with SMTP id f2mr16419479ilu.93.1636018381206; Thu, 04 Nov 2021 02:33:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1636018381; cv=none; d=google.com; s=arc-20160816; b=r+Az8trrANF8yXSe094lTv9MZu6zNsG33ETzpYmtWeWT9QAtna3UZnjZW1ZFdV1cih vR1u6/Lmfklk3iVwAlVP/j2mB2rRZberUwkOBT6zSFMcuWYfZakeMWjrV3Kvi+8HKo85 FAHGpHMY8M+BuCWpCPjalRYU1S2K0r71G7gCfjDRI7C+TYoPSVzq0c9+ctg4uSRaB+gw mxEh5AKSab7M15q6Wj3VDTLE388FTeAjL2zoNulzbVwB8KhO/zfolYC14W6yV7SeY6yS iwXPCKGOCJCgFqDE4DQHuqCsFrehgd4CcE5rnWAjy1RHixugY5wuLkSXW1zRvW5LCMPA DkWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=qYCY7tttcemIZgcojAlZUXbTUNVNVtf/FEcSNSxidEo=; b=wdHpJ8O7fiRuf8vUro4TY1uM2nrZ8JJnuzCPya2lV0YjhL/njYpUQUzImXsT3OUMxX oMxybdBTl8cJdkLfPZ8mZzoX9YSkbhTx8G7nsffok9PNeMwGHqYLIe2VID+/h0Kg1SdV Ahetm52EmVAsnB9Tcsx/RkHBaT+OCEONs0cLVcWkMoPAQTFgrcN3nFm6FJrGq90k9ef6 j1xNpabbTxH/WmL7sFYbwWIkHXMA2/9FWpWLkBYg4hNjz2jj6OHK59V/v8oI+AVxlskr 8xSf1gATxkQbMMWJ5oGwzKfD0Ma1P6LnjRIyxXvbNinb+H3WZDCtXAEeytBZQWW8bN73 PHvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@stwcx.xyz header.s=fm3 header.b=ti54t+gB; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=enq4j17W; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k12si9312194jav.102.2021.11.04.02.32.47; Thu, 04 Nov 2021 02:33:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@stwcx.xyz header.s=fm3 header.b=ti54t+gB; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=enq4j17W; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231132AbhKDJc4 (ORCPT + 99 others); Thu, 4 Nov 2021 05:32:56 -0400 Received: from new2-smtp.messagingengine.com ([66.111.4.224]:40547 "EHLO new2-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230410AbhKDJcz (ORCPT ); Thu, 4 Nov 2021 05:32:55 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailnew.nyi.internal (Postfix) with ESMTP id 5A196580881; Thu, 4 Nov 2021 05:30:17 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Thu, 04 Nov 2021 05:30:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=stwcx.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=qYCY7tttcemIZgcojAlZUXbTUNV NVtf/FEcSNSxidEo=; b=ti54t+gBbZVWISv3Jrb2lUE9jcs840yKwzRgKPqto+i dyzTrPXpmInqIea+1dpmYei7g9abeESIBj/6UX/Dds5P7VbFKzTy4F6myN0iF7Eb 73y/eT7DRInhfL9iRduWzdHQEzXdjcfJKLpmSgW8VDy5jmI4FI3U4CQJ5N/Wrcct /D6aFyYHvy4QYirnpiFDvGawCWXuDZmvLDGroEMqrDWIEDlwYZQOd+hU3DhHoME0 qcp0W5pZoQrws7caYnAtfYHxPYBPwF25Ce6jgc5vGmx6q8MG9x6rL5I+8gxXzRIm W8dXEESC6+BdyYSgfM6gT+nDwJroBUWKKP/KKGyDwWA== 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=qYCY7t ttcemIZgcojAlZUXbTUNVNVtf/FEcSNSxidEo=; b=enq4j17WhFBFEgYNiXpZv4 byWi20QvDq2Tr3q1BH9RcodcPniXzwekDF/LHtZcREVXKr0WpnJ91wrS1vCsu1Ar 0jqVUZ9dmbzh36n5RVEJBXU6ZDrx2BASB4kSrZ//v9LQw+jzEfwdZYiOwpl3UM+r 2H71TTgYxaYr3QbBuhLeQKi0x47/EDCZ0mxT/SXd8IeTWPD6TbZWRXKuH9W1m7W7 yUoKXTRJuEZhR0sBjnE0miVKL3nxk9XfEHohKXMYE+zQ6Dr+KvTX5y6oquH8P08L DcLg5PLjqJuDr1Ia3g3St/tbtWutrP4A2dkT9mv4kM0AOHFnU7Lmv1szAVwPqiIw == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrtdeggddtudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfg hrlhcuvffnffculdefhedmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredttdej necuhfhrohhmpefrrghtrhhitghkucghihhllhhirghmshcuoehprghtrhhitghksehsth iftgigrdighiiiqeenucggtffrrghtthgvrhhnpeekvdehudevkefhuedvteethfeflefh vdehiefgudegvdfggfetffevkeetudegudenucffohhmrghinhepghhithhhuhgsrdgtoh hmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepphgr thhrihgtkhesshhtfigtgidrgiihii X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 4 Nov 2021 05:30:16 -0400 (EDT) Date: Thu, 4 Nov 2021 04:30:14 -0500 From: Patrick Williams To: Howard Chiu =?utf-8?B?KOmCseWGoOedvyk=?= Cc: Howard Chiu , "arnd@arndb.de" , "olof@lixom.net" , "robh+dt@kernel.org" , "joel@jms.id.au" , "andrew@aj.id.au" , "soc@kernel.org" , "linux-arm-kernel@lists.infradead.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-aspeed@lists.ozlabs.org" Subject: Re: [PATCH v1] ARM: dts: aspeed: Adding Facebook Bletchley BMC Message-ID: References: <20211103071417.388388-1-howard.chiu@quantatw.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="pNxo54Czgw/SMy95" Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --pNxo54Czgw/SMy95 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Nov 04, 2021 at 03:30:08AM +0000, Howard Chiu (=E9=82=B1=E5=86=A0= =E7=9D=BF) wrote: > > Is this board using 64MB or 128MB modules? Many of the newer systems > > have been > > starting to use 128MB. I just want to confirm this is correct. > 1Gb SPI flash, MX66L1G45GMI-08G 1Gb =3D 1024Mb / 8 =3D 128MB, right? Shouldn't we use the 128MB layout? > > > + sled0_ioexp: pca9539@76 { > > > + compatible =3D "nxp,pca9539"; > > > + reg =3D <0x76>; > > > + #address-cells =3D <1>; > > > + #size-cells =3D <0>; > > > + gpio-controller; > > > + #gpio-cells =3D <2>; > > > + > > > + gpio-line-names =3D > > > + > > "","SLED0_BMC_CCG5_INT","SLED0_INA230_ALERT","SLED0_P12V_STBY_ > > ALERT", > > > + > > "SLED0_SSD_ALERT","SLED0_MS_DETECT","SLED0_MD_REF_PWM","", > > > + > > "SLED0_MD_STBY_RESET","SLED0_MD_IOEXP_EN_FAULT","SLED0_MD_D > > IR","SLED0_MD_DECAY", > > > + > > "SLED0_MD_MODE1","SLED0_MD_MODE2","SLED0_MD_MODE3","SLED > > 0_AC_PWR_EN"; > >=20 > > In general, in OpenBMC, we have a preference for the GPIOs to not be > > schematic > > names but to be named based on their [software-oriented] function. Ple= ase > > take > > a look at: > >=20 > >=20 > > https://github.com/openbmc/docs/blob/master/designs/device-tree-gpio-na > > ming.md > >=20 > > Any function you see that isn't documented there we should try to get > > documented > > before fixing the GPIO name to match it. > >=20 > I intend to delete them for now if I have to document them first, because= =20 > most of them are platform-specific GPIO, not for general purpose and also= not > suitable to current OpenBMC. > For example, OpenBMC believes there is only one GPIO to be used to power = on=20 > the chassis, but Bletchley has six. > I define gpio-line-names for gpioset/geioget/phosphor-multi-gpio-monitor > usage, and they can be replaced with gpiochip number and offset instead. > The disadvantage is that they won't be human-friendly when TEs develop th= eir tool to test these GPIOs. > > > + gpio-line-names =3D > > > + "SLED0_EMBER_LED","SLED0_BLUE_LED","SLED0_RST_IOEXP","", Deleting them entirely sounds even less desirable. If these were just for humans, then having a schematic name is better than nothing. But when you suggest their usage to be "TEs develop their tool to test these GPIOs" that seems to indicate this becomes ABI and we want stable, documented names, to limit the churn on users. I don't believe the gpiochip/pin numbers are considered stable ABI. Our te= am has previously had to do an abstraction between 4.x and 5.x kernel because = of changes in that space. My initial preference would be that you leave them in as schematic names, f= or human purposes, until you start using them in code at which point they shou= ld be well-documented and using the style we've set out in the document above. Re: "OpenBMC believes there is only one GPIO to be used to power on the cha= ssis, but Bletchley has six."... This does not make it system-specific. Yosemite= -v2 has 4 independently managed systems, with their own power sequencing. There should be work going on by that team to expand the GPIO documentation to co= ver N sub-chassis as well; it just might be that you are ahead of them in documen= ting it. It should be trivial to expand the `power-chassis-control` and `power-chassis-good` documentation to support sub-chassis. I can do this f= or you if you need. Many of your GPIOs were related to LEDs which are also al= ready covered by this doc (except might need minor wording for sub-chassis as wel= l). Can you let me know which other GPIO functions you think you'll need that a= ren't already in that document and we can work to get them added? > > > +&i2c13 { > > > + multi-master; > > > + aspeed,hw-timeout-ms =3D <1000>; > > > + status =3D "okay"; > > > +}; > >=20 > > Was this intentional to have defined a multi-master bus with nothing on= it? > There is a OCP debug card which is a hot plugging device. > We only need to specify this bus with "multi-mater" property for IPMB sup= port. Got it. --=20 Patrick Williams --pNxo54Czgw/SMy95 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEBGD9ii4LE9cNbqJBqwNHzC0AwRkFAmGDqCQACgkQqwNHzC0A wRnlOA//RV+35oOn9wEW+jO6oZi0M5yL51mdYiahoSlrSbjn9M3rydZPeCHA2Nfo nn+TpAalJ6fNmAjwGdGyQCcorRGgKb4WRw1WW91lErBydFRTSIbL0lJ4dIIQsdjh VtRhivTCz1UDMsGYGy+rFc4f/NAIXq3fFDaY5ek58BBUZtHMHHpvaQhvEzg982kS iOSsQ79dInmoX/1m5PQDGt67Fx/lcuJCVmlVl5OFuD3UTmpeSckgbs/kT6S4jiiF Y/SUWHGOrx9rWwRsNdDgCFJLmWjwTFpopI8hwkw/PkP9w5Y3twv/Ulng4FG/wvuR eBLc0bYY69bPXfOWP6UVg3ChnJAiE1mNQNlUwNrbvCF/Rc3NtBM4hIOZ6zDLBc6g l54ITv6DLl07KARnYICr/eVCRvSV2znMHxju3c6Lcsql68T98h3+KGsMzX62dd7Q O+diXES9DbmR4yMxXN//LN+adaqiRVCo8ubSZ5dnK6bgqJJqd+repyl48XwQCoTU KES8EeT+s/rye5AG1o877GEt2yoVjdaETlYzZGZTBRO9tKJ1CVrVBs71J1JFaMP0 lCI3rDGGz0vzZjNzVMw+xUO/EH8ddOh9wGBCEzypRNAE5ikipidbms5s2BehMWU/ mPiI/oQk5RHl4q5dxeWi42QScTkXHq3fToJ7ZBoeJN9Oy5Xz4l4= =cy2B -----END PGP SIGNATURE----- --pNxo54Czgw/SMy95--