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