1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter.git synced 2025-03-09 15:40:20 +00:00

Update bcm2711-rpi-cm4.dts

This commit is contained in:
suyuan168 2022-01-01 14:10:27 +08:00
parent 14dbfa1607
commit 334a3b1cb4

View file

@ -1,9 +1,8 @@
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
/dts-v1/; /dts-v1/;
#include "bcm2711.dtsi" #include "bcm2711.dtsi"
#include "bcm2835-rpi.dtsi" #include "bcm2711-rpi.dtsi"
//#include "bcm283x-rpi-usb-peripheral.dtsi"
#include <dt-bindings/reset/raspberrypi,firmware-reset.h>
/ { / {
compatible = "raspberrypi,4-compute-module", "brcm,bcm2711"; compatible = "raspberrypi,4-compute-module", "brcm,bcm2711";
@ -14,19 +13,6 @@
stdout-path = "serial1:115200n8"; stdout-path = "serial1:115200n8";
}; };
/* Will be filled by the bootloader */
memory@0 {
device_type = "memory";
reg = <0 0 0>;
};
aliases {
emmc2bus = &emmc2bus;
ethernet0 = &genet;
pcie0 = &pcie0;
blconfig = &blconfig;
};
leds { leds {
led-act { led-act {
gpios = <&gpio 42 GPIO_ACTIVE_HIGH>; gpios = <&gpio 42 GPIO_ACTIVE_HIGH>;
@ -54,8 +40,8 @@
regulator-always-on; regulator-always-on;
regulator-settling-time-us = <5000>; regulator-settling-time-us = <5000>;
gpios = <&expgpio 4 GPIO_ACTIVE_HIGH>; gpios = <&expgpio 4 GPIO_ACTIVE_HIGH>;
states = <1800000 0x1 states = <1800000 0x1>,
3300000 0x0>; <3300000 0x0>;
status = "okay"; status = "okay";
}; };
@ -78,42 +64,26 @@
status = "okay"; status = "okay";
}; };
&firmware { &expgpio {
firmware_clocks: clocks { gpio-line-names = "BT_ON",
compatible = "raspberrypi,firmware-clocks"; "WL_ON",
#clock-cells = <1>; "PWR_LED_OFF",
"ANT1",
"VDD_SD_IO_SEL",
"CAM_GPIO",
"SD_PWR_ON",
"ANT2";
ant1: ant1 {
gpio-hog;
gpios = <3 GPIO_ACTIVE_HIGH>;
output-high;
}; };
expgpio: gpio { ant2: ant2 {
compatible = "raspberrypi,firmware-gpio"; gpio-hog;
gpio-controller; gpios = <7 GPIO_ACTIVE_HIGH>;
#gpio-cells = <2>; output-low;
gpio-line-names = "BT_ON",
"WL_ON",
"PWR_LED_OFF",
"ANT1",
"VDD_SD_IO_SEL",
"CAM_GPIO",
"SD_PWR_ON",
"ANT2";
status = "okay";
ant1: ant1 {
gpio-hog;
gpios = <3 GPIO_ACTIVE_HIGH>;
output-high;
};
ant2: ant2 {
gpio-hog;
gpios = <7 GPIO_ACTIVE_HIGH>;
output-low;
};
};
reset: reset {
compatible = "raspberrypi,firmware-reset";
#reset-cells = <1>;
}; };
}; };
@ -191,23 +161,13 @@
}; };
&hdmi0 { &hdmi0 {
clocks = <&firmware_clocks 13>, <&firmware_clocks 14>, <&dvp 0>, <&clk_27MHz>;
clock-names = "hdmi", "bvb", "audio", "cec";
wifi-2.4ghz-coexistence;
status = "okay"; status = "okay";
}; };
&hdmi1 { &hdmi1 {
clocks = <&firmware_clocks 13>, <&firmware_clocks 14>, <&dvp 1>, <&clk_27MHz>;
clock-names = "hdmi", "bvb", "audio", "cec";
wifi-2.4ghz-coexistence;
status = "okay"; status = "okay";
}; };
&hvs {
clocks = <&firmware_clocks 4>;
};
&pixelvalve0 { &pixelvalve0 {
status = "okay"; status = "okay";
}; };
@ -230,22 +190,6 @@
status = "okay"; status = "okay";
}; };
&rmem {
/*
* RPi4's co-processor will copy the board's bootloader configuration
* into memory for the OS to consume. It'll also update this node with
* its placement information.
*/
blconfig: nvram@0 {
compatible = "raspberrypi,bootloader-config", "nvmem-rmem";
#address-cells = <1>;
#size-cells = <1>;
reg = <0x0 0x0 0x0>;
no-map;
status = "disabled";
};
};
/* SDHCI is used to control the SDIO for wireless */ /* SDHCI is used to control the SDIO for wireless */
&sdhci { &sdhci {
#address-cells = <1>; #address-cells = <1>;
@ -353,7 +297,6 @@
#include "bcm283x-rpi-csi0-2lane.dtsi" #include "bcm283x-rpi-csi0-2lane.dtsi"
#include "bcm283x-rpi-csi1-4lane.dtsi" #include "bcm283x-rpi-csi1-4lane.dtsi"
#include "bcm283x-rpi-i2c0mux_0_44.dtsi" #include "bcm283x-rpi-i2c0mux_0_44.dtsi"
#include "bcm283x-rpi-cam1-regulator.dtsi"
/ { / {
chosen { chosen {
@ -657,4 +600,4 @@ cam0_reg: &cam1_reg {
spi_dma4 = <&spi0>, "dmas:0=", <&dma40>, spi_dma4 = <&spi0>, "dmas:0=", <&dma40>,
<&spi0>, "dmas:8=", <&dma40>; <&spi0>, "dmas:8=", <&dma40>;
}; };
}; };