[PATCH 0/7] power: supply: core: convert to fwnode

Sebastian Reichel
2025-02-24T23:22:00Z

The goal of this series is to replace any OF specific code in the
power-supply core with more generic fwnode code.

The first 5 patches of this series mostly take care of removing .of_node
from power_supply_config in favor of using the existing .fwnode.

Patch 6 replaces the OF specific logic in battery-info. This will
hopefully also allow Hans de Goede reusing the code with his Intel
Dollar Cove TI CC battery driver series.

Last but not least patch 7 replaces the OF phandle code with fwnode to
have everything converted.

Note, that I do not own a single device making use of the
"ocv-capacity-celsius" and "resistance-temp-table", which means patch 7
is basically untested. I would really appreciate if somebody gives this
series a test run on an affected device.

---
Sebastian Reichel (7):
power: supply: core: get rid of of_node
regulator: act8865-regulator: switch psy_cfg from of_node to fwnode
usb: common: usb-conn-gpio: switch psy_cfg from of_node to fwnode
power: supply: all: switch psy_cfg from of_node to fwnode
power: supply: core: remove of_node from power_supply_config
power: supply: core: battery-info: fully switch to fwnode
power: supply: core: convert to fwnnode

drivers/power/supply/ab8500_charger.c | 4 +-
drivers/power/supply/acer_a500_battery.c | 3 +-
drivers/power/supply/act8945a_charger.c | 2 +-
drivers/power/supply/axp20x_ac_power.c | 2 +-
drivers/power/supply/axp20x_battery.c | 2 +-
drivers/power/supply/axp20x_usb_power.c | 2 +-
drivers/power/supply/bd99954-charger.c | 2 +-
drivers/power/supply/bq2415x_charger.c | 4 +-
drivers/power/supply/bq24190_charger.c | 2 +-
drivers/power/supply/bq24735-charger.c | 2 +-
drivers/power/supply/bq2515x_charger.c | 2 +-
drivers/power/supply/bq256xx_charger.c | 2 +-
drivers/power/supply/bq25980_charger.c | 2 +-
drivers/power/supply/bq27xxx_battery.c | 2 +-
drivers/power/supply/cpcap-battery.c | 2 +-
drivers/power/supply/cpcap-charger.c | 2 +-
drivers/power/supply/ds2760_battery.c | 3 +-
drivers/power/supply/generic-adc-battery.c | 2 +-
drivers/power/supply/gpio-charger.c | 2 +-
drivers/power/supply/ingenic-battery.c | 2 +-
drivers/power/supply/ip5xxx_power.c | 2 +-
drivers/power/supply/lego_ev3_battery.c | 3 +-
drivers/power/supply/lt3651-charger.c | 2 +-
drivers/power/supply/ltc4162-l-charger.c | 2 +-
drivers/power/supply/max17042_battery.c | 2 +-
drivers/power/supply/max77650-charger.c | 2 +-
drivers/power/supply/max8903_charger.c | 2 +-
drivers/power/supply/mm8013.c | 2 +-
drivers/power/supply/mt6360_charger.c | 2 +-
drivers/power/supply/mt6370-charger.c | 2 +-
drivers/power/supply/olpc_battery.c | 4 +-
drivers/power/supply/pm8916_bms_vm.c | 2 +-
drivers/power/supply/pm8916_lbc.c | 2 +-
drivers/power/supply/power_supply_core.c | 178 +++++++++++++++-------------
drivers/power/supply/qcom_battmgr.c | 5 +-
drivers/power/supply/qcom_pmi8998_charger.c | 2 +-
drivers/power/supply/qcom_smbb.c | 2 +-
drivers/power/supply/rk817_charger.c | 2 +-
drivers/power/supply/rt5033_battery.c | 2 +-
drivers/power/supply/rt5033_charger.c | 3 +-
drivers/power/supply/rt9455_charger.c | 2 +-
drivers/power/supply/rt9467-charger.c | 2 +-
drivers/power/supply/rt9471.c | 2 +-
drivers/power/supply/sbs-battery.c | 2 +-
drivers/power/supply/sbs-charger.c | 2 +-
drivers/power/supply/sbs-manager.c | 2 +-
drivers/power/supply/sc2731_charger.c | 2 +-
drivers/power/supply/sc27xx_fuel_gauge.c | 3 +-
drivers/power/supply/smb347-charger.c | 2 +-
drivers/power/supply/tps65090-charger.c | 2 +-
drivers/power/supply/tps65217_charger.c | 2 +-
drivers/power/supply/ucs1002_power.c | 2 +-
drivers/regulator/act8865-regulator.c | 2 +-
drivers/usb/common/usb-conn-gpio.c | 2 +-
include/linux/power_supply.h | 4 +-
55 files changed, 158 insertions(+), 144 deletions(-)
---
base-commit: 2014c95afecee3e76ca4a56956a936e23283f05b
change-id: 20250221-psy-core-convert-to-fwnode-d5a5442fc3f9

Best regards,
--
Sebastian Reichel <sebastian.reichel@collabora.com>