165-dt-sun7i-add-usb-host-to-boards.patch 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. From 56de1b69bf6782338193e373cee06fff252b31da Mon Sep 17 00:00:00 2001
  2. From: Hans de Goede <hdegoede@redhat.com>
  3. Date: Tue, 17 Dec 2013 23:04:57 +0100
  4. Subject: [PATCH] ARM: sun7i: dt: Add USB host nodes to cubietruck dts
  5. Add nodes for the usb-phy and ehci- and ohci-usb-host controllers.
  6. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
  7. ---
  8. arch/arm/boot/dts/sun7i-a20-cubietruck.dts | 30 ++++++++++++++++++++++++++++++
  9. 1 file changed, 30 insertions(+)
  10. --- a/arch/arm/boot/dts/sun7i-a20-cubietruck.dts
  11. +++ b/arch/arm/boot/dts/sun7i-a20-cubietruck.dts
  12. @@ -20,11 +20,33 @@
  13. compatible = "cubietech,cubietruck", "allwinner,sun7i-a20";
  14. soc@01c00000 {
  15. + usbphy: phy@01c13400 {
  16. + usb1_vbus-supply = <&reg_usb1_vbus>;
  17. + usb2_vbus-supply = <&reg_usb2_vbus>;
  18. + status = "okay";
  19. + };
  20. +
  21. + ehci0: usb@01c14000 {
  22. + status = "okay";
  23. + };
  24. +
  25. + ohci0: usb@01c14400 {
  26. + status = "okay";
  27. + };
  28. +
  29. ahci: sata@01c18000 {
  30. target-supply = <&reg_ahci_5v>;
  31. status = "okay";
  32. };
  33. + ehci1: usb@01c1c000 {
  34. + status = "okay";
  35. + };
  36. +
  37. + ohci1: usb@01c1c400 {
  38. + status = "okay";
  39. + };
  40. +
  41. pinctrl@01c20800 {
  42. ahci_pwr_pin_cubietruck: ahci_pwr_pin@1 {
  43. allwinner,pins = "PH12";
  44. @@ -123,4 +145,12 @@
  45. gpio = <&pio 7 12 0>;
  46. status = "okay";
  47. };
  48. +
  49. + reg_usb1_vbus: usb1-vbus {
  50. + status = "okay";
  51. + };
  52. +
  53. + reg_usb2_vbus: usb2-vbus {
  54. + status = "okay";
  55. + };
  56. };
  57. --- a/arch/arm/boot/dts/sun7i-a20-cubieboard2.dts
  58. +++ b/arch/arm/boot/dts/sun7i-a20-cubieboard2.dts
  59. @@ -20,11 +20,33 @@
  60. compatible = "cubietech,cubieboard2", "allwinner,sun7i-a20";
  61. soc@01c00000 {
  62. + usbphy: phy@01c13400 {
  63. + usb1_vbus-supply = <&reg_usb1_vbus>;
  64. + usb2_vbus-supply = <&reg_usb2_vbus>;
  65. + status = "okay";
  66. + };
  67. +
  68. + ehci0: usb@01c14000 {
  69. + status = "okay";
  70. + };
  71. +
  72. + ohci0: usb@01c14400 {
  73. + status = "okay";
  74. + };
  75. +
  76. ahci: sata@01c18000 {
  77. target-supply = <&reg_ahci_5v>;
  78. status = "okay";
  79. };
  80. + ehci1: usb@01c1c000 {
  81. + status = "okay";
  82. + };
  83. +
  84. + ohci1: usb@01c1c400 {
  85. + status = "okay";
  86. + };
  87. +
  88. pinctrl@01c20800 {
  89. led_pins_cubieboard2: led_pins@0 {
  90. allwinner,pins = "PH20", "PH21";
  91. @@ -84,4 +106,12 @@
  92. reg_ahci_5v: ahci-5v {
  93. status = "okay";
  94. };
  95. +
  96. + reg_usb1_vbus: usb1-vbus {
  97. + status = "okay";
  98. + };
  99. +
  100. + reg_usb2_vbus: usb2-vbus {
  101. + status = "okay";
  102. + };
  103. };
  104. --- a/arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts
  105. +++ b/arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts
  106. @@ -31,6 +31,20 @@
  107. status = "okay";
  108. };
  109. + usbphy: phy@01c13400 {
  110. + usb1_vbus-supply = <&reg_usb1_vbus>;
  111. + usb2_vbus-supply = <&reg_usb2_vbus>;
  112. + status = "okay";
  113. + };
  114. +
  115. + ehci0: usb@01c14000 {
  116. + status = "okay";
  117. + };
  118. +
  119. + ohci0: usb@01c14400 {
  120. + status = "okay";
  121. + };
  122. +
  123. spi2: spi@01c17000 {
  124. pinctrl-names = "default";
  125. pinctrl-0 = <&spi2_pins_a>;
  126. @@ -42,6 +56,14 @@
  127. status = "okay";
  128. };
  129. + ehci1: usb@01c1c000 {
  130. + status = "okay";
  131. + };
  132. +
  133. + ohci1: usb@01c1c400 {
  134. + status = "okay";
  135. + };
  136. +
  137. pinctrl@01c20800 {
  138. led_pins_olinuxino: led_pins@0 {
  139. allwinner,pins = "PH2";
  140. @@ -115,4 +137,12 @@
  141. reg_ahci_5v: ahci-5v {
  142. status = "okay";
  143. };
  144. +
  145. + reg_usb1_vbus: usb1-vbus {
  146. + status = "okay";
  147. + };
  148. +
  149. + reg_usb2_vbus: usb2-vbus {
  150. + status = "okay";
  151. + };
  152. };