dts: add touch screen dts config for CST226 [1/1]

PD#SWPL-8013

Problem:
separate dts config from driver

Solution:
separate dts config from driver

Verify:
verify by u202

Change-Id: I4de45ec213b86d12cdd9296f80de62f4f2dc6713
Signed-off-by: GongWei Chen <gongwei.chen@amlogic.com>
This commit is contained in:
Gongwei Chen
2019-05-07 18:59:02 +08:00
committed by Tao Zeng
parent 0bec908e12
commit 55f3adab83
13 changed files with 101 additions and 1 deletions

View File

@@ -0,0 +1,29 @@
* Neonode infrared touchscreen controller
Required properties:
- compatible: must be "hyn,cst226"
- reg: I2C address of the chip
- interrupts: interrupt to which the chip is connected
- reset-gpios: reset gpio the chip is connected to
- x-size: horizontal resolution of touchscreen
- y-size: vertical resolution of touchscreen
Optional properties:
- irq-gpios : interrupt gpio the chip is connected to
- vdd-supply: Regulator controlling the controller supply
Example:
i2c@00000000 {
/* ... */
hyn@1A {
compatible = "hyn,cst226";
status = "okay";
reg = <0x1a>;
reset-gpio = <&gpio GPIOA_5 0x00>;
irq-gpio = <&gpio GPIOA_6 0x00>;
};
/* ... */
};

View File

@@ -322,3 +322,4 @@ zii Zodiac Inflight Innovations
zte ZTE Corp.
zyxel ZyXEL Communications Corp.
rohm
hyn hyn

View File

@@ -14915,4 +14915,8 @@ F: arch/arm64/boot/dts/amlogic/sm1_s905d3_ac202*
AMLOGIC S905Y2 U223_LP DTS
M: Qingwei Xu <qingwei.xu@amlogic.com>
F: arm/boot/dts/amlogic/g12a_s905y2_u223_lp.dts
F: arm64/boot/dts/amlogic/g12a_s905y2_u223_lp.dts
F: arm64/boot/dts/amlogic/g12a_s905y2_u223_lp.dts
AMLOGIC HYN_CST2XX TOUCHSCREEN
M: XINLIANG ZHANG <xinliang.zhang@amlogic.com>
F: drivers/amlogic/input/touchscreen/hyn_cst2xx/*

View File

@@ -1029,6 +1029,14 @@
pinctrl-0=<&i2c3_master_pins2>;
clock-frequency = <100000>; /* default 100k */
hyn@1A {
compatible = "hyn,cst226";
status = "okay";
reg = <0x1a>;
reset-gpio = <&gpio GPIOA_5 0x00>;
irq-gpio = <&gpio GPIOA_6 0x00>;
};
/* for ref board */
ad82584f_62: ad82584f_62@62 {
compatible = "ESMT, ad82584f";

View File

@@ -873,6 +873,14 @@
pinctrl-0=<&i2c3_master_pins2>;
clock-frequency = <100000>; /* default 100k */
hyn@1A {
compatible = "hyn,cst226";
status = "okay";
reg = <0x1a>;
reset-gpio = <&gpio GPIOA_5 0x00>;
irq-gpio = <&gpio GPIOA_6 0x00>;
};
/* for ref board */
ad82584f_62: ad82584f_62@62 {
compatible = "ESMT, ad82584f";

View File

@@ -1092,6 +1092,14 @@
pinctrl-0=<&i2c3_master_pins2>;
clock-frequency = <100000>; /* default 100k */
hyn@1A {
compatible = "hyn,cst226";
status = "okay";
reg = <0x1a>;
reset-gpio = <&gpio GPIOA_5 0x00>;
irq-gpio = <&gpio GPIOA_6 0x00>;
};
/* for ref board */
ad82584f_62: ad82584f_62@62 {
compatible = "ESMT, ad82584f";

View File

@@ -1092,6 +1092,14 @@
pinctrl-0=<&i2c3_master_pins2>;
clock-frequency = <100000>; /* default 100k */
hyn@1A {
compatible = "hyn,cst226";
status = "okay";
reg = <0x1a>;
reset-gpio = <&gpio GPIOA_5 0x00>;
irq-gpio = <&gpio GPIOA_6 0x00>;
};
/* for ref board */
ad82584f_62: ad82584f_62@62 {
compatible = "ESMT, ad82584f";

View File

@@ -263,6 +263,7 @@ CONFIG_AMLOGIC_TOUCHSCREEN=y
CONFIG_AMLOGIC_TOUCHSCREEN_FTS=y
CONFIG_AMLOGIC_TOUCHSCREEN_GT1X=y
CONFIG_AMLOGIC_TOUCHSCREEN_GT9XX=y
CONFIG_AMLOGIC_TOUCHSCREEN_HYN_CST2XX=y
CONFIG_AMLOGIC_EFUSE=y
CONFIG_AMLOGIC_REBOOT=y
CONFIG_AMLOGIC_GX_REBOOT=y

View File

@@ -1028,6 +1028,14 @@
pinctrl-0=<&i2c3_master_pins2>;
clock-frequency = <100000>; /* default 100k */
hyn@1A {
compatible = "hyn,cst226";
status = "okay";
reg = <0x1a>;
reset-gpio = <&gpio GPIOA_5 0x00>;
irq-gpio = <&gpio GPIOA_6 0x00>;
};
/* for ref board */
ad82584f_62: ad82584f_62@62 {
compatible = "ESMT, ad82584f";

View File

@@ -867,6 +867,14 @@
pinctrl-0=<&i2c3_master_pins2>;
clock-frequency = <100000>; /* default 100k */
hyn@1A {
compatible = "hyn,cst226";
status = "okay";
reg = <0x1a>;
reset-gpio = <&gpio GPIOA_5 0x00>;
irq-gpio = <&gpio GPIOA_6 0x00>;
};
/* for ref board */
ad82584f_62: ad82584f_62@62 {
compatible = "ESMT, ad82584f";

View File

@@ -1091,6 +1091,14 @@
pinctrl-0=<&i2c3_master_pins2>;
clock-frequency = <100000>; /* default 100k */
hyn@1A {
compatible = "hyn,cst226";
status = "okay";
reg = <0x1a>;
reset-gpio = <&gpio GPIOA_5 0x00>;
irq-gpio = <&gpio GPIOA_6 0x00>;
};
/* for ref board */
ad82584f_62: ad82584f_62@62 {
compatible = "ESMT, ad82584f";

View File

@@ -1091,6 +1091,14 @@
pinctrl-0=<&i2c3_master_pins2>;
clock-frequency = <100000>; /* default 100k */
hyn@1A {
compatible = "hyn,cst226";
status = "okay";
reg = <0x1a>;
reset-gpio = <&gpio GPIOA_5 0x00>;
irq-gpio = <&gpio GPIOA_6 0x00>;
};
/* for ref board */
ad82584f_62: ad82584f_62@62 {
compatible = "ESMT, ad82584f";

View File

@@ -257,6 +257,7 @@ CONFIG_AMLOGIC_TOUCHSCREEN=y
CONFIG_AMLOGIC_TOUCHSCREEN_FTS=y
CONFIG_AMLOGIC_TOUCHSCREEN_GT1X=y
CONFIG_AMLOGIC_TOUCHSCREEN_GT9XX=y
CONFIG_AMLOGIC_TOUCHSCREEN_HYN_CST2XX=y
CONFIG_AMLOGIC_EFUSE=y
CONFIG_AMLOGIC_REBOOT=y
CONFIG_AMLOGIC_GX_REBOOT=y