Skip to content

Commit 10baed1

Browse files
Jon Masonffainelli
authored andcommitted
ARM: dts: NSP: Add GPIO reboot method to bcm958625xmc DTS file
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>
1 parent b1aaf88 commit 10baed1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

arch/arm/boot/dts/bcm958525xmc.dts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
/dts-v1/;
3434

3535
#include "bcm-nsp.dtsi"
36+
#include <dt-bindings/gpio/gpio.h>
3637

3738
/ {
3839
model = "NorthStar Plus XMC (BCM958525xmc)";
@@ -50,6 +51,12 @@
5051
device_type = "memory";
5152
reg = <0x60000000 0x40000000>;
5253
};
54+
55+
gpio-restart {
56+
compatible = "gpio-restart";
57+
gpios = <&gpioa 31 GPIO_ACTIVE_LOW>;
58+
priority = <200>;
59+
};
5360
};
5461

5562
&i2c0 {

0 commit comments

Comments
 (0)