rk3399-evb.dts 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263
  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. backlight: backlight {
  50. compatible = "pwm-backlight";
  51. brightness-levels = <
  52. 0 1 2 3 4 5 6 7
  53. 8 9 10 11 12 13 14 15
  54. 16 17 18 19 20 21 22 23
  55. 24 25 26 27 28 29 30 31
  56. 32 33 34 35 36 37 38 39
  57. 40 41 42 43 44 45 46 47
  58. 48 49 50 51 52 53 54 55
  59. 56 57 58 59 60 61 62 63
  60. 64 65 66 67 68 69 70 71
  61. 72 73 74 75 76 77 78 79
  62. 80 81 82 83 84 85 86 87
  63. 88 89 90 91 92 93 94 95
  64. 96 97 98 99 100 101 102 103
  65. 104 105 106 107 108 109 110 111
  66. 112 113 114 115 116 117 118 119
  67. 120 121 122 123 124 125 126 127
  68. 128 129 130 131 132 133 134 135
  69. 136 137 138 139 140 141 142 143
  70. 144 145 146 147 148 149 150 151
  71. 152 153 154 155 156 157 158 159
  72. 160 161 162 163 164 165 166 167
  73. 168 169 170 171 172 173 174 175
  74. 176 177 178 179 180 181 182 183
  75. 184 185 186 187 188 189 190 191
  76. 192 193 194 195 196 197 198 199
  77. 200 201 202 203 204 205 206 207
  78. 208 209 210 211 212 213 214 215
  79. 216 217 218 219 220 221 222 223
  80. 224 225 226 227 228 229 230 231
  81. 232 233 234 235 236 237 238 239
  82. 240 241 242 243 244 245 246 247
  83. 248 249 250 251 252 253 254 255>;
  84. default-brightness-level = <200>;
  85. enable-gpios = <&gpio1 13 GPIO_ACTIVE_HIGH>;
  86. pwms = <&pwm0 0 25000 0>;
  87. };
  88. clkin_gmac: external-gmac-clock {
  89. compatible = "fixed-clock";
  90. clock-frequency = <125000000>;
  91. clock-output-names = "clkin_gmac";
  92. #clock-cells = <0>;
  93. };
  94. vdd_center: vdd-center {
  95. compatible = "pwm-regulator";
  96. pwms = <&pwm3 0 25000 0>;
  97. regulator-name = "vdd_center";
  98. regulator-min-microvolt = <800000>;
  99. regulator-max-microvolt = <1400000>;
  100. regulator-always-on;
  101. regulator-boot-on;
  102. status = "okay";
  103. };
  104. vcc3v3_sys: vcc3v3-sys {
  105. compatible = "regulator-fixed";
  106. regulator-name = "vcc3v3_sys";
  107. regulator-always-on;
  108. regulator-boot-on;
  109. regulator-min-microvolt = <3300000>;
  110. regulator-max-microvolt = <3300000>;
  111. };
  112. vcc5v0_sys: vcc5v0-sys {
  113. compatible = "regulator-fixed";
  114. regulator-name = "vcc5v0_sys";
  115. regulator-always-on;
  116. regulator-boot-on;
  117. regulator-min-microvolt = <5000000>;
  118. regulator-max-microvolt = <5000000>;
  119. };
  120. vcc5v0_host: vcc5v0-host-regulator {
  121. compatible = "regulator-fixed";
  122. enable-active-high;
  123. gpio = <&gpio4 25 GPIO_ACTIVE_HIGH>;
  124. pinctrl-names = "default";
  125. pinctrl-0 = <&vcc5v0_host_en>;
  126. regulator-name = "vcc5v0_host";
  127. vin-supply = <&vcc5v0_sys>;
  128. };
  129. vcc_phy: vcc-phy-regulator {
  130. compatible = "regulator-fixed";
  131. regulator-name = "vcc_phy";
  132. regulator-always-on;
  133. regulator-boot-on;
  134. };
  135. vcc_phy: vcc-phy-regulator {
  136. compatible = "regulator-fixed";
  137. regulator-name = "vcc_phy";
  138. regulator-always-on;
  139. regulator-boot-on;
  140. };
  141. };
  142. &emmc_phy {
  143. status = "okay";
  144. };
  145. &gmac {
  146. assigned-clocks = <&cru SCLK_RMII_SRC>;
  147. assigned-clock-parents = <&clkin_gmac>;
  148. clock_in_out = "input";
  149. phy-supply = <&vcc_phy>;
  150. phy-mode = "rgmii";
  151. pinctrl-names = "default";
  152. pinctrl-0 = <&rgmii_pins>;
  153. snps,reset-gpio = <&gpio3 15 GPIO_ACTIVE_LOW>;
  154. snps,reset-active-low;
  155. snps,reset-delays-us = <0 10000 50000>;
  156. tx_delay = <0x28>;
  157. rx_delay = <0x11>;
  158. status = "okay";
  159. };
  160. &pwm0 {
  161. status = "okay";
  162. };
  163. &pwm2 {
  164. status = "okay";
  165. };
  166. &pwm3 {
  167. status = "okay";
  168. };
  169. &sdhci {
  170. bus-width = <8>;
  171. mmc-hs400-1_8v;
  172. mmc-hs400-enhanced-strobe;
  173. non-removable;
  174. status = "okay";
  175. };
  176. &pcie_phy {
  177. status = "disabled";
  178. };
  179. &pcie0 {
  180. ep-gpios = <&gpio3 13 GPIO_ACTIVE_HIGH>;
  181. num-lanes = <4>;
  182. pinctrl-names = "default";
  183. pinctrl-0 = <&pcie_clkreqn>;
  184. status = "disabled";
  185. };
  186. &u2phy0 {
  187. status = "okay";
  188. };
  189. &u2phy0_host {
  190. phy-supply = <&vcc5v0_host>;
  191. status = "okay";
  192. };
  193. &u2phy1 {
  194. status = "okay";
  195. };
  196. &u2phy1_host {
  197. phy-supply = <&vcc5v0_host>;
  198. status = "okay";
  199. };
  200. &uart2 {
  201. status = "okay";
  202. };
  203. &usb_host0_ehci {
  204. status = "okay";
  205. };
  206. &usb_host0_ohci {
  207. status = "okay";
  208. };
  209. &usb_host1_ehci {
  210. status = "okay";
  211. };
  212. &usb_host1_ohci {
  213. status = "okay";
  214. };
  215. &pinctrl {
  216. pmic {
  217. pmic_int_l: pmic-int-l {
  218. rockchip,pins =
  219. <1 21 RK_FUNC_GPIO &pcfg_pull_up>;
  220. };
  221. pmic_dvs2: pmic-dvs2 {
  222. rockchip,pins =
  223. <1 18 RK_FUNC_GPIO &pcfg_pull_down>;
  224. };
  225. };
  226. usb2 {
  227. vcc5v0_host_en: vcc5v0-host-en {
  228. rockchip,pins =
  229. <4 25 RK_FUNC_GPIO &pcfg_pull_none>;
  230. };
  231. };
  232. };