ARM: dts: omap3-gta04: add pulldown/up settings for twl4030 gpio
authorAndreas Kemnade <andreas@kemnade.info>
Mon, 24 Sep 2018 17:29:57 +0000 (19:29 +0200)
committerTony Lindgren <tony@atomide.com>
Mon, 24 Sep 2018 22:17:14 +0000 (15:17 -0700)
Pullup and down settings were missing, so add them to avoid
floating pins and make headset detection working.

Signed-off-by: Andreas Kemnade <andreas@kemnade.info>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/boot/dts/omap3-gta04.dtsi

index a3e38b3..d5fe553 100644 (file)
        status = "disabled";
 };
 
+#define BIT(x) (1 << (x))
+&twl_gpio {
+       /* pullups: BIT(2) */
+       ti,pullups = <BIT(2)>;
+       /*
+        * pulldowns:
+        * BIT(0),  BIT(1), BIT(6), BIT(7), BIT(8), BIT(13)
+        * BIT(15), BIT(16), BIT(17)
+        */
+       ti,pulldowns = <(BIT(0) | BIT(1) | BIT(6) | BIT(7) | BIT(8) |
+                        BIT(13) | BIT(15) | BIT(16) | BIT(17))>;
+};
+
 &twl_keypad {
        status = "disabled";
 };