rk3188-radxarock.dts 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377
  1. // SPDX-License-Identifier: GPL-2.0+ OR X11
  2. /*
  3. * Copyright (c) 2013 Heiko Stuebner <heiko@sntech.de>
  4. */
  5. /dts-v1/;
  6. #include <dt-bindings/input/input.h>
  7. #include "rk3188.dtsi"
  8. #include "rk3188-radxarock-u-boot.dtsi"
  9. / {
  10. model = "Radxa Rock";
  11. compatible = "radxa,rock", "rockchip,rk3188";
  12. chosen {
  13. /* stdout-path = &uart2; */
  14. stdout-path = "serial2:115200n8";
  15. };
  16. config {
  17. u-boot,dm-pre-reloc;
  18. u-boot,boot-led = "rock:red:power";
  19. };
  20. memory {
  21. device_type = "memory";
  22. reg = <0x60000000 0x80000000>;
  23. };
  24. gpio-keys {
  25. compatible = "gpio-keys";
  26. autorepeat;
  27. power {
  28. gpios = <&gpio0 4 GPIO_ACTIVE_LOW>;
  29. linux,code = <KEY_POWER>;
  30. label = "GPIO Key Power";
  31. linux,input-type = <1>;
  32. wakeup-source;
  33. debounce-interval = <100>;
  34. };
  35. };
  36. gpio-leds {
  37. compatible = "gpio-leds";
  38. green {
  39. label = "rock:green:user1";
  40. gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
  41. default-state = "off";
  42. };
  43. blue {
  44. label = "rock:blue:user2";
  45. gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
  46. default-state = "off";
  47. };
  48. sleep {
  49. label = "rock:red:power";
  50. gpios = <&gpio0 15 0>;
  51. default-state = "off";
  52. };
  53. };
  54. sound {
  55. compatible = "simple-audio-card";
  56. simple-audio-card,name = "SPDIF";
  57. simple-audio-card,dai-link@1 { /* S/PDIF - S/PDIF */
  58. cpu { sound-dai = <&spdif>; };
  59. codec { sound-dai = <&spdif_out>; };
  60. };
  61. };
  62. spdif_out: spdif-out {
  63. compatible = "linux,spdif-dit";
  64. #sound-dai-cells = <0>;
  65. };
  66. ir_recv: gpio-ir-receiver {
  67. compatible = "gpio-ir-receiver";
  68. gpios = <&gpio0 10 1>;
  69. pinctrl-names = "default";
  70. pinctrl-0 = <&ir_recv_pin>;
  71. };
  72. vcc_otg: usb-otg-regulator {
  73. compatible = "regulator-fixed";
  74. enable-active-high;
  75. gpio = <&gpio2 31 GPIO_ACTIVE_HIGH>;
  76. pinctrl-names = "default";
  77. pinctrl-0 = <&otg_vbus_drv>;
  78. regulator-name = "otg-vbus";
  79. regulator-min-microvolt = <5000000>;
  80. regulator-max-microvolt = <5000000>;
  81. regulator-always-on;
  82. regulator-boot-on;
  83. };
  84. vcc_sd0: sdmmc-regulator {
  85. compatible = "regulator-fixed";
  86. regulator-name = "sdmmc-supply";
  87. regulator-min-microvolt = <3300000>;
  88. regulator-max-microvolt = <3300000>;
  89. gpio = <&gpio3 1 GPIO_ACTIVE_LOW>;
  90. startup-delay-us = <100000>;
  91. vin-supply = <&vcc_io>;
  92. };
  93. vcc_host: usb-host-regulator {
  94. compatible = "regulator-fixed";
  95. enable-active-high;
  96. gpio = <&gpio0 3 GPIO_ACTIVE_HIGH>;
  97. pinctrl-names = "default";
  98. pinctrl-0 = <&host_vbus_drv>;
  99. regulator-name = "host-pwr";
  100. regulator-min-microvolt = <5000000>;
  101. regulator-max-microvolt = <5000000>;
  102. regulator-always-on;
  103. regulator-boot-on;
  104. };
  105. vsys: vsys-regulator {
  106. compatible = "regulator-fixed";
  107. regulator-name = "vsys";
  108. regulator-min-microvolt = <5000000>;
  109. regulator-max-microvolt = <5000000>;
  110. regulator-boot-on;
  111. };
  112. };
  113. &dmc {
  114. rockchip,pctl-timing = <0x12c 0xc8 0x1f4 0x1e 0x4e 0x4 0x69 0x6
  115. 0x3 0x0 0x6 0x5 0xc 0x10 0x6 0x4
  116. 0x4 0x5 0x4 0x200 0x3 0xa 0x40 0x0
  117. 0x1 0x5 0x5 0x3 0xc 0x1e 0x100 0x0
  118. 0x4 0x0>;
  119. rockchip,phy-timing = <0x208c6690 0x690878 0x10022a00
  120. 0x220 0x40 0x0 0x0>;
  121. rockchip,sdram-params = <0x24716310 0 2 300000000 3 9 0>;
  122. };
  123. &emac {
  124. status = "okay";
  125. pinctrl-names = "default";
  126. pinctrl-0 = <&emac_xfer>, <&emac_mdio>, <&phy_int>;
  127. phy = <&phy0>;
  128. phy-supply = <&vcc_rmii>;
  129. phy0: ethernet-phy@0 {
  130. reg = <0>;
  131. interrupt-parent = <&gpio3>;
  132. interrupts = <26 IRQ_TYPE_LEVEL_LOW>;
  133. };
  134. };
  135. &cpu0 {
  136. cpu0-supply = <&vdd_arm>;
  137. };
  138. &i2c1 {
  139. status = "okay";
  140. clock-frequency = <400000>;
  141. rtc@51 {
  142. compatible = "haoyu,hym8563";
  143. reg = <0x51>;
  144. interrupt-parent = <&gpio0>;
  145. interrupts = <13 IRQ_TYPE_EDGE_FALLING>;
  146. pinctrl-names = "default";
  147. pinctrl-0 = <&rtc_int>;
  148. #clock-cells = <0>;
  149. clock-output-names = "xin32k";
  150. };
  151. act8846: act8846@5a {
  152. compatible = "active-semi,act8846";
  153. reg = <0x5a>;
  154. status = "okay";
  155. system-power-controller;
  156. pinctrl-names = "default";
  157. pinctrl-0 = <&act8846_dvs0_ctl>;
  158. vp1-supply = <&vsys>;
  159. vp2-supply = <&vsys>;
  160. vp3-supply = <&vsys>;
  161. vp4-supply = <&vsys>;
  162. inl1-supply = <&vcc_io>;
  163. inl2-supply = <&vsys>;
  164. inl3-supply = <&vsys>;
  165. regulators {
  166. vcc_ddr: REG1 {
  167. regulator-name = "VCC_DDR";
  168. regulator-min-microvolt = <1200000>;
  169. regulator-max-microvolt = <1200000>;
  170. regulator-always-on;
  171. };
  172. vdd_log: REG2 {
  173. regulator-name = "VDD_LOG";
  174. regulator-min-microvolt = <1000000>;
  175. regulator-max-microvolt = <1000000>;
  176. regulator-always-on;
  177. };
  178. vdd_arm: REG3 {
  179. regulator-name = "VDD_ARM";
  180. regulator-min-microvolt = <875000>;
  181. regulator-max-microvolt = <1350000>;
  182. regulator-always-on;
  183. };
  184. vcc_io: REG4 {
  185. regulator-name = "VCC_IO";
  186. regulator-min-microvolt = <3300000>;
  187. regulator-max-microvolt = <3300000>;
  188. regulator-always-on;
  189. };
  190. vdd_10: REG5 {
  191. regulator-name = "VDD_10";
  192. regulator-min-microvolt = <1000000>;
  193. regulator-max-microvolt = <1000000>;
  194. regulator-always-on;
  195. };
  196. vdd_hdmi: REG6 {
  197. regulator-name = "VDD_HDMI";
  198. regulator-min-microvolt = <2500000>;
  199. regulator-max-microvolt = <2500000>;
  200. regulator-always-on;
  201. };
  202. vcc18: REG7 {
  203. regulator-name = "VCC_18";
  204. regulator-min-microvolt = <1800000>;
  205. regulator-max-microvolt = <1800000>;
  206. regulator-always-on;
  207. };
  208. vcca_33: REG8 {
  209. regulator-name = "VCCA_33";
  210. regulator-min-microvolt = <3300000>;
  211. regulator-max-microvolt = <3300000>;
  212. regulator-always-on;
  213. };
  214. vcc_rmii: REG9 {
  215. regulator-name = "VCC_RMII";
  216. regulator-min-microvolt = <3300000>;
  217. regulator-max-microvolt = <3300000>;
  218. };
  219. vccio_wl: REG10 {
  220. regulator-name = "VCCIO_WL";
  221. regulator-min-microvolt = <3300000>;
  222. regulator-max-microvolt = <3300000>;
  223. regulator-always-on;
  224. };
  225. vcc_18: REG11 {
  226. regulator-name = "VCC18_IO";
  227. regulator-min-microvolt = <1800000>;
  228. regulator-max-microvolt = <1800000>;
  229. regulator-always-on;
  230. };
  231. vcc28: REG12 {
  232. regulator-name = "VCC_28";
  233. regulator-min-microvolt = <2800000>;
  234. regulator-max-microvolt = <2800000>;
  235. regulator-always-on;
  236. };
  237. };
  238. };
  239. };
  240. &mmc0 {
  241. num-slots = <1>;
  242. status = "okay";
  243. pinctrl-names = "default";
  244. pinctrl-0 = <&sd0_clk>, <&sd0_cmd>, <&sd0_cd>, <&sd0_bus4>;
  245. vmmc-supply = <&vcc_sd0>;
  246. bus-width = <4>;
  247. cap-mmc-highspeed;
  248. cap-sd-highspeed;
  249. disable-wp;
  250. };
  251. &pwm1 {
  252. status = "okay";
  253. };
  254. &pwm2 {
  255. status = "okay";
  256. };
  257. &pwm3 {
  258. status = "okay";
  259. };
  260. &pinctrl {
  261. pcfg_output_low: pcfg-output-low {
  262. output-low;
  263. };
  264. act8846 {
  265. act8846_dvs0_ctl: act8846-dvs0-ctl {
  266. rockchip,pins = <RK_GPIO3 27 RK_FUNC_GPIO &pcfg_output_low>;
  267. };
  268. };
  269. hym8563 {
  270. rtc_int: rtc-int {
  271. rockchip,pins = <RK_GPIO0 0 RK_FUNC_GPIO &pcfg_pull_up>;
  272. };
  273. };
  274. lan8720a {
  275. phy_int: phy-int {
  276. rockchip,pins = <RK_GPIO3 26 RK_FUNC_GPIO &pcfg_pull_up>;
  277. };
  278. };
  279. ir-receiver {
  280. ir_recv_pin: ir-recv-pin {
  281. rockchip,pins = <RK_GPIO0 10 RK_FUNC_GPIO &pcfg_pull_none>;
  282. };
  283. };
  284. usb {
  285. host_vbus_drv: host-vbus-drv {
  286. rockchip,pins = <0 3 RK_FUNC_GPIO &pcfg_pull_none>;
  287. };
  288. otg_vbus_drv: otg-vbus-drv {
  289. rockchip,pins = <2 31 RK_FUNC_GPIO &pcfg_pull_none>;
  290. };
  291. };
  292. };
  293. &spdif {
  294. status = "okay";
  295. };
  296. &uart0 {
  297. status = "okay";
  298. };
  299. &uart1 {
  300. status = "okay";
  301. };
  302. &uart3 {
  303. status = "okay";
  304. };
  305. &usbphy {
  306. status = "okay";
  307. };
  308. &usb_host {
  309. status = "okay";
  310. };
  311. &usb_otg {
  312. status = "okay";
  313. };
  314. &wdt {
  315. status = "okay";
  316. };