Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Power Management Banana Pi

Featured Replies

Hi specialists,

 

I'm trying to understand how the axp209 on Banana Pi works with the A20.

In the Banana Pi schematics I see, that they are connected with only four lines. Two lines are used for I²C (TWSI), one is from axp209 PWROK to RESET# of A20 and another one is connected from axp209 IRQ and GPIO2 to NMI# of A20.

 

When system is off and I press my Power Button (K1)  on the Pi, the system is booting. System is running and I long press the Power Button, System shuts down. But can anyone say whats happening? What does axp209 do with IRQ, GPIO2 and PWROK pins? Wich way does the A20 recognize, that it has to shutdown?

 

Yours Martin

You can find some info and datasheet here: https://linux-sunxi.org/AXP209

Section "Control and operation" in the datasheet should answer most of your questions.

 

When system is off and I press my Power Button (K1)  on the Pi, the system is booting.

AXP209 comes from standby and enables all necessary regulators to boot the board

 

System is running and I long press the Power Button, System shuts down. 

AXP209 processes long press and shuts down most of regulators

 

What does axp209 do with IRQ, GPIO2 and PWROK pins? Wich way does the A20 recognize, that it has to shutdown?

AXP209 IRQ output is connected to A20 NMI input, this way it can send power related events to the CPU.

In case of short power button press, AXP209 sends an IRQ to the CPU, and the kernel driver exposes this as a press of power button of a virtual input device.

In case of long power button press, A20 doesn't have a choice - AXP209 will simply cut off the power.

After few weeks of researching and testing, I want to thank you fpr your help.

Found everthing I needed!

 

Yours,

Martin

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.