diff options
author | Dmitry Lifshitz <lifshitz@compulab.co.il> | 2015-12-01 19:03:11 +0100 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2015-12-03 17:19:44 +0100 |
commit | 2d47fc3b9801332a5110c363c2880d78826c668a (patch) | |
tree | 1c8b415c5794b9931c607637dd7659e4bef7b173 /arch/arm/boot/dts/am57xx-cl-som-am57x.dts | |
parent | ARM: dts: am57xx: cl-som-am57x: add USB support (diff) | |
download | linux-2d47fc3b9801332a5110c363c2880d78826c668a.tar.xz linux-2d47fc3b9801332a5110c363c2880d78826c668a.zip |
ARM: dts: am57xx: cl-som-am57x: add touchscreen support
Add ADS7846 touchscreen support.
Signed-off-by: Dmitry Lifshitz <lifshitz@compulab.co.il>
Acked-by: Igor Grinberg <grinberg@compulab.co.il>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/boot/dts/am57xx-cl-som-am57x.dts')
-rw-r--r-- | arch/arm/boot/dts/am57xx-cl-som-am57x.dts | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/am57xx-cl-som-am57x.dts b/arch/arm/boot/dts/am57xx-cl-som-am57x.dts index c603136ee0a0..a75c382dde78 100644 --- a/arch/arm/boot/dts/am57xx-cl-som-am57x.dts +++ b/arch/arm/boot/dts/am57xx-cl-som-am57x.dts @@ -43,6 +43,13 @@ regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; }; + + ads7846reg: fixedregulator-ads7846-reg { + compatible = "regulator-fixed"; + regulator-name = "ads7846-reg"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + }; }; &dra7_pmx_core { @@ -183,6 +190,12 @@ DRA7XX_CORE_IOPAD(0x3594, PIN_INPUT | MUX_MODE15) >; }; + + ads7846_pins: pinmux_ads7846_pins { + pinctrl-single,pins = < + DRA7XX_CORE_IOPAD(0x3464, PIN_INPUT_PULLDOWN | MUX_MODE14) /* gpmc_a9.gpio1_31 */ + >; + }; }; &i2c1 { @@ -451,6 +464,37 @@ reg = <0x100000 0x0>; }; }; + + /* touch controller */ + ads7846@0 { + pinctrl-names = "default"; + pinctrl-0 = <&ads7846_pins>; + + compatible = "ti,ads7846"; + vcc-supply = <&ads7846reg>; + + reg = <1>; /* CS1 */ + spi-max-frequency = <1500000>; + + interrupt-parent = <&gpio1>; + interrupts = <31 0>; + pendown-gpio = <&gpio1 31 0>; + + + ti,x-min = /bits/ 16 <0x0>; + ti,x-max = /bits/ 16 <0x0fff>; + ti,y-min = /bits/ 16 <0x0>; + ti,y-max = /bits/ 16 <0x0fff>; + + ti,x-plate-ohms = /bits/ 16 <180>; + ti,pressure-max = /bits/ 16 <255>; + + ti,debounce-max = /bits/ 16 <30>; + ti,debounce-tol = /bits/ 16 <10>; + ti,debounce-rep = /bits/ 16 <1>; + + linux,wakeup; + }; }; &mac { |