Prevent the older s5p_gpio driver from probing when using upstream DTs
because of incompatibilities. pinctrl_exynos5250 driver should be used
instead which binds the s5p_gpio for gpio features but replaces pinctrl.

Signed-off-by: Lukas Timmermann <[email protected]>
---
 drivers/gpio/s5p_gpio.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/gpio/s5p_gpio.c b/drivers/gpio/s5p_gpio.c
index c072f146514..f32c5f7ae1a 100644
--- a/drivers/gpio/s5p_gpio.c
+++ b/drivers/gpio/s5p_gpio.c
@@ -353,7 +353,9 @@ static const struct udevice_id exynos_gpio_ids[] = {
        { .compatible = "samsung,s5pc110-pinctrl" },
        { .compatible = "samsung,exynos4210-pinctrl" },
        { .compatible = "samsung,exynos4x12-pinctrl" },
+#if IS_ENABLED(CONFIG_OF_UPSTREAM)
        { .compatible = "samsung,exynos5250-pinctrl" },
+#endif
        { .compatible = "samsung,exynos5420-pinctrl" },
        { .compatible = "samsung,exynos78x0-gpio" },
        { }

-- 
2.54.0

Reply via email to