Skip to contentSkip to conversation

arm64: dts: rockchip: add px30 otp controller

PATCH In review Heiko Stuebner 1 participant 2 messages Oct 23, 2019 – Oct 27, 2019

Subsystems (2)
lore
Share & tools
lore

Heiko Stuebner

author maintainer
#0 lore raw

PATCH 1/1 arm64: dts: rockchip: add px30 otp controller

The px30 soc contains a controller for one-time-programmable memory, so add the necessary node for it and the fields defined in it by default.

---
 arch/arm64/boot/dts/rockchip/px30.dtsi | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)
arch/arm64/boot/dts/rockchip/px30.dtsi +24 -0
index dd58b1bc5981..767f3ce6e9f7 100644
@@ -664,6 +664,30 @@
 		status = "disabled";
 	};
 
+	otp: nvmem@ff290000 {
+		compatible = "rockchip,px30-otp";
+		reg = <0x0 0xff290000 0x0 0x4000>;
+		clocks = <&cru SCLK_OTP_USR>, <&cru PCLK_OTP_NS>,
+			 <&cru PCLK_OTP_PHY>;
+		clock-names = "otp", "apb_pclk", "phy";
+		resets = <&cru SRST_OTP_PHY>;
+		reset-names = "phy";
+		#address-cells = <1>;
+		#size-cells = <1>;
+
+		/* Data cells */
+		cpu_id: id@7 {
+			reg = <0x07 0x10>;
+		};
+		cpu_leakage: cpu-leakage@17 {
+			reg = <0x17 0x1>;
+		};
+		performance: performance@1e {
+			reg = <0x1e 0x1>;
+			bits = <4 3>;
+		};
+	};
+
 	cru: clock-controller@ff2b0000 {
 		compatible = "rockchip,px30-cru";
 		reg = <0x0 0xff2b0000 0x0 0x1000>;
Signature · 1 line
2.23.0
author maintainer
#1 lore raw

Am Donnerstag, 24. Oktober 2019, 00:41:13 CET schrieb Heiko Stuebner:

Quoted 4 lines

The px30 soc contains a controller for one-time-programmable memory, so add the necessary node for it and the fields defined in it by default.

applied for 5.5