summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorAmit Sunil Dhamne <amitsd@google.com>2026-08-20 21:17:58 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-09-16 19:13:59 +0100
commit7198071826c4966c98f8655bb2c39f972a815bfa (patch)
treeb5946a06ffe494acda0bf2524ae688169b6fae6c /tools/perf/scripts/python
parentbbddb219b00af0792242a0ad1dc7fb3344f38733 (diff)
downloadlinux-next-7198071826c4966c98f8655bb2c39f972a815bfa.tar.gz
linux-next-7198071826c4966c98f8655bb2c39f972a815bfa.zip
usb: typec: tcpm: Support native battery energy properties in battery AMS
Some fuel gauges report battery telemetry in energy rather than charge. Add support for querying native energy properties for Battery Status and Battery Capabilities AMS, falling back to calculating energy from charge and average voltage when primary properties are not supported. +---------+--------------------+----------------------------------+ | Sr. No. | Primary | Fallback | +---------+--------------------+----------------------------------+ | 1 | ENERGY_NOW | CHARGE_NOW + VOLTAGE_AVG | | 2 | ENERGY_FULL_DESIGN | CHARGE_FULL_DESIGN + VOLTAGE_AVG | | 3 | ENERGY_FULL | CHARGE_FULL + VOLTAGE_AVG | +---------+--------------------+----------------------------------+ Note: All properties above are to be prefixed with POWER_SUPPLY_PROP_. Closes: https://lore.kernel.org/all/amVJ1u67qHENBQ5l@venus/ Suggested-by: Sebastian Reichel <sebastian.reichel@collabora.com> Assisted-by: Gemini:gemini-3.1-pro Signed-off-by: Amit Sunil Dhamne <amitsd@google.com> Reviewed-by: Badhri Jagan Sridharan <badhri@google.com> Acked-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.com> Link: https://patch.msgid.link/20260820-tcpm-energy-props-upstream-v1-1-0a0167863848@google.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions