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