summaryrefslogtreecommitdiffstats
path: root/arch/arm/boot
diff options
context:
space:
mode:
authorAndreas Kemnade <andreas@kemnade.info>2018-09-24 19:29:57 +0200
committerTony Lindgren <tony@atomide.com>2018-09-25 00:17:14 +0200
commite4ab928957a3173d5d8e7fc78df6a3a63be0f60d (patch)
treea22b5cfa253b18ec016116309e7893eb67dfd1e9 /arch/arm/boot
parentARM: dts: am335x-boneblack: add cec support (diff)
downloadlinux-e4ab928957a3173d5d8e7fc78df6a3a63be0f60d.tar.xz
linux-e4ab928957a3173d5d8e7fc78df6a3a63be0f60d.zip
ARM: dts: omap3-gta04: add pulldown/up settings for twl4030 gpio
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>
Diffstat (limited to 'arch/arm/boot')
-rw-r--r--arch/arm/boot/dts/omap3-gta04.dtsi13
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/omap3-gta04.dtsi b/arch/arm/boot/dts/omap3-gta04.dtsi
index a3e38b38d5cc..d5fe55392230 100644
--- a/arch/arm/boot/dts/omap3-gta04.dtsi
+++ b/arch/arm/boot/dts/omap3-gta04.dtsi
@@ -619,6 +619,19 @@
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";
};