rk3368-px5-evb.dts 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275
  1. // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2. /*
  3. * Copyright (c) 2016 Fuzhou Rockchip Electronics Co., Ltd
  4. */
  5. /dts-v1/;
  6. #include "rk3368.dtsi"
  7. #include <dt-bindings/input/input.h>
  8. / {
  9. model = "Rockchip PX5 EVB";
  10. compatible = "rockchip,px5-evb", "rockchip,px5", "rockchip,rk3368";
  11. chosen {
  12. stdout-path = "serial4:115200n8";
  13. };
  14. memory@0 {
  15. reg = <0x0 0x0 0x0 0x40000000>;
  16. device_type = "memory";
  17. };
  18. keys: gpio-keys {
  19. compatible = "gpio-keys";
  20. pinctrl-names = "default";
  21. pinctrl-0 = <&pwr_key>;
  22. power {
  23. gpios = <&gpio0 RK_PA2 GPIO_ACTIVE_LOW>;
  24. label = "GPIO Power";
  25. linux,code = <KEY_POWER>;
  26. wakeup-source;
  27. };
  28. };
  29. vcc_sys: vcc-sys-regulator {
  30. compatible = "regulator-fixed";
  31. regulator-name = "vcc_sys";
  32. regulator-min-microvolt = <5000000>;
  33. regulator-max-microvolt = <5000000>;
  34. regulator-always-on;
  35. regulator-boot-on;
  36. };
  37. };
  38. &emmc {
  39. status = "okay";
  40. bus-width = <8>;
  41. cap-mmc-highspeed;
  42. clock-frequency = <150000000>;
  43. disable-wp;
  44. mmc-hs200-1_8v;
  45. no-sdio;
  46. no-sd;
  47. non-removable;
  48. pinctrl-names = "default";
  49. pinctrl-0 = <&emmc_clk>, <&emmc_cmd>, <&emmc_bus8>;
  50. vmmc-supply = <&vcc_io>;
  51. vqmmc-supply = <&vcc18_flash>;
  52. };
  53. &i2c0 {
  54. status = "okay";
  55. rk808: pmic@1b {
  56. compatible = "rockchip,rk808";
  57. reg = <0x1b>;
  58. interrupt-parent = <&gpio0>;
  59. interrupts = <RK_PA5 IRQ_TYPE_LEVEL_LOW>;
  60. pinctrl-names = "default";
  61. pinctrl-0 = <&pmic_int>, <&pmic_sleep>;
  62. rockchip,system-power-controller;
  63. vcc1-supply = <&vcc_sys>;
  64. vcc2-supply = <&vcc_sys>;
  65. vcc3-supply = <&vcc_sys>;
  66. vcc4-supply = <&vcc_sys>;
  67. vcc6-supply = <&vcc_sys>;
  68. vcc7-supply = <&vcc_sys>;
  69. vcc8-supply = <&vcc_io>;
  70. vcc9-supply = <&vcc_sys>;
  71. vcc10-supply = <&vcc_sys>;
  72. vcc11-supply = <&vcc_sys>;
  73. vcc12-supply = <&vcc_io>;
  74. clock-output-names = "xin32k", "rk808-clkout2";
  75. #clock-cells = <1>;
  76. regulators {
  77. vdd_cpu: DCDC_REG1 {
  78. regulator-always-on;
  79. regulator-boot-on;
  80. regulator-min-microvolt = <700000>;
  81. regulator-max-microvolt = <1500000>;
  82. regulator-name = "vdd_cpu";
  83. };
  84. vdd_log: DCDC_REG2 {
  85. regulator-always-on;
  86. regulator-boot-on;
  87. regulator-min-microvolt = <700000>;
  88. regulator-max-microvolt = <1500000>;
  89. regulator-name = "vdd_log";
  90. };
  91. vcc_ddr: DCDC_REG3 {
  92. regulator-always-on;
  93. regulator-boot-on;
  94. regulator-name = "vcc_ddr";
  95. };
  96. vcc_io: DCDC_REG4 {
  97. regulator-always-on;
  98. regulator-boot-on;
  99. regulator-min-microvolt = <3300000>;
  100. regulator-max-microvolt = <3300000>;
  101. regulator-name = "vcc_io";
  102. };
  103. vcc18_flash: LDO_REG1 {
  104. regulator-always-on;
  105. regulator-boot-on;
  106. regulator-min-microvolt = <1800000>;
  107. regulator-max-microvolt = <1800000>;
  108. regulator-name = "vcc18_flash";
  109. };
  110. vcca_33: LDO_REG2 {
  111. regulator-always-on;
  112. regulator-boot-on;
  113. regulator-min-microvolt = <3300000>;
  114. regulator-max-microvolt = <3300000>;
  115. regulator-name = "vcca_33";
  116. };
  117. vdd_10: LDO_REG3 {
  118. regulator-always-on;
  119. regulator-boot-on;
  120. regulator-min-microvolt = <1000000>;
  121. regulator-max-microvolt = <1000000>;
  122. regulator-name = "vdd_10";
  123. };
  124. avdd_33: LDO_REG4 {
  125. regulator-min-microvolt = <3300000>;
  126. regulator-max-microvolt = <3300000>;
  127. regulator-name = "avdd_33";
  128. };
  129. vccio_sd: LDO_REG5 {
  130. regulator-always-on;
  131. regulator-boot-on;
  132. regulator-min-microvolt = <1800000>;
  133. regulator-max-microvolt = <3300000>;
  134. regulator-name = "vccio_sd";
  135. };
  136. vdd10_lcd: LDO_REG6 {
  137. regulator-always-on;
  138. regulator-boot-on;
  139. regulator-min-microvolt = <1000000>;
  140. regulator-max-microvolt = <1000000>;
  141. regulator-name = "vdd10_lcd";
  142. };
  143. vcc_18: LDO_REG7 {
  144. regulator-always-on;
  145. regulator-boot-on;
  146. regulator-min-microvolt = <1800000>;
  147. regulator-max-microvolt = <1800000>;
  148. regulator-name = "vcc_18";
  149. };
  150. vcc18_lcd: LDO_REG8 {
  151. regulator-always-on;
  152. regulator-boot-on;
  153. regulator-min-microvolt = <1800000>;
  154. regulator-max-microvolt = <1800000>;
  155. regulator-name = "vcc18_lcd";
  156. };
  157. vcc_sd: SWITCH_REG1 {
  158. regulator-name = "vcc_sd";
  159. };
  160. vcc33_lcd: SWITCH_REG2 {
  161. regulator-always-on;
  162. regulator-boot-on;
  163. regulator-name = "vcc33_lcd";
  164. };
  165. };
  166. };
  167. };
  168. &i2c1 {
  169. status = "okay";
  170. accelerometer@18 {
  171. compatible = "bosch,bma250";
  172. reg = <0x18>;
  173. interrupt-parent = <&gpio2>;
  174. interrupts = <RK_PC1 IRQ_TYPE_LEVEL_LOW>;
  175. };
  176. };
  177. &i2c2 {
  178. status = "okay";
  179. gsl1680: touchscreen@40 {
  180. compatible = "silead,gsl1680";
  181. reg = <0x40>;
  182. interrupt-parent = <&gpio3>;
  183. interrupts = <RK_PD4 IRQ_TYPE_EDGE_FALLING>;
  184. power-gpios = <&gpio3 RK_PB7 GPIO_ACTIVE_HIGH>;
  185. touchscreen-size-x = <800>;
  186. touchscreen-size-y = <1280>;
  187. silead,max-fingers = <5>;
  188. };
  189. };
  190. &pinctrl {
  191. keys {
  192. pwr_key: pwr-key {
  193. rockchip,pins = <0 2 RK_FUNC_GPIO &pcfg_pull_none>;
  194. };
  195. };
  196. pmic {
  197. pmic_sleep: pmic-sleep {
  198. rockchip,pins = <0 0 RK_FUNC_2 &pcfg_pull_none>;
  199. };
  200. pmic_int: pmic-int {
  201. rockchip,pins = <0 5 RK_FUNC_GPIO &pcfg_pull_up>;
  202. };
  203. };
  204. };
  205. &sdmmc {
  206. status = "okay";
  207. bus-width = <4>;
  208. cap-mmc-highspeed;
  209. cap-sd-highspeed;
  210. card-detect-delay = <200>;
  211. no-emmc;
  212. no-sdio;
  213. sd-uhs-sdr12;
  214. sd-uhs-sdr25;
  215. pinctrl-names = "default";
  216. pinctrl-0 = <&sdmmc_clk>, <&sdmmc_cmd>, <&sdmmc_bus4>, <&sdmmc_cd>;
  217. rockchip,default-sample-phase = <90>;
  218. vmmc-supply = <&vcc_sd>;
  219. vqmmc-supply = <&vccio_sd>;
  220. };
  221. &tsadc {
  222. status = "okay";
  223. rockchip,hw-tshut-mode = <0>; /* CRU */
  224. rockchip,hw-tshut-polarity = <1>; /* high */
  225. };
  226. &uart4 {
  227. status = "okay";
  228. };
  229. &usb_host0_ehci {
  230. status = "okay";
  231. };
  232. &usb_otg {
  233. status = "okay";
  234. };
  235. &wdt {
  236. status = "okay";
  237. };