]> git.ipfire.org Git - thirdparty/u-boot.git/blob - src/arm/broadcom/bcm2837-rpi-3-a-plus.dts
Squashed 'dts/upstream/' content from commit aaba2d45dc2a
[thirdparty/u-boot.git] / src / arm / broadcom / bcm2837-rpi-3-a-plus.dts
1 // SPDX-License-Identifier: GPL-2.0
2 /dts-v1/;
3 #include "bcm2837.dtsi"
4 #include "bcm2836-rpi.dtsi"
5 #include "bcm283x-rpi-led-deprecated.dtsi"
6 #include "bcm283x-rpi-usb-host.dtsi"
7 #include "bcm283x-rpi-wifi-bt.dtsi"
8
9 / {
10 compatible = "raspberrypi,3-model-a-plus", "brcm,bcm2837";
11 model = "Raspberry Pi 3 Model A+";
12
13 chosen {
14 /* 8250 auxiliary UART instead of pl011 */
15 stdout-path = "serial1:115200n8";
16 };
17
18 memory@0 {
19 device_type = "memory";
20 reg = <0 0x20000000>;
21 };
22 };
23
24 &firmware {
25 expgpio: gpio {
26 compatible = "raspberrypi,firmware-gpio";
27 gpio-controller;
28 #gpio-cells = <2>;
29 gpio-line-names = "",
30 "BT_WL_ON",
31 "STATUS_LED_R",
32 "",
33 "",
34 "CAM_GPIO0",
35 "CAM_GPIO1",
36 "";
37 status = "okay";
38 };
39 };
40
41 &gpio {
42 /*
43 * This is mostly based on the official GPU firmware DT blob.
44 *
45 * Legend:
46 * "FOO" = GPIO line named "FOO" on the schematic
47 * "FOO_N" = GPIO line named "FOO" on schematic, active low
48 */
49 gpio-line-names = "ID_SDA",
50 "ID_SCL",
51 "SDA1",
52 "SCL1",
53 "GPIO_GCLK",
54 "GPIO5",
55 "GPIO6",
56 "SPI_CE1_N",
57 "SPI_CE0_N",
58 "SPI_MISO",
59 "SPI_MOSI",
60 "SPI_SCLK",
61 "GPIO12",
62 "GPIO13",
63 /* Serial port */
64 "TXD1",
65 "RXD1",
66 "GPIO16",
67 "GPIO17",
68 "GPIO18",
69 "GPIO19",
70 "GPIO20",
71 "GPIO21",
72 "GPIO22",
73 "GPIO23",
74 "GPIO24",
75 "GPIO25",
76 "GPIO26",
77 "GPIO27",
78 "HDMI_HPD_N",
79 "STATUS_LED_G",
80 /* Used by BT module */
81 "CTS0",
82 "RTS0",
83 "TXD0",
84 "RXD0",
85 /* Used by Wifi */
86 "SD1_CLK",
87 "SD1_CMD",
88 "SD1_DATA0",
89 "SD1_DATA1",
90 "SD1_DATA2",
91 "SD1_DATA3",
92 "PWM0_OUT",
93 "PWM1_OUT",
94 "", /* GPIO42 */
95 "WIFI_CLK",
96 "SDA0",
97 "SCL0",
98 "SMPS_SCL",
99 "SMPS_SDA",
100 /* Used by SD Card */
101 "SD_CLK_R",
102 "SD_CMD_R",
103 "SD_DATA0_R",
104 "SD_DATA1_R",
105 "SD_DATA2_R",
106 "SD_DATA3_R";
107 };
108
109 &hdmi {
110 hpd-gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
111 power-domains = <&power RPI_POWER_DOMAIN_HDMI>;
112 status = "okay";
113 };
114
115 &led_act {
116 gpios = <&gpio 29 GPIO_ACTIVE_HIGH>;
117 };
118
119 &leds {
120 led-pwr {
121 label = "PWR";
122 gpios = <&expgpio 2 GPIO_ACTIVE_LOW>;
123 default-state = "keep";
124 linux,default-trigger = "default-on";
125 };
126 };
127
128 &pwm {
129 pinctrl-names = "default";
130 pinctrl-0 = <&pwm0_gpio40 &pwm1_gpio41>;
131 status = "okay";
132 };
133
134 /* SDHOST is used to drive the SD card */
135 &sdhost {
136 pinctrl-names = "default";
137 pinctrl-0 = <&sdhost_gpio48>;
138 status = "okay";
139 bus-width = <4>;
140 };
141
142 /* uart0 communicates with the BT module
143 *
144 * WL_REG_ON and BT_REG_ON of the CYW43455 Wifi/BT module are driven
145 * by a single GPIO. We can't give GPIO control to one of the drivers,
146 * otherwise the other part would get unexpectedly disturbed.
147 */
148 &uart0 {
149 pinctrl-names = "default";
150 pinctrl-0 = <&uart0_ctsrts_gpio30 &uart0_gpio32 &gpclk2_gpio43>;
151 };
152
153 /* uart1 is mapped to the pin header */
154 &uart1 {
155 pinctrl-names = "default";
156 pinctrl-0 = <&uart1_gpio14>;
157 status = "okay";
158 };