rk3288-fennec.dts 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383
  1. /*
  2. * This file is dual-licensed: you can use it either under the terms
  3. * of the GPL or the X11 license, at your option. Note that this dual
  4. * licensing only applies to this file, and not this project as a
  5. * whole.
  6. *
  7. * a) This file is free software; you can redistribute it and/or
  8. * modify it under the terms of the GNU General Public License as
  9. * published by the Free Software Foundation; either version 2 of the
  10. * License, or (at your option) any later version.
  11. *
  12. * This file is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * Or, alternatively,
  18. *
  19. * b) Permission is hereby granted, free of charge, to any person
  20. * obtaining a copy of this software and associated documentation
  21. * files (the "Software"), to deal in the Software without
  22. * restriction, including without limitation the rights to use,
  23. * copy, modify, merge, publish, distribute, sublicense, and/or
  24. * sell copies of the Software, and to permit persons to whom the
  25. * Software is furnished to do so, subject to the following
  26. * conditions:
  27. *
  28. * The above copyright notice and this permission notice shall be
  29. * included in all copies or substantial portions of the Software.
  30. *
  31. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  32. * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  33. * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  34. * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  35. * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  36. * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  37. * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  38. * OTHER DEALINGS IN THE SOFTWARE.
  39. */
  40. /dts-v1/;
  41. #include "rk3288.dtsi"
  42. / {
  43. model = "Rockchip RK3288 Fennec Board";
  44. compatible = "rockchip,rk3288-fennec", "rockchip,rk3288";
  45. memory {
  46. reg = <0x0 0x80000000>;
  47. device_type = "memory";
  48. };
  49. ext_gmac: external-gmac-clock {
  50. compatible = "fixed-clock";
  51. #clock-cells = <0>;
  52. clock-frequency = <125000000>;
  53. clock-output-names = "ext_gmac";
  54. };
  55. vcc_sys: vsys-regulator {
  56. compatible = "regulator-fixed";
  57. regulator-name = "vcc_sys";
  58. regulator-min-microvolt = <5000000>;
  59. regulator-max-microvolt = <5000000>;
  60. regulator-always-on;
  61. regulator-boot-on;
  62. };
  63. };
  64. &cpu0 {
  65. cpu0-supply = <&vdd_cpu>;
  66. };
  67. &emmc {
  68. bus-width = <8>;
  69. cap-mmc-highspeed;
  70. disable-wp;
  71. non-removable;
  72. num-slots = <1>;
  73. pinctrl-names = "default";
  74. pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_pwr &emmc_bus8>;
  75. status = "okay";
  76. };
  77. &gmac {
  78. assigned-clocks = <&cru SCLK_MAC>;
  79. assigned-clock-parents = <&ext_gmac>;
  80. clock_in_out = "input";
  81. pinctrl-names = "default";
  82. pinctrl-0 = <&rgmii_pins>, <&phy_rst>, <&phy_pmeb>, <&phy_int>;
  83. phy-supply = <&vcc_lan>;
  84. phy-mode = "rgmii";
  85. snps,reset-active-low;
  86. snps,reset-delays-us = <0 10000 1000000>;
  87. snps,reset-gpio = <&gpio4 8 GPIO_ACTIVE_LOW>;
  88. tx_delay = <0x30>;
  89. rx_delay = <0x10>;
  90. status = "okay";
  91. };
  92. &hdmi {
  93. status = "okay";
  94. };
  95. &i2c0 {
  96. status = "okay";
  97. clock-frequency = <400000>;
  98. rk808: pmic@1b {
  99. compatible = "rockchip,rk808";
  100. reg = <0x1b>;
  101. interrupt-parent = <&gpio0>;
  102. interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
  103. #clock-cells = <1>;
  104. clock-output-names = "xin32k", "rk808-clkout2";
  105. pinctrl-names = "default";
  106. pinctrl-0 = <&pmic_int &global_pwroff>;
  107. rockchip,system-power-controller;
  108. wakeup-source;
  109. vcc1-supply = <&vcc_sys>;
  110. vcc2-supply = <&vcc_sys>;
  111. vcc3-supply = <&vcc_sys>;
  112. vcc4-supply = <&vcc_sys>;
  113. vcc6-supply = <&vcc_sys>;
  114. vcc7-supply = <&vcc_sys>;
  115. vcc8-supply = <&vcc_io>;
  116. vcc9-supply = <&vcc_io>;
  117. vcc10-supply = <&vcc_io>;
  118. vcc11-supply = <&vcc_io>;
  119. vcc12-supply = <&vcc_io>;
  120. vddio-supply = <&vcc_io>;
  121. regulators {
  122. vdd_cpu: DCDC_REG1 {
  123. regulator-always-on;
  124. regulator-boot-on;
  125. regulator-min-microvolt = <750000>;
  126. regulator-max-microvolt = <1350000>;
  127. regulator-name = "vdd_arm";
  128. regulator-state-mem {
  129. regulator-off-in-suspend;
  130. };
  131. };
  132. vdd_gpu: DCDC_REG2 {
  133. regulator-always-on;
  134. regulator-boot-on;
  135. regulator-min-microvolt = <850000>;
  136. regulator-max-microvolt = <1250000>;
  137. regulator-name = "vdd_gpu";
  138. regulator-state-mem {
  139. regulator-on-in-suspend;
  140. regulator-suspend-microvolt = <1000000>;
  141. };
  142. };
  143. vcc_ddr: DCDC_REG3 {
  144. regulator-always-on;
  145. regulator-boot-on;
  146. regulator-name = "vcc_ddr";
  147. regulator-state-mem {
  148. regulator-on-in-suspend;
  149. };
  150. };
  151. vcc_io: DCDC_REG4 {
  152. regulator-always-on;
  153. regulator-boot-on;
  154. regulator-min-microvolt = <3300000>;
  155. regulator-max-microvolt = <3300000>;
  156. regulator-name = "vcc_io";
  157. regulator-state-mem {
  158. regulator-on-in-suspend;
  159. regulator-suspend-microvolt = <3300000>;
  160. };
  161. };
  162. vccio_pmu: LDO_REG1 {
  163. regulator-always-on;
  164. regulator-boot-on;
  165. regulator-min-microvolt = <3300000>;
  166. regulator-max-microvolt = <3300000>;
  167. regulator-name = "vccio_pmu";
  168. regulator-state-mem {
  169. regulator-on-in-suspend;
  170. regulator-suspend-microvolt = <3300000>;
  171. };
  172. };
  173. vcca_33: LDO_REG2 {
  174. regulator-always-on;
  175. regulator-boot-on;
  176. regulator-min-microvolt = <3300000>;
  177. regulator-max-microvolt = <3300000>;
  178. regulator-name = "vcca_33";
  179. regulator-state-mem {
  180. regulator-off-in-suspend;
  181. };
  182. };
  183. vdd_10: LDO_REG3 {
  184. regulator-always-on;
  185. regulator-boot-on;
  186. regulator-min-microvolt = <1000000>;
  187. regulator-max-microvolt = <1000000>;
  188. regulator-name = "vdd_10";
  189. regulator-state-mem {
  190. regulator-on-in-suspend;
  191. regulator-suspend-microvolt = <1000000>;
  192. };
  193. };
  194. vcc_wl: LDO_REG4 {
  195. regulator-always-on;
  196. regulator-boot-on;
  197. regulator-min-microvolt = <1800000>;
  198. regulator-max-microvolt = <1800000>;
  199. regulator-name = "vcc_wl";
  200. regulator-state-mem {
  201. regulator-on-in-suspend;
  202. regulator-suspend-microvolt = <1800000>;
  203. };
  204. };
  205. vccio_sd: LDO_REG5 {
  206. regulator-always-on;
  207. regulator-boot-on;
  208. regulator-min-microvolt = <1800000>;
  209. regulator-max-microvolt = <3300000>;
  210. regulator-name = "vccio_sd";
  211. regulator-state-mem {
  212. regulator-on-in-suspend;
  213. regulator-suspend-microvolt = <3300000>;
  214. };
  215. };
  216. vdd10_lcd: LDO_REG6 {
  217. regulator-always-on;
  218. regulator-boot-on;
  219. regulator-min-microvolt = <1000000>;
  220. regulator-max-microvolt = <1000000>;
  221. regulator-name = "vdd10_lcd";
  222. regulator-state-mem {
  223. regulator-on-in-suspend;
  224. regulator-suspend-microvolt = <1000000>;
  225. };
  226. };
  227. vcc_18: LDO_REG7 {
  228. regulator-always-on;
  229. regulator-boot-on;
  230. regulator-min-microvolt = <1800000>;
  231. regulator-max-microvolt = <1800000>;
  232. regulator-name = "vcc_18";
  233. regulator-state-mem {
  234. regulator-on-in-suspend;
  235. regulator-suspend-microvolt = <1800000>;
  236. };
  237. };
  238. vcc18_lcd: LDO_REG8 {
  239. regulator-always-on;
  240. regulator-boot-on;
  241. regulator-min-microvolt = <1800000>;
  242. regulator-max-microvolt = <1800000>;
  243. regulator-name = "vcc18_lcd";
  244. regulator-state-mem {
  245. regulator-on-in-suspend;
  246. regulator-suspend-microvolt = <1800000>;
  247. };
  248. };
  249. vcc_sd: SWITCH_REG1 {
  250. regulator-always-on;
  251. regulator-boot-on;
  252. regulator-name = "vcc_sd";
  253. regulator-state-mem {
  254. regulator-on-in-suspend;
  255. };
  256. };
  257. vcc_lan: SWITCH_REG2 {
  258. regulator-always-on;
  259. regulator-boot-on;
  260. regulator-name = "vcc_lan";
  261. regulator-state-mem {
  262. regulator-on-in-suspend;
  263. };
  264. };
  265. };
  266. };
  267. };
  268. &pinctrl {
  269. pcfg_output_high: pcfg-output-high {
  270. output-high;
  271. };
  272. pcfg_output_low: pcfg-output-low {
  273. output-low;
  274. };
  275. pcfg_pull_none_drv_8ma: pcfg-pull-none-drv-8ma {
  276. drive-strength = <8>;
  277. };
  278. pcfg_pull_up_drv_8ma: pcfg-pull-up-drv-8ma {
  279. bias-pull-up;
  280. drive-strength = <8>;
  281. };
  282. gmac {
  283. phy_int: phy-int {
  284. rockchip,pins = <0 9 RK_FUNC_GPIO &pcfg_pull_up>;
  285. };
  286. phy_pmeb: phy-pmeb {
  287. rockchip,pins = <0 8 RK_FUNC_GPIO &pcfg_pull_up>;
  288. };
  289. phy_rst: phy-rst {
  290. rockchip,pins = <4 8 RK_FUNC_GPIO &pcfg_output_high>;
  291. };
  292. };
  293. pmic {
  294. pmic_int: pmic-int {
  295. rockchip,pins = <RK_GPIO0 4 RK_FUNC_GPIO &pcfg_pull_up>;
  296. };
  297. };
  298. usbphy {
  299. host_drv: host-drv {
  300. rockchip,pins = <0 14 RK_FUNC_GPIO &pcfg_pull_none>;
  301. };
  302. };
  303. };
  304. &uart2 {
  305. status = "okay";
  306. };
  307. &usbphy {
  308. pinctrl-names = "default";
  309. pinctrl-0 = <&host_drv>;
  310. vbus_drv-gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
  311. status = "okay";
  312. };
  313. &usb_host0_ehci {
  314. status = "okay";
  315. };
  316. &usb_host1 {
  317. status = "okay";
  318. };
  319. &usb_otg {
  320. status = "okay";
  321. };
  322. &usb_hsic {
  323. status = "okay";
  324. };
  325. &vopb {
  326. status = "okay";
  327. };
  328. &vopb_mmu {
  329. status = "okay";
  330. };
  331. &vopl {
  332. status = "okay";
  333. };
  334. &vopl_mmu {
  335. status = "okay";
  336. };