Skip to content

Commit 556f1b4

Browse files
committed
Merge tag 'for-v6.15' of git://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-power-supply
Pull power supply and reset updates from Sebastian Reichel: "Power-supply core: - remove unused set_charged infrastructure - drop of_node from power_supply struct Power-supply drivers: - axp717: support devices without thermistors - bq27xxx: support max design voltage for bq270x0 and bq27x10 - pcf50633: drop charger driver - max1720x: add battery health support - switch all power-supply devices from of_node to fwnode - convert regmap users to maple tree register cache - convert drivers to devm_kmemdup_array - misc cleanups and fixes Reset drivers: - at91-sama5d2_shdwc: add sama7d65 support * tag 'for-v6.15' of git://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-power-supply: (30 commits) power: supply: mt6370: Remove redundant 'flush_workqueue()' calls Revert "power: supply: bq27xxx: do not report bogus zero values" power: supply: max77693: Fix wrong conversion of charge input threshold value power: supply: pcf50633: Remove charger power: supply: all: switch psy_cfg from of_node to fwnode power: supply: core: get rid of of_node power: reset: at91-sama5d2_shdwc: Add sama7d65 PMC power: supply: smb347: convert to use maple tree register cache power: supply: rt9455: convert to use maple tree register cache power: supply: max1720x: convert to use maple tree register cache power: supply: ltc4162l: convert to use maple tree register cache power: supply: bq25980: convert to use maple tree register cache power: supply: bq25890: convert to use maple tree register cache power: supply: bq2515x: convert to use maple tree register cache power: supply: bq24257: convert to use maple tree register cache power: supply: bd99954: convert to use maple tree register cache power: supply: Remove unused set_charged method power: supply: ds2760: Remove unused ds2760_battery_set_charged power: supply: core: Remove unused power_supply_set_battery_charged power: supply: sc27xx: use devm_kmemdup_array() ...
2 parents 59c3541 + 0b8d073 commit 556f1b4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+212
-627
lines changed

Documentation/devicetree/bindings/power/reset/atmel,sama5d2-shdwc.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ description: |
1616
properties:
1717
compatible:
1818
oneOf:
19+
- items:
20+
- enum:
21+
- microchip,sama7d65-shdwc
22+
- const: microchip,sama7g5-shdwc
23+
- const: syscon
1924
- items:
2025
- const: microchip,sama7g5-shdwc
2126
- const: syscon

Documentation/devicetree/bindings/power/reset/xlnx,zynqmp-power.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ properties:
4646

4747
required:
4848
- compatible
49-
- interrupts
5049

5150
additionalProperties: false
5251

Documentation/devicetree/bindings/power/supply/x-powers,axp20x-battery-power-supply.yaml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ maintainers:
1414
- Chen-Yu Tsai <wens@csie.org>
1515
- Sebastian Reichel <sre@kernel.org>
1616

17-
allOf:
18-
- $ref: power-supply.yaml#
19-
2017
properties:
2118
compatible:
2219
oneOf:
@@ -35,7 +32,24 @@ properties:
3532
this gauge.
3633
$ref: /schemas/types.yaml#/definitions/phandle
3734

35+
x-powers,no-thermistor:
36+
type: boolean
37+
description: Indicates that no thermistor is connected to the TS pin
38+
3839
required:
3940
- compatible
4041

42+
allOf:
43+
- $ref: power-supply.yaml#
44+
- if:
45+
not:
46+
properties:
47+
compatible:
48+
contains:
49+
enum:
50+
- x-powers,axp717-battery-power-supply
51+
then:
52+
properties:
53+
x-powers,no-thermistor: false
54+
4155
additionalProperties: false

drivers/power/reset/at91-sama5d2_shdwc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,7 @@ static const struct of_device_id at91_pmc_ids[] = {
327327
{ .compatible = "microchip,sam9x60-pmc" },
328328
{ .compatible = "microchip,sama7g5-pmc" },
329329
{ .compatible = "microchip,sam9x7-pmc" },
330+
{ .compatible = "microchip,sama7d65-pmc" },
330331
{ /* Sentinel. */ }
331332
};
332333

drivers/power/supply/Kconfig

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -449,12 +449,6 @@ config CHARGER_88PM860X
449449
help
450450
Say Y here to enable charger for Marvell 88PM860x chip.
451451

452-
config CHARGER_PCF50633
453-
tristate "NXP PCF50633 MBC"
454-
depends on MFD_PCF50633
455-
help
456-
Say Y to include support for NXP PCF50633 Main Battery Charger.
457-
458452
config BATTERY_RX51
459453
tristate "Nokia RX-51 (N900) battery driver"
460454
depends on TWL4030_MADC

drivers/power/supply/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ obj-$(CONFIG_CHARGER_RT9467) += rt9467-charger.o
6262
obj-$(CONFIG_CHARGER_RT9471) += rt9471.o
6363
obj-$(CONFIG_BATTERY_TWL4030_MADC) += twl4030_madc_battery.o
6464
obj-$(CONFIG_CHARGER_88PM860X) += 88pm860x_charger.o
65-
obj-$(CONFIG_CHARGER_PCF50633) += pcf50633-charger.o
6665
obj-$(CONFIG_BATTERY_RX51) += rx51_battery.o
6766
obj-$(CONFIG_AB8500_BM) += ab8500_bmdata.o ab8500_charger.o ab8500_fg.o ab8500_btemp.o ab8500_chargalg.o
6867
obj-$(CONFIG_CHARGER_CPCAP) += cpcap-charger.o

drivers/power/supply/ab8500_charger.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3494,11 +3494,11 @@ static int ab8500_charger_probe(struct platform_device *pdev)
34943494
di->invalid_charger_detect_state = 0;
34953495

34963496
/* AC and USB supply config */
3497-
ac_psy_cfg.of_node = np;
3497+
ac_psy_cfg.fwnode = dev_fwnode(dev);
34983498
ac_psy_cfg.supplied_to = supply_interface;
34993499
ac_psy_cfg.num_supplicants = ARRAY_SIZE(supply_interface);
35003500
ac_psy_cfg.drv_data = &di->ac_chg;
3501-
usb_psy_cfg.of_node = np;
3501+
usb_psy_cfg.fwnode = dev_fwnode(dev);
35023502
usb_psy_cfg.supplied_to = supply_interface;
35033503
usb_psy_cfg.num_supplicants = ARRAY_SIZE(supply_interface);
35043504
usb_psy_cfg.drv_data = &di->usb_chg;

drivers/power/supply/acer_a500_battery.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#include <linux/sched.h>
1818
#include <linux/slab.h>
1919
#include <linux/workqueue.h>
20+
#include <linux/property.h>
2021

2122
enum {
2223
REG_CAPACITY,
@@ -231,7 +232,7 @@ static int a500_battery_probe(struct platform_device *pdev)
231232

232233
platform_set_drvdata(pdev, bat);
233234

234-
psy_cfg.of_node = pdev->dev.parent->of_node;
235+
psy_cfg.fwnode = dev_fwnode(pdev->dev.parent);
235236
psy_cfg.drv_data = bat;
236237
psy_cfg.no_wakeup_source = true;
237238

drivers/power/supply/act8945a_charger.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ static int act8945a_charger_probe(struct platform_device *pdev)
614614
if (ret)
615615
return -EINVAL;
616616

617-
psy_cfg.of_node = pdev->dev.of_node;
617+
psy_cfg.fwnode = dev_fwnode(&pdev->dev);
618618
psy_cfg.drv_data = charger;
619619

620620
charger->psy = devm_power_supply_register(&pdev->dev,

drivers/power/supply/axp20x_ac_power.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ static int axp20x_ac_power_probe(struct platform_device *pdev)
364364

365365
platform_set_drvdata(pdev, power);
366366

367-
psy_cfg.of_node = pdev->dev.of_node;
367+
psy_cfg.fwnode = dev_fwnode(&pdev->dev);
368368
psy_cfg.drv_data = power;
369369

370370
power->supply = devm_power_supply_register(&pdev->dev,

0 commit comments

Comments
 (0)