Small changes for Rockchip NVMEM drivers
Subsystems (2)
Heiko Stuebner
maintainercover Small changes for Rockchip NVMEM drivers
When the option for legacy cell dt layouts was added, the Rockchip OTP driver seems to have been overlooked, so set the necessary option to allow seeing the cells again.
And two patches set the nvmem-type option in the device config.
Heiko Stuebner (3):
nvmem: rockchip-otp: set add_legacy_fixed_of_cells config option
nvmem: rockchip-otp: Set type to OTP
nvmem: rockchip-efuse: set type to OTP
drivers/nvmem/rockchip-efuse.c | 1 + drivers/nvmem/rockchip-otp.c | 2 ++ 2 files changed, 3 insertions(+)
Signature · 1 line
2.39.2
Heiko Stuebner
maintainerPATCH 1/3 nvmem: rockchip-otp: set add_legacy_fixed_of_cells config option
From: Heiko Stuebner <[email protected]>
The Rockchip OTP describes its layout via devicetree subnodes, so set the appropriate property.
--- drivers/nvmem/rockchip-otp.c | 1 + 1 file changed, 1 insertion(+)
drivers/nvmem/rockchip-otp.c +1 -0
@@ -255,6 +255,7 @@ static int rockchip_otp_read(void *context, unsigned int offset,static struct nvmem_config otp_config = { .name ="rockchip-otp" , .owner =THIS_MODULE , + .add_legacy_fixed_of_cells = true, .read_only = true, .stride =1 , .word_size =1 ,
Signature · 1 line
2.39.2
Heiko Stuebner
maintainerPATCH 2/3 nvmem: rockchip-otp: Set type to OTP
In reply to Heiko StuebnerFrom: Heiko Stuebner <[email protected]>
The Rockchip OTP is obviously an OTP memory, so document this fact.
--- drivers/nvmem/rockchip-otp.c | 1 + 1 file changed, 1 insertion(+)
drivers/nvmem/rockchip-otp.c +1 -0
@@ -256,6 +256,7 @@ static struct nvmem_config otp_config = { .name = "rockchip-otp", .owner = THIS_MODULE, .add_legacy_fixed_of_cells = true, + .type = NVMEM_TYPE_OTP, .read_only = true, .stride = 1, .word_size = 1,
Signature · 1 line
2.39.2
Heiko Stuebner
maintainerPATCH 3/3 nvmem: rockchip-efuse: set type to OTP
In reply to Heiko StuebnerFrom: Heiko Stuebner <[email protected]>
This device currently reports an "Unknown" type in sysfs. Since it is an eFuse hardware device, set its type to OTP.
--- drivers/nvmem/rockchip-efuse.c | 1 + 1 file changed, 1 insertion(+)
drivers/nvmem/rockchip-efuse.c +1 -0
@@ -206,6 +206,7 @@ static int rockchip_rk3399_efuse_read(void *context, unsigned int offset,static struct nvmem_config econfig = { .name ="rockchip-efuse" , .add_legacy_fixed_of_cells = true, + .type =NVMEM_TYPE_OTP , .stride =1 , .word_size =1 , .read_only = true,
Signature · 1 line
2.39.2
Hi Heiko,
Quoted 6 lines · Heiko Stuebner
When the option for legacy cell dt layouts was added, the Rockchip OTP driver seems to have been overlooked, so set the necessary option to allow seeing the cells again.
And two patches set the nvmem-type option in the device config.
For the whole series:
Thanks!
Quentin
Srinivas Kandagatla
AppliedQuoted 4 lines · Heiko Stuebner
When the option for legacy cell dt layouts was added, the Rockchip OTP driver seems to have been overlooked, so set the necessary option to allow seeing the cells again.
Quoted 8 lines
And two patches set the nvmem-type option in the device config.
Heiko Stuebner (3):
nvmem: rockchip-otp: setadd_legacy_fixed_of_cellsconfig option
nvmem: rockchip-otp: Set type to OTP
nvmem: rockchip-efuse: set type to OTP[...]
Applied, thanks!
[1/3] nvmem: rockchip-otp: set add_legacy_fixed_of_cells config option
commit: d4d688ed8f312dd1cf986c956251acf6176f5085
[2/3] nvmem: rockchip-otp: Set type to OTP
commit: ee65a6c12badd3e0891c9096d6db7a0dba655c1b
[3/3] nvmem: rockchip-efuse: set type to OTP
commit: bb503130de1212cac2c368b373b0192eb7c59ab6Best regards,
Signature · 1 line
Srinivas Kandagatla <[email protected]>