Skip to contentSkip to conversation

arm64: dts: ls1028a: fix reboot node

PATCH In review Michael Walle 2 participants 3 messages Dec 11, 2019 – Dec 12, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v3 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 v2:
- rebase to shawnguo/linux/for-next

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 261663f4a2db..301a76e441fc 100644
@@ -88,7 +88,7 @@
 
 	reboot {
 		compatible ="syscon-reboot";
-		regmap = <&dcfg>;
+		regmap = <&rst>;
 		offset = <0xb0>;
 		mask = <0x02>;
 	};
@@ -178,6 +178,12 @@
 			big-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
#1 lore raw
Quoted 5 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")

You missed Leo's ACK on v2? I added it and applied the patch.

Shawn

#2 lore raw

Am 2019-12-12 03:00, schrieb Shawn Guo:

Quoted 8 lines · Michael Walle
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")

You missed Leo's ACK on v2? I added it and applied the patch.

Yes, I forgot to add that, thanks.

-michael