[PATCH] platform: starfive: jh7110: fix wrong pmic i2c address

Xiang W wxjstz at 126.com
Fri Oct 17 05:06:56 PDT 2025


在 2025-10-17五的 15:52 +0800,Meng Zhuo写道:
> The original address 0x32(50) which is eeprom, not pmic 0x24(36).
> 
> Signed-off-by: Meng Zhuo <mengzhuo at iscas.ac.cn>
> ---
>  platform/generic/starfive/jh7110.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/platform/generic/starfive/jh7110.c b/platform/generic/starfive/jh7110.c
> index c132843..07eade0 100644
> --- a/platform/generic/starfive/jh7110.c
> +++ b/platform/generic/starfive/jh7110.c
> @@ -62,7 +62,7 @@ static u32 selected_hartid = -1;
>  #define SYSTOP_CPU_PD_MASK		0x3
>  
>  #define TIMEOUT_COUNT			100000
> -#define AXP15060_POWER_REG		0x32
> +#define AXP15060_POWER_REG		0x24
NACK

This is register of pmic. Not pmic address.

The following is a description of this register

Power Off
1.When EN/PWRON pin is configured as PWRON pin, power off sources include:
(1).POK. AXP15060 can be powered off by pressing and holding POK for a period of time that longer than
“OFFLEVEL”. The function can be configured by REG36H[3] and REG36H[2] decides whether the PMIC auto turns
on or not when it shuts down after OFFLEVEL POK.
(2).Write “1” to REG32H[7] .

Reset
The PMIC has system reset and power on reset.
 System reset
System reset means the registers will be reset when PMIC is powered on. When at system reset state, all voltage
outputs are turned off except RTCLDO and VREF. There are two ways of system reset.
(1).PWROK drive low.
The PWROK pin can be used as the reset signal of application system. During AXP15060 startup, PWROK outputs
low level, which will be pulled up to startup the system after output voltage reaches the regulated value.
When application system works normally, If the PWROK pin is driven low by external key or other reasons, the
PMIC will be restarted. The function can be configured by REG32H[4].
(2).Write “1” to REG32H[6] to restart the PMIC.

 
Regards,
Xiang W

>  #define AXP15060_POWER_OFF_BIT		BIT(7)
>  #define AXP15060_RESET_BIT		BIT(6)
>  
> -- 
> 2.47.3
> 




More information about the opensbi mailing list