rk3288-evb.dtsi 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379
  1. /*
  2. * (C) Copyright 2016 Rockchip Electronics Co., Ltd
  3. *
  4. * SPDX-License-Identifier: GPL-2.0+ X11
  5. */
  6. #include "rk3288.dtsi"
  7. / {
  8. memory {
  9. reg = <0 0x80000000>;
  10. };
  11. keys: gpio-keys {
  12. compatible = "gpio-keys";
  13. #address-cells = <1>;
  14. #size-cells = <0>;
  15. button@0 {
  16. gpio-key,wakeup = <1>;
  17. gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
  18. label = "GPIO Power";
  19. linux,code = <116>;
  20. pinctrl-names = "default";
  21. pinctrl-0 = <&pwr_key>;
  22. };
  23. };
  24. vcc_sys: vsys-regulator {
  25. compatible = "regulator-fixed";
  26. regulator-name = "vcc_sys";
  27. regulator-min-microvolt = <5000000>;
  28. regulator-max-microvolt = <5000000>;
  29. regulator-always-on;
  30. regulator-boot-on;
  31. };
  32. vcc_flash: flash-regulator {
  33. compatible = "regulator-fixed";
  34. regulator-name = "vcc_flash";
  35. regulator-min-microvolt = <1800000>;
  36. regulator-max-microvolt = <1800000>;
  37. vin-supply = <&vcc_io>;
  38. };
  39. vcc_5v: usb-regulator {
  40. compatible = "regulator-fixed";
  41. regulator-name = "vcc_5v";
  42. regulator-min-microvolt = <5000000>;
  43. regulator-max-microvolt = <5000000>;
  44. regulator-always-on;
  45. regulator-boot-on;
  46. vin-supply = <&vcc_sys>;
  47. };
  48. vcc_host_5v: usb-host-regulator {
  49. compatible = "regulator-fixed";
  50. enable-active-high;
  51. gpio = <&gpio0 14 GPIO_ACTIVE_HIGH>;
  52. pinctrl-names = "default";
  53. pinctrl-0 = <&host_vbus_drv>;
  54. regulator-name = "vcc_host_5v";
  55. regulator-min-microvolt = <5000000>;
  56. regulator-max-microvolt = <5000000>;
  57. regulator-always-on;
  58. vin-supply = <&vcc_5v>;
  59. };
  60. vcc_otg_5v: usb-otg-regulator {
  61. compatible = "regulator-fixed";
  62. enable-active-high;
  63. gpio = <&gpio0 12 GPIO_ACTIVE_HIGH>;
  64. pinctrl-names = "default";
  65. pinctrl-0 = <&otg_vbus_drv>;
  66. regulator-name = "vcc_otg_5v";
  67. regulator-min-microvolt = <5000000>;
  68. regulator-max-microvolt = <5000000>;
  69. regulator-always-on;
  70. vin-supply = <&vcc_5v>;
  71. };
  72. };
  73. &cpu0 {
  74. cpu0-supply = <&vdd_cpu>;
  75. };
  76. &emmc {
  77. broken-cd;
  78. bus-width = <8>;
  79. cap-mmc-highspeed;
  80. disable-wp;
  81. non-removable;
  82. num-slots = <1>;
  83. pinctrl-names = "default";
  84. pinctrl-0 = <&emmc_clk>, <&emmc_cmd>, <&emmc_pwr>, <&emmc_bus8>;
  85. vmmc-supply = <&vcc_io>;
  86. vqmmc-supply = <&vcc_flash>;
  87. status = "okay";
  88. };
  89. &hdmi {
  90. ddc-i2c-bus = <&i2c5>;
  91. status = "okay";
  92. };
  93. &i2c0 {
  94. clock-frequency = <400000>;
  95. status = "okay";
  96. vdd_cpu: syr827@40 {
  97. compatible = "silergy,syr827";
  98. fcs,suspend-voltage-selector = <1>;
  99. reg = <0x40>;
  100. regulator-name = "vdd_cpu";
  101. regulator-min-microvolt = <850000>;
  102. regulator-max-microvolt = <1350000>;
  103. regulator-always-on;
  104. regulator-boot-on;
  105. vin-supply = <&vcc_sys>;
  106. };
  107. vdd_gpu: syr828@41 {
  108. compatible = "silergy,syr828";
  109. fcs,suspend-voltage-selector = <1>;
  110. reg = <0x41>;
  111. regulator-name = "vdd_gpu";
  112. regulator-min-microvolt = <850000>;
  113. regulator-max-microvolt = <1350000>;
  114. regulator-always-on;
  115. vin-supply = <&vcc_sys>;
  116. };
  117. hym8563: hym8563@51 {
  118. compatible = "haoyu,hym8563";
  119. reg = <0x51>;
  120. #clock-cells = <0>;
  121. clock-frequency = <32768>;
  122. clock-output-names = "xin32k";
  123. interrupt-parent = <&gpio7>;
  124. interrupts = <4 IRQ_TYPE_EDGE_FALLING>;
  125. pinctrl-names = "default";
  126. pinctrl-0 = <&rtc_int>;
  127. };
  128. act8846: act8846@5a {
  129. compatible = "active-semi,act8846";
  130. reg = <0x5a>;
  131. pinctrl-names = "default";
  132. pinctrl-0 = <&pwr_hold>;
  133. system-power-controller;
  134. regulators {
  135. vcc_ddr: REG1 {
  136. regulator-name = "vcc_ddr";
  137. regulator-min-microvolt = <1200000>;
  138. regulator-max-microvolt = <1200000>;
  139. regulator-always-on;
  140. };
  141. vcc_io: REG2 {
  142. regulator-name = "vcc_io";
  143. regulator-min-microvolt = <3300000>;
  144. regulator-max-microvolt = <3300000>;
  145. regulator-always-on;
  146. };
  147. vdd_log: REG3 {
  148. regulator-name = "vdd_log";
  149. regulator-min-microvolt = <1100000>;
  150. regulator-max-microvolt = <1100000>;
  151. regulator-always-on;
  152. };
  153. vcc_20: REG4 {
  154. regulator-name = "vcc_20";
  155. regulator-min-microvolt = <2000000>;
  156. regulator-max-microvolt = <2000000>;
  157. regulator-always-on;
  158. };
  159. vccio_sd: REG5 {
  160. regulator-name = "vccio_sd";
  161. regulator-min-microvolt = <3300000>;
  162. regulator-max-microvolt = <3300000>;
  163. regulator-always-on;
  164. };
  165. vdd10_lcd: REG6 {
  166. regulator-name = "vdd10_lcd";
  167. regulator-min-microvolt = <1000000>;
  168. regulator-max-microvolt = <1000000>;
  169. regulator-always-on;
  170. };
  171. vcca_codec: REG7 {
  172. regulator-name = "vcca_codec";
  173. regulator-min-microvolt = <3300000>;
  174. regulator-max-microvolt = <3300000>;
  175. };
  176. vcc_tp: REG8 {
  177. regulator-name = "vcca_33";
  178. regulator-min-microvolt = <3300000>;
  179. regulator-max-microvolt = <3300000>;
  180. };
  181. vccio_pmu: REG9 {
  182. regulator-name = "vccio_pmu";
  183. regulator-min-microvolt = <3300000>;
  184. regulator-max-microvolt = <3300000>;
  185. };
  186. vdd_10: REG10 {
  187. regulator-name = "vdd_10";
  188. regulator-min-microvolt = <1000000>;
  189. regulator-max-microvolt = <1000000>;
  190. regulator-always-on;
  191. };
  192. vcc_18: REG11 {
  193. regulator-name = "vcc_18";
  194. regulator-min-microvolt = <1800000>;
  195. regulator-max-microvolt = <1800000>;
  196. regulator-always-on;
  197. };
  198. vcc18_lcd: REG12 {
  199. regulator-name = "vcc18_lcd";
  200. regulator-min-microvolt = <1800000>;
  201. regulator-max-microvolt = <1800000>;
  202. regulator-always-on;
  203. };
  204. };
  205. };
  206. };
  207. &i2c1 {
  208. status = "okay";
  209. };
  210. &i2c2 {
  211. status = "okay";
  212. };
  213. &i2c4 {
  214. status = "okay";
  215. };
  216. &i2c5 {
  217. status = "okay";
  218. };
  219. &pinctrl {
  220. pcfg_output_high: pcfg-output-high {
  221. output-high;
  222. };
  223. pcfg_output_low: pcfg-output-low {
  224. output-low;
  225. };
  226. act8846 {
  227. pwr_hold: pwr-hold {
  228. rockchip,pins = <0 9 RK_FUNC_GPIO &pcfg_output_high>;
  229. };
  230. };
  231. hym8563 {
  232. rtc_int: rtc-int {
  233. rockchip,pins = <0 4 RK_FUNC_GPIO &pcfg_pull_up>;
  234. };
  235. };
  236. keys {
  237. pwr_key: pwr-key {
  238. rockchip,pins = <0 5 RK_FUNC_GPIO &pcfg_pull_up>;
  239. };
  240. };
  241. sdmmc {
  242. sdmmc_pwr: sdmmc-pwr {
  243. rockchip,pins = <7 11 RK_FUNC_GPIO &pcfg_pull_none>;
  244. };
  245. };
  246. usb_host {
  247. host_vbus_drv: host-vbus-drv {
  248. rockchip,pins = <0 14 RK_FUNC_GPIO &pcfg_pull_none>;
  249. };
  250. };
  251. usb_otg {
  252. otg_vbus_drv: otg-vbus-drv {
  253. rockchip,pins = <0 12 RK_FUNC_GPIO &pcfg_pull_none>;
  254. };
  255. };
  256. };
  257. &saradc {
  258. vref-supply = <&vcc_18>;
  259. status = "okay";
  260. };
  261. &sdio0 {
  262. broken-cd;
  263. bus-width = <4>;
  264. disable-wp;
  265. non-removable;
  266. num-slots = <1>;
  267. pinctrl-names = "default";
  268. pinctrl-0 = <&sdio0_bus4>, <&sdio0_cmd>, <&sdio0_clk>;
  269. vmmc-supply = <&vcc_18>;
  270. status = "disabled";
  271. };
  272. &sdmmc {
  273. bus-width = <4>;
  274. cap-mmc-highspeed;
  275. cap-sd-highspeed;
  276. card-detect-delay = <200>;
  277. disable-wp;
  278. num-slots = <1>;
  279. pinctrl-names = "default";
  280. pinctrl-0 = <&sdmmc_clk>, <&sdmmc_cmd>, <&sdmmc_cd>, <&sdmmc_bus4>;
  281. vmmc-supply = <&vccio_sd>;
  282. status = "okay";
  283. };
  284. &spi0 {
  285. pinctrl-names = "default";
  286. pinctrl-0 = <&spi0_clk>, <&spi0_cs0>, <&spi0_tx>, <&spi0_rx>, <&spi0_cs1>;
  287. status = "okay";
  288. };
  289. &uart0 {
  290. pinctrl-names = "default";
  291. pinctrl-0 = <&uart0_xfer>, <&uart0_cts>, <&uart0_rts>;
  292. status = "okay";
  293. };
  294. &uart1 {
  295. status = "okay";
  296. };
  297. &uart2 {
  298. status = "okay";
  299. };
  300. &uart3 {
  301. status = "okay";
  302. };
  303. &usb_host1 {
  304. status = "okay";
  305. };
  306. &usb_otg {
  307. status = "okay";
  308. };
  309. &vopb {
  310. status = "okay";
  311. };
  312. &vopb_mmu {
  313. status = "okay";
  314. };
  315. &vopl {
  316. status = "okay";
  317. };
  318. &vopl_mmu {
  319. status = "okay";
  320. };
  321. &wdt {
  322. status = "okay";
  323. };