rk3328-rock64.dts 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299
  1. // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2. /*
  3. * Copyright (c) 2017 PINE64
  4. */
  5. /dts-v1/;
  6. #include "rk3328.dtsi"
  7. / {
  8. model = "Pine64 Rock64";
  9. compatible = "pine64,rock64", "rockchip,rk3328";
  10. chosen {
  11. stdout-path = "serial2:1500000n8";
  12. };
  13. gmac_clkin: external-gmac-clock {
  14. compatible = "fixed-clock";
  15. clock-frequency = <125000000>;
  16. clock-output-names = "gmac_clkin";
  17. #clock-cells = <0>;
  18. };
  19. vcc_sd: sdmmc-regulator {
  20. compatible = "regulator-fixed";
  21. gpio = <&gpio0 RK_PD6 GPIO_ACTIVE_LOW>;
  22. pinctrl-names = "default";
  23. pinctrl-0 = <&sdmmc0m1_gpio>;
  24. regulator-name = "vcc_sd";
  25. regulator-min-microvolt = <3300000>;
  26. regulator-max-microvolt = <3300000>;
  27. vin-supply = <&vcc_io>;
  28. };
  29. vcc_host_5v: vcc-host-5v-regulator {
  30. compatible = "regulator-fixed";
  31. enable-active-high;
  32. gpio = <&gpio0 RK_PA0 GPIO_ACTIVE_HIGH>;
  33. pinctrl-names = "default";
  34. pinctrl-0 = <&usb30_host_drv>;
  35. regulator-name = "vcc_host_5v";
  36. regulator-always-on;
  37. regulator-boot-on;
  38. vin-supply = <&vcc_sys>;
  39. };
  40. vcc_host1_5v: vcc_otg_5v: vcc-host1-5v-regulator {
  41. compatible = "regulator-fixed";
  42. gpio = <&gpio0 RK_PA2 GPIO_ACTIVE_LOW>;
  43. pinctrl-names = "default";
  44. pinctrl-0 = <&usb20_host_drv>;
  45. regulator-name = "vcc_host1_5v";
  46. regulator-always-on;
  47. regulator-boot-on;
  48. vin-supply = <&vcc_sys>;
  49. };
  50. vcc_sys: vcc-sys {
  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. };
  58. };
  59. &cpu0 {
  60. cpu-supply = <&vdd_arm>;
  61. };
  62. &cpu1 {
  63. cpu-supply = <&vdd_arm>;
  64. };
  65. &cpu2 {
  66. cpu-supply = <&vdd_arm>;
  67. };
  68. &cpu3 {
  69. cpu-supply = <&vdd_arm>;
  70. };
  71. &emmc {
  72. bus-width = <8>;
  73. cap-mmc-highspeed;
  74. non-removable;
  75. pinctrl-names = "default";
  76. pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_bus8>;
  77. vmmc-supply = <&vcc_io>;
  78. vqmmc-supply = <&vcc18_emmc>;
  79. status = "okay";
  80. };
  81. &gmac2io {
  82. assigned-clocks = <&cru SCLK_MAC2IO>, <&cru SCLK_MAC2IO_EXT>;
  83. assigned-clock-parents = <&gmac_clkin>, <&gmac_clkin>;
  84. clock_in_out = "input";
  85. phy-supply = <&vcc_io>;
  86. phy-mode = "rgmii";
  87. pinctrl-names = "default";
  88. pinctrl-0 = <&rgmiim1_pins>;
  89. snps,force_thresh_dma_mode;
  90. snps,reset-gpio = <&gpio1 RK_PC2 GPIO_ACTIVE_LOW>;
  91. snps,reset-active-low;
  92. snps,reset-delays-us = <0 10000 50000>;
  93. tx_delay = <0x24>;
  94. rx_delay = <0x18>;
  95. status = "okay";
  96. };
  97. &i2c1 {
  98. status = "okay";
  99. rk805: rk805@18 {
  100. compatible = "rockchip,rk805";
  101. reg = <0x18>;
  102. interrupt-parent = <&gpio2>;
  103. interrupts = <6 IRQ_TYPE_LEVEL_LOW>;
  104. #clock-cells = <1>;
  105. clock-output-names = "xin32k", "rk805-clkout2";
  106. pinctrl-names = "default";
  107. pinctrl-0 = <&pmic_int_l>;
  108. rockchip,system-power-controller;
  109. wakeup-source;
  110. vcc1-supply = <&vcc_sys>;
  111. vcc2-supply = <&vcc_sys>;
  112. vcc3-supply = <&vcc_sys>;
  113. vcc4-supply = <&vcc_sys>;
  114. vcc5-supply = <&vcc_io>;
  115. vcc6-supply = <&vcc_sys>;
  116. regulators {
  117. vdd_logic: DCDC_REG1 {
  118. regulator-name = "vdd_logic";
  119. regulator-min-microvolt = <712500>;
  120. regulator-max-microvolt = <1450000>;
  121. regulator-ramp-delay = <12500>;
  122. regulator-always-on;
  123. regulator-boot-on;
  124. regulator-state-mem {
  125. regulator-on-in-suspend;
  126. regulator-suspend-microvolt = <1000000>;
  127. };
  128. };
  129. vdd_arm: DCDC_REG2 {
  130. regulator-name = "vdd_arm";
  131. regulator-min-microvolt = <712500>;
  132. regulator-max-microvolt = <1450000>;
  133. regulator-ramp-delay = <12500>;
  134. regulator-always-on;
  135. regulator-boot-on;
  136. regulator-state-mem {
  137. regulator-on-in-suspend;
  138. regulator-suspend-microvolt = <950000>;
  139. };
  140. };
  141. vcc_ddr: DCDC_REG3 {
  142. regulator-name = "vcc_ddr";
  143. regulator-always-on;
  144. regulator-boot-on;
  145. regulator-state-mem {
  146. regulator-on-in-suspend;
  147. };
  148. };
  149. vcc_io: DCDC_REG4 {
  150. regulator-name = "vcc_io";
  151. regulator-min-microvolt = <3300000>;
  152. regulator-max-microvolt = <3300000>;
  153. regulator-always-on;
  154. regulator-boot-on;
  155. regulator-state-mem {
  156. regulator-on-in-suspend;
  157. regulator-suspend-microvolt = <3300000>;
  158. };
  159. };
  160. vcc_18: LDO_REG1 {
  161. regulator-name = "vdd_18";
  162. regulator-min-microvolt = <1800000>;
  163. regulator-max-microvolt = <1800000>;
  164. regulator-always-on;
  165. regulator-boot-on;
  166. regulator-state-mem {
  167. regulator-on-in-suspend;
  168. regulator-suspend-microvolt = <1800000>;
  169. };
  170. };
  171. vcc18_emmc: LDO_REG2 {
  172. regulator-name = "vcc_18emmc";
  173. regulator-min-microvolt = <1800000>;
  174. regulator-max-microvolt = <1800000>;
  175. regulator-always-on;
  176. regulator-boot-on;
  177. regulator-state-mem {
  178. regulator-on-in-suspend;
  179. regulator-suspend-microvolt = <1800000>;
  180. };
  181. };
  182. vdd_10: LDO_REG3 {
  183. regulator-name = "vdd_10";
  184. regulator-min-microvolt = <1000000>;
  185. regulator-max-microvolt = <1000000>;
  186. regulator-always-on;
  187. regulator-boot-on;
  188. regulator-state-mem {
  189. regulator-on-in-suspend;
  190. regulator-suspend-microvolt = <1000000>;
  191. };
  192. };
  193. };
  194. };
  195. };
  196. &io_domains {
  197. status = "okay";
  198. vccio1-supply = <&vcc_io>;
  199. vccio2-supply = <&vcc18_emmc>;
  200. vccio3-supply = <&vcc_io>;
  201. vccio4-supply = <&vcc_18>;
  202. vccio5-supply = <&vcc_io>;
  203. vccio6-supply = <&vcc_io>;
  204. pmuio-supply = <&vcc_io>;
  205. };
  206. &pinctrl {
  207. pmic {
  208. pmic_int_l: pmic-int-l {
  209. rockchip,pins = <2 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up>;
  210. };
  211. };
  212. usb2 {
  213. usb20_host_drv: usb20-host-drv {
  214. rockchip,pins = <0 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>;
  215. };
  216. };
  217. usb3 {
  218. usb30_host_drv: usb30-host-drv {
  219. rockchip,pins = <0 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>;
  220. };
  221. };
  222. };
  223. &sdmmc {
  224. bus-width = <4>;
  225. cap-mmc-highspeed;
  226. cap-sd-highspeed;
  227. disable-wp;
  228. max-frequency = <150000000>;
  229. pinctrl-names = "default";
  230. pinctrl-0 = <&sdmmc0_clk &sdmmc0_cmd &sdmmc0_dectn &sdmmc0_bus4>;
  231. vmmc-supply = <&vcc_sd>;
  232. status = "okay";
  233. };
  234. &tsadc {
  235. rockchip,hw-tshut-mode = <0>;
  236. rockchip,hw-tshut-polarity = <0>;
  237. status = "okay";
  238. };
  239. &uart2 {
  240. status = "okay";
  241. };
  242. &u2phy {
  243. status = "okay";
  244. u2phy_host: host-port {
  245. status = "okay";
  246. };
  247. u2phy_otg: otg-port {
  248. status = "okay";
  249. };
  250. };
  251. &usb20_otg {
  252. dr_mode = "host";
  253. status = "okay";
  254. };
  255. &usb_host0_ehci {
  256. status = "okay";
  257. };
  258. &usb_host0_ohci {
  259. status = "okay";
  260. };