mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-11 13:27:06 +09:00
ODROID-COMMON: ARM64/dts: add GPIO-based joystick support device tree
Signed-off-by: Dongjin Kim <tobetter@gmail.com> Change-Id: I54ebe56b09f5cc66f26718f4486f011fb50dcc0e
This commit is contained in:
@@ -733,6 +733,16 @@
|
||||
gpio-reset {
|
||||
/delete-node/ usb_hub_en;
|
||||
};
|
||||
|
||||
parport0: parport@0 {
|
||||
compatible = "parport,odroid";
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
parport1: parport@1 {
|
||||
compatible = "parport,odroid";
|
||||
status = "disabled";
|
||||
};
|
||||
}; /* end of / */
|
||||
|
||||
&audiobus {
|
||||
|
||||
@@ -347,6 +347,16 @@
|
||||
#cooling-cells = <2>;
|
||||
cooling-levels = <0 120 170 220>;
|
||||
};
|
||||
|
||||
parport0: parport@0 {
|
||||
compatible = "parport,odroid";
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
parport1: parport@1 {
|
||||
compatible = "parport,odroid";
|
||||
status = "disabled";
|
||||
};
|
||||
}; /* end of / */
|
||||
|
||||
&soc_thermal {
|
||||
|
||||
@@ -23,7 +23,9 @@ dtbo-$(CONFIG_ARCH_MESON64_ODROIDC4) += spi0.dtbo \
|
||||
pwm_cd.dtbo \
|
||||
pwm_ef.dtbo \
|
||||
pwm_a-pwmfan.dtbo \
|
||||
pwm_b-backlight.dtbo
|
||||
pwm_b-backlight.dtbo \
|
||||
gpio-joystick0.dtbo \
|
||||
gpio-joystick1.dtbo
|
||||
|
||||
targets += $(dtbo-y)
|
||||
always := $(dtbo-y)
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
#include <dt-bindings/gpio/meson-g12a-gpio.h>
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
|
||||
/ {
|
||||
fragment@0 {
|
||||
target = <&parport0>;
|
||||
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
|
||||
data-gpios = <&gpio GPIOX_2 GPIO_ACTIVE_LOW>,
|
||||
<&gpio GPIOX_1 GPIO_ACTIVE_LOW>,
|
||||
<&gpio GPIOX_8 GPIO_ACTIVE_LOW>,
|
||||
<&gpio GPIOX_9 GPIO_ACTIVE_LOW>,
|
||||
<&gpio GPIOX_13 GPIO_ACTIVE_LOW>,
|
||||
<&gpio GPIOX_16 GPIO_ACTIVE_LOW>,
|
||||
<&gpio GPIOX_12 GPIO_ACTIVE_LOW>,
|
||||
<&gpio GPIOX_0 GPIO_ACTIVE_LOW>;
|
||||
|
||||
status-gpios = <&gpio GPIOX_5 GPIO_ACTIVE_LOW>,
|
||||
<&gpio GPIOX_3 GPIO_ACTIVE_LOW>,
|
||||
<&gpio GPIOX_4 GPIO_ACTIVE_LOW>,
|
||||
<&gpio GPIOX_7 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
};
|
||||
};
|
||||
@@ -0,0 +1,37 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
#include <dt-bindings/gpio/meson-g12a-gpio.h>
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
|
||||
/ {
|
||||
fragment@0 {
|
||||
target = <&parport1>;
|
||||
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
|
||||
data-gpios = <&gpio GPIOX_17 GPIO_ACTIVE_LOW>,
|
||||
<&gpio GPIOA_15 GPIO_ACTIVE_LOW>,
|
||||
<&gpio GPIOX_19 GPIO_ACTIVE_LOW>,
|
||||
<&gpio GPIOA_14 GPIO_ACTIVE_LOW>,
|
||||
<&gpio GPIOH_6 GPIO_ACTIVE_LOW>,
|
||||
<&gpio GPIOH_7 GPIO_ACTIVE_LOW>,
|
||||
<&gpio GPIOX_10 GPIO_ACTIVE_LOW>,
|
||||
<&gpio GPIOH_5 GPIO_ACTIVE_LOW>;
|
||||
|
||||
status-gpios = <&gpio GPIOX_11 GPIO_ACTIVE_LOW>,
|
||||
<&gpio GPIOX_14 GPIO_ACTIVE_LOW>,
|
||||
<&gpio GPIOX_15 GPIO_ACTIVE_LOW>,
|
||||
<&gpio GPIOX_6 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target = <&i2c3>;
|
||||
|
||||
__overlay__ {
|
||||
status = "disabled";
|
||||
};
|
||||
};
|
||||
};
|
||||
@@ -14,11 +14,13 @@ dtbo-$(CONFIG_ARCH_MESON64_ODROIDN2) += spi0.dtbo \
|
||||
onewire.dtbo \
|
||||
can0.dtbo \
|
||||
fanspeed-full.dtbo \
|
||||
gpio_spdif.dtbo \
|
||||
gpio_spdif.dtbo \
|
||||
pwm_cd.dtbo \
|
||||
pwm_ef.dtbo \
|
||||
pwm_c-pwmfan.dtbo \
|
||||
pwm_d-backlight.dtbo
|
||||
pwm_d-backlight.dtbo \
|
||||
gpio-joystick0.dtbo \
|
||||
gpio-joystick1.dtbo
|
||||
|
||||
targets += $(dtbo-y)
|
||||
always := $(dtbo-y)
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
#include <dt-bindings/gpio/meson-g12a-gpio.h>
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
|
||||
/ {
|
||||
fragment@0 {
|
||||
target = <&parport0>;
|
||||
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
|
||||
data-gpios = <&gpio GPIOX_2 GPIO_ACTIVE_LOW>,
|
||||
<&gpio GPIOX_1 GPIO_ACTIVE_LOW>,
|
||||
<&gpio GPIOX_8 GPIO_ACTIVE_LOW>,
|
||||
<&gpio GPIOX_9 GPIO_ACTIVE_LOW>,
|
||||
<&gpio GPIOX_13 GPIO_ACTIVE_LOW>,
|
||||
<&gpio GPIOX_16 GPIO_ACTIVE_LOW>,
|
||||
<&gpio GPIOX_12 GPIO_ACTIVE_LOW>,
|
||||
<&gpio GPIOX_0 GPIO_ACTIVE_LOW>;
|
||||
|
||||
status-gpios = <&gpio GPIOA_13 GPIO_ACTIVE_LOW>,
|
||||
<&gpio GPIOX_3 GPIO_ACTIVE_LOW>,
|
||||
<&gpio GPIOX_4 GPIO_ACTIVE_LOW>,
|
||||
<&gpio GPIOX_7 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
};
|
||||
};
|
||||
@@ -0,0 +1,37 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
#include <dt-bindings/gpio/meson-g12a-gpio.h>
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
|
||||
/ {
|
||||
fragment@0 {
|
||||
target = <&parport1>;
|
||||
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
|
||||
data-gpios = <&gpio GPIOX_17 GPIO_ACTIVE_LOW>,
|
||||
<&gpio GPIOA_15 GPIO_ACTIVE_LOW>,
|
||||
<&gpio GPIOX_6 GPIO_ACTIVE_LOW>,
|
||||
<&gpio GPIOA_14 GPIO_ACTIVE_LOW>,
|
||||
<&gpio GPIOA_4 GPIO_ACTIVE_LOW>,
|
||||
<&gpio GPIOA_12 GPIO_ACTIVE_LOW>,
|
||||
<&gpio GPIOX_10 GPIO_ACTIVE_LOW>,
|
||||
<&gpio GPIOX_19 GPIO_ACTIVE_LOW>;
|
||||
|
||||
status-gpios = <&gpio GPIOX_11 GPIO_ACTIVE_LOW>,
|
||||
<&gpio GPIOX_14 GPIO_ACTIVE_LOW>,
|
||||
<&gpio GPIOX_15 GPIO_ACTIVE_LOW>,
|
||||
<&gpio GPIOX_5 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target = <&i2c3>;
|
||||
|
||||
__overlay__ {
|
||||
status = "disabled";
|
||||
};
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user