1 // SPDX-License-Identifier: GPL-2.0
3 #include "bcm2711.dtsi"
4 #include "bcm2711-rpi.dtsi"
5 #include "bcm283x-rpi-led-deprecated.dtsi"
6 #include "bcm283x-rpi-usb-peripheral.dtsi"
7 #include "bcm283x-rpi-wifi-bt.dtsi"
8 #include <dt-bindings/leds/common.h>
11 compatible = "raspberrypi,4-model-b", "brcm,bcm2711";
12 model = "Raspberry Pi 4 Model B";
15 /* 8250 auxiliary UART instead of pl011 */
16 stdout-path = "serial1:115200n8";
19 cam1_reg: regulator-cam1 {
20 compatible = "regulator-fixed";
21 regulator-name = "cam1-reg";
23 gpio = <&expgpio 5 GPIO_ACTIVE_HIGH>;
26 sd_io_1v8_reg: regulator-sd-io-1v8 {
27 compatible = "regulator-gpio";
28 regulator-name = "vdd-sd-io";
29 regulator-min-microvolt = <1800000>;
30 regulator-max-microvolt = <3300000>;
33 regulator-settling-time-us = <5000>;
34 gpios = <&expgpio 4 GPIO_ACTIVE_HIGH>;
35 states = <1800000 0x1>,
40 sd_vcc_reg: regulator-sd-vcc {
41 compatible = "regulator-fixed";
42 regulator-name = "vcc-sd";
43 regulator-min-microvolt = <3300000>;
44 regulator-max-microvolt = <3300000>;
47 gpio = <&expgpio 6 GPIO_ACTIVE_HIGH>;
52 shutdown-gpios = <&expgpio 0 GPIO_ACTIVE_HIGH>;
64 gpio-line-names = "BT_ON", /* 0 */
76 * Parts taken from rpi_SCH_4b_4p0_reduced.pdf and
77 * the official GPU firmware DT blob.
80 * "FOO" = GPIO line named "FOO" on the schematic
81 * "FOO_N" = GPIO line named "FOO" on schematic, active low
83 gpio-line-names = "ID_SDA", /* 0 */
114 /* Used by BT module */
126 /* Shared with SPI flash */
127 "PWM0_MISO", /* 40 */
137 "RGMII_RXD2", /* 50 */
142 "RGMII_TXD1", /* 55 */
156 gpios = <&gpio 42 GPIO_ACTIVE_HIGH>;
162 gpios = <&expgpio 2 GPIO_ACTIVE_LOW>;
163 default-state = "keep";
164 linux,default-trigger = "default-on";
185 pinctrl-names = "default";
186 pinctrl-0 = <&pwm1_0_gpio40 &pwm1_1_gpio41>;
190 /* EMMC2 is used to drive the SD card */
192 vqmmc-supply = <&sd_io_1v8_reg>;
193 vmmc-supply = <&sd_vcc_reg>;
199 phy-handle = <&phy1>;
200 phy-mode = "rgmii-rxid";
205 phy1: ethernet-phy@1 {
206 /* No PHY interrupt */
210 #address-cells = <1>;
216 color = <LED_COLOR_ID_GREEN>;
217 function = LED_FUNCTION_LAN;
218 default-state = "keep";
224 color = <LED_COLOR_ID_AMBER>;
225 function = LED_FUNCTION_LAN;
226 default-state = "keep";
235 #address-cells = <3>;
243 resets = <&reset RASPBERRYPI_FIRMWARE_RESET_ID_USB>;
248 /* uart0 communicates with the BT module */
250 pinctrl-names = "default";
251 pinctrl-0 = <&uart0_ctsrts_gpio30 &uart0_gpio32>;
255 /* uart1 is mapped to the pin header */
257 pinctrl-names = "default";
258 pinctrl-0 = <&uart1_gpio14>;
271 reset-gpios = <&expgpio 1 GPIO_ACTIVE_LOW>;