Skip to content

Commit f7cdaee

Browse files
committed
Merge tag 'for-v6.0' of git://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-power-supply
Pull power supply and reset updates from Sebastian Reichel: "No core patches, only driver updates: - pwr-mlxbf: new reset driver for Mellanox BlueField - at91-reset: SAMA7G5 support - ab8500: continue refurbishing - misc minor fixes" * tag 'for-v6.0' of git://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-power-supply: (29 commits) power: supply: olpc_battery: Hold the reference returned by of_find_compatible_node power: supply: ab8500: add missing destroy_workqueue in ab8500_charger_bind power: supply: ab8500: Remove flush_scheduled_work() call. power: supply: ab8500_fg: drop duplicated 'is' in comment power: supply: ab8500: Drop external charger leftovers power: supply: ab8500: Add MAINTAINERS entry dt-bindings: power: reset: qcom,pshold: convert to dtschema power: supply: Fix typo in power_supply_check_supplies power: reset: pwr-mlxbf: change rst_pwr_hid and low_pwr_hid from global to local variables power: reset: pwr-mlxbf: add missing include power: reset: at91-reset: add support for SAMA7G5 power: reset: at91-reset: add reset_controller_dev support power: reset: at91-reset: add at91_reset_data power: reset: at91-reset: document structures and enums dt-bindings: reset: add sama7g5 definitions dt-bindings: reset: atmel,at91sam9260-reset: add sama7g5 bindings dt-bindings: reset: convert Atmel/Microchip reset controller to YAML power: reset: pwr-mlxbf: add BlueField SoC power control driver power: supply: ab8500: Exit maintenance if too low voltage power: supply: ab8500: Respect charge_restart_voltage_uv ...
2 parents d16b418 + c9d8468 commit f7cdaee

26 files changed

+462
-630
lines changed

Documentation/devicetree/bindings/arm/atmel-sysregs.txt

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -25,21 +25,6 @@ System Timer (ST) required properties:
2525
Its subnodes can be:
2626
- watchdog: compatible should be "atmel,at91rm9200-wdt"
2727

28-
RSTC Reset Controller required properties:
29-
- compatible: Should be "atmel,<chip>-rstc".
30-
<chip> can be "at91sam9260", "at91sam9g45", "sama5d3" or "samx7"
31-
it also can be "microchip,sam9x60-rstc"
32-
- reg: Should contain registers location and length
33-
- clocks: phandle to input clock.
34-
35-
Example:
36-
37-
rstc@fffffd00 {
38-
compatible = "atmel,at91sam9260-rstc";
39-
reg = <0xfffffd00 0x10>;
40-
clocks = <&clk32k>;
41-
};
42-
4328
RAMC SDRAM/DDR Controller required properties:
4429
- compatible: Should be "atmel,at91rm9200-sdramc", "syscon"
4530
"atmel,at91sam9260-sdramc",

Documentation/devicetree/bindings/power/reset/msm-poweroff.txt

Lines changed: 0 additions & 17 deletions
This file was deleted.
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/power/reset/qcom,pshold.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Qualcomm SoC restart and power off
8+
9+
maintainers:
10+
- Bjorn Andersson <[email protected]>
11+
12+
description:
13+
A power supply hold (ps-hold) bit is set to power the Qualcomm chipsets.
14+
Clearing that bit allows us to restart/power off. The difference between
15+
power off and restart is determined by unique power manager IC settings.
16+
17+
properties:
18+
compatible:
19+
const: qcom,pshold
20+
21+
reg:
22+
maxItems: 1
23+
24+
required:
25+
- compatible
26+
- reg
27+
28+
additionalProperties: false
29+
30+
examples:
31+
- |
32+
reset-controller@fc4ab000 {
33+
compatible = "qcom,pshold";
34+
reg = <0xfc4ab000 0x4>;
35+
};

Documentation/devicetree/bindings/power/supply/bq24190.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ properties:
2828
maxItems: 1
2929

3030
usb-otg-vbus:
31-
type: object
31+
$ref: /schemas/regulator/regulator.yaml#
3232
description: |
3333
Regulator that is used to control the VBUS voltage direction for
3434
either USB host mode or for charging on the OTG port

Documentation/devicetree/bindings/power/supply/qcom,pm8941-charger.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,18 @@ properties:
117117
be done externally to fully comply with the JEITA safety guidelines if this flag
118118
is set.
119119
120+
usb-charge-current-limit:
121+
$ref: /schemas/types.yaml#/definitions/uint32
122+
minimum: 100000
123+
maximum: 2500000
124+
description: |
125+
Default USB charge current limit in uA.
126+
120127
usb-otg-in-supply:
121128
description: Reference to the regulator supplying power to the USB_OTG_IN pin.
122129

123130
otg-vbus:
124-
type: object
131+
$ref: /schemas/regulator/regulator.yaml#
125132
description: |
126133
This node defines a regulator used to control the direction of VBUS voltage.
127134
Specifically whether to supply voltage to VBUS for host mode operation of the OTG port,

Documentation/devicetree/bindings/power/supply/summit,smb347-charger.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ properties:
8282
- 1 # SMB3XX_SYSOK_INOK_ACTIVE_HIGH
8383

8484
usb-vbus:
85-
$ref: "../../regulator/regulator.yaml#"
85+
$ref: /schemas/regulator/regulator.yaml#
8686
type: object
8787

8888
properties:
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/reset/atmel,at91sam9260-reset.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Atmel/Microchip System Reset Controller
8+
9+
maintainers:
10+
- Claudiu Beznea <[email protected]>
11+
12+
description: |
13+
The system reset controller can be used to reset the CPU. In case of
14+
SAMA7G5 it can also reset some devices (e.g. USB PHYs).
15+
16+
properties:
17+
compatible:
18+
oneOf:
19+
- items:
20+
- enum:
21+
- atmel,at91sam9260-rstc
22+
- atmel,at91sam9g45-rstc
23+
- atmel,sama5d3-rstc
24+
- microchip,sam9x60-rstc
25+
- microchip,sama7g5-rstc
26+
- items:
27+
- const: atmel,sama5d3-rstc
28+
- const: atmel,at91sam9g45-rstc
29+
30+
reg:
31+
minItems: 1
32+
items:
33+
- description: base registers for system reset control
34+
- description: registers for device specific reset control
35+
36+
clocks:
37+
maxItems: 1
38+
39+
"#reset-cells":
40+
const: 1
41+
42+
required:
43+
- compatible
44+
- reg
45+
- clocks
46+
47+
allOf:
48+
- if:
49+
properties:
50+
compatible:
51+
contains:
52+
enum:
53+
- microchip,sama7g5-rstc
54+
then:
55+
required:
56+
- "#reset-cells"
57+
58+
additionalProperties: false
59+
60+
examples:
61+
- |
62+
#include <dt-bindings/clock/at91.h>
63+
64+
reset-controller@fffffd00 {
65+
compatible = "atmel,at91sam9260-rstc";
66+
reg = <0xfffffd00 0x10>;
67+
clocks = <&pmc PMC_TYPE_CORE PMC_SLOW>;
68+
};

MAINTAINERS

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,11 @@ W: http://www.adaptec.com/
264264
F: Documentation/scsi/aacraid.rst
265265
F: drivers/scsi/aacraid/
266266

267+
AB8500 BATTERY AND CHARGER DRIVERS
268+
M: Linus Walleij <[email protected]>
269+
F: Documentation/devicetree/bindings/power/supply/*ab8500*
270+
F: drivers/power/supply/*ab8500*
271+
267272
ABI/API
268273
269274
F: include/linux/syscalls.h

drivers/power/reset/Kconfig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,4 +297,10 @@ config NVMEM_REBOOT_MODE
297297
then the bootloader can read it and take different
298298
action according to the mode.
299299

300+
config POWER_MLXBF
301+
tristate "Mellanox BlueField power handling driver"
302+
depends on (GPIO_MLXBF2 && ACPI)
303+
help
304+
This driver supports reset or low power mode handling for Mellanox BlueField.
305+
300306
endif

drivers/power/reset/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,4 @@ obj-$(CONFIG_REBOOT_MODE) += reboot-mode.o
3535
obj-$(CONFIG_SYSCON_REBOOT_MODE) += syscon-reboot-mode.o
3636
obj-$(CONFIG_POWER_RESET_SC27XX) += sc27xx-poweroff.o
3737
obj-$(CONFIG_NVMEM_REBOOT_MODE) += nvmem-reboot-mode.o
38+
obj-$(CONFIG_POWER_MLXBF) += pwr-mlxbf.o

0 commit comments

Comments
 (0)