[PATCH v7 4/5] arm64: dts: rockchip: add core dtsi for RK3562 SoC

Chukun Pan amadeus at jmu.edu.cn
Sun May 11 05:00:09 PDT 2025


Hi,

Sorry I just posted to the wrong thread.

> First of all, thanks for noticing all the bits and pieces to improve.
> I di think I have now fixed up all the "regular" pieces you mentioned
> and amended the commit accordingly:
>
> https://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip.git/commit/?id=1d2f65fa98ddcafdfd1ebcdb87105141861b584a

Thanks a lot for the quick fix! It seems there is still a little problem:

> <snip>
> --- /dev/null
> +++ b/arch/arm64/boot/dts/rockchip/rk3562.dtsi
> <snip>
+	gpu_opp_table: opp-table-gpu {
+		compatible = "operating-points-v2";
+
+		opp-300000000 {
+			opp-hz = /bits/ 64 <300000000>;
+			opp-microvolt = <825000 825000 1000000>;
+		};
+		opp-400000000 {
+		opp-hz = /bits/ 64 <400000000>;

This line is missing a tab.

+			opp-microvolt = <825000 825000 1000000>;
+		};
> <snip>
+		spi0: spi at ff220000 {
+			compatible = "rockchip,rk3562-spi", "rockchip,rk3066-spi";
+			reg = <0x0 0xff220000 0x0 0x1000>;
+			interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>;
+			#address-cells = <1>;
+			#size-cells = <0>;

Also needed here.

> <snip>
> +		pwm3: pwm at ff230030 {
> +			compatible = "rockchip,rk3562-pwm", "rockchip,rk3328-pwm";
> +			reg = <0x0 0xff230030 0x0 0x10>;
> +			#pwm-cells = <3>;

Missed here.

> <snip>
> +				power-domain at 12 {
> +					reg = <12>;
> +					#power-domain-cells = <1>;
> +					#address-cells = <1>;
> +					#size-cells = <0>;
> ...
> +				power-domain at 13 {
> +					reg = <13>;
> +					#power-domain-cells = <1>;

Does #power/#address/#size need to be put under pm_qos?

> <snip>
> +		spi1: spi at ff640000 {
> +			compatible = "rockchip,rk3066-spi";
> +			reg = <0x0 0xff640000 0x0 0x1000>;
> +			interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>;
> +			#address-cells = <1>;
> +			#size-cells = <0>;
> ...
> +		spi2: spi at ff650000 {
> +			compatible = "rockchip,rk3066-spi";
> +			reg = <0x0 0xff650000 0x0 0x1000>;
> +			interrupts = <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>;
> +			#address-cells = <1>;
> +			#size-cells = <0>;

Same here.

> <snip>
> +		pwm4: pwm at ff700000 {
> +			compatible = "rockchip,rk3562-pwm", "rockchip,rk3328-pwm";
> +			reg = <0x0 0xff700000 0x0 0x10>;
> +			#pwm-cells = <3>;
> +			pinctrl-names = "active";
> ...
> +		pwm5: pwm at ff700010 {
> +			compatible = "rockchip,rk3562-pwm", "rockchip,rk3328-pwm";
> +			reg = <0x0 0xff700010 0x0 0x10>;
> +			#pwm-cells = <3>;
> +			pinctrl-names = "active";
> ...
> +		pwm6: pwm at ff700020 {
> +			compatible = "rockchip,rk3562-pwm", "rockchip,rk3328-pwm";
> +			reg = <0x0 0xff700020 0x0 0x10>;
> +			#pwm-cells = <3>;
> +			pinctrl-names = "active";
> ...
> +		pwm7: pwm at ff700030 {
> +			compatible = "rockchip,rk3562-pwm", "rockchip,rk3328-pwm";
> +			reg = <0x0 0xff700030 0x0 0x10>;
> +			#pwm-cells = <3>;
> +			pinctrl-names = "active";
> ...
> +		pwm8: pwm at ff710000 {
> +			compatible = "rockchip,rk3562-pwm", "rockchip,rk3328-pwm";
> +			reg = <0x0 0xff710000 0x0 0x10>;
> +			#pwm-cells = <3>;
> +			pinctrl-names = "active";
> ...
> +		pwm9: pwm at ff710010 {
> +			compatible = "rockchip,rk3562-pwm", "rockchip,rk3328-pwm";
> +			reg = <0x0 0xff710010 0x0 0x10>;
> +			#pwm-cells = <3>;
> +			pinctrl-names = "active";
> ...
> +		pwm10: pwm at ff710020 {
> +			compatible = "rockchip,rk3562-pwm", "rockchip,rk3328-pwm";
> +			reg = <0x0 0xff710020 0x0 0x10>;
> +			#pwm-cells = <3>;
> +			pinctrl-names = "active";
> ...
> +		pwm11: pwm at ff710030 {
> +			compatible = "rockchip,rk3562-pwm", "rockchip,rk3328-pwm";
> +			reg = <0x0 0xff710030 0x0 0x10>;
> +			#pwm-cells = <3>;
> +			pinctrl-names = "active";
> ...
> +		pwm12: pwm at ff720000 {
> +			compatible = "rockchip,rk3562-pwm", "rockchip,rk3328-pwm";
> +			reg = <0x0 0xff720000 0x0 0x10>;
> +			#pwm-cells = <3>;
> +			pinctrl-names = "active";
> ...
> +		pwm13: pwm at ff720010 {
> +			compatible = "rockchip,rk3562-pwm", "rockchip,rk3328-pwm";
> +			reg = <0x0 0xff720010 0x0 0x10>;
> +			#pwm-cells = <3>;
> +			pinctrl-names = "active";
> ...
> +		pwm14: pwm at ff720020 {
> +			compatible = "rockchip,rk3562-pwm", "rockchip,rk3328-pwm";
> +			reg = <0x0 0xff720020 0x0 0x10>;
> +			#pwm-cells = <3>;
> +			pinctrl-names = "active";
> ...
> +		pwm15: pwm at ff720030 {
> +			compatible = "rockchip,rk3562-pwm", "rockchip,rk3328-pwm";
> +			reg = <0x0 0xff720030 0x0 0x10>;
> +			#pwm-cells = <3>;
> +			pinctrl-names = "active";

pinctrl and #pwm-cells forgot to change.

> <snip>
> +		sdmmc0: mmc at ff880000 {
> +			compatible = "rockchip,rk3562-dw-mshc",
> +				     "rockchip,rk3288-dw-mshc";
> +			reg = <0x0 0xff880000 0x0 0x10000>;
> +			interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>;
> +			max-frequency = <200000000>;
> ...
> +		sdmmc1: mmc at ff890000 {
> +			compatible = "rockchip,rk3562-dw-mshc",
> +				     "rockchip,rk3288-dw-mshc";
> +			reg = <0x0 0xff890000 0x0 0x10000>;
> +			interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>;
> +			max-frequency = <200000000>;

max-frequency should be placed below clock

> <snip>
> +		saradc0: adc at ff730000 {
> +			compatible = "rockchip,rk3562-saradc";
> +			reg = <0x0 0xff730000 0x0 0x100>;
> +			interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
> +			#io-channel-cells = <1>;
> ...
> +		saradc1: adc at ffaa0000 {
> +			compatible = "rockchip,rk3562-saradc";
> +			reg = <0x0 0xffaa0000 0x0 0x100>;
> +			interrupts = <GIC_SPI 124 IRQ_TYPE_LEVEL_HIGH>;
> +			#io-channel-cells = <1>;

`#io-channel-cells` should be put above `status = "disabled";`

Thanks,
Chukun

--
2.25.1




More information about the linux-arm-kernel mailing list