mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
ODROID-COMMON: arm64/dts: overlay: Seperated gpio shortcut.
Change-Id: I3296aa20f364c1f1b3ff8148fc93c99db798bb8d
This commit is contained in:
@@ -59,36 +59,6 @@
|
||||
compatible = "odroid-sysfs";
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
gpio_keys_polled {
|
||||
status = "disabled";
|
||||
compatible =
|
||||
"gpio-keys-polled";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
poll-interval = <100>;
|
||||
autorepeat;
|
||||
button@1 {
|
||||
label = "GPIO Key F7";
|
||||
linux,code = <65>;
|
||||
gpios = <&gpio GPIOX_4 1>;
|
||||
};
|
||||
button@2 {
|
||||
label = "GPIO Key F8";
|
||||
linux,code = <66>;
|
||||
gpios = <&gpio GPIOX_7 1>;
|
||||
};
|
||||
button@3 {
|
||||
label = "GPIO Key F9";
|
||||
linux,code = <67>;
|
||||
gpios = <&gpio GPIOX_0 1>;
|
||||
};
|
||||
button@4 {
|
||||
label = "GPIO Key F10";
|
||||
linux,code = <68>;
|
||||
gpios = <&gpio GPIOX_1 1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&custom_maps {
|
||||
|
||||
@@ -59,36 +59,6 @@
|
||||
compatible = "odroid-sysfs";
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
gpio_keys_polled {
|
||||
status = "disabled";
|
||||
compatible =
|
||||
"gpio-keys-polled";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
poll-interval = <100>;
|
||||
autorepeat;
|
||||
button@1 {
|
||||
label = "GPIO Key F7";
|
||||
linux,code = <65>;
|
||||
gpios = <&gpio GPIOX_4 1>;
|
||||
};
|
||||
button@2 {
|
||||
label = "GPIO Key F8";
|
||||
linux,code = <66>;
|
||||
gpios = <&gpio GPIOX_7 1>;
|
||||
};
|
||||
button@3 {
|
||||
label = "GPIO Key F9";
|
||||
linux,code = <67>;
|
||||
gpios = <&gpio GPIOX_0 1>;
|
||||
};
|
||||
button@4 {
|
||||
label = "GPIO Key F10";
|
||||
linux,code = <68>;
|
||||
gpios = <&gpio GPIOX_1 1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&custom_maps {
|
||||
|
||||
@@ -19,7 +19,8 @@ dtbo-$(CONFIG_ARCH_MESON64_ODROIDC4) += spi0.dtbo \
|
||||
pwm_a-pwmfan.dtbo \
|
||||
pwm_b-backlight.dtbo \
|
||||
wifi_bt_combo.dtbo \
|
||||
sdio.dtbo
|
||||
sdio.dtbo \
|
||||
gpio_shortcut.dtbo
|
||||
|
||||
targets += $(dtbo-y)
|
||||
always := $(dtbo-y)
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/{
|
||||
fragmetn@0 {
|
||||
target-path ="/";
|
||||
|
||||
__overlay__ {
|
||||
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 = <&gpio GPIOX_4 1>;
|
||||
};
|
||||
button@2 {
|
||||
label = "GPIO Key F8";
|
||||
linux,code = <66>;
|
||||
gpios = <&gpio GPIOX_7 1>;
|
||||
};
|
||||
button@3 {
|
||||
label = "GPIO Key F9";
|
||||
linux,code = <67>;
|
||||
gpios = <&gpio GPIOX_0 1>;
|
||||
};
|
||||
button@4 {
|
||||
label = "GPIO Key F10";
|
||||
linux,code = <68>;
|
||||
gpios = <&gpio GPIOX_1 1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
@@ -21,7 +21,8 @@ dtbo-$(CONFIG_ARCH_MESON64_ODROIDN2) += spi0.dtbo \
|
||||
pwm_c-pwmfan.dtbo \
|
||||
pwm_d-backlight.dtbo \
|
||||
gpio_spdif.dtbo \
|
||||
sdio.dtbo
|
||||
sdio.dtbo \
|
||||
gpio_shortcut.dtbo
|
||||
|
||||
targets += $(dtbo-y)
|
||||
always := $(dtbo-y)
|
||||
|
||||
@@ -0,0 +1,42 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
#include <dt-bindings/gpio/meson-g12a-gpio.h>
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
/{
|
||||
fragmetn@0 {
|
||||
target-path ="/";
|
||||
|
||||
__overlay__ {
|
||||
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 = <&gpio GPIOX_4 1>;
|
||||
};
|
||||
button@2 {
|
||||
label = "GPIO Key F8";
|
||||
linux,code = <66>;
|
||||
gpios = <&gpio GPIOX_7 1>;
|
||||
};
|
||||
button@3 {
|
||||
label = "GPIO Key F9";
|
||||
linux,code = <67>;
|
||||
gpios = <&gpio GPIOX_0 1>;
|
||||
};
|
||||
button@4 {
|
||||
label = "GPIO Key F10";
|
||||
linux,code = <68>;
|
||||
gpios = <&gpio GPIOX_1 1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user