mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-16 09:54:35 +00:00

A few boards have shown to be required to properly configure pinctrl for the fixed regulator gpio pin used by sdmmc before being able to read from SD-cards. Include the related gpio, regulator and pinctrl nodes and enable related Kconfig options so that pinctrl can be configured in SPL for boards that may be affected by such issue. Also change to imply SPL_DM_SEQ_ALIAS for all boards because it must be enabled for working gpio usage in SPL after a future DT sync. Signed-off-by: Jonas Karlman <jonas@kwiboo.se> Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
69 lines
1.1 KiB
Text
69 lines
1.1 KiB
Text
// 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"
|
|
|
|
/ {
|
|
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;
|
|
};
|
|
};
|
|
|
|
/*
|
|
* 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>;
|
|
};
|
|
|
|
&gpio4 {
|
|
bootph-pre-ram;
|
|
};
|
|
|
|
&spi1 {
|
|
flash@0 {
|
|
bootph-pre-ram;
|
|
bootph-some-ram;
|
|
};
|
|
};
|
|
|
|
&vcc3v0_sd {
|
|
bootph-pre-ram;
|
|
};
|
|
|
|
&vcc3v0_sd_en {
|
|
bootph-pre-ram;
|
|
};
|
|
|
|
&vcc5v0_host {
|
|
regulator-always-on;
|
|
};
|
|
|
|
&vcc_sdio {
|
|
regulator-always-on;
|
|
};
|
|
|
|
&vcc_sys {
|
|
regulator-always-on;
|
|
};
|
|
|
|
&vdd_log {
|
|
regulator-min-microvolt = <430000>;
|
|
regulator-init-microvolt = <950000>;
|
|
};
|