Skip to content

Commit

Permalink
ARM: dts: omap3-gta04: add pulldown/up settings for twl4030 gpio
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andreas Kemnade authored and Tony Lindgren committed Sep 24, 2018
1 parent 605cdd2 commit e4ab928
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions arch/arm/boot/dts/omap3-gta04.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -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";
};
Expand Down

0 comments on commit e4ab928

Please sign in to comment.