[OpenWrt-Devel] [PATCHv3 2/3] [package] gpio-button-hotplug: Add a "mode" event

Rafał Miłecki zajec5 at gmail.com
Mon Oct 6 06:20:13 EDT 2014


On 6 October 2014 11:15, Russell Senior <russell at personaltelco.net> wrote:
>
>> have a look at FONER20N.dts
>> switch {
>>       label = "switch";
>>       gpios = <&gpio0 13 1>;
>>       linux,code = <0xf7>;
>>       linux,input-type = <5>; /* EV_SW */
>> };
>>
>> that would obsolete 2 and you need to change 3. i have merged 1 into
>> my tree.
>
> Thanks!
>
> Do you know what the significance of 0xf7 is there, if any?

include/dt-bindings/input/input.h
#define KEY_RFKILL              247     /* Key that controls all radios */
(why not use that?)

-- 
Rafał
_______________________________________________
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