[PATCH 2/2] rockchip: rk356x-u-boot: Add bootph-all to i2c0_xfer pinctrl node
Kever Yang
kever.yang at rock-chips.com
Wed Sep 27 04:56:26 CEST 2023
On 2023/8/4 05:02, Jonas Karlman wrote:
> A RK8XX PMIC is typically using i2c0 on RK356x devices. Add bootph-all
> to required pinctrl nodes to simplify use of the prevent booting on
> power plug-in option in SPL.
>
> With the following Kconfig options and nodes in u-boot.dtsi the prevent
> booting on power plug-in option can work in SPL.
>
> CONFIG_ROCKCHIP_RK8XX_DISABLE_BOOT_ON_POWERON=y
> CONFIG_SPL_I2C=y
> CONFIG_SPL_POWER=y
> CONFIG_SPL_PINCTRL=y
> CONFIG_SPL_PMIC_RK8XX=y
>
> &i2c0 {
> bootph-pre-ram;
> };
>
> &rk817 {
> bootph-pre-ram;
>
> regulators {
> bootph-pre-ram;
> };
> };
>
> Signed-off-by: Jonas Karlman <jonas at kwiboo.se>
Reviewed-by: Kever Yang <kever.yang at rock-chips.com>
Thanks,
- Kever
> ---
> arch/arm/dts/rk356x-u-boot.dtsi | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/arch/arm/dts/rk356x-u-boot.dtsi b/arch/arm/dts/rk356x-u-boot.dtsi
> index d21b18205220..fe7de0dd4bc8 100644
> --- a/arch/arm/dts/rk356x-u-boot.dtsi
> +++ b/arch/arm/dts/rk356x-u-boot.dtsi
> @@ -64,6 +64,10 @@
> bootph-all;
> };
>
> +&pcfg_pull_none_smt {
> + bootph-all;
> +};
> +
> &pcfg_pull_none {
> bootph-all;
> };
> @@ -100,6 +104,10 @@
> bootph-all;
> };
>
> +&i2c0_xfer {
> + bootph-all;
> +};
> +
> &sdmmc0_bus4 {
> bootph-all;
> };
More information about the U-Boot
mailing list