[PATCH 2/3] nvmem: rockchip-otp: Add support for RK3506
Srinivas Kandagatla
srini at kernel.org
Tue Dec 1 06:02:10 PST 2026
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 at 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,
More information about the Linux-rockchip
mailing list