Commit 4e310626 authored by Peng Fan's avatar Peng Fan Committed by Bartosz Golaszewski
Browse files

gpiolib: of: Add polarity quirk for s5m8767



This is prepare patch for switching s5m8767 regulator driver to
use GPIO descriptor. DTS for exynos5250 spring incorrectly specifies
"active low" polarity for the DVS and DS line. But per datasheet,
they are actually active high. So add polarity quirk for it.

Signed-off-by: default avatarPeng Fan <peng.fan@nxp.com>
Reviewed-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20250327004945.563765-1-peng.fan@oss.nxp.com


Signed-off-by: default avatarBartosz Golaszewski <bartosz.golaszewski@linaro.org>
parent 0af2f6be
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -222,6 +222,15 @@ static void of_gpio_try_fixup_polarity(const struct device_node *np,
		 */
		{ "lantiq,pci-xway",	"gpio-reset",	false },
#endif
#if IS_ENABLED(CONFIG_REGULATOR_S5M8767)
		/*
		 * According to S5M8767, the DVS and DS pin are
		 * active-high signals. However, exynos5250-spring.dts use
		 * active-low setting.
		 */
		{ "samsung,s5m8767-pmic", "s5m8767,pmic-buck-dvs-gpios", true },
		{ "samsung,s5m8767-pmic", "s5m8767,pmic-buck-ds-gpios", true },
#endif
#if IS_ENABLED(CONFIG_TOUCHSCREEN_TSC2005)
		/*
		 * DTS for Nokia N900 incorrectly specified "active high"