Commit 2d87a3b1 authored by Cristian Ciocaltea's avatar Cristian Ciocaltea Committed by Greg Kroah-Hartman

dt-bindings: nvmem: rockchip,otp: Add compatible for RK3588

Document the OTP memory found on Rockchip RK3588 SoC.

Since RK3588 uses different clocks & resets configurations than PX30 /
RK3308, provide the required changes in the binding to be able to handle
both variants.
Signed-off-by: default avatarCristian Ciocaltea <cristian.ciocaltea@collabora.com>
Reviewed-by: default avatarHeiko Stuebner <heiko@sntech.de>
Reviewed-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: default avatarSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Message-ID: <20230611140330.154222-9-srinivas.kandagatla@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 2827a58c
...@@ -9,33 +9,35 @@ title: Rockchip internal OTP (One Time Programmable) memory ...@@ -9,33 +9,35 @@ title: Rockchip internal OTP (One Time Programmable) memory
maintainers: maintainers:
- Heiko Stuebner <heiko@sntech.de> - Heiko Stuebner <heiko@sntech.de>
allOf:
- $ref: nvmem.yaml#
properties: properties:
compatible: compatible:
enum: enum:
- rockchip,px30-otp - rockchip,px30-otp
- rockchip,rk3308-otp - rockchip,rk3308-otp
- rockchip,rk3588-otp
reg: reg:
maxItems: 1 maxItems: 1
clocks: clocks:
maxItems: 3 minItems: 3
maxItems: 4
clock-names: clock-names:
minItems: 3
items: items:
- const: otp - const: otp
- const: apb_pclk - const: apb_pclk
- const: phy - const: phy
- const: arb
resets: resets:
maxItems: 1 minItems: 1
maxItems: 3
reset-names: reset-names:
items: minItems: 1
- const: phy maxItems: 3
required: required:
- compatible - compatible
...@@ -45,6 +47,44 @@ required: ...@@ -45,6 +47,44 @@ required:
- resets - resets
- reset-names - reset-names
allOf:
- $ref: nvmem.yaml#
- if:
properties:
compatible:
contains:
enum:
- rockchip,px30-otp
- rockchip,rk3308-otp
then:
properties:
clocks:
maxItems: 3
resets:
maxItems: 1
reset-names:
items:
- const: phy
- if:
properties:
compatible:
contains:
enum:
- rockchip,rk3588-otp
then:
properties:
clocks:
minItems: 4
resets:
minItems: 3
reset-names:
items:
- const: otp
- const: apb
- const: arb
unevaluatedProperties: false unevaluatedProperties: false
examples: examples:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment