1 // SPDX-License-Identifier: GPL-2.0
3 #include "bcm2711.dtsi"
4 #include "bcm2711-rpi.dtsi"
5 #include "bcm283x-rpi-usb-peripheral.dtsi"
6 #include "bcm283x-rpi-wifi-bt.dtsi"
9 compatible = "raspberrypi,4-model-b", "brcm,bcm2711";
10 model = "Raspberry Pi 4 Model B";
13 /* 8250 auxiliary UART instead of pl011 */
14 stdout-path = "serial1:115200n8";
19 gpios = <&gpio 42 GPIO_ACTIVE_HIGH>;
24 gpios = <&expgpio 2 GPIO_ACTIVE_LOW>;
25 default-state = "keep";
26 linux,default-trigger = "default-on";
30 sd_io_1v8_reg: sd_io_1v8_reg {
31 compatible = "regulator-gpio";
32 regulator-name = "vdd-sd-io";
33 regulator-min-microvolt = <1800000>;
34 regulator-max-microvolt = <3300000>;
37 regulator-settling-time-us = <5000>;
38 gpios = <&expgpio 4 GPIO_ACTIVE_HIGH>;
39 states = <1800000 0x1>,
44 sd_vcc_reg: sd_vcc_reg {
45 compatible = "regulator-fixed";
46 regulator-name = "vcc-sd";
47 regulator-min-microvolt = <3300000>;
48 regulator-max-microvolt = <3300000>;
51 gpio = <&expgpio 6 GPIO_ACTIVE_HIGH>;
56 shutdown-gpios = <&expgpio 0 GPIO_ACTIVE_HIGH>;
68 gpio-line-names = "BT_ON", /* 0 */
80 * Parts taken from rpi_SCH_4b_4p0_reduced.pdf and
81 * the official GPU firmware DT blob.
84 * "FOO" = GPIO line named "FOO" on the schematic
85 * "FOO_N" = GPIO line named "FOO" on schematic, active low
87 gpio-line-names = "ID_SDA", /* 0 */
118 /* Used by BT module */
130 /* Shared with SPI flash */
131 "PWM0_MISO", /* 40 */
141 "RGMII_RXD2", /* 50 */
146 "RGMII_TXD1", /* 55 */
176 pinctrl-names = "default";
177 pinctrl-0 = <&pwm1_0_gpio40 &pwm1_1_gpio41>;
181 /* EMMC2 is used to drive the SD card */
183 vqmmc-supply = <&sd_io_1v8_reg>;
184 vmmc-supply = <&sd_vcc_reg>;
190 phy-handle = <&phy1>;
191 phy-mode = "rgmii-rxid";
196 phy1: ethernet-phy@1 {
197 /* No PHY interrupt */
205 #address-cells = <3>;
213 resets = <&reset RASPBERRYPI_FIRMWARE_RESET_ID_USB>;
218 /* uart0 communicates with the BT module */
220 pinctrl-names = "default";
221 pinctrl-0 = <&uart0_ctsrts_gpio30 &uart0_gpio32>;
225 /* uart1 is mapped to the pin header */
227 pinctrl-names = "default";
228 pinctrl-0 = <&uart1_gpio14>;
241 reset-gpios = <&expgpio 1 GPIO_ACTIVE_LOW>;