Skip to content

Commit

Permalink
powerpc: dts: turris1x.dts: Add CPLD reboot node
Browse files Browse the repository at this point in the history
CPLD firmware can reset board by writing value 0x01 at CPLD memory offset
0x0d. Define syscon-reboot node for this reset support.

Fixes: 54c15ec ("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
  • Loading branch information
Pali Rohár authored and Michael Ellerman committed Jul 27, 2022
1 parent 0c551ab commit 0531a4a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion arch/powerpc/boot/dts/turris1x.dts
Original file line number Diff line number Diff line change
Expand Up @@ -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>;
Expand All @@ -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.
Expand Down

0 comments on commit 0531a4a

Please sign in to comment.