]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM: dts: omap4-kc1: USB OTG support
authorPaul Kocialkowski <contact@paulk.fr>
Tue, 29 Mar 2016 19:28:25 +0000 (21:28 +0200)
committerTony Lindgren <tony@atomide.com>
Tue, 12 Apr 2016 21:32:02 +0000 (14:32 -0700)
This adds support for USB OTG on the Kindle Fire (first generation).

Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/boot/dts/omap4-kc1.dts

index 9fe4441b815c20873de0fa47217ffec3e46a6e3c..0d08f9fddd3e151dcd8014b6e3a29d528f81fea2 100644 (file)
                        OMAP4_IOPAD(0x084, PIN_INPUT_PULLUP | MUX_MODE1)        /* sdmmc2_cmd */
                >;
        };
+
+       usb_otg_hs_pins: pinmux_usb_otg_hs_pins {
+               pinctrl-single,pins = <
+                       OMAP4_IOPAD(0x194, PIN_OUTPUT_PULLDOWN | MUX_MODE0)     /* usba0_otg_ce */
+                       OMAP4_IOPAD(0x196, PIN_INPUT | MUX_MODE0)               /* usba0_otg_dp */
+                       OMAP4_IOPAD(0x198, PIN_INPUT | MUX_MODE0)               /* usba0_otg_dm */
+               >;
+       };
 };
 
 &uart3 {
        status = "disabled";
 };
 
+&usb_otg_hs {
+       pinctrl-names = "default";
+       pinctrl-0 = <&usb_otg_hs_pins>;
+
+       interface-type = <1>;
+       mode = <3>;
+       power = <50>;
+};
+
 #include "twl6030.dtsi"
 #include "twl6030_omap4.dtsi"
+
+&twl_usb_comparator {
+       usb-supply = <&vusb>;
+};