mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-06 05:04:26 +00:00
33863f744d
Use the same approach as ROC-RK3328-CC which enables SPL GPIO, pinctl and regulator support. This allows the gen3 board to boot through SPL and does not break gen2 in the process. Signed-off-by: Kurt Miller <kurt@intricatesoftware.com> Acked-by: Matwey V. Kornilov <matwey.kornilov@gmail.com> Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
48 lines
883 B
Text
48 lines
883 B
Text
// SPDX-License-Identifier: GPL-2.0+
|
|
/*
|
|
* (C) Copyright 2018-2019 Rockchip Electronics Co., Ltd
|
|
*/
|
|
|
|
#include "rk3328-u-boot.dtsi"
|
|
#include "rk3328-sdram-lpddr3-1600.dtsi"
|
|
/ {
|
|
chosen {
|
|
u-boot,spl-boot-order = "same-as-spl", &sdmmc, &emmc;
|
|
};
|
|
};
|
|
|
|
&gpio0 {
|
|
u-boot,dm-spl;
|
|
};
|
|
|
|
&pinctrl {
|
|
u-boot,dm-spl;
|
|
};
|
|
|
|
&sdmmc0m1_gpio {
|
|
u-boot,dm-spl;
|
|
};
|
|
|
|
&pcfg_pull_up_4ma {
|
|
u-boot,dm-spl;
|
|
};
|
|
|
|
&usb_host0_xhci {
|
|
vbus-supply = <&vcc_host_5v>;
|
|
status = "okay";
|
|
};
|
|
|
|
/*
|
|
* This makes XHCI responsible for toggling VBUS. This is needed to work
|
|
* around an issue where either XHCI only works with USB 2.0 or OTG doesn't
|
|
* work, depending on how VBUS is configured. Having USB 3.0 seems better.
|
|
*/
|
|
&vcc_host_5v {
|
|
/delete-property/ regulator-always-on;
|
|
/delete-property/ regulator-boot-on;
|
|
};
|
|
|
|
/* Need this and all the pinctrl/gpio stuff above to set pinmux */
|
|
&vcc_sd {
|
|
u-boot,dm-spl;
|
|
};
|