Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: stm32429i-eval: Add USB HS host mode support

This patch adds USB HS support in host mode only.
This port supports OTG mode, but the device more is not working
properly as of now.
Once the device mode fixed, the node will be updated to support OTG.

Signed-off-by: Maxime Coquelin <mcoquelin.stm32@gmail.com>

+46
+16
arch/arm/boot/dts/stm32429i-eval.dts
··· 81 81 gpios = <&gpiog 12 1>; 82 82 }; 83 83 }; 84 + 85 + usbotg_hs_phy: usbphy { 86 + #phy-cells = <0>; 87 + compatible = "usb-nop-xceiv"; 88 + clocks = <&rcc 0 30>; 89 + clock-names = "main_clk"; 90 + }; 84 91 }; 85 92 86 93 &clk_hse { ··· 96 89 97 90 &usart1 { 98 91 pinctrl-0 = <&usart1_pins_a>; 92 + pinctrl-names = "default"; 93 + status = "okay"; 94 + }; 95 + 96 + &usbotg_hs { 97 + dr_mode = "host"; 98 + phys = <&usbotg_hs_phy>; 99 + phy-names = "usb2-phy"; 100 + pinctrl-0 = <&usbotg_hs_pins_a>; 99 101 pinctrl-names = "default"; 100 102 status = "okay"; 101 103 };
+30
arch/arm/boot/dts/stm32f429.dtsi
··· 278 278 bias-disable; 279 279 }; 280 280 }; 281 + 282 + usbotg_hs_pins_a: usbotg_hs@0 { 283 + pins { 284 + pinmux = <STM32F429_PH4_FUNC_OTG_HS_ULPI_NXT>, 285 + <STM32F429_PI11_FUNC_OTG_HS_ULPI_DIR>, 286 + <STM32F429_PC0_FUNC_OTG_HS_ULPI_STP>, 287 + <STM32F429_PA5_FUNC_OTG_HS_ULPI_CK>, 288 + <STM32F429_PA3_FUNC_OTG_HS_ULPI_D0>, 289 + <STM32F429_PB0_FUNC_OTG_HS_ULPI_D1>, 290 + <STM32F429_PB1_FUNC_OTG_HS_ULPI_D2>, 291 + <STM32F429_PB10_FUNC_OTG_HS_ULPI_D3>, 292 + <STM32F429_PB11_FUNC_OTG_HS_ULPI_D4>, 293 + <STM32F429_PB12_FUNC_OTG_HS_ULPI_D5>, 294 + <STM32F429_PB13_FUNC_OTG_HS_ULPI_D6>, 295 + <STM32F429_PB5_FUNC_OTG_HS_ULPI_D7>; 296 + bias-disable; 297 + drive-push-pull; 298 + slew-rate = <2>; 299 + }; 300 + }; 281 301 }; 282 302 283 303 rcc: rcc@40023810 { ··· 336 316 clocks = <&rcc 0 22>; 337 317 #dma-cells = <4>; 338 318 st,mem2mem; 319 + }; 320 + 321 + usbotg_hs: usb@40040000 { 322 + compatible = "snps,dwc2"; 323 + dma-ranges; 324 + reg = <0x40040000 0x40000>; 325 + interrupts = <77>; 326 + clocks = <&rcc 0 29>; 327 + clock-names = "otg"; 328 + status = "disabled"; 339 329 }; 340 330 341 331 rng: rng@50060800 {