rk3229-evb.dts 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  1. // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2. /dts-v1/;
  3. #include <dt-bindings/input/input.h>
  4. #include "rk3229.dtsi"
  5. / {
  6. model = "Rockchip RK3229 Evaluation board";
  7. compatible = "rockchip,rk3229-evb", "rockchip,rk3229";
  8. aliases {
  9. mmc0 = &emmc;
  10. };
  11. memory@60000000 {
  12. device_type = "memory";
  13. reg = <0x60000000 0x40000000>;
  14. };
  15. dc_12v: dc-12v-regulator {
  16. compatible = "regulator-fixed";
  17. regulator-name = "dc_12v";
  18. regulator-always-on;
  19. regulator-boot-on;
  20. regulator-min-microvolt = <12000000>;
  21. regulator-max-microvolt = <12000000>;
  22. };
  23. ext_gmac: ext_gmac {
  24. compatible = "fixed-clock";
  25. clock-frequency = <125000000>;
  26. clock-output-names = "ext_gmac";
  27. #clock-cells = <0>;
  28. };
  29. vcc_host: vcc-host-regulator {
  30. compatible = "regulator-fixed";
  31. enable-active-high;
  32. gpio = <&gpio3 RK_PC4 GPIO_ACTIVE_HIGH>;
  33. pinctrl-names = "default";
  34. pinctrl-0 = <&host_vbus_drv>;
  35. regulator-name = "vcc_host";
  36. regulator-always-on;
  37. regulator-boot-on;
  38. vin-supply = <&vcc_sys>;
  39. };
  40. vcc_phy: vcc-phy-regulator {
  41. compatible = "regulator-fixed";
  42. enable-active-high;
  43. regulator-name = "vcc_phy";
  44. regulator-min-microvolt = <1800000>;
  45. regulator-max-microvolt = <1800000>;
  46. regulator-always-on;
  47. regulator-boot-on;
  48. vin-supply = <&vccio_1v8>;
  49. };
  50. vcc_sys: vcc-sys-regulator {
  51. compatible = "regulator-fixed";
  52. regulator-name = "vcc_sys";
  53. regulator-always-on;
  54. regulator-boot-on;
  55. regulator-min-microvolt = <5000000>;
  56. regulator-max-microvolt = <5000000>;
  57. vin-supply = <&dc_12v>;
  58. };
  59. vccio_1v8: vccio-1v8-regulator {
  60. compatible = "regulator-fixed";
  61. regulator-name = "vccio_1v8";
  62. regulator-min-microvolt = <1800000>;
  63. regulator-max-microvolt = <1800000>;
  64. regulator-always-on;
  65. vin-supply = <&vcc_sys>;
  66. };
  67. vccio_3v3: vccio-3v3-regulator {
  68. compatible = "regulator-fixed";
  69. regulator-name = "vccio_3v3";
  70. regulator-min-microvolt = <3300000>;
  71. regulator-max-microvolt = <3300000>;
  72. regulator-always-on;
  73. vin-supply = <&vcc_sys>;
  74. };
  75. vdd_arm: vdd-arm-regulator {
  76. compatible = "pwm-regulator";
  77. pwms = <&pwm1 0 25000 1>;
  78. pwm-supply = <&vcc_sys>;
  79. regulator-name = "vdd_arm";
  80. regulator-min-microvolt = <950000>;
  81. regulator-max-microvolt = <1400000>;
  82. regulator-always-on;
  83. regulator-boot-on;
  84. };
  85. vdd_log: vdd-log-regulator {
  86. compatible = "pwm-regulator";
  87. pwms = <&pwm2 0 25000 1>;
  88. pwm-supply = <&vcc_sys>;
  89. regulator-name = "vdd_log";
  90. regulator-min-microvolt = <1000000>;
  91. regulator-max-microvolt = <1300000>;
  92. regulator-always-on;
  93. regulator-boot-on;
  94. };
  95. gpio-keys {
  96. compatible = "gpio-keys";
  97. autorepeat;
  98. pinctrl-names = "default";
  99. pinctrl-0 = <&pwr_key>;
  100. power_key: power-key {
  101. label = "GPIO Key Power";
  102. gpios = <&gpio3 23 GPIO_ACTIVE_LOW>;
  103. linux,code = <KEY_POWER>;
  104. debounce-interval = <100>;
  105. wakeup-source;
  106. };
  107. };
  108. };
  109. &cpu0 {
  110. cpu-supply = <&vdd_arm>;
  111. };
  112. &cpu1 {
  113. cpu-supply = <&vdd_arm>;
  114. };
  115. &cpu2 {
  116. cpu-supply = <&vdd_arm>;
  117. };
  118. &cpu3 {
  119. cpu-supply = <&vdd_arm>;
  120. };
  121. &emmc {
  122. cap-mmc-highspeed;
  123. non-removable;
  124. status = "okay";
  125. };
  126. &gmac {
  127. assigned-clocks = <&cru SCLK_MAC_EXTCLK>, <&cru SCLK_MAC>;
  128. assigned-clock-parents = <&ext_gmac>, <&cru SCLK_MAC_EXTCLK>;
  129. clock_in_out = "input";
  130. phy-supply = <&vcc_phy>;
  131. phy-mode = "rgmii";
  132. pinctrl-names = "default";
  133. pinctrl-0 = <&rgmii_pins>;
  134. snps,reset-gpio = <&gpio2 RK_PD0 GPIO_ACTIVE_LOW>;
  135. snps,reset-active-low;
  136. snps,reset-delays-us = <0 10000 1000000>;
  137. tx_delay = <0x30>;
  138. rx_delay = <0x10>;
  139. status = "okay";
  140. };
  141. &io_domains {
  142. status = "okay";
  143. vccio1-supply = <&vccio_3v3>;
  144. vccio2-supply = <&vccio_1v8>;
  145. vccio4-supply = <&vccio_3v3>;
  146. };
  147. &pinctrl {
  148. keys {
  149. pwr_key: pwr-key {
  150. rockchip,pins = <3 RK_PC7 RK_FUNC_GPIO &pcfg_pull_up>;
  151. };
  152. };
  153. usb {
  154. host_vbus_drv: host-vbus-drv {
  155. rockchip,pins = <3 RK_PC4 RK_FUNC_GPIO &pcfg_pull_none>;
  156. };
  157. };
  158. };
  159. &pwm1 {
  160. status = "okay";
  161. };
  162. &pwm2 {
  163. status = "okay";
  164. };
  165. &tsadc {
  166. rockchip,hw-tshut-mode = <0>; /* tshut mode 0:CRU 1:GPIO */
  167. status = "okay";
  168. };
  169. &uart2 {
  170. status = "okay";
  171. };
  172. &u2phy0 {
  173. status = "okay";
  174. u2phy0_otg: otg-port {
  175. status = "okay";
  176. };
  177. u2phy0_host: host-port {
  178. phy-supply = <&vcc_host>;
  179. status = "okay";
  180. };
  181. };
  182. &u2phy1 {
  183. status = "okay";
  184. u2phy1_otg: otg-port {
  185. phy-supply = <&vcc_host>;
  186. status = "okay";
  187. };
  188. u2phy1_host: host-port {
  189. phy-supply = <&vcc_host>;
  190. status = "okay";
  191. };
  192. };
  193. &usb_host0_ehci {
  194. status = "okay";
  195. };
  196. &usb_host0_ohci {
  197. status = "okay";
  198. };
  199. &usb_host1_ehci {
  200. status = "okay";
  201. };
  202. &usb_host1_ohci {
  203. status = "okay";
  204. };
  205. &usb_host2_ehci {
  206. status = "okay";
  207. };
  208. &usb_host2_ohci {
  209. status = "okay";
  210. };
  211. &usb_otg {
  212. status = "okay";
  213. };