1
0
Fork 0

arm: dts: sun7i-a20-bananapi: name the GPIO lines

This names the GPIO lines on the Banana Pi board in accordance with
the A20_Banana_Pi v1.4 Specification.

This will make these line names reflect through to user space
so that they can easily be identified and used with the new
character device ABI.

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
hifive-unleashed-5.1
Oleksij Rempel 2017-05-06 07:30:38 +02:00 committed by Maxime Ripard
parent e20f049351
commit 392aba5558
1 changed files with 51 additions and 0 deletions

View File

@ -177,6 +177,57 @@
};
&pio {
gpio-line-names =
/* PA */
"ERXD3", "ERXD2", "ERXD1", "ERXD0", "ETXD3",
"ETXD2", "ETXD1", "ETXD0",
"ERXCK", "ERXERR", "ERXDV", "EMDC", "EMDIO",
"ETXEN", "ETXCK", "ECRS",
"ECOL", "ETXERR", "", "", "", "", "", "",
"", "", "", "", "", "", "", "",
/* PB */
"PMU-SCK", "PMU-SDA", "", "", "", "", "", "",
"", "USB0-DRV", "", "", "", "", "", "",
"", "", "", "", "SCL", "SDA", "", "",
"", "", "", "", "", "", "", "",
/* PC */
"", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "",
/* PD */
"", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "",
/* PE */
"", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "",
/* PF */
"SD0-D1", "SD0-D0", "SD0-CLK", "SD0-CMD", "SD0-D3",
"SD0-D2", "", "",
"", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "",
/* PG */
"", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "",
/* PH */
"TXD0", "RXD0", "IO-1", "PH3", "USB0-IDDET", "PH5", "", "",
"", "", "SD0-DET", "", "", "", "", "",
"", "", "", "", "IO-4", "IO-5", "", "EMAC-PWR-EN",
"LED1", "", "", "", "", "", "", "",
/* PI */
"", "", "", "IO-GCLK", "", "", "", "",
"", "", "SPI-CE0", "SPI-CLK", "SPI-MOSI",
"SPI-MISO", "SPI-CE1", "",
"IO-6", "IO-3", "IO-2", "IO-0", "", "", "", "",
"", "", "", "", "", "", "", "";
usb0_id_detect_pin: usb0_id_detect_pin@0 {
pins = "PH4";
function = "gpio_in";