Return-Path: Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gmail.com (client-ip=2607:f8b0:4864:20::243; helo=mail-oi1-x243.google.com; envelope-from=geissonator@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=c1d3gMjB; dkim-atps=neutral Received: from mail-oi1-x243.google.com (mail-oi1-x243.google.com [IPv6:2607:f8b0:4864:20::243]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 48CYLl5ngfzDqTb for ; Thu, 6 Feb 2020 07:38:55 +1100 (AEDT) Received: by mail-oi1-x243.google.com with SMTP id j132so2169897oih.9 for ; Wed, 05 Feb 2020 12:38:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=4iUZKNfllzATQVgo8kbicVZNuJ0ZcxhNH41lqi3AQmQ=; b=c1d3gMjBa0uGWvPP4GtTpiqCrcQtRrhlZ7H1jTWESv43y31xI2L5uzA1zLhd98KkwE BMt7GZst6fFRo+h71wCI5A7cUY5Lc+Jkqp6Ou+pWlRo3+5+wx0kpVizmLiQCcF2EEPoX LhFdbGDpcWveFvwX7MYdpFYK4WPZz1fLOXw8HJx4yx2XRPBNTp9+G+++qcDVv06Dn5Xc d96e7Gh/aGx6S9Rt0bvjT3I8mS+WxdGFd+t1h5aWeI4toz+bbmBD1giQFNv3jrAY7eHl scW+Rad0NxFd4eG5ufxLorpM0AJzBo/a8RNtplQKlYLOcF/R0R7p15NjPUp7hOO9jEWQ mZkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=4iUZKNfllzATQVgo8kbicVZNuJ0ZcxhNH41lqi3AQmQ=; b=WRsTWfhSsKHpTXOSObmYm6/v/GMcIr1PpxfHqVsEuO3GaxelQQ8DxkVAlILBVntq/n QDBlwOleiITUPVcf9OF0e5GEiSTAwmHmriWRp1wgDQCBII/l1UqTVP6UrxovGuIgKwQ4 uKZZfZ3iv43gr1NMBRj5qx3rel8bVjrx09G7/fE5gF7OZ3vmc7e9md0mBuaUUlfGQeaY Lgj1RBSKyPwZRFrGfV374laV7gVvA/sHOyKTLRg2gbrH7Mz6MfNn/E+cgEa/CHr6WLvi NLPZvElJlFkaCgiEc/+RR524ogLXuE9yDbwDuUjthIavjEpJQfBVx8lpVgXy32yD9wgy AAPA== X-Gm-Message-State: APjAAAXPsc39Afk1kce9zxALhiDrVuy4ONzcpB5pHOr5n+DIuG+E7F35 kIRw7pDc+mXyONOpQ+m2BB9qGOSdBQw= X-Google-Smtp-Source: APXvYqyRBrwMaEz8NfCrQ7uFXSoxlavzCAFpXnYSQcaMp3NOLChnGAsLZH4R5H4np8PQ8KMRdnW0Gw== X-Received: by 2002:aca:c383:: with SMTP id t125mr4112576oif.122.1580935132179; Wed, 05 Feb 2020 12:38:52 -0800 (PST) Received: from andrews-mbp-2.attlocal.net ([2600:1700:19e0:3310:d966:ea63:aa5b:7786]) by smtp.gmail.com with ESMTPSA id v202sm189525oie.10.2020.02.05.12.38.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Feb 2020 12:38:51 -0800 (PST) From: Andrew Geissler Message-Id: Content-Type: multipart/alternative; boundary="Apple-Mail=_1F73A319-AE36-4735-99EA-9DA40B664AF9" Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.40.2.2.4\)) Subject: Re: [PATCH linux dev-5.4] ARM: dts: aspeed: witherspoon: Add gpio line names Date: Wed, 5 Feb 2020 14:38:50 -0600 In-Reply-To: Cc: Andrew Jeffery , OpenBMC Maillist To: Joel Stanley References: <20200204213037.42100-1-geissonator@gmail.com> X-Mailer: Apple Mail (2.3608.40.2.2.4) X-BeenThere: openbmc@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development list for OpenBMC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Feb 2020 20:38:56 -0000 --Apple-Mail=_1F73A319-AE36-4735-99EA-9DA40B664AF9 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Feb 4, 2020, at 4:14 PM, Joel Stanley wrote: >=20 > On Tue, 4 Feb 2020 at 21:30, Andrew Geissler > wrote: >>=20 >> From: Andrew Geissler > >>=20 >> Name the gpios so libgiod will work with them >>=20 >> Signed-off-by: Andrew Geissler > >=20 > Please send to the upstream lists for review. CC the GPIO maintainers > too, so we can get their feedback. ack >=20 >> --- >> .../boot/dts/aspeed-bmc-opp-witherspoon.dts | 41 = +++++++++++++++++++ >> 1 file changed, 41 insertions(+) >>=20 >> diff --git a/arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts = b/arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts >> index 515f0f208ee6..d3bbd4fc2539 100644 >> --- a/arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts >> +++ b/arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts >> @@ -193,6 +193,47 @@ >>=20 >> }; >>=20 >> +&gpio { >> + status =3D "okay"; >> + gpio-line-names =3D >> + /*A0-A7*/ "","cfam-reset","","","","","mux","", >=20 > fsi-mux ack I=E2=80=99m wondering if I should also change the labels to match the names? For example gpioinfo will show this now: line 6: "fsi-mux" "mux" output active-high [used] >=20 >> + /*B0-B7*/ "","","","","","air-water","","", >> + /*C0-C7*/ "","","","","","","","", >> + /*D0-D7*/ "enable","","","","","","","", >> + /*E0-E7*/ "data","","","","","","","", >=20 > fsi-enable, fsi-data. ack >> + /*F0-F7*/ "","","","","","","","", >> + /*G0-G7*/ "","","","","","","","", >> + /*H0-H7*/ "","","","","","","","", >> + /*I0-I7*/ "","","","","","","","", >> + /*J0-J7*/ "","","checkstop","","","","","", >> + /*K0-K7*/ "","","","","","","","", >> + /*L0-L7*/ "","","","","","","","", >> + /*M0-M7*/ "","","","","","","","", >> + /*N0-N7*/ = "ps1-presence","","rear-fault","rear-power","rear-id","","","", >=20 > These last three are LEDs? perhaps we could adopt a convention where > we call them led-. makes sense to me along those same lines, I=E2=80=99m going to put =E2=80=9Cpresence=E2=80=9D= first for those gpios >=20 >> + /*O0-O7*/ "","","","","","","","", >> + /*P0-P7*/ "","","","","","","","ps0-presence", >> + /*Q0-Q7*/ "","","","","","","","", >> + /*R0-R7*/ "","","trans","","","power-button","","", >=20 > fsi-trans ack >=20 >> + /*S0-S7*/ "","","","","","","","", >> + /*T0-T7*/ "","","","","","","","", >> + /*U0-U7*/ "","","","","","","","", >> + /*V0-V7*/ "","","","","","","","", >> + /*W0-W7*/ "","","","","","","","", >> + /*X0-X7*/ "","","","","","","","", >> + /*Y0-Y7*/ "","","","","","","","", >> + /*Z0-Z7*/ "","","","","","","","", >> + /*AA0-AA7*/ "clock","","","","","","","", >=20 > fsi-clock ack >=20 >> + /*AB0-AB7*/ "","","","","","","","", >> + /*AC0-AC7*/ "","","","","","","",""; >> + >> + pin_gpio_a1 { >> + gpios =3D ; >> + output-high; >> + line-name =3D "cfam-reset"; >> + }; >=20 > It think you want to drop this part. ok, my lack of understanding of what config is required for gpio=E2=80=99s in dts def shows here. >=20 >> + >> +}; >> + >> &fmc { >> status =3D "okay"; >>=20 >> -- >> 2.21.0 (Apple Git-122) >=20 > You're building kernels on your mac? :D Hah, yeah, writing the code on it at least --Apple-Mail=_1F73A319-AE36-4735-99EA-9DA40B664AF9 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8

On Feb 4, 2020, at 4:14 PM, Joel Stanley <joel@jms.id.au> = wrote:

On Tue, 4 Feb 2020 at 21:30, = Andrew Geissler <geissonator@gmail.com> wrote:

From: Andrew Geissler = <geissonator@yahoo.com>

Name= the gpios so libgiod will work with them

Signed-off-by: Andrew Geissler <geissonator@yahoo.com>

Please send to the upstream = lists for review. CC the GPIO maintainers
too, so we can get their feedback.

ack


---
.../boot/dts/aspeed-bmc-opp-witherspoon.dts   | 41 = +++++++++++++++++++
1 file changed, 41 insertions(+)

diff --git = a/arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts = b/arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts
index = 515f0f208ee6..d3bbd4fc2539 100644
--- = a/arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts
+++ = b/arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts
@@ = -193,6 +193,47 @@

};

+&gpio {
+    status =3D = "okay";
+ =       gpio-line-names =3D
+ =       /*A0-A7*/ =       "","cfam-reset","","","","","mux","",<= br class=3D"">

fsi-mux

ack

I=E2=80=99m = wondering if I should also change the labels to match
the names? For = example gpioinfo will show this now:
  line   6:   =  "fsi-mux"        "mux"  output =  active-high [used]


+ =       /*B0-B7*/ =       "","","","","","air-water","","",
+       /*C0-C7*/ =       "","","","","","","","",
+       /*D0-D7*/ =       "enable","","","","","","","",
+       /*E0-E7*/ =       "data","","","","","","","",

fsi-enable, fsi-data.

ack

+ =       /*F0-F7*/ =       "","","","","","","","",
+       /*G0-G7*/ =       "","","","","","","","",
+       /*H0-H7*/ =       "","","","","","","","",
+       /*I0-I7*/ =       "","","","","","","","",
+       /*J0-J7*/ =       "","","checkstop","","","","","",
+       /*K0-K7*/ =       "","","","","","","","",
+       /*L0-L7*/ =       "","","","","","","","",
+       /*M0-M7*/ =       "","","","","","","","",
+       /*N0-N7*/ =       "ps1-presence","","rear-fault","rear-p= ower","rear-id","","","",

These last three are LEDs? = perhaps we could adopt a convention where
we call them led-<name>.

makes sense to me

along those same lines, I=E2=80=99m going to put = =E2=80=9Cpresence=E2=80=9D first for
those = gpios



+ =       /*O0-O7*/ =       "","","","","","","","",
+       /*P0-P7*/ =       "","","","","","","","ps0-presence",+       /*Q0-Q7*/ =       "","","","","","","","",
+       /*R0-R7*/ =       "","","trans","","","power-button","",= "",

fsi-trans

ack


+ =       /*S0-S7*/ =       "","","","","","","","",
+       /*T0-T7*/ =       "","","","","","","","",
+       /*U0-U7*/ =       "","","","","","","","",
+       /*V0-V7*/ =       "","","","","","","","",
+       /*W0-W7*/ =       "","","","","","","","",
+       /*X0-X7*/ =       "","","","","","","","",
+       /*Y0-Y7*/ =       "","","","","","","","",
+       /*Z0-Z7*/ =       "","","","","","","","",
+       /*AA0-AA7*/ =     "clock","","","","","","","",

fsi-clock

ack


+ =       /*AB0-AB7*/ =     "","","","","","","","",
+ =       /*AC0-AC7*/ =     "","","","","","","","";
+
+       pin_gpio_a1 {
+ =             &n= bsp; gpios =3D <ASPEED_GPIO(A, 1) GPIO_ACTIVE_HIGH>;
+ =             &n= bsp; output-high;
+ =             &n= bsp; line-name =3D "cfam-reset";
+ =       };

It think you want to drop this = part.

ok, = my lack of understanding of what config is required = for
gpio=E2=80=99s in dts def shows here.


+
+};
+
&fmc {
       status =3D = "okay";

--
2.21.0 (Apple = Git-122)

You're building kernels on your mac? = :D

Hah, yeah, writing = the code on it at least


= --Apple-Mail=_1F73A319-AE36-4735-99EA-9DA40B664AF9--