Skip to contentSkip to conversation

arm64: dts: ls1028a: fix reboot node

PATCH Superseded Michael Walle 3 participants 3 messages Dec 9, 2019 – Dec 11, 2019

Subsystems (2)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 arm64: dts: ls1028a: fix reboot node

The reboot register isn't located inside the DCFG controller, but in its own RST controller. Fix it.

Fixes 8897f3255c9c ("arm64: dts: Add support for NXP LS1028A SoC")

---

changes since v1:
- add fixes tag
- remove "ls1028a-rst" compatible string, because there is no actual driver for it. It just use the syscon driver.

 arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi +7 -1
index 8b28fda2ca20..7825550b7cef 100644
@@ -88,7 +88,7 @@
 
 	reboot {
 		compatible ="syscon-reboot";
-		regmap = <&dcfg>;
+		regmap = <&rst>;
 		offset = <0xb0>;
 		mask = <0x02>;
 	};
@@ -178,6 +178,12 @@
 			little-endian;
 		};
 
+		rst: syscon@1e60000 {
+			compatible = "syscon";
+			reg = <0x0 0x1e60000 0x0 0x10000>;
+			little-endian;
+		};
+
 		scfg: syscon@1fc0000 {
 			compatible = "fsl,ls1028a-scfg", "syscon";
 			reg = <0x0 0x1fc0000 0x0 0x10000>;
Signature · 1 line
2.20.1
Acked-by on v2 1/1
#1 lore raw
Quoted 12 lines

-----Original Message-----
From: Michael Walle <[email protected]>
Sent: Monday, December 9, 2019 12:47 PM
To: [email protected]; [email protected]; linux- [email protected]
Cc: Shawn Guo <[email protected]>; Leo Li <[email protected]>; Rob Herring <[email protected]>; Mark Rutland <[email protected]>; Michael Walle <[email protected]>
Subject: [PATCH v2] arm64: dts: ls1028a: fix reboot node

Quoted 5 lines

The reboot register isn't located inside the DCFG controller, but in its own RST controller. Fix it.

Fixes 8897f3255c9c ("arm64: dts: Add support for NXP LS1028A SoC")
Quoted 39 lines

---

changes since v1:
- add fixes tag
- remove "ls1028a-rst" compatible string, because there is no actual driver for it. It just use the syscon driver.

 arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi +7 -2
index 8b28fda2ca20..7825550b7cef 100644
@@ -88,7 +88,7 @@
 
 	reboot {
 		compatible ="syscon-reboot";
-		regmap = <&dcfg>;
+		regmap = <&rst>;
 		offset = <0xb0>;
 		mask = <0x02>;
 	};
@@ -178,6 +178,12 @@
 			little-endian;
 		};
 
+		rst: syscon@1e60000 {
+			compatible = "syscon";
+			reg = <0x0 0x1e60000 0x0 0x10000>;
+			little-endian;
+		};
+
 		scfg: syscon@1fc0000 {
 			compatible = "fsl,ls1028a-scfg", "syscon";
 			reg = <0x0 0x1fc0000 0x0 0x10000>;
--

2.20.1

#2 lore raw
In reply to Michael Walle
Quoted 29 lines · Michael Walle

The reboot register isn't located inside the DCFG controller, but in its own RST controller. Fix it.

Fixes 8897f3255c9c ("arm64: dts: Add support for NXP LS1028A SoC")

---

changes since v1:
- add fixes tag
- remove "ls1028a-rst" compatible string, because there is no actual driver for it. It just use the syscon driver.

 arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi +1 -1
index 8b28fda2ca20..7825550b7cef 100644
@@ -88,7 +88,7 @@
 
 	reboot {
 		compatible ="syscon-reboot";
-		regmap = <&dcfg>;
+		regmap = <&rst>;
 		offset = <0xb0>;
 		mask = <0x02>;
 	};

arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi line 187

Quoted 10 lines
arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi +6 -0
@@ -178,6 +178,12 @@
 			little-endian;
 		};
 
+		rst: syscon@1e60000 {
+			compatible = "syscon";
+			reg = <0x0 0x1e60000 0x0 0x10000>;
+			little-endian;
+		};
+
 		scfg: syscon@1fc0000 {

Hmm, what is your base? It doesn't apply to my branch.

Shawn

Quoted 5 lines
arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi +0 -0
 			compatible = "fsl,ls1028a-scfg", "syscon";
 			reg = <0x0 0x1fc0000 0x0 0x10000>;
Signature · 1 line
2.20.1