ARM: dts: NSP: Add GPIO reboot method to bcm958625xmc DTS file
authorJon Mason <jon.mason@broadcom.com>
Wed, 3 Aug 2016 18:39:01 +0000 (14:39 -0400)
committerFlorian Fainelli <f.fainelli@gmail.com>
Tue, 9 Aug 2016 01:41:46 +0000 (18:41 -0700)
Add the ability to reboot the bcm958625xmc board via GPIO.
Unfortunately, not all of the NSP based boards use the same GPIO pin
and one doesn't have the ability to reboot via GPIO at all.  So, this
will need to be specified per DTS file.

Signed-off-by: Jon Mason <jon.mason@broadcom.com>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
arch/arm/boot/dts/bcm958525xmc.dts

index 9517360fd90422aa3b80022f8d7cac84ef16cad2..959cde911c3c5102c5b5db0f72cf6a6b86476934 100644 (file)
@@ -33,6 +33,7 @@
 /dts-v1/;
 
 #include "bcm-nsp.dtsi"
+#include <dt-bindings/gpio/gpio.h>
 
 / {
        model = "NorthStar Plus XMC (BCM958525xmc)";
                device_type = "memory";
                reg = <0x60000000 0x40000000>;
        };
+
+       gpio-restart {
+               compatible = "gpio-restart";
+               gpios = <&gpioa 31 GPIO_ACTIVE_LOW>;
+               priority = <200>;
+       };
 };
 
 &i2c0 {