mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-04 18:19:28 +09:00
ODROID-M1/M1S: arm64/dtbo: Add gpio shortcut overlay.
Signed-off-by: Luke go <sangch.go@gmail.com> Change-Id: I7a0f665443df69e5ad494edd5c6c9426eeece346
This commit is contained in:
@@ -9,6 +9,7 @@ dtbo-$(CONFIG_ARCH_ROCKCHIP_ODROIDM1) += \
|
||||
display_waveshare_1inch47.dtbo \
|
||||
display_waveshare_1inch69.dtbo \
|
||||
fiq0_to_uart2.dtbo \
|
||||
gpio_shortcut.dtbo \
|
||||
hktft32.dtbo \
|
||||
i2c0.dtbo \
|
||||
i2c1.dtbo \
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/pinctrl/rockchip.h>
|
||||
|
||||
/{
|
||||
fragment@0 {
|
||||
target-path = "/";
|
||||
|
||||
__overlay__ {
|
||||
gpio_keys_polled: gpio_keys_polled {
|
||||
status = "okay";
|
||||
compatible =
|
||||
"gpio-keys-polled";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
poll-interval = <100>;
|
||||
autorepeat;
|
||||
button@1 {
|
||||
label = "GPIO Key F7";
|
||||
linux,code = <65>;
|
||||
gpios = <&gpio0 RK_PC0 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
button@2 {
|
||||
label = "GPIO Key F8";
|
||||
linux,code = <66>;
|
||||
gpios = <&gpio0 RK_PC1 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
button@3 {
|
||||
label = "GPIO Key F9";
|
||||
linux,code = <67>;
|
||||
gpios = <&gpio3 RK_PB2 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
button@4 {
|
||||
label = "GPIO Key F10";
|
||||
linux,code = <68>;
|
||||
gpios = <&gpio3 RK_PC6 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
@@ -11,11 +11,12 @@ dtbo-$(CONFIG_ARCH_ROCKCHIP_ODROIDM1) += \
|
||||
dht11.dtbo \
|
||||
display_3_5.dtbo \
|
||||
display_st7735_128x128.dtbo \
|
||||
display_waveshare_1inch47.dtbo \
|
||||
display_waveshare_1inch69.dtbo \
|
||||
display_vu5s.dtbo \
|
||||
display_vu8s.dtbo \
|
||||
display_waveshare_1inch47.dtbo \
|
||||
display_waveshare_1inch69.dtbo \
|
||||
fiq0_to_uart2.dtbo \
|
||||
gpio_shortcut.dtbo \
|
||||
hktft32.dtbo \
|
||||
i2c0.dtbo \
|
||||
i2c1.dtbo \
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/pinctrl/rockchip.h>
|
||||
|
||||
/{
|
||||
fragment@0 {
|
||||
target-path = "/";
|
||||
|
||||
__overlay__ {
|
||||
gpio_keys_polled: gpio_keys_polled {
|
||||
status = "okay";
|
||||
compatible =
|
||||
"gpio-keys-polled";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
poll-interval = <100>;
|
||||
autorepeat;
|
||||
button@1 {
|
||||
label = "GPIO Key F7";
|
||||
linux,code = <65>;
|
||||
gpios = <&gpio0 RK_PC0 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
button@2 {
|
||||
label = "GPIO Key F8";
|
||||
linux,code = <66>;
|
||||
gpios = <&gpio0 RK_PC1 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
button@3 {
|
||||
label = "GPIO Key F9";
|
||||
linux,code = <67>;
|
||||
gpios = <&gpio0 RK_PC2 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
button@4 {
|
||||
label = "GPIO Key F10";
|
||||
linux,code = <68>;
|
||||
gpios = <&gpio2 RK_PB5 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user