Skip to content

Commit f5577b7

Browse files
finley1226rkhuangtao
authored andcommitted
nvmem: rockchip-otp: Add support for rk3308-otp
This adds the necessary data for handling efuse on the rk3308. Change-Id: I0c986e632f8dcc27ac38a887df25241db4b9fa19 Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
1 parent 00de83d commit f5577b7

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

Documentation/devicetree/bindings/nvmem/rockchip-otp.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
Rockchip internal OTP (One Time Programmable) memory device tree bindings
22

33
Required properties:
4-
- compatible: Should be "rockchip,px30-otp"
4+
- compatible: Should be one of the following.
5+
- "rockchip,px30-otp" - for PX30 SoCs.
6+
- "rockchip,rk3308-otp" - for RK3308 SoCs.
57
- reg: Must contain an entry with the physical base address and length
68
for each entry in reg-names.
79
- address-cells: must be set to 1.

drivers/nvmem/rockchip-otp.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,10 @@ static const struct of_device_id rockchip_otp_match[] = {
218218
.compatible = "rockchip,px30-otp",
219219
.data = (void *)&px30_data,
220220
},
221+
{
222+
.compatible = "rockchip,rk3308-otp",
223+
.data = (void *)&px30_data,
224+
},
221225
{ /* sentinel */},
222226
};
223227
MODULE_DEVICE_TABLE(of, rockchip_otp_match);

0 commit comments

Comments
 (0)