ARM: dts: am437x: cm-t43: add USB support
authorNikita Kiryanov <nikita@compulab.co.il>
Tue, 1 Dec 2015 13:55:02 +0000 (15:55 +0200)
committerTony Lindgren <tony@atomide.com>
Thu, 3 Dec 2015 16:12:58 +0000 (08:12 -0800)
Add USB support for CompuLab sbc-t43 single board computer,
defaulting to host mode.

Signed-off-by: Nikita Kiryanov <nikita@compulab.co.il>
Cc: Tony Lindgren <tony@atomide.com>
Cc: Benoit Cousson <bcousson@baylibre.com>
Cc: Rob Herring <robh@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Pawel Moll <pawel.moll@arm.com>
Cc: Igor Grinberg <grinberg@compulab.co.il>
Cc: Dmitry Lifshitz <lifshitz@compulab.co.il>
Cc: Ian Campbell <ijc+devicetree@hellion.org.uk>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/boot/dts/am437x-cm-t43.dts
arch/arm/boot/dts/am437x-sbc-t43.dts

index fd97a892c7d5ee78f510588704c68d059913efb0..a2893c6950d1ef2ac6b6cbcd9ed31966279bf807 100644 (file)
        dual_emac_res_vlan = <2>;
 };
 
+&dwc3_1 {
+       status = "okay";
+};
+
+&usb2_phy1 {
+       status = "okay";
+};
+
+&usb1 {
+       dr_mode = "host";
+       status = "okay";
+};
+
+&dwc3_2 {
+       status = "okay";
+};
+
+&usb2_phy2 {
+       status = "okay";
+};
+
+&usb2 {
+       dr_mode = "host";
+       status = "okay";
+       interrupts = <GIC_SPI 174 IRQ_TYPE_LEVEL_HIGH>,
+                    <GIC_SPI 174 IRQ_TYPE_LEVEL_HIGH>,
+                    <GIC_SPI 178 IRQ_TYPE_LEVEL_HIGH>;
+       interrupt-names = "peripheral", "host", "otg";
+};
+
 &elm {
        status = "okay";
 };
index 6ca22b76d1bdbdb8744a57b54ab87da7d54414a9..3fc824a5b13ca2352f267c27fed259a7a0a3e98e 100644 (file)
                        AM4372_IOPAD(0x97c, PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE3)  /* uart1_rtsn.i2c2_scl */
                >;
        };
+
+       usb2_phy1_default: usb2_phy1_default {
+               pinctrl-single,pins = <
+                       AM4372_IOPAD(0xac0, DS0_PULL_UP_DOWN_EN | PIN_INPUT_PULLDOWN | MUX_MODE0)
+               >;
+       };
+
+       usb2_phy2_default: usb2_phy2_default {
+               pinctrl-single,pins = <
+                       AM4372_IOPAD(0xac4, DS0_PULL_UP_DOWN_EN | PIN_INPUT_PULLDOWN | MUX_MODE0)
+               >;
+       };
 };
 
 &i2c1 {
        pinctrl-names = "default";
        pinctrl-0 = <&uart0_pins_default>;
 };
+
+&dwc3_1 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&usb2_phy1_default>;
+};
+
+&dwc3_2 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&usb2_phy2_default>;
+};