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