ARM: dts: sun8i-h2-plus-bananapi-m2-zero: add gpio-line-names
authorMichael Klein <michael@fossekall.de>
Mon, 23 Nov 2020 11:45:35 +0000 (12:45 +0100)
committerMaxime Ripard <maxime@cerno.tech>
Tue, 24 Nov 2020 14:24:59 +0000 (15:24 +0100)
Add gpio-line-names as documented in the Banana Pi wiki [1] and in the
schematics [2].

[1]: http://wiki.banana-pi.org/Banana_Pi_BPI-M2_ZERO#GPIO_PIN_define
[2]: https://drive.google.com/file/d/0B4PAo2nW2KfnMW5sVkxWSW9qa28/view

Signed-off-by: Michael Klein <michael@fossekall.de>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://lore.kernel.org/r/20201123114535.1605939-1-michael@fossekall.de
arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts

index 4c6704e4c57ecdabf6b08852a0621894ffe89c88..e76d56a3df9cbcbf46ddb92ead2bc5510fb16425 100644 (file)
 
 };
 
+&pio {
+       gpio-line-names =
+               /* PA */
+               "CON2-P13", "CON2-P11", "CON2-P22", "CON2-P15",
+                       "CON3-P03", "CON3-P02", "CON2-P07", "CON2-P29",
+               "CON2-P31", "CON2-P33", "CON2-P35", "CON2-P05",
+                       "CON2-P03", "CON2-P08", "CON2-P10", "CON2-P16",
+               "CON2-P12", "CON2-P37", "CON2-P28", "CON2-P27",
+                       "CON2-P40", "CON2-P38", "", "",
+               "", "", "", "", "", "", "", "",
+
+               /* PB */
+               "", "", "", "", "", "", "", "",
+               "", "", "", "", "", "", "", "",
+               "", "", "", "", "", "", "", "",
+               "", "", "", "", "", "", "", "",
+
+               /* PC */
+               "CON2-P19", "CON2-P21", "CON2-P23", "CON2-P24",
+                       "CON2-P18", "", "", "CON2-P26",
+               "", "", "", "", "", "", "", "",
+               "", "", "", "", "", "", "", "",
+               "", "", "", "", "", "", "", "",
+
+               /* PD */
+               "", "", "", "", "", "", "", "",
+               "", "", "", "", "", "", "CSI-PWR-EN", "",
+               "", "", "", "", "", "", "", "",
+               "", "", "", "", "", "", "", "",
+
+               /* PE */
+               "CN3-P17", "CN3-P13", "CN3-P09", "CN3-P07",
+                       "CN3-P19", "CN3-P21", "CN3-P22", "CN3-P20",
+               "CN3-P18", "CN3-P16", "CN3-P14", "CN3-P12",
+                       "CN3-P05", "CN3-P03", "CN3-P06", "CN3-P08",
+               "", "", "", "", "", "", "", "",
+               "", "", "", "", "", "", "", "",
+
+               /* PF */
+               "SDC0-D1", "SDC0-D0", "SDC0-CLK", "SDC0-CMD", "SDC0-D3",
+                       "SDC0-D2", "SDC0-DET", "",
+               "", "", "", "", "", "", "", "",
+               "", "", "", "", "", "", "", "",
+               "", "", "", "", "", "", "", "",
+
+               /* PG */
+               "WL-SDIO-CLK", "WL-SDIO-CMD", "WL-SDIO-D0", "WL-SDIO-D1",
+                       "WL-SDIO-D2", "WL-SDIO-D3", "BT-UART-TX", "BT-UART-RX",
+               "BT-UART-RTS", "BT-UART-CTS", "WL-WAKE-AP", "BT-WAKE-AP",
+                       "BT-RST-N", "AP-WAKE-BT", "", "",
+               "", "", "", "", "", "", "", "",
+               "", "", "", "", "", "", "", "";
+};
+
+&r_pio {
+       gpio-line-names =
+               /* PL */
+               "", "CPUX-SET", "CON2-P32", "POWER-KEY", "CON2-P36",
+                       "VCC-IO-EN", "USB0-ID", "WL-PWR-EN",
+               "PWR-STB", "PWR-DRAM", "PWR-LED", "IR-RX", "", "", "", "",
+               "", "", "", "", "", "", "", "",
+               "", "", "", "", "", "", "", "";
+};
+
 &usb_otg {
        dr_mode = "otg";
        status = "okay";