Commit d6e54108 authored by Linus Walleij's avatar Linus Walleij Committed by sanglipeng
Browse files

ARM: dts: Fix erroneous ADS touchscreen polarities

stable inclusion
from stable-v5.10.186
commit 32134e7a0f218f30b89ba2d3ea29a637722ac507
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8J4KH

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=32134e7a0f218f30b89ba2d3ea29a637722ac507



--------------------------------

[ Upstream commit 4a672d50 ]

Several device tree files get the polarity of the pendown-gpios
wrong: this signal is active low. Fix up all incorrect flags, so
that operating systems can rely on the flag being correctly set.

Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20230510105156.1134320-1-linus.walleij@linaro.org


Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent c28149a4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -527,7 +527,7 @@

		interrupt-parent = <&gpio1>;
		interrupts = <31 0>;
		pendown-gpio = <&gpio1 31 0>;
		pendown-gpio = <&gpio1 31 GPIO_ACTIVE_LOW>;


		ti,x-min = /bits/ 16 <0x0>;
+1 −1
Original line number Diff line number Diff line
@@ -156,7 +156,7 @@
					compatible = "ti,ads7843";
					interrupts-extended = <&pioC 2 IRQ_TYPE_EDGE_BOTH>;
					spi-max-frequency = <3000000>;
					pendown-gpio = <&pioC 2 GPIO_ACTIVE_HIGH>;
					pendown-gpio = <&pioC 2 GPIO_ACTIVE_LOW>;

					ti,x-min = /bits/ 16 <150>;
					ti,x-max = /bits/ 16 <3830>;
+1 −1
Original line number Diff line number Diff line
@@ -64,7 +64,7 @@
		interrupt-parent = <&gpio2>;
		interrupts = <7 0>;
		spi-max-frequency = <1000000>;
		pendown-gpio = <&gpio2 7 0>;
		pendown-gpio = <&gpio2 7 GPIO_ACTIVE_LOW>;
		vcc-supply = <&reg_3p3v>;
		ti,x-min = /bits/ 16 <0>;
		ti,x-max = /bits/ 16 <4095>;
+1 −1
Original line number Diff line number Diff line
@@ -198,7 +198,7 @@
		pinctrl-0 = <&pinctrl_tsc2046_pendown>;
		interrupt-parent = <&gpio2>;
		interrupts = <29 0>;
		pendown-gpio = <&gpio2 29 GPIO_ACTIVE_HIGH>;
		pendown-gpio = <&gpio2 29 GPIO_ACTIVE_LOW>;
		touchscreen-max-pressure = <255>;
		wakeup-source;
	};
+1 −1
Original line number Diff line number Diff line
@@ -227,7 +227,7 @@

		interrupt-parent = <&gpio2>;
		interrupts = <25 0>;		/* gpio_57 */
		pendown-gpio = <&gpio2 25 GPIO_ACTIVE_HIGH>;
		pendown-gpio = <&gpio2 25 GPIO_ACTIVE_LOW>;

		ti,x-min = /bits/ 16 <0x0>;
		ti,x-max = /bits/ 16 <0x0fff>;
Loading