0074-dts.patch 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. From df59c3b7030b6d7802fe5e5abda81467fcdf2178 Mon Sep 17 00:00:00 2001
  2. From: John Crispin <[email protected]>
  3. Date: Fri, 3 Jul 2015 05:46:13 +0200
  4. Subject: [PATCH 74/76] dts
  5. ---
  6. arch/arm/boot/dts/mt7623-evb.dts | 124 +++++++++++++++++++++++++++++++++++++-
  7. arch/arm/boot/dts/mt7623.dtsi | 11 ++++
  8. 2 files changed, 133 insertions(+), 2 deletions(-)
  9. --- a/arch/arm/boot/dts/mt7623-evb.dts
  10. +++ b/arch/arm/boot/dts/mt7623-evb.dts
  11. @@ -145,8 +145,8 @@
  12. bus-width = <8>;
  13. max-frequency = <50000000>;
  14. cap-mmc-highspeed;
  15. -// vmmc-supply = <&mt6397_vemc_3v3_reg>;
  16. -// vqmmc-supply = <&mt6397_vio18_reg>;
  17. +// vmmc-supply = <&mt6323_vemc_3v3_reg>;
  18. +// vqmmc-supply = <&mt6323_vio18_reg>;
  19. non-removable;
  20. };
  21. @@ -160,3 +160,123 @@
  22. pinctrl-names = "default";
  23. pinctrl-0 = <&pinctrl_pcie_default>;
  24. };
  25. +
  26. +&pwrap {
  27. + pmic: mt6323 {
  28. + compatible = "mediatek,mt6323";
  29. +
  30. + mt6323regulator: mt6323regulator {
  31. + compatible = "mediatek,mt6323-regulator";
  32. +
  33. + mt6323_vproc_reg: buck_vproc {
  34. + regulator-compatible = "buck_vproc";
  35. + regulator-name = "vproc";
  36. + regulator-min-microvolt = < 700000>;
  37. + regulator-max-microvolt = <1493750>;
  38. + regulator-ramp-delay = <6250>;
  39. + regulator-always-on;
  40. + };
  41. +
  42. + mt6323_vsys_reg: buck_vsys {
  43. + regulator-compatible = "buck_vsys";
  44. + regulator-name = "vsys";
  45. + regulator-min-microvolt = <1400000>;
  46. + regulator-max-microvolt = <3000000>;
  47. + regulator-ramp-delay = <12500>;
  48. + regulator-always-on;
  49. + };
  50. +
  51. + mt6323_vpa_reg: buck_vpa {
  52. + regulator-compatible = "buck_vpa";
  53. + regulator-name = "vpa";
  54. + regulator-min-microvolt = < 500000>;
  55. + regulator-max-microvolt = <3650000>;
  56. + regulator-ramp-delay = <50000>;
  57. + regulator-always-on;
  58. + };
  59. +
  60. + mt6323_vtcxo_reg: ldo_vtcxo {
  61. + regulator-compatible = "ldo_vtcxo";
  62. + regulator-name = "vtcxo";
  63. + regulator-always-on;
  64. + };
  65. +
  66. + mt6323_va_reg: ldo_va {
  67. + regulator-compatible = "ldo_va";
  68. + regulator-name = "va";
  69. + regulator-always-on;
  70. + };
  71. +
  72. + mt6323_vcn28_reg: ldo_vcn28 {
  73. + regulator-compatible = "ldo_vcn28";
  74. + regulator-name = "vcn28";
  75. + regulator-always-on;
  76. + };
  77. +
  78. + mt6323_vcn33_reg: ldo_vcn33 {
  79. + regulator-compatible = "ldo_vcn33";
  80. + regulator-name = "vcn33";
  81. + regulator-always-on;
  82. + };
  83. +
  84. + mt6323_vcama_reg: ldo_vcama {
  85. + regulator-compatible = "ldo_vcama";
  86. + regulator-name = "vcama";
  87. + regulator-min-microvolt = <1500000>;
  88. + regulator-max-microvolt = <2800000>;
  89. + regulator-enable-ramp-delay = <218>;
  90. + };
  91. +
  92. + mt6323_vio28_reg: ldo_vio28 {
  93. + regulator-compatible = "ldo_vio28";
  94. + regulator-name = "vio28";
  95. + regulator-always-on;
  96. + };
  97. +
  98. + mt6323_vusb_reg: ldo_vusb {
  99. + regulator-compatible = "ldo_vusb";
  100. + regulator-name = "vusb";
  101. + };
  102. +
  103. + mt6323_vmc_reg: ldo_vmc {
  104. + regulator-compatible = "ldo_vmc";
  105. + regulator-name = "vmc";
  106. + regulator-min-microvolt = <1800000>;
  107. + regulator-max-microvolt = <3300000>;
  108. + regulator-enable-ramp-delay = <218>;
  109. + };
  110. +
  111. + mt6323_vmch_reg: ldo_vmch {
  112. + regulator-compatible = "ldo_vmch";
  113. + regulator-name = "vmch";
  114. + regulator-min-microvolt = <3000000>;
  115. + regulator-max-microvolt = <3300000>;
  116. + regulator-enable-ramp-delay = <218>;
  117. + };
  118. +
  119. + mt6323_vemc_3v3_reg: ldo_vemc3v3 {
  120. + regulator-compatible = "ldo_vemc3v3";
  121. + regulator-name = "vemc_3v3";
  122. + regulator-min-microvolt = <3000000>;
  123. + regulator-max-microvolt = <3300000>;
  124. + regulator-enable-ramp-delay = <218>;
  125. + };
  126. +
  127. + mt6323_vgp1_reg: ldo_vgp1 {
  128. + regulator-compatible = "ldo_vgp1";
  129. + regulator-name = "vcamd";
  130. + regulator-min-microvolt = <1220000>;
  131. + regulator-max-microvolt = <3300000>;
  132. + regulator-enable-ramp-delay = <240>;
  133. + };
  134. +
  135. + mt6323_vgp2_reg: ldo_vgp2 {
  136. + regulator-compatible = "ldo_vgp2";
  137. + regulator-name = "vcamio";
  138. + regulator-min-microvolt = <1000000>;
  139. + regulator-max-microvolt = <3300000>;
  140. + regulator-enable-ramp-delay = <218>;
  141. + };
  142. + };
  143. + };
  144. +};
  145. --- a/arch/arm/boot/dts/mt7623.dtsi
  146. +++ b/arch/arm/boot/dts/mt7623.dtsi
  147. @@ -150,6 +150,17 @@
  148. clock-names = "system-clk", "rtc-clk";
  149. };
  150. + pwrap: pwrap@1000f000 {
  151. + compatible = "mediatek,mt7623-pwrap";
  152. + reg = <0 0x1000f000 0 0x1000>;
  153. + reg-names = "pwrap";
  154. + interrupts = <GIC_SPI 128 IRQ_TYPE_LEVEL_HIGH>;
  155. + resets = <&infracfg MT7623_INFRA_PMIC_WRAP_RST>;
  156. + reset-names = "pwrap";
  157. + clocks = <&clk26m>, <&clk26m>;
  158. + clock-names = "spi", "wrap";
  159. + };
  160. +
  161. sysirq: interrupt-controller@10200100 {
  162. compatible = "mediatek,mt7623-sysirq",
  163. "mediatek,mt6577-sysirq";
  164. @@ -311,6 +322,7 @@
  165. device_type = "pci";
  166. bus-range = <0 255>;
  167. + status = "disabled";
  168. ranges = <
  169. 0x02000000 0 0 0x00000000 0x60000000 0 0x10000000 /* pci memory */
  170. 0x01000000 0 0 0x00000000 0x1A160000 0 0x00010000 /* io space */
  171. @@ -343,6 +355,5 @@
  172. device_type = "pci";
  173. };
  174. - status = "disabled";
  175. };
  176. };