diff options
author | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2015-08-28 17:59:42 +0200 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2015-09-15 11:22:43 +0200 |
commit | 737a7c26a8917f4789884f728e66856a5d526556 (patch) | |
tree | cfe84e3a965d1aedc51d322a8236064a7b9c649a /arch/arm/boot/dts/tegra30-colibri.dtsi | |
parent | ARM: tegra: colibri: Add touch pen interrupt pin muxing (diff) | |
download | linux-737a7c26a8917f4789884f728e66856a5d526556.tar.xz linux-737a7c26a8917f4789884f728e66856a5d526556.zip |
ARM: tegra: colibri: Activate STMPE811 touch controller
Activate STMPE811 touch controller as found on Colibri T30 modules.
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'arch/arm/boot/dts/tegra30-colibri.dtsi')
-rw-r--r-- | arch/arm/boot/dts/tegra30-colibri.dtsi | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/tegra30-colibri.dtsi b/arch/arm/boot/dts/tegra30-colibri.dtsi index fba3d2a8b9fc..5f8ec5cafe9e 100644 --- a/arch/arm/boot/dts/tegra30-colibri.dtsi +++ b/arch/arm/boot/dts/tegra30-colibri.dtsi @@ -320,6 +320,46 @@ }; }; + /* STMPE811 touch screen controller */ + stmpe811@41 { + compatible = "st,stmpe811"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0x41>; + interrupts = <TEGRA_GPIO(V, 0) IRQ_TYPE_LEVEL_LOW>; + interrupt-parent = <&gpio>; + interrupt-controller; + id = <0>; + blocks = <0x5>; + irq-trigger = <0x1>; + + stmpe_touchscreen { + compatible = "st,stmpe-ts"; + reg = <0>; + /* 3.25 MHz ADC clock speed */ + st,adc-freq = <1>; + /* 8 sample average control */ + st,ave-ctrl = <3>; + /* 7 length fractional part in z */ + st,fraction-z = <7>; + /* + * 50 mA typical 80 mA max touchscreen drivers + * current limit value + */ + st,i-drive = <1>; + /* 12-bit ADC */ + st,mod-12b = <1>; + /* internal ADC reference */ + st,ref-sel = <0>; + /* ADC converstion time: 80 clocks */ + st,sample-time = <4>; + /* 1 ms panel driver settling time */ + st,settling = <3>; + /* 5 ms touch detect interrupt delay */ + st,touch-det-delay = <5>; + }; + }; + /* * LM95245 temperature sensor * Note: OVERT_N directly connected to PMIC PWRDN |