OSDN Git Service

ARM: dts: stm32: Enable USB HS in FS mode (embedded phy) on stm32f429-disco
authorBruno Herrera <bruherrera@gmail.com>
Wed, 1 Feb 2017 01:25:00 +0000 (02:25 +0100)
committerAlexandre TORGUE <alexandre.torgue@st.com>
Mon, 3 Apr 2017 08:28:18 +0000 (10:28 +0200)
This patch enables USB HS working in FS mode on stm32f429-disco
with 5V VBUS enable.

Signed-off-by: Bruno Herrera <bruherrera@gmail.com>
Signed-off-by: Alexandre TORGUE <alexandre.torgue@st.com>
arch/arm/boot/dts/stm32f429-disco.dts

index 9222b9f..191fa50 100644 (file)
                        gpios = <&gpioa 0 0>;
                };
        };
+
+       /* This turns on vbus for otg for host mode (dwc2) */
+       vcc5v_otg: vcc5v-otg-regulator {
+               compatible = "regulator-fixed";
+               gpio = <&gpioc 4 0>;
+               regulator-name = "vcc5_host1";
+               regulator-always-on;
+       };
 };
 
 &clk_hse {
        pinctrl-names = "default";
        status = "okay";
 };
+
+&usbotg_hs {
+       compatible = "st,stm32f4x9-fsotg";
+       dr_mode = "host";
+       pinctrl-0 = <&usbotg_fs_pins_b>;
+       pinctrl-names = "default";
+       status = "okay";
+};