|
56 | 56 | device_type = "memory";
|
57 | 57 | };
|
58 | 58 |
|
59 |
| - vcc_sd: sdmmc-regulator { |
| 59 | + dc12_vbat: dc12-vbat { |
60 | 60 | compatible = "regulator-fixed";
|
61 |
| - gpio = <&gpio7 RK_PB3 GPIO_ACTIVE_LOW>; |
62 |
| - pinctrl-names = "default"; |
63 |
| - pinctrl-0 = <&sdmmc_pwr>; |
64 |
| - regulator-name = "vcc_sd"; |
| 61 | + regulator-name = "dc12_vbat"; |
| 62 | + regulator-min-microvolt = <12000000>; |
| 63 | + regulator-max-microvolt = <12000000>; |
| 64 | + regulator-always-on; |
| 65 | + regulator-boot-on; |
| 66 | + }; |
| 67 | + |
| 68 | + vboot_3v3: vboot-3v3 { |
| 69 | + compatible = "regulator-fixed"; |
| 70 | + regulator-name = "vboot_3v3"; |
65 | 71 | regulator-min-microvolt = <3300000>;
|
66 | 72 | regulator-max-microvolt = <3300000>;
|
67 |
| - startup-delay-us = <100000>; |
68 |
| - vin-supply = <&vcc_io>; |
| 73 | + regulator-always-on; |
| 74 | + regulator-boot-on; |
| 75 | + vin-supply = <&dc12_vbat>; |
69 | 76 | };
|
70 | 77 |
|
71 | 78 | vcc_sys: vsys-regulator {
|
72 | 79 | compatible = "regulator-fixed";
|
73 | 80 | regulator-name = "vcc_sys";
|
| 81 | + regulator-min-microvolt = <3700000>; |
| 82 | + regulator-max-microvolt = <3700000>; |
| 83 | + regulator-always-on; |
| 84 | + regulator-boot-on; |
| 85 | + vin-supply = <&dc12_vbat>; |
| 86 | + }; |
| 87 | + |
| 88 | + vboot_5v: vboot-5v { |
| 89 | + compatible = "regulator-fixed"; |
| 90 | + regulator-name = "vboot_sv"; |
| 91 | + regulator-min-microvolt = <5000000>; |
| 92 | + regulator-max-microvolt = <5000000>; |
| 93 | + regulator-always-on; |
| 94 | + regulator-boot-on; |
| 95 | + vin-supply = <&dc12_vbat>; |
| 96 | + }; |
| 97 | + |
| 98 | + v3g_3v3: v3g-3v3 { |
| 99 | + compatible = "regulator-fixed"; |
| 100 | + regulator-name = "v3g_3v3"; |
| 101 | + regulator-min-microvolt = <3300000>; |
| 102 | + regulator-max-microvolt = <3300000>; |
| 103 | + regulator-always-on; |
| 104 | + regulator-boot-on; |
| 105 | + vin-supply = <&dc12_vbat>; |
| 106 | + }; |
| 107 | + |
| 108 | + vsus_5v: vsus-5v { |
| 109 | + compatible = "regulator-fixed"; |
| 110 | + regulator-name = "vsus_5v"; |
74 | 111 | regulator-min-microvolt = <5000000>;
|
75 | 112 | regulator-max-microvolt = <5000000>;
|
76 | 113 | regulator-always-on;
|
77 | 114 | regulator-boot-on;
|
| 115 | + vin-supply = <&vcc_io>; |
| 116 | + }; |
| 117 | + |
| 118 | + vusb1_5v: vusb1-5v { |
| 119 | + compatible = "regulator-fixed"; |
| 120 | + regulator-name = "vusb1_5v"; |
| 121 | + enable-active-high; |
| 122 | + gpio = <&gpio0 RK_PB4 GPIO_ACTIVE_HIGH>; /* OTG_VBUS_DRV */ |
| 123 | + pinctrl-names = "default"; |
| 124 | + pinctrl-0 = <&otg_vbus_drv>; |
| 125 | + regulator-min-microvolt = <5000000>; |
| 126 | + regulator-max-microvolt = <5000000>; |
| 127 | + regulator-always-on; |
| 128 | + regulator-boot-on; |
| 129 | + vin-supply = <&vsus_5v>; |
| 130 | + }; |
| 131 | + |
| 132 | + vusb2_5v: vusb2-5v { |
| 133 | + compatible = "regulator-fixed"; |
| 134 | + regulator-name = "vusb2_5v"; |
| 135 | + enable-active-high; |
| 136 | + gpio = <&gpio8 RK_PB1 GPIO_ACTIVE_HIGH>; /* USB2_PWR_EN */ |
| 137 | + pinctrl-names = "default"; |
| 138 | + pinctrl-0 = <&usb2_pwr_en>; |
| 139 | + regulator-min-microvolt = <5000000>; |
| 140 | + regulator-max-microvolt = <5000000>; |
| 141 | + regulator-always-on; |
| 142 | + regulator-boot-on; |
| 143 | + vin-supply = <&vsus_5v>; |
| 144 | + }; |
| 145 | + |
| 146 | + ext_gmac: external-gmac-clock { |
| 147 | + compatible = "fixed-clock"; |
| 148 | + #clock-cells = <0>; |
| 149 | + clock-frequency = <125000000>; |
| 150 | + clock-output-names = "ext_gmac"; |
78 | 151 | };
|
79 | 152 | };
|
80 | 153 |
|
81 | 154 | &cpu0 {
|
82 | 155 | cpu0-supply = <&vdd_cpu>;
|
83 | 156 | };
|
84 | 157 |
|
| 158 | +&gmac { |
| 159 | + assigned-clocks = <&cru SCLK_MAC>; |
| 160 | + assigned-clock-parents = <&ext_gmac>; |
| 161 | + clock_in_out = "input"; |
| 162 | + pinctrl-names = "default"; |
| 163 | + pinctrl-0 = <&rgmii_pins>, <&phy_rst>, <&phy_pmeb>, <&phy_int>; |
| 164 | + phy-supply = <&vcc_lan>; |
| 165 | + phy-mode = "rgmii"; |
| 166 | + snps,reset-active-low; |
| 167 | + snps,reset-delays-us = <0 10000 1000000>; |
| 168 | + snps,reset-gpio = <&gpio4 RK_PB0 GPIO_ACTIVE_LOW>; |
| 169 | + tx_delay = <0x30>; |
| 170 | + rx_delay = <0x10>; |
| 171 | + status = "okay"; |
| 172 | +}; |
| 173 | + |
85 | 174 | &gpu {
|
86 | 175 | mali-supply = <&vdd_gpu>;
|
87 | 176 | status = "okay";
|
|
121 | 210 | vcc12-supply = <&vcc_io>;
|
122 | 211 |
|
123 | 212 | regulators {
|
124 |
| - vdd_cpu: vdd_log: DCDC_REG1 { |
125 |
| - regulator-name = "vdd_log"; |
| 213 | + vdd_cpu: DCDC_REG1 { |
| 214 | + regulator-name = "vdd_arm"; |
126 | 215 | regulator-min-microvolt = <750000>;
|
127 | 216 | regulator-max-microvolt = <1350000>;
|
128 | 217 | regulator-always-on;
|
|
260 | 349 | };
|
261 | 350 | };
|
262 | 351 |
|
263 |
| - vcc33_sd: SWITCH_REG1 { |
264 |
| - regulator-name = "vcc33_sd"; |
| 352 | + vcc_sd: SWITCH_REG1 { |
| 353 | + regulator-name = "vcc_sd"; |
265 | 354 | regulator-min-microvolt = <3300000>;
|
266 | 355 | regulator-max-microvolt = <3300000>;
|
267 | 356 | regulator-always-on;
|
|
289 | 378 | status = "okay";
|
290 | 379 | };
|
291 | 380 |
|
| 381 | +&io_domains { |
| 382 | + status = "okay"; |
| 383 | + |
| 384 | + audio-supply = <&vcc_18>; |
| 385 | + bb-supply = <&vcc_io>; |
| 386 | + dvp-supply = <&vcc_io>; |
| 387 | + flash0-suuply = <&vcc_18>; |
| 388 | + flash1-supply = <&vcc_lan>; |
| 389 | + gpio30-supply = <&vcc_io>; |
| 390 | + gpio1830 = <&vcc_io>; |
| 391 | + lcdc-supply = <&vcc_io>; |
| 392 | + sdcard-supply = <&vccio_sd>; |
| 393 | + wifi-supply = <&vcc_18>; |
| 394 | +}; |
| 395 | + |
292 | 396 | &sdmmc {
|
293 | 397 | bus-width = <4>;
|
294 | 398 | cap-mmc-highspeed;
|
|
312 | 416 | status = "okay";
|
313 | 417 | };
|
314 | 418 |
|
| 419 | +&usbphy { |
| 420 | + status = "okay"; |
| 421 | +}; |
| 422 | + |
| 423 | +&usb_host0_ehci { |
| 424 | + status = "okay"; |
| 425 | +}; |
| 426 | + |
| 427 | +&usb_host1 { |
| 428 | + pinctrl-names = "default"; |
| 429 | + pinctrl-0 = <&phy_pwr_en>; |
| 430 | + status = "okay"; |
| 431 | +}; |
| 432 | + |
| 433 | +&usb_otg { |
| 434 | + status = "okay"; |
| 435 | +}; |
| 436 | + |
315 | 437 | &vopb {
|
316 | 438 | status = "okay";
|
317 | 439 | };
|
|
333 | 455 | };
|
334 | 456 |
|
335 | 457 | &pinctrl {
|
| 458 | + pcfg_output_high: pcfg-output-high { |
| 459 | + output-high; |
| 460 | + }; |
| 461 | + |
| 462 | + gmac { |
| 463 | + phy_int: phy-int { |
| 464 | + rockchip,pins = <0 RK_PB1 RK_FUNC_GPIO &pcfg_pull_up>; |
| 465 | + }; |
| 466 | + |
| 467 | + phy_pmeb: phy-pmeb { |
| 468 | + rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up>; |
| 469 | + }; |
| 470 | + |
| 471 | + phy_rst: phy-rst { |
| 472 | + rockchip,pins = <4 RK_PB0 RK_FUNC_GPIO &pcfg_output_high>; |
| 473 | + }; |
| 474 | + }; |
| 475 | + |
336 | 476 | pmic {
|
337 | 477 | pmic_int: pmic-int {
|
338 | 478 | rockchip,pins = <RK_GPIO0 4 RK_FUNC_GPIO &pcfg_pull_up>;
|
339 | 479 | };
|
340 | 480 | };
|
341 | 481 |
|
342 |
| - sdmmc { |
343 |
| - sdmmc_pwr: sdmmc-pwr { |
344 |
| - rockchip,pins = <7 11 RK_FUNC_GPIO &pcfg_pull_none>; |
| 482 | + usb_host { |
| 483 | + phy_pwr_en: phy-pwr-en { |
| 484 | + rockchip,pins = <RK_GPIO2 RK_PB1 RK_FUNC_GPIO &pcfg_output_high>; |
| 485 | + }; |
| 486 | + |
| 487 | + usb2_pwr_en: usb2-pwr-en { |
| 488 | + rockchip,pins = <8 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>; |
| 489 | + }; |
| 490 | + }; |
| 491 | + |
| 492 | + usb_otg { |
| 493 | + otg_vbus_drv: otg-vbus-drv { |
| 494 | + rockchip,pins = <RK_GPIO0 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>; |
| 495 | + |
345 | 496 | };
|
346 | 497 | };
|
347 | 498 | };
|
0 commit comments