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

Update 950-0785-ARM-dts-Add-bcm2711-rpi-cm4.dts.patch

This commit is contained in:
suyuan168 2022-01-04 00:46:46 +08:00
parent 2fe61872f3
commit cc910caf82

View file

@ -9,7 +9,6 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.com>
---
arch/arm/boot/dts/Makefile | 3 +-
arch/arm/boot/dts/bcm2711-rpi-cm4.dts | 586 ++++++++++++++++++++++++++
arch/arm/boot/dts/overlays/README | 6 +
3 files changed, 594 insertions(+), 1 deletion(-)
create mode 100644 arch/arm/boot/dts/bcm2711-rpi-cm4.dts
@ -27,7 +26,7 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.com>
alpine-db.dtb
--- /dev/null
+++ b/arch/arm/boot/dts/bcm2711-rpi-cm4.dts
@@ -0,0 +1,536 @@
@@ -0,0 +1,541 @@
+// SPDX-License-Identifier: GPL-2.0
+/dts-v1/;
+#include "bcm2711.dtsi"
@ -49,7 +48,9 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.com>
+ };
+
+ aliases {
+ emmc2bus = &emmc2bus;
+ ethernet0 = &genet;
+ pcie0 = &pcie0;
+ };
+
+ leds {
@ -107,6 +108,7 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.com>
+
+&pwm1 {
+ pinctrl-names = "default";
+ brcm,disable-headphones = <1>;
+ pinctrl-0 = <&pwm1_0_gpio40 &pwm1_1_gpio41>;
+ status = "okay";
+};
@ -420,6 +422,8 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.com>
+ label = "led1";
+ linux,default-trigger = "default-on";
+ gpios = <&expgpio 2 GPIO_ACTIVE_LOW>;
+ default-state = "keep";
+ linux,default-trigger = "default-on";
+ };
+
+ wlan2g {
@ -563,19 +567,4 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.com>
+ spi_dma4 = <&spi0>, "dmas:0=", <&dma40>,
+ <&spi0>, "dmas:8=", <&dma40>;
+ };
+};
--- a/arch/arm/boot/dts/overlays/README
+++ b/arch/arm/boot/dts/overlays/README
@@ -92,6 +92,12 @@ Name: <The base DTB>
Info: Configures the base Raspberry Pi hardware
Load: <loaded automatically>
Params:
+ ant1 Select antenna 1 (default). CM4 only.
+
+ ant2 Select antenna 2. CM4 only.
+
+ noant Disable both antennas. CM4 only.
+
audio Set to "on" to enable the onboard ALSA audio
interface (default "off")
+};