Advertisement
Guest User

Untitled

a guest
Jan 1st, 2015
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.64 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.  
  46. / {
  47. model = "Netxeon MK806 V30 - RK3066";
  48. compatible = "netxeon,mk806v30-rk3066", "rockchip,rk3066a";
  49.  
  50. memory {
  51. reg = <0x60000000 0x40000000>;
  52. };
  53.  
  54. vcc_sd0: sdmmc-regulator {
  55. compatible = "regulator-fixed";
  56. regulator-name = "sdmmc-supply";
  57. regulator-min-microvolt = <3000000>;
  58. regulator-max-microvolt = <3000000>;
  59. gpio = <&gpio3 7 GPIO_ACTIVE_LOW>;
  60. startup-delay-us = <100000>;
  61. vin-supply = <&vcc_io>;
  62. };
  63. /*
  64. vcc_otg: usb-otg-regulator {
  65. compatible = "regulator-fixed";
  66. enable-active-high;
  67. gpio = <&gpio2 31 GPIO_ACTIVE_HIGH>;
  68. pinctrl-names = "default";
  69. pinctrl-0 = <&otg_vbus_drv>;
  70. regulator-name = "otg-vbus";
  71. regulator-min-microvolt = <5000000>;
  72. regulator-max-microvolt = <5000000>;
  73. regulator-always-on;
  74. regulator-boot-on;
  75. };
  76.  
  77. vcc_host: usb-host-regulator {
  78. compatible = "regulator-fixed";
  79. enable-active-high;
  80. gpio = <&gpio0 3 GPIO_ACTIVE_HIGH>;
  81. pinctrl-names = "default";
  82. pinctrl-0 = <&host_vbus_drv>;
  83. regulator-name = "host-pwr";
  84. regulator-min-microvolt = <5000000>;
  85. regulator-max-microvolt = <5000000>;
  86. regulator-always-on;
  87. regulator-boot-on;
  88. };
  89. */
  90. usbphy: phy {
  91. compatible = "rockchip,rk3288-usb-phy";
  92. rockchip,grf = <&grf>;
  93. #address-cells = <1>;
  94. #size-cells = <0>;
  95. status = "disabled";
  96.  
  97. usbphy0: usb-phy0 {
  98. #phy-cells = <0>;
  99. reg = <0x17c>;
  100. clocks = <&cru SCLK_OTGPHY0>;
  101. clock-names = "phyclk";
  102. };
  103.  
  104. usbphy1: usb-phy1 {
  105. #phy-cells = <0>;
  106. reg = <0x188>;
  107. clocks = <&cru SCLK_OTGPHY1>;
  108. clock-names = "phyclk";
  109. };
  110. };
  111.  
  112. vsys: vsys-regulator {
  113. compatible = "regulator-fixed";
  114. regulator-name = "vsys";
  115. regulator-min-microvolt = <5000000>;
  116. regulator-max-microvolt = <5000000>;
  117. regulator-boot-on;
  118. };
  119. };
  120.  
  121. &i2c1 {
  122. status = "okay";
  123. clock-frequency = <400000>;
  124.  
  125. tps: tps@2d {
  126. reg = <0x2d>;
  127.  
  128. interrupt-parent = <&gpio6>;
  129. interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
  130.  
  131. vcc1-supply = <&vsys>;
  132. vcc2-supply = <&vsys>;
  133. vcc3-supply = <&vsys>;
  134. vcc4-supply = <&vsys>;
  135. vcc5-supply = <&vcc_io>;
  136. vcc6-supply = <&vcc_io>;
  137. vcc7-supply = <&vsys>;
  138. vccio-supply = <&vsys>;
  139.  
  140. regulators {
  141. vcc_rtc: regulator@0 {
  142. regulator-name = "vcc_rtc";
  143. regulator-always-on;
  144. };
  145.  
  146. vcc_io: regulator@1 {
  147. regulator-name = "vcc_io";
  148. regulator-always-on;
  149. };
  150.  
  151. vdd_arm: regulator@2 {
  152. regulator-name = "vdd_arm";
  153. regulator-min-microvolt = <600000>;
  154. regulator-max-microvolt = <1500000>;
  155. regulator-boot-on;
  156. regulator-always-on;
  157. };
  158.  
  159. vcc_ddr: regulator@3 {
  160. regulator-name = "vcc_ddr";
  161. regulator-min-microvolt = <600000>;
  162. regulator-max-microvolt = <1500000>;
  163. regulator-boot-on;
  164. regulator-always-on;
  165. };
  166.  
  167. vcc18_cif: regulator@5 {
  168. regulator-name = "vcc18_cif";
  169. regulator-always-on;
  170. };
  171.  
  172. vdd_11: regulator@6 {
  173. regulator-name = "vdd_11";
  174. regulator-always-on;
  175. };
  176.  
  177. vcc_25: regulator@7 {
  178. regulator-name = "vcc_25";
  179. regulator-always-on;
  180. };
  181.  
  182. vcc_18: regulator@8 {
  183. regulator-name = "vcc_18";
  184. regulator-always-on;
  185. };
  186.  
  187. vcc25_hdmi: regulator@9 {
  188. regulator-name = "vcc25_hdmi";
  189. regulator-always-on;
  190. };
  191.  
  192. vcca_33: regulator@10 {
  193. regulator-name = "vcca_33";
  194. regulator-always-on;
  195. };
  196.  
  197. vcc_rmii: regulator@11 {
  198. regulator-name = "vcc_rmii";
  199. };
  200.  
  201. vcc28_cif: regulator@12 {
  202. regulator-name = "vcc28_cif";
  203. regulator-always-on;
  204. };
  205. };
  206. };
  207. };
  208.  
  209. /* must be included after &tps gets defined */
  210. #include "tps65910.dtsi"
  211. /*
  212. &pinctrl {
  213. pcfg_output_low: pcfg-output-low {
  214. output-low;
  215. };
  216.  
  217. pcfg_output_high: pcfg-output-high {
  218. output-high;
  219. };
  220.  
  221. usb {
  222. host_vbus_drv: host-vbus-drv {
  223. rockchip,pins = <0 3 RK_FUNC_GPIO &pcfg_pull_none>;
  224. };
  225. otg_vbus_drv: otg-vbus-drv {
  226. rockchip,pins = <2 31 RK_FUNC_GPIO &pcfg_pull_none>;
  227. };
  228. };
  229. };
  230. */
  231. &mmc0 { /* sdmmc */
  232. num-slots = <1>;
  233. status = "okay";
  234. pinctrl-names = "default";
  235. pinctrl-0 = <&sd0_clk>, <&sd0_cmd>, <&sd0_cd>, <&sd0_bus4>;
  236. vmmc-supply = <&vcc_sd0>;
  237. // vqmmc-supply = <&vcc_io>;
  238. bus-width = <4>;
  239. disable-wp;
  240. };
  241.  
  242. &uart0 {
  243. status = "okay";
  244. };
  245.  
  246. &uart1 {
  247. status = "okay";
  248. };
  249.  
  250. &uart2 {
  251. status = "okay";
  252. };
  253.  
  254. &uart3 {
  255. status = "okay";
  256. };
  257.  
  258. &wdt {
  259. status = "okay";
  260. };
  261. /*
  262. &usb_host {
  263. status = "okay";
  264. phys = <&usbphy0>;
  265. phy-names = "usb2-phy";
  266. };
  267. */
  268.  
  269. &usb_otg {
  270. status = "okay";
  271. phys = <&usbphy1>;
  272. phy-names = "usb2-phy";
  273. dr_mode = "gadget";
  274. g-use-dma = <0>;
  275. g-rx-fifo-size = <192>;
  276. g-np-tx-fifo-size = <0>;
  277. g-tx-fifo-size = <192>;
  278. };
  279.  
  280. &usbphy {
  281. status = "okay";
  282. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement