Skip to contentSkip to conversation

Fixing some dtbscheck warnings

PATCH Applied Heiko Stuebner 6 participants 37 messages Oct 8, 2024 – Oct 14, 2024

Subsystems (2)
lore
Share & tools
lore

Heiko Stuebner

author maintainer
#0 lore raw

v2 cover Fixing some dtbscheck warnings

Fixing dtbs-check warnings should be declared addictive, one starts with one warning, then another one and then it's oh, I'll just fix this "last" one over and over ;-)

We still have more, if others want to play too :-D .

changes in v2:
- more fixes
- use more appropriate txco clk for brcm bluetooth

Heiko Stuebner (14):
arm64: dts: rockchip: fix i2c2 pinctrl-names property on

    anbernic-rg353p/v
  arm64: dts: rockchip: Drop regulator-init-microvolt from two boards
  arm64: dts: rockchip: Fix bluetooth properties on rk3566 box demo
  arm64: dts: rockchip: Fix bluetooth properties on Rock960 boards
  arm64: dts: rockchip: Remove undocumented supports-emmc property
  arm64: dts: rockchip: Remove #cooling-cells from fan on Theobroma
    boards
  arm64: dts: rockchip: Fix LED triggers on rk3308-roc-cc
  arm64: dts: rockchip: remove num-slots property from
    rk3328-nanopi-r2s-plus

arm64: dts: rockchip: Remove 'enable-active-low' from two boards
arm64: dts: rockchip: remove orphaned pinctrl-names from pinephone pro
ARM: dts: rockchip: fix rk3036 acodec node
ARM: dts: rockchip: drop grf reference from rk3036 hdmi
ARM: dts: rockchip: Fix the spi controller on rk3036
ARM: dts: rockchip: Fix the realtek audio codec on rk3036-kylin

 arch/arm/boot/dts/rockchip/rk3036-kylin.dts        |  4 ++--
 arch/arm/boot/dts/rockchip/rk3036.dtsi             | 14 +++++++-------
 arch/arm64/boot/dts/rockchip/px30-ringneck.dtsi    |  2 --
 arch/arm64/boot/dts/rockchip/rk3308-roc-cc.dts     |  4 ++--
 .../boot/dts/rockchip/rk3328-nanopi-r2s-plus.dts   |  2 --
 arch/arm64/boot/dts/rockchip/rk3368-lion.dtsi      |  1 -
 .../boot/dts/rockchip/rk3399-pinephone-pro.dts     |  2 --
 arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi      |  1 -
 arch/arm64/boot/dts/rockchip/rk3399-rock960.dtsi   |  2 +-
 .../boot/dts/rockchip/rk3566-anbernic-rg353p.dts   |  2 +-
 .../boot/dts/rockchip/rk3566-anbernic-rg353v.dts   |  2 +-
 arch/arm64/boot/dts/rockchip/rk3566-box-demo.dts   |  6 +++---
 arch/arm64/boot/dts/rockchip/rk3566-lubancat-1.dts |  1 -
 arch/arm64/boot/dts/rockchip/rk3568-lubancat-2.dts |  1 -
 arch/arm64/boot/dts/rockchip/rk3568-roc-pc.dts     |  3 ---
 .../rk3568-wolfvision-pf5-io-expander.dtso         |  1 -
 .../arm64/boot/dts/rockchip/rk3588-toybrick-x0.dts |  1 -
 .../arm64/boot/dts/rockchip/rk3588s-orangepi-5.dts |  1 -
 18 files changed, 17 insertions(+), 33 deletions(-)
Signature · 1 line
2.43.0
author maintainer
#1 lore raw

PATCH v2 1/14 arm64: dts: rockchip: fix i2c2 pinctrl-names property on anbernic-rg353p/v

We want to control pins, not beer mugs, so rename pintctrl-names to the expected inctrl-names.

This was not affecting functionality, because the i2c2 controller already had a set of pinctrl properties.

Fixes 523adb553573 ("arm64: dts: rockchip: add Anbernic RG353P and RG503")
Fixes 1e141cf12726 ("arm64: dts: rockchip: add Anbernic RG353V and RG353VS")
Cc Chris Morgan <[email protected]>
---
 arch/arm64/boot/dts/rockchip/rk3566-anbernic-rg353p.dts | 2 +-
 arch/arm64/boot/dts/rockchip/rk3566-anbernic-rg353v.dts | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/rockchip/rk3566-anbernic-rg353p.dts +1 -1
index a73cf30801ec..9816a4ed4599 100644
@@ -92,7 +92,7 @@ button-r2 {
 };
 
 &i2c2 {
-	pintctrl-names = "default";
+	pinctrl-names = "default";
 	pinctrl-0 = <&i2c2m1_xfer>;
 	status = "okay";
 
arch/arm64/boot/dts/rockchip/rk3566-anbernic-rg353v.dts +1 -1
index e9954a33e8cd..a79a5614bcc8 100644
@@ -79,7 +79,7 @@ button-r2 {
 };
 
 &i2c2 {
-	pintctrl-names = "default";
+	pinctrl-names = "default";
 	pinctrl-0 = <&i2c2m1_xfer>;
 	status = "okay";
 
Signature · 1 line
2.43.0
Reviewed-by on v2 1/14
#2 lore raw

Re: [PATCH v2 01/14] arm64: dts: rockchip: fix i2c2 pinctrl-names property on anbernic-rg353p/v

Hello Heiko,

Quoted 2 lines · Heiko Stuebner

We want to control pins, not beer mugs, so rename pintctrl-names to the expected inctrl-names.

s/inctrl-names/pinctrl-names/

Quoted 8 lines

This was not affecting functionality, because the i2c2 controller already had a set of pinctrl properties.

Fixes 523adb553573 ("arm64: dts: rockchip: add Anbernic RG353P and RG503")
Fixes 1e141cf12726 ("arm64: dts: rockchip: add Anbernic RG353V and RG353VS")
Cc Chris Morgan <[email protected]>

Looking good to me, thanks for the patch. It's obviously correct.

Quoted 32 lines
---
 arch/arm64/boot/dts/rockchip/rk3566-anbernic-rg353p.dts | 2 +-
 arch/arm64/boot/dts/rockchip/rk3566-anbernic-rg353v.dts | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/rockchip/rk3566-anbernic-rg353p.dts +1 -1
index a73cf30801ec..9816a4ed4599 100644
@@ -92,7 +92,7 @@ button-r2 {
 };
 
 &i2c2 {
-	pintctrl-names = "default";
+	pinctrl-names = "default";
 	pinctrl-0 = <&i2c2m1_xfer>;
 	status = "okay";
 
arch/arm64/boot/dts/rockchip/rk3566-anbernic-rg353v.dts +1 -1
index e9954a33e8cd..a79a5614bcc8 100644
@@ -79,7 +79,7 @@ button-r2 {
 };
 
 &i2c2 {
-	pintctrl-names = "default";
+	pinctrl-names = "default";
 	pinctrl-0 = <&i2c2m1_xfer>;
 	status = "okay";
author maintainer
#3 lore raw

PATCH v2 2/14 arm64: dts: rockchip: Drop regulator-init-microvolt from two boards

In reply to Heiko Stuebner

rk3568-roc-pc and rk3588-toybrick-x0 re-introduced this property despite previous patches removing older instances already.

regulator-init-microvolt is not part of any regulator binding and is only used in the Rockchip vendor kernel. So drop it.

It is used by u-boot in some places to setup initial regulator-state, but that should happen in the existing -u-boot devicetree additions.

Fixes 007b4bb47f44 ("arm64: dts: rockchip: add dts for Firefly Station P2 aka rk3568-roc-pc")
Cc Furkan Kardame <[email protected]>
Fixes 8ffe365f8dc7 ("arm64: dts: rockchip: Add devicetree support for TB-RK3588X board")
Cc Elon Zhang <[email protected]>
---
 arch/arm64/boot/dts/rockchip/rk3568-roc-pc.dts      | 3 ---
 arch/arm64/boot/dts/rockchip/rk3588-toybrick-x0.dts | 1 -
 2 files changed, 4 deletions(-)
arch/arm64/boot/dts/rockchip/rk3568-roc-pc.dts +0 -3
index e333449ead04..2fa89a0eeafc 100644
@@ -272,7 +272,6 @@ vdd_logic: DCDC_REG1 {
 				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>;
@@ -285,7 +284,6 @@ regulator-state-mem {
 
 			vdd_gpu: DCDC_REG2 {
 				regulator-name = "vdd_gpu";
-				regulator-init-microvolt = <900000>;
 				regulator-initial-mode = <0x2>;
 				regulator-min-microvolt = <500000>;
 				regulator-max-microvolt = <1350000>;
@@ -309,7 +307,6 @@ regulator-state-mem {
 
 			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/arm64/boot/dts/rockchip/rk3588-toybrick-x0.dts +0 -1
index d0021524e7f9..328dcb894ccb 100644
@@ -428,7 +428,6 @@ vdd_vdenc_s0: vdd_vdenc_mem_s0: dcdc-reg4 {
 				regulator-boot-on;
 				regulator-min-microvolt = <550000>;
 				regulator-max-microvolt = <950000>;
-				regulator-init-microvolt = <750000>;
 				regulator-ramp-delay = <12500>;
 
 				regulator-state-mem {
Signature · 1 line
2.43.0
Reviewed-by on v2 2/14
#4 lore raw

Re: [PATCH v2 02/14] arm64: dts: rockchip: Drop regulator-init-microvolt from two boards

Hello Heiko,

Quoted 9 lines · Heiko Stuebner

rk3568-roc-pc and rk3588-toybrick-x0 re-introduced this property despite previous patches removing older instances already.

regulator-init-microvolt is not part of any regulator binding and is only used in the Rockchip vendor kernel. So drop it.

It is used by u-boot in some places to setup initial regulator-state, but that should happen in the existing -u-boot devicetree additions.

Quoted 7 lines
Fixes 007b4bb47f44 ("arm64: dts: rockchip: add dts for Firefly

Station P2 aka rk3568-roc-pc")

Cc Furkan Kardame <[email protected]>
Fixes 8ffe365f8dc7 ("arm64: dts: rockchip: Add devicetree support for

TB-RK3588X board")

Looking good to me, thanks for the patch. Having support for the "regulator-init-microvolt" property in board dts files, or not having it, goes back to the main purpose of the DTs, which define hardware, but, in general, do not contain system configuration or policies.

Quoted 47 lines
---
 arch/arm64/boot/dts/rockchip/rk3568-roc-pc.dts      | 3 ---
 arch/arm64/boot/dts/rockchip/rk3588-toybrick-x0.dts | 1 -
 2 files changed, 4 deletions(-)
arch/arm64/boot/dts/rockchip/rk3568-roc-pc.dts +0 -3
index e333449ead04..2fa89a0eeafc 100644
@@ -272,7 +272,6 @@ vdd_logic: DCDC_REG1 {
 				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>;
@@ -285,7 +284,6 @@ regulator-state-mem {
 
 			vdd_gpu: DCDC_REG2 {
 				regulator-name = "vdd_gpu";
-				regulator-init-microvolt = <900000>;
 				regulator-initial-mode = <0x2>;
 				regulator-min-microvolt = <500000>;
 				regulator-max-microvolt = <1350000>;
@@ -309,7 +307,6 @@ regulator-state-mem {
 
 			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/arm64/boot/dts/rockchip/rk3588-toybrick-x0.dts +0 -1
index d0021524e7f9..328dcb894ccb 100644
@@ -428,7 +428,6 @@ vdd_vdenc_s0: vdd_vdenc_mem_s0: dcdc-reg4 {
 				regulator-boot-on;
 				regulator-min-microvolt = <550000>;
 				regulator-max-microvolt = <950000>;
-				regulator-init-microvolt = <750000>;
 				regulator-ramp-delay = <12500>;
 
 				regulator-state-mem {
author maintainer
#5 lore raw

PATCH v2 3/14 arm64: dts: rockchip: Fix bluetooth properties on rk3566 box demo

In reply to Heiko Stuebner

The expected clock-name is different, and extclk also is deprecated in favor of txco for clocks that are not crystals.

The wakeup gpio properties are named differently too, when changing from vendor-tree to mainline. So fix those to match the binding.

Fixes 2e0537b16b25 ("arm64: dts: rockchip: Add dts for rockchip rk3566 box demo board")
Cc Andy Yan <[email protected]>
---
 arch/arm64/boot/dts/rockchip/rk3566-box-demo.dts | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
arch/arm64/boot/dts/rockchip/rk3566-box-demo.dts +3 -3
index 0c18406e4c59..7d4680933823 100644
@@ -449,9 +449,9 @@ &uart1 {
 	bluetooth {
 		compatible = "brcm,bcm43438-bt";
 		clocks = <&pmucru CLK_RTC_32K>;
-		clock-names = "ext_clock";
-		device-wake-gpios = <&gpio2 RK_PC1 GPIO_ACTIVE_HIGH>;
-		host-wake-gpios = <&gpio2 RK_PC0 GPIO_ACTIVE_HIGH>;
+		clock-names = "txco";
+		device-wakeup-gpios = <&gpio2 RK_PC1 GPIO_ACTIVE_HIGH>;
+		host-wakeup-gpios = <&gpio2 RK_PC0 GPIO_ACTIVE_HIGH>;
 		shutdown-gpios = <&gpio2 RK_PB7 GPIO_ACTIVE_HIGH>;
 		pinctrl-names = "default";
 		pinctrl-0 = <&bt_host_wake_l &bt_wake_l &bt_enable_h>;
Signature · 1 line
2.43.0
Reviewed-by on v2 3/14
#6 lore raw

Re: [PATCH v2 03/14] arm64: dts: rockchip: Fix bluetooth properties on rk3566 box demo

Hello Heiko,

Quoted 10 lines · Heiko Stuebner

The expected clock-name is different, and extclk also is deprecated in favor of txco for clocks that are not crystals.

The wakeup gpio properties are named differently too, when changing from vendor-tree to mainline. So fix those to match the binding.

Fixes 2e0537b16b25 ("arm64: dts: rockchip: Add dts for rockchip

rk3566 box demo board")

Looking good to me, thanks for the patch. I've got these changes cross-referenced to what's expected in drivers/bluetooth/hci_bcm.c, and it's all fine.

Quoted 22 lines
---
 arch/arm64/boot/dts/rockchip/rk3566-box-demo.dts | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
arch/arm64/boot/dts/rockchip/rk3566-box-demo.dts +3 -3
index 0c18406e4c59..7d4680933823 100644
@@ -449,9 +449,9 @@ &uart1 {
 	bluetooth {
 		compatible = "brcm,bcm43438-bt";
 		clocks = <&pmucru CLK_RTC_32K>;
-		clock-names = "ext_clock";
-		device-wake-gpios = <&gpio2 RK_PC1 GPIO_ACTIVE_HIGH>;
-		host-wake-gpios = <&gpio2 RK_PC0 GPIO_ACTIVE_HIGH>;
+		clock-names = "txco";
+		device-wakeup-gpios = <&gpio2 RK_PC1 GPIO_ACTIVE_HIGH>;
+		host-wakeup-gpios = <&gpio2 RK_PC0 GPIO_ACTIVE_HIGH>;
 		shutdown-gpios = <&gpio2 RK_PB7 GPIO_ACTIVE_HIGH>;
 		pinctrl-names = "default";
 		pinctrl-0 = <&bt_host_wake_l &bt_wake_l &bt_enable_h>;
author maintainer
#7 lore raw

PATCH v2 4/14 arm64: dts: rockchip: Fix bluetooth properties on Rock960 boards

In reply to Heiko Stuebner

The expected clock-name is different, and extclk also is deprecated in favor of txco for clocks that are not crystals.

So fix it to match the binding.

Fixes c72235c288c8 ("arm64: dts: rockchip: Add on-board WiFi/BT support for Rock960 boards")
Cc Manivannan Sadhasivam <[email protected]>
---
 arch/arm64/boot/dts/rockchip/rk3399-rock960.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/rockchip/rk3399-rock960.dtsi +1 -1
index 8146f870d2bd..ab890e7b6c59 100644
@@ -576,7 +576,7 @@ &uart0 {
 	bluetooth {
 		compatible = "brcm,bcm43438-bt";
 		clocks = <&rk808 1>;
-		clock-names = "ext_clock";
+		clock-names = "txco";
 		device-wakeup-gpios = <&gpio2 RK_PD3 GPIO_ACTIVE_HIGH>;
 		host-wakeup-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_HIGH>;
 		shutdown-gpios = <&gpio0 RK_PB1 GPIO_ACTIVE_HIGH>;
Signature · 1 line
2.43.0
Reviewed-by on v2 4/14
#8 lore raw

Re: [PATCH v2 04/14] arm64: dts: rockchip: Fix bluetooth properties on Rock960 boards

Hello Heiko,

Quoted 9 lines · Heiko Stuebner

The expected clock-name is different, and extclk also is deprecated in favor of txco for clocks that are not crystals.

So fix it to match the binding.

Fixes c72235c288c8 ("arm64: dts: rockchip: Add on-board WiFi/BT

support for Rock960 boards")

Cc Manivannan Sadhasivam <[email protected]>

Looking good to me, thanks for the patch. I've got this change cross-referenced to what's expected in drivers/bluetooth/hci_bcm.c, and it's fine.

Quoted 18 lines
---
 arch/arm64/boot/dts/rockchip/rk3399-rock960.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/rockchip/rk3399-rock960.dtsi +1 -1
index 8146f870d2bd..ab890e7b6c59 100644
@@ -576,7 +576,7 @@ &uart0 {
 	bluetooth {
 		compatible = "brcm,bcm43438-bt";
 		clocks = <&rk808 1>;
-		clock-names = "ext_clock";
+		clock-names = "txco";
 		device-wakeup-gpios = <&gpio2 RK_PD3 GPIO_ACTIVE_HIGH>;
 		host-wakeup-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_HIGH>;
 		shutdown-gpios = <&gpio0 RK_PB1 GPIO_ACTIVE_HIGH>;
author maintainer
#9 lore raw

PATCH v2 5/14 arm64: dts: rockchip: Remove undocumented supports-emmc property

In reply to Heiko Stuebner

supports-emmc is an undocumented property that slipped into the mainline kernel devicetree for some boards. Drop it.

Fixes c484cf93f61b ("arm64: dts: rockchip: add PX30-µQ7 (Ringneck) SoM with Haikou baseboard")
Cc Quentin Schulz <[email protected]>
Fixes b8c028782922 ("arm64: dts: rockchip: Add DTS for FriendlyARM NanoPi R2S Plus")
Cc Sergey Bostandzhyan <[email protected]>
Fixes 8d94da58de53 ("arm64: dts: rockchip: Add EmbedFire LubanCat 1")
Cc Wenhao Cui <[email protected]>
Fixes cdf46cdbabfc ("arm64: dts: rockchip: Add dts for EmbedFire rk3568 LubanCat 2")
Cc Andy Yan <[email protected]>
---
 arch/arm64/boot/dts/rockchip/px30-ringneck.dtsi         | 1 -
 arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s-plus.dts | 1 -
 arch/arm64/boot/dts/rockchip/rk3566-lubancat-1.dts      | 1 -
 arch/arm64/boot/dts/rockchip/rk3568-lubancat-2.dts      | 1 -
 4 files changed, 4 deletions(-)
arch/arm64/boot/dts/rockchip/px30-ringneck.dtsi +0 -1
index bb1aea82e666..b7163ed74232 100644
@@ -66,7 +66,6 @@ &emmc {
 	bus-width = <8>;
 	cap-mmc-highspeed;
 	mmc-hs200-1_8v;
-	supports-emmc;
 	mmc-pwrseq = <&emmc_pwrseq>;
 	non-removable;
 	vmmc-supply = <&vcc_3v3>;
arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s-plus.dts +0 -1
index cb81ba3f23ff..3093f607f282 100644
@@ -27,6 +27,5 @@ &emmc {
 	num-slots = <1>;
 	pinctrl-names = "default";
 	pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_bus8>;
-	supports-emmc;
 	status = "okay";
 };
arch/arm64/boot/dts/rockchip/rk3566-lubancat-1.dts +0 -1
index c1194d1e438d..9a2f59a351de 100644
@@ -507,7 +507,6 @@ &sdhci {
 	non-removable;
 	pinctrl-names = "default";
 	pinctrl-0 = <&emmc_bus8 &emmc_clk &emmc_cmd>;
-	supports-emmc;
 	status = "okay";
 };
 
arch/arm64/boot/dts/rockchip/rk3568-lubancat-2.dts +0 -1
index a3112d5df200..b505a4537ee8 100644
@@ -589,7 +589,6 @@ &sdhci {
 	non-removable;
 	pinctrl-names = "default";
 	pinctrl-0 = <&emmc_bus8 &emmc_clk &emmc_cmd>;
-	supports-emmc;
 	status = "okay";
 };
 
Signature · 1 line
2.43.0
Reviewed-by on v2 5/14
#10 lore raw

Re: [PATCH v2 05/14] arm64: dts: rockchip: Remove undocumented supports-emmc property

Hello Heiko,

Quoted 7 lines · Heiko Stuebner

supports-emmc is an undocumented property that slipped into the mainline kernel devicetree for some boards. Drop it.

Fixes c484cf93f61b ("arm64: dts: rockchip: add PX30-µQ7 (Ringneck)

SoM with Haikou baseboard")

Cc Quentin Schulz <[email protected]>
Fixes b8c028782922 ("arm64: dts: rockchip: Add DTS for FriendlyARM
Quoted 8 lines

NanoPi R2S Plus")

Cc Sergey Bostandzhyan <[email protected]>
Fixes 8d94da58de53 ("arm64: dts: rockchip: Add EmbedFire LubanCat 1")
Cc Wenhao Cui <[email protected]>
Fixes cdf46cdbabfc ("arm64: dts: rockchip: Add dts for EmbedFire

rk3568 LubanCat 2")

Looking good to me, thanks for the patch. The introduced changes are obviously correct.

Quoted 57 lines
---
 arch/arm64/boot/dts/rockchip/px30-ringneck.dtsi         | 1 -
 arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s-plus.dts | 1 -
 arch/arm64/boot/dts/rockchip/rk3566-lubancat-1.dts      | 1 -
 arch/arm64/boot/dts/rockchip/rk3568-lubancat-2.dts      | 1 -
 4 files changed, 4 deletions(-)
arch/arm64/boot/dts/rockchip/px30-ringneck.dtsi +0 -1
index bb1aea82e666..b7163ed74232 100644
@@ -66,7 +66,6 @@ &emmc {
 	bus-width = <8>;
 	cap-mmc-highspeed;
 	mmc-hs200-1_8v;
-	supports-emmc;
 	mmc-pwrseq = <&emmc_pwrseq>;
 	non-removable;
 	vmmc-supply = <&vcc_3v3>;
arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s-plus.dts +0 -1
index cb81ba3f23ff..3093f607f282 100644
@@ -27,6 +27,5 @@ &emmc {
 	num-slots = <1>;
 	pinctrl-names = "default";
 	pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_bus8>;
-	supports-emmc;
 	status = "okay";
 };
arch/arm64/boot/dts/rockchip/rk3566-lubancat-1.dts +0 -1
index c1194d1e438d..9a2f59a351de 100644
@@ -507,7 +507,6 @@ &sdhci {
 	non-removable;
 	pinctrl-names = "default";
 	pinctrl-0 = <&emmc_bus8 &emmc_clk &emmc_cmd>;
-	supports-emmc;
 	status = "okay";
 };
 
arch/arm64/boot/dts/rockchip/rk3568-lubancat-2.dts +0 -1
index a3112d5df200..b505a4537ee8 100644
@@ -589,7 +589,6 @@ &sdhci {
 	non-removable;
 	pinctrl-names = "default";
 	pinctrl-0 = <&emmc_bus8 &emmc_clk &emmc_cmd>;
-	supports-emmc;
 	status = "okay";
 };
author maintainer
#11 lore raw

PATCH v2 6/14 arm64: dts: rockchip: Remove #cooling-cells from fan on Theobroma boards

In reply to Heiko Stuebner

All Theobroma boards use a ti,amc6821 as fan controller.
It normally runs in an automatically controlled way and while it may be possible to use it as part of a dt-based thermal management, this is not yet specified in the binding, nor implemented in any kernel.

Newer boards already don't contain that #cooling-cells property, but older ones do. So remove them for now, they can be re-added if thermal integration gets implemented in the future.

Fixes c484cf93f61b ("arm64: dts: rockchip: add PX30-µQ7 (Ringneck) SoM with Haikou baseboard")
Fixes d99a02bcfa81 ("arm64: dts: rockchip: add RK3368-uQ7 (Lion) SoM")
Fixes 2c66fc34e945 ("arm64: dts: rockchip: add RK3399-Q7 (Puma) SoM")
Cc Quentin Schulz <[email protected]>
Cc Klaus Goger <[email protected]>
---
 arch/arm64/boot/dts/rockchip/px30-ringneck.dtsi | 1 -
 arch/arm64/boot/dts/rockchip/rk3368-lion.dtsi   | 1 -
 arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi   | 1 -
 3 files changed, 3 deletions(-)
arch/arm64/boot/dts/rockchip/px30-ringneck.dtsi +0 -1
index b7163ed74232..a6ea9d8c785c 100644
@@ -293,7 +293,6 @@ &i2c1 {
 	fan: fan@18 {
 		compatible = "ti,amc6821";
 		reg = <0x18>;
-		#cooling-cells = <2>;
 	};
 
 	rtc_twi: rtc@6f {
arch/arm64/boot/dts/rockchip/rk3368-lion.dtsi +0 -1
index 8ac8acf4082d..ab3fda69a1fb 100644
@@ -61,7 +61,6 @@ i2c_lvds_blc: i2c@0 {
 			fan: fan@18 {
 				compatible = "ti,amc6821";
 				reg = <0x18>;
-				#cooling-cells = <2>;
 			};
 
 			rtc_twi: rtc@6f {
arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi +0 -1
index 650b1ba9c192..6de3128556b7 100644
@@ -395,7 +395,6 @@ &i2c7 {
 	fan: fan@18 {
 		compatible = "ti,amc6821";
 		reg = <0x18>;
-		#cooling-cells = <2>;
 	};
 
 	rtc_twi: rtc@6f {
Signature · 1 line
2.43.0
Reviewed-by on v2 6/14
#12 lore raw

Re: [PATCH v2 06/14] arm64: dts: rockchip: Remove #cooling-cells from fan on Theobroma boards

Hello Heiko,

Quoted 9 lines · Heiko Stuebner

All Theobroma boards use a ti,amc6821 as fan controller.
It normally runs in an automatically controlled way and while it may be possible to use it as part of a dt-based thermal management, this is not yet specified in the binding, nor implemented in any kernel.

Newer boards already don't contain that #cooling-cells property, but older ones do. So remove them for now, they can be re-added if thermal integration gets implemented in the future.

Quoted 8 lines
Fixes c484cf93f61b ("arm64: dts: rockchip: add PX30-µQ7 (Ringneck)

SoM with Haikou baseboard")

Fixes d99a02bcfa81 ("arm64: dts: rockchip: add RK3368-uQ7 (Lion) SoM")
Fixes 2c66fc34e945 ("arm64: dts: rockchip: add RK3399-Q7 (Puma) SoM")
Cc Quentin Schulz <[email protected]>
Cc Klaus Goger <[email protected]>

Looking good to me, thanks for the patch. In addition to the amc6821 driver currently not supporting full integration into the thermal framework, the "fan" DT node also isn't referenced in any cooling map, so having it define the "cooling-cells" property is of no use.

By the way, it would be nice to see the amc6821 driver supporting fan speed regulation, and test it to check who does a better job when it comes to cooling and fan speed regulation, the thermal framework or the chip's built-in logic. :)

Quoted 45 lines
---
 arch/arm64/boot/dts/rockchip/px30-ringneck.dtsi | 1 -
 arch/arm64/boot/dts/rockchip/rk3368-lion.dtsi   | 1 -
 arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi   | 1 -
 3 files changed, 3 deletions(-)
arch/arm64/boot/dts/rockchip/px30-ringneck.dtsi +0 -1
index b7163ed74232..a6ea9d8c785c 100644
@@ -293,7 +293,6 @@ &i2c1 {
 	fan: fan@18 {
 		compatible = "ti,amc6821";
 		reg = <0x18>;
-		#cooling-cells = <2>;
 	};
 
 	rtc_twi: rtc@6f {
arch/arm64/boot/dts/rockchip/rk3368-lion.dtsi +0 -1
index 8ac8acf4082d..ab3fda69a1fb 100644
@@ -61,7 +61,6 @@ i2c_lvds_blc: i2c@0 {
 			fan: fan@18 {
 				compatible = "ti,amc6821";
 				reg = <0x18>;
-				#cooling-cells = <2>;
 			};
 
 			rtc_twi: rtc@6f {
arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi +0 -1
index 650b1ba9c192..6de3128556b7 100644
@@ -395,7 +395,6 @@ &i2c7 {
 	fan: fan@18 {
 		compatible = "ti,amc6821";
 		reg = <0x18>;
-		#cooling-cells = <2>;
 	};
 
 	rtc_twi: rtc@6f {
#13 lore raw

Re: [PATCH v2 06/14] arm64: dts: rockchip: Remove #cooling-cells from fan on Theobroma boards

Hi Dragan,

Quoted 26 lines · Dragan Simic

Hello Heiko,

Quoted 9 lines · Heiko Stuebner

All Theobroma boards use a ti,amc6821 as fan controller.
It normally runs in an automatically controlled way and while it may be possible to use it as part of a dt-based thermal management, this is not yet specified in the binding, nor implemented in any kernel.

Newer boards already don't contain that #cooling-cells property, but older ones do. So remove them for now, they can be re-added if thermal integration gets implemented in the future.

Quoted 8 lines
Fixes c484cf93f61b ("arm64: dts: rockchip: add PX30-µQ7 (Ringneck)

SoM with Haikou baseboard")

Fixes d99a02bcfa81 ("arm64: dts: rockchip: add RK3368-uQ7 (Lion) SoM")
Fixes 2c66fc34e945 ("arm64: dts: rockchip: add RK3399-Q7 (Puma) SoM")
Cc Quentin Schulz <[email protected]>
Cc Klaus Goger <[email protected]>

Looking good to me, thanks for the patch.  In addition to the amc6821 driver currently not supporting full integration into the thermal framework, the "fan" DT node also isn't referenced in any cooling map, so having it define the "cooling-cells" property is of no use.

Quoted 5 lines

By the way, it would be nice to see the amc6821 driver supporting fan speed regulation, and test it to check who does a better job when it comes to cooling and fan speed regulation, the thermal framework or the chip's built-in logic. :)

Wasn't this feature added this summer by Guenter?

c.f. https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/drivers/hwmon/amc6821.c?id=becbd16ed2f8f427239ffda66b5d894008bc56af

Mode 4 is https://elixir.bootlin.com/linux/v6.11.3/source/drivers/hwmon/amc6821.c#L367 ([FDRC1:FDRC0] = [01] -> Software-RPM Control Mode (Fan Speed Regulator) according to the datasheet).

In any case, we cannot compare those for our products as we do not have a genuine AMC6821 but a handmade simulation of the IP we run in an MCU.

But that'd be an interesting data point indeed :)

Cheers,
Quentin

#14 lore raw

Re: [PATCH v2 06/14] arm64: dts: rockchip: Remove #cooling-cells from fan on Theobroma boards

Hello Quentin,

Quoted 30 lines · Quentin Schulz
Quoted 24 lines · Dragan Simic
Quoted 9 lines · Heiko Stuebner

All Theobroma boards use a ti,amc6821 as fan controller.
It normally runs in an automatically controlled way and while it may be possible to use it as part of a dt-based thermal management, this is not yet specified in the binding, nor implemented in any kernel.

Newer boards already don't contain that #cooling-cells property, but older ones do. So remove them for now, they can be re-added if thermal integration gets implemented in the future.

Quoted 8 lines
Fixes c484cf93f61b ("arm64: dts: rockchip: add PX30-µQ7 (Ringneck)

SoM with Haikou baseboard")

Fixes d99a02bcfa81 ("arm64: dts: rockchip: add RK3368-uQ7 (Lion) SoM")
Fixes 2c66fc34e945 ("arm64: dts: rockchip: add RK3399-Q7 (Puma) SoM")
Cc Quentin Schulz <[email protected]>
Cc Klaus Goger <[email protected]>

Looking good to me, thanks for the patch.  In addition to the amc6821 driver currently not supporting full integration into the thermal framework, the "fan" DT node also isn't referenced in any cooling map, so having it define the "cooling-cells" property is of no use.

Quoted 4 lines

By the way, it would be nice to see the amc6821 driver supporting fan speed regulation, and test it to check who does a better job when it comes to cooling and fan speed regulation, the thermal framework or the chip's built-in logic. :)

Quoted 8 lines

Wasn't this feature added this summer by Guenter?

c.f. https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/drivers/hwmon/amc6821.c?id=becbd16ed2f8f427239ffda66b5d894008bc56af

Mode 4 is
https://elixir.bootlin.com/linux/v6.11.3/source/drivers/hwmon/amc6821.c#L367
([FDRC1:FDRC0] = [01] -> Software-RPM Control Mode (Fan Speed Regulator) according to the datasheet).

Ah, SENSOR_DEVICE_ATTR_RW(fan1_target, fan, IDX_FAN1_TARGET)... How did I miss that? Hmm... Maybe I was looking at some older local branch, which happened not to include that commit.

Anywyay, good to know, thanks.

Quoted 3 lines

In any case, we cannot compare those for our products as we do not have a genuine AMC6821 but a handmade simulation of the IP we run in an MCU.

I seem to remember your MCU that performs a few tasks, back from some related discussions. I wonder what was the reason to implement it in software, instead of using actual fan controller chip?

Quoted 1 line

But that'd be an interesting data point indeed :)

I'm glad that you agree. :)

#15 lore raw

Re: [PATCH v2 06/14] arm64: dts: rockchip: Remove #cooling-cells from fan on Theobroma boards

Hi Dragan,

Quoted 48 lines · Dragan Simic

Hello Quentin,

Quoted 30 lines · Quentin Schulz
Quoted 24 lines · Dragan Simic
Quoted 9 lines · Heiko Stuebner

All Theobroma boards use a ti,amc6821 as fan controller.
It normally runs in an automatically controlled way and while it may be possible to use it as part of a dt-based thermal management, this is not yet specified in the binding, nor implemented in any kernel.

Newer boards already don't contain that #cooling-cells property, but older ones do. So remove them for now, they can be re-added if thermal integration gets implemented in the future.

Quoted 8 lines
Fixes c484cf93f61b ("arm64: dts: rockchip: add PX30-µQ7 (Ringneck)

SoM with Haikou baseboard")

Fixes d99a02bcfa81 ("arm64: dts: rockchip: add RK3368-uQ7 (Lion) SoM")
Fixes 2c66fc34e945 ("arm64: dts: rockchip: add RK3399-Q7 (Puma) SoM")
Cc Quentin Schulz <[email protected]>
Cc Klaus Goger <[email protected]>

Looking good to me, thanks for the patch.  In addition to the amc6821 driver currently not supporting full integration into the thermal framework, the "fan" DT node also isn't referenced in any cooling map, so having it define the "cooling-cells" property is of no use.

Quoted 4 lines

By the way, it would be nice to see the amc6821 driver supporting fan speed regulation, and test it to check who does a better job when it comes to cooling and fan speed regulation, the thermal framework or the chip's built-in logic. :)

Quoted 8 lines

Wasn't this feature added this summer by Guenter?

c.f. https://eur02.safelinks.protection.outlook.com/? url=https%3A%2F%2Fgit.kernel.org%2Fpub%2Fscm%2Flinux%2Fkernel%2Fgit%2Ftorvalds%2Flinux.git%2Fcommit%2Fdrivers%2Fhwmon%2Famc6821.c%3Fid%3Dbecbd16ed2f8f427239ffda66b5d894008bc56af&data=05%7C02%7Cquentin.schulz%40cherry.de%7C6df77e4e73434d36a6fd08dcec67c21c%7C5e0e1b5221b54e7b83bb514ec460677e%7C0%7C0%7C638645177611948235%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=4VaZrAKxDUTdEf7avUM1ewHLl9PIgBple841dE55o4w%3D&reserved=0

Mode 4 is
https://eur02.safelinks.protection.outlook.com/? url=https%3A%2F%2Felixir.bootlin.com%2Flinux%2Fv6.11.3%2Fsource%2Fdrivers%2Fhwmon%2Famc6821.c%23L367&data=05%7C02%7Cquentin.schulz%40cherry.de%7C6df77e4e73434d36a6fd08dcec67c21c%7C5e0e1b5221b54e7b83bb514ec460677e%7C0%7C0%7C638645177611979168%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=uNnWR0Oux0BlNhpe20Xj4%2FEtGQJv%2FsU1hapm4fGn7Qk%3D&reserved=0 ([FDRC1:FDRC0] = [01] -> Software-RPM Control Mode (Fan Speed
Regulator) according to the datasheet).

Ah, SENSOR_DEVICE_ATTR_RW(fan1_target, fan, IDX_FAN1_TARGET)... How did I miss that?  Hmm...  Maybe I was looking at some older local branch, which happened not to include that commit.

Anywyay, good to know, thanks.

Quoted 8 lines
Quoted 3 lines

In any case, we cannot compare those for our products as we do not have a genuine AMC6821 but a handmade simulation of the IP we run in an MCU.

I seem to remember your MCU that performs a few tasks, back from some related discussions.  I wonder what was the reason to implement it in software, instead of using actual fan controller chip?

This predates my joining the company, so... I don't know.

What I can say is, we have the following emulated in the MCU:
- custom CAN over USB (UCAN; upstreamed already)
- ISL1208 RTC
- AMC6821 FAN controller
- custom PWM controller (upstreaming pending)
- a few bytes of NVRAM (AT24-based; upstreaming pending)
- uncontrollable (from SoC PoV) watchdog, allows another MCU/system to trigger a full system reset
- possibly, custom HW watchdog controllable over I2C (required to fix a very odd corner case in HW on PX30 Ringneck)

Possibly more if we have the need for it and it fits into the MCU flash :)

I assume this was born out of necessity to add support for CAN on RK3399 Puma since there's no CAN controller inside the SoC?

I also think ISL1208 and AMC6821 aren't that easy to source anymore (RK3399 Puma has that MCU and its support started in ~2018 I seem to recall?). Considering the quantities and prices we get for the two MCUs flavors we have and how space constrained we are on some products, especially the uQ7 (PX30 Ringneck), it was probably I wise decision. The second MCU flavor came because STM32 was impossible to source at reasonable prices during the shortage 2-4 years ago.

This also means we can expand the set of features over time (which we are for example, with the custom PWM controller, NVRAM and I2C watchdog) since the MCU can be flashed once in the field too.

Obviously, you replace component cost and footprint with MCU FW development, so it's not necessarily cost-efficient but I'm not the one running the numbers so wouldn't be able to tell you ;)

Cheers,
Quentin

#16 lore raw

Re: [PATCH v2 06/14] arm64: dts: rockchip: Remove #cooling-cells from fan on Theobroma boards

Hello Quentin,

Quoted 57 lines · Quentin Schulz
Quoted 46 lines · Dragan Simic
Quoted 30 lines · Quentin Schulz
Quoted 24 lines · Dragan Simic
Quoted 9 lines · Heiko Stuebner

All Theobroma boards use a ti,amc6821 as fan controller.
It normally runs in an automatically controlled way and while it may be possible to use it as part of a dt-based thermal management, this is not yet specified in the binding, nor implemented in any kernel.

Newer boards already don't contain that #cooling-cells property, but older ones do. So remove them for now, they can be re-added if thermal integration gets implemented in the future.

Quoted 8 lines
Fixes c484cf93f61b ("arm64: dts: rockchip: add PX30-µQ7 (Ringneck)

SoM with Haikou baseboard")

Fixes d99a02bcfa81 ("arm64: dts: rockchip: add RK3368-uQ7 (Lion) SoM")
Fixes 2c66fc34e945 ("arm64: dts: rockchip: add RK3399-Q7 (Puma) SoM")
Cc Quentin Schulz <[email protected]>
Cc Klaus Goger <[email protected]>

Looking good to me, thanks for the patch.  In addition to the amc6821 driver currently not supporting full integration into the thermal framework, the "fan" DT node also isn't referenced in any cooling map, so having it define the "cooling-cells" property is of no use.

Quoted 4 lines

By the way, it would be nice to see the amc6821 driver supporting fan speed regulation, and test it to check who does a better job when it comes to cooling and fan speed regulation, the thermal framework or the chip's built-in logic. :)

Quoted 8 lines

Wasn't this feature added this summer by Guenter?

c.f. https://eur02.safelinks.protection.outlook.com/? url=https%3A%2F%2Fgit.kernel.org%2Fpub%2Fscm%2Flinux%2Fkernel%2Fgit%2Ftorvalds%2Flinux.git%2Fcommit%2Fdrivers%2Fhwmon%2Famc6821.c%3Fid%3Dbecbd16ed2f8f427239ffda66b5d894008bc56af&data=05%7C02%7Cquentin.schulz%40cherry.de%7C6df77e4e73434d36a6fd08dcec67c21c%7C5e0e1b5221b54e7b83bb514ec460677e%7C0%7C0%7C638645177611948235%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=4VaZrAKxDUTdEf7avUM1ewHLl9PIgBple841dE55o4w%3D&reserved=0

Mode 4 is
https://eur02.safelinks.protection.outlook.com/? url=https%3A%2F%2Felixir.bootlin.com%2Flinux%2Fv6.11.3%2Fsource%2Fdrivers%2Fhwmon%2Famc6821.c%23L367&data=05%7C02%7Cquentin.schulz%40cherry.de%7C6df77e4e73434d36a6fd08dcec67c21c%7C5e0e1b5221b54e7b83bb514ec460677e%7C0%7C0%7C638645177611979168%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=uNnWR0Oux0BlNhpe20Xj4%2FEtGQJv%2FsU1hapm4fGn7Qk%3D&reserved=0 ([FDRC1:FDRC0] = [01] -> Software-RPM Control Mode (Fan Speed
Regulator) according to the datasheet).

Ah, SENSOR_DEVICE_ATTR_RW(fan1_target, fan, IDX_FAN1_TARGET)... How did I miss that?  Hmm...  Maybe I was looking at some older local branch, which happened not to include that commit.

Anywyay, good to know, thanks.

Quoted 7 lines
Quoted 3 lines

In any case, we cannot compare those for our products as we do not have a genuine AMC6821 but a handmade simulation of the IP we run in an MCU.

I seem to remember your MCU that performs a few tasks, back from some related discussions.  I wonder what was the reason to implement it in software, instead of using actual fan controller chip?

This predates my joining the company, so... I don't know.

Quoted 10 lines

What I can say is, we have the following emulated in the MCU:
- custom CAN over USB (UCAN; upstreamed already)
- ISL1208 RTC
- AMC6821 FAN controller
- custom PWM controller (upstreaming pending)
- a few bytes of NVRAM (AT24-based; upstreaming pending)
- uncontrollable (from SoC PoV) watchdog, allows another MCU/system to trigger a full system reset
- possibly, custom HW watchdog controllable over I2C (required to fix a very odd corner case in HW on PX30 Ringneck)

Nice, that's quite a lot of emulated stuff.

Quoted 1 line

Possibly more if we have the need for it and it fits into the MCU flash :)

That's one of the benefits that come with an approach like this. It's like some kind of PaaS (or whatever is the "cool" thing these days) for hardware design. :)

Quoted 2 lines

I assume this was born out of necessity to add support for CAN on RK3399 Puma since there's no CAN controller inside the SoC?

Could be, and the additional functionality, also required for the board, was then just "offloaded" to the same MCU.

Quoted 7 lines

I also think ISL1208 and AMC6821 aren't that easy to source anymore (RK3399 Puma has that MCU and its support started in ~2018 I seem to recall?). Considering the quantities and prices we get for the two MCUs flavors we have and how space constrained we are on some products, especially the uQ7 (PX30 Ringneck), it was probably I wise decision. The second MCU flavor came because STM32 was impossible to source at reasonable prices during the shortage 2-4 years ago.

Makes sense. Instead of two or more separate additional chips, whose availability can change at virtually any point, you now depend on a single additional chip, which is also, presumably, more widely used, so should be easier to source.

Quoted 3 lines

This also means we can expand the set of features over time (which we are for example, with the custom PWM controller, NVRAM and I2C watchdog) since the MCU can be flashed once in the field too.

Yup, just like PaaS, SaaS or whatever. :)

Quoted 3 lines

Obviously, you replace component cost and footprint with MCU FW development, so it's not necessarily cost-efficient but I'm not the one running the numbers so wouldn't be able to tell you ;)

Also good point. Additional standalone chips are sometimes less expensive than the equivalent manpower. :)

author maintainer
#17 lore raw

PATCH v2 7/14 arm64: dts: rockchip: Fix LED triggers on rk3308-roc-cc

In reply to Heiko Stuebner

There are two LEDs on the board, power and user events. Currently both are assigned undocumented IR(-remote) triggers that are probably only part of the vendor-kernel.

To make dtbs check happier, assign the power-led to a generic default-on trigger and the user led to the documented rc-feedback trigger that should mostly match its current usage.

Fixes 4403e1237be3 ("arm64: dts: rockchip: Add devicetree for board roc-rk3308-cc")
Cc Andy Yan <[email protected]>
---
 arch/arm64/boot/dts/rockchip/rk3308-roc-cc.dts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/rockchip/rk3308-roc-cc.dts +2 -2
index 9232357f4fec..d9e191ad1d77 100644
@@ -36,14 +36,14 @@ leds {
 
 		power_led: led-0 {
 			label = "firefly:red:power";
-			linux,default-trigger = "ir-power-click";
+			linux,default-trigger = "default-on";
 			default-state = "on";
 			gpios = <&gpio0 RK_PA6 GPIO_ACTIVE_HIGH>;
 		};
 
 		user_led: led-1 {
 			label = "firefly:blue:user";
-			linux,default-trigger = "ir-user-click";
+			linux,default-trigger = "rc-feedback";
 			default-state = "off";
 			gpios = <&gpio0 RK_PB2 GPIO_ACTIVE_HIGH>;
 		};
Signature · 1 line
2.43.0
Reviewed-by on v2 7/14
#18 lore raw

Re: [PATCH v2 07/14] arm64: dts: rockchip: Fix LED triggers on rk3308-roc-cc

Hello Heiko,

Quoted 4 lines · Heiko Stuebner

There are two LEDs on the board, power and user events. Currently both are assigned undocumented IR(-remote) triggers that are probably only part of the vendor-kernel.

Quoted 8 lines

To make dtbs check happier, assign the power-led to a generic default-on trigger and the user led to the documented rc-feedback trigger that should mostly match its current usage.

Fixes 4403e1237be3 ("arm64: dts: rockchip: Add devicetree for board

roc-rk3308-cc")

Looking rather meh to me, but I guess that's as good as it gets. Thanks for the patch.

Quoted 26 lines
---
 arch/arm64/boot/dts/rockchip/rk3308-roc-cc.dts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/rockchip/rk3308-roc-cc.dts +2 -2
index 9232357f4fec..d9e191ad1d77 100644
@@ -36,14 +36,14 @@ leds {
 
 		power_led: led-0 {
 			label = "firefly:red:power";
-			linux,default-trigger = "ir-power-click";
+			linux,default-trigger = "default-on";
 			default-state = "on";
 			gpios = <&gpio0 RK_PA6 GPIO_ACTIVE_HIGH>;
 		};
 
 		user_led: led-1 {
 			label = "firefly:blue:user";
-			linux,default-trigger = "ir-user-click";
+			linux,default-trigger = "rc-feedback";
 			default-state = "off";
 			gpios = <&gpio0 RK_PB2 GPIO_ACTIVE_HIGH>;
 		};
author maintainer
#19 lore raw

PATCH v2 8/14 arm64: dts: rockchip: remove num-slots property from rk3328-nanopi-r2s-plus

In reply to Heiko Stuebner

num-slots was not part of the dw-mmc binding and the last slipage of one of them seeping in from the vendor kernel was removed way back in 2017. Somehow the nanopi-r2s-plus managed to smuggle another on in the kernel, so remove that as well.

Fixes b8c028782922 ("arm64: dts: rockchip: Add DTS for FriendlyARM NanoPi R2S Plus")
Cc Sergey Bostandzhyan <[email protected]>
---
 arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s-plus.dts | 1 -
 1 file changed, 1 deletion(-)
arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s-plus.dts +0 -1
index 3093f607f282..4b9ced67742d 100644
@@ -24,7 +24,6 @@ &emmc {
 	disable-wp;
 	mmc-hs200-1_8v;
 	non-removable;
-	num-slots = <1>;
 	pinctrl-names = "default";
 	pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_bus8>;
 	status = "okay";
Signature · 1 line
2.43.0
Reviewed-by on v2 8/14
#20 lore raw

Re: [PATCH v2 08/14] arm64: dts: rockchip: remove num-slots property from rk3328-nanopi-r2s-plus

Hello Heiko,

Quoted 9 lines · Heiko Stuebner

num-slots was not part of the dw-mmc binding and the last slipage of one of them seeping in from the vendor kernel was removed way back in 2017. Somehow the nanopi-r2s-plus managed to smuggle another on in the kernel, so remove that as well.

Fixes b8c028782922 ("arm64: dts: rockchip: Add DTS for FriendlyARM

NanoPi R2S Plus")

Cc Sergey Bostandzhyan <[email protected]>

Looking good to me, thanks for the patch. The introduced change is obviously correct.

Quoted 17 lines
---
 arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s-plus.dts | 1 -
 1 file changed, 1 deletion(-)
arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s-plus.dts +0 -1
index 3093f607f282..4b9ced67742d 100644
@@ -24,7 +24,6 @@ &emmc {
 	disable-wp;
 	mmc-hs200-1_8v;
 	non-removable;
-	num-slots = <1>;
 	pinctrl-names = "default";
 	pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_bus8>;
 	status = "okay";
author maintainer
#21 lore raw

PATCH v2 9/14 arm64: dts: rockchip: Remove 'enable-active-low' from two boards

In reply to Heiko Stuebner

The 'enable-active-low' property is not a valid, because it is the default behaviour of the fixed regulator.

Only 'enable-active-high' is valid, and when this property is absent the fixed regulator will act as active low by default.

Both the rk3588-orange-pi-5 and the Wolfvision pf5 io expander overlay smuggled those enable-active-low properties in, so remove them to make dtbscheck happier.

Fixes 28799a7734a0 ("arm64: dts: rockchip: add wolfvision pf5 io expander board")
Cc Michael Riesch <[email protected]>
Fixes b6bc755d806e ("arm64: dts: rockchip: Add Orange Pi 5")
Cc Muhammed Efe Cetin <[email protected]>
---
 .../boot/dts/rockchip/rk3568-wolfvision-pf5-io-expander.dtso     | 1 -
 arch/arm64/boot/dts/rockchip/rk3588s-orangepi-5.dts              | 1 -
 2 files changed, 2 deletions(-)
arch/arm64/boot/dts/rockchip/rk3568-wolfvision-pf5-io-expander.dtso +0 -1
index ebcaeafc3800..fa61633aea15 100644
@@ -49,7 +49,6 @@ vcc1v8_eth: vcc1v8-eth-regulator {
 
 	vcc3v3_eth: vcc3v3-eth-regulator {
 		compatible = "regulator-fixed";
-		enable-active-low;
 		gpio = <&gpio0 RK_PC0 GPIO_ACTIVE_LOW>;
 		pinctrl-names = "default";
 		pinctrl-0 = <&vcc3v3_eth_enn>;
arch/arm64/boot/dts/rockchip/rk3588s-orangepi-5.dts +0 -1
index feea6b20a6bf..6b77be643249 100644
@@ -71,7 +71,6 @@ vcc5v0_sys: vcc5v0-sys-regulator {
 
 	vcc_3v3_sd_s0: vcc-3v3-sd-s0-regulator {
 		compatible = "regulator-fixed";
-		enable-active-low;
 		gpios = <&gpio4 RK_PB5 GPIO_ACTIVE_LOW>;
 		regulator-name = "vcc_3v3_sd_s0";
 		regulator-boot-on;
Signature · 1 line
2.43.0
Reviewed-by on v2 9/14
#22 lore raw

Re: [PATCH v2 09/14] arm64: dts: rockchip: Remove 'enable-active-low' from two boards

Hi Heiko,

Quoted 1 line · Heiko Stuebner

The 'enable-active-low' property is not a valid, because it is the

"is not a valid" -> "is not a valid one"?

Quoted 8 lines

default behaviour of the fixed regulator.

Only 'enable-active-high' is valid, and when this property is absent the fixed regulator will act as active low by default.

Both the rk3588-orange-pi-5 and the Wolfvision pf5 io expander overlay smuggled those enable-active-low properties in, so remove them to make dtbscheck happier.

Ooops :-)

Quoted 7 lines
Fixes 28799a7734a0 ("arm64: dts: rockchip: add wolfvision pf5 io expander board")
Cc Michael Riesch <[email protected]>
Fixes b6bc755d806e ("arm64: dts: rockchip: Add Orange Pi 5")
Cc Muhammed Efe Cetin <[email protected]>

Thanks a lot and best regards,
Michael

Quoted 29 lines
---
 .../boot/dts/rockchip/rk3568-wolfvision-pf5-io-expander.dtso     | 1 -
 arch/arm64/boot/dts/rockchip/rk3588s-orangepi-5.dts              | 1 -
 2 files changed, 2 deletions(-)
arch/arm64/boot/dts/rockchip/rk3568-wolfvision-pf5-io-expander.dtso +0 -1
index ebcaeafc3800..fa61633aea15 100644
@@ -49,7 +49,6 @@ vcc1v8_eth: vcc1v8-eth-regulator {
 
 	vcc3v3_eth: vcc3v3-eth-regulator {
 		compatible = "regulator-fixed";
-		enable-active-low;
 		gpio = <&gpio0 RK_PC0 GPIO_ACTIVE_LOW>;
 		pinctrl-names = "default";
 		pinctrl-0 = <&vcc3v3_eth_enn>;
arch/arm64/boot/dts/rockchip/rk3588s-orangepi-5.dts +0 -1
index feea6b20a6bf..6b77be643249 100644
@@ -71,7 +71,6 @@ vcc5v0_sys: vcc5v0-sys-regulator {
 
 	vcc_3v3_sd_s0: vcc-3v3-sd-s0-regulator {
 		compatible = "regulator-fixed";
-		enable-active-low;
 		gpios = <&gpio4 RK_PB5 GPIO_ACTIVE_LOW>;
 		regulator-name = "vcc_3v3_sd_s0";
 		regulator-boot-on;
Reviewed-by on v2 9/14
#23 lore raw

Re: [PATCH v2 09/14] arm64: dts: rockchip: Remove 'enable-active-low' from two boards

In reply to Heiko Stuebner

Hello Heiko,

Quoted 1 line · Heiko Stuebner

The 'enable-active-low' property is not a valid, because it is the

s/is not a valid/is not valid/

Quoted 9 lines

default behaviour of the fixed regulator.

Only 'enable-active-high' is valid, and when this property is absent the fixed regulator will act as active low by default.

Both the rk3588-orange-pi-5 and the Wolfvision pf5 io expander overlay smuggled those enable-active-low properties in, so remove them to make dtbscheck happier.

Quoted 7 lines
Fixes 28799a7734a0 ("arm64: dts: rockchip: add wolfvision pf5 io

expander board")

Cc Michael Riesch <[email protected]>
Fixes b6bc755d806e ("arm64: dts: rockchip: Add Orange Pi 5")
Cc Muhammed Efe Cetin <[email protected]>

Looking good to me, thanks for the patch. According to the bindings in Documentation/devicetree/bindings/regulator/fixed-regulator.yaml, only "enable-active-high" is supported.

Quoted 34 lines
---
 .../boot/dts/rockchip/rk3568-wolfvision-pf5-io-expander.dtso     | 1 -
 arch/arm64/boot/dts/rockchip/rk3588s-orangepi-5.dts              | 1 -
 2 files changed, 2 deletions(-)

diff --git a/arch/arm64/boot/dts/rockchip/rk3568-wolfvision-pf5-io-expander.dtso b/arch/arm64/boot/dts/rockchip/rk3568-wolfvision-pf5-io-expander.dtso index ebcaeafc3800..fa61633aea15 100644
---
a/arch/arm64/boot/dts/rockchip/rk3568-wolfvision-pf5-io-expander.dtso
+++
b/arch/arm64/boot/dts/rockchip/rk3568-wolfvision-pf5-io-expander.dtso

arch/arm64/boot/dts/rockchip/rk3568-wolfvision-pf5-io-expander.dtso +0 -1
@@ -49,7 +49,6 @@ vcc1v8_eth: vcc1v8-eth-regulator {
 
 	vcc3v3_eth: vcc3v3-eth-regulator {
 		compatible = "regulator-fixed";
-		enable-active-low;
 		gpio = <&gpio0 RK_PC0 GPIO_ACTIVE_LOW>;
 		pinctrl-names = "default";
 		pinctrl-0 = <&vcc3v3_eth_enn>;
arch/arm64/boot/dts/rockchip/rk3588s-orangepi-5.dts +0 -1
index feea6b20a6bf..6b77be643249 100644
@@ -71,7 +71,6 @@ vcc5v0_sys: vcc5v0-sys-regulator {
 
 	vcc_3v3_sd_s0: vcc-3v3-sd-s0-regulator {
 		compatible = "regulator-fixed";
-		enable-active-low;
 		gpios = <&gpio4 RK_PB5 GPIO_ACTIVE_LOW>;
 		regulator-name = "vcc_3v3_sd_s0";
 		regulator-boot-on;
author maintainer
#24 lore raw

PATCH v2 10/14 arm64: dts: rockchip: remove orphaned pinctrl-names from pinephone pro

In reply to Heiko Stuebner

The patch adding display support for the pinephone pro introduced two regulators that contain pinctrl-names props but no pinctrl-assignments.

Looks like someone forgot the pinctrl settings, so remove the orphans for now, until that changes.

Fixes 3e987e1f22b9 ("arm64: dts: rockchip: Add internal display support to rk3399-pinephone-pro")
Cc Martijn Braam <[email protected]>
Cc Javier Martinez Canillas <[email protected]>
Cc Ondrej Jirman <[email protected]>
---
 arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts | 2 --
 1 file changed, 2 deletions(-)
arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts +0 -2
index 1a44582a49fb..09a016ea8c76 100644
@@ -166,7 +166,6 @@ vcc1v8_lcd: vcc1v8-lcd {
 		regulator-max-microvolt = <1800000>;
 		vin-supply = <&vcc3v3_sys>;
 		gpio = <&gpio3 RK_PA5 GPIO_ACTIVE_HIGH>;
-		pinctrl-names = "default";
 	};
 
 	/* MIPI DSI panel 2.8v supply */
@@ -178,7 +177,6 @@ vcc2v8_lcd: vcc2v8-lcd {
 		regulator-max-microvolt = <2800000>;
 		vin-supply = <&vcc3v3_sys>;
 		gpio = <&gpio3 RK_PA1 GPIO_ACTIVE_HIGH>;
-		pinctrl-names = "default";
 	};
 
 	vibrator {
Signature · 1 line
2.43.0
Reviewed-by on v2 10/14
#25 lore raw

Re: [PATCH v2 10/14] arm64: dts: rockchip: remove orphaned pinctrl-names from pinephone pro

Hello Heiko,

Quoted 5 lines · Heiko Stuebner

The patch adding display support for the pinephone pro introduced two regulators that contain pinctrl-names props but no pinctrl-assignments.

Looks like someone forgot the pinctrl settings, so remove the orphans for now, until that changes.

Thank you,

	o.
Quoted 32 lines
Fixes 3e987e1f22b9 ("arm64: dts: rockchip: Add internal display support to rk3399-pinephone-pro")
Cc Martijn Braam <[email protected]>
Cc Javier Martinez Canillas <[email protected]>
Cc Ondrej Jirman <[email protected]>
---
 arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts | 2 --
 1 file changed, 2 deletions(-)
arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts +0 -2
index 1a44582a49fb..09a016ea8c76 100644
@@ -166,7 +166,6 @@ vcc1v8_lcd: vcc1v8-lcd {
 		regulator-max-microvolt = <1800000>;
 		vin-supply = <&vcc3v3_sys>;
 		gpio = <&gpio3 RK_PA5 GPIO_ACTIVE_HIGH>;
-		pinctrl-names = "default";
 	};
 
 	/* MIPI DSI panel 2.8v supply */
@@ -178,7 +177,6 @@ vcc2v8_lcd: vcc2v8-lcd {
 		regulator-max-microvolt = <2800000>;
 		vin-supply = <&vcc3v3_sys>;
 		gpio = <&gpio3 RK_PA1 GPIO_ACTIVE_HIGH>;
-		pinctrl-names = "default";
 	};
 
 	vibrator {
Signature · 1 line
2.43.0

_______________________________________________
Linux-rockchip mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-rockchip

Reviewed-by on v2 10/14
#26 lore raw

Re: [PATCH v2 10/14] arm64: dts: rockchip: remove orphaned pinctrl-names from pinephone pro

In reply to Heiko Stuebner

Heiko Stuebner <[email protected]> writes:

Hello Heiko,

Quoted 6 lines

The patch adding display support for the pinephone pro introduced two regulators that contain pinctrl-names props but no pinctrl-assignments.

Looks like someone forgot the pinctrl settings, so remove the orphans for now, until that changes.

Quoted 6 lines
Fixes 3e987e1f22b9 ("arm64: dts: rockchip: Add internal display support to rk3399-pinephone-pro")
Cc Martijn Braam <[email protected]>
Cc Javier Martinez Canillas <[email protected]>
Cc Ondrej Jirman <[email protected]>

---

Signature · 5 lines
Best regards,

Javier Martinez Canillas
Core Platforms
Red Hat
Reviewed-by on v2 10/14
#27 lore raw

Re: [PATCH v2 10/14] arm64: dts: rockchip: remove orphaned pinctrl-names from pinephone pro

In reply to Heiko Stuebner

Hello Heiko,

Quoted 6 lines · Heiko Stuebner

The patch adding display support for the pinephone pro introduced two regulators that contain pinctrl-names props but no pinctrl-assignments.

Looks like someone forgot the pinctrl settings, so remove the orphans for now, until that changes.

Quoted 6 lines
Fixes 3e987e1f22b9 ("arm64: dts: rockchip: Add internal display

support to rk3399-pinephone-pro")

Cc Martijn Braam <[email protected]>
Cc Javier Martinez Canillas <[email protected]>
Cc Ondrej Jirman <[email protected]>

Looking good to me, thanks for the patch. The introduced change is obviously correct.

Quoted 25 lines
---
 arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts | 2 --
 1 file changed, 2 deletions(-)
arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts +0 -2
index 1a44582a49fb..09a016ea8c76 100644
@@ -166,7 +166,6 @@ vcc1v8_lcd: vcc1v8-lcd {
 		regulator-max-microvolt = <1800000>;
 		vin-supply = <&vcc3v3_sys>;
 		gpio = <&gpio3 RK_PA5 GPIO_ACTIVE_HIGH>;
-		pinctrl-names = "default";
 	};
 
 	/* MIPI DSI panel 2.8v supply */
@@ -178,7 +177,6 @@ vcc2v8_lcd: vcc2v8-lcd {
 		regulator-max-microvolt = <2800000>;
 		vin-supply = <&vcc3v3_sys>;
 		gpio = <&gpio3 RK_PA1 GPIO_ACTIVE_HIGH>;
-		pinctrl-names = "default";
 	};
 
 	vibrator {
author maintainer
#28 lore raw

PATCH v2 11/14 ARM: dts: rockchip: fix rk3036 acodec node

In reply to Heiko Stuebner

The acodec node is not conformant to the binding. Set the correct nodename, use the correct compatible, add the needed #sound-dai-cells and sort the rockchip,grf below clocks properties as expected.

Fixes faea098e1808 ("ARM: dts: rockchip: add core rk3036 dtsi")
---
 arch/arm/boot/dts/rockchip/rk3036.dtsi | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
arch/arm/boot/dts/rockchip/rk3036.dtsi +4 -3
index 96279d1e02fe..37369538483f 100644
@@ -384,12 +384,13 @@ reboot-mode {
 		};
 	};
 
-	acodec: acodec-ana@20030000 {
-		compatible = "rk3036-codec";
+	acodec: audio-codec@20030000 {
+		compatible = "rockchip,rk3036-codec";
 		reg = <0x20030000 0x4000>;
-		rockchip,grf = <&grf>;
 		clock-names = "acodec_pclk";
 		clocks = <&cru PCLK_ACODEC>;
+		rockchip,grf = <&grf>;
+		#sound-dai-cells = <0>;
 		status = "disabled";
 	};
 
Signature · 1 line
2.43.0
Reviewed-by on v2 11/14
#29 lore raw

Re: [PATCH v2 11/14] ARM: dts: rockchip: fix rk3036 acodec node

Hello Heiko,

Quoted 4 lines · Heiko Stuebner

The acodec node is not conformant to the binding. Set the correct nodename, use the correct compatible, add the needed #sound-dai-cells and sort the rockchip,grf below clocks properties as expected.

Maybe reflow the commit description a bit, to use the available column width better. :)

Quoted 2 lines
Fixes faea098e1808 ("ARM: dts: rockchip: add core rk3036 dtsi")

Looking good to me, thanks for the patch. The introduced changes are obviously correct.

Quoted 25 lines
---
 arch/arm/boot/dts/rockchip/rk3036.dtsi | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
arch/arm/boot/dts/rockchip/rk3036.dtsi +4 -3
index 96279d1e02fe..37369538483f 100644
@@ -384,12 +384,13 @@ reboot-mode {
 		};
 	};
 
-	acodec: acodec-ana@20030000 {
-		compatible = "rk3036-codec";
+	acodec: audio-codec@20030000 {
+		compatible = "rockchip,rk3036-codec";
 		reg = <0x20030000 0x4000>;
-		rockchip,grf = <&grf>;
 		clock-names = "acodec_pclk";
 		clocks = <&cru PCLK_ACODEC>;
+		rockchip,grf = <&grf>;
+		#sound-dai-cells = <0>;
 		status = "disabled";
 	};
author maintainer
#30 lore raw

PATCH v2 12/14 ARM: dts: rockchip: drop grf reference from rk3036 hdmi

In reply to Heiko Stuebner

Neither the binding nor the driver implementation specify/use the grf reference provided in the rk3036. And neither does the newer rk3128 user of the hdmi controller. So drop the rockchip,grf property.

Fixes b7217cf19c63 ("ARM: dts: rockchip: add hdmi device node for rk3036")
Cc Caesar Wang <[email protected]>
---
 arch/arm/boot/dts/rockchip/rk3036.dtsi | 1 -
 1 file changed, 1 deletion(-)
arch/arm/boot/dts/rockchip/rk3036.dtsi +0 -1
index 37369538483f..09371f07d7b4 100644
@@ -400,7 +400,6 @@ hdmi: hdmi@20034000 {
 		interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
 		clocks = <&cru  PCLK_HDMI>;
 		clock-names = "pclk";
-		rockchip,grf = <&grf>;
 		pinctrl-names = "default";
 		pinctrl-0 = <&hdmi_ctl>;
 		#sound-dai-cells = <0>;
Signature · 1 line
2.43.0
Reviewed-by on v2 12/14
#31 lore raw

Re: [PATCH v2 12/14] ARM: dts: rockchip: drop grf reference from rk3036 hdmi

Hello Heiko,

Quoted 7 lines · Heiko Stuebner

Neither the binding nor the driver implementation specify/use the grf reference provided in the rk3036. And neither does the newer rk3128 user of the hdmi controller. So drop the rockchip,grf property.

Fixes b7217cf19c63 ("ARM: dts: rockchip: add hdmi device node for rk3036")
Cc Caesar Wang <[email protected]>

Looking good to me, thanks for the patch. There's nothing about the "rockchip,grf" property in drivers/gpu/drm/rockchip/inno_hdmi.c.

Quoted 17 lines
---
 arch/arm/boot/dts/rockchip/rk3036.dtsi | 1 -
 1 file changed, 1 deletion(-)
arch/arm/boot/dts/rockchip/rk3036.dtsi +0 -1
index 37369538483f..09371f07d7b4 100644
@@ -400,7 +400,6 @@ hdmi: hdmi@20034000 {
 		interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
 		clocks = <&cru  PCLK_HDMI>;
 		clock-names = "pclk";
-		rockchip,grf = <&grf>;
 		pinctrl-names = "default";
 		pinctrl-0 = <&hdmi_ctl>;
 		#sound-dai-cells = <0>;
author maintainer
#32 lore raw

PATCH v2 13/14 ARM: dts: rockchip: Fix the spi controller on rk3036

In reply to Heiko Stuebner

Compatible and clock names did not match the existing binding. So set the correct values and re-order+rename the clocks.

It looks like no rk3036 board did use the spi controller so far, so this was never detected on a running device yet.

Fixes f629fcfab2cd ("ARM: dts: rockchip: support the spi for rk3036")
Cc Caesar Wang <[email protected]>
---
 arch/arm/boot/dts/rockchip/rk3036.dtsi | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
arch/arm/boot/dts/rockchip/rk3036.dtsi +3 -3
index 09371f07d7b4..63b9912be06a 100644
@@ -553,11 +553,11 @@ i2c0: i2c@20072000 {
 	};
 
 	spi: spi@20074000 {
-		compatible = "rockchip,rockchip-spi";
+		compatible = "rockchip,rk3036-spi";
 		reg = <0x20074000 0x1000>;
 		interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
-		clocks = <&cru PCLK_SPI>, <&cru SCLK_SPI>;
-		clock-names = "apb-pclk","spi_pclk";
+		clocks = <&cru SCLK_SPI>, <&cru PCLK_SPI>;
+		clock-names = "spiclk", "apb_pclk";
 		dmas = <&pdma 8>, <&pdma 9>;
 		dma-names = "tx", "rx";
 		pinctrl-names = "default";
Signature · 1 line
2.43.0
Reviewed-by on v2 13/14
#33 lore raw

Re: [PATCH v2 13/14] ARM: dts: rockchip: Fix the spi controller on rk3036

Hello Heiko,

Quoted 5 lines · Heiko Stuebner

Compatible and clock names did not match the existing binding. So set the correct values and re-order+rename the clocks.

It looks like no rk3036 board did use the spi controller so far, so this was never detected on a running device yet.

Wow, that's quite surprising.

Quoted 3 lines
Fixes f629fcfab2cd ("ARM: dts: rockchip: support the spi for rk3036")
Cc Caesar Wang <[email protected]>

Looking good to me, thanks for the patch. It all matches with what drivers/spi/spi-rockchip.c actually expects.

Quoted 24 lines
---
 arch/arm/boot/dts/rockchip/rk3036.dtsi | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
arch/arm/boot/dts/rockchip/rk3036.dtsi +3 -3
index 09371f07d7b4..63b9912be06a 100644
@@ -553,11 +553,11 @@ i2c0: i2c@20072000 {
 	};
 
 	spi: spi@20074000 {
-		compatible = "rockchip,rockchip-spi";
+		compatible = "rockchip,rk3036-spi";
 		reg = <0x20074000 0x1000>;
 		interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
-		clocks = <&cru PCLK_SPI>, <&cru SCLK_SPI>;
-		clock-names = "apb-pclk","spi_pclk";
+		clocks = <&cru SCLK_SPI>, <&cru PCLK_SPI>;
+		clock-names = "spiclk", "apb_pclk";
 		dmas = <&pdma 8>, <&pdma 9>;
 		dma-names = "tx", "rx";
 		pinctrl-names = "default";
author maintainer
#34 lore raw

PATCH v2 14/14 ARM: dts: rockchip: Fix the realtek audio codec on rk3036-kylin

In reply to Heiko Stuebner

Both the node name as well as the compatible were not named according to the binding expectations, fix that.

Fixes 47bf3a5c9e2a ("ARM: dts: rockchip: add the sound setup for rk3036-kylin board")
Cc Caesar Wang <[email protected]>
---
 arch/arm/boot/dts/rockchip/rk3036-kylin.dts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/boot/dts/rockchip/rk3036-kylin.dts +2 -2
index e32c73d32f0a..2f84e2805712 100644
@@ -325,8 +325,8 @@ regulator-state-mem {
 &i2c2 {
 	status = "okay";
 
-	rt5616: rt5616@1b {
-		compatible = "rt5616";
+	rt5616: audio-codec@1b {
+		compatible = "realtek,rt5616";
 		reg = <0x1b>;
 		clocks = <&cru SCLK_I2S_OUT>;
 		clock-names = "mclk";
Signature · 1 line
2.43.0
Reviewed-by on v2 14/14
#35 lore raw

Re: [PATCH v2 14/14] ARM: dts: rockchip: Fix the realtek audio codec on rk3036-kylin

Hello Heiko,

Quoted 7 lines · Heiko Stuebner

Both the node name as well as the compatible were not named according to the binding expectations, fix that.

Fixes 47bf3a5c9e2a ("ARM: dts: rockchip: add the sound setup for

rk3036-kylin board")

Looking good to me, thanks for the patch. The introduced changes are obviously correct.

Quoted 20 lines
---
 arch/arm/boot/dts/rockchip/rk3036-kylin.dts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/boot/dts/rockchip/rk3036-kylin.dts +2 -2
index e32c73d32f0a..2f84e2805712 100644
@@ -325,8 +325,8 @@ regulator-state-mem {
 &i2c2 {
 	status = "okay";
 
-	rt5616: rt5616@1b {
-		compatible = "rt5616";
+	rt5616: audio-codec@1b {
+		compatible = "realtek,rt5616";
 		reg = <0x1b>;
 		clocks = <&cru SCLK_I2S_OUT>;
 		clock-names = "mclk";
author maintainer Applied
#36 lore raw
In reply to Heiko Stuebner
Quoted 11 lines · Heiko Stuebner

Fixing dtbs-check warnings should be declared addictive, one starts with one warning, then another one and then it's oh, I'll just fix this "last" one over and over ;-)

We still have more, if others want to play too :-D .

changes in v2:
- more fixes
- use more appropriate txco clk for brcm bluetooth

[...]

Applied, thanks!

[01/14] arm64: dts: rockchip: fix i2c2 pinctrl-names property on anbernic-rg353p/v

        commit: f94b934336e30cebae75d4fbe04a2109a3c8fdec
[02/14] arm64: dts: rockchip: Drop regulator-init-microvolt from two boards
        commit: 98c3f4a2d61a29a53244ce45e50655140bd47afb
[03/14] arm64: dts: rockchip: Fix bluetooth properties on rk3566 box demo
        commit: 2fa98dcc8d3ea2ebbd9e6be778f8bb19231c28be
[04/14] arm64: dts: rockchip: Fix bluetooth properties on Rock960 boards
        commit: ea74528aaea5a1dfc8e3de09ef2af37530eca526
[05/14] arm64: dts: rockchip: Remove undocumented supports-emmc property
        commit: 1b670212ee3dd9d14c6d39a042dfe4ae79b49b4e

[06/14] arm64: dts: rockchip: Remove #cooling-cells from fan on Theobroma boards
commit: 5ed96580568c4f79a0aff11a67f10b3e9229ba86

I've limited the commit to only lion now. Both Puma and Ringneck loose their #cooling-cells property in the i2c-mux-conversion for 6.13 already and the undocumented property is in the boards so long already, that it didn't make sense to cause extra merge conflicts for this.

[07/14] arm64: dts: rockchip: Fix LED triggers on rk3308-roc-cc

        commit: 3a53a7187f41ec3db12cf4c2cb0db4ba87c2f3a1
[08/14] arm64: dts: rockchip: remove num-slots property from rk3328-nanopi-r2s-plus
        commit: b1f8d3b81d9289e171141a7120093ddefe7bd2f4
[09/14] arm64: dts: rockchip: Remove 'enable-active-low' from two boards
        commit: f4d29bebaa6118c1e51e8f1c21ce2b34f43e1479
[10/14] arm64: dts: rockchip: remove orphaned pinctrl-names from pinephone pro
        commit: 8fb9f4ee733c50cc9b6dce2313d1948d6229e804
[11/14] ARM: dts: rockchip: fix rk3036 acodec node
        commit: d015181e18070dc53c2dfdcfaa7441567cc990f1
[12/14] ARM: dts: rockchip: drop grf reference from rk3036 hdmi
        commit: a30ef8fa0e6d70fcf7e933a876a05bc9ca101472
[13/14] ARM: dts: rockchip: Fix the spi controller on rk3036
        commit: 34387c259d42c7e62aa046ffb982c710c8971418
[14/14] ARM: dts: rockchip: Fix the realtek audio codec on rk3036-kylin
        commit: 9f03220ac5717d19d71ae21c9020e4dd56f1efa7

Best regards,

Signature · 1 line
Heiko Stuebner <[email protected]>