310-sunxi-h3-Sync-OTG-and-HCI-nodes-from-Linux-DT.patch 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. From 96c04aab58e351fa9ed7e95783018d6dbf60768f Mon Sep 17 00:00:00 2001
  2. From: Jun Nie <jun.nie@linaro.org>
  3. Date: Mon, 7 May 2018 13:03:40 +0530
  4. Subject: sunxi: h3: Sync OTG and HCI nodes from Linux DT
  5. Allwinner H3 have a dual-routed USB PHY0 -- routed to either OHCI/EHCI
  6. or MUSB controller.
  7. Signed-off-by: Jun Nie <jun.nie@linaro.org>
  8. Reviewed-by: Jagan Teki <jagan@openedev.com>
  9. Acked-by: Jun Nie <jun.nie@linaro.org>
  10. ---
  11. arch/arm/dts/sun8i-h3.dtsi | 32 ++++++++++++++++++++++++++++++++
  12. 1 file changed, 32 insertions(+)
  13. --- a/arch/arm/dts/sun8i-h3.dtsi
  14. +++ b/arch/arm/dts/sun8i-h3.dtsi
  15. @@ -219,6 +219,19 @@
  16. #size-cells = <0>;
  17. };
  18. + usb_otg: usb@1c19000 {
  19. + compatible = "allwinner,sun8i-h3-musb";
  20. + reg = <0x01c19000 0x400>;
  21. + clocks = <&ccu CLK_BUS_OTG>;
  22. + resets = <&ccu RST_BUS_OTG>;
  23. + interrupts = <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
  24. + interrupt-names = "mc";
  25. + phys = <&usbphy 0>;
  26. + phy-names = "usb";
  27. + extcon = <&usbphy 0>;
  28. + status = "disabled";
  29. + };
  30. +
  31. usbphy: phy@01c19400 {
  32. compatible = "allwinner,sun8i-h3-usb-phy";
  33. reg = <0x01c19400 0x2c>,
  34. @@ -251,6 +264,25 @@
  35. #phy-cells = <1>;
  36. };
  37. + ehci0: usb@1c1a000 {
  38. + compatible = "allwinner,sun8i-h3-ehci", "generic-ehci";
  39. + reg = <0x01c1a000 0x100>;
  40. + interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>;
  41. + clocks = <&ccu CLK_BUS_EHCI0>, <&ccu CLK_BUS_OHCI0>;
  42. + resets = <&ccu RST_BUS_EHCI0>, <&ccu RST_BUS_OHCI0>;
  43. + status = "disabled";
  44. + };
  45. +
  46. + ohci0: usb@1c1a400 {
  47. + compatible = "allwinner,sun8i-h3-ohci", "generic-ohci";
  48. + reg = <0x01c1a400 0x100>;
  49. + interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
  50. + clocks = <&ccu CLK_BUS_EHCI0>, <&ccu CLK_BUS_OHCI0>,
  51. + <&ccu CLK_USB_OHCI0>;
  52. + resets = <&ccu RST_BUS_EHCI0>, <&ccu RST_BUS_OHCI0>;
  53. + status = "disabled";
  54. + };
  55. +
  56. ehci1: usb@01c1b000 {
  57. compatible = "allwinner,sun8i-h3-ehci", "generic-ehci";
  58. reg = <0x01c1b000 0x100>;