适配GT911触摸
This commit is contained in:
+23
@@ -0,0 +1,23 @@
|
||||
// SPDX-License-Identifier: GPL-2.0
|
||||
/* BPI-M2C seven-inch touch panel: Goodix GT911 on AP I2C2. */
|
||||
|
||||
&i2c2 {
|
||||
status = "okay";
|
||||
clock-frequency = <400000>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
gt911: touchscreen@14 {
|
||||
compatible = "goodix,gt911";
|
||||
reg = <0x14>;
|
||||
status = "okay";
|
||||
|
||||
interrupt-parent = <&ap_gpio>;
|
||||
interrupts = <13 IRQ_TYPE_EDGE_FALLING>;
|
||||
irq-gpios = <&ap_gpio 13 GPIO_ACTIVE_HIGH>;
|
||||
reset-gpios = <&ap_gpio 14 GPIO_ACTIVE_HIGH>;
|
||||
|
||||
touchscreen-size-x = <800>;
|
||||
touchscreen-size-y = <1280>;
|
||||
};
|
||||
};
|
||||
+1
-1
@@ -9,7 +9,7 @@
|
||||
//#include "lcd/lcd_nt36672e_truly_mipi_fhd_nodsc.dtsi"
|
||||
#include "lcd/lcd_lt8912b_mipi_hdmi_1080p.dtsi"
|
||||
#include "lcd/lcd_jd9365_mipi_wxga.dtsi"
|
||||
#include "tp/ums9620-tp.dtsi"
|
||||
#include "tp/uis7885-2h10-gt911.dtsi"
|
||||
#include <dt-bindings/mfd/sprd,ump9620-regs.h>
|
||||
#include <dt-bindings/mfd/sprd,ump9620-mask.h>
|
||||
/ {
|
||||
|
||||
+1
-1
@@ -2233,7 +2233,7 @@ CONFIG_TOUCHSCREEN_PROPERTIES=y
|
||||
# CONFIG_TOUCHSCREEN_EGALAX_SERIAL is not set
|
||||
# CONFIG_TOUCHSCREEN_EXC3000 is not set
|
||||
# CONFIG_TOUCHSCREEN_FUJITSU is not set
|
||||
# CONFIG_TOUCHSCREEN_GOODIX is not set
|
||||
CONFIG_TOUCHSCREEN_GOODIX=y
|
||||
# CONFIG_TOUCHSCREEN_HIDEEP is not set
|
||||
# CONFIG_TOUCHSCREEN_ILI210X is not set
|
||||
# CONFIG_TOUCHSCREEN_S6SY761 is not set
|
||||
|
||||
+1
-1
@@ -2233,7 +2233,7 @@ CONFIG_TOUCHSCREEN_PROPERTIES=y
|
||||
# CONFIG_TOUCHSCREEN_EGALAX_SERIAL is not set
|
||||
# CONFIG_TOUCHSCREEN_EXC3000 is not set
|
||||
# CONFIG_TOUCHSCREEN_FUJITSU is not set
|
||||
# CONFIG_TOUCHSCREEN_GOODIX is not set
|
||||
CONFIG_TOUCHSCREEN_GOODIX=y
|
||||
# CONFIG_TOUCHSCREEN_HIDEEP is not set
|
||||
# CONFIG_TOUCHSCREEN_ILI210X is not set
|
||||
# CONFIG_TOUCHSCREEN_S6SY761 is not set
|
||||
|
||||
Reference in New Issue
Block a user