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:43:42 +08:00
parent 334a3b1cb4
commit 5d9df78192

View file

@ -6,7 +6,7 @@
/ {
compatible = "raspberrypi,4-compute-module", "brcm,bcm2711";
model = "Raspberry Pi Compute Module 4";
model = "openmptcprouter_5G_M4";
chosen {
/* 8250 auxiliary UART instead of pl011 */
@ -108,23 +108,10 @@
"SPI_MISO",
"SPI_MOSI",
"SPI_SCLK",
"GPIO12",
"GPIO13",
/* Serial port */
"TXD1",
"RXD1",
"GPIO16",
"GPIO17",
"GPIO18",
"GPIO19",
"GPIO20",
"GPIO21",
"GPIO22",
"GPIO23",
"GPIO24",
"GPIO25",
"GPIO26",
"GPIO27",
"RGMII_MDIO",
"RGMIO_MDC",
/* Used by BT module */
@ -341,119 +328,7 @@
pinctrl-0 = <&uart1_pins>;
};
&spi0 {
pinctrl-names = "default";
pinctrl-0 = <&spi0_pins &spi0_cs_pins>;
cs-gpios = <&gpio 8 1>, <&gpio 7 1>;
spidev0: spidev@0{
compatible = "spidev";
reg = <0>; /* CE0 */
#address-cells = <1>;
#size-cells = <0>;
spi-max-frequency = <125000000>;
};
spidev1: spidev@1{
compatible = "spidev";
reg = <1>; /* CE1 */
#address-cells = <1>;
#size-cells = <0>;
spi-max-frequency = <125000000>;
};
};
&gpio {
spi0_pins: spi0_pins {
brcm,pins = <9 10 11>;
brcm,function = <BCM2835_FSEL_ALT0>;
};
spi0_cs_pins: spi0_cs_pins {
brcm,pins = <8 7>;
brcm,function = <BCM2835_FSEL_GPIO_OUT>;
};
spi3_pins: spi3_pins {
brcm,pins = <1 2 3>;
brcm,function = <BCM2835_FSEL_ALT3>;
};
spi3_cs_pins: spi3_cs_pins {
brcm,pins = <0 24>;
brcm,function = <BCM2835_FSEL_GPIO_OUT>;
};
spi4_pins: spi4_pins {
brcm,pins = <5 6 7>;
brcm,function = <BCM2835_FSEL_ALT3>;
};
spi4_cs_pins: spi4_cs_pins {
brcm,pins = <4 25>;
brcm,function = <BCM2835_FSEL_GPIO_OUT>;
};
spi5_pins: spi5_pins {
brcm,pins = <13 14 15>;
brcm,function = <BCM2835_FSEL_ALT3>;
};
spi5_cs_pins: spi5_cs_pins {
brcm,pins = <12 26>;
brcm,function = <BCM2835_FSEL_GPIO_OUT>;
};
spi6_pins: spi6_pins {
brcm,pins = <19 20 21>;
brcm,function = <BCM2835_FSEL_ALT3>;
};
spi6_cs_pins: spi6_cs_pins {
brcm,pins = <18 27>;
brcm,function = <BCM2835_FSEL_GPIO_OUT>;
};
i2c0_pins: i2c0 {
brcm,pins = <0 1>;
brcm,function = <BCM2835_FSEL_ALT0>;
brcm,pull = <BCM2835_PUD_UP>;
};
i2c1_pins: i2c1 {
brcm,pins = <2 3>;
brcm,function = <BCM2835_FSEL_ALT0>;
brcm,pull = <BCM2835_PUD_UP>;
};
i2c3_pins: i2c3 {
brcm,pins = <4 5>;
brcm,function = <BCM2835_FSEL_ALT5>;
brcm,pull = <BCM2835_PUD_UP>;
};
i2c4_pins: i2c4 {
brcm,pins = <8 9>;
brcm,function = <BCM2835_FSEL_ALT5>;
brcm,pull = <BCM2835_PUD_UP>;
};
i2c5_pins: i2c5 {
brcm,pins = <12 13>;
brcm,function = <BCM2835_FSEL_ALT5>;
brcm,pull = <BCM2835_PUD_UP>;
};
i2c6_pins: i2c6 {
brcm,pins = <22 23>;
brcm,function = <BCM2835_FSEL_ALT5>;
brcm,pull = <BCM2835_PUD_UP>;
};
i2s_pins: i2s {
brcm,pins = <18 19 20 21>;
brcm,function = <BCM2835_FSEL_ALT0>;
};
sdio_pins: sdio_pins {
brcm,pins = <34 35 36 37 38 39>;
@ -497,29 +372,12 @@
brcm,function = <BCM2835_FSEL_ALT4>;
brcm,pull = <0 2>;
};
uart5_pins: uart5_pins {
brcm,pins = <12 13>;
brcm,function = <BCM2835_FSEL_ALT4>;
brcm,pull = <0 2>;
};
};
&i2c0if {
clock-frequency = <100000>;
};
&i2c1 {
pinctrl-names = "default";
pinctrl-0 = <&i2c1_pins>;
clock-frequency = <100000>;
};
&i2s {
pinctrl-names = "default";
pinctrl-0 = <&i2s_pins>;
};
// =============================================
// Board specific stuff here
@ -554,6 +412,81 @@
linux,default-trigger = "default-on";
gpios = <&expgpio 2 GPIO_ACTIVE_LOW>;
};
wlan2g {
label = "wlan2g";
gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
};
wlan5g {
label = "wlan5g";
gpios = <&gpio 3 GPIO_ACTIVE_HIGH>;
};
wan {
label = "wan";
gpios = <&gpio 27 GPIO_ACTIVE_HIGH>;
};
5g1 {
label = "5g1";
gpios = <&gpio 21 GPIO_ACTIVE_HIGH>;
};
5g2 {
label = "5g2";
gpios = <&gpio 20 GPIO_ACTIVE_HIGH>;
};
5g3 {
label = "5g3";
gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
};
5g4 {
label = "5g4";
gpios = <&gpio 12 GPIO_ACTIVE_HIGH>;
};
5g5 {
label = "5g5";
gpios = <&gpio 10 GPIO_ACTIVE_HIGH>;
};
5g6 {
label = "5g6";
gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
};
5gpwr1 {
label = "5gpwr1";
gpios = <&gpio 26 GPIO_ACTIVE_HIGH>;
};
5gpwr2 {
label = "5gpwr2";
gpios = <&gpio 19 GPIO_ACTIVE_HIGH>;
};
5gpwr3 {
label = "5gpwr3";
gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
};
5gpwr4 {
label = "5gpwr4";
gpios = <&gpio 24 GPIO_ACTIVE_HIGH>;
};
5gpwr5 {
label = "5gpwr5";
gpios = <&gpio 23 GPIO_ACTIVE_HIGH>;
};
5gpwr6 {
label = "5gpwr6";
gpios = <&gpio 18 GPIO_ACTIVE_HIGH>;
};
};
&pwm1 {