powerpc/85xx: Add Cyrus board power-off and reset nodes

Message ID 4d531fb86c6.a2619d3@auth.smtp.1and1.co.uk
State New
Headers show
Series
  • powerpc/85xx: Add Cyrus board power-off and reset nodes
Related show

Checks

Context Check Description
snowpatch_ozlabs/apply_patch fail Failed to apply to any branch

Commit Message

Darren Stevens Feb. 9, 2019, 11:14 p.m.
The Cyrus board from Varisys has power-off and reset functions attached
to gpio pins. Add the required device-tree bindings.

Signed-off-by: Darren Stevens <darren@stevens-zone.net>

---

Patch

diff --git a/arch/powerpc/boot/dts/fsl/cyrus_p5020.dts b/arch/powerpc/boot/dts/fsl/cyrus_p5020.dts
index c603390..15e8440 100644
--- a/arch/powerpc/boot/dts/fsl/cyrus_p5020.dts
+++ b/arch/powerpc/boot/dts/fsl/cyrus_p5020.dts
@@ -71,6 +71,17 @@ 
                reg = <0x6f>;
            };
        };
+
+       gpio-poweroff {
+           compatible = "gpio-poweroff";
+           gpios = <&gpio0 3 1>;
+       };
+
+       gpio-restart {
+           compatible = "gpio-restart";
+           gpios = <&gpio0 2 1>;
+       };
+
    };
 
    rio: rapidio@ffe0c0000 {