ARM: dts: nuvoton,wpcm450-supermicro-x9sci-ln4f: Add GPIO line names
authorJonathan Neuschäfer <j.neuschaefer@gmx.net>
Tue, 1 Nov 2022 10:29:16 +0000 (11:29 +0100)
committerJoel Stanley <joel@jms.id.au>
Sun, 20 Nov 2022 10:19:09 +0000 (20:49 +1030)
To make gpioinfo output more useful and enable gpiofind usage, add line
names for GPIOs where the function is known.

This patch follows the naming convention defined for OpenBMC, as much as
possible:

  https://github.com/openbmc/docs/blob/master/designs/device-tree-gpio-naming.md

Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
Link: https://lore.kernel.org/r/20221101102916.440526-1-j.neuschaefer@gmx.net
Signed-off-by: Joel Stanley <joel@jms.id.au>
arch/arm/boot/dts/nuvoton-wpcm450-supermicro-x9sci-ln4f.dts

index 3ee61251a16d0b44187ab795d20c2cdaec9bb285..c5957eb01dad91c673201b3695779651ebbb9909 100644 (file)
        };
 };
 
+&gpio0 {
+       gpio-line-names =
+               /* 0 */ "", "host-reset-control-n", "", "", "", "", "", "",
+               /* 8 */ "", "", "", "", "power-chassis-control-n", "", "uid-button", "";
+};
+
+&gpio1 {
+       gpio-line-names =
+               /* 0 */ "", "", "", "", "led-heartbeat", "", "", "led-uid",
+               /* 8 */ "", "", "", "", "", "", "", "";
+};
+
+&gpio4 {
+       gpio-line-names =
+               /* 0 */ "", "", "", "", "", "", "", "",
+               /* 8 */ "", "", "", "", "", "", "", "power-chassis-good";
+};
+
 &pinctrl {
        key_pins: mux-keys {
                groups = "gspi", "sspi";