133-dt-sun8i-add-usbphy-usbhost-ctrl-nodes.patch 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. From 5971a2f283d21eab36d7de24d35301f081f83418 Mon Sep 17 00:00:00 2001
  2. From: Reinder de Haan <patchesrdh@mveas.com>
  3. Date: Tue, 3 Nov 2015 15:14:20 +0100
  4. Subject: [PATCH] ARM: dts: sun8i: Add usbphy and usb host controller nodes
  5. Add nodes describing the H3's usbphy and usb host controller nodes.
  6. Signed-off-by: Reinder de Haan <patchesrdh@mveas.com>
  7. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
  8. ---
  9. arch/arm/boot/dts/sun8i-h3.dtsi | 101 ++++++++++++++++++++++++++++++++++++++++
  10. 1 file changed, 101 insertions(+)
  11. --- a/arch/arm/boot/dts/sun8i-h3.dtsi
  12. +++ b/arch/arm/boot/dts/sun8i-h3.dtsi
  13. @@ -362,6 +362,107 @@
  14. #size-cells = <0>;
  15. };
  16. + usbphy: phy@01c19400 {
  17. + compatible = "allwinner,sun8i-h3-usb-phy";
  18. + reg = <0x01c19400 0x2c>,
  19. + <0x01c1a800 0x4>,
  20. + <0x01c1b800 0x4>,
  21. + <0x01c1c800 0x4>,
  22. + <0x01c1d800 0x4>;
  23. + reg-names = "phy_ctrl",
  24. + "pmu0",
  25. + "pmu1",
  26. + "pmu2",
  27. + "pmu3";
  28. + clocks = <&usb_clk 8>,
  29. + <&usb_clk 9>,
  30. + <&usb_clk 10>,
  31. + <&usb_clk 11>;
  32. + clock-names = "usb0_phy",
  33. + "usb1_phy",
  34. + "usb2_phy",
  35. + "usb3_phy";
  36. + resets = <&usb_clk 0>,
  37. + <&usb_clk 1>,
  38. + <&usb_clk 2>,
  39. + <&usb_clk 3>;
  40. + reset-names = "usb0_reset",
  41. + "usb1_reset",
  42. + "usb2_reset",
  43. + "usb3_reset";
  44. + status = "disabled";
  45. + #phy-cells = <1>;
  46. + };
  47. +
  48. + ehci1: usb@01c1b000 {
  49. + compatible = "allwinner,sun8i-h3-ehci", "generic-ehci";
  50. + reg = <0x01c1b000 0x100>;
  51. + interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>;
  52. + clocks = <&bus_gates 25>, <&bus_gates 29>;
  53. + resets = <&ahb_rst 25>, <&ahb_rst 29>;
  54. + phys = <&usbphy 1>;
  55. + phy-names = "usb";
  56. + status = "disabled";
  57. + };
  58. +
  59. + ohci1: usb@01c1b400 {
  60. + compatible = "allwinner,sun8i-h3-ohci", "generic-ohci";
  61. + reg = <0x01c1b400 0x100>;
  62. + interrupts = <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>;
  63. + clocks = <&bus_gates 29>, <&bus_gates 25>,
  64. + <&usb_clk 17>;
  65. + resets = <&ahb_rst 29>, <&ahb_rst 25>;
  66. + phys = <&usbphy 1>;
  67. + phy-names = "usb";
  68. + status = "disabled";
  69. + };
  70. +
  71. + ehci2: usb@01c1c000 {
  72. + compatible = "allwinner,sun8i-h3-ehci", "generic-ehci";
  73. + reg = <0x01c1c000 0x100>;
  74. + interrupts = <GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>;
  75. + clocks = <&bus_gates 26>, <&bus_gates 30>;
  76. + resets = <&ahb_rst 26>, <&ahb_rst 30>;
  77. + phys = <&usbphy 2>;
  78. + phy-names = "usb";
  79. + status = "disabled";
  80. + };
  81. +
  82. + ohci2: usb@01c1c400 {
  83. + compatible = "allwinner,sun8i-h3-ohci", "generic-ohci";
  84. + reg = <0x01c1c400 0x100>;
  85. + interrupts = <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>;
  86. + clocks = <&bus_gates 30>, <&bus_gates 26>,
  87. + <&usb_clk 18>;
  88. + resets = <&ahb_rst 30>, <&ahb_rst 26>;
  89. + phys = <&usbphy 2>;
  90. + phy-names = "usb";
  91. + status = "disabled";
  92. + };
  93. +
  94. + ehci3: usb@01c1d000 {
  95. + compatible = "allwinner,sun8i-h3-ehci", "generic-ehci";
  96. + reg = <0x01c1d000 0x100>;
  97. + interrupts = <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>;
  98. + clocks = <&bus_gates 27>, <&bus_gates 31>;
  99. + resets = <&ahb_rst 27>, <&ahb_rst 31>;
  100. + phys = <&usbphy 3>;
  101. + phy-names = "usb";
  102. + status = "disabled";
  103. + };
  104. +
  105. + ohci3: usb@01c1d400 {
  106. + compatible = "allwinner,sun8i-h3-ohci", "generic-ohci";
  107. + reg = <0x01c1d400 0x100>;
  108. + interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>;
  109. + clocks = <&bus_gates 31>, <&bus_gates 27>,
  110. + <&usb_clk 19>;
  111. + resets = <&ahb_rst 31>, <&ahb_rst 27>;
  112. + phys = <&usbphy 3>;
  113. + phy-names = "usb";
  114. + status = "disabled";
  115. + };
  116. +
  117. pio: pinctrl@01c20800 {
  118. compatible = "allwinner,sun8i-h3-pinctrl";
  119. reg = <0x01c20800 0x400>;