mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-17 10:18:38 +00:00
2ea062265f
gpio-keys linux driver enforces user to specify linux,code. Add missing linux,code before implementing button input support. - arch/arm/dts/rk3288-popmetal.dtsi -> KEY_POWER - arch/arm/dts/rk3288-tinker.dtsi -> KEY_POWER - arch/arm/dts/am3517-evm-ui.dtsi -> KEY_RECORD - sandbox/dts/sandbox.dtsi -> BTN_1 - sandbox/dts/sandbox.dts -> BTN_1 Signed-off-by: Dzmitry Sankouski <dsankouski@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
57 lines
1.1 KiB
Text
57 lines
1.1 KiB
Text
// SPDX-License-Identifier: GPL-2.0
|
|
/*
|
|
* Copyright (C) 2016 PHYTEC Messtechnik
|
|
* Author: Christian Hemp <c.hemp@phytec.de>
|
|
*/
|
|
|
|
#include <dt-bindings/input/input.h>
|
|
|
|
/ {
|
|
gpio_keys: gpio-keys {
|
|
compatible = "gpio-keys";
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&pinctrl_gpio_keys>;
|
|
status = "disabled";
|
|
|
|
power {
|
|
label = "Power Button";
|
|
gpios = <&gpio5 0 GPIO_ACTIVE_LOW>;
|
|
linux,code = <KEY_POWER>;
|
|
wakeup-source;
|
|
};
|
|
};
|
|
|
|
user_leds: user-leds {
|
|
compatible = "gpio-leds";
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&pinctrl_user_leds>;
|
|
status = "disabled";
|
|
|
|
user-led1 {
|
|
gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>;
|
|
linux,default-trigger = "gpio";
|
|
default-state = "on";
|
|
};
|
|
|
|
user-led2 {
|
|
gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>;
|
|
linux,default-trigger = "gpio";
|
|
default-state = "on";
|
|
};
|
|
};
|
|
};
|
|
|
|
&iomuxc {
|
|
pinctrl_gpio_keys: gpio_keysgrp {
|
|
fsl,pins = <
|
|
MX6UL_PAD_SNVS_TAMPER0__GPIO5_IO00 0x79
|
|
>;
|
|
};
|
|
|
|
pinctrl_user_leds: user_ledsgrp {
|
|
fsl,pins = <
|
|
MX6UL_PAD_JTAG_MOD__GPIO1_IO10 0x79
|
|
MX6UL_PAD_GPIO1_IO01__GPIO1_IO01 0x79
|
|
>;
|
|
};
|
|
};
|