<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"><style>body { line-height: 1.5; }blockquote { margin-top: 0px; margin-bottom: 0px; margin-left: 0.5em; }body { font-size: 10.5pt; font-family: 宋体; color: rgb(0, 0, 0); line-height: 1.5; }</style></head><body>
<div><span></span>Dear John:</div><div><span style="background-color: rgba(0, 0, 0, 0);"> We are using "self-lock power switch" . When the switch is pressed, the power will turn on . Original design is a p</span><span style="background-color: rgba(0, 0, 0, 0); font-size: 10.5pt; line-height: 1.5;">hysical switch . </span></div><div><span style="background-color: rgba(0, 0, 0, 0);"> But w</span><span style="background-color: rgba(0, 0, 0, 0); font-size: 10.5pt; line-height: 1.5;">e want to unmount the sd card , usb device and the harddisk before the power off. So we add a </span><span style="background-color: rgba(0, 0, 0, 0); font-size: 10.5pt; line-height: 1.5;">detect pin to check the switch status and add a script to shutdown the power .</span></div><div><span style="background-color: rgba(0, 0, 0, 0);"> The </span><span style="background-color: rgba(0, 0, 0, 0); font-size: 10.5pt; line-height: 1.5;">schematic like this :</span></div><div><span style="background-color: rgba(0, 0, 0, 0);"> </span><img src="cid:_Foxmail.1@c7537901-64d5-49ea-b163-c24152565d91" border="0" style="font-size: 10.5pt; line-height: 1.5; background-color: window;"></div>
<div><br></div><hr style="width: 210px; height: 1px;" color="#b5c4df" size="1" align="left">
<div><span><div style="MARGIN: 10px; FONT-FAMILY: verdana; FONT-SIZE: 10pt"><b style="color: rgb(51, 51, 153); font-size: 14px; line-height: 21px; font-family: Calibri;"><div style="font-size: 15px; line-height: normal;"><font color="#333399">Best Regards.</font></div><div style="font-size: 15px; line-height: normal;"><font color="#333399">Jay Weng</font></div><div style="font-size: 15px; line-height: normal;"><font color="#333399"><br></font></div><div style="font-size: 15px; line-height: normal;"><img src="cid:_Foxmail.1@d3b19b05-6db9-fa53-8032-43d7a6a6fa19" border="0" style="max-width: 100%; height: auto !important;"></div><div style="font-size: 15px; line-height: normal;"><font color="#333399"><span style="line-height: 1.5; background-color: window;"></span><span style="background-color: window;">Website: </span><span style="line-height: 1.5; background-color: window;">www.t-firefly.com</span></font></div><div style="font-size: 15px; line-height: normal;"><span style="line-height: 1.5; background-color: window;"><font color="#333399">E-mail: fl.</font></span><span style="background-color: rgba(0, 0, 0, 0); line-height: 1.5;">service@t-firefly.com</span></div></b></div></span></div>
<blockquote style="margin-top: 0px; margin-bottom: 0px; margin-left: 0.5em;"><div> </div><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm"><div style="PADDING-RIGHT: 8px; PADDING-LEFT: 8px; FONT-SIZE: 12px;FONT-FAMILY:tahoma;COLOR:#000000; BACKGROUND: #efefef; PADDING-BOTTOM: 8px; PADDING-TOP: 8px"><div><b>From:</b> <a href="mailto:blogic@openwrt.org">John Crispin</a></div><div><b>Date:</b> 2015-03-22 04:36</div><div><b>To:</b> <a href="mailto:fl.service@t-firefly.com">wengbj</a></div><div><b>CC:</b> <a href="mailto:openwrt-devel@lists.openwrt.org">openwrt-devel</a>; <a href="mailto:linux.c@foxmail.com">linux.c</a>; <a href="mailto:wbj@t-chip.com.cn">wbj</a>; <a href="mailto:zxf@t-chip.com.cn">zxf</a>; <a href="mailto:dxj@t-chip.com.cn">dxj</a></div><div><b>Subject:</b> Re: [PATCH 1/2] ralink: add FireWRT power button</div></div></div><div><div>Hi</div>
<div> </div>
<div>On 21/03/2015 06:06, wengbj wrote:</div>
<div>> Signed-off-by: wengbj <fl.service@t-firefly.com></div>
<div>> ---</div>
<div>> target/linux/ramips/dts/FIREWRT.dts | 5 +++++</div>
<div>> 1 file changed, 5 insertions(+)</div>
<div>> </div>
<div>> diff --git a/target/linux/ramips/dts/FIREWRT.dts b/target/linux/ramips/dts/FIREWRT.dts</div>
<div>> index 54f0e55..2b018e6 100644</div>
<div>> --- a/target/linux/ramips/dts/FIREWRT.dts</div>
<div>> +++ b/target/linux/ramips/dts/FIREWRT.dts</div>
<div>> @@ -103,6 +103,11 @@</div>
<div>> gpios = <&gpio0 18 1>;</div>
<div>> linux,code = <0x211>;</div>
<div>> };</div>
<div>> + power {</div>
<div>> + label = "power";</div>
<div>> + gpios = <&gpio0 23 1>;</div>
<div>> + linux,code = <116>;</div>
<div>> + };</div>
<div> </div>
<div>what kind of power button is this ? does the board have a gpio to toggle</div>
<div>the supply voltage ? if so please consider also adding a "gpio-poweroff"</div>
<div>node.</div>
<div> </div>
<div> John</div>
<div> </div>
<div> </div>
<div> </div>
<div>> </div>
<div> };</div>
<div>> </div>
<div>> pinctrl {</div>
<div>> </div>
<div> </div>
<div> </div>
</div></blockquote>
</body></html>