rk3188-px3-evb.dts 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305
  1. // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2. /*
  3. * Copyright (c) 2016 Andy Yan <[email protected]>
  4. */
  5. /dts-v1/;
  6. #include <dt-bindings/input/input.h>
  7. #include "rk3188.dtsi"
  8. / {
  9. model = "Rockchip PX3-EVB";
  10. compatible = "rockchip,px3-evb", "rockchip,px3", "rockchip,rk3188";
  11. aliases {
  12. mmc0 = &mmc0;
  13. mmc1 = &emmc;
  14. };
  15. chosen {
  16. stdout-path = "serial2:115200n8";
  17. };
  18. memory@60000000 {
  19. reg = <0x60000000 0x80000000>;
  20. device_type = "memory";
  21. };
  22. gpio-keys {
  23. compatible = "gpio-keys";
  24. autorepeat;
  25. key-power {
  26. gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_LOW>;
  27. linux,code = <KEY_POWER>;
  28. label = "GPIO Key Power";
  29. linux,input-type = <1>;
  30. wakeup-source;
  31. debounce-interval = <100>;
  32. };
  33. };
  34. vcc_sys: vsys-regulator {
  35. compatible = "regulator-fixed";
  36. regulator-name = "vsys";
  37. regulator-min-microvolt = <5000000>;
  38. regulator-max-microvolt = <5000000>;
  39. regulator-boot-on;
  40. };
  41. };
  42. &cpu0 {
  43. cpu-supply = <&vdd_cpu>;
  44. };
  45. &cpu1 {
  46. cpu-supply = <&vdd_cpu>;
  47. };
  48. &cpu2 {
  49. cpu-supply = <&vdd_cpu>;
  50. };
  51. &cpu3 {
  52. cpu-supply = <&vdd_cpu>;
  53. };
  54. &emmc {
  55. bus-width = <8>;
  56. cap-mmc-highspeed;
  57. non-removable;
  58. pinctrl-names = "default";
  59. pinctrl-0 = <&emmc_clk>, <&emmc_cmd>, <&emmc_rst>;
  60. status = "okay";
  61. };
  62. &i2c0 {
  63. status = "okay";
  64. accelerometer@18 {
  65. compatible = "bosch,bma250";
  66. reg = <0x18>;
  67. interrupt-parent = <&gpio0>;
  68. interrupts = <RK_PB7 IRQ_TYPE_LEVEL_LOW>;
  69. };
  70. };
  71. &i2c1 {
  72. status = "okay";
  73. clock-frequency = <400000>;
  74. rk808: pmic@1c {
  75. compatible = "rockchip,rk818";
  76. reg = <0x1c>;
  77. interrupt-parent = <&gpio0>;
  78. interrupts = <RK_PB3 IRQ_TYPE_LEVEL_LOW>;
  79. rockchip,system-power-controller;
  80. wakeup-source;
  81. #clock-cells = <1>;
  82. clock-output-names = "xin32k", "rk808-clkout2";
  83. vcc1-supply = <&vcc_sys>;
  84. vcc2-supply = <&vcc_sys>;
  85. vcc3-supply = <&vcc_sys>;
  86. vcc4-supply = <&vcc_sys>;
  87. vcc6-supply = <&vcc_sys>;
  88. vcc7-supply = <&vcc_sys>;
  89. vcc8-supply = <&vcc_io>;
  90. vcc9-supply = <&vcc_io>;
  91. regulators {
  92. vdd_cpu: DCDC_REG1 {
  93. regulator-always-on;
  94. regulator-boot-on;
  95. regulator-min-microvolt = <750000>;
  96. regulator-max-microvolt = <1350000>;
  97. regulator-name = "vdd_arm";
  98. regulator-state-mem {
  99. regulator-off-in-suspend;
  100. };
  101. };
  102. vdd_gpu: DCDC_REG2 {
  103. regulator-always-on;
  104. regulator-boot-on;
  105. regulator-min-microvolt = <850000>;
  106. regulator-max-microvolt = <1250000>;
  107. regulator-name = "vdd_gpu";
  108. regulator-state-mem {
  109. regulator-on-in-suspend;
  110. regulator-suspend-microvolt = <1000000>;
  111. };
  112. };
  113. vcc_ddr: DCDC_REG3 {
  114. regulator-always-on;
  115. regulator-boot-on;
  116. regulator-name = "vcc_ddr";
  117. regulator-state-mem {
  118. regulator-on-in-suspend;
  119. };
  120. };
  121. vcc_io: DCDC_REG4 {
  122. regulator-always-on;
  123. regulator-boot-on;
  124. regulator-min-microvolt = <3300000>;
  125. regulator-max-microvolt = <3300000>;
  126. regulator-name = "vcc_io";
  127. regulator-state-mem {
  128. regulator-on-in-suspend;
  129. regulator-suspend-microvolt = <3300000>;
  130. };
  131. };
  132. vcc_cif: LDO_REG1 {
  133. regulator-min-microvolt = <3300000>;
  134. regulator-max-microvolt = <3300000>;
  135. regulator-name = "vcc_cif";
  136. };
  137. vcc_jetta33: LDO_REG2 {
  138. regulator-always-on;
  139. regulator-boot-on;
  140. regulator-min-microvolt = <3300000>;
  141. regulator-max-microvolt = <3300000>;
  142. regulator-name = "vcc_jetta33";
  143. };
  144. vdd_10: LDO_REG3 {
  145. regulator-always-on;
  146. regulator-boot-on;
  147. regulator-min-microvolt = <1000000>;
  148. regulator-max-microvolt = <1000000>;
  149. regulator-name = "vdd_10";
  150. regulator-state-mem {
  151. regulator-on-in-suspend;
  152. regulator-suspend-microvolt = <1000000>;
  153. };
  154. };
  155. lvds_12: LDO_REG4 {
  156. regulator-min-microvolt = <1800000>;
  157. regulator-max-microvolt = <1800000>;
  158. regulator-name = "lvds_12";
  159. };
  160. lvds_25: LDO_REG5 {
  161. regulator-min-microvolt = <1800000>;
  162. regulator-max-microvolt = <3300000>;
  163. regulator-name = "lvds_25";
  164. };
  165. cif_18: LDO_REG6 {
  166. regulator-min-microvolt = <1000000>;
  167. regulator-max-microvolt = <1000000>;
  168. regulator-name = "cif_18";
  169. };
  170. vcc_sd: LDO_REG7 {
  171. regulator-min-microvolt = <1800000>;
  172. regulator-max-microvolt = <3300000>;
  173. regulator-name = "vcc_sd";
  174. regulator-state-mem {
  175. regulator-on-in-suspend;
  176. regulator-suspend-microvolt = <3300000>;
  177. };
  178. };
  179. wl_18: LDO_REG8 {
  180. regulator-min-microvolt = <1800000>;
  181. regulator-max-microvolt = <3300000>;
  182. regulator-name = "wl_18";
  183. };
  184. lcd_33: SWITCH_REG {
  185. regulator-name = "lcd_33";
  186. };
  187. };
  188. };
  189. };
  190. &i2c2 {
  191. gsl1680: touchscreen@40 {
  192. compatible = "silead,gsl1680";
  193. reg = <0x40>;
  194. interrupt-parent = <&gpio1>;
  195. interrupts = <RK_PB7 IRQ_TYPE_EDGE_FALLING>;
  196. power-gpios = <&gpio0 RK_PB6 GPIO_ACTIVE_HIGH>;
  197. touchscreen-size-x = <800>;
  198. touchscreen-size-y = <1280>;
  199. silead,max-fingers = <5>;
  200. };
  201. };
  202. &mmc0 {
  203. status = "okay";
  204. pinctrl-names = "default";
  205. pinctrl-0 = <&sd0_clk>, <&sd0_cmd>, <&sd0_cd>, <&sd0_bus4>;
  206. vmmc-supply = <&vcc_sd>;
  207. bus-width = <4>;
  208. cap-mmc-highspeed;
  209. cap-sd-highspeed;
  210. disable-wp;
  211. };
  212. &pinctrl {
  213. pcfg_output_low: pcfg-output-low {
  214. output-low;
  215. };
  216. usb {
  217. host_vbus_drv: host-vbus-drv {
  218. rockchip,pins = <0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>;
  219. };
  220. otg_vbus_drv: otg-vbus-drv {
  221. rockchip,pins = <2 RK_PD7 RK_FUNC_GPIO &pcfg_pull_none>;
  222. };
  223. };
  224. };
  225. &pwm1 {
  226. status = "okay";
  227. };
  228. &pwm2 {
  229. status = "okay";
  230. };
  231. &pwm3 {
  232. status = "okay";
  233. };
  234. &uart0 {
  235. status = "okay";
  236. };
  237. &uart1 {
  238. status = "okay";
  239. };
  240. &uart2 {
  241. status = "okay";
  242. };
  243. &uart3 {
  244. status = "okay";
  245. };
  246. &usbphy {
  247. status = "okay";
  248. };
  249. &usb_host {
  250. status = "okay";
  251. };
  252. &usb_otg {
  253. status = "okay";
  254. };
  255. &wdt {
  256. status = "okay";
  257. };