2019-07-26 07:43:54 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0+
|
|
|
|
/*
|
|
|
|
* Copyright (C) 2019 Levin Du <djw@t-chip.com.cn>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "rk3399-u-boot.dtsi"
|
|
|
|
#include "rk3399-sdram-lpddr4-100.dtsi"
|
|
|
|
|
|
|
|
/ {
|
|
|
|
chosen {
|
2020-06-04 14:51:40 +00:00
|
|
|
u-boot,spl-boot-order = "same-as-spl", &spi_flash, &sdhci, &sdmmc;
|
|
|
|
};
|
|
|
|
|
|
|
|
config {
|
|
|
|
u-boot,spl-payload-offset = <0x60000>; /* @ 384KB */
|
2019-07-26 07:43:54 +00:00
|
|
|
};
|
2020-03-25 15:37:36 +00:00
|
|
|
|
|
|
|
vcc_hub_en: vcc_hub_en-regulator {
|
|
|
|
compatible = "regulator-fixed";
|
|
|
|
enable-active-high;
|
|
|
|
gpio = <&gpio2 RK_PA4 GPIO_ACTIVE_HIGH>;
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&hub_rst>;
|
|
|
|
regulator-name = "vcc_hub_en";
|
|
|
|
regulator-always-on;
|
|
|
|
};
|
2019-07-26 07:43:54 +00:00
|
|
|
};
|
|
|
|
|
2020-04-28 10:00:17 +00:00
|
|
|
/*
|
|
|
|
* should be placed inside mp8859, but not until mp8859 has
|
|
|
|
* its own dt-binding.
|
|
|
|
*/
|
|
|
|
&dc_12v {
|
|
|
|
compatible = "regulator-fixed";
|
|
|
|
regulator-name = "dc_12v";
|
|
|
|
regulator-always-on;
|
|
|
|
regulator-boot-on;
|
|
|
|
regulator-min-microvolt = <12000000>;
|
|
|
|
regulator-max-microvolt = <12000000>;
|
|
|
|
vin-supply = <&vcc_vbus_typec0>;
|
|
|
|
};
|
|
|
|
|
2020-06-04 14:51:40 +00:00
|
|
|
&spi1 {
|
|
|
|
spi_flash: flash@0 {
|
|
|
|
u-boot,dm-pre-reloc;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2019-07-26 07:43:54 +00:00
|
|
|
&vdd_log {
|
|
|
|
regulator-min-microvolt = <430000>;
|
|
|
|
regulator-init-microvolt = <950000>;
|
|
|
|
};
|
2020-04-28 10:00:17 +00:00
|
|
|
|
|
|
|
&vcc5v0_host {
|
|
|
|
regulator-always-on;
|
|
|
|
};
|
|
|
|
|
|
|
|
&vcc_sys {
|
|
|
|
regulator-always-on;
|
|
|
|
};
|
|
|
|
|
|
|
|
&vcc_sdio {
|
|
|
|
regulator-always-on;
|
|
|
|
};
|