rk3308-evb.dts 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  1. // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2. /*
  3. * Copyright (c) 2019 Fuzhou Rockchip Electronics Co., Ltd
  4. *
  5. */
  6. /dts-v1/;
  7. #include <dt-bindings/input/input.h>
  8. #include "rk3308.dtsi"
  9. / {
  10. model = "Rockchip RK3308 EVB";
  11. compatible = "rockchip,rk3308-evb", "rockchip,rk3308";
  12. chosen {
  13. stdout-path = "serial4:1500000n8";
  14. };
  15. adc-keys0 {
  16. compatible = "adc-keys";
  17. io-channels = <&saradc 0>;
  18. io-channel-names = "buttons";
  19. poll-interval = <100>;
  20. keyup-threshold-microvolt = <1800000>;
  21. button-func {
  22. linux,code = <KEY_FN>;
  23. label = "function";
  24. press-threshold-microvolt = <18000>;
  25. };
  26. };
  27. adc-keys1 {
  28. compatible = "adc-keys";
  29. io-channels = <&saradc 1>;
  30. io-channel-names = "buttons";
  31. poll-interval = <100>;
  32. keyup-threshold-microvolt = <1800000>;
  33. button-esc {
  34. linux,code = <KEY_MICMUTE>;
  35. label = "micmute";
  36. press-threshold-microvolt = <1130000>;
  37. };
  38. button-home {
  39. linux,code = <KEY_MODE>;
  40. label = "mode";
  41. press-threshold-microvolt = <901000>;
  42. };
  43. button-menu {
  44. linux,code = <KEY_PLAY>;
  45. label = "play";
  46. press-threshold-microvolt = <624000>;
  47. };
  48. button-down {
  49. linux,code = <KEY_VOLUMEDOWN>;
  50. label = "volume down";
  51. press-threshold-microvolt = <300000>;
  52. };
  53. button-up {
  54. linux,code = <KEY_VOLUMEUP>;
  55. label = "volume up";
  56. press-threshold-microvolt = <18000>;
  57. };
  58. };
  59. gpio-keys {
  60. compatible = "gpio-keys";
  61. autorepeat;
  62. pinctrl-names = "default";
  63. pinctrl-0 = <&pwr_key>;
  64. key-power {
  65. gpios = <&gpio0 RK_PA6 GPIO_ACTIVE_LOW>;
  66. linux,code = <KEY_POWER>;
  67. label = "GPIO Key Power";
  68. debounce-interval = <100>;
  69. wakeup-source;
  70. };
  71. };
  72. vcc12v_dcin: vcc12v-dcin {
  73. compatible = "regulator-fixed";
  74. regulator-name = "vcc12v_dcin";
  75. regulator-min-microvolt = <12000000>;
  76. regulator-max-microvolt = <12000000>;
  77. regulator-always-on;
  78. regulator-boot-on;
  79. };
  80. vcc5v0_sys: vcc5v0-sys {
  81. compatible = "regulator-fixed";
  82. regulator-name = "vcc5v0_sys";
  83. regulator-min-microvolt = <5000000>;
  84. regulator-max-microvolt = <5000000>;
  85. regulator-always-on;
  86. regulator-boot-on;
  87. vin-supply = <&vcc12v_dcin>;
  88. };
  89. vccio_sdio: vcc_1v8: vcc-1v8 {
  90. compatible = "regulator-fixed";
  91. regulator-name = "vcc_1v8";
  92. regulator-min-microvolt = <1800000>;
  93. regulator-max-microvolt = <1800000>;
  94. regulator-always-on;
  95. regulator-boot-on;
  96. vin-supply = <&vcc_io>;
  97. };
  98. vcc_ddr: vcc-ddr {
  99. compatible = "regulator-fixed";
  100. regulator-name = "vcc_ddr";
  101. regulator-min-microvolt = <1500000>;
  102. regulator-max-microvolt = <1500000>;
  103. regulator-always-on;
  104. regulator-boot-on;
  105. vin-supply = <&vcc5v0_sys>;
  106. };
  107. vcc_io: vcc-io {
  108. compatible = "regulator-fixed";
  109. regulator-name = "vcc_io";
  110. regulator-min-microvolt = <3300000>;
  111. regulator-max-microvolt = <3300000>;
  112. regulator-always-on;
  113. regulator-boot-on;
  114. vin-supply = <&vcc5v0_sys>;
  115. };
  116. vccio_flash: vccio-flash {
  117. compatible = "regulator-fixed";
  118. regulator-name = "vccio_flash";
  119. regulator-min-microvolt = <3300000>;
  120. regulator-max-microvolt = <3300000>;
  121. regulator-always-on;
  122. regulator-boot-on;
  123. vin-supply = <&vcc_io>;
  124. };
  125. vcc5v0_host: vcc5v0-host {
  126. compatible = "regulator-fixed";
  127. gpio = <&gpio0 RK_PC5 GPIO_ACTIVE_HIGH>;
  128. enable-active-high;
  129. pinctrl-names = "default";
  130. pinctrl-0 = <&usb_drv>;
  131. regulator-name = "vbus_host";
  132. vin-supply = <&vcc5v0_sys>;
  133. };
  134. vdd_core: vdd-core {
  135. compatible = "pwm-regulator";
  136. pwms = <&pwm0 0 5000 1>;
  137. regulator-name = "vdd_core";
  138. regulator-min-microvolt = <827000>;
  139. regulator-max-microvolt = <1340000>;
  140. regulator-always-on;
  141. regulator-boot-on;
  142. regulator-settling-time-up-us = <250>;
  143. pwm-supply = <&vcc5v0_sys>;
  144. };
  145. vdd_log: vdd-log {
  146. compatible = "regulator-fixed";
  147. regulator-name = "vdd_log";
  148. regulator-min-microvolt = <1050000>;
  149. regulator-max-microvolt = <1050000>;
  150. regulator-always-on;
  151. regulator-boot-on;
  152. vin-supply = <&vcc5v0_sys>;
  153. };
  154. vdd_1v0: vdd-1v0 {
  155. compatible = "regulator-fixed";
  156. regulator-name = "vdd_1v0";
  157. regulator-min-microvolt = <1000000>;
  158. regulator-max-microvolt = <1000000>;
  159. regulator-always-on;
  160. regulator-boot-on;
  161. vin-supply = <&vcc5v0_sys>;
  162. };
  163. };
  164. &cpu0 {
  165. cpu-supply = <&vdd_core>;
  166. };
  167. &saradc {
  168. status = "okay";
  169. vref-supply = <&vcc_1v8>;
  170. };
  171. &pinctrl {
  172. pinctrl-names = "default";
  173. pinctrl-0 = <&rtc_32k>;
  174. buttons {
  175. pwr_key: pwr-key {
  176. rockchip,pins = <0 RK_PA6 0 &pcfg_pull_up>;
  177. };
  178. };
  179. usb {
  180. usb_drv: usb-drv {
  181. rockchip,pins = <0 RK_PC5 0 &pcfg_pull_none>;
  182. };
  183. };
  184. sdio-pwrseq {
  185. wifi_enable_h: wifi-enable-h {
  186. rockchip,pins = <0 RK_PA2 0 &pcfg_pull_none>;
  187. };
  188. };
  189. };
  190. &pwm0 {
  191. status = "okay";
  192. pinctrl-0 = <&pwm0_pin_pull_down>;
  193. };
  194. &uart4 {
  195. pinctrl-names = "default";
  196. pinctrl-0 = <&uart4_xfer>;
  197. status = "okay";
  198. };