diff options
author | Tony Lindgren <tony@atomide.com> | 2016-09-10 00:04:28 +0300 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2016-09-14 00:57:12 +0300 |
commit | 952a5db0c0f8ddf9776c84e818769f5c6e97ec38 (patch) | |
tree | d2ae8b32f9868830ba0d7a2330498e161f62b28f /arch/arm/boot/dts/omap5-board-common.dtsi | |
parent | 08f9268b2a2e16ad89187a49ac06bfc7e1dc36a6 (diff) | |
download | linux-952a5db0c0f8ddf9776c84e818769f5c6e97ec38.tar.xz |
ARM: dts: Configure omap5 OTG ID pin
The ID pin GPIO comes from the PMIC. Let's configure it as a GPIO
for the driver to use, and also make sure the PMIC GPIO pin muxing
is correct. The PMIC pad1 and 2 values for omap5-uevm and igepv5 are
0x5a and 0x1b, we only need to clear bit 2 in pad1 register to make
the ID pin GPIO work.
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/boot/dts/omap5-board-common.dtsi')
-rw-r--r-- | arch/arm/boot/dts/omap5-board-common.dtsi | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/omap5-board-common.dtsi b/arch/arm/boot/dts/omap5-board-common.dtsi index cb3247f19b9f..c61eb2063be8 100644 --- a/arch/arm/boot/dts/omap5-board-common.dtsi +++ b/arch/arm/boot/dts/omap5-board-common.dtsi @@ -393,14 +393,23 @@ interrupt-controller; #interrupt-cells = <2>; ti,system-power-controller; + ti,mux-pad1 = <0xa1>; + ti,mux-pad2 = <0x1b>; pinctrl-names = "default"; pinctrl-0 = <&palmas_sys_nirq_pins &palmas_msecure_pins>; + palmas_gpio: gpio { + compatible = "ti,palmas-gpio"; + gpio-controller; + #gpio-cells = <2>; + }; + extcon_usb3: palmas_usb { compatible = "ti,palmas-usb-vid"; ti,enable-vbus-detection; ti,enable-id-detection; ti,wakeup; + id-gpios = <&palmas_gpio 0 GPIO_ACTIVE_HIGH>; }; clk32kgaudio: palmas_clk32k@1 { |