mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-16 00:51:51 -04:00
nvmem: rockchip-otp: Add support for RK3528
Add support for the OTP controller in RK3528. The OTPC is similar to the OTPC in RK3562 and RK3568, exept for a missing phy clock and reset. Signed-off-by: Jonas Karlman <jonas@kwiboo.se> Signed-off-by: Heiko Stuebner <heiko@sntech.de> Tested-by: Willy Tarreau <w@1wt.eu> Signed-off-by: Srinivas Kandagatla <srini@kernel.org> Link: https://patch.msgid.link/20260327131751.3026030-10-srini@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
7efe11aace
commit
a255f352b0
@@ -333,6 +333,18 @@ static const struct rockchip_data px30_data = {
|
||||
.reg_read = px30_otp_read,
|
||||
};
|
||||
|
||||
static const char * const rk3528_otp_clocks[] = {
|
||||
"otp", "apb_pclk", "sbpi",
|
||||
};
|
||||
|
||||
static const struct rockchip_data rk3528_data = {
|
||||
.size = 0x80,
|
||||
.word_size = sizeof(u16),
|
||||
.clks = rk3528_otp_clocks,
|
||||
.num_clks = ARRAY_SIZE(rk3528_otp_clocks),
|
||||
.reg_read = rk3568_otp_read,
|
||||
};
|
||||
|
||||
static const char * const rk3568_otp_clocks[] = {
|
||||
"otp", "apb_pclk", "phy", "sbpi",
|
||||
};
|
||||
@@ -376,6 +388,10 @@ static const struct of_device_id rockchip_otp_match[] = {
|
||||
.compatible = "rockchip,rk3308-otp",
|
||||
.data = &px30_data,
|
||||
},
|
||||
{
|
||||
.compatible = "rockchip,rk3528-otp",
|
||||
.data = &rk3528_data,
|
||||
},
|
||||
{
|
||||
.compatible = "rockchip,rk3562-otp",
|
||||
.data = &rk3568_data,
|
||||
|
||||
Reference in New Issue
Block a user