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,400", "brcm,bcm2711";
9 model = "Raspberry Pi 400";
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>;
264 // =============================================
265 // Downstream rpi- changes
269 #include "bcm270x.dtsi"
270 #include "bcm271x-rpi-bt.dtsi"
274 /delete-node/ pixelvalve@7e807000;
275 /delete-node/ hdmi@7e902000;
279 #include "bcm2711-rpi-ds.dtsi"
280 #include "bcm283x-rpi-csi1-2lane.dtsi"
281 #include "bcm283x-rpi-i2c0mux_0_44.dtsi"
285 bootargs = "coherent_pool=1M 8250.nr_uarts=1 snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1";
304 /delete-property/ intc;
307 /delete-node/ wifi-pwrseq;
311 pinctrl-names = "default";
312 pinctrl-0 = <&sdio_pins>;
318 pinctrl-0 = <&uart0_pins &bt_pins>;
323 pinctrl-0 = <&uart1_pins>;
327 pinctrl-names = "default";
328 pinctrl-0 = <&spi0_pins &spi0_cs_pins>;
329 cs-gpios = <&gpio 8 1>, <&gpio 7 1>;
332 compatible = "spidev";
334 #address-cells = <1>;
336 spi-max-frequency = <125000000>;
340 compatible = "spidev";
342 #address-cells = <1>;
344 spi-max-frequency = <125000000>;
349 spi0_pins: spi0_pins {
350 brcm,pins = <9 10 11>;
351 brcm,function = <BCM2835_FSEL_ALT0>;
354 spi0_cs_pins: spi0_cs_pins {
356 brcm,function = <BCM2835_FSEL_GPIO_OUT>;
359 spi3_pins: spi3_pins {
361 brcm,function = <BCM2835_FSEL_ALT3>;
364 spi3_cs_pins: spi3_cs_pins {
366 brcm,function = <BCM2835_FSEL_GPIO_OUT>;
369 spi4_pins: spi4_pins {
371 brcm,function = <BCM2835_FSEL_ALT3>;
374 spi4_cs_pins: spi4_cs_pins {
376 brcm,function = <BCM2835_FSEL_GPIO_OUT>;
379 spi5_pins: spi5_pins {
380 brcm,pins = <13 14 15>;
381 brcm,function = <BCM2835_FSEL_ALT3>;
384 spi5_cs_pins: spi5_cs_pins {
386 brcm,function = <BCM2835_FSEL_GPIO_OUT>;
389 spi6_pins: spi6_pins {
390 brcm,pins = <19 20 21>;
391 brcm,function = <BCM2835_FSEL_ALT3>;
394 spi6_cs_pins: spi6_cs_pins {
396 brcm,function = <BCM2835_FSEL_GPIO_OUT>;
401 brcm,function = <BCM2835_FSEL_ALT0>;
402 brcm,pull = <BCM2835_PUD_UP>;
407 brcm,function = <BCM2835_FSEL_ALT0>;
408 brcm,pull = <BCM2835_PUD_UP>;
413 brcm,function = <BCM2835_FSEL_ALT5>;
414 brcm,pull = <BCM2835_PUD_UP>;
419 brcm,function = <BCM2835_FSEL_ALT5>;
420 brcm,pull = <BCM2835_PUD_UP>;
425 brcm,function = <BCM2835_FSEL_ALT5>;
426 brcm,pull = <BCM2835_PUD_UP>;
431 brcm,function = <BCM2835_FSEL_ALT5>;
432 brcm,pull = <BCM2835_PUD_UP>;
436 brcm,pins = <18 19 20 21>;
437 brcm,function = <BCM2835_FSEL_ALT0>;
440 sdio_pins: sdio_pins {
441 brcm,pins = <34 35 36 37 38 39>;
442 brcm,function = <BCM2835_FSEL_ALT3>; // alt3 = SD1
443 brcm,pull = <0 2 2 2 2 2>;
447 brcm,pins = "-"; // non-empty to keep btuart happy, //4 = 0
453 uart0_pins: uart0_pins {
455 brcm,function = <BCM2835_FSEL_ALT3>;
459 uart1_pins: uart1_pins {
465 uart2_pins: uart2_pins {
467 brcm,function = <BCM2835_FSEL_ALT4>;
471 uart3_pins: uart3_pins {
473 brcm,function = <BCM2835_FSEL_ALT4>;
477 uart4_pins: uart4_pins {
479 brcm,function = <BCM2835_FSEL_ALT4>;
483 uart5_pins: uart5_pins {
485 brcm,function = <BCM2835_FSEL_ALT4>;
491 clock-frequency = <100000>;
495 pinctrl-names = "default";
496 pinctrl-0 = <&i2c1_pins>;
497 clock-frequency = <100000>;
501 pinctrl-names = "default";
502 pinctrl-0 = <&i2s_pins>;
505 // =============================================
506 // Board specific stuff here
509 power_ctrl: power_ctrl {
510 compatible = "gpio-poweroff";
511 gpios = <&expgpio 5 0>;
521 led-modes = <0x00 0x08>; /* link/activity link */
525 audio_pins: audio_pins {
534 linux,default-trigger = "default-on";
535 default-state = "on";
536 gpios = <&gpio 42 GPIO_ACTIVE_HIGH>;
541 linux,default-trigger = "default-on";
542 gpios = <&expgpio 2 GPIO_ACTIVE_LOW>;
551 pinctrl-names = "default";
552 pinctrl-0 = <&audio_pins>;
553 brcm,disable-headphones = <1>;
557 clock-frequency = <1950000>;
562 act_led_gpio = <&act_led>,"gpios:4";
563 act_led_activelow = <&act_led>,"gpios:8";
564 act_led_trigger = <&act_led>,"linux,default-trigger";
566 pwr_led_gpio = <&pwr_led>,"gpios:4";
567 pwr_led_activelow = <&pwr_led>,"gpios:8";
568 pwr_led_trigger = <&pwr_led>,"linux,default-trigger";
570 eth_led0 = <&phy1>,"led-modes:0";
571 eth_led1 = <&phy1>,"led-modes:4";
573 sd_poll_once = <&emmc2>, "non-removable?";
574 spi_dma4 = <&spi0>, "dmas:0=", <&dma40>,
575 <&spi0>, "dmas:8=", <&dma40>;