ARM: dts: aspeed: romulus: Add gpio line names
authorAndrew Geissler <geissonator@gmail.com>
Fri, 6 Mar 2020 17:02:17 +0000 (11:02 -0600)
committerJoel Stanley <joel@jms.id.au>
Tue, 5 May 2020 07:07:16 +0000 (16:37 +0930)
Name the GPIOs to help userspace work with them. The names describe the
functionality the lines provide, not the net or ball name. This makes it
easier to share userspace code across different systems and makes the
use of the lines more obvious.

Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Signed-off-by: Joel Stanley <joel@jms.id.au>
arch/arm/boot/dts/aspeed-bmc-opp-romulus.dts

index edfa44f..fd2e014 100644 (file)
 };
 
 &gpio {
+       gpio-line-names =
+       /*A0-A7*/       "","cfam-reset","","","","","fsi-mux","",
+       /*B0-B7*/       "","","","","","","","",
+       /*C0-C7*/       "","","","","","","","",
+       /*D0-D7*/       "fsi-enable","","","nic_func_mode0","nic_func_mode1","","","",
+       /*E0-E7*/       "","","","","","","","",
+       /*F0-F7*/       "","","","","","","","",
+       /*G0-G7*/       "","","","","","","","",
+       /*H0-H7*/       "","","","","","","","",
+       /*I0-I7*/       "","","","power-button","","","","",
+       /*J0-J7*/       "","","checkstop","","","","","",
+       /*K0-K7*/       "","","","","","","","",
+       /*L0-L7*/       "","","","","","","","",
+       /*M0-M7*/       "","","","","","","","",
+       /*N0-N7*/       "","","led-fault","",
+                               "led-identify","","","",
+       /*O0-O7*/       "","","","","","","","",
+       /*P0-P7*/       "","","","","","","","",
+       /*Q0-Q7*/       "","","","","","","","id-button",
+       /*R0-R7*/       "","","fsi-trans","","","led-power","","",
+       /*S0-S7*/       "","","","","","","","seq_cont",
+       /*T0-T7*/       "","","","","","","","",
+       /*U0-U7*/       "","","","","","","","",
+       /*V0-V7*/       "","","","","","","","",
+       /*W0-W7*/       "","","","","","","","",
+       /*X0-X7*/       "","","","","","","","",
+       /*Y0-Y7*/       "","","","","","","","",
+       /*Z0-Z7*/       "","","","","","","","",
+       /*AA0-AA7*/     "fsi-clock","","fsi-data","","","","","",
+       /*AB0-AB7*/     "","","","","","","","",
+       /*AC0-AC7*/     "","","","","","","","";
+
        nic_func_mode0 {
                gpio-hog;
                gpios = <ASPEED_GPIO(D, 3) GPIO_ACTIVE_HIGH>;
                output-low;
-               line-name = "nic_func_mode0";
        };
        nic_func_mode1 {
                gpio-hog;
                gpios = <ASPEED_GPIO(D, 4) GPIO_ACTIVE_HIGH>;
                output-low;
-               line-name = "nic_func_mode1";
        };
        seq_cont {
                gpio-hog;
                gpios = <ASPEED_GPIO(S, 7) GPIO_ACTIVE_HIGH>;
                output-low;
-               line-name = "seq_cont";
        };
 };