dt-bindings: nvmem: rockchip,otp: Add compatible for
From: Jonas Karlman <jonas@...> Date: Sun, 16 Mar 2025 20:26:45 +0000
Commit-Message
Add compatible string for the OTP controller in RK3528. Compared to the RK3562 and RK3568 the OTP in RK3528 does not have a phy clock or reset. Signed-off-by: Jonas Karlman <jonas@...> Signed-off-by: Heiko Stuebner <heiko@...>
Patch-Comment
.../bindings/nvmem/rockchip,otp.yaml | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+)
Statistics
- 25 lines added
- 0 lines removed
Changes
---------- Documentation/devicetree/bindings/nvmem/rockchip,otp.yaml -----------
index e90136f7dcfb..7e4d5e1c4ced 100644
@@ -14,6 +14,7 @@ properties:
enum:
- rockchip,px30-otp
- rockchip,rk3308-otp
+ - rockchip,rk3528-otp
- rockchip,rk3562-otp
- rockchip,rk3568-otp
- rockchip,rk3576-otp
@@ -72,6 +73,30 @@ allOf:
items:
- const: phy
+ - if:
+ properties:
+ compatible:
+ contains:
+ enum:
+ - rockchip,rk3528-otp
+ then:
+ properties:
+ clocks:
+ maxItems: 3
+ clock-names:
+ items:
+ - const: otp
+ - const: apb_pclk
+ - const: sbpi
+ resets:
+ minItems: 3
+ maxItems: 3
+ reset-names:
+ items:
+ - const: otp
+ - const: apb
+ - const: sbpi
+
- if:
properties:
compatible: