AXP803 Battery Charger Support
#13
(12-03-2017, 03:56 PM)xalius Wrote: The PMIC and battery parameters are actually all read from the devicetree file, so to change them requires only dtc (the device tree compilter). The devicetree files for each board are in the /boot folder (.dtb). The dtc converts the binary back to a text file and creates the new binary from the text file after edits. The parameters correspond more or less to the registers in the AXP803 datasheet. One important thing is, the register settings are persistent as long as the AXP has either input power or battery power! And the linux driver updates the battery parameters only once if the AXP has empty registers. To reset that, all power has to be removed from the AXP. The battery charger only works properly if the battery parameters are persistent, e.g. the battery is not removed, since it is self learning and adapts certain values over charge cycles...

Hi xalius thanks to you info I found the dtb files and changed it like you said to dts, easily described here
So I was able to change the "pmu_battery_cap" to the capacity my battery actually has but I would like to also change the values which are seen in "/sys/class/power_supply/battery/uevent" like for example "POWER_SUPPLY_TECHNOLOGY" to LiPo and POWER_SUPPLY_VOLTAGE_MIN_DESIGN and so on according to this post it should be possible to echo it via rc.local but I am not sure if this is possible since its a different chip (AXP209)

Also how can I figure out which dtb file is used ? Since in my folder there are different once for each board and since I have a Pine64+ I would like to know if I am change the correct file Smile

Would be nice to get an answer ... thanks in advance and happy holidays


Messages In This Thread
AXP803 Battery Charger Support - by xalius - 06-18-2016, 03:28 AM
RE: AXP803 Battery Charger Support - by tllim - 06-18-2016, 04:16 PM
RE: AXP803 Battery Charger Support - by pfeerick - 06-18-2016, 09:59 PM
RE: AXP803 Battery Charger Support - by xalius - 06-19-2016, 06:19 AM
RE: AXP803 Battery Charger Support - by pfeerick - 06-19-2016, 07:22 PM
RE: AXP803 Battery Charger Support - by tllim - 06-20-2016, 07:38 AM
RE: AXP803 Battery Charger Support - by xalius - 06-19-2016, 07:31 PM
RE: AXP803 Battery Charger Support - by xalius - 06-20-2016, 02:55 PM
RE: AXP803 Battery Charger Support - by longsleep - 06-20-2016, 04:25 PM
RE: AXP803 Battery Charger Support - by drid - 12-03-2017, 02:24 PM
RE: AXP803 Battery Charger Support - by xalius - 12-03-2017, 03:56 PM
RE: AXP803 Battery Charger Support - by Velociraptor - 12-22-2017, 04:07 AM
RE: AXP803 Battery Charger Support - by xalius - 12-22-2017, 05:23 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Programming languages support under PINE64 baryluk 6 12,252 09-23-2020, 11:46 PM
Last Post: Phillip Bell
Wink Pine64 Will support Freenas or openmediavault ? joe 1 4,952 04-13-2017, 07:44 AM
Last Post: xalius
  Remote Desktop Support? Rochambeaux 20 29,097 10-01-2016, 05:08 PM
Last Post: HayseedGeek
  Binfmt_misc support cztian 1 3,683 08-17-2016, 11:49 PM
Last Post: longsleep
Question Joystick/Gamepad support Drakuwa 3 5,952 08-10-2016, 10:12 AM
Last Post: xalius
Big Grin Funny ! Support Intel x86 linux applications on ARM-based ( PINE64 ) not freeware joe 10 16,314 08-09-2016, 05:59 PM
Last Post: dkryder
  Camera support - Ubuntu Xenial 16.04 LTS @lex 3 5,191 08-07-2016, 03:47 AM
Last Post: romansavrulin
  Virtualization Support soccercheng 12 17,334 07-14-2016, 11:04 AM
Last Post: mont3z
  distro with kernel support for DVB-T dongles? mkaut 2 4,594 07-02-2016, 02:36 PM
Last Post: mkaut
  XFS Support? utdrmac 2 3,330 06-30-2016, 01:44 AM
Last Post: longsleep

Forum Jump:


Users browsing this thread: 1 Guest(s)