Skip to content

Commit fae36d2

Browse files
committed
arm64: dts: rockchip: Enable OTP controller for RK356x
Enable the One Time Programmable Controller (OTPC) in RK356x and add an initial nvmem fixed layout. Tested-by: Diederik de Haas <diederik@cknow-tech.com> # NanoPi R5S, PineNote Signed-off-by: Heiko Stuebner <heiko@sntech.de> Link: https://patch.msgid.link/20260312213019.13965-3-heiko@sntech.de
1 parent 2448f33 commit fae36d2

1 file changed

Lines changed: 46 additions & 0 deletions

File tree

arch/arm64/boot/dts/rockchip/rk356x-base.dtsi

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1123,6 +1123,52 @@
11231123
status = "disabled";
11241124
};
11251125

1126+
otp: efuse@fe38c000 {
1127+
compatible = "rockchip,rk3568-otp";
1128+
reg = <0x0 0xfe38c000 0x0 0x4000>;
1129+
clocks = <&cru CLK_OTPC_NS_USR>, <&cru PCLK_OTPC_NS>,
1130+
<&cru PCLK_OTPPHY>, <&cru CLK_OTPC_NS_SBPI>;
1131+
clock-names = "otp", "apb_pclk", "phy", "sbpi";
1132+
resets = <&cru SRST_OTPC_NS_USR>, <&cru SRST_P_OTPC_NS>,
1133+
<&cru SRST_OTPPHY>, <&cru SRST_OTPC_NS_SBPI>;
1134+
reset-names = "otp", "apb", "phy", "sbpi";
1135+
1136+
nvmem-layout {
1137+
compatible = "fixed-layout";
1138+
#address-cells = <1>;
1139+
#size-cells = <1>;
1140+
1141+
cpu_code: cpu-code@2 {
1142+
reg = <0x02 0x2>;
1143+
};
1144+
1145+
otp_cpu_version: cpu-version@8 {
1146+
reg = <0x08 0x1>;
1147+
bits = <3 3>;
1148+
};
1149+
1150+
otp_id: id@a {
1151+
reg = <0x0a 0x10>;
1152+
};
1153+
1154+
cpu_leakage: cpu-leakage@1a {
1155+
reg = <0x1a 0x1>;
1156+
};
1157+
1158+
log_leakage: log-leakage@1b {
1159+
reg = <0x1b 0x1>;
1160+
};
1161+
1162+
npu_leakage: npu-leakage@1c {
1163+
reg = <0x1c 0x1>;
1164+
};
1165+
1166+
gpu_leakage: gpu-leakage@1d {
1167+
reg = <0x1d 0x1>;
1168+
};
1169+
};
1170+
};
1171+
11261172
i2s0_8ch: i2s@fe400000 {
11271173
compatible = "rockchip,rk3568-i2s-tdm";
11281174
reg = <0x0 0xfe400000 0x0 0x1000>;

0 commit comments

Comments
 (0)