From 7efe11aace70faa2199bc42d8949cd289b2998da Mon Sep 17 00:00:00 2001
From: Finley Xiao <finley.xiao@rock-chips.com>
Date: Fri, 27 Mar 2026 13:17:50 +0000
Subject: [PATCH] nvmem: rockchip-otp: Add support for RK3562

This adds the necessary data for handling otp on the rk3562.

Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Tested-by: Willy Tarreau <w@1wt.eu>
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Srinivas Kandagatla <srini@kernel.org>
Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Link: https://patch.msgid.link/20260327131751.3026030-9-srini@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
 drivers/nvmem/rockchip-otp.c | 4 ++++
 1 file changed, 4 insertions(+)

--- a/drivers/nvmem/rockchip-otp.c
+++ b/drivers/nvmem/rockchip-otp.c
@@ -377,6 +377,10 @@ static const struct of_device_id rockchi
 		.data = &px30_data,
 	},
 	{
+		.compatible = "rockchip,rk3562-otp",
+		.data = &rk3568_data,
+	},
+	{
 		.compatible = "rockchip,rk3568-otp",
 		.data = &rk3568_data,
 	},
