Commit 179141ca authored by Oleksij Rempel's avatar Oleksij Rempel Committed by Shawn Guo

ARM: dts: imx6: skov: migrate to resistive-adc-touch

Start to use more generic resistive-adc-touch node. ti,tsc2046 is an ADC
controller used for resistive touchscreen. So, define it as ADC and
attach resistive-adc-touch to it.
Signed-off-by: default avatarOleksij Rempel <o.rempel@pengutronix.de>
Signed-off-by: default avatarShawn Guo <shawnguo@kernel.org>
parent fd2dd707
...@@ -2,35 +2,60 @@ ...@@ -2,35 +2,60 @@
// //
// Copyright (C) 2020 Pengutronix, Ulrich Oelmann <kernel@pengutronix.de> // Copyright (C) 2020 Pengutronix, Ulrich Oelmann <kernel@pengutronix.de>
/ {
touchscreen {
compatible = "resistive-adc-touch";
io-channels = <&adc_ts 1>, <&adc_ts 3>, <&adc_ts 4>, <&adc_ts 5>;
io-channel-names = "y", "z1", "z2", "x";
touchscreen-min-pressure = <65000>;
touchscreen-inverted-y;
touchscreen-swapped-x-y;
touchscreen-x-plate-ohms = <300>;
touchscreen-y-plate-ohms = <800>;
};
};
&ecspi4 { &ecspi4 {
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&pinctrl_ecspi4>; pinctrl-0 = <&pinctrl_ecspi4>;
cs-gpios = <&gpio3 20 GPIO_ACTIVE_LOW>; cs-gpios = <&gpio3 20 GPIO_ACTIVE_LOW>;
status = "okay"; status = "okay";
touchscreen@0 { adc_ts: adc@0 {
pinctrl-names = "default"; compatible = "ti,tsc2046e-adc";
pinctrl-0 = <&pinctrl_touch>;
compatible = "ti,tsc2046";
reg = <0>; reg = <0>;
pinctrl-0 = <&pinctrl_touch>;
pinctrl-names ="default";
spi-max-frequency = <1000000>; spi-max-frequency = <1000000>;
interrupts-extended = <&gpio3 19 IRQ_TYPE_LEVEL_LOW>; interrupts-extended = <&gpio3 19 IRQ_TYPE_LEVEL_LOW>;
vcc-supply = <&reg_3v3>; #io-channel-cells = <1>;
pendown-gpio = <&gpio3 19 GPIO_ACTIVE_LOW>;
ti,x-plate-ohms = /bits/ 16 <850>; #address-cells = <1>;
ti,y-plate-ohms = /bits/ 16 <295>; #size-cells = <0>;
ti,pressure-min = /bits/ 16 <2>;
ti,pressure-max = /bits/ 16 <1500>; channel@1 {
ti,vref-mv = /bits/ 16 <3300>; reg = <1>;
ti,settle-delay-usec = /bits/ 16 <15>; settling-time-us = <700>;
ti,vref-delay-usecs = /bits/ 16 <0>; oversampling-ratio = <5>;
ti,penirq-recheck-delay-usecs = /bits/ 16 <100>; };
ti,debounce-max = /bits/ 16 <100>;
ti,debounce-tol = /bits/ 16 <(~0)>; channel@3 {
ti,debounce-rep = /bits/ 16 <4>; reg = <3>;
touchscreen-swapped-x-y; settling-time-us = <700>;
touchscreen-inverted-y; oversampling-ratio = <5>;
wakeup-source; };
channel@4 {
reg = <4>;
settling-time-us = <700>;
oversampling-ratio = <5>;
};
channel@5 {
reg = <5>;
settling-time-us = <700>;
oversampling-ratio = <5>;
};
}; };
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment