dts: add touch screen dts config for CST226 [1/1]
authorGongwei Chen <gongwei.chen@amlogic.com>
Tue, 7 May 2019 10:59:02 +0000 (18:59 +0800)
committerTao Zeng <tao.zeng@amlogic.com>
Fri, 10 May 2019 09:37:32 +0000 (02:37 -0700)
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>
13 files changed:
Documentation/devicetree/bindings/input/touchscreen/hyn,cst226.txt [new file with mode: 0644]
Documentation/devicetree/bindings/vendor-prefixes.txt
MAINTAINERS
arch/arm/boot/dts/amlogic/g12a_s905d2_u202.dts
arch/arm/boot/dts/amlogic/g12a_s905d2_u202_1g.dts
arch/arm/boot/dts/amlogic/sm1_s905d3_ac202.dts
arch/arm/boot/dts/amlogic/sm1_s905d3_ac202_1g.dts
arch/arm/configs/meson64_a32_defconfig
arch/arm64/boot/dts/amlogic/g12a_s905d2_u202.dts
arch/arm64/boot/dts/amlogic/g12a_s905d2_u202_1g.dts
arch/arm64/boot/dts/amlogic/sm1_s905d3_ac202.dts
arch/arm64/boot/dts/amlogic/sm1_s905d3_ac202_1g.dts
arch/arm64/configs/meson64_defconfig

diff --git a/Documentation/devicetree/bindings/input/touchscreen/hyn,cst226.txt b/Documentation/devicetree/bindings/input/touchscreen/hyn,cst226.txt
new file mode 100644 (file)
index 0000000..76425a6
--- /dev/null
@@ -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>;
+       };
+
+               /* ... */
+       };
index 3e09d25..8a410b8 100644 (file)
@@ -322,3 +322,4 @@ zii Zodiac Inflight Innovations
 zte    ZTE Corp.
 zyxel  ZyXEL Communications Corp.
 rohm
+hyn    hyn
index 55d1ae1..5d6b998 100644 (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
\ No newline at end of file
+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/*
index ec91db2..89cddc8 100644 (file)
        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";
index 91895f5..89f10e6 100644 (file)
        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";
index acd77ac..b4c97f4 100644 (file)
        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";
index e8ffe1d..1fbfb81 100644 (file)
        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";
index 9fb0bc0..457821a 100644 (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
index e6aa019..0cf0177 100644 (file)
        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";
index 781463b..84d3d5b 100644 (file)
        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";
index 04d6cad..e6c7d24 100644 (file)
        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";
index 7314024..ea75088 100644 (file)
        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";
index 9f91641..eefdff9 100644 (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