ARM: dts: stm32: Enable USB HS on stm32746g-eval
authorAmelie Delaunay <amelie.delaunay@st.com>
Mon, 28 Aug 2017 14:20:00 +0000 (16:20 +0200)
committerAlexandre Torgue <alexandre.torgue@st.com>
Mon, 16 Oct 2017 12:15:08 +0000 (14:15 +0200)
This patch enables USB HS on stm32746g-eval (Host mode).

Signed-off-by: Amelie Delaunay <amelie.delaunay@st.com>
Signed-off-by: Alexandre Torgue <alexandre.torgue@st.com>
arch/arm/boot/dts/stm32746g-eval.dts

index f83858e..2d4e717 100644 (file)
                        gpios = <&gpioc 13 0>;
                };
        };
                        gpios = <&gpioc 13 0>;
                };
        };
+
+       usbotg_hs_phy: usb-phy {
+               #phy-cells = <0>;
+               compatible = "usb-nop-xceiv";
+               clocks = <&rcc 0 STM32F7_AHB1_CLOCK(OTGHSULPI)>;
+               clock-names = "main_clk";
+       };
 };
 
 &clk_hse {
 };
 
 &clk_hse {
        pinctrl-names = "default";
        status = "okay";
 };
        pinctrl-names = "default";
        status = "okay";
 };
+
+&usbotg_hs {
+       dr_mode = "host";
+       phys = <&usbotg_hs_phy>;
+       phy-names = "usb2-phy";
+       pinctrl-0 = <&usbotg_hs_pins_a>;
+       pinctrl-names = "default";
+       status = "okay";
+};