[BPI-R64] Poweroff

Hi,

is it possible to poweroff the r64? i guess it’s possible using the the pmic mt6380, but i have not found a mt6380 development-document to test writing registers

@sinovoip can you share pmic document?

in r2 (mt6323) poweroff was done like this:

#define RTC_BBPU 0x0000
#define RTC_BBPU_CBUSY BIT(6)
#define RTC_BBPU_KEY (0x43 << 8)
#define RTC_WRTGR 0x003c

regmap_write(pwrc->regmap, pwrc->base + RTC_BBPU, RTC_BBPU_KEY);
regmap_write(pwrc->regmap, pwrc->base + RTC_WRTGR, 1);

regards Frank