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"
10 compatible = "raspberrypi,4-model-b", "brcm,bcm2711";
11 model = "Raspberry Pi 4 Model B";
14 /* 8250 auxiliary UART instead of pl011 */
15 stdout-path = "serial1:115200n8";
18 sd_io_1v8_reg: regulator-sd-io-1v8 {
19 compatible = "regulator-gpio";
20 regulator-name = "vdd-sd-io";
21 regulator-min-microvolt = <1800000>;
22 regulator-max-microvolt = <3300000>;
25 regulator-settling-time-us = <5000>;
26 gpios = <&expgpio 4 GPIO_ACTIVE_HIGH>;
27 states = <1800000 0x1>,
32 sd_vcc_reg: regulator-sd-vcc {
33 compatible = "regulator-fixed";
34 regulator-name = "vcc-sd";
35 regulator-min-microvolt = <3300000>;
36 regulator-max-microvolt = <3300000>;
39 gpio = <&expgpio 6 GPIO_ACTIVE_HIGH>;
44 shutdown-gpios = <&expgpio 0 GPIO_ACTIVE_HIGH>;
56 gpio-line-names = "BT_ON", /* 0 */
68 * Parts taken from rpi_SCH_4b_4p0_reduced.pdf and
69 * the official GPU firmware DT blob.
72 * "FOO" = GPIO line named "FOO" on the schematic
73 * "FOO_N" = GPIO line named "FOO" on schematic, active low
75 gpio-line-names = "ID_SDA", /* 0 */
106 /* Used by BT module */
118 /* Shared with SPI flash */
119 "PWM0_MISO", /* 40 */
129 "RGMII_RXD2", /* 50 */
134 "RGMII_TXD1", /* 55 */
148 gpios = <&gpio 42 GPIO_ACTIVE_HIGH>;
154 gpios = <&expgpio 2 GPIO_ACTIVE_LOW>;
155 default-state = "keep";
156 linux,default-trigger = "default-on";
177 pinctrl-names = "default";
178 pinctrl-0 = <&pwm1_0_gpio40 &pwm1_1_gpio41>;
182 /* EMMC2 is used to drive the SD card */
184 vqmmc-supply = <&sd_io_1v8_reg>;
185 vmmc-supply = <&sd_vcc_reg>;
191 phy-handle = <&phy1>;
192 phy-mode = "rgmii-rxid";
197 phy1: ethernet-phy@1 {
198 /* No PHY interrupt */
206 #address-cells = <3>;
214 resets = <&reset RASPBERRYPI_FIRMWARE_RESET_ID_USB>;
219 /* uart0 communicates with the BT module */
221 pinctrl-names = "default";
222 pinctrl-0 = <&uart0_ctsrts_gpio30 &uart0_gpio32>;
226 /* uart1 is mapped to the pin header */
228 pinctrl-names = "default";
229 pinctrl-0 = <&uart1_gpio14>;
242 reset-gpios = <&expgpio 1 GPIO_ACTIVE_LOW>;