Skip to content

Commit f8d76c2

Browse files
dtorBartosz Golaszewski
authored andcommitted
gpiolib: of: add polarity quirk for TSC2005
DTS for Nokia N900 incorrectly specifies "active high" polarity for the reset line, while the chip documentation actually specifies it as "active low". In the past the driver fudged gpiod API and inverted the logic internally, but it was changed in d0d8949. Fixes: d0d8949 ("Input: tsc2004/5 - switch to using generic device properties") Signed-off-by: Dmitry Torokhov <[email protected]> Acked-by: Linus Walleij <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bartosz Golaszewski <[email protected]>
1 parent f07798d commit f8d76c2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

drivers/gpio/gpiolib-of.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,14 @@ static void of_gpio_try_fixup_polarity(const struct device_node *np,
212212
* for the property.
213213
*/
214214
{ "lantiq,pci-xway", "gpio-reset", false },
215+
#endif
216+
#if IS_ENABLED(CONFIG_TOUCHSCREEN_TSC2005)
217+
/*
218+
* DTS for Nokia N900 incorrectly specified "active high"
219+
* polarity for the reset line, while the chip actually
220+
* treats it as "active low".
221+
*/
222+
{ "ti,tsc2005", "reset-gpios", false },
215223
#endif
216224
};
217225
unsigned int i;

0 commit comments

Comments
 (0)