sunxi-6.13: orangepi-zero2w: Add missing nodes

This commit is contained in:
The-going
2025-04-11 16:09:01 +03:00
committed by Igor
parent 83d866af09
commit c01912967a

View File

@@ -1,12 +1,12 @@
From 8abc92df29fd8026d4ee52c6f5b8bd1a21d4ae15 Mon Sep 17 00:00:00 2001
From 8c593375ad60fcddda3b605810cc8d69308245d9 Mon Sep 17 00:00:00 2001
From: chraac <chraac@gmail.com>
Date: Fri, 15 Mar 2024 12:30:26 +0800
Subject: arm64: dts: sun50i-h618-orangepi-zero2w: Add missing nodes
---
.../arm64/boot/dts/allwinner/sun50i-h616.dtsi | 25 +-
.../allwinner/sun50i-h618-orangepi-zero2w.dts | 270 ++++++++++++++++++
2 files changed, 287 insertions(+), 8 deletions(-)
.../allwinner/sun50i-h618-orangepi-zero2w.dts | 289 ++++++++++++++++++
2 files changed, 306 insertions(+), 8 deletions(-)
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi
index fc134db28f75..3d7405e2a95f 100644
@@ -58,7 +58,7 @@ index fc134db28f75..3d7405e2a95f 100644
#size-cells = <0>;
};
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h618-orangepi-zero2w.dts b/arch/arm64/boot/dts/allwinner/sun50i-h618-orangepi-zero2w.dts
index a0fe7a9afb77..9353d3bf8115 100644
index a0fe7a9afb77..2296c359699e 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-h618-orangepi-zero2w.dts
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h618-orangepi-zero2w.dts
@@ -18,12 +18,27 @@ / {
@@ -109,7 +109,7 @@ index a0fe7a9afb77..9353d3bf8115 100644
};
};
@@ -52,6 +80,84 @@ reg_vcc3v3: vcc3v3 {
@@ -52,6 +80,85 @@ reg_vcc3v3: vcc3v3 {
vin-supply = <&reg_vcc5v>;
regulator-always-on;
};
@@ -150,7 +150,8 @@ index a0fe7a9afb77..9353d3bf8115 100644
+ resets = <&ccu RST_BUS_PWM>;
+ pwm-number = <6>;
+ pwm-base = <0x0>;
+ sunxi-pwms = <&pwm0>, <&pwm1>, <&pwm2>, <&pwm3>, <&pwm4>, <&pwm5>;
+ sunxi-pwms = <&pwm0>, <&pwm1>, <&pwm2>,
+ <&pwm3>, <&pwm4>, <&pwm5>;
+ #pwm-cells = <3>;
+ status = "okay";
+ };
@@ -194,7 +195,7 @@ index a0fe7a9afb77..9353d3bf8115 100644
};
&codec {
@@ -59,27 +165,103 @@ &codec {
@@ -59,27 +166,110 @@ &codec {
status = "okay";
};
@@ -208,6 +209,7 @@ index a0fe7a9afb77..9353d3bf8115 100644
+};
+
+&hdmi {
+ hvcc-supply = <&reg_aldo1>;
+ status = "okay";
+};
+
@@ -221,6 +223,12 @@ index a0fe7a9afb77..9353d3bf8115 100644
cpu-supply = <&reg_dcdc2>;
};
+&sid {
+ ephy_calibration: ephy-calibration@2c {
+ reg = <0x2c 0x2>;
+ };
+};
+
+&ehci0 {
+ status = "disabled";
+};
@@ -254,9 +262,9 @@ index a0fe7a9afb77..9353d3bf8115 100644
+ bus-width = <4>;
+ non-removable;
+ mmc-ddr-1_8v;
+ status = "okay";
+};
+
status = "okay";
};
+&emac0 {
+ status = "disabled";
+};
@@ -269,9 +277,9 @@ index a0fe7a9afb77..9353d3bf8115 100644
+ phy-supply = <&reg_dldo1>;
+ allwinner,rx-delay-ps = <3100>;
+ allwinner,tx-delay-ps = <700>;
status = "okay";
};
+ status = "okay";
+};
+
+&mdio1 {
+ rmii_phy: ethernet-phy@1 {
+ compatible = "ethernet-phy-ieee802.3-c22";
@@ -298,7 +306,7 @@ index a0fe7a9afb77..9353d3bf8115 100644
&pio {
vcc-pc-supply = <&reg_dldo1>;
vcc-pf-supply = <&reg_dldo1>; /* internally via VCC-IO */
@@ -144,6 +326,12 @@ reg_dcdc3: dcdc3 {
@@ -144,6 +334,12 @@ reg_dcdc3: dcdc3 {
};
};
@@ -311,7 +319,7 @@ index a0fe7a9afb77..9353d3bf8115 100644
&spi0 {
status = "okay";
pinctrl-names = "default";
@@ -158,12 +346,77 @@ flash@0 {
@@ -158,12 +354,77 @@ flash@0 {
};
};
@@ -389,11 +397,22 @@ index a0fe7a9afb77..9353d3bf8115 100644
&usbotg {
/*
* PHY0 pins are connected to a USB-C socket, but a role switch
@@ -184,3 +437,20 @@ &usbphy {
@@ -184,3 +445,31 @@ &usbphy {
usb1_vbus-supply = <&reg_vcc5v>;
status = "okay";
};
+
+&ahub_dam_plat {
+ status = "okay";
+};
+
+&ahub1_plat {
+ status = "okay";
+};
+
+&ahub1_mach {
+ status = "okay";
+};
+
+&cpu_critical {
+ temperature = <100000>;