ODROID-COMMON: arm64/dts: overlay: Seperated gpio shortcut.

Change-Id: I3296aa20f364c1f1b3ff8148fc93c99db798bb8d
This commit is contained in:
Luke go
2020-09-03 15:05:23 +09:00
committed by Chris
parent da9ac4939f
commit fc36be2b7d
6 changed files with 86 additions and 62 deletions

View File

@@ -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 {

View File

@@ -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 {

View File

@@ -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)

View File

@@ -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>;
};
};
};
};
};

View File

@@ -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)

View File

@@ -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>;
};
};
};
};
};