rk3066a-rayeager.dts 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489
  1. /*
  2. * Copyright (c) 2014, 2015 FUKAUMI Naoki <naobsd@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. /dts-v1/;
  43. #include <dt-bindings/input/input.h>
  44. #include "rk3066a.dtsi"
  45. / {
  46. model = "Rayeager PX2";
  47. compatible = "chipspark,rayeager-px2", "rockchip,rk3066a";
  48. memory {
  49. device_type = "memory";
  50. reg = <0x60000000 0x40000000>;
  51. };
  52. ir: ir-receiver {
  53. compatible = "gpio-ir-receiver";
  54. gpios = <&gpio6 1 GPIO_ACTIVE_LOW>;
  55. pinctrl-names = "default";
  56. pinctrl-0 = <&ir_int>;
  57. };
  58. keys: gpio-keys {
  59. compatible = "gpio-keys";
  60. power {
  61. wakeup-source;
  62. gpios = <&gpio6 2 GPIO_ACTIVE_LOW>;
  63. label = "GPIO Power";
  64. linux,code = <KEY_POWER>;
  65. pinctrl-names = "default";
  66. pinctrl-0 = <&pwr_key>;
  67. };
  68. };
  69. vdd_log: vdd-log {
  70. compatible = "pwm-regulator";
  71. pwms = <&pwm3 0 1000>;
  72. regulator-name = "vdd_log";
  73. regulator-min-microvolt = <1200000>;
  74. regulator-max-microvolt = <1200000>;
  75. regulator-always-on;
  76. voltage-table = <1000000 100>,
  77. <1200000 42>;
  78. status = "okay";
  79. };
  80. vsys: vsys-regulator {
  81. compatible = "regulator-fixed";
  82. regulator-name = "vsys";
  83. regulator-min-microvolt = <5000000>;
  84. regulator-max-microvolt = <5000000>;
  85. regulator-always-on;
  86. regulator-boot-on;
  87. };
  88. /* input for 5V_STDBY is VSYS or DC5V, selectable by jumper J4 */
  89. vcc_stdby: 5v-stdby-regulator {
  90. compatible = "regulator-fixed";
  91. regulator-name = "5v_stdby";
  92. regulator-min-microvolt = <5000000>;
  93. regulator-max-microvolt = <5000000>;
  94. regulator-always-on;
  95. regulator-boot-on;
  96. };
  97. vcc_emmc: emmc-regulator {
  98. compatible = "regulator-fixed";
  99. regulator-name = "emmc_vccq";
  100. regulator-min-microvolt = <3000000>;
  101. regulator-max-microvolt = <3000000>;
  102. vin-supply = <&vsys>;
  103. };
  104. vcc_sata: sata-regulator {
  105. compatible = "regulator-fixed";
  106. enable-active-high;
  107. gpio = <&gpio4 22 GPIO_ACTIVE_HIGH>;
  108. pinctrl-names = "default";
  109. pinctrl-0 = <&sata_pwr>;
  110. regulator-name = "usb_5v";
  111. regulator-min-microvolt = <5000000>;
  112. regulator-max-microvolt = <5000000>;
  113. regulator-always-on;
  114. vin-supply = <&vcc_stdby>;
  115. };
  116. vcc_sd: sdmmc-regulator {
  117. compatible = "regulator-fixed";
  118. gpio = <&gpio3 7 GPIO_ACTIVE_LOW>;
  119. pinctrl-names = "default";
  120. pinctrl-0 = <&sdmmc_pwr>;
  121. regulator-name = "vcc_sd";
  122. regulator-min-microvolt = <3300000>;
  123. regulator-max-microvolt = <3300000>;
  124. startup-delay-us = <100000>;
  125. vin-supply = <&vcc_io>;
  126. };
  127. vcc_host: usb-host-regulator {
  128. compatible = "regulator-fixed";
  129. enable-active-high;
  130. gpio = <&gpio0 6 GPIO_ACTIVE_HIGH>;
  131. pinctrl-names = "default";
  132. pinctrl-0 = <&host_drv>;
  133. regulator-name = "host-pwr";
  134. regulator-min-microvolt = <5000000>;
  135. regulator-max-microvolt = <5000000>;
  136. regulator-always-on;
  137. vin-supply = <&vcc_stdby>;
  138. };
  139. vcc_otg: usb-otg-regulator {
  140. compatible = "regulator-fixed";
  141. enable-active-high;
  142. gpio = <&gpio0 5 GPIO_ACTIVE_HIGH>;
  143. pinctrl-names = "default";
  144. pinctrl-0 = <&otg_drv>;
  145. regulator-name = "vcc_otg";
  146. regulator-min-microvolt = <5000000>;
  147. regulator-max-microvolt = <5000000>;
  148. regulator-always-on;
  149. vin-supply = <&vcc_stdby>;
  150. };
  151. };
  152. &cpu0 {
  153. cpu0-supply = <&vdd_arm>;
  154. };
  155. &emac {
  156. pinctrl-names = "default";
  157. pinctrl-0 = <&emac_xfer>, <&emac_mdio>, <&rmii_rst>;
  158. phy = <&phy0>;
  159. phy-supply = <&vcc_rmii>;
  160. status = "okay";
  161. phy0: ethernet-phy@0 {
  162. reg = <0>;
  163. };
  164. };
  165. &emmc {
  166. bus-width = <8>;
  167. cap-mmc-highspeed;
  168. disable-wp;
  169. non-removable;
  170. num-slots = <1>;
  171. pinctrl-names = "default";
  172. pinctrl-0 = <&emmc_clk>, <&emmc_cmd>, <&emmc_rst>;
  173. vmmc-supply = <&vcc_emmc>;
  174. vqmmc-supply = <&vcc_emmc>;
  175. status = "okay";
  176. };
  177. &i2c0 {
  178. clock-frequency = <400000>;
  179. status = "okay";
  180. ak8963: ak8963@0d {
  181. compatible = "asahi-kasei,ak8975";
  182. reg = <0x0d>;
  183. interrupt-parent = <&gpio4>;
  184. interrupts = <17 IRQ_TYPE_EDGE_RISING>;
  185. pinctrl-names = "default";
  186. pinctrl-0 = <&comp_int>;
  187. };
  188. mma8452: mma8452@1d {
  189. compatible = "fsl,mma8452";
  190. reg = <0x1d>;
  191. interrupt-parent = <&gpio4>;
  192. interrupts = <16 IRQ_TYPE_EDGE_RISING>;
  193. pinctrl-names = "default";
  194. pinctrl-0 = <&gsensor_int>;
  195. };
  196. };
  197. &i2c1 {
  198. clock-frequency = <400000>;
  199. status = "okay";
  200. tps: tps@2d {
  201. reg = <0x2d>;
  202. interrupt-parent = <&gpio6>;
  203. interrupts = <4 IRQ_TYPE_EDGE_RISING>;
  204. pinctrl-names = "default";
  205. pinctrl-0 = <&pmic_int>, <&pwr_hold>;
  206. vcc1-supply = <&vsys>;
  207. vcc2-supply = <&vsys>;
  208. vcc3-supply = <&vsys>;
  209. vcc4-supply = <&vsys>;
  210. vcc5-supply = <&vcc_io>;
  211. vcc6-supply = <&vcc_io>;
  212. vcc7-supply = <&vsys>;
  213. vccio-supply = <&vsys>;
  214. regulators {
  215. vcc_rtc: regulator@0 {
  216. regulator-name = "vcc_rtc";
  217. regulator-always-on;
  218. };
  219. vcc_io: regulator@1 {
  220. regulator-name = "vcc_io";
  221. regulator-min-microvolt = <3300000>;
  222. regulator-max-microvolt = <3300000>;
  223. regulator-always-on;
  224. };
  225. vdd_arm: regulator@2 {
  226. regulator-name = "vdd_arm";
  227. regulator-min-microvolt = <600000>;
  228. regulator-max-microvolt = <1500000>;
  229. regulator-always-on;
  230. regulator-boot-on;
  231. };
  232. vcc_ddr: regulator@3 {
  233. regulator-name = "vcc_ddr";
  234. regulator-min-microvolt = <600000>;
  235. regulator-max-microvolt = <1500000>;
  236. regulator-always-on;
  237. regulator-boot-on;
  238. };
  239. vcc18: regulator@5 {
  240. regulator-name = "vcc18";
  241. regulator-min-microvolt = <1800000>;
  242. regulator-max-microvolt = <1800000>;
  243. regulator-always-on;
  244. };
  245. vdd_11: regulator@6 {
  246. regulator-name = "vdd_11";
  247. regulator-min-microvolt = <1100000>;
  248. regulator-max-microvolt = <1100000>;
  249. regulator-always-on;
  250. };
  251. vcc_25: regulator@7 {
  252. regulator-name = "vcc_25";
  253. regulator-min-microvolt = <2500000>;
  254. regulator-max-microvolt = <2500000>;
  255. regulator-always-on;
  256. };
  257. vccio_wl: regulator@8 {
  258. regulator-name = "vccio_wl";
  259. regulator-min-microvolt = <1800000>;
  260. regulator-max-microvolt = <1800000>;
  261. };
  262. vcc25_hdmi: regulator@9 {
  263. regulator-name = "vcc25_hdmi";
  264. regulator-min-microvolt = <2500000>;
  265. regulator-max-microvolt = <2500000>;
  266. };
  267. vcca_33: regulator@10 {
  268. regulator-name = "vcca_33";
  269. regulator-min-microvolt = <3300000>;
  270. regulator-max-microvolt = <3300000>;
  271. };
  272. vcc_rmii: regulator@11 {
  273. regulator-name = "vcc_rmii";
  274. regulator-min-microvolt = <3300000>;
  275. regulator-max-microvolt = <3300000>;
  276. };
  277. vcc28_cif: regulator@12 {
  278. regulator-name = "vcc28_cif";
  279. regulator-min-microvolt = <2800000>;
  280. regulator-max-microvolt = <2800000>;
  281. };
  282. };
  283. };
  284. };
  285. #include "tps65910.dtsi"
  286. &i2c2 {
  287. status = "okay";
  288. };
  289. &i2c3 {
  290. status = "okay";
  291. };
  292. &i2c4 {
  293. status = "okay";
  294. };
  295. &mmc0 {
  296. bus-width = <4>;
  297. disable-wp;
  298. num-slots = <1>;
  299. pinctrl-names = "default";
  300. pinctrl-0 = <&sd0_clk>, <&sd0_cmd>, <&sd0_cd>, <&sd0_bus4>;
  301. vmmc-supply = <&vcc_sd>;
  302. cap-mmc-highspeed;
  303. cap-sd-highspeed;
  304. status = "okay";
  305. };
  306. &mmc1 {
  307. bus-width = <4>;
  308. disable-wp;
  309. non-removable;
  310. num-slots = <1>;
  311. pinctrl-names = "default";
  312. pinctrl-0 = <&sd1_clk>, <&sd1_cmd>, <&sd1_bus4>;
  313. vmmc-supply = <&vccio_wl>;
  314. status = "okay";
  315. };
  316. &pinctrl {
  317. pcfg_output_high: pcfg-output-high {
  318. output-high;
  319. };
  320. ak8963 {
  321. comp_int: comp-int {
  322. rockchip,pins = <4 17 RK_FUNC_GPIO &pcfg_pull_default>;
  323. };
  324. };
  325. emac {
  326. rmii_rst: rmii-rst {
  327. rockchip,pins = <1 30 RK_FUNC_GPIO &pcfg_output_high>;
  328. };
  329. };
  330. ir {
  331. ir_int: ir-int {
  332. rockchip,pins = <6 1 RK_FUNC_GPIO &pcfg_pull_default>;
  333. };
  334. };
  335. keys {
  336. pwr_key: pwr-key {
  337. rockchip,pins = <6 2 RK_FUNC_GPIO &pcfg_pull_default>;
  338. };
  339. };
  340. mma8452 {
  341. gsensor_int: gsensor-int {
  342. rockchip,pins = <4 16 RK_FUNC_GPIO &pcfg_pull_default>;
  343. };
  344. };
  345. mmc {
  346. sdmmc_pwr: sdmmc-pwr {
  347. rockchip,pins = <3 7 RK_FUNC_GPIO &pcfg_pull_default>;
  348. };
  349. };
  350. usb_host {
  351. host_drv: host-drv {
  352. rockchip,pins = <0 6 RK_FUNC_GPIO &pcfg_pull_default>;
  353. };
  354. hub_rst: hub-rst {
  355. rockchip,pins = <1 31 RK_FUNC_GPIO &pcfg_output_high>;
  356. };
  357. sata_pwr: sata-pwr {
  358. rockchip,pins = <4 22 RK_FUNC_GPIO &pcfg_pull_default>;
  359. };
  360. sata_reset: sata-reset {
  361. rockchip,pins = <0 13 RK_FUNC_GPIO &pcfg_output_high>;
  362. };
  363. };
  364. usb_otg {
  365. otg_drv: otg-drv {
  366. rockchip,pins = <0 5 RK_FUNC_GPIO &pcfg_pull_default>;
  367. };
  368. };
  369. tps {
  370. pmic_int: pmic-int {
  371. rockchip,pins = <6 4 RK_FUNC_GPIO &pcfg_pull_default>;
  372. };
  373. pwr_hold: pwr-hold {
  374. rockchip,pins = <6 8 RK_FUNC_GPIO &pcfg_output_high>;
  375. };
  376. };
  377. };
  378. &pwm1 {
  379. status = "okay";
  380. };
  381. &pwm2 {
  382. status = "okay";
  383. };
  384. &pwm3 {
  385. status = "okay";
  386. };
  387. &saradc {
  388. vref-supply = <&vcc_25>;
  389. status = "okay";
  390. };
  391. &spi0 {
  392. status = "okay";
  393. };
  394. &uart0 {
  395. pinctrl-names = "default";
  396. pinctrl-0 = <&uart0_xfer>, <&uart0_cts>, <&uart0_rts>;
  397. status = "okay";
  398. };
  399. &uart2 {
  400. status = "okay";
  401. };
  402. &uart3 {
  403. pinctrl-names = "default";
  404. pinctrl-0 = <&uart3_xfer>, <&uart3_cts>, <&uart3_rts>;
  405. status = "okay";
  406. };
  407. &usb_host {
  408. pinctrl-names = "default";
  409. pinctrl-0 = <&hub_rst>, <&sata_reset>;
  410. status = "okay";
  411. };
  412. &usbphy {
  413. status = "okay";
  414. };
  415. &usb_otg {
  416. status = "okay";
  417. };
  418. &wdt {
  419. status = "okay";
  420. };