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

ARM: dts: r8a77470: Add HSUSB device nodes

Define the r8a77470 generic part of the HSUSB0/1 device nodes.

Currently the renesas_usbhs driver doesn't handle multiple phys and we
don't have a proper hardware to validate such driver changes.

So for hsusb1 it is assumed that usbphy0 will be enabled by either
channel0 host or device.

In future, if any boards support hsusb1, we will need to add multiple phy
support in the renesas_usbhs driver and override the board dts to enable
the same.

Signed-off-by: Biju Das <biju.das@bp.renesas.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>

authored by

Biju Das and committed by
Simon Horman
307ca5cf 034484c4

+35
+35
arch/arm/boot/dts/r8a77470.dtsi
··· 325 325 status = "disabled"; 326 326 }; 327 327 328 + hsusb0: hsusb@e6590000 { 329 + compatible = "renesas,usbhs-r8a77470", 330 + "renesas,rcar-gen2-usbhs"; 331 + reg = <0 0xe6590000 0 0x100>; 332 + interrupts = <GIC_SPI 107 IRQ_TYPE_LEVEL_HIGH>; 333 + clocks = <&cpg CPG_MOD 704>; 334 + dmas = <&usb_dmac00 0>, <&usb_dmac00 1>, 335 + <&usb_dmac10 0>, <&usb_dmac10 1>; 336 + dma-names = "ch0", "ch1", "ch2", "ch3"; 337 + renesas,buswait = <4>; 338 + phys = <&usb0 1>; 339 + phy-names = "usb"; 340 + power-domains = <&sysc R8A77470_PD_ALWAYS_ON>; 341 + resets = <&cpg 704>; 342 + status = "disabled"; 343 + }; 344 + 328 345 usbphy0: usb-phy@e6590100 { 329 346 compatible = "renesas,usb-phy-r8a77470", 330 347 "renesas,rcar-gen2-usb-phy"; ··· 358 341 reg = <0>; 359 342 #phy-cells = <1>; 360 343 }; 344 + }; 345 + 346 + hsusb1: hsusb@e6598000 { 347 + compatible = "renesas,usbhs-r8a77470", 348 + "renesas,rcar-gen2-usbhs"; 349 + reg = <0 0xe6598000 0 0x100>; 350 + interrupts = <GIC_SPI 291 IRQ_TYPE_LEVEL_HIGH>; 351 + clocks = <&cpg CPG_MOD 706>; 352 + dmas = <&usb_dmac01 0>, <&usb_dmac01 1>, 353 + <&usb_dmac11 0>, <&usb_dmac11 1>; 354 + dma-names = "ch0", "ch1", "ch2", "ch3"; 355 + renesas,buswait = <4>; 356 + /* We need to turn on usbphy0 to make usbphy1 to work */ 357 + phys = <&usb1 1>; 358 + phy-names = "usb"; 359 + power-domains = <&sysc R8A77470_PD_ALWAYS_ON>; 360 + resets = <&cpg 706>; 361 + status = "disabled"; 361 362 }; 362 363 363 364 usbphy1: usb-phy@e6598100 {