[OpenWrt-Devel] [PATCH 1/2] ralink: add FireWRT power button
fl.service at t-firefly.com
fl.service at t-firefly.com
Sun Mar 22 22:01:12 EDT 2015
Dear John:
We are using "self-lock power switch" . When the switch is pressed, the power will turn on . Original design is a physical switch .
But we want to unmount the sd card , usb device and the harddisk before the power off. So we add a detect pin to check the switch status and add a script to shutdown the power .
The schematic like this :
Best Regards.
Jay Weng
Website: www.t-firefly.com
E-mail: fl.service at t-firefly.com
From: John Crispin
Date: 2015-03-22 04:36
To: wengbj
CC: openwrt-devel; linux.c; wbj; zxf; dxj
Subject: Re: [PATCH 1/2] ralink: add FireWRT power button
Hi
On 21/03/2015 06:06, wengbj wrote:
> Signed-off-by: wengbj <fl.service at t-firefly.com>
> ---
> target/linux/ramips/dts/FIREWRT.dts | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/target/linux/ramips/dts/FIREWRT.dts b/target/linux/ramips/dts/FIREWRT.dts
> index 54f0e55..2b018e6 100644
> --- a/target/linux/ramips/dts/FIREWRT.dts
> +++ b/target/linux/ramips/dts/FIREWRT.dts
> @@ -103,6 +103,11 @@
> gpios = <&gpio0 18 1>;
> linux,code = <0x211>;
> };
> + power {
> + label = "power";
> + gpios = <&gpio0 23 1>;
> + linux,code = <116>;
> + };
what kind of power button is this ? does the board have a gpio to toggle
the supply voltage ? if so please consider also adding a "gpio-poweroff"
node.
John
>
};
>
> pinctrl {
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20150323/4d88fc11/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: schematic.png
Type: image/png
Size: 39767 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20150323/4d88fc11/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 15484_15484_logo_mini(01-06-16-45-51).jpg
Type: image/jpeg
Size: 15484 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20150323/4d88fc11/attachment.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: schematic.png
Type: application/octet-stream
Size: 39767 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20150323/4d88fc11/attachment.obj>
-------------- next part --------------
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list