Skip to contentSkip to conversation

rockchip: rk35xx: Sync device tree with linux v6.8-rc1

PATCH In review Jonas Karlman 3 participants 15 messages Jan 26, 2024 – Feb 1, 2024

Subsystems (5)
lore
Share & tools
lore
#0 lore raw

cover rockchip: rk35xx: Sync device tree with linux v6.8-rc1

This series sync RK356x and RK3588 device tree with linux v6.8-rc1. It also moves some common/default props into the SoC u-boot.dtsi files.

Also drop the rockchip,rk3568-dwc3 compatible now that dwc3-generic driver support the rockchip,rk3588-dwc3 compatible.

Patch 1-2 sync rk356x device trees
Patch 3 move common uart2 props to rk356x-u-boot.dtsi Patch 4-5 sync rk3588 device trees
Patch 6 add default u-boot,spl-boot-order prop to rk3588s-u-boot.dtsi Patch 7 remove unnecessary status = "okay" props

Jonas Karlman (7):
rockchip: rk356x: Sync device tree from linux v6.7
rockchip: rk356x: Sync device tree from linux v6.8-rc1
rockchip: rk356x: Move common uart2 props to rk356x-u-boot.dtsi
rockchip: rk3588: Sync device tree with linux v6.7
rockchip: rk3588: Sync device tree from linux v6.8-rc1
rockchip: rk3588: Add default u-boot,spl-boot-order prop
rockchip: rk35xx: Remove unnecessary status props

 .../arm/dts/rk3566-anbernic-rgxx3-u-boot.dtsi |   7 -
 arch/arm/dts/rk3566-anbernic-rgxx3.dtsi       |  42 ++---
 arch/arm/dts/rk3566-quartz64-a-u-boot.dtsi    |  12 --
 arch/arm/dts/rk3566-quartz64-a.dts            |   7 +-
 arch/arm/dts/rk3566-quartz64-b-u-boot.dtsi    |  12 --
 arch/arm/dts/rk3566-quartz64-b.dts            |   2 -
 arch/arm/dts/rk3566-radxa-cm3-io-u-boot.dtsi  |  12 --
 arch/arm/dts/rk3566-radxa-cm3-io.dts          |   5 +-
 arch/arm/dts/rk3566-soquartz-blade.dts        |   4 +
 arch/arm/dts/rk3566-soquartz-cm4.dts          |   4 +
 arch/arm/dts/rk3566-soquartz-model-a.dts      |   4 +
 arch/arm/dts/rk3566-soquartz-u-boot.dtsi      |  12 --
 arch/arm/dts/rk3566-soquartz.dtsi             |   4 -
 arch/arm/dts/rk3568-bpi-r2-pro-u-boot.dtsi    |  13 --
 arch/arm/dts/rk3568-evb-u-boot.dtsi           |  17 --
 arch/arm/dts/rk3568-evb.dts                   |   3 -
 arch/arm/dts/rk3568-generic-u-boot.dtsi       |  11 --
 arch/arm/dts/rk3568-lubancat-2-u-boot.dtsi    |  12 --
 arch/arm/dts/rk3568-lubancat-2.dts            |   3 -
 arch/arm/dts/rk3568-nanopi-r5s-u-boot.dtsi    |  12 --
 arch/arm/dts/rk3568-nanopi-r5s.dtsi           |   3 -
 arch/arm/dts/rk3568-odroid-m1-u-boot.dtsi     |  12 --
 arch/arm/dts/rk3568-odroid-m1.dts             |   3 -
 arch/arm/dts/rk3568-radxa-cm3i.dtsi           |   3 -
 arch/arm/dts/rk3568-radxa-e25-u-boot.dtsi     |  12 --
 arch/arm/dts/rk3568-rock-3a-u-boot.dtsi       |  12 --
 arch/arm/dts/rk3568-rock-3a.dts               |   7 +-
 arch/arm/dts/rk356x-u-boot.dtsi               |  12 +-
 arch/arm/dts/rk356x.dtsi                      |  20 ++-
 arch/arm/dts/rk3588-edgeble-neu6a-io.dts      |   4 -
 arch/arm/dts/rk3588-edgeble-neu6b-io.dts      |   6 +-
 arch/arm/dts/rk3588-evb1-v10.dts              |  99 +++++++++++-
 arch/arm/dts/rk3588-nanopc-t6-u-boot.dtsi     |   6 -
 arch/arm/dts/rk3588-nanopc-t6.dts             |  10 +-
 .../dts/rk3588-orangepi-5-plus-u-boot.dtsi    |   6 -
 arch/arm/dts/rk3588-orangepi-5-plus.dts       |   1 -
 arch/arm/dts/rk3588-quartzpro64-u-boot.dtsi   |   6 -
 arch/arm/dts/rk3588-quartzpro64.dts           |   2 +-
 arch/arm/dts/rk3588-rock-5b-u-boot.dtsi       |  12 --
 arch/arm/dts/rk3588-rock-5b.dts               |  13 +-
 arch/arm/dts/rk3588-turing-rk1-u-boot.dtsi    |   7 -
 arch/arm/dts/rk3588-turing-rk1.dtsi           |   6 +-
 arch/arm/dts/rk3588-u-boot.dtsi               |   2 +-
 arch/arm/dts/rk3588s-orangepi-5.dts           |   9 +-
 arch/arm/dts/rk3588s-pinctrl.dtsi             |   2 +-
 arch/arm/dts/rk3588s-rock-5a-u-boot.dtsi      |   6 -
 arch/arm/dts/rk3588s-rock-5a.dts              |  10 +-
 arch/arm/dts/rk3588s-u-boot.dtsi              |  49 ++----
 arch/arm/dts/rk3588s.dtsi                     | 152 ++++++++++++++++++
 arch/arm/mach-rockchip/rk3588/syscon_rk3588.c |   2 +-
 include/dt-bindings/clock/rk3568-cru.h        |   1 +
 include/dt-bindings/soc/rockchip,vop2.h       |   4 +
 52 files changed, 372 insertions(+), 325 deletions(-)
Signature · 1 line
2.43.0
#1 lore raw

PATCH 1/7 rockchip: rk356x: Sync device tree from linux v6.7

Sync rk356x device tree from linux v6.7.

---
 arch/arm/dts/rk3566-anbernic-rgxx3.dtsi | 42 +++++++++++++------------
 arch/arm/dts/rk3566-quartz64-a.dts      |  2 --
 arch/arm/dts/rk3566-quartz64-b.dts      |  2 --
 arch/arm/dts/rk3566-radxa-cm3-io.dts    |  4 +--
 arch/arm/dts/rk3566-soquartz.dtsi       |  3 --
 arch/arm/dts/rk3568-evb.dts             |  3 --
 arch/arm/dts/rk3568-lubancat-2.dts      |  3 --
 arch/arm/dts/rk3568-nanopi-r5s.dtsi     |  3 --
 arch/arm/dts/rk3568-odroid-m1.dts       |  3 --
 arch/arm/dts/rk3568-radxa-cm3i.dtsi     |  3 --
 arch/arm/dts/rk3568-rock-3a.dts         |  7 +++--
 arch/arm/dts/rk356x.dtsi                | 20 +++++++++++-
 include/dt-bindings/clock/rk3568-cru.h  |  1 +
 13 files changed, 48 insertions(+), 48 deletions(-)
arch/arm/dts/rk3566-anbernic-rgxx3.dtsi +22 -20
index ad43fa199ca5..8cbf3d9a4f22 100644
@@ -191,30 +191,30 @@
 		};
 	};
 
-	leds: gpio-leds {
-		compatible = "gpio-leds";
-		pinctrl-0 = <&led_pins>;
-		pinctrl-names = "default";
+	leds: pwm-leds {
+		compatible = "pwm-leds";
 
 		green_led: led-0 {
 			color = <LED_COLOR_ID_GREEN>;
 			default-state = "on";
 			function = LED_FUNCTION_POWER;
-			gpios = <&gpio0 RK_PC5 GPIO_ACTIVE_HIGH>;
+			max-brightness = <255>;
+			pwms = <&pwm6 0 25000 0>;
 		};
 
 		amber_led: led-1 {
 			color = <LED_COLOR_ID_AMBER>;
 			function = LED_FUNCTION_CHARGING;
-			gpios = <&gpio0 RK_PC6 GPIO_ACTIVE_HIGH>;
-			retain-state-suspended;
+			max-brightness = <255>;
+			pwms = <&pwm7 0 25000 0>;
 		};
 
 		red_led: led-2 {
 			color = <LED_COLOR_ID_RED>;
 			default-state = "off";
 			function = LED_FUNCTION_STATUS;
-			gpios = <&gpio0 RK_PC7 GPIO_ACTIVE_HIGH>;
+			max-brightness = <255>;
+			pwms = <&pwm0 0 25000 0>;
 		};
 	};
 
@@ -356,7 +356,6 @@
 				regulator-boot-on;
 				regulator-min-microvolt = <500000>;
 				regulator-max-microvolt = <1350000>;
-				regulator-init-microvolt = <900000>;
 				regulator-ramp-delay = <6001>;
 				regulator-initial-mode = <0x2>;
 				regulator-name = "vdd_logic";
@@ -371,7 +370,6 @@
 				regulator-boot-on;
 				regulator-min-microvolt = <500000>;
 				regulator-max-microvolt = <1350000>;
-				regulator-init-microvolt = <900000>;
 				regulator-ramp-delay = <6001>;
 				regulator-initial-mode = <0x2>;
 				regulator-name = "vdd_gpu";
@@ -533,7 +531,6 @@
 		regulator-boot-on;
 		regulator-min-microvolt = <712500>;
 		regulator-max-microvolt = <1390000>;
-		regulator-init-microvolt = <900000>;
 		regulator-name = "vdd_cpu";
 		regulator-ramp-delay = <2300>;
 		vin-supply = <&vcc_sys>;
@@ -597,15 +594,6 @@
 		};
 	};
 
-	gpio-led {
-		led_pins: led-pins {
-			rockchip,pins =
-				<0 RK_PC5 RK_FUNC_GPIO &pcfg_pull_none>,
-				<0 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>,
-				<0 RK_PC7 RK_FUNC_GPIO &pcfg_pull_none>;
-		};
-	};
-
 	joy-mux {
 		joy_mux_en: joy-mux-en {
 			rockchip,pins =
@@ -654,10 +642,24 @@
 	vccio7-supply = <&vcc_3v3>;
 };
 
+&pwm0 {
+	pinctrl-0 = <&pwm0m1_pins>;
+	pinctrl-names = "default";
+	status = "okay";
+};
+
 &pwm5 {
 	status = "okay";
 };
 
+&pwm6 {
+	status = "okay";
+};
+
+&pwm7 {
+	status = "okay";
+};
+
 &saradc {
 	vref-supply = <&vcc_1v8>;
 	status = "okay";
arch/arm/dts/rk3566-quartz64-a.dts +0 -2
index 25a8c781f4e7..854d02b46e6f 100644
@@ -366,7 +366,6 @@
 				regulator-boot-on;
 				regulator-min-microvolt = <500000>;
 				regulator-max-microvolt = <1350000>;
-				regulator-init-microvolt = <900000>;
 				regulator-ramp-delay = <6001>;
 				regulator-initial-mode = <0x2>;
 				regulator-name = "vdd_logic";
@@ -381,7 +380,6 @@
 				regulator-boot-on;
 				regulator-min-microvolt = <500000>;
 				regulator-max-microvolt = <1350000>;
-				regulator-init-microvolt = <900000>;
 				regulator-ramp-delay = <6001>;
 				regulator-initial-mode = <0x2>;
 				regulator-name = "vdd_gpu";
arch/arm/dts/rk3566-quartz64-b.dts +0 -2
index b276eb0810c7..2d92713be2a0 100644
@@ -277,7 +277,6 @@
 				regulator-boot-on;
 				regulator-min-microvolt = <500000>;
 				regulator-max-microvolt = <1350000>;
-				regulator-init-microvolt = <900000>;
 				regulator-ramp-delay = <6001>;
 
 				regulator-state-mem {
@@ -292,7 +291,6 @@
 				regulator-boot-on;
 				regulator-min-microvolt = <900000>;
 				regulator-max-microvolt = <1350000>;
-				regulator-init-microvolt = <900000>;
 				regulator-ramp-delay = <6001>;
 
 				regulator-state-mem {
arch/arm/dts/rk3566-radxa-cm3-io.dts +2 -2
index 5e4236af4fcb..1b1c67d5b1ef 100644
@@ -137,8 +137,8 @@
 
 &mdio1 {
 	rgmii_phy1: ethernet-phy@0 {
-		compatible="ethernet-phy-ieee802.3-c22";
-		reg= <0x0>;
+		compatible = "ethernet-phy-ieee802.3-c22";
+		reg = <0x0>;
 	};
 };
 
arch/arm/dts/rk3566-soquartz.dtsi +0 -3
index 31aa2b8efe39..63bae36b8f7e 100644
@@ -234,7 +234,6 @@
 				regulator-boot-on;
 				regulator-min-microvolt = <500000>;
 				regulator-max-microvolt = <1350000>;
-				regulator-init-microvolt = <900000>;
 				regulator-ramp-delay = <6001>;
 				regulator-initial-mode = <0x2>;
 				regulator-state-mem {
@@ -249,7 +248,6 @@
 				regulator-boot-on;
 				regulator-min-microvolt = <500000>;
 				regulator-max-microvolt = <1350000>;
-				regulator-init-microvolt = <900000>;
 				regulator-ramp-delay = <6001>;
 				regulator-initial-mode = <0x2>;
 					regulator-state-mem {
@@ -272,7 +270,6 @@
 				regulator-boot-on;
 				regulator-min-microvolt = <500000>;
 				regulator-max-microvolt = <1350000>;
-				regulator-init-microvolt = <900000>;
 				regulator-initial-mode = <0x2>;
 				regulator-name = "vdd_npu";
 				regulator-state-mem {
arch/arm/dts/rk3568-evb.dts +0 -3
index 674792567fa6..19f8fc369b13 100644
@@ -293,7 +293,6 @@
 				regulator-name = "vdd_logic";
 				regulator-always-on;
 				regulator-boot-on;
-				regulator-init-microvolt = <900000>;
 				regulator-initial-mode = <0x2>;
 				regulator-min-microvolt = <500000>;
 				regulator-max-microvolt = <1350000>;
@@ -307,7 +306,6 @@
 			vdd_gpu: DCDC_REG2 {
 				regulator-name = "vdd_gpu";
 				regulator-always-on;
-				regulator-init-microvolt = <900000>;
 				regulator-initial-mode = <0x2>;
 				regulator-min-microvolt = <500000>;
 				regulator-max-microvolt = <1350000>;
@@ -331,7 +329,6 @@
 
 			vdd_npu: DCDC_REG4 {
 				regulator-name = "vdd_npu";
-				regulator-init-microvolt = <900000>;
 				regulator-initial-mode = <0x2>;
 				regulator-min-microvolt = <500000>;
 				regulator-max-microvolt = <1350000>;
arch/arm/dts/rk3568-lubancat-2.dts +0 -3
index e653b067aa5d..a8a4cc190eb3 100644
@@ -243,7 +243,6 @@
 				regulator-boot-on;
 				regulator-min-microvolt = <500000>;
 				regulator-max-microvolt = <1350000>;
-				regulator-init-microvolt = <900000>;
 				regulator-ramp-delay = <6001>;
 				regulator-initial-mode = <0x2>;
 
@@ -258,7 +257,6 @@
 				regulator-boot-on;
 				regulator-min-microvolt = <500000>;
 				regulator-max-microvolt = <1350000>;
-				regulator-init-microvolt = <900000>;
 				regulator-ramp-delay = <6001>;
 				regulator-initial-mode = <0x2>;
 
@@ -284,7 +282,6 @@
 				regulator-boot-on;
 				regulator-min-microvolt = <500000>;
 				regulator-max-microvolt = <1350000>;
-				regulator-init-microvolt = <900000>;
 				regulator-ramp-delay = <6001>;
 				regulator-initial-mode = <0x2>;
 
arch/arm/dts/rk3568-nanopi-r5s.dtsi +0 -3
index 58ba328ea782..93189f830640 100644
@@ -232,7 +232,6 @@
 				regulator-name = "vdd_logic";
 				regulator-always-on;
 				regulator-boot-on;
-				regulator-init-microvolt = <900000>;
 				regulator-initial-mode = <0x2>;
 				regulator-min-microvolt = <500000>;
 				regulator-max-microvolt = <1350000>;
@@ -246,7 +245,6 @@
 			vdd_gpu: DCDC_REG2 {
 				regulator-name = "vdd_gpu";
 				regulator-always-on;
-				regulator-init-microvolt = <900000>;
 				regulator-initial-mode = <0x2>;
 				regulator-min-microvolt = <500000>;
 				regulator-max-microvolt = <1350000>;
@@ -270,7 +268,6 @@
 
 			vdd_npu: DCDC_REG4 {
 				regulator-name = "vdd_npu";
-				regulator-init-microvolt = <900000>;
 				regulator-initial-mode = <0x2>;
 				regulator-min-microvolt = <500000>;
 				regulator-max-microvolt = <1350000>;
arch/arm/dts/rk3568-odroid-m1.dts +0 -3
index 59ecf868dbd0..a337f547caf5 100644
@@ -291,7 +291,6 @@
 				regulator-name = "vdd_logic";
 				regulator-always-on;
 				regulator-boot-on;
-				regulator-init-microvolt = <900000>;
 				regulator-initial-mode = <0x2>;
 				regulator-min-microvolt = <500000>;
 				regulator-max-microvolt = <1350000>;
@@ -305,7 +304,6 @@
 			vdd_gpu: DCDC_REG2 {
 				regulator-name = "vdd_gpu";
 				regulator-always-on;
-				regulator-init-microvolt = <900000>;
 				regulator-initial-mode = <0x2>;
 				regulator-min-microvolt = <500000>;
 				regulator-max-microvolt = <1350000>;
@@ -329,7 +327,6 @@
 
 			vdd_npu: DCDC_REG4 {
 				regulator-name = "vdd_npu";
-				regulator-init-microvolt = <900000>;
 				regulator-initial-mode = <0x2>;
 				regulator-min-microvolt = <500000>;
 				regulator-max-microvolt = <1350000>;
arch/arm/dts/rk3568-radxa-cm3i.dtsi +0 -3
index c50fbdd48680..45b03dcbbad4 100644
@@ -163,7 +163,6 @@
 				regulator-name = "vdd_logic";
 				regulator-always-on;
 				regulator-boot-on;
-				regulator-init-microvolt = <900000>;
 				regulator-initial-mode = <0x2>;
 				regulator-min-microvolt = <500000>;
 				regulator-max-microvolt = <1350000>;
@@ -177,7 +176,6 @@
 			vdd_gpu: DCDC_REG2 {
 				regulator-name = "vdd_gpu";
 				regulator-always-on;
-				regulator-init-microvolt = <900000>;
 				regulator-initial-mode = <0x2>;
 				regulator-min-microvolt = <500000>;
 				regulator-max-microvolt = <1350000>;
@@ -201,7 +199,6 @@
 
 			vdd_npu: DCDC_REG4 {
 				regulator-name = "vdd_npu";
-				regulator-init-microvolt = <900000>;
 				regulator-initial-mode = <0x2>;
 				regulator-min-microvolt = <500000>;
 				regulator-max-microvolt = <1350000>;
arch/arm/dts/rk3568-rock-3a.dts +4 -3
index 917f5b2b8aab..a5e974ea659e 100644
@@ -15,6 +15,7 @@
 		ethernet0 = &gmac1;
 		mmc0 = &sdhci;
 		mmc1 = &sdmmc0;
+		mmc2 = &sdmmc2;
 	};
 
 	chosen: chosen {
@@ -350,7 +351,6 @@
 				regulator-name = "vdd_logic";
 				regulator-always-on;
 				regulator-boot-on;
-				regulator-init-microvolt = <900000>;
 				regulator-initial-mode = <0x2>;
 				regulator-min-microvolt = <500000>;
 				regulator-max-microvolt = <1350000>;
@@ -364,7 +364,6 @@
 			vdd_gpu: DCDC_REG2 {
 				regulator-name = "vdd_gpu";
 				regulator-always-on;
-				regulator-init-microvolt = <900000>;
 				regulator-initial-mode = <0x2>;
 				regulator-min-microvolt = <500000>;
 				regulator-max-microvolt = <1350000>;
@@ -388,7 +387,6 @@
 
 			vdd_npu: DCDC_REG4 {
 				regulator-name = "vdd_npu";
-				regulator-init-microvolt = <900000>;
 				regulator-initial-mode = <0x2>;
 				regulator-min-microvolt = <500000>;
 				regulator-max-microvolt = <1350000>;
@@ -750,6 +748,9 @@
 	non-removable;
 	pinctrl-names = "default";
 	pinctrl-0 = <&sdmmc2m0_bus4 &sdmmc2m0_cmd &sdmmc2m0_clk>;
+	sd-uhs-sdr12;
+	sd-uhs-sdr25;
+	sd-uhs-sdr50;
 	sd-uhs-sdr104;
 	vmmc-supply = <&vcc3v3_sys>;
 	vqmmc-supply = <&vcc_1v8>;
arch/arm/dts/rk356x.dtsi +19 -1
index 61680c7ac489..c19c0f1b3778 100644
@@ -613,6 +613,17 @@
 		#iommu-cells = <0>;
 	};
 
+	rga: rga@fdeb0000 {
+		compatible = "rockchip,rk3568-rga", "rockchip,rk3288-rga";
+		reg = <0x0 0xfdeb0000 0x0 0x180>;
+		interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>;
+		clocks = <&cru ACLK_RGA>, <&cru HCLK_RGA>, <&cru CLK_RGA_CORE>;
+		clock-names = "aclk", "hclk", "sclk";
+		resets = <&cru SRST_RGA_CORE>, <&cru SRST_A_RGA>, <&cru SRST_H_RGA>;
+		reset-names = "core", "axi", "ahb";
+		power-domains = <&power RK3568_PD_RGA>;
+	};
+
 	vepu: video-codec@fdee0000 {
 		compatible = "rockchip,rk3568-vepu";
 		reg = <0x0 0xfdee0000 0x0 0x800>;
@@ -948,6 +959,13 @@
 		reg = <0x0 0xfe1a8100 0x0 0x20>;
 	};
 
+	dfi: dfi@fe230000 {
+		compatible = "rockchip,rk3568-dfi";
+		reg = <0x00 0xfe230000 0x00 0x400>;
+		interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
+		rockchip,pmu = <&pmugrf>;
+	};
+
 	pcie2x1: pcie@fe260000 {
 		compatible = "rockchip,rk3568-pcie";
 		reg = <0x3 0xc0000000 0x0 0x00400000>,
@@ -959,7 +977,7 @@
 			     <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>,
 			     <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>,
 			     <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
-		interrupt-names = "sys", "pmc", "msi", "legacy", "err";
+		interrupt-names = "sys", "pmc", "msg", "legacy", "err";
 		bus-range = <0x0 0xf>;
 		clocks = <&cru ACLK_PCIE20_MST>, <&cru ACLK_PCIE20_SLV>,
 			 <&cru ACLK_PCIE20_DBI>, <&cru PCLK_PCIE20>,
include/dt-bindings/clock/rk3568-cru.h +1 -0
index c1942422a438..d29890865150 100644
@@ -478,6 +478,7 @@
 #define CPLL_50M		415
 #define CPLL_25M		416
 #define CPLL_100M		417
+#define SCLK_DDRCLK		418
 
 #define PCLK_CORE_PVTM		450
 
Signature · 1 line
2.43.0
Reviewed-by on v1 1/7
#2 lore raw

Re: [PATCH 1/7] rockchip: rk356x: Sync device tree from linux v6.7

Quoted 3 lines · Jonas Karlman

Sync rk356x device tree from linux v6.7.

Thanks,
- Kever

Quoted 450 lines
---
  arch/arm/dts/rk3566-anbernic-rgxx3.dtsi | 42 +++++++++++++------------
  arch/arm/dts/rk3566-quartz64-a.dts      |  2 --
  arch/arm/dts/rk3566-quartz64-b.dts      |  2 --
  arch/arm/dts/rk3566-radxa-cm3-io.dts    |  4 +--
  arch/arm/dts/rk3566-soquartz.dtsi       |  3 --
  arch/arm/dts/rk3568-evb.dts             |  3 --
  arch/arm/dts/rk3568-lubancat-2.dts      |  3 --
  arch/arm/dts/rk3568-nanopi-r5s.dtsi     |  3 --
  arch/arm/dts/rk3568-odroid-m1.dts       |  3 --
  arch/arm/dts/rk3568-radxa-cm3i.dtsi     |  3 --
  arch/arm/dts/rk3568-rock-3a.dts         |  7 +++--
  arch/arm/dts/rk356x.dtsi                | 20 +++++++++++-
  include/dt-bindings/clock/rk3568-cru.h  |  1 +
  13 files changed, 48 insertions(+), 48 deletions(-)
arch/arm/dts/rk3566-anbernic-rgxx3.dtsi +22 -20
index ad43fa199ca5..8cbf3d9a4f22 100644
@@ -191,30 +191,30 @@
  		};
  	};
 
-	leds: gpio-leds {
-		compatible = "gpio-leds";
-		pinctrl-0 = <&led_pins>;
-		pinctrl-names = "default";
+	leds: pwm-leds {
+		compatible = "pwm-leds";
 
  		green_led: led-0 {
  			color = <LED_COLOR_ID_GREEN>;
  			default-state = "on";
  			function = LED_FUNCTION_POWER;
-			gpios = <&gpio0 RK_PC5 GPIO_ACTIVE_HIGH>;
+			max-brightness = <255>;
+			pwms = <&pwm6 0 25000 0>;
  		};
 
  		amber_led: led-1 {
  			color = <LED_COLOR_ID_AMBER>;
  			function = LED_FUNCTION_CHARGING;
-			gpios = <&gpio0 RK_PC6 GPIO_ACTIVE_HIGH>;
-			retain-state-suspended;
+			max-brightness = <255>;
+			pwms = <&pwm7 0 25000 0>;
  		};
 
  		red_led: led-2 {
  			color = <LED_COLOR_ID_RED>;
  			default-state = "off";
  			function = LED_FUNCTION_STATUS;
-			gpios = <&gpio0 RK_PC7 GPIO_ACTIVE_HIGH>;
+			max-brightness = <255>;
+			pwms = <&pwm0 0 25000 0>;
  		};
  	};
 
@@ -356,7 +356,6 @@
  				regulator-boot-on;
  				regulator-min-microvolt = <500000>;
  				regulator-max-microvolt = <1350000>;
-				regulator-init-microvolt = <900000>;
  				regulator-ramp-delay = <6001>;
  				regulator-initial-mode = <0x2>;
  				regulator-name = "vdd_logic";
@@ -371,7 +370,6 @@
  				regulator-boot-on;
  				regulator-min-microvolt = <500000>;
  				regulator-max-microvolt = <1350000>;
-				regulator-init-microvolt = <900000>;
  				regulator-ramp-delay = <6001>;
  				regulator-initial-mode = <0x2>;
  				regulator-name = "vdd_gpu";
@@ -533,7 +531,6 @@
  		regulator-boot-on;
  		regulator-min-microvolt = <712500>;
  		regulator-max-microvolt = <1390000>;
-		regulator-init-microvolt = <900000>;
  		regulator-name = "vdd_cpu";
  		regulator-ramp-delay = <2300>;
  		vin-supply = <&vcc_sys>;
@@ -597,15 +594,6 @@
  		};
  	};
 
-	gpio-led {
-		led_pins: led-pins {
-			rockchip,pins =
-				<0 RK_PC5 RK_FUNC_GPIO &pcfg_pull_none>,
-				<0 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>,
-				<0 RK_PC7 RK_FUNC_GPIO &pcfg_pull_none>;
-		};
-	};
-
  	joy-mux {
  		joy_mux_en: joy-mux-en {
  			rockchip,pins =
@@ -654,10 +642,24 @@
  	vccio7-supply = <&vcc_3v3>;
  };
 
+&pwm0 {
+	pinctrl-0 = <&pwm0m1_pins>;
+	pinctrl-names = "default";
+	status = "okay";
+};
+
  &pwm5 {
  	status = "okay";
  };
 
+&pwm6 {
+	status = "okay";
+};
+
+&pwm7 {
+	status = "okay";
+};
+
  &saradc {
  	vref-supply = <&vcc_1v8>;
  	status = "okay";
arch/arm/dts/rk3566-quartz64-a.dts +0 -2
index 25a8c781f4e7..854d02b46e6f 100644
@@ -366,7 +366,6 @@
  				regulator-boot-on;
  				regulator-min-microvolt = <500000>;
  				regulator-max-microvolt = <1350000>;
-				regulator-init-microvolt = <900000>;
  				regulator-ramp-delay = <6001>;
  				regulator-initial-mode = <0x2>;
  				regulator-name = "vdd_logic";
@@ -381,7 +380,6 @@
  				regulator-boot-on;
  				regulator-min-microvolt = <500000>;
  				regulator-max-microvolt = <1350000>;
-				regulator-init-microvolt = <900000>;
  				regulator-ramp-delay = <6001>;
  				regulator-initial-mode = <0x2>;
  				regulator-name = "vdd_gpu";
arch/arm/dts/rk3566-quartz64-b.dts +0 -2
index b276eb0810c7..2d92713be2a0 100644
@@ -277,7 +277,6 @@
  				regulator-boot-on;
  				regulator-min-microvolt = <500000>;
  				regulator-max-microvolt = <1350000>;
-				regulator-init-microvolt = <900000>;
  				regulator-ramp-delay = <6001>;
 
  				regulator-state-mem {
@@ -292,7 +291,6 @@
  				regulator-boot-on;
  				regulator-min-microvolt = <900000>;
  				regulator-max-microvolt = <1350000>;
-				regulator-init-microvolt = <900000>;
  				regulator-ramp-delay = <6001>;
 
  				regulator-state-mem {
arch/arm/dts/rk3566-radxa-cm3-io.dts +2 -2
index 5e4236af4fcb..1b1c67d5b1ef 100644
@@ -137,8 +137,8 @@
 
  &mdio1 {
  	rgmii_phy1: ethernet-phy@0 {
-		compatible="ethernet-phy-ieee802.3-c22";
-		reg= <0x0>;
+		compatible = "ethernet-phy-ieee802.3-c22";
+		reg = <0x0>;
  	};
  };
 
arch/arm/dts/rk3566-soquartz.dtsi +0 -3
index 31aa2b8efe39..63bae36b8f7e 100644
@@ -234,7 +234,6 @@
  				regulator-boot-on;
  				regulator-min-microvolt = <500000>;
  				regulator-max-microvolt = <1350000>;
-				regulator-init-microvolt = <900000>;
  				regulator-ramp-delay = <6001>;
  				regulator-initial-mode = <0x2>;
  				regulator-state-mem {
@@ -249,7 +248,6 @@
  				regulator-boot-on;
  				regulator-min-microvolt = <500000>;
  				regulator-max-microvolt = <1350000>;
-				regulator-init-microvolt = <900000>;
  				regulator-ramp-delay = <6001>;
  				regulator-initial-mode = <0x2>;
  					regulator-state-mem {
@@ -272,7 +270,6 @@
  				regulator-boot-on;
  				regulator-min-microvolt = <500000>;
  				regulator-max-microvolt = <1350000>;
-				regulator-init-microvolt = <900000>;
  				regulator-initial-mode = <0x2>;
  				regulator-name = "vdd_npu";
  				regulator-state-mem {
arch/arm/dts/rk3568-evb.dts +0 -3
index 674792567fa6..19f8fc369b13 100644
@@ -293,7 +293,6 @@
  				regulator-name = "vdd_logic";
  				regulator-always-on;
  				regulator-boot-on;
-				regulator-init-microvolt = <900000>;
  				regulator-initial-mode = <0x2>;
  				regulator-min-microvolt = <500000>;
  				regulator-max-microvolt = <1350000>;
@@ -307,7 +306,6 @@
  			vdd_gpu: DCDC_REG2 {
  				regulator-name = "vdd_gpu";
  				regulator-always-on;
-				regulator-init-microvolt = <900000>;
  				regulator-initial-mode = <0x2>;
  				regulator-min-microvolt = <500000>;
  				regulator-max-microvolt = <1350000>;
@@ -331,7 +329,6 @@
 
  			vdd_npu: DCDC_REG4 {
  				regulator-name = "vdd_npu";
-				regulator-init-microvolt = <900000>;
  				regulator-initial-mode = <0x2>;
  				regulator-min-microvolt = <500000>;
  				regulator-max-microvolt = <1350000>;
arch/arm/dts/rk3568-lubancat-2.dts +0 -3
index e653b067aa5d..a8a4cc190eb3 100644
@@ -243,7 +243,6 @@
  				regulator-boot-on;
  				regulator-min-microvolt = <500000>;
  				regulator-max-microvolt = <1350000>;
-				regulator-init-microvolt = <900000>;
  				regulator-ramp-delay = <6001>;
  				regulator-initial-mode = <0x2>;
 
@@ -258,7 +257,6 @@
  				regulator-boot-on;
  				regulator-min-microvolt = <500000>;
  				regulator-max-microvolt = <1350000>;
-				regulator-init-microvolt = <900000>;
  				regulator-ramp-delay = <6001>;
  				regulator-initial-mode = <0x2>;
 
@@ -284,7 +282,6 @@
  				regulator-boot-on;
  				regulator-min-microvolt = <500000>;
  				regulator-max-microvolt = <1350000>;
-				regulator-init-microvolt = <900000>;
  				regulator-ramp-delay = <6001>;
  				regulator-initial-mode = <0x2>;
 
arch/arm/dts/rk3568-nanopi-r5s.dtsi +0 -3
index 58ba328ea782..93189f830640 100644
@@ -232,7 +232,6 @@
  				regulator-name = "vdd_logic";
  				regulator-always-on;
  				regulator-boot-on;
-				regulator-init-microvolt = <900000>;
  				regulator-initial-mode = <0x2>;
  				regulator-min-microvolt = <500000>;
  				regulator-max-microvolt = <1350000>;
@@ -246,7 +245,6 @@
  			vdd_gpu: DCDC_REG2 {
  				regulator-name = "vdd_gpu";
  				regulator-always-on;
-				regulator-init-microvolt = <900000>;
  				regulator-initial-mode = <0x2>;
  				regulator-min-microvolt = <500000>;
  				regulator-max-microvolt = <1350000>;
@@ -270,7 +268,6 @@
 
  			vdd_npu: DCDC_REG4 {
  				regulator-name = "vdd_npu";
-				regulator-init-microvolt = <900000>;
  				regulator-initial-mode = <0x2>;
  				regulator-min-microvolt = <500000>;
  				regulator-max-microvolt = <1350000>;
arch/arm/dts/rk3568-odroid-m1.dts +0 -3
index 59ecf868dbd0..a337f547caf5 100644
@@ -291,7 +291,6 @@
  				regulator-name = "vdd_logic";
  				regulator-always-on;
  				regulator-boot-on;
-				regulator-init-microvolt = <900000>;
  				regulator-initial-mode = <0x2>;
  				regulator-min-microvolt = <500000>;
  				regulator-max-microvolt = <1350000>;
@@ -305,7 +304,6 @@
  			vdd_gpu: DCDC_REG2 {
  				regulator-name = "vdd_gpu";
  				regulator-always-on;
-				regulator-init-microvolt = <900000>;
  				regulator-initial-mode = <0x2>;
  				regulator-min-microvolt = <500000>;
  				regulator-max-microvolt = <1350000>;
@@ -329,7 +327,6 @@
 
  			vdd_npu: DCDC_REG4 {
  				regulator-name = "vdd_npu";
-				regulator-init-microvolt = <900000>;
  				regulator-initial-mode = <0x2>;
  				regulator-min-microvolt = <500000>;
  				regulator-max-microvolt = <1350000>;
arch/arm/dts/rk3568-radxa-cm3i.dtsi +0 -3
index c50fbdd48680..45b03dcbbad4 100644
@@ -163,7 +163,6 @@
  				regulator-name = "vdd_logic";
  				regulator-always-on;
  				regulator-boot-on;
-				regulator-init-microvolt = <900000>;
  				regulator-initial-mode = <0x2>;
  				regulator-min-microvolt = <500000>;
  				regulator-max-microvolt = <1350000>;
@@ -177,7 +176,6 @@
  			vdd_gpu: DCDC_REG2 {
  				regulator-name = "vdd_gpu";
  				regulator-always-on;
-				regulator-init-microvolt = <900000>;
  				regulator-initial-mode = <0x2>;
  				regulator-min-microvolt = <500000>;
  				regulator-max-microvolt = <1350000>;
@@ -201,7 +199,6 @@
 
  			vdd_npu: DCDC_REG4 {
  				regulator-name = "vdd_npu";
-				regulator-init-microvolt = <900000>;
  				regulator-initial-mode = <0x2>;
  				regulator-min-microvolt = <500000>;
  				regulator-max-microvolt = <1350000>;
arch/arm/dts/rk3568-rock-3a.dts +4 -3
index 917f5b2b8aab..a5e974ea659e 100644
@@ -15,6 +15,7 @@
  		ethernet0 = &gmac1;
  		mmc0 = &sdhci;
  		mmc1 = &sdmmc0;
+		mmc2 = &sdmmc2;
  	};
 
  	chosen: chosen {
@@ -350,7 +351,6 @@
  				regulator-name = "vdd_logic";
  				regulator-always-on;
  				regulator-boot-on;
-				regulator-init-microvolt = <900000>;
  				regulator-initial-mode = <0x2>;
  				regulator-min-microvolt = <500000>;
  				regulator-max-microvolt = <1350000>;
@@ -364,7 +364,6 @@
  			vdd_gpu: DCDC_REG2 {
  				regulator-name = "vdd_gpu";
  				regulator-always-on;
-				regulator-init-microvolt = <900000>;
  				regulator-initial-mode = <0x2>;
  				regulator-min-microvolt = <500000>;
  				regulator-max-microvolt = <1350000>;
@@ -388,7 +387,6 @@
 
  			vdd_npu: DCDC_REG4 {
  				regulator-name = "vdd_npu";
-				regulator-init-microvolt = <900000>;
  				regulator-initial-mode = <0x2>;
  				regulator-min-microvolt = <500000>;
  				regulator-max-microvolt = <1350000>;
@@ -750,6 +748,9 @@
  	non-removable;
  	pinctrl-names = "default";
  	pinctrl-0 = <&sdmmc2m0_bus4 &sdmmc2m0_cmd &sdmmc2m0_clk>;
+	sd-uhs-sdr12;
+	sd-uhs-sdr25;
+	sd-uhs-sdr50;
  	sd-uhs-sdr104;
  	vmmc-supply = <&vcc3v3_sys>;
  	vqmmc-supply = <&vcc_1v8>;
arch/arm/dts/rk356x.dtsi +19 -1
index 61680c7ac489..c19c0f1b3778 100644
@@ -613,6 +613,17 @@
  		#iommu-cells = <0>;
  	};
 
+	rga: rga@fdeb0000 {
+		compatible = "rockchip,rk3568-rga", "rockchip,rk3288-rga";
+		reg = <0x0 0xfdeb0000 0x0 0x180>;
+		interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>;
+		clocks = <&cru ACLK_RGA>, <&cru HCLK_RGA>, <&cru CLK_RGA_CORE>;
+		clock-names = "aclk", "hclk", "sclk";
+		resets = <&cru SRST_RGA_CORE>, <&cru SRST_A_RGA>, <&cru SRST_H_RGA>;
+		reset-names = "core", "axi", "ahb";
+		power-domains = <&power RK3568_PD_RGA>;
+	};
+
  	vepu: video-codec@fdee0000 {
  		compatible = "rockchip,rk3568-vepu";
  		reg = <0x0 0xfdee0000 0x0 0x800>;
@@ -948,6 +959,13 @@
  		reg = <0x0 0xfe1a8100 0x0 0x20>;
  	};
 
+	dfi: dfi@fe230000 {
+		compatible = "rockchip,rk3568-dfi";
+		reg = <0x00 0xfe230000 0x00 0x400>;
+		interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
+		rockchip,pmu = <&pmugrf>;
+	};
+
  	pcie2x1: pcie@fe260000 {
  		compatible = "rockchip,rk3568-pcie";
  		reg = <0x3 0xc0000000 0x0 0x00400000>,
@@ -959,7 +977,7 @@
  			     <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>,
  			     <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>,
  			     <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
-		interrupt-names = "sys", "pmc", "msi", "legacy", "err";
+		interrupt-names = "sys", "pmc", "msg", "legacy", "err";
  		bus-range = <0x0 0xf>;
  		clocks = <&cru ACLK_PCIE20_MST>, <&cru ACLK_PCIE20_SLV>,
  			 <&cru ACLK_PCIE20_DBI>, <&cru PCLK_PCIE20>,
include/dt-bindings/clock/rk3568-cru.h +1 -0
index c1942422a438..d29890865150 100644
@@ -478,6 +478,7 @@
  #define CPLL_50M		415
  #define CPLL_25M		416
  #define CPLL_100M		417
+#define SCLK_DDRCLK		418
 
  #define PCLK_CORE_PVTM		450
 
#3 lore raw

PATCH 2/7 rockchip: rk356x: Sync device tree from linux v6.8-rc1

In reply to Jonas Karlman

Sync rk356x device tree from linux v6.8-rc1.

---
 arch/arm/dts/rk3566-quartz64-a.dts       | 5 +++--
 arch/arm/dts/rk3566-radxa-cm3-io.dts     | 1 +
 arch/arm/dts/rk3566-soquartz-blade.dts   | 4 ++++
 arch/arm/dts/rk3566-soquartz-cm4.dts     | 4 ++++
 arch/arm/dts/rk3566-soquartz-model-a.dts | 4 ++++
 arch/arm/dts/rk3566-soquartz.dtsi        | 1 -
 6 files changed, 16 insertions(+), 3 deletions(-)
arch/arm/dts/rk3566-quartz64-a.dts +3 -2
index 854d02b46e6f..59843a7a199c 100644
@@ -31,8 +31,9 @@
 	fan: gpio_fan {
 		compatible = "gpio-fan";
 		gpios = <&gpio0 RK_PD5 GPIO_ACTIVE_HIGH>;
-		gpio-fan,speed-map = <0    0
-				      4500 1>;
+		gpio-fan,speed-map =
+				<   0 0>,
+				<4500 1>;
 		pinctrl-names = "default";
 		pinctrl-0 = <&fan_en_h>;
 		#cooling-cells = <2>;
arch/arm/dts/rk3566-radxa-cm3-io.dts +1 -0
index 1b1c67d5b1ef..3ae24e39450a 100644
@@ -14,6 +14,7 @@
 	compatible = "radxa,cm3-io", "radxa,cm3", "rockchip,rk3566";
 
 	aliases {
+		ethernet0 = &gmac1;
 		mmc1 = &sdmmc0;
 	};
 
arch/arm/dts/rk3566-soquartz-blade.dts +4 -0
index 4e49bebf548b..fdbf1c783242 100644
@@ -13,6 +13,10 @@
 	model = "PINE64 RK3566 SOQuartz on Blade carrier board";
 	compatible = "pine64,soquartz-blade", "pine64,soquartz", "rockchip,rk3566";
 
+	aliases {
+		ethernet0 = &gmac1;
+	};
+
 	/* labeled VCC3V0_SD in schematic to not conflict with PMIC regulator */
 	vcc3v0_sd: vcc3v0-sd-regulator {
 		compatible = "regulator-fixed";
arch/arm/dts/rk3566-soquartz-cm4.dts +4 -0
index cddf6cd2fecb..6ed3fa4aee34 100644
@@ -8,6 +8,10 @@
 	model = "Pine64 RK3566 SoQuartz with CM4-IO Carrier Board";
 	compatible = "pine64,soquartz-cm4io", "pine64,soquartz", "rockchip,rk3566";
 
+	aliases {
+		ethernet0 = &gmac1;
+	};
+
 	/* labeled +12v in schematic */
 	vcc12v_dcin: vcc12v-dcin-regulator {
 		compatible = "regulator-fixed";
arch/arm/dts/rk3566-soquartz-model-a.dts +4 -0
index 2208dbfb7f0a..f2095dfa4eaf 100644
@@ -8,6 +8,10 @@
 	model = "PINE64 RK3566 SOQuartz on Model A carrier board";
 	compatible = "pine64,soquartz-model-a", "pine64,soquartz", "rockchip,rk3566";
 
+	aliases {
+		ethernet0 = &gmac1;
+	};
+
 	/* labeled DCIN_12V in schematic */
 	vcc12v_dcin: vcc12v-dcin-regulator {
 		compatible = "regulator-fixed";
arch/arm/dts/rk3566-soquartz.dtsi +0 -1
index 63bae36b8f7e..bfb7b952f4c5 100644
@@ -12,7 +12,6 @@
 	compatible = "pine64,soquartz", "rockchip,rk3566";
 
 	aliases {
-		ethernet0 = &gmac1;
 		mmc0 = &sdmmc0;
 		mmc1 = &sdhci;
 		mmc2 = &sdmmc1;
Signature · 1 line
2.43.0
Reviewed-by on v1 2/7
#4 lore raw

Re: [PATCH 2/7] rockchip: rk356x: Sync device tree from linux v6.8-rc1

Quoted 3 lines · Jonas Karlman

Sync rk356x device tree from linux v6.8-rc1.

Thanks,
- Kever

Quoted 94 lines
---
  arch/arm/dts/rk3566-quartz64-a.dts       | 5 +++--
  arch/arm/dts/rk3566-radxa-cm3-io.dts     | 1 +
  arch/arm/dts/rk3566-soquartz-blade.dts   | 4 ++++
  arch/arm/dts/rk3566-soquartz-cm4.dts     | 4 ++++
  arch/arm/dts/rk3566-soquartz-model-a.dts | 4 ++++
  arch/arm/dts/rk3566-soquartz.dtsi        | 1 -
  6 files changed, 16 insertions(+), 3 deletions(-)
arch/arm/dts/rk3566-quartz64-a.dts +3 -2
index 854d02b46e6f..59843a7a199c 100644
@@ -31,8 +31,9 @@
  	fan: gpio_fan {
  		compatible = "gpio-fan";
  		gpios = <&gpio0 RK_PD5 GPIO_ACTIVE_HIGH>;
-		gpio-fan,speed-map = <0    0
-				      4500 1>;
+		gpio-fan,speed-map =
+				<   0 0>,
+				<4500 1>;
  		pinctrl-names = "default";
  		pinctrl-0 = <&fan_en_h>;
  		#cooling-cells = <2>;
arch/arm/dts/rk3566-radxa-cm3-io.dts +1 -0
index 1b1c67d5b1ef..3ae24e39450a 100644
@@ -14,6 +14,7 @@
  	compatible = "radxa,cm3-io", "radxa,cm3", "rockchip,rk3566";
 
  	aliases {
+		ethernet0 = &gmac1;
  		mmc1 = &sdmmc0;
  	};
 
arch/arm/dts/rk3566-soquartz-blade.dts +4 -0
index 4e49bebf548b..fdbf1c783242 100644
@@ -13,6 +13,10 @@
  	model = "PINE64 RK3566 SOQuartz on Blade carrier board";
  	compatible = "pine64,soquartz-blade", "pine64,soquartz", "rockchip,rk3566";
 
+	aliases {
+		ethernet0 = &gmac1;
+	};
+
  	/* labeled VCC3V0_SD in schematic to not conflict with PMIC regulator */
  	vcc3v0_sd: vcc3v0-sd-regulator {
  		compatible = "regulator-fixed";
arch/arm/dts/rk3566-soquartz-cm4.dts +4 -0
index cddf6cd2fecb..6ed3fa4aee34 100644
@@ -8,6 +8,10 @@
  	model = "Pine64 RK3566 SoQuartz with CM4-IO Carrier Board";
  	compatible = "pine64,soquartz-cm4io", "pine64,soquartz", "rockchip,rk3566";
 
+	aliases {
+		ethernet0 = &gmac1;
+	};
+
  	/* labeled +12v in schematic */
  	vcc12v_dcin: vcc12v-dcin-regulator {
  		compatible = "regulator-fixed";
arch/arm/dts/rk3566-soquartz-model-a.dts +4 -0
index 2208dbfb7f0a..f2095dfa4eaf 100644
@@ -8,6 +8,10 @@
  	model = "PINE64 RK3566 SOQuartz on Model A carrier board";
  	compatible = "pine64,soquartz-model-a", "pine64,soquartz", "rockchip,rk3566";
 
+	aliases {
+		ethernet0 = &gmac1;
+	};
+
  	/* labeled DCIN_12V in schematic */
  	vcc12v_dcin: vcc12v-dcin-regulator {
  		compatible = "regulator-fixed";
arch/arm/dts/rk3566-soquartz.dtsi +0 -1
index 63bae36b8f7e..bfb7b952f4c5 100644
@@ -12,7 +12,6 @@
  	compatible = "pine64,soquartz", "rockchip,rk3566";
 
  	aliases {
-		ethernet0 = &gmac1;
  		mmc0 = &sdmmc0;
  		mmc1 = &sdhci;
  		mmc2 = &sdmmc1;
#5 lore raw

PATCH 3/7 rockchip: rk356x: Move common uart2 props to rk356x-u-boot.dtsi

In reply to Jonas Karlman

Move uart2 bootph-pre-ram and clock-frequency props from board to SoC u-boot.dtsi. Regular board device tree already enables the uart2 node, so status prop is dropped from u-boot.dtsi file.

Also remove unnecessary stdout-path = &uart2, regular board device tree already provide a stdout-path = "serial2:" value.

---
 arch/arm/dts/rk3566-anbernic-rgxx3-u-boot.dtsi |  7 -------
 arch/arm/dts/rk3566-quartz64-a-u-boot.dtsi     | 12 ------------
 arch/arm/dts/rk3566-quartz64-b-u-boot.dtsi     | 12 ------------
 arch/arm/dts/rk3566-radxa-cm3-io-u-boot.dtsi   | 12 ------------
 arch/arm/dts/rk3566-soquartz-u-boot.dtsi       | 12 ------------
 arch/arm/dts/rk3568-bpi-r2-pro-u-boot.dtsi     | 13 -------------
 arch/arm/dts/rk3568-evb-u-boot.dtsi            | 17 -----------------
 arch/arm/dts/rk3568-generic-u-boot.dtsi        | 11 -----------
 arch/arm/dts/rk3568-lubancat-2-u-boot.dtsi     | 12 ------------
 arch/arm/dts/rk3568-nanopi-r5s-u-boot.dtsi     | 12 ------------
 arch/arm/dts/rk3568-odroid-m1-u-boot.dtsi      | 12 ------------
 arch/arm/dts/rk3568-radxa-e25-u-boot.dtsi      | 12 ------------
 arch/arm/dts/rk3568-rock-3a-u-boot.dtsi        | 12 ------------
 arch/arm/dts/rk356x-u-boot.dtsi                |  5 +++++
 14 files changed, 5 insertions(+), 156 deletions(-)
arch/arm/dts/rk3566-anbernic-rgxx3-u-boot.dtsi +0 -7
index f986e1941e7f..fa3df73c33db 100644
@@ -4,7 +4,6 @@
 
 / {
 	chosen {
-		stdout-path = &uart2;
 		u-boot,spl-boot-order = "same-as-spl", &sdmmc1, &sdmmc0;
 	};
 
@@ -88,9 +87,3 @@
 	vqmmc-supply = <&vcc_1v8>;
 	status = "okay";
 };
-
-&uart2 {
-	clock-frequency = <24000000>;
-	bootph-all;
-	status = "okay";
-};
arch/arm/dts/rk3566-quartz64-a-u-boot.dtsi +0 -12
index 06cc15ed21b8..11976fd3a6e0 100644
@@ -2,12 +2,6 @@
 
 #include "rk356x-u-boot.dtsi"
 
-/ {
-	chosen {
-		stdout-path = &uart2;
-	};
-};
-
 &gpio0 {
 	bootph-all;
 };
@@ -28,12 +22,6 @@
 	};
 };
 
-&uart2 {
-	bootph-all;
-	clock-frequency = <24000000>;
-	status = "okay";
-};
-
 /*
  * U-Boot does not support multiple regulators using the same gpio,
  * use vcc5v0_usb20_host to fix use of USB 2.0 port
arch/arm/dts/rk3566-quartz64-b-u-boot.dtsi +0 -12
index 3c2c54e94183..8de9d1535efb 100644
@@ -2,12 +2,6 @@
 
 #include "rk356x-u-boot.dtsi"
 
-/ {
-	chosen {
-		stdout-path = &uart2;
-	};
-};
-
 &sdhci {
 	cap-mmc-highspeed;
 	mmc-ddr-1_8v;
@@ -24,12 +18,6 @@
 	};
 };
 
-&uart2 {
-	bootph-all;
-	clock-frequency = <24000000>;
-	status = "okay";
-};
-
 &usb_host0_xhci {
 	dr_mode = "host";
 };
arch/arm/dts/rk3566-radxa-cm3-io-u-boot.dtsi +0 -12
index c925439f71cd..158f652cb3b1 100644
@@ -5,19 +5,7 @@
 
 #include "rk356x-u-boot.dtsi"
 
-/ {
-	chosen {
-		stdout-path = &uart2;
-	};
-};
-
 &sdhci {
 	cap-mmc-highspeed;
 	mmc-ddr-1_8v;
 };
-
-&uart2 {
-	clock-frequency = <24000000>;
-	bootph-all;
-	status = "okay";
-};
arch/arm/dts/rk3566-soquartz-u-boot.dtsi +0 -12
index 793cca2ceaca..f65f4067f3e9 100644
@@ -2,12 +2,6 @@
 
 #include "rk356x-u-boot.dtsi"
 
-/ {
-	chosen {
-		stdout-path = &uart2;
-	};
-};
-
 &sdhci {
 	cap-mmc-highspeed;
 	mmc-ddr-1_8v;
@@ -15,12 +9,6 @@
 	pinctrl-0 = <&emmc_bus8 &emmc_clk &emmc_cmd &emmc_datastrobe>;
 };
 
-&uart2 {
-	bootph-all;
-	clock-frequency = <24000000>;
-	status = "okay";
-};
-
 &usb_host0_xhci {
 	dr_mode = "host";
 };
arch/arm/dts/rk3568-bpi-r2-pro-u-boot.dtsi +0 -13
index 60a3b21f2d45..5f4f14b3bdae 100644
@@ -4,16 +4,3 @@
  */
 
 #include "rk356x-u-boot.dtsi"
-
-/ {
-	chosen {
-		stdout-path = &uart2;
-	};
-};
-
-&uart2 {
-	clock-frequency = <24000000>;
-	bootph-pre-ram;
-	status = "okay";
-};
-
arch/arm/dts/rk3568-evb-u-boot.dtsi +0 -17
index 382a52a28b10..5f4f14b3bdae 100644
@@ -4,20 +4,3 @@
  */
 
 #include "rk356x-u-boot.dtsi"
-
-/ {
-	chosen {
-		stdout-path = &uart2;
-		u-boot,spl-boot-order = "same-as-spl", &sdmmc0, &sdhci;
-	};
-};
-
-&sdmmc0 {
-	status = "okay";
-};
-
-&uart2 {
-	clock-frequency = <24000000>;
-	bootph-pre-ram;
-	status = "okay";
-};
arch/arm/dts/rk3568-generic-u-boot.dtsi +0 -11
index 90022580a13b..6e8307e3bdf6 100644
@@ -1,14 +1,3 @@
 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
 
 #include "rk356x-u-boot.dtsi"
-
-/ {
-	chosen {
-		stdout-path = &uart2;
-	};
-};
-
-&uart2 {
-	bootph-pre-ram;
-	clock-frequency = <24000000>;
-};
arch/arm/dts/rk3568-lubancat-2-u-boot.dtsi +0 -12
index 27c627752333..a44ac35bdacd 100644
@@ -6,12 +6,6 @@
 
 #include "rk356x-u-boot.dtsi"
 
-/ {
-	chosen {
-		stdout-path = &uart2;
-	};
-};
-
 &sdhci {
 	cap-mmc-highspeed;
 	mmc-ddr-1_8v;
@@ -19,9 +13,3 @@
 	mmc-hs400-enhanced-strobe;
 	pinctrl-0 = <&emmc_bus8 &emmc_clk &emmc_cmd &emmc_datastrobe>;
 };
-
-&uart2 {
-	bootph-all;
-	clock-frequency = <24000000>;
-	status = "okay";
-};
arch/arm/dts/rk3568-nanopi-r5s-u-boot.dtsi +0 -12
index 880f8ff91fcb..62f572c4cf9f 100644
@@ -8,12 +8,6 @@
 
 #include "rk356x-u-boot.dtsi"
 
-/ {
-	chosen {
-		stdout-path = &uart2;
-	};
-};
-
 &pcie3x1 {
 	/delete-property/ vpcie3v3-supply;
 };
@@ -27,12 +21,6 @@
 	pinctrl-0 = <&emmc_bus8 &emmc_clk &emmc_cmd &emmc_datastrobe>;
 };
 
-&uart2 {
-	clock-frequency = <24000000>;
-	bootph-all;
-	status = "okay";
-};
-
 &vcc5v0_usb_host {
 	/delete-property/ regulator-always-on;
 	/delete-property/ regulator-boot-on;
arch/arm/dts/rk3568-odroid-m1-u-boot.dtsi +0 -12
index 0fc360b06df7..ecba91aa30f5 100644
@@ -2,12 +2,6 @@
 
 #include "rk356x-u-boot.dtsi"
 
-/ {
-	chosen {
-		stdout-path = &uart2;
-	};
-};
-
 &fspi_dual_io_pins {
 	bootph-all;
 };
@@ -29,9 +23,3 @@
 		bootph-pre-ram;
 	};
 };
-
-&uart2 {
-	bootph-all;
-	clock-frequency = <24000000>;
-	status = "okay";
-};
arch/arm/dts/rk3568-radxa-e25-u-boot.dtsi +0 -12
index 1136f0bb3b81..caf524443079 100644
@@ -2,12 +2,6 @@
 
 #include "rk356x-u-boot.dtsi"
 
-/ {
-	chosen {
-		stdout-path = &uart2;
-	};
-};
-
 &pcie3x1 {
 	pinctrl-0 = <&pcie30x1_reset_h>;
 };
@@ -28,12 +22,6 @@
 	mmc-hs400-enhanced-strobe;
 };
 
-&uart2 {
-	bootph-all;
-	clock-frequency = <24000000>;
-	status = "okay";
-};
-
 &usb_host0_xhci {
 	dr_mode = "host";
 };
arch/arm/dts/rk3568-rock-3a-u-boot.dtsi +0 -12
index b05b7151e6c7..46ebb77283f1 100644
@@ -6,12 +6,6 @@
 
 #include "rk356x-u-boot.dtsi"
 
-/ {
-	chosen {
-		stdout-path = &uart2;
-	};
-};
-
 &pcie3x2 {
 	pinctrl-0 = <&pcie3x2_reset_h>;
 };
@@ -48,9 +42,3 @@
 		spi-tx-bus-width = <1>;
 	};
 };
-
-&uart2 {
-	clock-frequency = <24000000>;
-	bootph-all;
-	status = "okay";
-};
arch/arm/dts/rk356x-u-boot.dtsi +5 -0
index 354b6958e572..cacd45348a49 100644
@@ -141,6 +141,11 @@
 	bootph-pre-ram;
 };
 
+&uart2 {
+	bootph-pre-ram;
+	clock-frequency = <24000000>;
+};
+
 #ifdef CONFIG_ROCKCHIP_SPI_IMAGE
 &binman {
 	simple-bin-spi {
Signature · 1 line
2.43.0
Reviewed-by on v1 3/7
#6 lore raw

Re: [PATCH 3/7] rockchip: rk356x: Move common uart2 props to rk356x-u-boot.dtsi

Quoted 8 lines · Jonas Karlman

Move uart2 bootph-pre-ram and clock-frequency props from board to SoC u-boot.dtsi. Regular board device tree already enables the uart2 node, so status prop is dropped from u-boot.dtsi file.

Also remove unnecessary stdout-path = &uart2, regular board device tree already provide a stdout-path = "serial2:" value.

Thanks,
- Kever

Quoted 375 lines
---
  arch/arm/dts/rk3566-anbernic-rgxx3-u-boot.dtsi |  7 -------
  arch/arm/dts/rk3566-quartz64-a-u-boot.dtsi     | 12 ------------
  arch/arm/dts/rk3566-quartz64-b-u-boot.dtsi     | 12 ------------
  arch/arm/dts/rk3566-radxa-cm3-io-u-boot.dtsi   | 12 ------------
  arch/arm/dts/rk3566-soquartz-u-boot.dtsi       | 12 ------------
  arch/arm/dts/rk3568-bpi-r2-pro-u-boot.dtsi     | 13 -------------
  arch/arm/dts/rk3568-evb-u-boot.dtsi            | 17 -----------------
  arch/arm/dts/rk3568-generic-u-boot.dtsi        | 11 -----------
  arch/arm/dts/rk3568-lubancat-2-u-boot.dtsi     | 12 ------------
  arch/arm/dts/rk3568-nanopi-r5s-u-boot.dtsi     | 12 ------------
  arch/arm/dts/rk3568-odroid-m1-u-boot.dtsi      | 12 ------------
  arch/arm/dts/rk3568-radxa-e25-u-boot.dtsi      | 12 ------------
  arch/arm/dts/rk3568-rock-3a-u-boot.dtsi        | 12 ------------
  arch/arm/dts/rk356x-u-boot.dtsi                |  5 +++++
  14 files changed, 5 insertions(+), 156 deletions(-)
arch/arm/dts/rk3566-anbernic-rgxx3-u-boot.dtsi +0 -7
index f986e1941e7f..fa3df73c33db 100644
@@ -4,7 +4,6 @@
 
  / {
  	chosen {
-		stdout-path = &uart2;
  		u-boot,spl-boot-order = "same-as-spl", &sdmmc1, &sdmmc0;
  	};
 
@@ -88,9 +87,3 @@
  	vqmmc-supply = <&vcc_1v8>;
  	status = "okay";
  };
-
-&uart2 {
-	clock-frequency = <24000000>;
-	bootph-all;
-	status = "okay";
-};
arch/arm/dts/rk3566-quartz64-a-u-boot.dtsi +0 -12
index 06cc15ed21b8..11976fd3a6e0 100644
@@ -2,12 +2,6 @@
 
  #include "rk356x-u-boot.dtsi"
 
-/ {
-	chosen {
-		stdout-path = &uart2;
-	};
-};
-
  &gpio0 {
  	bootph-all;
  };
@@ -28,12 +22,6 @@
  	};
  };
 
-&uart2 {
-	bootph-all;
-	clock-frequency = <24000000>;
-	status = "okay";
-};
-
  /*
   * U-Boot does not support multiple regulators using the same gpio,
   * use vcc5v0_usb20_host to fix use of USB 2.0 port
arch/arm/dts/rk3566-quartz64-b-u-boot.dtsi +0 -12
index 3c2c54e94183..8de9d1535efb 100644
@@ -2,12 +2,6 @@
 
  #include "rk356x-u-boot.dtsi"
 
-/ {
-	chosen {
-		stdout-path = &uart2;
-	};
-};
-
  &sdhci {
  	cap-mmc-highspeed;
  	mmc-ddr-1_8v;
@@ -24,12 +18,6 @@
  	};
  };
 
-&uart2 {
-	bootph-all;
-	clock-frequency = <24000000>;
-	status = "okay";
-};
-
  &usb_host0_xhci {
  	dr_mode = "host";
  };
arch/arm/dts/rk3566-radxa-cm3-io-u-boot.dtsi +0 -12
index c925439f71cd..158f652cb3b1 100644
@@ -5,19 +5,7 @@
 
  #include "rk356x-u-boot.dtsi"
 
-/ {
-	chosen {
-		stdout-path = &uart2;
-	};
-};
-
  &sdhci {
  	cap-mmc-highspeed;
  	mmc-ddr-1_8v;
  };
-
-&uart2 {
-	clock-frequency = <24000000>;
-	bootph-all;
-	status = "okay";
-};
arch/arm/dts/rk3566-soquartz-u-boot.dtsi +0 -12
index 793cca2ceaca..f65f4067f3e9 100644
@@ -2,12 +2,6 @@
 
  #include "rk356x-u-boot.dtsi"
 
-/ {
-	chosen {
-		stdout-path = &uart2;
-	};
-};
-
  &sdhci {
  	cap-mmc-highspeed;
  	mmc-ddr-1_8v;
@@ -15,12 +9,6 @@
  	pinctrl-0 = <&emmc_bus8 &emmc_clk &emmc_cmd &emmc_datastrobe>;
  };
 
-&uart2 {
-	bootph-all;
-	clock-frequency = <24000000>;
-	status = "okay";
-};
-
  &usb_host0_xhci {
  	dr_mode = "host";
  };
arch/arm/dts/rk3568-bpi-r2-pro-u-boot.dtsi +0 -13
index 60a3b21f2d45..5f4f14b3bdae 100644
@@ -4,16 +4,3 @@
   */
 
  #include "rk356x-u-boot.dtsi"
-
-/ {
-	chosen {
-		stdout-path = &uart2;
-	};
-};
-
-&uart2 {
-	clock-frequency = <24000000>;
-	bootph-pre-ram;
-	status = "okay";
-};
-
arch/arm/dts/rk3568-evb-u-boot.dtsi +0 -17
index 382a52a28b10..5f4f14b3bdae 100644
@@ -4,20 +4,3 @@
   */
 
  #include "rk356x-u-boot.dtsi"
-
-/ {
-	chosen {
-		stdout-path = &uart2;
-		u-boot,spl-boot-order = "same-as-spl", &sdmmc0, &sdhci;
-	};
-};
-
-&sdmmc0 {
-	status = "okay";
-};
-
-&uart2 {
-	clock-frequency = <24000000>;
-	bootph-pre-ram;
-	status = "okay";
-};
arch/arm/dts/rk3568-generic-u-boot.dtsi +0 -11
index 90022580a13b..6e8307e3bdf6 100644
@@ -1,14 +1,3 @@
  // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
 
  #include "rk356x-u-boot.dtsi"
-
-/ {
-	chosen {
-		stdout-path = &uart2;
-	};
-};
-
-&uart2 {
-	bootph-pre-ram;
-	clock-frequency = <24000000>;
-};
arch/arm/dts/rk3568-lubancat-2-u-boot.dtsi +0 -12
index 27c627752333..a44ac35bdacd 100644
@@ -6,12 +6,6 @@
 
  #include "rk356x-u-boot.dtsi"
 
-/ {
-	chosen {
-		stdout-path = &uart2;
-	};
-};
-
  &sdhci {
  	cap-mmc-highspeed;
  	mmc-ddr-1_8v;
@@ -19,9 +13,3 @@
  	mmc-hs400-enhanced-strobe;
  	pinctrl-0 = <&emmc_bus8 &emmc_clk &emmc_cmd &emmc_datastrobe>;
  };
-
-&uart2 {
-	bootph-all;
-	clock-frequency = <24000000>;
-	status = "okay";
-};
arch/arm/dts/rk3568-nanopi-r5s-u-boot.dtsi +0 -12
index 880f8ff91fcb..62f572c4cf9f 100644
@@ -8,12 +8,6 @@
 
  #include "rk356x-u-boot.dtsi"
 
-/ {
-	chosen {
-		stdout-path = &uart2;
-	};
-};
-
  &pcie3x1 {
  	/delete-property/ vpcie3v3-supply;
  };
@@ -27,12 +21,6 @@
  	pinctrl-0 = <&emmc_bus8 &emmc_clk &emmc_cmd &emmc_datastrobe>;
  };
 
-&uart2 {
-	clock-frequency = <24000000>;
-	bootph-all;
-	status = "okay";
-};
-
  &vcc5v0_usb_host {
  	/delete-property/ regulator-always-on;
  	/delete-property/ regulator-boot-on;
arch/arm/dts/rk3568-odroid-m1-u-boot.dtsi +0 -12
index 0fc360b06df7..ecba91aa30f5 100644
@@ -2,12 +2,6 @@
 
  #include "rk356x-u-boot.dtsi"
 
-/ {
-	chosen {
-		stdout-path = &uart2;
-	};
-};
-
  &fspi_dual_io_pins {
  	bootph-all;
  };
@@ -29,9 +23,3 @@
  		bootph-pre-ram;
  	};
  };
-
-&uart2 {
-	bootph-all;
-	clock-frequency = <24000000>;
-	status = "okay";
-};
arch/arm/dts/rk3568-radxa-e25-u-boot.dtsi +0 -12
index 1136f0bb3b81..caf524443079 100644
@@ -2,12 +2,6 @@
 
  #include "rk356x-u-boot.dtsi"
 
-/ {
-	chosen {
-		stdout-path = &uart2;
-	};
-};
-
  &pcie3x1 {
  	pinctrl-0 = <&pcie30x1_reset_h>;
  };
@@ -28,12 +22,6 @@
  	mmc-hs400-enhanced-strobe;
  };
 
-&uart2 {
-	bootph-all;
-	clock-frequency = <24000000>;
-	status = "okay";
-};
-
  &usb_host0_xhci {
  	dr_mode = "host";
  };
arch/arm/dts/rk3568-rock-3a-u-boot.dtsi +0 -12
index b05b7151e6c7..46ebb77283f1 100644
@@ -6,12 +6,6 @@
 
  #include "rk356x-u-boot.dtsi"
 
-/ {
-	chosen {
-		stdout-path = &uart2;
-	};
-};
-
  &pcie3x2 {
  	pinctrl-0 = <&pcie3x2_reset_h>;
  };
@@ -48,9 +42,3 @@
  		spi-tx-bus-width = <1>;
  	};
  };
-
-&uart2 {
-	clock-frequency = <24000000>;
-	bootph-all;
-	status = "okay";
-};
arch/arm/dts/rk356x-u-boot.dtsi +5 -0
index 354b6958e572..cacd45348a49 100644
@@ -141,6 +141,11 @@
  	bootph-pre-ram;
  };
 
+&uart2 {
+	bootph-pre-ram;
+	clock-frequency = <24000000>;
+};
+
  #ifdef CONFIG_ROCKCHIP_SPI_IMAGE
  &binman {
  	simple-bin-spi {
#7 lore raw

PATCH 4/7 rockchip: rk3588: Sync device tree with linux v6.7

In reply to Jonas Karlman

Sync rk3588 device tree from linux v6.7.

Also drop the rockchip,rk3568-dwc3 compatible now that dwc3-generic driver support the rockchip,rk3588-dwc3 compatible.

---
 arch/arm/dts/rk3588-turing-rk1.dtsi           |  4 +--
 arch/arm/dts/rk3588-u-boot.dtsi               |  2 +-
 arch/arm/dts/rk3588s-orangepi-5.dts           |  2 +-
 arch/arm/dts/rk3588s-pinctrl.dtsi             |  2 +-
 arch/arm/dts/rk3588s-u-boot.dtsi              | 33 +++--------------
 arch/arm/dts/rk3588s.dtsi                     | 36 +++++++++++++++++++
 arch/arm/mach-rockchip/rk3588/syscon_rk3588.c |  2 +-
 7 files changed, 47 insertions(+), 34 deletions(-)
arch/arm/dts/rk3588-turing-rk1.dtsi +2 -2
index 9570b34aca2e..d88c0e852356 100644
@@ -235,13 +235,13 @@
 &pinctrl {
 	fan {
 		fan_int: fan-int {
-			rockchip,pins = <0 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>;
+			rockchip,pins = <0 RK_PA4 RK_FUNC_GPIO &pcfg_pull_up>;
 		};
 	};
 
 	hym8563 {
 		hym8563_int: hym8563-int {
-			rockchip,pins = <0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>;
+			rockchip,pins = <0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_up>;
 		};
 	};
 
arch/arm/dts/rk3588-u-boot.dtsi +1 -1
index 31046fc7febb..992f7b5d6637 100644
@@ -7,7 +7,7 @@
 
 / {
 	usb_host1_xhci: usb@fc400000 {
-		compatible = "rockchip,rk3588-dwc3", "rockchip,rk3568-dwc3", "snps,dwc3";
+		compatible = "rockchip,rk3588-dwc3", "snps,dwc3";
 		reg = <0x0 0xfc400000 0x0 0x400000>;
 		interrupts = <GIC_SPI 221 IRQ_TYPE_LEVEL_HIGH 0>;
 		clocks = <&cru REF_CLK_USB3OTG1>, <&cru SUSPEND_CLK_USB3OTG1>,
arch/arm/dts/rk3588s-orangepi-5.dts +1 -1
index 8f399c4317bd..e3a839a12dc6 100644
@@ -38,7 +38,7 @@
 	leds {
 		compatible = "gpio-leds";
 		pinctrl-names = "default";
-		pinctrl-0 =<&leds_gpio>;
+		pinctrl-0 = <&leds_gpio>;
 
 		led-1 {
 			gpios = <&gpio1 RK_PA2 GPIO_ACTIVE_HIGH>;
arch/arm/dts/rk3588s-pinctrl.dtsi +1 -1
index 63151d9d2377..30db12c4fc82 100644
@@ -369,7 +369,7 @@
 		emmc_data_strobe: emmc-data-strobe {
 			rockchip,pins =
 				/* emmc_data_strobe */
-				<2 RK_PA2 1 &pcfg_pull_none>;
+				<2 RK_PA2 1 &pcfg_pull_down>;
 		};
 	};
 
arch/arm/dts/rk3588s-u-boot.dtsi +5 -28
index c0fd16c4022b..ebee2131ceeb 100644
@@ -22,7 +22,7 @@
 	};
 
 	usb_host0_xhci: usb@fc000000 {
-		compatible = "rockchip,rk3588-dwc3", "rockchip,rk3568-dwc3", "snps,dwc3";
+		compatible = "rockchip,rk3588-dwc3", "snps,dwc3";
 		reg = <0x0 0xfc000000 0x0 0x400000>;
 		interrupts = <GIC_SPI 220 IRQ_TYPE_LEVEL_HIGH 0>;
 		clocks = <&cru REF_CLK_USB3OTG0>, <&cru SUSPEND_CLK_USB3OTG0>,
@@ -43,33 +43,6 @@
 		status = "disabled";
 	};
 
-	usb_host2_xhci: usb@fcd00000 {
-		compatible = "rockchip,rk3588-dwc3", "rockchip,rk3568-dwc3", "snps,dwc3";
-		reg = <0x0 0xfcd00000 0x0 0x400000>;
-		interrupts = <GIC_SPI 222 IRQ_TYPE_LEVEL_HIGH 0>;
-		clocks = <&cru REF_CLK_USB3OTG2>, <&cru SUSPEND_CLK_USB3OTG2>,
-			 <&cru ACLK_USB3OTG2>, <&cru CLK_UTMI_OTG2>,
-			 <&cru CLK_PIPEPHY2_PIPE_U3_G>;
-		clock-names = "ref_clk", "suspend_clk", "bus_clk", "utmi", "pipe";
-		dr_mode = "host";
-		phys = <&combphy2_psu PHY_TYPE_USB3>;
-		phy-names = "usb3-phy";
-		phy_type = "utmi_wide";
-		resets = <&cru SRST_A_USB3OTG2>;
-		snps,dis_enblslpm_quirk;
-		snps,dis-u2-freeclk-exists-quirk;
-		snps,dis-del-phy-power-chg-quirk;
-		snps,dis-tx-ipgap-linecheck-quirk;
-		snps,dis_rxdet_inp3_quirk;
-		status = "disabled";
-	};
-
-	pmu1_grf: syscon@fd58a000 {
-		bootph-all;
-		compatible = "rockchip,rk3588-pmu1-grf", "syscon";
-		reg = <0x0 0xfd58a000 0x0 0x2000>;
-	};
-
 	usbdpphy0_grf: syscon@fd5c8000 {
 		compatible = "rockchip,rk3588-usbdpphy-grf", "syscon";
 		reg = <0x0 0xfd5c8000 0x0 0x4000>;
@@ -206,6 +179,10 @@
 	status = "okay";
 };
 
+&pmu1grf {
+	bootph-all;
+};
+
 &scmi {
 	bootph-pre-ram;
 };
arch/arm/dts/rk3588s.dtsi +36 -0
index 61a9a11c3bb0..8aa0499f9b03 100644
@@ -443,6 +443,32 @@
 		status = "disabled";
 	};
 
+	usb_host2_xhci: usb@fcd00000 {
+		compatible = "rockchip,rk3588-dwc3", "snps,dwc3";
+		reg = <0x0 0xfcd00000 0x0 0x400000>;
+		interrupts = <GIC_SPI 222 IRQ_TYPE_LEVEL_HIGH 0>;
+		clocks = <&cru REF_CLK_USB3OTG2>, <&cru SUSPEND_CLK_USB3OTG2>,
+			 <&cru ACLK_USB3OTG2>, <&cru CLK_UTMI_OTG2>,
+			 <&cru CLK_PIPEPHY2_PIPE_U3_G>;
+		clock-names = "ref_clk", "suspend_clk", "bus_clk", "utmi", "pipe";
+		dr_mode = "host";
+		phys = <&combphy2_psu PHY_TYPE_USB3>;
+		phy-names = "usb3-phy";
+		phy_type = "utmi_wide";
+		resets = <&cru SRST_A_USB3OTG2>;
+		snps,dis_enblslpm_quirk;
+		snps,dis-u2-freeclk-exists-quirk;
+		snps,dis-del-phy-power-chg-quirk;
+		snps,dis-tx-ipgap-linecheck-quirk;
+		snps,dis_rxdet_inp3_quirk;
+		status = "disabled";
+	};
+
+	pmu1grf: syscon@fd58a000 {
+		compatible = "rockchip,rk3588-pmugrf", "syscon", "simple-mfd";
+		reg = <0x0 0xfd58a000 0x0 0x10000>;
+	};
+
 	sys_grf: syscon@fd58c000 {
 		compatible = "rockchip,rk3588-sys-grf", "syscon";
 		reg = <0x0 0xfd58c000 0x0 0x1000>;
@@ -1329,6 +1355,16 @@
 		};
 	};
 
+	dfi: dfi@fe060000 {
+		reg = <0x00 0xfe060000 0x00 0x10000>;
+		compatible = "rockchip,rk3588-dfi";
+		interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH 0>,
+			     <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH 0>,
+			     <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH 0>,
+			     <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH 0>;
+		rockchip,pmu = <&pmu1grf>;
+	};
+
 	gmac1: ethernet@fe1c0000 {
 		compatible = "rockchip,rk3588-gmac", "snps,dwmac-4.20a";
 		reg = <0x0 0xfe1c0000 0x0 0x10000>;
arch/arm/mach-rockchip/rk3588/syscon_rk3588.c +1 -1
index e8772d3a3824..7b2cf37d9da1 100644
@@ -10,7 +10,7 @@
 
 static const struct udevice_id rk3588_syscon_ids[] = {
 	{ .compatible = "rockchip,rk3588-sys-grf", .data = ROCKCHIP_SYSCON_GRF },
-	{ .compatible = "rockchip,rk3588-pmu1-grf", .data = ROCKCHIP_SYSCON_PMUGRF },
+	{ .compatible = "rockchip,rk3588-pmugrf",  .data = ROCKCHIP_SYSCON_PMUGRF },
 	{ .compatible = "rockchip,rk3588-vop-grf", .data = ROCKCHIP_SYSCON_VOP_GRF },
 	{ .compatible = "rockchip,rk3588-vo-grf",  .data = ROCKCHIP_SYSCON_VO_GRF },
 	{ .compatible = "rockchip,pcie30-phy-grf", .data = ROCKCHIP_SYSCON_PCIE30_PHY_GRF },
Signature · 1 line
2.43.0
#8 lore raw

PATCH 5/7 rockchip: rk3588: Sync device tree from linux v6.8-rc1

In reply to Jonas Karlman

Sync rk3588 device tree from linux v6.8-rc1.

---
 arch/arm/dts/rk3588-edgeble-neu6a-io.dts |   4 -
 arch/arm/dts/rk3588-edgeble-neu6b-io.dts |   6 +-
 arch/arm/dts/rk3588-evb1-v10.dts         |  99 ++++++++++++++++++-
 arch/arm/dts/rk3588-nanopc-t6.dts        |  10 +-
 arch/arm/dts/rk3588-orangepi-5-plus.dts  |   1 -
 arch/arm/dts/rk3588-quartzpro64.dts      |   2 +-
 arch/arm/dts/rk3588-rock-5b-u-boot.dtsi  |   8 --
 arch/arm/dts/rk3588-rock-5b.dts          |  13 ++-
 arch/arm/dts/rk3588-turing-rk1.dtsi      |   2 -
 arch/arm/dts/rk3588s-orangepi-5.dts      |   7 +-
 arch/arm/dts/rk3588s-rock-5a.dts         |  10 +-
 arch/arm/dts/rk3588s-u-boot.dtsi         |   5 -
 arch/arm/dts/rk3588s.dtsi                | 116 +++++++++++++++++++++++
 include/dt-bindings/soc/rockchip,vop2.h  |   4 +
 14 files changed, 251 insertions(+), 36 deletions(-)
arch/arm/dts/rk3588-edgeble-neu6a-io.dts +0 -4
index b51543892078..be6a4f4f90f6 100644
@@ -12,10 +12,6 @@
 	compatible = "edgeble,neural-compute-module-6a-io",
 		     "edgeble,neural-compute-module-6a", "rockchip,rk3588";
 
-	aliases {
-		serial2 = &uart2;
-	};
-
 	chosen {
 		stdout-path = "serial2:1500000n8";
 	};
arch/arm/dts/rk3588-edgeble-neu6b-io.dts +1 -5
index 9933765e4097..070baeb63431 100644
@@ -9,13 +9,9 @@
 
 / {
 	model = "Edgeble Neu6B IO Board";
-	compatible = "edgeble,neural-compute-module-6b-io",
+	compatible = "edgeble,neural-compute-module-6a-io",
 		     "edgeble,neural-compute-module-6b", "rockchip,rk3588";
 
-	aliases {
-		serial2 = &uart2;
-	};
-
 	chosen {
 		stdout-path = "serial2:1500000n8";
 	};
arch/arm/dts/rk3588-evb1-v10.dts +98 -1

124 lines not on this page · raw message

arch/arm/dts/rk3588-nanopc-t6.dts +5 -5
index 97af4f912828..d7722772ecd8 100644
@@ -19,7 +19,6 @@
 	aliases {
 		mmc0 = &sdhci;
 		mmc1 = &sdmmc;
-		serial2 = &uart2;
 	};
 
 	chosen {
@@ -537,13 +536,12 @@
 };
 
 &sdmmc {
-	max-frequency = <200000000>;
-	no-sdio;
-	no-mmc;
 	bus-width = <4>;
 	cap-mmc-highspeed;
 	cap-sd-highspeed;
 	disable-wp;
+	no-mmc;
+	no-sdio;
 	sd-uhs-sdr104;
 	vmmc-supply = <&vcc_3v3_s3>;
 	vqmmc-supply = <&vccio_sd_s0>;
@@ -570,6 +568,8 @@
 		pinctrl-0 = <&pmic_pins>, <&rk806_dvs1_null>,
 			    <&rk806_dvs2_null>, <&rk806_dvs3_null>;
 
+		system-power-controller;
+
 		vcc1-supply = <&vcc4v0_sys>;
 		vcc2-supply = <&vcc4v0_sys>;
 		vcc3-supply = <&vcc4v0_sys>;
@@ -590,7 +590,7 @@
 		#gpio-cells = <2>;
 
 		rk806_dvs1_null: dvs1-null-pins {
-			pins = "gpio_pwrctrl2";
+			pins = "gpio_pwrctrl1";
 			function = "pin_fun0";
 		};
 
arch/arm/dts/rk3588-orangepi-5-plus.dts +0 -1
index 298c183d6f4f..3e660ff6cd5f 100644
@@ -19,7 +19,6 @@
 	aliases {
 		mmc0 = &sdhci;
 		mmc1 = &sdmmc;
-		serial2 = &uart2;
 	};
 
 	chosen {
arch/arm/dts/rk3588-quartzpro64.dts +1 -1
index 5c59f9571dce..87a0abf95f7d 100644
@@ -17,9 +17,9 @@
 	compatible = "pine64,quartzpro64", "rockchip,rk3588";
 
 	aliases {
+		ethernet0 = &gmac0;
 		mmc0 = &sdhci;
 		mmc1 = &sdmmc;
-		serial2 = &uart2;
 	};
 
 	chosen {
arch/arm/dts/rk3588-rock-5b-u-boot.dtsi +0 -8
index b595ddef7028..5fa20cecc044 100644
@@ -21,10 +21,6 @@
 	};
 };
 
-&combphy2_psu {
-	status = "okay";
-};
-
 &fspim2_pins {
 	bootph-all;
 };
@@ -129,10 +125,6 @@
 	status = "okay";
 };
 
-&usb_host2_xhci {
-	status = "okay";
-};
-
 &i2c4 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&i2c4m1_xfer>;
arch/arm/dts/rk3588-rock-5b.dts +11 -2
index 741f631db345..a0e303c3a1dc 100644
@@ -14,7 +14,6 @@
 		mmc0 = &sdhci;
 		mmc1 = &sdmmc;
 		mmc2 = &sdio;
-		serial2 = &uart2;
 	};
 
 	chosen {
@@ -138,6 +137,10 @@
 	status = "okay";
 };
 
+&combphy2_psu {
+	status = "okay";
+};
+
 &cpu_b0 {
 	cpu-supply = <&vdd_cpu_big0_s0>;
 };
@@ -423,6 +426,8 @@
 		pinctrl-0 = <&pmic_pins>, <&rk806_dvs1_null>,
 			    <&rk806_dvs2_null>, <&rk806_dvs3_null>;
 
+		system-power-controller;
+
 		vcc1-supply = <&vcc5v0_sys>;
 		vcc2-supply = <&vcc5v0_sys>;
 		vcc3-supply = <&vcc5v0_sys>;
@@ -443,7 +448,7 @@
 		#gpio-cells = <2>;
 
 		rk806_dvs1_null: dvs1-null-pins {
-			pins = "gpio_pwrctrl2";
+			pins = "gpio_pwrctrl1";
 			function = "pin_fun0";
 		};
 
@@ -765,3 +770,7 @@
 &usb_host1_ohci {
 	status = "okay";
 };
+
+&usb_host2_xhci {
+	status = "okay";
+};
arch/arm/dts/rk3588-turing-rk1.dtsi +0 -2
index d88c0e852356..dc08da518a76 100644
@@ -19,8 +19,6 @@
 	aliases {
 		ethernet0 = &gmac1;
 		mmc0 = &sdhci;
-		serial2 = &uart2;
-		serial9 = &uart9;
 	};
 
 	fan: pwm-fan {
arch/arm/dts/rk3588s-orangepi-5.dts +6 -1
index e3a839a12dc6..25de4362af38 100644
@@ -13,8 +13,8 @@
 	compatible = "xunlong,orangepi-5", "rockchip,rk3588s";
 
 	aliases {
+		ethernet0 = &gmac1;
 		mmc0 = &sdmmc;
-		serial2 = &uart2;
 	};
 
 	chosen {
@@ -314,6 +314,7 @@
 		pinctrl-0 = <&pmic_pins>, <&rk806_dvs1_null>,
 				<&rk806_dvs2_null>, <&rk806_dvs3_null>;
 		spi-max-frequency = <1000000>;
+		system-power-controller;
 
 		vcc1-supply = <&vcc5v0_sys>;
 		vcc2-supply = <&vcc5v0_sys>;
@@ -660,3 +661,7 @@
 &usb_host1_ohci {
 	status = "okay";
 };
+
+&usb_host2_xhci {
+	status = "okay";
+};
arch/arm/dts/rk3588s-rock-5a.dts +9 -1
index 8347adcbd003..2002fd0221fa 100644
@@ -12,9 +12,9 @@
 	compatible = "radxa,rock-5a", "rockchip,rk3588s";
 
 	aliases {
+		ethernet0 = &gmac1;
 		mmc0 = &sdhci;
 		mmc1 = &sdmmc;
-		serial2 = &uart2;
 	};
 
 	analog-sound {
@@ -114,6 +114,10 @@
 	};
 };
 
+&combphy2_psu {
+	status = "okay";
+};
+
 &cpu_b0 {
 	cpu-supply = <&vdd_cpu_big0_s0>;
 };
@@ -734,3 +738,7 @@
 &usb_host1_ohci {
 	status = "okay";
 };
+
+&usb_host2_xhci {
+	status = "okay";
+};
arch/arm/dts/rk3588s-u-boot.dtsi +0 -5
index ebee2131ceeb..d251a210b313 100644
@@ -7,11 +7,6 @@
 
 / {
 	aliases {
-		spi0 = &spi0;
-		spi1 = &spi1;
-		spi2 = &spi2;
-		spi3 = &spi3;
-		spi4 = &spi4;
 		spi5 = &sfc;
 	};
 
arch/arm/dts/rk3588s.dtsi +116 -0

146 lines not on this page · raw message

include/dt-bindings/soc/rockchip,vop2.h +4 -0
index 6e66a802b96a..668f199df9f0 100644
@@ -10,5 +10,9 @@
 #define ROCKCHIP_VOP2_EP_LVDS0	5
 #define ROCKCHIP_VOP2_EP_MIPI1	6
 #define ROCKCHIP_VOP2_EP_LVDS1	7
+#define ROCKCHIP_VOP2_EP_HDMI1	8
+#define ROCKCHIP_VOP2_EP_EDP1	9
+#define ROCKCHIP_VOP2_EP_DP0	10
+#define ROCKCHIP_VOP2_EP_DP1	11
 
 #endif /* __DT_BINDINGS_ROCKCHIP_VOP2_H */
Signature · 1 line
2.43.0
#9 lore raw

Re: [PATCH 5/7] rockchip: rk3588: Sync device tree from linux v6.8-rc1

Seems Quentin also sync rk3588 with v6.8-rc1 in his patch.

Hi Quentin,

    Could you update your patchset base on this patch set ?

Thanks,

- Kever

Quoted 596 lines · Jonas Karlman

Sync rk3588 device tree from linux v6.8-rc1.

---
  arch/arm/dts/rk3588-edgeble-neu6a-io.dts |   4 -
  arch/arm/dts/rk3588-edgeble-neu6b-io.dts |   6 +-
  arch/arm/dts/rk3588-evb1-v10.dts         |  99 ++++++++++++++++++-
  arch/arm/dts/rk3588-nanopc-t6.dts        |  10 +-
  arch/arm/dts/rk3588-orangepi-5-plus.dts  |   1 -
  arch/arm/dts/rk3588-quartzpro64.dts      |   2 +-
  arch/arm/dts/rk3588-rock-5b-u-boot.dtsi  |   8 --
  arch/arm/dts/rk3588-rock-5b.dts          |  13 ++-
  arch/arm/dts/rk3588-turing-rk1.dtsi      |   2 -
  arch/arm/dts/rk3588s-orangepi-5.dts      |   7 +-
  arch/arm/dts/rk3588s-rock-5a.dts         |  10 +-
  arch/arm/dts/rk3588s-u-boot.dtsi         |   5 -
  arch/arm/dts/rk3588s.dtsi                | 116 +++++++++++++++++++++++
  include/dt-bindings/soc/rockchip,vop2.h  |   4 +
  14 files changed, 251 insertions(+), 36 deletions(-)
arch/arm/dts/rk3588-edgeble-neu6a-io.dts +0 -4
index b51543892078..be6a4f4f90f6 100644
@@ -12,10 +12,6 @@
  	compatible = "edgeble,neural-compute-module-6a-io",
  		     "edgeble,neural-compute-module-6a", "rockchip,rk3588";
 
-	aliases {
-		serial2 = &uart2;
-	};
-
  	chosen {
  		stdout-path = "serial2:1500000n8";
  	};
arch/arm/dts/rk3588-edgeble-neu6b-io.dts +1 -5
index 9933765e4097..070baeb63431 100644
@@ -9,13 +9,9 @@
 
  / {
  	model = "Edgeble Neu6B IO Board";
-	compatible = "edgeble,neural-compute-module-6b-io",
+	compatible = "edgeble,neural-compute-module-6a-io",
  		     "edgeble,neural-compute-module-6b", "rockchip,rk3588";
 
-	aliases {
-		serial2 = &uart2;
-	};
-
  	chosen {
  		stdout-path = "serial2:1500000n8";
  	};
arch/arm/dts/rk3588-evb1-v10.dts +98 -1
index b9d789d57862..ac7c677b0fb9 100644
@@ -16,8 +16,8 @@
  	compatible = "rockchip,rk3588-evb1-v10", "rockchip,rk3588";
 
  	aliases {
+		ethernet0 = &gmac0;
  		mmc0 = &sdhci;
-		serial2 = &uart2;
  	};
 
  	chosen {
@@ -56,6 +56,63 @@
  		};
  	};
 
+	analog-sound {
+		compatible = "simple-audio-card";
+		pinctrl-names = "default";
+		pinctrl-0 = <&hp_detect>;
+		simple-audio-card,name = "RK3588 EVB1 Audio";
+		simple-audio-card,aux-devs = <&amp_headphone>, <&amp_speaker>;
+		simple-audio-card,bitclock-master = <&masterdai>;
+		simple-audio-card,format = "i2s";
+		simple-audio-card,frame-master = <&masterdai>;
+		simple-audio-card,hp-det-gpio = <&gpio1 RK_PD5 GPIO_ACTIVE_LOW>;
+		simple-audio-card,mclk-fs = <256>;
+		simple-audio-card,pin-switches = "Headphones", "Speaker";
+		simple-audio-card,routing =
+			"Speaker Amplifier INL", "LOUT2",
+			"Speaker Amplifier INR", "ROUT2",
+			"Speaker", "Speaker Amplifier OUTL",
+			"Speaker", "Speaker Amplifier OUTR",
+			"Headphones Amplifier INL", "LOUT1",
+			"Headphones Amplifier INR", "ROUT1",
+			"Headphones", "Headphones Amplifier OUTL",
+			"Headphones", "Headphones Amplifier OUTR",
+			"LINPUT1", "Onboard Microphone",
+			"RINPUT1", "Onboard Microphone",
+			"LINPUT2", "Microphone Jack",
+			"RINPUT2", "Microphone Jack";
+		simple-audio-card,widgets =
+			"Microphone", "Microphone Jack",
+			"Microphone", "Onboard Microphone",
+			"Headphone", "Headphones",
+			"Speaker", "Speaker";
+
+		simple-audio-card,cpu {
+			sound-dai = <&i2s0_8ch>;
+		};
+
+		masterdai: simple-audio-card,codec {
+			sound-dai = <&es8388>;
+			system-clock-frequency = <12288000>;
+		};
+	};
+
+	amp_headphone: headphone-amplifier {
+		compatible = "simple-audio-amplifier";
+		enable-gpios = <&gpio1 RK_PD2 GPIO_ACTIVE_HIGH>;
+		pinctrl-names = "default";
+		pinctrl-0 = <&headphone_amplifier_en>;
+		sound-name-prefix = "Headphones Amplifier";
+	};
+
+	amp_speaker: speaker-amplifier {
+		compatible = "simple-audio-amplifier";
+		enable-gpios = <&gpio1 RK_PD3 GPIO_ACTIVE_HIGH>;
+		pinctrl-names = "default";
+		pinctrl-0 = <&speaker_amplifier_en>;
+		sound-name-prefix = "Speaker Amplifier";
+	};
+
  	backlight: backlight {
  		compatible = "pwm-backlight";
  		power-supply = <&vcc12v_dcin>;
@@ -240,6 +297,32 @@
  	};
  };
 
+&i2c7 {
+	status = "okay";
+
+	es8388: audio-codec@11 {
+		compatible = "everest,es8388";
+		reg = <0x11>;
+		clocks = <&cru I2S0_8CH_MCLKOUT>;
+		assigned-clocks = <&cru I2S0_8CH_MCLKOUT>;
+		assigned-clock-rates = <12288000>;
+		AVDD-supply = <&avcc_1v8_codec_s0>;
+		DVDD-supply = <&avcc_1v8_codec_s0>;
+		HPVDD-supply = <&vcc_3v3_s0>;
+		PVDD-supply = <&vcc_3v3_s0>;
+		#sound-dai-cells = <0>;
+	};
+};
+
+&i2s0_8ch {
+	pinctrl-0 = <&i2s0_lrck
+		     &i2s0_mclk
+		     &i2s0_sclk
+		     &i2s0_sdi0
+		     &i2s0_sdo0>;
+	status = "okay";
+};
+
  &mdio0 {
  	rgmii_phy: ethernet-phy@1 {
  		/* RTL8211F */
@@ -273,6 +356,20 @@
  };
 
  &pinctrl {
+	audio {
+		hp_detect: headphone-detect {
+			rockchip,pins = <1 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>;
+		};
+
+		headphone_amplifier_en: headphone-amplifier-en {
+			rockchip,pins = <1 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>;
+		};
+
+		speaker_amplifier_en: speaker-amplifier-en {
+			rockchip,pins = <1 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>;
+		};
+	};
+
  	rtl8111 {
  		rtl8111_isolate: rtl8111-isolate {
  			rockchip,pins = <1 RK_PA4 RK_FUNC_GPIO &pcfg_pull_up>;
arch/arm/dts/rk3588-nanopc-t6.dts +5 -5
index 97af4f912828..d7722772ecd8 100644
@@ -19,7 +19,6 @@
  	aliases {
  		mmc0 = &sdhci;
  		mmc1 = &sdmmc;
-		serial2 = &uart2;
  	};
 
  	chosen {
@@ -537,13 +536,12 @@
  };
 
  &sdmmc {
-	max-frequency = <200000000>;
-	no-sdio;
-	no-mmc;
  	bus-width = <4>;
  	cap-mmc-highspeed;
  	cap-sd-highspeed;
  	disable-wp;
+	no-mmc;
+	no-sdio;
  	sd-uhs-sdr104;
  	vmmc-supply = <&vcc_3v3_s3>;
  	vqmmc-supply = <&vccio_sd_s0>;
@@ -570,6 +568,8 @@
  		pinctrl-0 = <&pmic_pins>, <&rk806_dvs1_null>,
  			    <&rk806_dvs2_null>, <&rk806_dvs3_null>;
 
+		system-power-controller;
+
  		vcc1-supply = <&vcc4v0_sys>;
  		vcc2-supply = <&vcc4v0_sys>;
  		vcc3-supply = <&vcc4v0_sys>;
@@ -590,7 +590,7 @@
  		#gpio-cells = <2>;
 
  		rk806_dvs1_null: dvs1-null-pins {
-			pins = "gpio_pwrctrl2";
+			pins = "gpio_pwrctrl1";
  			function = "pin_fun0";
  		};
 
arch/arm/dts/rk3588-orangepi-5-plus.dts +0 -1
index 298c183d6f4f..3e660ff6cd5f 100644
@@ -19,7 +19,6 @@
  	aliases {
  		mmc0 = &sdhci;
  		mmc1 = &sdmmc;
-		serial2 = &uart2;
  	};
 
  	chosen {
arch/arm/dts/rk3588-quartzpro64.dts +1 -1
index 5c59f9571dce..87a0abf95f7d 100644
@@ -17,9 +17,9 @@
  	compatible = "pine64,quartzpro64", "rockchip,rk3588";
 
  	aliases {
+		ethernet0 = &gmac0;
  		mmc0 = &sdhci;
  		mmc1 = &sdmmc;
-		serial2 = &uart2;
  	};
 
  	chosen {
arch/arm/dts/rk3588-rock-5b-u-boot.dtsi +0 -8
index b595ddef7028..5fa20cecc044 100644
@@ -21,10 +21,6 @@
  	};
  };
 
-&combphy2_psu {
-	status = "okay";
-};
-
  &fspim2_pins {
  	bootph-all;
  };
@@ -129,10 +125,6 @@
  	status = "okay";
  };
 
-&usb_host2_xhci {
-	status = "okay";
-};
-
  &i2c4 {
  	pinctrl-names = "default";
  	pinctrl-0 = <&i2c4m1_xfer>;
arch/arm/dts/rk3588-rock-5b.dts +11 -2
index 741f631db345..a0e303c3a1dc 100644
@@ -14,7 +14,6 @@
  		mmc0 = &sdhci;
  		mmc1 = &sdmmc;
  		mmc2 = &sdio;
-		serial2 = &uart2;
  	};
 
  	chosen {
@@ -138,6 +137,10 @@
  	status = "okay";
  };
 
+&combphy2_psu {
+	status = "okay";
+};
+
  &cpu_b0 {
  	cpu-supply = <&vdd_cpu_big0_s0>;
  };
@@ -423,6 +426,8 @@
  		pinctrl-0 = <&pmic_pins>, <&rk806_dvs1_null>,
  			    <&rk806_dvs2_null>, <&rk806_dvs3_null>;
 
+		system-power-controller;
+
  		vcc1-supply = <&vcc5v0_sys>;
  		vcc2-supply = <&vcc5v0_sys>;
  		vcc3-supply = <&vcc5v0_sys>;
@@ -443,7 +448,7 @@
  		#gpio-cells = <2>;
 
  		rk806_dvs1_null: dvs1-null-pins {
-			pins = "gpio_pwrctrl2";
+			pins = "gpio_pwrctrl1";
  			function = "pin_fun0";
  		};
 
@@ -765,3 +770,7 @@
  &usb_host1_ohci {
  	status = "okay";
  };
+
+&usb_host2_xhci {
+	status = "okay";
+};
arch/arm/dts/rk3588-turing-rk1.dtsi +0 -2
index d88c0e852356..dc08da518a76 100644
@@ -19,8 +19,6 @@
  	aliases {
  		ethernet0 = &gmac1;
  		mmc0 = &sdhci;
-		serial2 = &uart2;
-		serial9 = &uart9;
  	};
 
  	fan: pwm-fan {
arch/arm/dts/rk3588s-orangepi-5.dts +6 -1
index e3a839a12dc6..25de4362af38 100644
@@ -13,8 +13,8 @@
  	compatible = "xunlong,orangepi-5", "rockchip,rk3588s";
 
  	aliases {
+		ethernet0 = &gmac1;
  		mmc0 = &sdmmc;
-		serial2 = &uart2;
  	};
 
  	chosen {
@@ -314,6 +314,7 @@
  		pinctrl-0 = <&pmic_pins>, <&rk806_dvs1_null>,
  				<&rk806_dvs2_null>, <&rk806_dvs3_null>;
  		spi-max-frequency = <1000000>;
+		system-power-controller;
 
  		vcc1-supply = <&vcc5v0_sys>;
  		vcc2-supply = <&vcc5v0_sys>;
@@ -660,3 +661,7 @@
  &usb_host1_ohci {
  	status = "okay";
  };
+
+&usb_host2_xhci {
+	status = "okay";
+};
arch/arm/dts/rk3588s-rock-5a.dts +9 -1
index 8347adcbd003..2002fd0221fa 100644
@@ -12,9 +12,9 @@
  	compatible = "radxa,rock-5a", "rockchip,rk3588s";
 
  	aliases {
+		ethernet0 = &gmac1;
  		mmc0 = &sdhci;
  		mmc1 = &sdmmc;
-		serial2 = &uart2;
  	};
 
  	analog-sound {
@@ -114,6 +114,10 @@
  	};
  };
 
+&combphy2_psu {
+	status = "okay";
+};
+
  &cpu_b0 {
  	cpu-supply = <&vdd_cpu_big0_s0>;
  };
@@ -734,3 +738,7 @@
  &usb_host1_ohci {
  	status = "okay";
  };
+
+&usb_host2_xhci {
+	status = "okay";
+};
arch/arm/dts/rk3588s-u-boot.dtsi +0 -5
index ebee2131ceeb..d251a210b313 100644
@@ -7,11 +7,6 @@
 
  / {
  	aliases {
-		spi0 = &spi0;
-		spi1 = &spi1;
-		spi2 = &spi2;
-		spi3 = &spi3;
-		spi4 = &spi4;
  		spi5 = &sfc;
  	};
 
arch/arm/dts/rk3588s.dtsi +116 -0
index 8aa0499f9b03..36b1b7acfe6a 100644
@@ -18,6 +18,38 @@
  	#address-cells = <2>;
  	#size-cells = <2>;
 
+	aliases {
+		gpio0 = &gpio0;
+		gpio1 = &gpio1;
+		gpio2 = &gpio2;
+		gpio3 = &gpio3;
+		gpio4 = &gpio4;
+		i2c0 = &i2c0;
+		i2c1 = &i2c1;
+		i2c2 = &i2c2;
+		i2c3 = &i2c3;
+		i2c4 = &i2c4;
+		i2c5 = &i2c5;
+		i2c6 = &i2c6;
+		i2c7 = &i2c7;
+		i2c8 = &i2c8;
+		serial0 = &uart0;
+		serial1 = &uart1;
+		serial2 = &uart2;
+		serial3 = &uart3;
+		serial4 = &uart4;
+		serial5 = &uart5;
+		serial6 = &uart6;
+		serial7 = &uart7;
+		serial8 = &uart8;
+		serial9 = &uart9;
+		spi0 = &spi0;
+		spi1 = &spi1;
+		spi2 = &spi2;
+		spi3 = &spi3;
+		spi4 = &spi4;
+	};
+
  	cpus {
  		#address-cells = <1>;
  		#size-cells = <0>;
@@ -362,6 +394,11 @@
  		#clock-cells = <0>;
  	};
 
+	display_subsystem: display-subsystem {
+		compatible = "rockchip,display-subsystem";
+		ports = <&vop_out>;
+	};
+
  	timer {
  		compatible = "arm,armv8-timer";
  		interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_HIGH 0>,
@@ -474,6 +511,16 @@
  		reg = <0x0 0xfd58c000 0x0 0x1000>;
  	};
 
+	vop_grf: syscon@fd5a4000 {
+		compatible = "rockchip,rk3588-vop-grf", "syscon";
+		reg = <0x0 0xfd5a4000 0x0 0x2000>;
+	};
+
+	vo1_grf: syscon@fd5a8000 {
+		compatible = "rockchip,rk3588-vo-grf", "syscon";
+		reg = <0x0 0xfd5a8000 0x0 0x100>;
+	};
+
  	php_grf: syscon@fd5b0000 {
  		compatible = "rockchip,rk3588-php-grf", "syscon";
  		reg = <0x0 0xfd5b0000 0x0 0x1000>;
@@ -593,6 +640,74 @@
  		status = "disabled";
  	};
 
+	vop: vop@fdd90000 {
+		compatible = "rockchip,rk3588-vop";
+		reg = <0x0 0xfdd90000 0x0 0x4200>, <0x0 0xfdd95000 0x0 0x1000>;
+		reg-names = "vop", "gamma-lut";
+		interrupts = <GIC_SPI 156 IRQ_TYPE_LEVEL_HIGH 0>;
+		clocks = <&cru ACLK_VOP>,
+			 <&cru HCLK_VOP>,
+			 <&cru DCLK_VOP0>,
+			 <&cru DCLK_VOP1>,
+			 <&cru DCLK_VOP2>,
+			 <&cru DCLK_VOP3>,
+			 <&cru PCLK_VOP_ROOT>;
+		clock-names = "aclk",
+			      "hclk",
+			      "dclk_vp0",
+			      "dclk_vp1",
+			      "dclk_vp2",
+			      "dclk_vp3",
+			      "pclk_vop";
+		iommus = <&vop_mmu>;
+		power-domains = <&power RK3588_PD_VOP>;
+		rockchip,grf = <&sys_grf>;
+		rockchip,vop-grf = <&vop_grf>;
+		rockchip,vo1-grf = <&vo1_grf>;
+		rockchip,pmu = <&pmu>;
+		status = "disabled";
+
+		vop_out: ports {
+			#address-cells = <1>;
+			#size-cells = <0>;
+
+			vp0: port@0 {
+				#address-cells = <1>;
+				#size-cells = <0>;
+				reg = <0>;
+			};
+
+			vp1: port@1 {
+				#address-cells = <1>;
+				#size-cells = <0>;
+				reg = <1>;
+			};
+
+			vp2: port@2 {
+				#address-cells = <1>;
+				#size-cells = <0>;
+				reg = <2>;
+			};
+
+			vp3: port@3 {
+				#address-cells = <1>;
+				#size-cells = <0>;
+				reg = <3>;
+			};
+		};
+	};
+
+	vop_mmu: iommu@fdd97e00 {
+		compatible = "rockchip,rk3588-iommu", "rockchip,rk3568-iommu";
+		reg = <0x0 0xfdd97e00 0x0 0x100>, <0x0 0xfdd97f00 0x0 0x100>;
+		interrupts = <GIC_SPI 156 IRQ_TYPE_LEVEL_HIGH 0>;
+		clocks = <&cru ACLK_VOP>, <&cru HCLK_VOP>;
+		clock-names = "aclk", "iface";
+		#iommu-cells = <0>;
+		power-domains = <&power RK3588_PD_VOP>;
+		status = "disabled";
+	};
+
  	uart0: serial@fd890000 {
  		compatible = "rockchip,rk3588-uart", "snps,dw-apb-uart";
  		reg = <0x0 0xfd890000 0x0 0x100>;
@@ -916,6 +1031,7 @@
  				reg = <RK3588_PD_USB>;
  				clocks = <&cru PCLK_PHP_ROOT>,
  					 <&cru ACLK_USB_ROOT>,
+					 <&cru ACLK_USB>,
  					 <&cru HCLK_USB_ROOT>,
  					 <&cru HCLK_HOST0>,
  					 <&cru HCLK_HOST_ARB0>,
include/dt-bindings/soc/rockchip,vop2.h +4 -0
index 6e66a802b96a..668f199df9f0 100644
@@ -10,5 +10,9 @@
  #define ROCKCHIP_VOP2_EP_LVDS0	5
  #define ROCKCHIP_VOP2_EP_MIPI1	6
  #define ROCKCHIP_VOP2_EP_LVDS1	7
+#define ROCKCHIP_VOP2_EP_HDMI1	8
+#define ROCKCHIP_VOP2_EP_EDP1	9
+#define ROCKCHIP_VOP2_EP_DP0	10
+#define ROCKCHIP_VOP2_EP_DP1	11
 
  #endif /* __DT_BINDINGS_ROCKCHIP_VOP2_H */
#10 lore raw

PATCH 6/7 rockchip: rk3588: Add default u-boot,spl-boot-order prop

In reply to Jonas Karlman

Add a default u-boot,spl-boot-order prop to rk3588s-u-boot.dtsi and remove the prop from board u-boot.dtsi files using the default value.

---
 arch/arm/dts/rk3588-nanopc-t6-u-boot.dtsi       | 6 ------
 arch/arm/dts/rk3588-orangepi-5-plus-u-boot.dtsi | 6 ------
 arch/arm/dts/rk3588-quartzpro64-u-boot.dtsi     | 6 ------
 arch/arm/dts/rk3588-rock-5b-u-boot.dtsi         | 4 ----
 arch/arm/dts/rk3588-turing-rk1-u-boot.dtsi      | 6 ------
 arch/arm/dts/rk3588s-rock-5a-u-boot.dtsi        | 6 ------
 arch/arm/dts/rk3588s-u-boot.dtsi                | 4 ++++
 7 files changed, 4 insertions(+), 34 deletions(-)
arch/arm/dts/rk3588-nanopc-t6-u-boot.dtsi +0 -6
index 87831c9d432a..60494bb8485f 100644
@@ -6,12 +6,6 @@
 
 #include "rk3588-u-boot.dtsi"
 
-/ {
-	chosen {
-		u-boot,spl-boot-order = "same-as-spl", &sdmmc, &sdhci;
-	};
-};
-
 &fspim1_pins {
 	bootph-all;
 };
arch/arm/dts/rk3588-orangepi-5-plus-u-boot.dtsi +0 -6
index b0f5c667197c..5d5fa6ffb214 100644
@@ -2,12 +2,6 @@
 
 #include "rk3588-u-boot.dtsi"
 
-/ {
-	chosen {
-		u-boot,spl-boot-order = "same-as-spl", &sdmmc, &sdhci;
-	};
-};
-
 &fspim1_pins {
 	bootph-all;
 };
arch/arm/dts/rk3588-quartzpro64-u-boot.dtsi +0 -6
index 191ec988c459..7b937943a53c 100644
@@ -4,9 +4,3 @@
  */
 
 #include "rk3588-u-boot.dtsi"
-
-/ {
-	chosen {
-		u-boot,spl-boot-order = "same-as-spl", &sdmmc, &sdhci;
-	};
-};
arch/arm/dts/rk3588-rock-5b-u-boot.dtsi +0 -4
index 5fa20cecc044..e99e60185ebe 100644
@@ -7,10 +7,6 @@
 #include <dt-bindings/usb/pd.h>
 
 / {
-	chosen {
-		u-boot,spl-boot-order = "same-as-spl", &sdmmc, &sdhci;
-	};
-
 	vcc12v_dcin: vcc12v-dcin-regulator {
 		compatible = "regulator-fixed";
 		regulator-name = "vcc12v_dcin";
arch/arm/dts/rk3588-turing-rk1-u-boot.dtsi +0 -6
index 06c6f327c14b..e791b572b6bf 100644
@@ -6,12 +6,6 @@
 
 #include "rk3588-u-boot.dtsi"
 
-/ {
-	chosen {
-		u-boot,spl-boot-order = "same-as-spl", &sdmmc, &sdhci;
-	};
-};
-
 &sdhci {
 	cap-mmc-highspeed;
 	mmc-ddr-1_8v;
arch/arm/dts/rk3588s-rock-5a-u-boot.dtsi +0 -6
index 584476f77b13..9a6a353088df 100644
@@ -5,12 +5,6 @@
 
 #include "rk3588s-u-boot.dtsi"
 
-/ {
-	chosen {
-		u-boot,spl-boot-order = "same-as-spl", &sdmmc, &sdhci;
-	};
-};
-
 &sdhci {
 	cap-mmc-highspeed;
 	mmc-ddr-1_8v;
arch/arm/dts/rk3588s-u-boot.dtsi +4 -0
index d251a210b313..945b2d62a75e 100644
@@ -10,6 +10,10 @@
 		spi5 = &sfc;
 	};
 
+	chosen {
+		u-boot,spl-boot-order = "same-as-spl", &sdmmc, &sdhci;
+	};
+
 	dmc {
 		compatible = "rockchip,rk3588-dmc";
 		bootph-all;
Signature · 1 line
2.43.0
Reviewed-by on v1 6/7
#11 lore raw

Re: [PATCH 6/7] rockchip: rk3588: Add default u-boot,spl-boot-order prop

Quoted 4 lines · Jonas Karlman

Add a default u-boot,spl-boot-order prop to rk3588s-u-boot.dtsi and remove the prop from board u-boot.dtsi files using the default value.

Quoted 122 lines
---
 arch/arm/dts/rk3588-nanopc-t6-u-boot.dtsi       | 6 ------
 arch/arm/dts/rk3588-orangepi-5-plus-u-boot.dtsi | 6 ------
 arch/arm/dts/rk3588-quartzpro64-u-boot.dtsi     | 6 ------
 arch/arm/dts/rk3588-rock-5b-u-boot.dtsi         | 4 ----
 arch/arm/dts/rk3588-turing-rk1-u-boot.dtsi      | 6 ------
 arch/arm/dts/rk3588s-rock-5a-u-boot.dtsi        | 6 ------
 arch/arm/dts/rk3588s-u-boot.dtsi                | 4 ++++
 7 files changed, 4 insertions(+), 34 deletions(-)
arch/arm/dts/rk3588-nanopc-t6-u-boot.dtsi +0 -6
index 87831c9d432a..60494bb8485f 100644
@@ -6,12 +6,6 @@
 
 #include "rk3588-u-boot.dtsi"
 
-/ {
-	chosen {
-		u-boot,spl-boot-order = "same-as-spl", &sdmmc, &sdhci;
-	};
-};
-
 &fspim1_pins {
 	bootph-all;
 };
arch/arm/dts/rk3588-orangepi-5-plus-u-boot.dtsi +0 -6
index b0f5c667197c..5d5fa6ffb214 100644
@@ -2,12 +2,6 @@
 
 #include "rk3588-u-boot.dtsi"
 
-/ {
-	chosen {
-		u-boot,spl-boot-order = "same-as-spl", &sdmmc, &sdhci;
-	};
-};
-
 &fspim1_pins {
 	bootph-all;
 };
arch/arm/dts/rk3588-quartzpro64-u-boot.dtsi +0 -6
index 191ec988c459..7b937943a53c 100644
@@ -4,9 +4,3 @@
  */
 
 #include "rk3588-u-boot.dtsi"
-
-/ {
-	chosen {
-		u-boot,spl-boot-order = "same-as-spl", &sdmmc, &sdhci;
-	};
-};
arch/arm/dts/rk3588-rock-5b-u-boot.dtsi +0 -4
index 5fa20cecc044..e99e60185ebe 100644
@@ -7,10 +7,6 @@
 #include <dt-bindings/usb/pd.h>
 
 / {
-	chosen {
-		u-boot,spl-boot-order = "same-as-spl", &sdmmc, &sdhci;
-	};
-
 	vcc12v_dcin: vcc12v-dcin-regulator {
 		compatible = "regulator-fixed";
 		regulator-name = "vcc12v_dcin";
arch/arm/dts/rk3588-turing-rk1-u-boot.dtsi +0 -6
index 06c6f327c14b..e791b572b6bf 100644
@@ -6,12 +6,6 @@
 
 #include "rk3588-u-boot.dtsi"
 
-/ {
-	chosen {
-		u-boot,spl-boot-order = "same-as-spl", &sdmmc, &sdhci;
-	};
-};
-
 &sdhci {
 	cap-mmc-highspeed;
 	mmc-ddr-1_8v;
arch/arm/dts/rk3588s-rock-5a-u-boot.dtsi +0 -6
index 584476f77b13..9a6a353088df 100644
@@ -5,12 +5,6 @@
 
 #include "rk3588s-u-boot.dtsi"
 
-/ {
-	chosen {
-		u-boot,spl-boot-order = "same-as-spl", &sdmmc, &sdhci;
-	};
-};
-
 &sdhci {
 	cap-mmc-highspeed;
 	mmc-ddr-1_8v;
arch/arm/dts/rk3588s-u-boot.dtsi +4 -0
index d251a210b313..945b2d62a75e 100644
@@ -10,6 +10,10 @@
 		spi5 = &sfc;
 	};
 
+	chosen {
+		u-boot,spl-boot-order = "same-as-spl", &sdmmc, &sdhci;
+	};
+
 	dmc {
 		compatible = "rockchip,rk3588-dmc";
 		bootph-all;
Reviewed-by on v1 6/7
#12 lore raw

Re: [PATCH 6/7] rockchip: rk3588: Add default u-boot,spl-boot-order prop

In reply to Jonas Karlman
Quoted 4 lines · Jonas Karlman

Add a default u-boot,spl-boot-order prop to rk3588s-u-boot.dtsi and remove the prop from board u-boot.dtsi files using the default value.

Thanks,
- Kever

Quoted 122 lines
---
  arch/arm/dts/rk3588-nanopc-t6-u-boot.dtsi       | 6 ------
  arch/arm/dts/rk3588-orangepi-5-plus-u-boot.dtsi | 6 ------
  arch/arm/dts/rk3588-quartzpro64-u-boot.dtsi     | 6 ------
  arch/arm/dts/rk3588-rock-5b-u-boot.dtsi         | 4 ----
  arch/arm/dts/rk3588-turing-rk1-u-boot.dtsi      | 6 ------
  arch/arm/dts/rk3588s-rock-5a-u-boot.dtsi        | 6 ------
  arch/arm/dts/rk3588s-u-boot.dtsi                | 4 ++++
  7 files changed, 4 insertions(+), 34 deletions(-)
arch/arm/dts/rk3588-nanopc-t6-u-boot.dtsi +0 -6
index 87831c9d432a..60494bb8485f 100644
@@ -6,12 +6,6 @@
 
  #include "rk3588-u-boot.dtsi"
 
-/ {
-	chosen {
-		u-boot,spl-boot-order = "same-as-spl", &sdmmc, &sdhci;
-	};
-};
-
  &fspim1_pins {
  	bootph-all;
  };
arch/arm/dts/rk3588-orangepi-5-plus-u-boot.dtsi +0 -6
index b0f5c667197c..5d5fa6ffb214 100644
@@ -2,12 +2,6 @@
 
  #include "rk3588-u-boot.dtsi"
 
-/ {
-	chosen {
-		u-boot,spl-boot-order = "same-as-spl", &sdmmc, &sdhci;
-	};
-};
-
  &fspim1_pins {
  	bootph-all;
  };
arch/arm/dts/rk3588-quartzpro64-u-boot.dtsi +0 -6
index 191ec988c459..7b937943a53c 100644
@@ -4,9 +4,3 @@
   */
 
  #include "rk3588-u-boot.dtsi"
-
-/ {
-	chosen {
-		u-boot,spl-boot-order = "same-as-spl", &sdmmc, &sdhci;
-	};
-};
arch/arm/dts/rk3588-rock-5b-u-boot.dtsi +0 -4
index 5fa20cecc044..e99e60185ebe 100644
@@ -7,10 +7,6 @@
  #include <dt-bindings/usb/pd.h>
 
  / {
-	chosen {
-		u-boot,spl-boot-order = "same-as-spl", &sdmmc, &sdhci;
-	};
-
  	vcc12v_dcin: vcc12v-dcin-regulator {
  		compatible = "regulator-fixed";
  		regulator-name = "vcc12v_dcin";
arch/arm/dts/rk3588-turing-rk1-u-boot.dtsi +0 -6
index 06c6f327c14b..e791b572b6bf 100644
@@ -6,12 +6,6 @@
 
  #include "rk3588-u-boot.dtsi"
 
-/ {
-	chosen {
-		u-boot,spl-boot-order = "same-as-spl", &sdmmc, &sdhci;
-	};
-};
-
  &sdhci {
  	cap-mmc-highspeed;
  	mmc-ddr-1_8v;
arch/arm/dts/rk3588s-rock-5a-u-boot.dtsi +0 -6
index 584476f77b13..9a6a353088df 100644
@@ -5,12 +5,6 @@
 
  #include "rk3588s-u-boot.dtsi"
 
-/ {
-	chosen {
-		u-boot,spl-boot-order = "same-as-spl", &sdmmc, &sdhci;
-	};
-};
-
  &sdhci {
  	cap-mmc-highspeed;
  	mmc-ddr-1_8v;
arch/arm/dts/rk3588s-u-boot.dtsi +4 -0
index d251a210b313..945b2d62a75e 100644
@@ -10,6 +10,10 @@
  		spi5 = &sfc;
  	};
 
+	chosen {
+		u-boot,spl-boot-order = "same-as-spl", &sdmmc, &sdhci;
+	};
+
  	dmc {
  		compatible = "rockchip,rk3588-dmc";
  		bootph-all;
#13 lore raw

PATCH 7/7 rockchip: rk35xx: Remove unnecessary status props

In reply to Jonas Karlman

Remove unnecessary status props from rk35xx u-boot.dtsi files, regular device tree files or default value already enable the affected nodes.

Also reorder bootph-pre-ram and clock-frequency props alphabetically in rk3588s-u-boot.dtsi uart2 node.

---
 arch/arm/dts/rk356x-u-boot.dtsi            | 7 -------
 arch/arm/dts/rk3588-turing-rk1-u-boot.dtsi | 1 -
 arch/arm/dts/rk3588s-u-boot.dtsi           | 7 +------
 3 files changed, 1 insertion(+), 14 deletions(-)
arch/arm/dts/rk356x-u-boot.dtsi +0 -7
index cacd45348a49..d347080577d9 100644
@@ -19,7 +19,6 @@
 	dmc: dmc {
 		compatible = "rockchip,rk3568-dmc";
 		bootph-all;
-		status = "okay";
 	};
 
 	otp: nvmem@fe38c000 {
@@ -27,7 +26,6 @@
 		reg = <0x0 0xfe38c000 0x0 0x4000>;
 		#address-cells = <1>;
 		#size-cells = <1>;
-		status = "okay";
 
 		cpu_id: id@a {
 			reg = <0x0a 0x10>;
@@ -37,27 +35,22 @@
 
 &xin24m {
 	bootph-all;
-	status = "okay";
 };
 
 &cru {
 	bootph-all;
-	status = "okay";
 };
 
 &pmucru {
 	bootph-all;
-	status = "okay";
 };
 
 &grf {
 	bootph-all;
-	status = "okay";
 };
 
 &pmugrf {
 	bootph-all;
-	status = "okay";
 };
 
 &pinctrl {
arch/arm/dts/rk3588-turing-rk1-u-boot.dtsi +0 -1
index e791b572b6bf..471508a9ed74 100644
@@ -15,5 +15,4 @@
 &uart9 {
 	bootph-pre-ram;
 	clock-frequency = <24000000>;
-	status = "okay";
 };
arch/arm/dts/rk3588s-u-boot.dtsi +1 -6
index 945b2d62a75e..bf3b1ea8a3c6 100644
@@ -17,7 +17,6 @@
 	dmc {
 		compatible = "rockchip,rk3588-dmc";
 		bootph-all;
-		status = "okay";
 	};
 
 	usb_host0_xhci: usb@fc000000 {
@@ -165,17 +164,14 @@
 
 &xin24m {
 	bootph-all;
-	status = "okay";
 };
 
 &cru {
 	bootph-pre-ram;
-	status = "okay";
 };
 
 &sys_grf {
 	bootph-pre-ram;
-	status = "okay";
 };
 
 &pmu1grf {
@@ -217,9 +213,8 @@
 };
 
 &uart2 {
-	clock-frequency = <24000000>;
 	bootph-pre-ram;
-	status = "okay";
+	clock-frequency = <24000000>;
 };
 
 &uart2m0_xfer {
Signature · 1 line
2.43.0
Reviewed-by on v1 7/7
#14 lore raw

Re: [PATCH 7/7] rockchip: rk35xx: Remove unnecessary status props

Quoted 7 lines · Jonas Karlman

Remove unnecessary status props from rk35xx u-boot.dtsi files, regular device tree files or default value already enable the affected nodes.

Also reorder bootph-pre-ram and clock-frequency props alphabetically in rk3588s-u-boot.dtsi uart2 node.

Thanks,
- Kever

Quoted 105 lines
---
  arch/arm/dts/rk356x-u-boot.dtsi            | 7 -------
  arch/arm/dts/rk3588-turing-rk1-u-boot.dtsi | 1 -
  arch/arm/dts/rk3588s-u-boot.dtsi           | 7 +------
  3 files changed, 1 insertion(+), 14 deletions(-)
arch/arm/dts/rk356x-u-boot.dtsi +0 -7
index cacd45348a49..d347080577d9 100644
@@ -19,7 +19,6 @@
  	dmc: dmc {
  		compatible = "rockchip,rk3568-dmc";
  		bootph-all;
-		status = "okay";
  	};
 
  	otp: nvmem@fe38c000 {
@@ -27,7 +26,6 @@
  		reg = <0x0 0xfe38c000 0x0 0x4000>;
  		#address-cells = <1>;
  		#size-cells = <1>;
-		status = "okay";
 
  		cpu_id: id@a {
  			reg = <0x0a 0x10>;
@@ -37,27 +35,22 @@
 
  &xin24m {
  	bootph-all;
-	status = "okay";
  };
 
  &cru {
  	bootph-all;
-	status = "okay";
  };
 
  &pmucru {
  	bootph-all;
-	status = "okay";
  };
 
  &grf {
  	bootph-all;
-	status = "okay";
  };
 
  &pmugrf {
  	bootph-all;
-	status = "okay";
  };
 
  &pinctrl {
arch/arm/dts/rk3588-turing-rk1-u-boot.dtsi +0 -1
index e791b572b6bf..471508a9ed74 100644
@@ -15,5 +15,4 @@
  &uart9 {
  	bootph-pre-ram;
  	clock-frequency = <24000000>;
-	status = "okay";
  };
arch/arm/dts/rk3588s-u-boot.dtsi +1 -6
index 945b2d62a75e..bf3b1ea8a3c6 100644
@@ -17,7 +17,6 @@
  	dmc {
  		compatible = "rockchip,rk3588-dmc";
  		bootph-all;
-		status = "okay";
  	};
 
  	usb_host0_xhci: usb@fc000000 {
@@ -165,17 +164,14 @@
 
  &xin24m {
  	bootph-all;
-	status = "okay";
  };
 
  &cru {
  	bootph-pre-ram;
-	status = "okay";
  };
 
  &sys_grf {
  	bootph-pre-ram;
-	status = "okay";
  };
 
  &pmu1grf {
@@ -217,9 +213,8 @@
  };
 
  &uart2 {
-	clock-frequency = <24000000>;
  	bootph-pre-ram;
-	status = "okay";
+	clock-frequency = <24000000>;
  };
 
  &uart2m0_xfer {