You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
1.4 KiB
33 lines
1.4 KiB
From ef6742d53869f0a8da5aacdb6b4cd13fb5540369 Mon Sep 17 00:00:00 2001
|
|
From: Nick Bulleid <nedbulleid@fastmail.com>
|
|
Date: Sat, 12 May 2018 23:22:37 +0100
|
|
Subject: [PATCH 300/454] 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(+)
|
|
|
|
--- a/arch/arm/boot/dts/overlays/README
|
|
+++ b/arch/arm/boot/dts/overlays/README
|
|
@@ -595,6 +595,9 @@ Params: gpiopin GPIO for
|
|
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
|
|
--- 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?";
|
|
};
|
|
};
|
|
|