Skip to content

Commit 9165960

Browse files
mmindgregkh
authored andcommitted
dt-bindings: nvmem: rockchip,otp: Add compatible for RK3576
Document the OTP memory found on Rockchip RK3576 SoC. The RK3576 uses the same set of clocks as the px30/rk3308 but has one reset more, so adapt the binding to handle this variant as well. Signed-off-by: Heiko Stuebner <[email protected]> Acked-by: Conor Dooley <[email protected]> Tested-by: Nicolas Frattaroli <[email protected]> Signed-off-by: Srinivas Kandagatla <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 1b23c14 commit 9165960

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

Documentation/devicetree/bindings/nvmem/rockchip,otp.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ properties:
1414
enum:
1515
- rockchip,px30-otp
1616
- rockchip,rk3308-otp
17+
- rockchip,rk3576-otp
1718
- rockchip,rk3588-otp
1819

1920
reg:
@@ -70,6 +71,26 @@ allOf:
7071
items:
7172
- const: phy
7273

74+
- if:
75+
properties:
76+
compatible:
77+
contains:
78+
enum:
79+
- rockchip,rk3576-otp
80+
then:
81+
properties:
82+
clocks:
83+
maxItems: 3
84+
clock-names:
85+
maxItems: 3
86+
resets:
87+
minItems: 2
88+
maxItems: 2
89+
reset-names:
90+
items:
91+
- const: otp
92+
- const: apb
93+
7394
- if:
7495
properties:
7596
compatible:

0 commit comments

Comments
 (0)