]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
rockchip: odroid-go2: Use power off at power plug-in event
authorJonas Karlman <jonas@kwiboo.se>
Sun, 31 Aug 2025 16:49:27 +0000 (16:49 +0000)
committerKever Yang <kever.yang@rock-chips.com>
Sat, 1 Nov 2025 13:17:43 +0000 (21:17 +0800)
Include the RK817 PMIC in SPL and enable Kconfig options to power off
the handheld gaming device when it was powered on due to a power cable
plug-in event:

  DDR3, 333MHz
  BW=32 Col=10 Bk=8 CS0 Row=15 CS=1 Die BW=16 Size=1024MB
  out
  Power Off due to plug-in event

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
arch/arm/dts/rk3326-odroid-go2-u-boot.dtsi
configs/odroid-go2_defconfig

index 6f40654d5e846626a1e1dbfbd3faecc4ad48773e..6c6efa964d804ea3866ed89f7f501394b4570c69 100644 (file)
@@ -5,8 +5,26 @@
 
 #include "rk3326-u-boot.dtsi"
 
+&i2c0_xfer {
+       bootph-pre-ram;
+};
+
+&i2s1_2ch_mclk {
+       bootph-pre-ram;
+};
+
+&pcfg_pull_none_smt {
+       bootph-pre-ram;
+};
+
+&pmic_int {
+       bootph-pre-ram;
+};
+
 &rk817 {
        regulators {
+               bootph-pre-ram;
+
                vcc_cam: LDO_REG9 {
                        regulator-name = "vcc_cam";
                        regulator-min-microvolt = <3000000>;
index b0947fe2c8b2b1bc6d672b4c6c2ccb1857ad18f4..a6d02baa520fe371f672746537b824300cb6d098 100644 (file)
@@ -8,6 +8,7 @@ CONFIG_ENV_OFFSET=0x4000
 CONFIG_DEFAULT_DEVICE_TREE="rockchip/rk3326-odroid-go2"
 CONFIG_DM_RESET=y
 CONFIG_ROCKCHIP_PX30=y
+CONFIG_ROCKCHIP_RK8XX_DISABLE_BOOT_ON_POWERON=y
 CONFIG_TARGET_ODROID_GO2=y
 CONFIG_DEBUG_UART_CHANNEL=1
 CONFIG_SYS_LOAD_ADDR=0x800800
@@ -42,6 +43,7 @@ CONFIG_CMD_GPT=y
 # CONFIG_CMD_LOADB is not set
 # CONFIG_CMD_LOADS is not set
 CONFIG_CMD_MMC=y
+CONFIG_CMD_POWEROFF=y
 CONFIG_CMD_USB=y
 CONFIG_CMD_USB_MASS_STORAGE=y
 # CONFIG_CMD_ITEST is not set
@@ -73,6 +75,7 @@ CONFIG_SPL_PINCTRL=y
 CONFIG_DM_PMIC=y
 CONFIG_PMIC_RK8XX=y
 CONFIG_SPL_PMIC_RK8XX=y
+CONFIG_SPL_DM_REGULATOR=y
 CONFIG_DM_REGULATOR_FIXED=y
 CONFIG_REGULATOR_RK8XX=y
 CONFIG_PWM_ROCKCHIP=y