sysfs-class-power-twl4030 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. What: /sys/class/power_supply/twl4030_ac/max_current
  2. /sys/class/power_supply/twl4030_usb/max_current
  3. Description:
  4. Read/Write limit on current which may
  5. be drawn from the ac (Accessory Charger) or
  6. USB port.
  7. Value is in micro-Amps.
  8. Value is set automatically to an appropriate
  9. value when a cable is plugged or unplugged.
  10. Value can the set by writing to the attribute.
  11. The change will only persist until the next
  12. plug event. These event are reported via udev.
  13. What: /sys/class/power_supply/twl4030_usb/mode
  14. Description:
  15. Changing mode for USB port.
  16. Writing to this can disable charging.
  17. Possible values are:
  18. "auto" - draw power as appropriate for detected
  19. power source and battery status.
  20. "off" - do not draw any power.
  21. "continuous"
  22. - activate mode described as "linear" in
  23. TWL data sheets. This uses whatever
  24. current is available and doesn't switch off
  25. when voltage drops.
  26. This is useful for unstable power sources
  27. such as bicycle dynamo, but care should
  28. be taken that battery is not over-charged.
  29. What: /sys/class/power_supply/twl4030_ac/mode
  30. Description:
  31. Changing mode for 'ac' port.
  32. Writing to this can disable charging.
  33. Possible values are:
  34. "auto" - draw power as appropriate for detected
  35. power source and battery status.
  36. "off" - do not draw any power.