mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
nanopi-m6: add GT911 touchscreen support to edge kernel
This commit is contained in:
committed by
Rolf Leggewie
parent
1523d9e9f8
commit
7a02c24af6
@@ -4,6 +4,7 @@
|
||||
#include <dt-bindings/pinctrl/rockchip.h>
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/soc/rockchip,vop2.h>
|
||||
#include <dt-bindings/interrupt-controller/irq.h>
|
||||
|
||||
/ {
|
||||
fragment@0 {
|
||||
@@ -104,6 +105,34 @@
|
||||
lcd_rst1_gpio: lcd-rst1-gpio {
|
||||
rockchip,pins = <4 RK_PA1 RK_FUNC_GPIO &pcfg_pull_none>;
|
||||
};
|
||||
|
||||
/omit-if-no-ref/
|
||||
touch_dsi1_gpio: touch-dsi1-gpio {
|
||||
rockchip,pins =
|
||||
<4 RK_PA0 RK_FUNC_GPIO &pcfg_pull_up>,
|
||||
<4 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
fragment@8 {
|
||||
target = <&i2c5>;
|
||||
|
||||
__overlay__ {
|
||||
clock-frequency = <200000>;
|
||||
pinctrl-0 = <&i2c5m2_xfer>;
|
||||
status = "okay";
|
||||
|
||||
touchscreen@14 {
|
||||
compatible = "goodix,gt911";
|
||||
reg = <0x14>;
|
||||
interrupt-parent = <&gpio4>;
|
||||
interrupts = <RK_PA0 IRQ_TYPE_LEVEL_LOW>;
|
||||
irq-gpios = <&gpio4 RK_PA0 GPIO_ACTIVE_HIGH>;
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&touch_dsi1_gpio>;
|
||||
reset-gpios = <&gpio4 RK_PA2 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user