mirror of
https://github.com/Ysurac/openmptcprouter.git
synced 2025-02-15 04:42:02 +00:00
40 lines
1.7 KiB
Diff
40 lines
1.7 KiB
Diff
From 30eb4e1033a35103f27d60ba609eb466513b5465 Mon Sep 17 00:00:00 2001
|
|
From: Nick Bulleid <nedbulleid@fastmail.com>
|
|
Date: Sat, 12 May 2018 23:22:37 +0100
|
|
Subject: [PATCH 331/340] Updated the gpio-poweroff overlay and README entry
|
|
|
|
Signed-off-by: Nick Bulleid <nedbulleid@fastmail.com>
|
|
---
|
|
arch/arm/boot/dts/overlays/README | 3 +++
|
|
arch/arm/boot/dts/overlays/gpio-poweroff-overlay.dts | 2 ++
|
|
2 files changed, 5 insertions(+)
|
|
|
|
diff --git a/arch/arm/boot/dts/overlays/README b/arch/arm/boot/dts/overlays/README
|
|
index bea703661027..f3ec2b6d2a4f 100644
|
|
--- a/arch/arm/boot/dts/overlays/README
|
|
+++ b/arch/arm/boot/dts/overlays/README
|
|
@@ -595,6 +595,9 @@ Params: gpiopin GPIO for signalling (default 26)
|
|
custom dt-blob.bin to prevent a power-down
|
|
during the boot process, and that a reboot
|
|
will also cause the pin to go low.
|
|
+ input Set if the gpio pin should be configured as
|
|
+ an input.
|
|
+ export Set to export the configured pin to sysfs
|
|
|
|
|
|
Name: gpio-shutdown
|
|
diff --git a/arch/arm/boot/dts/overlays/gpio-poweroff-overlay.dts b/arch/arm/boot/dts/overlays/gpio-poweroff-overlay.dts
|
|
index ff8cb36d94d4..b9c834960556 100644
|
|
--- a/arch/arm/boot/dts/overlays/gpio-poweroff-overlay.dts
|
|
+++ b/arch/arm/boot/dts/overlays/gpio-poweroff-overlay.dts
|
|
@@ -30,5 +30,7 @@
|
|
gpiopin = <&power_ctrl>,"gpios:4",
|
|
<&power_ctrl_pins>,"brcm,pins:0";
|
|
active_low = <&power_ctrl>,"gpios:8";
|
|
+ input = <&power_ctrl>,"input?";
|
|
+ export = <&power_ctrl>,"export?";
|
|
};
|
|
};
|
|
--
|
|
2.16.1
|
|
|