From: Srinivas Kandagatla <srini@kernel.org>
To: Jonas Karlman <jonas@kwiboo.se>,
Srinivas Kandagatla <srini@kernel.org>,
Heiko Stuebner <heiko@sntech.de>
Cc: Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org,
linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH 2/3] nvmem: rockchip-otp: Add support for RK3506
Date: Tue, 1 Dec 2026 14:02:10 +0000 [thread overview]
Message-ID: <cf1c4e1d-d9d8-4025-9d14-5e9684a92b94@kernel.org> (raw)
In-Reply-To: <20261128221713.47445-3-jonas@kwiboo.se>
On 11/28/26 10:17 PM, Jonas Karlman wrote:
> Add support for the OTP controller in RK3506. The OTPC is similar to the
> OTP controller in RK3528, except that reading from the last 8 bytes,
> offset 120-127, fails ECC on RK3506.
That means they are not compatible are they?
But the binding patch says other wise.
Or is this a bug or errata?
--srini
>
> Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
> ---
> drivers/nvmem/rockchip-otp.c | 12 ++++++++++++
> 1 file changed, 12 insertions(+)
>
> diff --git a/drivers/nvmem/rockchip-otp.c b/drivers/nvmem/rockchip-otp.c
> index 7eb834516ab4..3422017d391e 100644
> --- a/drivers/nvmem/rockchip-otp.c
> +++ b/drivers/nvmem/rockchip-otp.c
> @@ -345,6 +345,14 @@ static const char * const rk3528_otp_clocks[] = {
> "otp", "apb_pclk", "sbpi",
> };
>
> +static const struct rockchip_data rk3506_data = {
> + .size = 0x78,
> + .word_size = sizeof(u16),
> + .clks = rk3528_otp_clocks,
> + .num_clks = ARRAY_SIZE(rk3528_otp_clocks),
> + .reg_read = rk3568_otp_read,
> +};
> +
> static const struct rockchip_data rk3528_data = {
> .size = 0x80,
> .word_size = sizeof(u16),
> @@ -396,6 +404,10 @@ static const struct of_device_id rockchip_otp_match[] = {
> .compatible = "rockchip,rk3308-otp",
> .data = &px30_data,
> },
> + {
> + .compatible = "rockchip,rk3506-otp",
> + .data = &rk3506_data,
> + },
> {
> .compatible = "rockchip,rk3528-otp",
> .data = &rk3528_data,
next prev parent reply other threads:[~2026-12-01 14:02 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-28 22:17 [PATCH 0/3] nvmem: rockchip-otp: Add support for RK3506 Jonas Karlman
2026-11-28 22:17 ` [PATCH 1/3] dt-bindings: nvmem: rockchip,otp: Add compatible " Jonas Karlman
2026-11-28 22:17 ` [PATCH 2/3] nvmem: rockchip-otp: Add support " Jonas Karlman
2026-12-01 14:02 ` Srinivas Kandagatla [this message]
2026-11-28 22:17 ` [PATCH 3/3] ARM: dts: rockchip: Enable OTP controller " Jonas Karlman
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=cf1c4e1d-d9d8-4025-9d14-5e9684a92b94@kernel.org \
--to=srini@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=heiko@sntech.de \
--cc=jonas@kwiboo.se \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=robh@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