rk3288-rock2-som.dtsi 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278
  1. /*
  2. * This file is dual-licensed: you can use it either under the terms
  3. * of the GPL or the X11 license, at your option. Note that this dual
  4. * licensing only applies to this file, and not this project as a
  5. * whole.
  6. *
  7. * a) This file is free software; you can redistribute it and/or
  8. * modify it under the terms of the GNU General Public License as
  9. * published by the Free Software Foundation; either version 2 of the
  10. * License, or (at your option) any later version.
  11. *
  12. * This file is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * Or, alternatively,
  18. *
  19. * b) Permission is hereby granted, free of charge, to any person
  20. * obtaining a copy of this software and associated documentation
  21. * files (the "Software"), to deal in the Software without
  22. * restriction, including without limitation the rights to use,
  23. * copy, modify, merge, publish, distribute, sublicense, and/or
  24. * sell copies of the Software, and to permit persons to whom the
  25. * Software is furnished to do so, subject to the following
  26. * conditions:
  27. *
  28. * The above copyright notice and this permission notice shall be
  29. * included in all copies or substantial portions of the Software.
  30. *
  31. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  32. * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  33. * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  34. * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  35. * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  36. * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  37. * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  38. * OTHER DEALINGS IN THE SOFTWARE.
  39. */
  40. #include <dt-bindings/pwm/pwm.h>
  41. #include "rk3288.dtsi"
  42. / {
  43. memory {
  44. reg = <0x0 0x80000000>;
  45. device_type = "memory";
  46. };
  47. emmc_pwrseq: emmc-pwrseq {
  48. compatible = "mmc-pwrseq-emmc";
  49. pinctrl-0 = <&emmc_reset>;
  50. pinctrl-names = "default";
  51. reset-gpios = <&gpio3 9 GPIO_ACTIVE_LOW>;
  52. };
  53. ext_gmac: external-gmac-clock {
  54. compatible = "fixed-clock";
  55. #clock-cells = <0>;
  56. clock-frequency = <125000000>;
  57. clock-output-names = "ext_gmac";
  58. };
  59. vcc_sys: vsys-regulator {
  60. compatible = "regulator-fixed";
  61. regulator-name = "vcc_sys";
  62. regulator-min-microvolt = <5000000>;
  63. regulator-max-microvolt = <5000000>;
  64. regulator-always-on;
  65. regulator-boot-on;
  66. };
  67. };
  68. &cpu0 {
  69. cpu0-supply = <&vdd_cpu>;
  70. };
  71. &emmc {
  72. bus-width = <8>;
  73. cap-mmc-highspeed;
  74. disable-wp;
  75. non-removable;
  76. num-slots = <1>;
  77. mmc-pwrseq = <&emmc_pwrseq>;
  78. pinctrl-names = "default";
  79. pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_bus8>;
  80. vmmc-supply = <&vcc_io>;
  81. status = "okay";
  82. };
  83. &gmac {
  84. assigned-clocks = <&cru SCLK_MAC>;
  85. assigned-clock-parents = <&ext_gmac>;
  86. clock_in_out = "input";
  87. phy-mode = "rgmii";
  88. phy-supply = <&vccio_pmu>;
  89. pinctrl-names = "default";
  90. pinctrl-0 = <&rgmii_pins &phy_rst>;
  91. snps,reset-gpio = <&gpio4 8 GPIO_ACTIVE_LOW>;
  92. snps,reset-active-low;
  93. snps,reset-delays-us = <0 10000 30000>;
  94. rx_delay = <0x10>;
  95. tx_delay = <0x30>;
  96. };
  97. &i2c0 {
  98. status = "okay";
  99. act8846: act8846@5a {
  100. compatible = "active-semi,act8846";
  101. reg = <0x5a>;
  102. system-power-controller;
  103. inl1-supply = <&vcc_io>;
  104. inl2-supply = <&vcc_sys>;
  105. inl3-supply = <&vcc_20>;
  106. vp1-supply = <&vcc_sys>;
  107. vp2-supply = <&vcc_sys>;
  108. vp3-supply = <&vcc_sys>;
  109. vp4-supply = <&vcc_sys>;
  110. regulators {
  111. vcc_ddr: REG1 {
  112. regulator-name = "VCC_DDR";
  113. regulator-min-microvolt = <1200000>;
  114. regulator-max-microvolt = <1200000>;
  115. regulator-always-on;
  116. };
  117. vcc_io: REG2 {
  118. regulator-name = "VCC_IO";
  119. regulator-min-microvolt = <3300000>;
  120. regulator-max-microvolt = <3300000>;
  121. regulator-always-on;
  122. };
  123. vdd_log: REG3 {
  124. regulator-name = "VDD_LOG";
  125. regulator-min-microvolt = <1000000>;
  126. regulator-max-microvolt = <1000000>;
  127. regulator-always-on;
  128. };
  129. vcc_20: REG4 {
  130. regulator-name = "VCC_20";
  131. regulator-min-microvolt = <2000000>;
  132. regulator-max-microvolt = <2000000>;
  133. regulator-always-on;
  134. };
  135. vccio_sd: REG5 {
  136. regulator-name = "VCCIO_SD";
  137. regulator-min-microvolt = <3300000>;
  138. regulator-max-microvolt = <3300000>;
  139. regulator-always-on;
  140. };
  141. vdd10_lcd: REG6 {
  142. regulator-name = "VDD10_LCD";
  143. regulator-min-microvolt = <1000000>;
  144. regulator-max-microvolt = <1000000>;
  145. regulator-always-on;
  146. };
  147. vcca_codec: REG7 {
  148. regulator-name = "VCCA_CODEC";
  149. regulator-min-microvolt = <3300000>;
  150. regulator-max-microvolt = <3300000>;
  151. regulator-always-on;
  152. };
  153. vcca_tp: REG8 {
  154. regulator-name = "VCCA_TP";
  155. regulator-min-microvolt = <3300000>;
  156. regulator-max-microvolt = <3300000>;
  157. regulator-always-on;
  158. };
  159. vccio_pmu: REG9 {
  160. regulator-name = "VCCIO_PMU";
  161. regulator-min-microvolt = <3300000>;
  162. regulator-max-microvolt = <3300000>;
  163. regulator-always-on;
  164. };
  165. vdd_10: REG10 {
  166. regulator-name = "VDD_10";
  167. regulator-min-microvolt = <1000000>;
  168. regulator-max-microvolt = <1000000>;
  169. regulator-always-on;
  170. };
  171. vcc_18: REG11 {
  172. regulator-name = "VCC_18";
  173. regulator-min-microvolt = <1800000>;
  174. regulator-max-microvolt = <1800000>;
  175. regulator-always-on;
  176. };
  177. vcc18_lcd: REG12 {
  178. regulator-name = "VCC18_LCD";
  179. regulator-min-microvolt = <1800000>;
  180. regulator-max-microvolt = <1800000>;
  181. regulator-always-on;
  182. };
  183. };
  184. };
  185. vdd_cpu: syr827@40 {
  186. compatible = "silergy,syr827";
  187. reg = <0x40>;
  188. fcs,suspend-voltage-selector = <1>;
  189. regulator-always-on;
  190. regulator-boot-on;
  191. regulator-enable-ramp-delay = <300>;
  192. regulator-name = "vdd_cpu";
  193. regulator-min-microvolt = <850000>;
  194. regulator-max-microvolt = <1350000>;
  195. regulator-ramp-delay = <8000>;
  196. vin-supply = <&vcc_sys>;
  197. };
  198. vdd_gpu: syr828@41 {
  199. compatible = "silergy,syr828";
  200. reg = <0x41>;
  201. fcs,suspend-voltage-selector = <1>;
  202. regulator-always-on;
  203. regulator-enable-ramp-delay = <300>;
  204. regulator-min-microvolt = <850000>;
  205. regulator-max-microvolt = <1350000>;
  206. regulator-name = "vdd_gpu";
  207. regulator-ramp-delay = <8000>;
  208. vin-supply = <&vcc_sys>;
  209. };
  210. };
  211. &pinctrl {
  212. pcfg_output_high: pcfg-output-high {
  213. output-high;
  214. };
  215. emmc {
  216. emmc_reset: emmc-reset {
  217. rockchip,pins = <3 9 RK_FUNC_GPIO &pcfg_pull_none>;
  218. };
  219. };
  220. gmac {
  221. phy_rst: phy-rst {
  222. rockchip,pins = <4 8 RK_FUNC_GPIO &pcfg_output_high>;
  223. };
  224. };
  225. };
  226. &tsadc {
  227. rockchip,hw-tshut-mode = <0>; /* tshut mode 0:CRU 1:GPIO */
  228. rockchip,hw-tshut-polarity = <0>; /* tshut polarity 0:LOW 1:HIGH */
  229. status = "okay";
  230. };
  231. &vopb {
  232. status = "okay";
  233. };
  234. &vopb_mmu {
  235. status = "okay";
  236. };
  237. &vopl {
  238. status = "okay";
  239. };
  240. &vopl_mmu {
  241. status = "okay";
  242. };
  243. &wdt {
  244. status = "okay";
  245. };