1 // SPDX-License-Identifier: GPL-2.0
3 #include "bcm2711.dtsi"
4 #include "bcm2835-rpi.dtsi"
5 #include "bcm283x-rpi-usb-peripheral.dtsi"
8 compatible = "raspberrypi,4-model-b", "brcm,bcm2711";
9 model = "Raspberry Pi 4 Model B";
12 /* 8250 auxiliary UART instead of pl011 */
13 stdout-path = "serial1:115200n8";
16 /* Will be filled by the bootloader */
18 device_type = "memory";
30 gpios = <&gpio 42 GPIO_ACTIVE_HIGH>;
35 gpios = <&expgpio 2 GPIO_ACTIVE_LOW>;
36 default-state = "keep";
37 linux,default-trigger = "default-on";
41 wifi_pwrseq: wifi-pwrseq {
42 compatible = "mmc-pwrseq-simple";
43 reset-gpios = <&expgpio 1 GPIO_ACTIVE_LOW>;
46 sd_io_1v8_reg: sd_io_1v8_reg {
47 compatible = "regulator-gpio";
48 regulator-name = "vdd-sd-io";
49 regulator-min-microvolt = <1800000>;
50 regulator-max-microvolt = <3300000>;
53 regulator-settling-time-us = <5000>;
54 gpios = <&expgpio 4 GPIO_ACTIVE_HIGH>;
63 compatible = "raspberrypi,firmware-gpio";
66 gpio-line-names = "BT_ON",
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",
118 /* Used by BT module */
130 /* Shared with SPI flash */
152 pinctrl-names = "default";
153 pinctrl-0 = <&pwm1_0_gpio40 &pwm1_1_gpio41>;
157 /* SDHCI is used to control the SDIO for wireless */
159 #address-cells = <1>;
161 pinctrl-names = "default";
162 pinctrl-0 = <&emmc_gpio34>;
165 mmc-pwrseq = <&wifi_pwrseq>;
170 compatible = "brcm,bcm4329-fmac";
174 /* EMMC2 is used to drive the SD card */
176 vqmmc-supply = <&sd_io_1v8_reg>;
182 phy-handle = <&phy1>;
183 phy-mode = "rgmii-rxid";
188 phy1: ethernet-phy@1 {
189 /* No PHY interrupt */
194 /* uart0 communicates with the BT module */
196 pinctrl-names = "default";
197 pinctrl-0 = <&uart0_ctsrts_gpio30 &uart0_gpio32>;
202 compatible = "brcm,bcm43438-bt";
203 max-speed = <2000000>;
204 shutdown-gpios = <&expgpio 0 GPIO_ACTIVE_HIGH>;
208 /* uart1 is mapped to the pin header */
210 pinctrl-names = "default";
211 pinctrl-0 = <&uart1_gpio14>;
216 interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;