summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPali Rohár <pali@kernel.org>2022-07-13 15:44:29 +0200
committerMichael Ellerman <mpe@ellerman.id.au>2022-07-27 13:36:03 +0200
commit0531a4abd1c6c2e270f5ac6fc725ff550fcd14ab (patch)
tree544a60af048e0e409d2eeca59d939f869a416ed8
parentpowerpc/fsl-pci: Fix Class Code of PCIe Root Port (diff)
downloadlinux-0531a4abd1c6c2e270f5ac6fc725ff550fcd14ab.tar.xz
linux-0531a4abd1c6c2e270f5ac6fc725ff550fcd14ab.zip
powerpc: dts: turris1x.dts: Add CPLD reboot node
CPLD firmware can reset board by writing value 0x01 at CPLD memory offset 0x0d. Define syscon-reboot node for this reset support. Fixes: 54c15ec3b738 ("powerpc: dts: Add DTS file for CZ.NIC Turris 1.x routers") Signed-off-by: Pali Rohár <pali@kernel.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20220713134429.18748-1-pali@kernel.org
-rw-r--r--arch/powerpc/boot/dts/turris1x.dts10
1 files changed, 9 insertions, 1 deletions
diff --git a/arch/powerpc/boot/dts/turris1x.dts b/arch/powerpc/boot/dts/turris1x.dts
index c76b628cf026..12e08271e61f 100644
--- a/arch/powerpc/boot/dts/turris1x.dts
+++ b/arch/powerpc/boot/dts/turris1x.dts
@@ -332,7 +332,7 @@
* Turris CPLD firmware is open source and available at:
* https://gitlab.nic.cz/turris/hw/turris_cpld/-/blob/master/CZ_NIC_Router_CPLD.v
*/
- compatible = "cznic,turris1x-cpld", "fsl,p1021rdb-pc-cpld", "simple-bus";
+ compatible = "cznic,turris1x-cpld", "fsl,p1021rdb-pc-cpld", "simple-bus", "syscon";
reg = <0x3 0x0 0x30>;
#address-cells = <1>;
#size-cells = <1>;
@@ -352,6 +352,14 @@
gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
};
+ reboot@d {
+ compatible = "syscon-reboot";
+ reg = <0x0d 0x01>;
+ offset = <0x0d>;
+ mask = <0x01>;
+ value = <0x01>;
+ };
+
led-controller@13 {
/*
* LEDs are controlled by CPLD firmware.