Skip to contentSkip to conversation

arm: dts: rockchip: Align OTP nodes for RK3528/RK356x with Linux v7.1

PATCH In review Jonas Karlman 3 participants 4 messages Jul 7 – Jul 10 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm: dts: rockchip: Align OTP nodes for RK3528/RK356x with Linux v7.1

The <soc>-u-boot.dtsi OTP nodes for RK3528/RK356x use different names compared to the OTP nodes that was merged in Linux v7.1. This causes build issues when dts/upstream pulls in updated DTs, i.e.:

ERROR (duplicate_label): /soc/nvmem@ffce0000: Duplicate label 'otp'

                           on /soc/nvmem@ffce0000 and /soc/efuse@ffce0000

ERROR (duplicate_label): /nvmem@fe38c000: Duplicate label 'otp'

                           on /nvmem@fe38c000 and /efuse@fe38c000

Align the OTP node names in <soc>-u-boot.dtsi with the node names used in upstream Linux v7.1 to avoid build issues when latest DTs are synced.

Also drop the unused RK356x id@a subnode as it has moved under a nvmem-layout node in the merged upstream DT.

---
This has no intended changes and was quickly boot tested on a ArmSoM Sige1 (rk3528) and a Radxa ROCK 3B (rk3568) board.

---
 arch/arm/dts/rk3528-u-boot.dtsi | 2 +-
 arch/arm/dts/rk356x-u-boot.dtsi | 8 +-------
 2 files changed, 2 insertions(+), 8 deletions(-)
arch/arm/dts/rk3528-u-boot.dtsi +1 -1
index a18d33b3d369..31345df62959 100644
@@ -23,7 +23,7 @@
 			reg = <0x0 0xffc50000 0x0 0x200>;
 		};
 
-		otp: nvmem@ffce0000 {
+		otp: efuse@ffce0000 {
 			compatible = "rockchip,rk3528-otp";
 			reg = <0x0 0xffce0000 0x0 0x4000>;
 		};
arch/arm/dts/rk356x-u-boot.dtsi +1 -7
index 738b9673d352..d09dab35b31a 100644
@@ -21,15 +21,9 @@
 		bootph-all;
 	};
 
-	otp: nvmem@fe38c000 {
+	otp: efuse@fe38c000 {
 		compatible = "rockchip,rk3568-otp";
 		reg = <0x0 0xfe38c000 0x0 0x4000>;
-		#address-cells = <1>;
-		#size-cells = <1>;
-
-		cpu_id: id@a {
-			reg = <0x0a 0x10>;
-		};
 	};
 };
 
Signature · 1 line
2.54.0
Reviewed-by on v1 1/1
#1 lore raw

Hi Jonas,

Quoted 7 lines · Jonas Karlman

The <soc>-u-boot.dtsi OTP nodes for RK3528/RK356x use different names compared to the OTP nodes that was merged in Linux v7.1. This causes build issues when dts/upstream pulls in updated DTs, i.e.:

ERROR (duplicate_label): /soc/nvmem@ffce0000: Duplicate label 'otp'

                            on /soc/nvmem@ffce0000 and /soc/efuse@ffce0000
Quoted 9 lines

ERROR (duplicate_label): /nvmem@fe38c000: Duplicate label 'otp'

                            on /nvmem@fe38c000 and /efuse@fe38c000

Align the OTP node names in <soc>-u-boot.dtsi with the node names used in upstream Linux v7.1 to avoid build issues when latest DTs are synced.

Also drop the unused RK356x id@a subnode as it has moved under a nvmem-layout node in the merged upstream DT.

I guess this is fine because our driver isn't actually making use of those subnodes as far as I could tell.

I was wondering why we even keep those nodes in since they are now part of dts/upstream but actually they aren't yet and this patch allows to not depend on 7.1-dts being pulled in U-Boot AND allows to build once it's pulled. I'm assuming we can remove those nodes right after the 7.1-dts tag is merged, right?

Thanks!
Quentin

#2 lore raw

Hi Quentin,

Quoted 16 lines · Quentin Schulz

Hi Jonas,

Quoted 13 lines · Jonas Karlman

The <soc>-u-boot.dtsi OTP nodes for RK3528/RK356x use different names compared to the OTP nodes that was merged in Linux v7.1. This causes build issues when dts/upstream pulls in updated DTs, i.e.:

ERROR (duplicate_label): /soc/nvmem@ffce0000: Duplicate label 'otp'

                            on /soc/nvmem@ffce0000 and /soc/efuse@ffce0000

ERROR (duplicate_label): /nvmem@fe38c000: Duplicate label 'otp'

                            on /nvmem@fe38c000 and /efuse@fe38c000

Align the OTP node names in <soc>-u-boot.dtsi with the node names used in upstream Linux v7.1 to avoid build issues when latest DTs are synced.

Quoted 6 lines
Quoted 3 lines

Also drop the unused RK356x id@a subnode as it has moved under a nvmem-layout node in the merged upstream DT.

I guess this is fine because our driver isn't actually making use of those subnodes as far as I could tell.

Correct, if I remember correctly I probably added the cpu_id/id@a node because rk3568 was the first SoC that used a different offset in OTP, and this worked as "documentation" until a proper node landed upstream.

Quoted 6 lines

I was wondering why we even keep those nodes in since they are now part of dts/upstream but actually they aren't yet and this patch allows to not depend on 7.1-dts being pulled in U-Boot AND allows to build once it's pulled. I'm assuming we can remove those nodes right after the 7.1-dts tag is merged, right?

Correct, the OTP nodes must exist until we have fully transitioned to v7.1 in dts/upstream, after that we should remove these nodes from <soc>-u-boot.dtsi in a follow-up patch.

Regards,
Jonas

Quoted 5 lines

Thanks!
Quentin

#3 lore raw
In reply to Jonas Karlman
Quoted 8 lines · Jonas Karlman

The <soc>-u-boot.dtsi OTP nodes for RK3528/RK356x use different names compared to the OTP nodes that was merged in Linux v7.1. This causes build issues when dts/upstream pulls in updated DTs, i.e.:

ERROR (duplicate_label): /soc/nvmem@ffce0000: Duplicate label 'otp'

                           on /soc/nvmem@ffce0000 and /soc/efuse@ffce0000

[...]

Applied to https://git.u-boot-project.org/u-boot/custodians/u-boot-rockchip (u-boot-rockchip-2026.10), thanks!

[1/1] arm: dts: rockchip: Align OTP nodes for RK3528/RK356x with Linux v7.1

      https://git.u-boot-project.org/u-boot/custodians/u-boot-rockchip/-/commit/d4140de41eba31166d43c2759fc8c444d9116084

Best regards,

Signature · 1 line
Quentin Schulz <[email protected]>