spacepaste

  1.  
  2. diff --git a/arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts b/arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts
  3. index d966fe3e23ac..c15725414d22 100644
  4. --- a/arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts
  5. +++ b/arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts
  6. @@ -44,7 +44,6 @@
  7. /dts-v1/;
  8. #include "sun8i-a83t.dtsi"
  9. -
  10. #include <dt-bindings/gpio/gpio.h>
  11. / {
  12. @@ -80,6 +79,29 @@
  13. /* enables internal regulator and de-asserts reset */
  14. reset-gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* PL2 WL-PMU-EN */
  15. };
  16. +
  17. +/*
  18. + reg_vcc3v0: vcc3v0 {
  19. + compatible = "regulator-fixed";
  20. + regulator-name = "vcc3v0";
  21. + regulator-min-microvolt = <3000000>;
  22. + regulator-max-microvolt = <3000000>;
  23. + };
  24. +*/
  25. + reg_vcc3v3: vcc3v3 {
  26. + compatible = "regulator-fixed";
  27. + regulator-name = "vcc3v3";
  28. + regulator-min-microvolt = <3300000>;
  29. + regulator-max-microvolt = <3300000>;
  30. + };
  31. +/*
  32. + reg_vcc5v0: vcc5v0 {
  33. + compatible = "regulator-fixed";
  34. + regulator-name = "vcc5v0";
  35. + regulator-min-microvolt = <5000000>;
  36. + regulator-max-microvolt = <5000000>;
  37. + };
  38. +*/
  39. };
  40. &crypto {
  41. @@ -96,11 +118,11 @@
  42. &emac {
  43. pinctrl-names = "default";
  44. pinctrl-0 = <&emac_rgmii_pins>;
  45. - phy-supply = <&reg_sw>;
  46. phy-handle = <&rgmii_phy>;
  47. phy-mode = "rgmii";
  48. allwinner,rx-delay-ps = <700>;
  49. allwinner,tx-delay-ps = <700>;
  50. +
  51. status = "okay";
  52. };
  53. @@ -114,35 +136,17 @@
  54. &mmc0 {
  55. pinctrl-names = "default";
  56. pinctrl-0 = <&mmc0_pins>;
  57. - vmmc-supply = <&reg_dcdc1>;
  58. + vmmc-supply = <&reg_vcc3v3>;
  59. bus-width = <4>;
  60. cd-gpios = <&pio 5 6 GPIO_ACTIVE_HIGH>; /* PF6 */
  61. cd-inverted;
  62. status = "okay";
  63. };
  64. -&mmc1 {
  65. - vmmc-supply = <&reg_dldo1>;
  66. - vqmmc-supply = <&reg_dldo1>;
  67. - mmc-pwrseq = <&wifi_pwrseq>;
  68. - bus-width = <4>;
  69. - non-removable;
  70. - status = "okay";
  71. -
  72. - brcmf: wifi@1 {
  73. - reg = <1>;
  74. - compatible = "brcm,bcm4329-fmac";
  75. - interrupt-parent = <&r_pio>;
  76. - interrupts = <0 3 IRQ_TYPE_LEVEL_LOW>;
  77. - interrupt-names = "host-wake";
  78. - };
  79. -};
  80. -
  81. &mmc2 {
  82. pinctrl-names = "default";
  83. pinctrl-0 = <&mmc2_8bit_emmc_pins>;
  84. - vmmc-supply = <&reg_dcdc1>;
  85. - vqmmc-supply = <&reg_dcdc1>;
  86. + vmmc-supply = <&reg_vcc3v3>;
  87. bus-width = <8>;
  88. non-removable;
  89. cap-mmc-hw-reset;
  90. @@ -157,10 +161,6 @@
  91. reg = <0x3a3>;
  92. interrupt-parent = <&r_intc>;
  93. interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
  94. - eldoin-supply = <&reg_dcdc1>;
  95. - fldoin-supply = <&reg_dcdc5>;
  96. - swin-supply = <&reg_dcdc1>;
  97. - x-powers,drive-vbus-en;
  98. };
  99. ac100: codec@e89 {
  100. @@ -188,128 +188,11 @@
  101. };
  102. };
  103. -#include "axp81x.dtsi"
  104. -
  105. -&reg_aldo1 {
  106. - regulator-always-on;
  107. - regulator-min-microvolt = <1800000>;
  108. - regulator-max-microvolt = <1800000>;
  109. - regulator-name = "vcc-1v8";
  110. -};
  111. -
  112. -&reg_aldo2 {
  113. - regulator-always-on;
  114. - regulator-min-microvolt = <1800000>;
  115. - regulator-max-microvolt = <1800000>;
  116. - regulator-name = "dram-pll";
  117. -};
  118. -
  119. -&reg_aldo3 {
  120. - regulator-always-on;
  121. - regulator-min-microvolt = <3000000>;
  122. - regulator-max-microvolt = <3000000>;
  123. - regulator-name = "avcc";
  124. -};
  125. -
  126. -&reg_dcdc1 {
  127. - /* schematics says 3.1V but FEX file says 3.3V */
  128. - regulator-always-on;
  129. - regulator-min-microvolt = <3300000>;
  130. - regulator-max-microvolt = <3300000>;
  131. - regulator-name = "vcc-3v3";
  132. -};
  133. -
  134. -&reg_dcdc2 {
  135. - regulator-always-on;
  136. - regulator-min-microvolt = <700000>;
  137. - regulator-max-microvolt = <1100000>;
  138. - regulator-name = "vdd-cpua";
  139. -};
  140. -
  141. -&reg_dcdc3 {
  142. - regulator-always-on;
  143. - regulator-min-microvolt = <700000>;
  144. - regulator-max-microvolt = <1100000>;
  145. - regulator-name = "vdd-cpub";
  146. -};
  147. -
  148. -&reg_dcdc4 {
  149. - regulator-min-microvolt = <700000>;
  150. - regulator-max-microvolt = <1100000>;
  151. - regulator-name = "vdd-gpu";
  152. -};
  153. -
  154. -&reg_dcdc5 {
  155. - regulator-always-on;
  156. - regulator-min-microvolt = <1200000>;
  157. - regulator-max-microvolt = <1200000>;
  158. - regulator-name = "vcc-dram";
  159. -};
  160. -
  161. -&reg_dcdc6 {
  162. - regulator-always-on;
  163. - regulator-min-microvolt = <900000>;
  164. - regulator-max-microvolt = <900000>;
  165. - regulator-name = "vdd-sys";
  166. -};
  167. -
  168. -&reg_dldo1 {
  169. - /*
  170. - * This powers both the WiFi/BT module's main power, I/O supply,
  171. - * and external pull-ups on all the data lines. It should be set
  172. - * to the same voltage as the I/O supply (DCDC1 in this case) to
  173. - * avoid any leakage or mismatch.
  174. - */
  175. - regulator-min-microvolt = <3300000>;
  176. - regulator-max-microvolt = <3300000>;
  177. - regulator-name = "vcc-wifi";
  178. -};
  179. -
  180. -&reg_dldo3 {
  181. - regulator-always-on;
  182. - regulator-min-microvolt = <2500000>;
  183. - regulator-max-microvolt = <2500000>;
  184. - regulator-name = "vcc-pd";
  185. -};
  186. -
  187. -&reg_drivevbus {
  188. - regulator-name = "usb0-vbus";
  189. +&reg_usb1_vbus {
  190. + gpio = <&pio 3 24 GPIO_ACTIVE_HIGH>; /* PD24 */
  191. status = "okay";
  192. };
  193. -&reg_fldo1 {
  194. - regulator-min-microvolt = <1080000>;
  195. - regulator-max-microvolt = <1320000>;
  196. - regulator-name = "vdd12-hsic";
  197. -};
  198. -
  199. -&reg_fldo2 {
  200. - /*
  201. - * Despite the embedded CPUs core not being used in any way,
  202. - * this must remain on or the system will hang.
  203. - */
  204. - regulator-always-on;
  205. - regulator-min-microvolt = <700000>;
  206. - regulator-max-microvolt = <1100000>;
  207. - regulator-name = "vdd-cpus";
  208. -};
  209. -
  210. -&reg_rtc_ldo {
  211. - regulator-name = "vcc-rtc";
  212. -};
  213. -
  214. -&reg_sw {
  215. - /*
  216. - * The PHY requires 20ms after all voltages
  217. - * are applied until core logic is ready and
  218. - * 30ms after the reset pin is de-asserted.
  219. - * Set a 100ms delay to account for PMIC
  220. - * ramp time and board traces.
  221. - */
  222. - regulator-enable-ramp-delay = <100000>;
  223. - regulator-name = "vcc-ephy";
  224. -};
  225. -
  226. &uart0 {
  227. pinctrl-names = "default";
  228. pinctrl-0 = <&uart0_pb_pins>;
  229.