[PATCH v2 25/29] arm64: dts: realtek: rtd129x: Add eFuse package_id to chip-info

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Add the package_id field as sub-node to eFuse and reference it for
chip identification.

Signed-off-by: Andreas Färber <afaerber@xxxxxxx>
---
 v1 -> v2:
 * Instead of extending reg, use nvmem-cells reference for eFuse
 
 arch/arm64/boot/dts/realtek/rtd129x.dtsi | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)

diff --git a/arch/arm64/boot/dts/realtek/rtd129x.dtsi b/arch/arm64/boot/dts/realtek/rtd129x.dtsi
index 8f96d4e4c46b..c35955e915f4 100644
--- a/arch/arm64/boot/dts/realtek/rtd129x.dtsi
+++ b/arch/arm64/boot/dts/realtek/rtd129x.dtsi
@@ -156,6 +156,13 @@ reset4: reset-controller@50 {
 	};
 };
 
+&efuse {
+	efuse_package_id: package-id@1d8 {
+		reg = <0x1d8 0x1>;
+		bits = <0 2>;
+	};
+};
+
 &iso {
 	iso_reset: reset-controller@88 {
 		compatible = "snps,dw-low-reset";
@@ -202,13 +209,6 @@ uart2: serial@400 {
 	};
 };
 
-&otp {
-	otp_package_id: package-id@1d8 {
-		reg = <0x1d8 0x1>;
-		bits = <0 2>;
-	};
-};
-
 &sb2 {
 	sb2_hd_sem: hwspinlock@0 {
 		compatible = "realtek,rtd1195-sb2-sem";
@@ -220,6 +220,8 @@ chip-info@200 {
 		compatible = "realtek,rtd1195-chip";
 		reg = <0x200 0x8>;
 		iso-syscon = <&iso>;
+		nvmem-cells = <&efuse_package_id>;
+		nvmem-cell-names = "efuse_package_id";
 	};
 
 	sb2_hd_sem_new: hwspinlock@620 {
-- 
2.26.2




[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux