Levin Du | c62a9d8 | 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 | / { |
Levin Du | c62a9d8 | 2019-07-26 15:43:54 +0800 | [diff] [blame] | 10 | chosen { |
Jagan Teki | 5d00e00 | 2020-06-04 20:21:40 +0530 | [diff] [blame] | 11 | u-boot,spl-boot-order = "same-as-spl", &spi_flash, &sdhci, &sdmmc; |
Levin Du | c62a9d8 | 2019-07-26 15:43:54 +0800 | [diff] [blame] | 12 | }; |
Suniel Mahesh | 154d7f9 | 2020-03-25 21:07:36 +0530 | [diff] [blame] | 13 | |
| 14 | vcc_hub_en: vcc_hub_en-regulator { |
| 15 | compatible = "regulator-fixed"; |
| 16 | enable-active-high; |
| 17 | gpio = <&gpio2 RK_PA4 GPIO_ACTIVE_HIGH>; |
| 18 | pinctrl-names = "default"; |
| 19 | pinctrl-0 = <&hub_rst>; |
| 20 | regulator-name = "vcc_hub_en"; |
| 21 | regulator-always-on; |
| 22 | }; |
Levin Du | c62a9d8 | 2019-07-26 15:43:54 +0800 | [diff] [blame] | 23 | }; |
| 24 | |
Jagan Teki | 5cc2118 | 2020-04-28 15:30:17 +0530 | [diff] [blame] | 25 | /* |
| 26 | * should be placed inside mp8859, but not until mp8859 has |
| 27 | * its own dt-binding. |
| 28 | */ |
| 29 | &dc_12v { |
| 30 | compatible = "regulator-fixed"; |
| 31 | regulator-name = "dc_12v"; |
| 32 | regulator-always-on; |
| 33 | regulator-boot-on; |
| 34 | regulator-min-microvolt = <12000000>; |
| 35 | regulator-max-microvolt = <12000000>; |
| 36 | vin-supply = <&vcc_vbus_typec0>; |
| 37 | }; |
| 38 | |
Jagan Teki | 5d00e00 | 2020-06-04 20:21:40 +0530 | [diff] [blame] | 39 | &spi1 { |
| 40 | spi_flash: flash@0 { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 41 | bootph-all; |
Jagan Teki | 5d00e00 | 2020-06-04 20:21:40 +0530 | [diff] [blame] | 42 | }; |
| 43 | }; |
| 44 | |
Levin Du | c62a9d8 | 2019-07-26 15:43:54 +0800 | [diff] [blame] | 45 | &vdd_log { |
| 46 | regulator-min-microvolt = <430000>; |
| 47 | regulator-init-microvolt = <950000>; |
| 48 | }; |
Jagan Teki | 5cc2118 | 2020-04-28 15:30:17 +0530 | [diff] [blame] | 49 | |
| 50 | &vcc5v0_host { |
| 51 | regulator-always-on; |
| 52 | }; |
| 53 | |
| 54 | &vcc_sys { |
| 55 | regulator-always-on; |
| 56 | }; |
| 57 | |
| 58 | &vcc_sdio { |
| 59 | regulator-always-on; |
| 60 | }; |