Thats nice to see since I am about to order a battery for my Pine. The PMIC has some more features for battery charging and monitoring that can be / need to be configured... that's something that needs to be worked out I guess... it has a "Fuel Gauge" feature for example that needs to be calibrated (like the battery gauges in the smart batteries for laptops ...) and programmable charge current / cut off voltage....
Just FYI, you can also read out the system voltages (set values) from the PMIC from the sysfs:
Just FYI, you can also read out the system voltages (set values) from the PMIC from the sysfs:
Code:
ubuntu@pine64:~$ ./pmic_state
Regulator 1 ( axp81x_dcdc1) : vcc-nand vcc-emmc vcc-sdc vcc-usb-30 vcc-io vcc-pd : enabled ( 2 users) = 3300 mV (min= 1600 mV, max= 3400 mV
Regulator 2 ( axp81x_dcdc2) : vdd-cpua : enabled ( 0 users) = 1040 mV (min= 500 mV, max= 1300 mV
Regulator 3 ( axp81x_dcdc3) : none : enabled ( 0 users) = 1100 mV (min= 500 mV, max= 1300 mV
Regulator 4 ( axp81x_dcdc4) : none : disabled ( 0 users) = 1100 mV (min= 500 mV, max= 1300 mV
Regulator 5 ( axp81x_dcdc5) : vcc-dram : enabled ( 0 users) = 1500 mV (min= 800 mV, max= 1840 mV
Regulator 6 ( axp81x_dcdc6) : vdd-sys : enabled ( 0 users) = 1100 mV (min= 600 mV, max= 1520 mV
Regulator 7 ( axp81x_dcdc7) : none : disabled ( 0 users) = 1000 mV (min= 600 mV, max= 1520 mV
Regulator 8 ( axp81x_rtc) : none : disabled ( 0 users) = 3000 mV (min= 3000 mV, max= 3000 mV
Regulator 9 ( axp81x_aldo1) : vdd-csi-led iovdd-csi vcc-pe : disabled ( 0 users) = 2800 mV (min= 700 mV, max= 3300 mV
Regulator 10 ( axp81x_aldo2) : vcc-pl : enabled ( 0 users) = 1800 mV (min= 700 mV, max= 3300 mV
Regulator 11 ( axp81x_aldo3) : vcc-avcc vcc-pll : enabled ( 0 users) = 3000 mV (min= 700 mV, max= 3300 mV
Regulator 12 ( axp81x_dldo1) : vcc-hdmi-33 : enabled ( 1 users) = 3300 mV (min= 700 mV, max= 3300 mV
Regulator 13 ( axp81x_dldo2) : vcc-mipi : disabled ( 0 users) = 3300 mV (min= 700 mV, max= 4200 mV
Regulator 14 ( axp81x_dldo3) : avdd-csi : disabled ( 0 users) = 2800 mV (min= 700 mV, max= 3300 mV
Regulator 15 ( axp81x_dldo4) : vcc-deviceio : enabled ( 0 users) = 3300 mV (min= 700 mV, max= 3300 mV
Regulator 16 ( axp81x_eldo1) : vcc-cpvdd vcc-wifi-io vcc-pc vcc-pg : enabled ( 2 users) = 1800 mV (min= 700 mV, max= 1900 mV
Regulator 17 ( axp81x_eldo2) : vcc-lcd-0 : disabled ( 0 users) = 1800 mV (min= 700 mV, max= 1900 mV
Regulator 18 ( axp81x_eldo3) : dvdd-csi-18 : disabled ( 0 users) = 1800 mV (min= 700 mV, max= 1900 mV
Regulator 19 ( axp81x_fldo1) : vcc-hsic-12 : disabled ( 0 users) = 1200 mV (min= 700 mV, max= 1450 mV
Regulator 20 ( axp81x_fldo2) : vdd-cpus : enabled ( 0 users) = 1100 mV (min= 700 mV, max= 1450 mV
Regulator 21 (axp81x_gpio0ldo) : vcc-ctp : disabled ( 0 users) = 3100 mV (min= 700 mV, max= 3300 mV
Regulator 22 (axp81x_gpio1ldo) : none : disabled ( 0 users) = 3300 mV (min= 700 mV, max= 3300 mV
Regulator 23 ( axp81x_dc1sw) : vcc-lvds vcc-dsi-33 : enabled ( 1 users) = 1600 mV (min= 0 mV, max= 0 mV
ubuntu@pine64:~$
Come have a chat in the Pine IRC channel >>