Skip to content

Commit 8c2c730

Browse files
Kwiboommind
authored andcommitted
arm64: dts: rockchip: Enable OTP controller for RK3528
Enable the One Time Programmable Controller (OTPC) in RK3528 and add an initial nvmem fixed layout. Signed-off-by: Jonas Karlman <jonas@kwiboo.se> Signed-off-by: Heiko Stuebner <heiko@sntech.de> Link: https://patch.msgid.link/20260312213019.13965-4-heiko@sntech.de
1 parent fae36d2 commit 8c2c730

1 file changed

Lines changed: 47 additions & 0 deletions

File tree

arch/arm64/boot/dts/rockchip/rk3528.dtsi

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1190,6 +1190,53 @@
11901190
status = "disabled";
11911191
};
11921192

1193+
otp: efuse@ffce0000 {
1194+
compatible = "rockchip,rk3528-otp";
1195+
reg = <0x0 0xffce0000 0x0 0x4000>;
1196+
clocks = <&cru CLK_USER_OTPC_NS>, <&cru PCLK_OTPC_NS>,
1197+
<&cru CLK_SBPI_OTPC_NS>;
1198+
clock-names = "otp", "apb_pclk", "sbpi";
1199+
resets = <&cru SRST_USER_OTPC_NS>, <&cru SRST_P_OTPC_NS>,
1200+
<&cru SRST_SBPI_OTPC_NS>;
1201+
reset-names = "otp", "apb", "sbpi";
1202+
1203+
nvmem-layout {
1204+
compatible = "fixed-layout";
1205+
#address-cells = <1>;
1206+
#size-cells = <1>;
1207+
1208+
cpu_code: cpu-code@2 {
1209+
reg = <0x02 0x2>;
1210+
};
1211+
1212+
otp_cpu_version: cpu-version@8 {
1213+
reg = <0x08 0x1>;
1214+
bits = <3 3>;
1215+
};
1216+
1217+
otp_id: id@a {
1218+
reg = <0x0a 0x10>;
1219+
};
1220+
1221+
cpu_leakage: cpu-leakage@1a {
1222+
reg = <0x1a 0x1>;
1223+
};
1224+
1225+
logic_leakage: logic-leakage@1b {
1226+
reg = <0x1b 0x1>;
1227+
};
1228+
1229+
gpu_leakage: gpu-leakage@1c {
1230+
reg = <0x1c 0x1>;
1231+
};
1232+
1233+
tsadc_trim: tsadc-trim@44 {
1234+
reg = <0x44 0x2>;
1235+
bits = <0 10>;
1236+
};
1237+
};
1238+
};
1239+
11931240
dmac: dma-controller@ffd60000 {
11941241
compatible = "arm,pl330", "arm,primecell";
11951242
reg = <0x0 0xffd60000 0x0 0x4000>;

0 commit comments

Comments
 (0)