rk3399-evb.dts 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  1. /*
  2. * Copyright (c) 2016 Fuzhou Rockchip Electronics Co., Ltd
  3. *
  4. * This file is dual-licensed: you can use it either under the terms
  5. * of the GPL or the X11 license, at your option. Note that this dual
  6. * licensing only applies to this file, and not this project as a
  7. * whole.
  8. *
  9. * a) This file is free software; you can redistribute it and/or
  10. * modify it under the terms of the GNU General Public License as
  11. * published by the Free Software Foundation; either version 2 of the
  12. * License, or (at your option) any later version.
  13. *
  14. * This file is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. * GNU General Public License for more details.
  18. *
  19. * Or, alternatively,
  20. *
  21. * b) Permission is hereby granted, free of charge, to any person
  22. * obtaining a copy of this software and associated documentation
  23. * files (the "Software"), to deal in the Software without
  24. * restriction, including without limitation the rights to use,
  25. * copy, modify, merge, publish, distribute, sublicense, and/or
  26. * sell copies of the Software, and to permit persons to whom the
  27. * Software is furnished to do so, subject to the following
  28. * conditions:
  29. *
  30. * The above copyright notice and this permission notice shall be
  31. * included in all copies or substantial portions of the Software.
  32. *
  33. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  34. * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  35. * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  36. * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  37. * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  38. * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  39. * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  40. * OTHER DEALINGS IN THE SOFTWARE.
  41. */
  42. /dts-v1/;
  43. #include <dt-bindings/pwm/pwm.h>
  44. #include "rk3399.dtsi"
  45. / {
  46. model = "Rockchip RK3399 Evaluation Board";
  47. compatible = "rockchip,rk3399-evb", "rockchip,rk3399",
  48. "google,rk3399evb-rev2";
  49. clkin_gmac: external-gmac-clock {
  50. compatible = "fixed-clock";
  51. clock-frequency = <125000000>;
  52. clock-output-names = "clkin_gmac";
  53. #clock-cells = <0>;
  54. };
  55. vdd_center: vdd-center {
  56. compatible = "pwm-regulator";
  57. pwms = <&pwm3 0 25000 0>;
  58. regulator-name = "vdd_center";
  59. regulator-min-microvolt = <800000>;
  60. regulator-max-microvolt = <1400000>;
  61. regulator-always-on;
  62. regulator-boot-on;
  63. status = "okay";
  64. };
  65. vcc3v3_sys: vcc3v3-sys {
  66. compatible = "regulator-fixed";
  67. regulator-name = "vcc3v3_sys";
  68. regulator-always-on;
  69. regulator-boot-on;
  70. regulator-min-microvolt = <3300000>;
  71. regulator-max-microvolt = <3300000>;
  72. };
  73. vcc5v0_sys: vcc5v0-sys {
  74. compatible = "regulator-fixed";
  75. regulator-name = "vcc5v0_sys";
  76. regulator-always-on;
  77. regulator-boot-on;
  78. regulator-min-microvolt = <5000000>;
  79. regulator-max-microvolt = <5000000>;
  80. };
  81. vcc5v0_host: vcc5v0-host-regulator {
  82. compatible = "regulator-fixed";
  83. enable-active-high;
  84. gpio = <&gpio4 25 GPIO_ACTIVE_HIGH>;
  85. pinctrl-names = "default";
  86. pinctrl-0 = <&vcc5v0_host_en>;
  87. regulator-name = "vcc5v0_host";
  88. vin-supply = <&vcc5v0_sys>;
  89. };
  90. vcc_phy: vcc-phy-regulator {
  91. compatible = "regulator-fixed";
  92. regulator-name = "vcc_phy";
  93. regulator-always-on;
  94. regulator-boot-on;
  95. };
  96. vcc_phy: vcc-phy-regulator {
  97. compatible = "regulator-fixed";
  98. regulator-name = "vcc_phy";
  99. regulator-always-on;
  100. regulator-boot-on;
  101. };
  102. };
  103. &emmc_phy {
  104. status = "okay";
  105. };
  106. &gmac {
  107. assigned-clocks = <&cru SCLK_RMII_SRC>;
  108. assigned-clock-parents = <&clkin_gmac>;
  109. clock_in_out = "input";
  110. phy-supply = <&vcc_phy>;
  111. phy-mode = "rgmii";
  112. pinctrl-names = "default";
  113. pinctrl-0 = <&rgmii_pins>;
  114. snps,reset-gpio = <&gpio3 15 GPIO_ACTIVE_LOW>;
  115. snps,reset-active-low;
  116. snps,reset-delays-us = <0 10000 50000>;
  117. tx_delay = <0x28>;
  118. rx_delay = <0x11>;
  119. status = "okay";
  120. };
  121. &pwm0 {
  122. status = "okay";
  123. };
  124. &pwm2 {
  125. status = "okay";
  126. };
  127. &pwm3 {
  128. status = "okay";
  129. };
  130. &sdhci {
  131. bus-width = <8>;
  132. mmc-hs400-1_8v;
  133. mmc-hs400-enhanced-strobe;
  134. non-removable;
  135. status = "okay";
  136. };
  137. &pcie_phy {
  138. status = "disabled";
  139. };
  140. &pcie0 {
  141. ep-gpios = <&gpio3 13 GPIO_ACTIVE_HIGH>;
  142. num-lanes = <4>;
  143. pinctrl-names = "default";
  144. pinctrl-0 = <&pcie_clkreqn>;
  145. status = "disabled";
  146. };
  147. &u2phy0 {
  148. status = "okay";
  149. };
  150. &u2phy0_host {
  151. phy-supply = <&vcc5v0_host>;
  152. status = "okay";
  153. };
  154. &u2phy1 {
  155. status = "okay";
  156. };
  157. &u2phy1_host {
  158. phy-supply = <&vcc5v0_host>;
  159. status = "okay";
  160. };
  161. &uart2 {
  162. status = "okay";
  163. };
  164. &usb_host0_ehci {
  165. status = "okay";
  166. };
  167. &usb_host0_ohci {
  168. status = "okay";
  169. };
  170. &usb_host1_ehci {
  171. status = "okay";
  172. };
  173. &usb_host1_ohci {
  174. status = "okay";
  175. };
  176. &pinctrl {
  177. pmic {
  178. pmic_int_l: pmic-int-l {
  179. rockchip,pins =
  180. <1 21 RK_FUNC_GPIO &pcfg_pull_up>;
  181. };
  182. pmic_dvs2: pmic-dvs2 {
  183. rockchip,pins =
  184. <1 18 RK_FUNC_GPIO &pcfg_pull_down>;
  185. };
  186. };
  187. usb2 {
  188. vcc5v0_host_en: vcc5v0-host-en {
  189. rockchip,pins =
  190. <4 25 RK_FUNC_GPIO &pcfg_pull_none>;
  191. };
  192. };
  193. };