046-0003-ARM-BCM5301X-Specify-USB-controllers-in-DT.patch 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. From 45d2567b4b80a3f267502419aaad3d74b745dae7 Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
  3. Date: Wed, 7 Dec 2016 08:56:52 +0100
  4. Subject: [PATCH 3/6] ARM: BCM5301X: Specify USB controllers in DT
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. There are 3 separated controllers, one per USB /standard/. With PHY
  9. drivers in place they can be simply supported with generic drivers.
  10. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
  11. Reviewed-by: Ray Jui <ray.jui@broadcom.com>
  12. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
  13. ---
  14. arch/arm/boot/dts/bcm5301x.dtsi | 33 ++++++++++++++++++++++++++++++++-
  15. 1 file changed, 32 insertions(+), 1 deletion(-)
  16. --- a/arch/arm/boot/dts/bcm5301x.dtsi
  17. +++ b/arch/arm/boot/dts/bcm5301x.dtsi
  18. @@ -248,8 +248,26 @@
  19. #address-cells = <1>;
  20. #size-cells = <1>;
  21. + ranges;
  22. - phys = <&usb2_phy>;
  23. + interrupt-parent = <&gic>;
  24. +
  25. + ehci: ehci@21000 {
  26. + #usb-cells = <0>;
  27. +
  28. + compatible = "generic-ehci";
  29. + reg = <0x00021000 0x1000>;
  30. + interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>;
  31. + phys = <&usb2_phy>;
  32. + };
  33. +
  34. + ohci: ohci@22000 {
  35. + #usb-cells = <0>;
  36. +
  37. + compatible = "generic-ohci";
  38. + reg = <0x00022000 0x1000>;
  39. + interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>;
  40. + };
  41. };
  42. usb3: usb3@23000 {
  43. @@ -257,6 +275,19 @@
  44. #address-cells = <1>;
  45. #size-cells = <1>;
  46. + ranges;
  47. +
  48. + interrupt-parent = <&gic>;
  49. +
  50. + xhci: xhci@23000 {
  51. + #usb-cells = <0>;
  52. +
  53. + compatible = "generic-xhci";
  54. + reg = <0x00023000 0x1000>;
  55. + interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>;
  56. + phys = <&usb3_phy>;
  57. + phy-names = "usb";
  58. + };
  59. };
  60. spi@29000 {