]> git.dujemihanovic.xyz Git - u-boot.git/commit
rockchip: rk356x-u-boot: Add bootph-all to i2c0_xfer pinctrl node
authorJonas Karlman <jonas@kwiboo.se>
Thu, 3 Aug 2023 21:11:54 +0000 (21:11 +0000)
committerKever Yang <kever.yang@rock-chips.com>
Sat, 7 Oct 2023 08:52:48 +0000 (16:52 +0800)
commitdd8d52c934e8858264f91e8e8e2d8c7d8b059dd7
tree1a3bc2421559600e9153ee62b5482cf9ff15d3a7
parentc8ebcc921f6c4535746df843762ff80c2c0b8bf2
rockchip: rk356x-u-boot: Add bootph-all to i2c0_xfer pinctrl node

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@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
arch/arm/dts/rk356x-u-boot.dtsi