lkml.org 
[lkml]   [2018]   [May]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH] ARM: DTS: imx53: Add support for imx53 HSC/DDC boards from K+P
On Wed, May 9, 2018 at 12:34 PM, Lukasz Majewski <lukma@denx.de> wrote:

> + button@1 {
> + label = "Kaltstart";
> + linux,code = <64>; /* KEY_F6 */

If you include <dt-bindings/input/input.h> then you can simply do:

linux,code = <KEY_F6 >;

> + gpios = <&gpio2 26 GPIO_ACTIVE_HIGH>;
> + };
> + button@2 {
> + label = "PowerFailInterrupt";
> + linux,code = <65>; /* KEY_F7 */

Same here.

\
 
 \ /
  Last update: 2018-05-10 03:46    [W:0.134 / U:0.068 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site