5beef8ecb94c0a8d885d06258809204e77c74666
[openwrt/staging/stintel.git] /
1 From 3a1689ea752436917c5ce4487527ed6c444630ee Mon Sep 17 00:00:00 2001
2 From: Stefan Wahren <stefan.wahren@i2se.com>
3 Date: Wed, 16 Nov 2016 17:52:07 +0000
4 Subject: [PATCH] ARM: bcm2835: Add names for the RPi Zero GPIO lines
5
6 This adds the GPIO names for the Raspberry Pi Zero. The GPIO lines
7 of the RPi Zero are almost identical to the Model A+ except:
8
9 * GPIO 35, 38, 40 and 45 are not connected
10 * Status LED is active low
11
12 Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
13 Signed-off-by: Eric Anholt <eric@anholt.net>
14 ---
15 arch/arm/boot/dts/bcm2835-rpi-zero.dts | 65 ++++++++++++++++++++++++++++++++++
16 1 file changed, 65 insertions(+)
17
18 --- a/arch/arm/boot/dts/bcm2835-rpi-zero.dts
19 +++ b/arch/arm/boot/dts/bcm2835-rpi-zero.dts
20 @@ -26,6 +26,71 @@
21 };
22
23 &gpio {
24 + /*
25 + * This is based on the official GPU firmware DT blob.
26 + *
27 + * Legend:
28 + * "NC" = not connected (no rail from the SoC)
29 + * "FOO" = GPIO line named "FOO" on the schematic
30 + * "FOO_N" = GPIO line named "FOO" on schematic, active low
31 + */
32 + gpio-line-names = "SDA0",
33 + "SCL0",
34 + "SDA1",
35 + "SCL1",
36 + "GPIO_GCLK",
37 + "GPIO5",
38 + "GPIO6",
39 + "SPI_CE1_N",
40 + "SPI_CE0_N",
41 + "SPI_MISO",
42 + "SPI_MOSI",
43 + "SPI_SCLK",
44 + "GPIO12",
45 + "GPIO13",
46 + /* Serial port */
47 + "TXD0",
48 + "RXD0",
49 + "GPIO16",
50 + "GPIO17",
51 + "GPIO18",
52 + "GPIO19",
53 + "GPIO20",
54 + "GPIO21",
55 + "GPIO22",
56 + "GPIO23",
57 + "GPIO24",
58 + "GPIO25",
59 + "GPIO26",
60 + "GPIO27",
61 + "SDA0",
62 + "SCL0",
63 + "NC", /* GPIO30 */
64 + "NC", /* GPIO31 */
65 + "CAM_GPIO1", /* GPIO32 */
66 + "NC", /* GPIO33 */
67 + "NC", /* GPIO34 */
68 + "NC", /* GPIO35 */
69 + "NC", /* GPIO36 */
70 + "NC", /* GPIO37 */
71 + "NC", /* GPIO38 */
72 + "NC", /* GPIO39 */
73 + "NC", /* GPIO40 */
74 + "CAM_GPIO0", /* GPIO41 */
75 + "NC", /* GPIO42 */
76 + "NC", /* GPIO43 */
77 + "NC", /* GPIO44 */
78 + "NC", /* GPIO45 */
79 + "HDMI_HPD_N",
80 + "STATUS_LED_N",
81 + /* Used by SD Card */
82 + "SD_CLK_R",
83 + "SD_CMD_R",
84 + "SD_DATA0_R",
85 + "SD_DATA1_R",
86 + "SD_DATA2_R",
87 + "SD_DATA3_R";
88 +
89 pinctrl-0 = <&gpioout &alt0 &i2s_alt0>;
90
91 /* I2S interface */