mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 04:10:18 +09:00
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:
@@ -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>;
|
||||
};
|
||||
|
||||
/* ... */
|
||||
};
|
||||
@@ -322,3 +322,4 @@ zii Zodiac Inflight Innovations
|
||||
zte ZTE Corp.
|
||||
zyxel ZyXEL Communications Corp.
|
||||
rohm
|
||||
hyn hyn
|
||||
|
||||
@@ -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/*
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user