From: Weihong Guan <weihong.guan@gmail.com>
To: Srinivas Kandagatla <srini@kernel.org>
Cc: Weihong Guan <weihong.guan@gmail.com>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Heiko Stuebner <heiko@sntech.de>, Ondrej Jirman <megi@xff.cz>,
devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-rockchip@lists.infradead.org
Subject: [PATCH 1/2] dt-bindings: nvmem: rockchip,otp: Add RV1106
Date: Thu, 3 Dec 2026 12:24:11 +0000 [thread overview]
Message-ID: <20261203122416.682071-2-weihong.guan@gmail.com> (raw)
In-Reply-To: <20261203122416.682071-1-weihong.guan@gmail.com>
The RV1106 OTP controller works as the RK3568's, behind six clocks and
six resets: the RK3568's four (otp, apb, phy, sbpi), the arbiter's
the RK3588 also has (arb), and CLK_PMC_OTP / SRST_PMC_OTP (pmc), as
Rockchip's own RV1106 device tree lists them. The RV1103 has the same
block.
Allow up to six clocks and resets, and add the compatible with its
clock and reset names.
Assisted-by: Claude:claude-opus-5.5
Signed-off-by: Weihong Guan <weihong.guan@gmail.com>
---
.../bindings/nvmem/rockchip,otp.yaml | 38 +++++++++++++++++--
1 file changed, 34 insertions(+), 4 deletions(-)
diff --git a/Documentation/devicetree/bindings/nvmem/rockchip,otp.yaml b/Documentation/devicetree/bindings/nvmem/rockchip,otp.yaml
index 7e4d5e1c4..0db99a365 100644
--- a/Documentation/devicetree/bindings/nvmem/rockchip,otp.yaml
+++ b/Documentation/devicetree/bindings/nvmem/rockchip,otp.yaml
@@ -19,25 +19,26 @@ properties:
- rockchip,rk3568-otp
- rockchip,rk3576-otp
- rockchip,rk3588-otp
+ - rockchip,rv1106-otp
reg:
maxItems: 1
clocks:
minItems: 3
- maxItems: 4
+ maxItems: 6
clock-names:
minItems: 3
- maxItems: 4
+ maxItems: 6
resets:
minItems: 1
- maxItems: 4
+ maxItems: 6
reset-names:
minItems: 1
- maxItems: 4
+ maxItems: 6
required:
- compatible
@@ -174,6 +175,35 @@ allOf:
- const: apb
- const: arb
+ - if:
+ properties:
+ compatible:
+ contains:
+ enum:
+ - rockchip,rv1106-otp
+ then:
+ properties:
+ clocks:
+ minItems: 6
+ clock-names:
+ items:
+ - const: otp
+ - const: apb_pclk
+ - const: phy
+ - const: sbpi
+ - const: arb
+ - const: pmc
+ resets:
+ minItems: 6
+ reset-names:
+ items:
+ - const: otp
+ - const: apb
+ - const: phy
+ - const: sbpi
+ - const: arb
+ - const: pmc
+
unevaluatedProperties: false
examples:
--
2.47.3
next prev parent reply other threads:[~2026-12-03 12:24 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-03 12:24 [PATCH 0/2] nvmem: rockchip-otp: Add support for the RV1106 Weihong Guan
2026-12-03 12:24 ` Weihong Guan [this message]
2026-12-03 12:48 ` [PATCH 1/2] dt-bindings: nvmem: rockchip,otp: Add RV1106 sashiko-bot
2026-12-03 12:24 ` [PATCH 2/2] nvmem: rockchip-otp: Add support for RV1106 Weihong Guan
2026-12-03 13:06 ` sashiko-bot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261203122416.682071-2-weihong.guan@gmail.com \
--to=weihong.guan@gmail.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=heiko@sntech.de \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=megi@xff.cz \
--cc=robh@kernel.org \
--cc=srini@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox