]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
dt-bindings: nvmem: rockchip,otp: Add compatible for RK3528
authorJonas Karlman <jonas@kwiboo.se>
Fri, 27 Mar 2026 13:17:47 +0000 (13:17 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 Apr 2026 14:15:56 +0000 (16:15 +0200)
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@kwiboo.se>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Signed-off-by: Srinivas Kandagatla <srini@kernel.org>
Link: https://patch.msgid.link/20260327131751.3026030-6-srini@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/devicetree/bindings/nvmem/rockchip,otp.yaml

index e90136f7dcfb9d3824a020b8169c87c65a021181..7e4d5e1c4cedc8cd4c3b271fb8257f8707ef9b53 100644 (file)
@@ -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: