rk3368-px5-evb.dts 5.5 KB

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