Levin Du | 8a681f4 | 2019-07-26 15:43:54 +0800 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
| 2 | /* |
| 3 | * Copyright (C) 2019 Levin Du <djw@t-chip.com.cn> |
| 4 | */ |
| 5 | |
| 6 | #include "rk3399-u-boot.dtsi" |
| 7 | #include "rk3399-sdram-lpddr4-100.dtsi" |
| 8 | |
| 9 | / { |
Jagan Teki | 3d11196c | 2019-12-21 13:24:38 +0530 | [diff] [blame] | 10 | aliases { |
| 11 | spi0 = &spi1; |
| 12 | }; |
| 13 | |
Levin Du | 8a681f4 | 2019-07-26 15:43:54 +0800 | [diff] [blame] | 14 | chosen { |
| 15 | u-boot,spl-boot-order = "same-as-spl", &sdhci, &sdmmc; |
| 16 | }; |
Suniel Mahesh | f9e2d9e | 2020-03-25 21:07:36 +0530 | [diff] [blame] | 17 | |
| 18 | vcc_hub_en: vcc_hub_en-regulator { |
| 19 | compatible = "regulator-fixed"; |
| 20 | enable-active-high; |
| 21 | gpio = <&gpio2 RK_PA4 GPIO_ACTIVE_HIGH>; |
| 22 | pinctrl-names = "default"; |
| 23 | pinctrl-0 = <&hub_rst>; |
| 24 | regulator-name = "vcc_hub_en"; |
| 25 | regulator-always-on; |
| 26 | }; |
Levin Du | 8a681f4 | 2019-07-26 15:43:54 +0800 | [diff] [blame] | 27 | }; |
| 28 | |
Jagan Teki | 167efc2 | 2020-04-28 15:30:17 +0530 | [diff] [blame] | 29 | /* |
| 30 | * should be placed inside mp8859, but not until mp8859 has |
| 31 | * its own dt-binding. |
| 32 | */ |
| 33 | &dc_12v { |
| 34 | compatible = "regulator-fixed"; |
| 35 | regulator-name = "dc_12v"; |
| 36 | regulator-always-on; |
| 37 | regulator-boot-on; |
| 38 | regulator-min-microvolt = <12000000>; |
| 39 | regulator-max-microvolt = <12000000>; |
| 40 | vin-supply = <&vcc_vbus_typec0>; |
| 41 | }; |
| 42 | |
Levin Du | 8a681f4 | 2019-07-26 15:43:54 +0800 | [diff] [blame] | 43 | &vdd_log { |
| 44 | regulator-min-microvolt = <430000>; |
| 45 | regulator-init-microvolt = <950000>; |
| 46 | }; |
Jagan Teki | 167efc2 | 2020-04-28 15:30:17 +0530 | [diff] [blame] | 47 | |
| 48 | &vcc5v0_host { |
| 49 | regulator-always-on; |
| 50 | }; |
| 51 | |
| 52 | &vcc_sys { |
| 53 | regulator-always-on; |
| 54 | }; |
| 55 | |
| 56 | &vcc_sdio { |
| 57 | regulator-always-on; |
| 58 | }; |