1 // SPDX-License-Identifier: GPL-2.0
3 #include "bcm2711.dtsi"
4 #include "bcm2711-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";
18 gpios = <&gpio 42 GPIO_ACTIVE_HIGH>;
23 gpios = <&expgpio 2 GPIO_ACTIVE_LOW>;
24 default-state = "keep";
25 linux,default-trigger = "default-on";
29 wifi_pwrseq: wifi-pwrseq {
30 compatible = "mmc-pwrseq-simple";
31 reset-gpios = <&expgpio 1 GPIO_ACTIVE_LOW>;
34 sd_io_1v8_reg: sd_io_1v8_reg {
35 compatible = "regulator-gpio";
36 regulator-name = "vdd-sd-io";
37 regulator-min-microvolt = <1800000>;
38 regulator-max-microvolt = <3300000>;
41 regulator-settling-time-us = <5000>;
42 gpios = <&expgpio 4 GPIO_ACTIVE_HIGH>;
43 states = <1800000 0x1>,
48 sd_vcc_reg: sd_vcc_reg {
49 compatible = "regulator-fixed";
50 regulator-name = "vcc-sd";
51 regulator-min-microvolt = <3300000>;
52 regulator-max-microvolt = <3300000>;
55 gpio = <&expgpio 6 GPIO_ACTIVE_HIGH>;
68 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 */
176 pinctrl-names = "default";
177 pinctrl-0 = <&pwm1_0_gpio40 &pwm1_1_gpio41>;
181 /* SDHCI is used to control the SDIO for wireless */
183 #address-cells = <1>;
185 pinctrl-names = "default";
186 pinctrl-0 = <&emmc_gpio34>;
189 mmc-pwrseq = <&wifi_pwrseq>;
194 compatible = "brcm,bcm4329-fmac";
198 /* EMMC2 is used to drive the SD card */
200 vqmmc-supply = <&sd_io_1v8_reg>;
201 vmmc-supply = <&sd_vcc_reg>;
207 phy-handle = <&phy1>;
208 phy-mode = "rgmii-rxid";
213 phy1: ethernet-phy@1 {
214 /* No PHY interrupt */
222 #address-cells = <3>;
230 resets = <&reset RASPBERRYPI_FIRMWARE_RESET_ID_USB>;
235 /* uart0 communicates with the BT module */
237 pinctrl-names = "default";
238 pinctrl-0 = <&uart0_ctsrts_gpio30 &uart0_gpio32>;
243 compatible = "brcm,bcm43438-bt";
244 max-speed = <2000000>;
245 shutdown-gpios = <&expgpio 0 GPIO_ACTIVE_HIGH>;
249 /* uart1 is mapped to the pin header */
251 pinctrl-names = "default";
252 pinctrl-0 = <&uart1_gpio14>;