Hi and thanks for quick reply, I have both the chinese (translated) and english (original) versions of AXP209 datasheet (English version is quite new linux-sunxi.org/File:AXP209_Datasheet_v1.0en.pdf), and I can't find this feature anywhere. I would have thought that this would be avoided if bit3 of register 0x36 (PEK Key parameter settings) is set to '0' (no automatic shutdown). However this only disables the max. 6sec timer. This hard 16sec timer I could not find anywhere. Could you please give me a page number/paragraph where this is written? I need it to justify the workaround that I'm implementing.
Furthermore, I thought that actually these "Force Power Off" features are configurable to some extent and mostly done externally with WD or discrete timers - I wouldn't expect them to be inside the PMIC completely hard-coded and seemingly undocumented. As I said, I've disabled all the timers and all the interrupts are masked - I've also read the datasheet cover to cover and I can't find this information that you say it's there. Chapter 9.1, where Shutdown Control is discussed, mentions 5 ways that lead to system shutdown, none of which implying any hard timers... Cheers! Ivan On Wednesday, June 24, 2015 at 5:34:30 PM UTC+2, Chen-Yu Tsai wrote: > > Hi, > > On Wed, Jun 24, 2015 at 11:24 PM, Ivan Kozic <[email protected] > <javascript:>> wrote: > > Hi all, > > > > Maybe it's not really the right place to ask, but since there has been a > lot > > of patches for AXP209 lately, maybe someone knows... > > > > It is regarding PEK button - it seems to have some kind of timer for > > shutdown/restart which is not documented. I have turned off all the > shutdown > > timers (like register 0x36) and also masked all the interrupt registers > > (0x40..0x44). However, holding the PEK button longer than 16 seconds > will > > always restart the system. > > > > This seems to be either a HW bug or an undocumented "feature", as I > can't > > find anything relating to it in the datasheet. Does anyone know why this > is > > happening? > > This is a properly documented (if you can read Chinese) feature in the > datasheet. > Just think of it as a "force" power off. The other options for tablets is > to > yank out the battery... > > Same thing happens on your PC or laptop. Hold the power button for more > than > 4 seconds (?) and it powers off. > > ChenYu > -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
