PMIC
Applicable to development boards equipped with Allwinner platforms.
DTS
- dts
Configure PMU via the device tree:
longan/device/config/chips/a133/configs/c3/kickpi-k5.dts
longan/device/config/chips/a133/configs/c3/kickpi-k5c.dts
PMU configuration node:
- battery dtsi
Battery configuration reference:
longan/kernel/linux-4.9/arch/arm64/boot/dts/sunxi/a133-kickpi-axp707-bat-5000mA.dtsi
longan/kernel/linux-4.9/arch/arm64/boot/dts/sunxi/a133-kickpi-axp707-bat-8000mA.dtsi
Battery-related data configuration node:
battery_power_supply: battery-power-supply {
compatible = "x-powers,axp803-battery-power-supply";
status = "okay";
...
}
Q&A
- Low charging current?
1. Check if the VBUS voltage is lower than 4.6V. Low voltage can trigger current limiting.
2. Check if there is a significant voltage drop (exceeding 0.2V) across the ammeter connected in series with VBUS.
3. USB cable loss and board-level OVP (Over Voltage Protection) voltage drop cause low VBUS voltage; try testing with a lower impedance USB ammeter; use USB cables with lower line loss.
Note
When using low-specification cables in DC power supply test scenarios, the output supply voltage can reach 5.8V, while the board-side VBUS voltage may only be 5.1V.