Commit 38998927 authored by Markus Reichl's avatar Markus Reichl Committed by Heiko Stuebner

arm64: dts: rockchip: Add nodes for buttons on rk3399-roc-pc

rk3399-roc-pc has a power and a recovery button, enable them.
Signed-off-by: default avatarMarkus Reichl <m.reichl@fivetechno.de>
Link: https://lore.kernel.org/r/1ce152cc-bd6b-63af-7892-221e084d087f@fivetechno.deSigned-off-by: default avatarHeiko Stuebner <heiko@sntech.de>
parent 0815dc22
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
*/ */
/dts-v1/; /dts-v1/;
#include <dt-bindings/input/linux-event-codes.h>
#include <dt-bindings/pwm/pwm.h> #include <dt-bindings/pwm/pwm.h>
#include "rk3399.dtsi" #include "rk3399.dtsi"
#include "rk3399-opp.dtsi" #include "rk3399-opp.dtsi"
...@@ -28,6 +29,35 @@ clkin_gmac: external-gmac-clock { ...@@ -28,6 +29,35 @@ clkin_gmac: external-gmac-clock {
#clock-cells = <0>; #clock-cells = <0>;
}; };
adc-keys {
compatible = "adc-keys";
io-channels = <&saradc 1>;
io-channel-names = "buttons";
keyup-threshold-microvolt = <1500000>;
poll-interval = <100>;
recovery {
label = "Recovery";
linux,code = <KEY_VENDOR>;
press-threshold-microvolt = <18000>;
};
};
gpio-keys {
compatible = "gpio-keys";
autorepeat;
pinctrl-names = "default";
pinctrl-0 = <&pwr_key_l>;
power {
label = "GPIO Key Power";
debounce-interval = <100>;
gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_LOW>;
linux,code = <KEY_POWER>;
wakeup-source;
};
};
leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
pinctrl-names = "default"; pinctrl-names = "default";
...@@ -515,6 +545,12 @@ &pmu_io_domains { ...@@ -515,6 +545,12 @@ &pmu_io_domains {
}; };
&pinctrl { &pinctrl {
buttons {
pwr_key_l: pwr-key-l {
rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up>;
};
};
lcd-panel { lcd-panel {
lcd_panel_reset: lcd-panel-reset { lcd_panel_reset: lcd-panel-reset {
rockchip,pins = <4 RK_PD6 RK_FUNC_GPIO &pcfg_pull_up>; rockchip,pins = <4 RK_PD6 RK_FUNC_GPIO &pcfg_pull_up>;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment