Guest User

Untitled

a guest
May 27th, 2018
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.83 KB | None | 0 0
  1. /*
  2. * Copyright (c) 2014 Romain Perier <romain.perier@gmail.com>
  3. *
  4. * This file is dual-licensed: you can use it either under the terms
  5. * of the GPL or the X11 license, at your option. Note that this dual
  6. * licensing only applies to this file, and not this project as a
  7. * whole.
  8. *
  9. * a) This file is free software; you can redistribute it and/or
  10. * modify it under the terms of the GNU General Public License as
  11. * published by the Free Software Foundation; either version 2 of the
  12. * License, or (at your option) any later version.
  13. *
  14. * This file is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. * GNU General Public License for more details.
  18. *
  19. * Or, alternatively,
  20. *
  21. * b) Permission is hereby granted, free of charge, to any person
  22. * obtaining a copy of this software and associated documentation
  23. * files (the "Software"), to deal in the Software without
  24. * restriction, including without limitation the rights to use,
  25. * copy, modify, merge, publish, distribute, sublicense, and/or
  26. * sell copies of the Software, and to permit persons to whom the
  27. * Software is furnished to do so, subject to the following
  28. * conditions:
  29. *
  30. * The above copyright notice and this permission notice shall be
  31. * included in all copies or substantial portions of the Software.
  32. *
  33. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  34. * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  35. * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  36. * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  37. * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  38. * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  39. * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  40. * OTHER DEALINGS IN THE SOFTWARE.
  41. */
  42.  
  43. /dts-v1/;
  44. #include "rk3066a.dtsi"
  45. //#include <dt-bindings/regulator/wm831x.h>
  46.  
  47. / {
  48. model = "Minix X5";
  49. compatible = "minix,x5", "rockchip,rk3066a";
  50.  
  51. aliases {
  52. serial2 = &uart2;
  53. };
  54.  
  55. chosen {
  56. //bootargs = "console=ttyS2,115200n8";
  57. //stdout-path = "serial2:115200n8";
  58. //linux,initrd-start = <0x62000000>;
  59. //linux,initrd-end = <0x62250000>;
  60. };
  61.  
  62. memory@60000000 {
  63. device_type = "memory";
  64. reg = <0x60000000 0x30000000>;
  65. };
  66.  
  67. vsys: vsys-regulator {
  68. compatible = "regulator-fixed";
  69. regulator-name = "vsys";
  70. regulator-min-microvolt = <5000000>;
  71. regulator-max-microvolt = <5000000>;
  72. regulator-always-on;
  73. regulator-boot-on;
  74. };
  75. };
  76.  
  77. &cpu0 {
  78. cpu0-supply = <&vdd_arm>;
  79. };
  80.  
  81.  
  82. &i2c1 {
  83. status = "okay";
  84. clock-frequency = <400000>;
  85.  
  86. wm18326: wm8326@34 {
  87. compatible = "wlf,wm8326";
  88. reg = <0x34>;
  89. interrupt-parent = <&gpio6>;
  90. interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
  91. //clocks = <&pmu_system_controller 0>;
  92. //clock-names = "MCLK1";
  93. //DCVDD-supply = <&ldo3_reg>;
  94. //DBVDD1-supply = <&ldo3_reg>;
  95. //wlf,ldo1ena = <&gpj0 4 0>;
  96.  
  97. // According to datasheet, it seems to typical connections all
  98. // LDD are connected to system
  99. SYSVDD-supply = <&vsys>;
  100. PVDD-supply = <&vsys>;
  101. LDO1VDD-supply = <&vsys>;
  102. LDO2VDD-supply = <&vsys>;
  103. LDO3VDD-supply = <&vsys>;
  104. LDO4VDD-supply = <&vsys>;
  105. LDO5VDD-supply = <&vsys>;
  106. LDO6VDD-supply = <&vsys>;
  107. LDO7VDD-supply = <&vsys>;
  108. LDO8VDD-supply = <&vsys>;
  109. LDO9VDD-supply = <&vsys>;
  110. LDO10VDD-supply = <&vsys>;
  111. LDO11VDD-supply = <&vsys>;
  112. DC1VDD-supply = <&vsys>;
  113. DC2VDD-supply = <&vsys>;
  114. DC3VDD-supply = <&vsys>;
  115. DC4VDD-supply = <&vsys>;
  116.  
  117. rtc: wm8326-rtc {
  118. compatible = "wm8326-rtc";
  119. };
  120. clk: wm8326-clk {
  121. compatible = "wm8326-clk";
  122. };
  123. regulators {
  124. vcc18_cif: LDO1 {
  125. compatible = "wm831x-ldo";
  126. regulator-name = "LDO1";
  127. regulator-always-on;
  128. regulator-boot-on;
  129. //constraint regulator-min-microvolt = <900000>;
  130. //constraint regulator-max-microvolt = <3300000>;
  131. regulator-min-microvolt = <1800000>;
  132. regulator-max-microvolt = <1800000>;
  133. };
  134. vccio_wl: LDO2 {
  135. compatible = "wm831x-ldo";
  136. regulator-name = "LDO2";
  137. regulator-always-on;
  138. regulator-boot-on;
  139. //constraint regulator-min-microvolt = <900000>;
  140. //constraint regulator-max-microvolt = <3300000>;
  141. regulator-min-microvolt = <1800000>;
  142. regulator-max-microvolt = <1800000>;
  143. };
  144. vdd_12: LDO3 {
  145. compatible = "wm831x-ldo";
  146. regulator-name = "LDO3";
  147. regulator-always-on;
  148. regulator-boot-on;
  149. //constraint regulator-min-microvolt = <900000>;
  150. //constraint regulator-max-microvolt = <3300000>;
  151. regulator-min-microvolt = <1200000>;
  152. regulator-max-microvolt = <1200000>;
  153. };
  154. vdd_11: LDO4 {
  155. compatible = "wm831x-ldo";
  156. regulator-name = "LDO4";
  157. regulator-always-on;
  158. regulator-boot-on;
  159. //regulator-mode = <WM831X_OPMODE_IDLE>;
  160. regulator-min-microvolt = <1100000>;
  161. regulator-max-microvolt = <1100000>;
  162. //constraint regulator-min-microvolt = <900000>;
  163. //constraint regulator-max-microvolt = <3300000>;
  164. };
  165. vcc_25: LDO5 {
  166. compatible = "wm831x-ldo";
  167. regulator-name = "LDO5";
  168. regulator-always-on;
  169. regulator-boot-on;
  170. //regulator-mode = <WM831X_OPMODE_IDLE>;
  171. regulator-min-microvolt = <2500000>;
  172. regulator-max-microvolt = <2500000>;
  173. //constraint regulator-min-microvolt = <900000>;
  174. //constraint regulator-max-microvolt = <3300000>;
  175. };
  176. vcc_33: LDO6 {
  177. compatible = "wm831x-ldo";
  178. regulator-name = "LDO6";
  179. regulator-always-on;
  180. regulator-boot-on;
  181. //regulator-mode = <WM831X_OPMODE_STANDBY>;
  182. regulator-min-microvolt = <3300000>;
  183. regulator-max-microvolt = <3300000>;
  184. //constraint regulator-min-microvolt = <900000>;
  185. //constraint regulator-max-microvolt = <3300000>;
  186. };
  187. vcc28_cif: LDO7 {
  188. compatible = "wm831x-ldo";
  189. regulator-name = "LDO7";
  190. regulator-always-on;
  191. regulator-boot-on;
  192. //constraint regulator-min-microvolt = <1000000>;
  193. //constraint regulator-max-microvolt = <3500000>;
  194. regulator-min-microvolt = <2800000>;
  195. regulator-max-microvolt = <2800000>;
  196. };
  197. vcca_33: LDO8 {
  198. compatible = "wm831x-ldo";
  199. regulator-name = "LDO8";
  200. regulator-always-on;
  201. regulator-boot-on;
  202. //constraint regulator-min-microvolt = <1000000>;
  203. //constraint regulator-max-microvolt = <3500000>;
  204. regulator-min-microvolt = <3300000>;
  205. regulator-max-microvolt = <3300000>;
  206. };
  207. vcc_tp: LDO9 {
  208. compatible = "wm831x-ldo";
  209. regulator-name = "LDO9";
  210. regulator-always-on;
  211. regulator-boot-on;
  212. //constraint regulator-min-microvolt = <1000000>;
  213. //constraint regulator-max-microvolt = <3500000>;
  214. regulator-min-microvolt = <3300000>;
  215. regulator-max-microvolt = <3300000>;
  216. };
  217. vcc_flash: LDO10 {
  218. compatible = "wm831x-ldo";
  219. regulator-name = "LDO10";
  220. regulator-always-on;
  221. regulator-boot-on;
  222. //constraint regulator-min-microvolt = <1000000>;
  223. //constraint regulator-max-microvolt = <3500000>;
  224. regulator-min-microvolt = <1800000>;
  225. regulator-max-microvolt = <1800000>;
  226. };
  227. vcc_ldo11: LDO11 {
  228. compatible = "wm831x-ldo";
  229. regulator-name = "LDO11";
  230. regulator-min-microvolt = <800000>;
  231. regulator-max-microvolt = <1550000>;
  232. };
  233. vdd_core: DCDC1 { // vdd_log
  234. compatible = "wm831x-dcdc";
  235. regulator-name = "DCDC1";
  236. regulator-always-on;
  237. regulator-boot-on;
  238. //constraint regulator-min-microvolt = <600000>;
  239. //constraint regulator-max-microvolt = <1800000>;
  240. regulator-min-microvolt = <1150000>;
  241. regulator-max-microvolt = <1150000>;
  242. };
  243. vdd_arm: DCDC2 { // vdd_arm
  244. compatible = "wm831x-dcdc";
  245. regulator-name = "DCDC2";
  246. regulator-always-on;
  247. regulator-boot-on;
  248. //constraint regulator-min-microvolt = <600000>;
  249. //constraint regulator-max-microvolt = <1800000>;
  250. regulator-min-microvolt = <1100000>;
  251. regulator-max-microvolt = <1100000>;
  252. };
  253. vcc_ddr: DCDC3 {
  254. compatible = "wm831x-dcdc";
  255. regulator-name = "DCDC3";
  256. regulator-always-on;
  257. regulator-boot-on;
  258. //constraint regulator-min-microvolt = <850000>;
  259. //constraint regulator-max-microvolt = <3400000>;
  260. regulator-min-microvolt = <1150000>;
  261. regulator-max-microvolt = <1150000>;
  262. };
  263. vcc_io: DCDC4 {
  264. compatible = "wm831x-dcdc";
  265. regulator-name = "DCDC4";
  266. regulator-always-on;
  267. regulator-boot-on;
  268. //constraint regulator-min-microvolt = <850000>;
  269. //constraint regulator-max-microvolt = <3400000>;
  270. regulator-min-microvolt = <3000000>;
  271. regulator-max-microvolt = <3000000>;
  272. };
  273. };
  274.  
  275. };
  276. };
  277.  
  278. &uart0 {
  279. status = "okay";
  280. };
  281.  
  282. &uart1 {
  283. status = "okay";
  284. };
  285.  
  286. &uart2 {
  287. status = "okay";
  288. };
  289.  
  290. &wdt {
  291. status = "okay";
  292. };
  293.  
  294. &mmc0 {
  295. bus-width = <4>;
  296. cap-mmc-highspeed;
  297. cap-sd-highspeed;
  298. vmmc-supply = <&vcc_io>;
  299. status = "okay";
  300. };
Add Comment
Please, Sign In to add comment