This adds interrupts, sensors and gpio support for AXP209
Sensors are exposed via sysctl.
Interrupt are mostly used to print message on console right now.
PEK (Power Enable Key) interrupts is enable on short and long press, pressing the button will poweroff the board.
This also add a tunable hw.axp209.bootverbose.
Details
Details
- Reviewers
jmcneill - Group Reviewers
ARM - Commits
- rS300777: Add support for interrupts, sensors and GPIO for AXP209 PMIC.
Apply patch and test on board with AXP209 (A10/A20 board)
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
sys/arm/allwinner/axp209.c | ||
---|---|---|
71 ↗ | (On Diff #15676) | Why is this needed? |
sys/arm/allwinner/axp209.c | ||
---|---|---|
71 ↗ | (On Diff #15676) | Just to print some event in the interrupt handler when not booting with -v |
Comment Actions
Add GPIO support.
Add dtsi for axp209 that defines it as a gpio-controller.
Make twsi and axp209 early driver to other driver can probe pin at boot
Comment Actions
Use devctl_notify to report PMU activity instead of more or less useless device_printf.
Use BUS_PASS_RESOURCE as it's more appropriate.
Comment Actions
Using this devd rule for testing :
notify 100 {
match "system" "PMU"; match "subsystem" Battery"; action "logger $subsystem $type";
};
sys/arm/allwinner/axp209.c | ||
---|---|---|
648 ↗ | (On Diff #16768) | X-Powers |