* [PATCH v3 0/3] rockchip,otp: Add support for rk3562 and rk3568
@ 2025-04-15 10:32 Kever Yang
2025-04-15 10:32 ` [PATCH v3 1/3] dt-bindings: nvmem: " Kever Yang
0 siblings, 1 reply; 4+ messages in thread
From: Kever Yang @ 2025-04-15 10:32 UTC (permalink / raw)
To: heiko
Cc: linux-rockchip, Kever Yang, devicetree, Conor Dooley, Rob Herring,
Srinivas Kandagatla, linux-kernel, Krzysztof Kozlowski,
linux-arm-kernel
Rockchip rk3562 and rk3568 has the same otp controller, which is
different with those already support in the driver, add support for it.
This patch set depends on Jonas's change[1].
[1] https://lore.kernel.org/r/20250316191900.1858944-1-jonas@kwiboo.se
Changes in v3:
- update the clock name from "usr" to "otp" and re-order to sync with
other soc.
- rebase on rk3576 and rk3528, changes suggest by Jonas
- Use rk3568 data structure for rk3562
Changes in v2:
- Update the commit message and add maxItems in schema.
Finley Xiao (2):
nvmem: rockchip-otp: Add support for rk3568-otp
nvmem: rockchip-otp: Add support for rk3562
Kever Yang (1):
dt-bindings: nvmem: rockchip,otp: Add support for rk3562 and rk3568
.../bindings/nvmem/rockchip,otp.yaml | 53 ++++++++++++--
drivers/nvmem/rockchip-otp.c | 73 +++++++++++++++++++
2 files changed, 119 insertions(+), 7 deletions(-)
--
2.25.1
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH v3 1/3] dt-bindings: nvmem: rockchip,otp: Add support for rk3562 and rk3568
2025-04-15 10:32 [PATCH v3 0/3] rockchip,otp: Add support for rk3562 and rk3568 Kever Yang
@ 2025-04-15 10:32 ` Kever Yang
2025-04-21 18:45 ` Rob Herring (Arm)
2025-04-22 10:06 ` Heiko Stübner
0 siblings, 2 replies; 4+ messages in thread
From: Kever Yang @ 2025-04-15 10:32 UTC (permalink / raw)
To: heiko
Cc: linux-rockchip, Kever Yang, devicetree, Conor Dooley, Rob Herring,
Srinivas Kandagatla, linux-kernel, Krzysztof Kozlowski,
linux-arm-kernel
Add compatible entry for the otp controller in rk3562 and rk3568, add schema
for different clock names for new entry.
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
---
Changes in v3:
- update the clock name from "usr" to "otp" and re-order to sync with
other soc.
Changes in v2:
- Update the commit message and add maxItems in schema.
.../bindings/nvmem/rockchip,otp.yaml | 53 ++++++++++++++++---
1 file changed, 46 insertions(+), 7 deletions(-)
diff --git a/Documentation/devicetree/bindings/nvmem/rockchip,otp.yaml b/Documentation/devicetree/bindings/nvmem/rockchip,otp.yaml
index a44d44b32809..8b257662f282 100644
--- a/Documentation/devicetree/bindings/nvmem/rockchip,otp.yaml
+++ b/Documentation/devicetree/bindings/nvmem/rockchip,otp.yaml
@@ -14,6 +14,8 @@ properties:
enum:
- rockchip,px30-otp
- rockchip,rk3308-otp
+ - rockchip,rk3562-otp
+ - rockchip,rk3568-otp
- rockchip,rk3588-otp
reg:
@@ -25,19 +27,15 @@ properties:
clock-names:
minItems: 3
- items:
- - const: otp
- - const: apb_pclk
- - const: phy
- - const: arb
+ maxItems: 4
resets:
minItems: 1
- maxItems: 3
+ maxItems: 4
reset-names:
minItems: 1
- maxItems: 3
+ maxItems: 4
required:
- compatible
@@ -62,12 +60,45 @@ allOf:
properties:
clocks:
maxItems: 3
+ clock-names:
+ items:
+ - const: otp
+ - const: apb_pclk
+ - const: phy
resets:
maxItems: 1
reset-names:
items:
- const: phy
+ - if:
+ properties:
+ compatible:
+ contains:
+ enum:
+ - rockchip,rk3562-otp
+ - rockchip,rk3568-otp
+ then:
+ properties:
+ clocks:
+ minItems: 4
+ maxItems: 4
+ clock-names:
+ items:
+ - const: otp
+ - const: apb_pclk
+ - const: phy
+ - const: sbpi
+ resets:
+ minItems: 4
+ maxItems: 4
+ reset-names:
+ items:
+ - const: otp
+ - const: apb
+ - const: phy
+ - const: sbpi
+
- if:
properties:
compatible:
@@ -78,8 +109,16 @@ allOf:
properties:
clocks:
minItems: 4
+ maxItems: 4
+ clock-names:
+ items:
+ - const: otp
+ - const: apb_pclk
+ - const: phy
+ - const: arb
resets:
minItems: 3
+ maxItems: 3
reset-names:
items:
- const: otp
--
2.25.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH v3 1/3] dt-bindings: nvmem: rockchip,otp: Add support for rk3562 and rk3568
2025-04-15 10:32 ` [PATCH v3 1/3] dt-bindings: nvmem: " Kever Yang
@ 2025-04-21 18:45 ` Rob Herring (Arm)
2025-04-22 10:06 ` Heiko Stübner
1 sibling, 0 replies; 4+ messages in thread
From: Rob Herring (Arm) @ 2025-04-21 18:45 UTC (permalink / raw)
To: Kever Yang
Cc: Srinivas Kandagatla, Krzysztof Kozlowski, heiko, devicetree,
linux-arm-kernel, linux-rockchip, linux-kernel, Conor Dooley
On Tue, 15 Apr 2025 18:32:01 +0800, Kever Yang wrote:
> Add compatible entry for the otp controller in rk3562 and rk3568, add schema
> for different clock names for new entry.
>
> Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
> ---
>
> Changes in v3:
> - update the clock name from "usr" to "otp" and re-order to sync with
> other soc.
>
> Changes in v2:
> - Update the commit message and add maxItems in schema.
>
> .../bindings/nvmem/rockchip,otp.yaml | 53 ++++++++++++++++---
> 1 file changed, 46 insertions(+), 7 deletions(-)
>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v3 1/3] dt-bindings: nvmem: rockchip,otp: Add support for rk3562 and rk3568
2025-04-15 10:32 ` [PATCH v3 1/3] dt-bindings: nvmem: " Kever Yang
2025-04-21 18:45 ` Rob Herring (Arm)
@ 2025-04-22 10:06 ` Heiko Stübner
1 sibling, 0 replies; 4+ messages in thread
From: Heiko Stübner @ 2025-04-22 10:06 UTC (permalink / raw)
To: Kever Yang
Cc: linux-rockchip, Kever Yang, devicetree, Conor Dooley, Rob Herring,
Srinivas Kandagatla, linux-kernel, Krzysztof Kozlowski,
linux-arm-kernel
Am Dienstag, 15. April 2025, 12:32:01 Mitteleuropäische Sommerzeit schrieb Kever Yang:
> Add compatible entry for the otp controller in rk3562 and rk3568, add schema
> for different clock names for new entry.
>
> Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-04-22 10:07 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-15 10:32 [PATCH v3 0/3] rockchip,otp: Add support for rk3562 and rk3568 Kever Yang
2025-04-15 10:32 ` [PATCH v3 1/3] dt-bindings: nvmem: " Kever Yang
2025-04-21 18:45 ` Rob Herring (Arm)
2025-04-22 10:06 ` Heiko Stübner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).