[PATCH] ARM: DTS: imx53: Add support for imx53 HSC/DDC boards from K+P

Fabio Estevam festevam at gmail.com
Wed May 9 18:45:39 PDT 2018


On Wed, May 9, 2018 at 12:34 PM, Lukasz Majewski <lukma at denx.de> wrote:

> +               button at 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 at 2 {
> +                       label = "PowerFailInterrupt";
> +                       linux,code = <65>; /* KEY_F7 */

Same here.



More information about the linux-arm-kernel mailing list