1aca3c354SNeilBrownWhat: /sys/class/power_supply/twl4030_ac/max_current 2aca3c354SNeilBrown /sys/class/power_supply/twl4030_usb/max_current 3aca3c354SNeilBrownDescription: 4aca3c354SNeilBrown Read/Write limit on current which may 5aca3c354SNeilBrown be drawn from the ac (Accessory Charger) or 6aca3c354SNeilBrown USB port. 7aca3c354SNeilBrown 8aca3c354SNeilBrown Value is in micro-Amps. 9aca3c354SNeilBrown 10aca3c354SNeilBrown Value is set automatically to an appropriate 11aca3c354SNeilBrown value when a cable is plugged or unplugged. 12aca3c354SNeilBrown 13aca3c354SNeilBrown Value can the set by writing to the attribute. 14aca3c354SNeilBrown The change will only persist until the next 15aca3c354SNeilBrown plug event. These event are reported via udev. 1622d4c33fSNeilBrown 1722d4c33fSNeilBrown 1822d4c33fSNeilBrownWhat: /sys/class/power_supply/twl4030_usb/mode 1922d4c33fSNeilBrownDescription: 2022d4c33fSNeilBrown Changing mode for USB port. 2122d4c33fSNeilBrown Writing to this can disable charging. 2222d4c33fSNeilBrown 2322d4c33fSNeilBrown Possible values are: 2422d4c33fSNeilBrown "auto" - draw power as appropriate for detected 2522d4c33fSNeilBrown power source and battery status. 2622d4c33fSNeilBrown "off" - do not draw any power. 27