0001 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
0002 /*
0003 * Copyright (c) 2016 Fuzhou Rockchip Electronics Co., Ltd
0004 */
0005
0006 /dts-v1/;
0007 #include <dt-bindings/pwm/pwm.h>
0008 #include "rk3399.dtsi"
0009
0010 / {
0011 model = "Rockchip RK3399 Evaluation Board";
0012 compatible = "rockchip,rk3399-evb", "rockchip,rk3399";
0013
0014 aliases {
0015 mmc0 = &sdhci;
0016 };
0017
0018 backlight: backlight {
0019 compatible = "pwm-backlight";
0020 brightness-levels = <
0021 0 1 2 3 4 5 6 7
0022 8 9 10 11 12 13 14 15
0023 16 17 18 19 20 21 22 23
0024 24 25 26 27 28 29 30 31
0025 32 33 34 35 36 37 38 39
0026 40 41 42 43 44 45 46 47
0027 48 49 50 51 52 53 54 55
0028 56 57 58 59 60 61 62 63
0029 64 65 66 67 68 69 70 71
0030 72 73 74 75 76 77 78 79
0031 80 81 82 83 84 85 86 87
0032 88 89 90 91 92 93 94 95
0033 96 97 98 99 100 101 102 103
0034 104 105 106 107 108 109 110 111
0035 112 113 114 115 116 117 118 119
0036 120 121 122 123 124 125 126 127
0037 128 129 130 131 132 133 134 135
0038 136 137 138 139 140 141 142 143
0039 144 145 146 147 148 149 150 151
0040 152 153 154 155 156 157 158 159
0041 160 161 162 163 164 165 166 167
0042 168 169 170 171 172 173 174 175
0043 176 177 178 179 180 181 182 183
0044 184 185 186 187 188 189 190 191
0045 192 193 194 195 196 197 198 199
0046 200 201 202 203 204 205 206 207
0047 208 209 210 211 212 213 214 215
0048 216 217 218 219 220 221 222 223
0049 224 225 226 227 228 229 230 231
0050 232 233 234 235 236 237 238 239
0051 240 241 242 243 244 245 246 247
0052 248 249 250 251 252 253 254 255>;
0053 default-brightness-level = <200>;
0054 pwms = <&pwm0 0 25000 0>;
0055 };
0056
0057 edp_panel: edp-panel {
0058 compatible = "lg,lp079qx1-sp0v";
0059 backlight = <&backlight>;
0060 enable-gpios = <&gpio1 RK_PB5 GPIO_ACTIVE_HIGH>;
0061 power-supply = <&vcc3v3_s0>;
0062
0063 port {
0064 panel_in_edp: endpoint {
0065 remote-endpoint = <&edp_out_panel>;
0066 };
0067 };
0068 };
0069
0070 clkin_gmac: external-gmac-clock {
0071 compatible = "fixed-clock";
0072 clock-frequency = <125000000>;
0073 clock-output-names = "clkin_gmac";
0074 #clock-cells = <0>;
0075 };
0076
0077 vdd_center: vdd-center {
0078 compatible = "pwm-regulator";
0079 pwms = <&pwm3 0 25000 0>;
0080 regulator-name = "vdd_center";
0081 regulator-min-microvolt = <800000>;
0082 regulator-max-microvolt = <1400000>;
0083 regulator-always-on;
0084 regulator-boot-on;
0085 status = "okay";
0086 };
0087
0088 vcc3v3_sys: vcc3v3-sys {
0089 compatible = "regulator-fixed";
0090 regulator-name = "vcc3v3_sys";
0091 regulator-always-on;
0092 regulator-boot-on;
0093 regulator-min-microvolt = <3300000>;
0094 regulator-max-microvolt = <3300000>;
0095 };
0096
0097 vcc5v0_sys: vcc5v0-sys {
0098 compatible = "regulator-fixed";
0099 regulator-name = "vcc5v0_sys";
0100 regulator-always-on;
0101 regulator-boot-on;
0102 regulator-min-microvolt = <5000000>;
0103 regulator-max-microvolt = <5000000>;
0104 };
0105
0106 vcc5v0_host: vcc5v0-host-regulator {
0107 compatible = "regulator-fixed";
0108 enable-active-high;
0109 gpio = <&gpio4 RK_PD1 GPIO_ACTIVE_HIGH>;
0110 pinctrl-names = "default";
0111 pinctrl-0 = <&vcc5v0_host_en>;
0112 regulator-name = "vcc5v0_host";
0113 vin-supply = <&vcc5v0_sys>;
0114 };
0115
0116 vcc_phy: vcc-phy-regulator {
0117 compatible = "regulator-fixed";
0118 regulator-name = "vcc_phy";
0119 regulator-always-on;
0120 regulator-boot-on;
0121 };
0122
0123 vcc_phy: vcc-phy-regulator {
0124 compatible = "regulator-fixed";
0125 regulator-name = "vcc_phy";
0126 regulator-always-on;
0127 regulator-boot-on;
0128 };
0129
0130 };
0131
0132 &edp {
0133 status = "okay";
0134 force-hpd;
0135
0136 ports {
0137 edp_out: port@1 {
0138 reg = <1>;
0139 #address-cells = <1>;
0140 #size-cells = <0>;
0141
0142 edp_out_panel: endpoint@0 {
0143 reg = <0>;
0144 remote-endpoint = <&panel_in_edp>;
0145 };
0146 };
0147 };
0148 };
0149
0150 &emmc_phy {
0151 status = "okay";
0152 };
0153
0154 &gmac {
0155 assigned-clocks = <&cru SCLK_RMII_SRC>;
0156 assigned-clock-parents = <&clkin_gmac>;
0157 clock_in_out = "input";
0158 phy-supply = <&vcc_phy>;
0159 phy-mode = "rgmii";
0160 pinctrl-names = "default";
0161 pinctrl-0 = <&rgmii_pins>;
0162 snps,reset-gpio = <&gpio3 RK_PB7 GPIO_ACTIVE_LOW>;
0163 snps,reset-active-low;
0164 snps,reset-delays-us = <0 10000 50000>;
0165 tx_delay = <0x28>;
0166 rx_delay = <0x11>;
0167 status = "okay";
0168 };
0169
0170 &i2c0 {
0171 status = "okay";
0172
0173 rk808: pmic@1b {
0174 compatible = "rockchip,rk808";
0175 reg = <0x1b>;
0176 interrupt-parent = <&gpio1>;
0177 interrupts = <21 IRQ_TYPE_LEVEL_LOW>;
0178 pinctrl-names = "default";
0179 pinctrl-0 = <&pmic_int_l>;
0180 rockchip,system-power-controller;
0181 wakeup-source;
0182 #clock-cells = <1>;
0183 clock-output-names = "rk808-clkout1", "rk808-clkout2";
0184
0185 vcc1-supply = <&vcc3v3_sys>;
0186 vcc2-supply = <&vcc3v3_sys>;
0187 vcc3-supply = <&vcc3v3_sys>;
0188 vcc4-supply = <&vcc3v3_sys>;
0189 vcc6-supply = <&vcc3v3_sys>;
0190 vcc7-supply = <&vcc3v3_sys>;
0191 vcc8-supply = <&vcc3v3_sys>;
0192 vcc9-supply = <&vcc3v3_sys>;
0193 vcc10-supply = <&vcc3v3_sys>;
0194 vcc11-supply = <&vcc3v3_sys>;
0195 vcc12-supply = <&vcc3v3_sys>;
0196 vddio-supply = <&vcc1v8_pmu>;
0197
0198 regulators {
0199 vdd_log: DCDC_REG1 {
0200 regulator-name = "vdd_log";
0201 regulator-min-microvolt = <750000>;
0202 regulator-max-microvolt = <1350000>;
0203 regulator-ramp-delay = <6001>;
0204 regulator-always-on;
0205 regulator-boot-on;
0206 regulator-state-mem {
0207 regulator-on-in-suspend;
0208 regulator-suspend-microvolt = <900000>;
0209 };
0210 };
0211
0212 vdd_cpu_l: DCDC_REG2 {
0213 regulator-name = "vdd_cpu_l";
0214 regulator-min-microvolt = <750000>;
0215 regulator-max-microvolt = <1350000>;
0216 regulator-ramp-delay = <6001>;
0217 regulator-always-on;
0218 regulator-boot-on;
0219 regulator-state-mem {
0220 regulator-off-in-suspend;
0221 };
0222 };
0223
0224 vcc_ddr: DCDC_REG3 {
0225 regulator-name = "vcc_ddr";
0226 regulator-always-on;
0227 regulator-boot-on;
0228 regulator-state-mem {
0229 regulator-on-in-suspend;
0230 };
0231 };
0232
0233 vcc_1v8: DCDC_REG4 {
0234 regulator-name = "vcc_1v8";
0235 regulator-min-microvolt = <1800000>;
0236 regulator-max-microvolt = <1800000>;
0237 regulator-always-on;
0238 regulator-boot-on;
0239 regulator-state-mem {
0240 regulator-on-in-suspend;
0241 regulator-suspend-microvolt = <1800000>;
0242 };
0243 };
0244
0245 vcc1v8_dvp: LDO_REG1 {
0246 regulator-name = "vcc1v8_dvp";
0247 regulator-min-microvolt = <1800000>;
0248 regulator-max-microvolt = <1800000>;
0249 regulator-always-on;
0250 regulator-boot-on;
0251 regulator-state-mem {
0252 regulator-off-in-suspend;
0253 };
0254 };
0255
0256 vcc3v0_tp: LDO_REG2 {
0257 regulator-name = "vcc3v0_tp";
0258 regulator-min-microvolt = <3000000>;
0259 regulator-max-microvolt = <3000000>;
0260 regulator-always-on;
0261 regulator-boot-on;
0262 regulator-state-mem {
0263 regulator-off-in-suspend;
0264 };
0265 };
0266
0267 vcc1v8_pmu: LDO_REG3 {
0268 regulator-name = "vcc1v8_pmu";
0269 regulator-min-microvolt = <1800000>;
0270 regulator-max-microvolt = <1800000>;
0271 regulator-always-on;
0272 regulator-boot-on;
0273 regulator-state-mem {
0274 regulator-on-in-suspend;
0275 regulator-suspend-microvolt = <1800000>;
0276 };
0277 };
0278
0279 vcc_sd: LDO_REG4 {
0280 regulator-name = "vcc_sd";
0281 regulator-min-microvolt = <1800000>;
0282 regulator-max-microvolt = <3000000>;
0283 regulator-always-on;
0284 regulator-boot-on;
0285 regulator-state-mem {
0286 regulator-on-in-suspend;
0287 regulator-suspend-microvolt = <3000000>;
0288 };
0289 };
0290
0291 vcca3v0_codec: LDO_REG5 {
0292 regulator-name = "vcca3v0_codec";
0293 regulator-min-microvolt = <3000000>;
0294 regulator-max-microvolt = <3000000>;
0295 regulator-always-on;
0296 regulator-boot-on;
0297 regulator-state-mem {
0298 regulator-off-in-suspend;
0299 };
0300 };
0301
0302 vcc_1v5: LDO_REG6 {
0303 regulator-name = "vcc_1v5";
0304 regulator-min-microvolt = <1500000>;
0305 regulator-max-microvolt = <1500000>;
0306 regulator-always-on;
0307 regulator-boot-on;
0308 regulator-state-mem {
0309 regulator-on-in-suspend;
0310 regulator-suspend-microvolt = <1500000>;
0311 };
0312 };
0313
0314 vcca1v8_codec: LDO_REG7 {
0315 regulator-name = "vcca1v8_codec";
0316 regulator-min-microvolt = <1800000>;
0317 regulator-max-microvolt = <1800000>;
0318 regulator-always-on;
0319 regulator-boot-on;
0320 regulator-state-mem {
0321 regulator-off-in-suspend;
0322 };
0323 };
0324
0325 vcc_3v0: LDO_REG8 {
0326 regulator-name = "vcc_3v0";
0327 regulator-min-microvolt = <3000000>;
0328 regulator-max-microvolt = <3000000>;
0329 regulator-always-on;
0330 regulator-boot-on;
0331 regulator-state-mem {
0332 regulator-on-in-suspend;
0333 regulator-suspend-microvolt = <3000000>;
0334 };
0335 };
0336
0337 vcc3v3_s3: SWITCH_REG1 {
0338 regulator-name = "vcc3v3_s3";
0339 regulator-always-on;
0340 regulator-boot-on;
0341 regulator-state-mem {
0342 regulator-on-in-suspend;
0343 };
0344 };
0345
0346 vcc3v3_s0: SWITCH_REG2 {
0347 regulator-name = "vcc3v3_s0";
0348 regulator-always-on;
0349 regulator-boot-on;
0350 regulator-state-mem {
0351 regulator-off-in-suspend;
0352 };
0353 };
0354 };
0355 };
0356
0357 vdd_cpu_b: regulator@40 {
0358 compatible = "silergy,syr827";
0359 reg = <0x40>;
0360 fcs,suspend-voltage-selector = <1>;
0361 regulator-name = "vdd_cpu_b";
0362 regulator-min-microvolt = <712500>;
0363 regulator-max-microvolt = <1500000>;
0364 regulator-ramp-delay = <1000>;
0365 regulator-always-on;
0366 regulator-boot-on;
0367 vin-supply = <&vcc5v0_sys>;
0368
0369 regulator-state-mem {
0370 regulator-off-in-suspend;
0371 };
0372 };
0373
0374 vdd_gpu: regulator@41 {
0375 compatible = "silergy,syr828";
0376 reg = <0x41>;
0377 fcs,suspend-voltage-selector = <1>;
0378 regulator-name = "vdd_gpu";
0379 regulator-min-microvolt = <712500>;
0380 regulator-max-microvolt = <1500000>;
0381 regulator-ramp-delay = <1000>;
0382 regulator-always-on;
0383 regulator-boot-on;
0384 vin-supply = <&vcc5v0_sys>;
0385
0386 regulator-state-mem {
0387 regulator-off-in-suspend;
0388 };
0389 };
0390 };
0391
0392 &pwm0 {
0393 status = "okay";
0394 };
0395
0396 &pwm2 {
0397 status = "okay";
0398 };
0399
0400 &pwm3 {
0401 status = "okay";
0402 };
0403
0404 &sdhci {
0405 bus-width = <8>;
0406 mmc-hs400-1_8v;
0407 mmc-hs400-enhanced-strobe;
0408 non-removable;
0409 status = "okay";
0410 };
0411
0412 &pcie_phy {
0413 status = "disabled";
0414 };
0415
0416 &pcie0 {
0417 ep-gpios = <&gpio3 RK_PB5 GPIO_ACTIVE_HIGH>;
0418 num-lanes = <4>;
0419 pinctrl-names = "default";
0420 pinctrl-0 = <&pcie_clkreqn_cpm>;
0421 status = "disabled";
0422 };
0423
0424 &u2phy0 {
0425 status = "okay";
0426 };
0427
0428 &u2phy0_host {
0429 phy-supply = <&vcc5v0_host>;
0430 status = "okay";
0431 };
0432
0433 &u2phy1 {
0434 status = "okay";
0435 };
0436
0437 &u2phy1_host {
0438 phy-supply = <&vcc5v0_host>;
0439 status = "okay";
0440 };
0441
0442 &uart2 {
0443 status = "okay";
0444 };
0445
0446 &usb_host0_ehci {
0447 status = "okay";
0448 };
0449
0450 &usb_host0_ohci {
0451 status = "okay";
0452 };
0453
0454 &usb_host1_ehci {
0455 status = "okay";
0456 };
0457
0458 &usb_host1_ohci {
0459 status = "okay";
0460 };
0461
0462 &pinctrl {
0463 pmic {
0464 pmic_int_l: pmic-int-l {
0465 rockchip,pins =
0466 <1 RK_PC5 RK_FUNC_GPIO &pcfg_pull_up>;
0467 };
0468 };
0469
0470 usb2 {
0471 vcc5v0_host_en: vcc5v0-host-en {
0472 rockchip,pins =
0473 <4 RK_PD1 RK_FUNC_GPIO &pcfg_pull_none>;
0474 };
0475 };
0476 };
0477
0478 &vopb {
0479 status = "okay";
0480 };
0481
0482 &vopb_mmu {
0483 status = "okay";
0484 };