rk3288-fennec.dtsi 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421
  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. #include "rk3288.dtsi"
  41. / {
  42. memory {
  43. reg = <0x0 0x80000000>;
  44. device_type = "memory";
  45. };
  46. ext_gmac: external-gmac-clock {
  47. compatible = "fixed-clock";
  48. #clock-cells = <0>;
  49. clock-frequency = <125000000>;
  50. clock-output-names = "ext_gmac";
  51. };
  52. vcc_sys: vsys-regulator {
  53. compatible = "regulator-fixed";
  54. regulator-name = "vcc_sys";
  55. regulator-min-microvolt = <5000000>;
  56. regulator-max-microvolt = <5000000>;
  57. regulator-always-on;
  58. regulator-boot-on;
  59. };
  60. };
  61. &cpu0 {
  62. cpu0-supply = <&vdd_cpu>;
  63. };
  64. &emmc {
  65. bus-width = <8>;
  66. cap-mmc-highspeed;
  67. disable-wp;
  68. non-removable;
  69. num-slots = <1>;
  70. pinctrl-names = "default";
  71. pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_pwr &emmc_bus8>;
  72. status = "okay";
  73. };
  74. &sdmmc {
  75. bus-width = <4>;
  76. cap-mmc-highspeed;
  77. cap-sd-highspeed;
  78. card-detect-delay = <200>;
  79. disable-wp;
  80. num-slots = <1>;
  81. pinctrl-names = "default";
  82. pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>;
  83. status = "okay";
  84. vmmc-supply = <&vcc_sd>;
  85. vqmmc-supply = <&vccio_sd>;
  86. };
  87. &gmac {
  88. assigned-clocks = <&cru SCLK_MAC>;
  89. assigned-clock-parents = <&ext_gmac>;
  90. clock_in_out = "input";
  91. pinctrl-names = "default";
  92. pinctrl-0 = <&rgmii_pins>, <&phy_rst>, <&phy_pmeb>, <&phy_int>;
  93. phy-supply = <&vcc_lan>;
  94. phy-mode = "rgmii";
  95. snps,reset-active-low;
  96. snps,reset-delays-us = <0 10000 1000000>;
  97. snps,reset-gpio = <&gpio4 8 GPIO_ACTIVE_LOW>;
  98. tx_delay = <0x30>;
  99. rx_delay = <0x10>;
  100. status = "okay";
  101. };
  102. &gpu {
  103. mali-supply = <&vdd_gpu>;
  104. status = "okay";
  105. };
  106. &hdmi {
  107. status = "okay";
  108. };
  109. &i2c0 {
  110. status = "okay";
  111. clock-frequency = <400000>;
  112. rk808: pmic@1b {
  113. compatible = "rockchip,rk808";
  114. reg = <0x1b>;
  115. interrupt-parent = <&gpio0>;
  116. interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
  117. #clock-cells = <1>;
  118. clock-output-names = "xin32k", "rk808-clkout2";
  119. pinctrl-names = "default";
  120. pinctrl-0 = <&pmic_int &global_pwroff>;
  121. rockchip,system-power-controller;
  122. wakeup-source;
  123. vcc1-supply = <&vcc_sys>;
  124. vcc2-supply = <&vcc_sys>;
  125. vcc3-supply = <&vcc_sys>;
  126. vcc4-supply = <&vcc_sys>;
  127. vcc6-supply = <&vcc_sys>;
  128. vcc7-supply = <&vcc_sys>;
  129. vcc8-supply = <&vcc_io>;
  130. vcc9-supply = <&vcc_io>;
  131. vcc10-supply = <&vcc_io>;
  132. vcc11-supply = <&vcc_io>;
  133. vcc12-supply = <&vcc_io>;
  134. vddio-supply = <&vcc_io>;
  135. regulators {
  136. vdd_cpu: DCDC_REG1 {
  137. regulator-always-on;
  138. regulator-boot-on;
  139. regulator-min-microvolt = <750000>;
  140. regulator-max-microvolt = <1350000>;
  141. regulator-name = "vdd_arm";
  142. regulator-state-mem {
  143. regulator-off-in-suspend;
  144. };
  145. };
  146. vdd_gpu: DCDC_REG2 {
  147. regulator-always-on;
  148. regulator-boot-on;
  149. regulator-min-microvolt = <850000>;
  150. regulator-max-microvolt = <1250000>;
  151. regulator-name = "vdd_gpu";
  152. regulator-state-mem {
  153. regulator-on-in-suspend;
  154. regulator-suspend-microvolt = <1000000>;
  155. };
  156. };
  157. vcc_ddr: DCDC_REG3 {
  158. regulator-always-on;
  159. regulator-boot-on;
  160. regulator-name = "vcc_ddr";
  161. regulator-state-mem {
  162. regulator-on-in-suspend;
  163. };
  164. };
  165. vcc_io: DCDC_REG4 {
  166. regulator-always-on;
  167. regulator-boot-on;
  168. regulator-min-microvolt = <3300000>;
  169. regulator-max-microvolt = <3300000>;
  170. regulator-name = "vcc_io";
  171. regulator-state-mem {
  172. regulator-on-in-suspend;
  173. regulator-suspend-microvolt = <3300000>;
  174. };
  175. };
  176. vccio_pmu: LDO_REG1 {
  177. regulator-always-on;
  178. regulator-boot-on;
  179. regulator-min-microvolt = <3300000>;
  180. regulator-max-microvolt = <3300000>;
  181. regulator-name = "vccio_pmu";
  182. regulator-state-mem {
  183. regulator-on-in-suspend;
  184. regulator-suspend-microvolt = <3300000>;
  185. };
  186. };
  187. vcca_33: LDO_REG2 {
  188. regulator-always-on;
  189. regulator-boot-on;
  190. regulator-min-microvolt = <3300000>;
  191. regulator-max-microvolt = <3300000>;
  192. regulator-name = "vcca_33";
  193. regulator-state-mem {
  194. regulator-off-in-suspend;
  195. };
  196. };
  197. vdd_10: LDO_REG3 {
  198. regulator-always-on;
  199. regulator-boot-on;
  200. regulator-min-microvolt = <1000000>;
  201. regulator-max-microvolt = <1000000>;
  202. regulator-name = "vdd_10";
  203. regulator-state-mem {
  204. regulator-on-in-suspend;
  205. regulator-suspend-microvolt = <1000000>;
  206. };
  207. };
  208. vcc_wl: LDO_REG4 {
  209. regulator-always-on;
  210. regulator-boot-on;
  211. regulator-min-microvolt = <1800000>;
  212. regulator-max-microvolt = <1800000>;
  213. regulator-name = "vcc_wl";
  214. regulator-state-mem {
  215. regulator-on-in-suspend;
  216. regulator-suspend-microvolt = <1800000>;
  217. };
  218. };
  219. vccio_sd: LDO_REG5 {
  220. regulator-always-on;
  221. regulator-boot-on;
  222. regulator-min-microvolt = <1800000>;
  223. regulator-max-microvolt = <3300000>;
  224. regulator-name = "vccio_sd";
  225. regulator-state-mem {
  226. regulator-on-in-suspend;
  227. regulator-suspend-microvolt = <3300000>;
  228. };
  229. };
  230. vdd10_lcd: LDO_REG6 {
  231. regulator-always-on;
  232. regulator-boot-on;
  233. regulator-min-microvolt = <1000000>;
  234. regulator-max-microvolt = <1000000>;
  235. regulator-name = "vdd10_lcd";
  236. regulator-state-mem {
  237. regulator-on-in-suspend;
  238. regulator-suspend-microvolt = <1000000>;
  239. };
  240. };
  241. vcc_18: LDO_REG7 {
  242. regulator-always-on;
  243. regulator-boot-on;
  244. regulator-min-microvolt = <1800000>;
  245. regulator-max-microvolt = <1800000>;
  246. regulator-name = "vcc_18";
  247. regulator-state-mem {
  248. regulator-on-in-suspend;
  249. regulator-suspend-microvolt = <1800000>;
  250. };
  251. };
  252. vcc18_lcd: LDO_REG8 {
  253. regulator-always-on;
  254. regulator-boot-on;
  255. regulator-min-microvolt = <1800000>;
  256. regulator-max-microvolt = <1800000>;
  257. regulator-name = "vcc18_lcd";
  258. regulator-state-mem {
  259. regulator-on-in-suspend;
  260. regulator-suspend-microvolt = <1800000>;
  261. };
  262. };
  263. vcc_sd: SWITCH_REG1 {
  264. regulator-always-on;
  265. regulator-boot-on;
  266. regulator-name = "vcc_sd";
  267. regulator-state-mem {
  268. regulator-on-in-suspend;
  269. };
  270. };
  271. vcc_lan: SWITCH_REG2 {
  272. regulator-always-on;
  273. regulator-boot-on;
  274. regulator-name = "vcc_lan";
  275. regulator-state-mem {
  276. regulator-on-in-suspend;
  277. };
  278. };
  279. };
  280. };
  281. };
  282. &pinctrl {
  283. pcfg_output_high: pcfg-output-high {
  284. output-high;
  285. };
  286. pcfg_output_low: pcfg-output-low {
  287. output-low;
  288. };
  289. pcfg_pull_none_drv_8ma: pcfg-pull-none-drv-8ma {
  290. drive-strength = <8>;
  291. };
  292. pcfg_pull_up_drv_8ma: pcfg-pull-up-drv-8ma {
  293. bias-pull-up;
  294. drive-strength = <8>;
  295. };
  296. gmac {
  297. phy_int: phy-int {
  298. rockchip,pins = <0 9 RK_FUNC_GPIO &pcfg_pull_up>;
  299. };
  300. phy_pmeb: phy-pmeb {
  301. rockchip,pins = <0 8 RK_FUNC_GPIO &pcfg_pull_up>;
  302. };
  303. phy_rst: phy-rst {
  304. rockchip,pins = <4 8 RK_FUNC_GPIO &pcfg_output_high>;
  305. };
  306. };
  307. pmic {
  308. pmic_int: pmic-int {
  309. rockchip,pins = <RK_GPIO0 4 RK_FUNC_GPIO &pcfg_pull_up>;
  310. };
  311. };
  312. sdmmc {
  313. sdmmc_bus4: sdmmc-bus4 {
  314. rockchip,pins = <6 16 RK_FUNC_1 &pcfg_pull_up_drv_8ma>,
  315. <6 17 RK_FUNC_1 &pcfg_pull_up_drv_8ma>,
  316. <6 18 RK_FUNC_1 &pcfg_pull_up_drv_8ma>,
  317. <6 19 RK_FUNC_1 &pcfg_pull_up_drv_8ma>;
  318. };
  319. sdmmc_clk: sdmmc-clk {
  320. rockchip,pins = <6 20 RK_FUNC_1 &pcfg_pull_none_drv_8ma>;
  321. };
  322. sdmmc_cmd: sdmmc-cmd {
  323. rockchip,pins = <6 21 RK_FUNC_1 &pcfg_pull_up_drv_8ma>;
  324. };
  325. sdmmc_pwr: sdmmc-pwr {
  326. rockchip,pins = <7 11 RK_FUNC_GPIO &pcfg_pull_none>;
  327. };
  328. };
  329. usbphy {
  330. host_drv: host-drv {
  331. rockchip,pins = <0 14 RK_FUNC_GPIO &pcfg_pull_none>;
  332. };
  333. };
  334. };
  335. &uart2 {
  336. status = "okay";
  337. };
  338. &usbphy {
  339. pinctrl-names = "default";
  340. pinctrl-0 = <&host_drv>;
  341. vbus_drv-gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
  342. status = "okay";
  343. };
  344. &usb_host0_ehci {
  345. status = "okay";
  346. };
  347. &usb_host1 {
  348. status = "okay";
  349. };
  350. &usb_otg {
  351. status = "okay";
  352. };
  353. &usb_hsic {
  354. status = "okay";
  355. };
  356. &vopb {
  357. status = "okay";
  358. };
  359. &vopb_mmu {
  360. status = "okay";
  361. };
  362. &vopl {
  363. status = "okay";
  364. };
  365. &vopl_mmu {
  366. status = "okay";
  367. };
  368. &vpu {
  369. status = "okay";
  370. };