rk3288-rock2-som.dtsi 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273
  1. // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2. #include <dt-bindings/pwm/pwm.h>
  3. #include "rk3288.dtsi"
  4. / {
  5. memory@0 {
  6. reg = <0x0 0x0 0x0 0x80000000>;
  7. device_type = "memory";
  8. };
  9. emmc_pwrseq: emmc-pwrseq {
  10. compatible = "mmc-pwrseq-emmc";
  11. pinctrl-0 = <&emmc_reset>;
  12. pinctrl-names = "default";
  13. reset-gpios = <&gpio3 RK_PB1 GPIO_ACTIVE_LOW>;
  14. };
  15. ext_gmac: external-gmac-clock {
  16. compatible = "fixed-clock";
  17. #clock-cells = <0>;
  18. clock-frequency = <125000000>;
  19. clock-output-names = "ext_gmac";
  20. };
  21. vcc_flash: flash-regulator {
  22. compatible = "regulator-fixed";
  23. regulator-name = "vcc_flash";
  24. regulator-min-microvolt = <1800000>;
  25. regulator-max-microvolt = <1800000>;
  26. startup-delay-us = <150>;
  27. vin-supply = <&vcc_io>;
  28. };
  29. vcc_sys: vsys-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. &cpu0 {
  39. cpu0-supply = <&vdd_cpu>;
  40. };
  41. &emmc {
  42. bus-width = <8>;
  43. cap-mmc-highspeed;
  44. disable-wp;
  45. non-removable;
  46. mmc-pwrseq = <&emmc_pwrseq>;
  47. pinctrl-names = "default";
  48. pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_bus8>;
  49. vmmc-supply = <&vcc_io>;
  50. vqmmc-supply = <&vcc_flash>;
  51. status = "okay";
  52. };
  53. &gmac {
  54. assigned-clocks = <&cru SCLK_MAC>;
  55. assigned-clock-parents = <&ext_gmac>;
  56. clock_in_out = "input";
  57. phy-mode = "rgmii";
  58. phy-supply = <&vccio_pmu>;
  59. pinctrl-names = "default";
  60. pinctrl-0 = <&rgmii_pins &phy_rst>;
  61. snps,reset-gpio = <&gpio4 RK_PB0 GPIO_ACTIVE_LOW>;
  62. snps,reset-active-low;
  63. snps,reset-delays-us = <0 10000 30000>;
  64. rx_delay = <0x10>;
  65. tx_delay = <0x30>;
  66. };
  67. &gpu {
  68. mali-supply = <&vdd_gpu>;
  69. status = "okay";
  70. };
  71. &i2c0 {
  72. status = "okay";
  73. act8846: act8846@5a {
  74. compatible = "active-semi,act8846";
  75. reg = <0x5a>;
  76. system-power-controller;
  77. inl1-supply = <&vcc_io>;
  78. inl2-supply = <&vcc_sys>;
  79. inl3-supply = <&vcc_20>;
  80. vp1-supply = <&vcc_sys>;
  81. vp2-supply = <&vcc_sys>;
  82. vp3-supply = <&vcc_sys>;
  83. vp4-supply = <&vcc_sys>;
  84. regulators {
  85. vcc_ddr: REG1 {
  86. regulator-name = "VCC_DDR";
  87. regulator-min-microvolt = <1200000>;
  88. regulator-max-microvolt = <1200000>;
  89. regulator-always-on;
  90. };
  91. vcc_io: vccio_codec: REG2 {
  92. regulator-name = "VCC_IO";
  93. regulator-min-microvolt = <3300000>;
  94. regulator-max-microvolt = <3300000>;
  95. regulator-always-on;
  96. };
  97. vdd_log: REG3 {
  98. regulator-name = "VDD_LOG";
  99. regulator-min-microvolt = <1000000>;
  100. regulator-max-microvolt = <1000000>;
  101. regulator-always-on;
  102. };
  103. vcc_20: REG4 {
  104. regulator-name = "VCC_20";
  105. regulator-min-microvolt = <2000000>;
  106. regulator-max-microvolt = <2000000>;
  107. regulator-always-on;
  108. };
  109. vccio_sd: REG5 {
  110. regulator-name = "VCCIO_SD";
  111. regulator-min-microvolt = <3300000>;
  112. regulator-max-microvolt = <3300000>;
  113. regulator-always-on;
  114. };
  115. vdd10_lcd: REG6 {
  116. regulator-name = "VDD10_LCD";
  117. regulator-min-microvolt = <1000000>;
  118. regulator-max-microvolt = <1000000>;
  119. regulator-always-on;
  120. };
  121. vcca_codec: REG7 {
  122. regulator-name = "VCCA_CODEC";
  123. regulator-min-microvolt = <3300000>;
  124. regulator-max-microvolt = <3300000>;
  125. regulator-always-on;
  126. };
  127. vcca_tp: REG8 {
  128. regulator-name = "VCCA_TP";
  129. regulator-min-microvolt = <3300000>;
  130. regulator-max-microvolt = <3300000>;
  131. regulator-always-on;
  132. };
  133. vccio_pmu: REG9 {
  134. regulator-name = "VCCIO_PMU";
  135. regulator-min-microvolt = <3300000>;
  136. regulator-max-microvolt = <3300000>;
  137. regulator-always-on;
  138. };
  139. vdd_10: REG10 {
  140. regulator-name = "VDD_10";
  141. regulator-min-microvolt = <1000000>;
  142. regulator-max-microvolt = <1000000>;
  143. regulator-always-on;
  144. };
  145. vcc_18: REG11 {
  146. regulator-name = "VCC_18";
  147. regulator-min-microvolt = <1800000>;
  148. regulator-max-microvolt = <1800000>;
  149. regulator-always-on;
  150. };
  151. vcc18_lcd: REG12 {
  152. regulator-name = "VCC18_LCD";
  153. regulator-min-microvolt = <1800000>;
  154. regulator-max-microvolt = <1800000>;
  155. regulator-always-on;
  156. };
  157. };
  158. };
  159. vdd_cpu: syr827@40 {
  160. compatible = "silergy,syr827";
  161. reg = <0x40>;
  162. fcs,suspend-voltage-selector = <1>;
  163. regulator-always-on;
  164. regulator-boot-on;
  165. regulator-enable-ramp-delay = <300>;
  166. regulator-name = "vdd_cpu";
  167. regulator-min-microvolt = <850000>;
  168. regulator-max-microvolt = <1350000>;
  169. regulator-ramp-delay = <8000>;
  170. vin-supply = <&vcc_sys>;
  171. };
  172. vdd_gpu: syr828@41 {
  173. compatible = "silergy,syr828";
  174. reg = <0x41>;
  175. fcs,suspend-voltage-selector = <1>;
  176. regulator-always-on;
  177. regulator-enable-ramp-delay = <300>;
  178. regulator-min-microvolt = <850000>;
  179. regulator-max-microvolt = <1350000>;
  180. regulator-name = "vdd_gpu";
  181. regulator-ramp-delay = <8000>;
  182. vin-supply = <&vcc_sys>;
  183. };
  184. };
  185. &io_domains {
  186. status = "okay";
  187. audio-supply = <&vcc_io>;
  188. bb-supply = <&vcc_io>;
  189. dvp-supply = <&vcc_18>;
  190. flash0-supply = <&vcc_flash>;
  191. flash1-supply = <&vccio_pmu>;
  192. gpio30-supply = <&vccio_pmu>;
  193. gpio1830-supply = <&vcc_io>;
  194. lcdc-supply = <&vcc_io>;
  195. sdcard-supply = <&vccio_sd>;
  196. wifi-supply = <&vcc_18>;
  197. };
  198. &pinctrl {
  199. pcfg_output_high: pcfg-output-high {
  200. output-high;
  201. };
  202. emmc {
  203. emmc_reset: emmc-reset {
  204. rockchip,pins = <3 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>;
  205. };
  206. };
  207. gmac {
  208. phy_rst: phy-rst {
  209. rockchip,pins = <4 RK_PB0 RK_FUNC_GPIO &pcfg_output_high>;
  210. };
  211. };
  212. };
  213. &saradc {
  214. vref-supply = <&vcc_18>;
  215. };
  216. &tsadc {
  217. rockchip,hw-tshut-mode = <0>; /* tshut mode 0:CRU 1:GPIO */
  218. rockchip,hw-tshut-polarity = <0>; /* tshut polarity 0:LOW 1:HIGH */
  219. status = "okay";
  220. };
  221. &vopb {
  222. status = "okay";
  223. };
  224. &vopb_mmu {
  225. status = "okay";
  226. };
  227. &vopl {
  228. status = "okay";
  229. };
  230. &vopl_mmu {
  231. status = "okay";
  232. };
  233. &wdt {
  234. status = "okay";
  235. };