Skip to content

Commit

Permalink
Resync master with latest Linus upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
akpm00 committed Dec 18, 2022
2 parents 77856d9 + f9ff564 commit b29e6ec
Show file tree
Hide file tree
Showing 91 changed files with 1,243 additions and 906 deletions.
1 change: 1 addition & 0 deletions Documentation/devicetree/bindings/leds/common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ properties:
- pattern
# LED is triggered by SD/MMC activity
- pattern: "^mmc[0-9]+$"
- pattern: "^cpu[0-9]*$"

led-pattern:
description: |
Expand Down
67 changes: 0 additions & 67 deletions Documentation/devicetree/bindings/leds/leds-pm8058.txt

This file was deleted.

57 changes: 57 additions & 0 deletions Documentation/devicetree/bindings/leds/qcom,pm8058-led.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
%YAML 1.2
---
$id: http://devicetree.org/schemas/leds/qcom,pm8058-led.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Qualcomm PM8058 PMIC LED

maintainers:
- Krzysztof Kozlowski <[email protected]>

description: |
The Qualcomm PM8058 contains an LED block for up to six LEDs:: three normal
LEDs, two "flash" LEDs and one "keypad backlight" LED. The names are quoted
because sometimes these LED drivers are used for wildly different things than
flash or keypad backlight:: their names are more of a suggestion than a
hard-wired usecase.
Hardware-wise the different LEDs support slightly different output currents.
The "flash" LEDs do not need to charge nor do they support external triggers.
They are just powerful LED drivers.
allOf:
- $ref: common.yaml#

properties:
compatible:
enum:
- qcom,pm8058-led
- qcom,pm8058-keypad-led
- qcom,pm8058-flash-led

reg:
maxItems: 1

required:
- compatible
- reg

unevaluatedProperties: false

examples:
- |
#include <dt-bindings/leds/common.h>
pmic {
#address-cells = <1>;
#size-cells = <0>;
led@131 {
compatible = "qcom,pm8058-led";
reg = <0x131>;
label = "pm8058:red";
color = <LED_COLOR_ID_RED>;
default-state = "off";
};
};
6 changes: 3 additions & 3 deletions Documentation/devicetree/bindings/mfd/ene-kb930.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ description: |
maintainers:
- Dmitry Osipenko <[email protected]>

$ref: /schemas/power/supply/power-supply.yaml

properties:
compatible:
items:
Expand All @@ -22,15 +24,13 @@ properties:
reg:
maxItems: 1

monitored-battery: true
power-supplies: true
system-power-controller: true

required:
- compatible
- reg

additionalProperties: false
unevaluatedProperties: false

examples:
- |
Expand Down
4 changes: 4 additions & 0 deletions Documentation/devicetree/bindings/mfd/qcom-pm8xxx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ properties:
interrupt-controller: true

patternProperties:
"led@[0-9a-f]+$":
type: object
$ref: /schemas/leds/qcom,pm8058-led.yaml#

"rtc@[0-9a-f]+$":
type: object
$ref: "../rtc/qcom-pm8xxx-rtc.yaml"
Expand Down
2 changes: 2 additions & 0 deletions Documentation/devicetree/bindings/mfd/rockchip,rk817.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ properties:
The child node for the charger to hold additional properties. If a
battery is not in use, this node can be omitted.
type: object
$ref: /schemas/power/supply/power-supply.yaml

properties:
monitored-battery:
description: |
Expand Down
13 changes: 3 additions & 10 deletions Documentation/devicetree/bindings/power/reset/gpio-restart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ description: >
inactive-delay, the GPIO is driven active again. After a delay specified by wait-delay, the
restart handler completes allowing other restart handlers to be attempted.
allOf:
- $ref: restart-handler.yaml#

properties:
compatible:
const: gpio-restart
Expand All @@ -41,16 +44,6 @@ properties:
in its inactive state.

priority:
$ref: /schemas/types.yaml#/definitions/uint32
description: |
A priority ranging from 0 to 255 (default 129) according to the following guidelines:
0: Restart handler of last resort, with limited restart capabilities.
128: Default restart handler; use if no other restart handler is expected to be available,
and/or if restart functionality is sufficient to restart the entire system.
255: Highest priority restart handler, will preempt all other restart handlers.
minimum: 0
maximum: 255
default: 129

active-delay:
Expand Down
30 changes: 30 additions & 0 deletions Documentation/devicetree/bindings/power/reset/restart-handler.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# SPDX-License-Identifier: GPL-2.0-only or BSD-2-Clause
%YAML 1.2
---
$id: http://devicetree.org/schemas/power/reset/restart-handler.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Restart and shutdown handler generic binding

maintainers:
- Sebastian Reichel <[email protected]>

description:
Restart and shutdown handler device is responsible for powering off the
system, e.g. my cutting off the power. System might have several restart
handlers, which usually are tried from most precise to last resort.

properties:
priority:
$ref: /schemas/types.yaml#/definitions/uint32
description: |
A priority ranging from 0 to 255 according to the following guidelines::
0:: Restart handler of last resort, with limited restart capabilities.
128:: Typical, default restart handler; use if no other restart handler
is expected to be available, and/or if restart functionality is
sufficient to restart the entire system.
255:: Highest priority restart handler, will preempt all other restart handlers.
minimum: 0
maximum: 255

additionalProperties: true
16 changes: 10 additions & 6 deletions Documentation/devicetree/bindings/power/supply/bq25890.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,15 @@ allOf:

properties:
compatible:
enum:
- ti,bq25890
- ti,bq25892
- ti,bq25895
- ti,bq25896
oneOf:
- enum:
- ti,bq25890
- items:
- enum:
- ti,bq25892
- ti,bq25895
- ti,bq25896
- const: ti,bq25890

reg:
maxItems: 1
Expand Down Expand Up @@ -93,7 +97,7 @@ required:
- ti,boost-voltage
- ti,boost-max-current

additionalProperties: false
unevaluatedProperties: false

examples:
- |
Expand Down
2 changes: 0 additions & 2 deletions Documentation/devicetree/bindings/power/supply/bq27xxx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,11 @@ properties:

monitored-battery:
description: |
phandle of battery characteristics node.
The fuel gauge uses the following battery properties:
- energy-full-design-microwatt-hours
- charge-full-design-microamp-hours
- voltage-min-design-microvolt
Both or neither of the *-full-design-*-hours properties must be set.
See Documentation/devicetree/bindings/power/supply/battery.yaml
power-supplies: true

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ title: Ingenic JZ47xx battery bindings
maintainers:
- Artur Rojek <[email protected]>

$ref: power-supply.yaml#

properties:
compatible:
oneOf:
Expand All @@ -28,8 +30,6 @@ properties:

monitored-battery:
description: >
phandle to a "simple-battery" compatible node.
This property must be a phandle to a node using the format described
in battery.yaml, with the following properties being required:
- voltage-min-design-microvolt: drained battery voltage,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ properties:
Voltage threshold to report battery as over voltage (in mV).
Default is not to report over-voltage events.
power-supplies: true

required:
- compatible
- reg
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,10 @@ properties:
This property is added to a supply in order to list the devices which
supply it power, referenced by their phandles.

monitored-battery:
$ref: /schemas/types.yaml#/definitions/phandle
description:
The battery (with "simple-battery" compatible) being monitored by this
power supply.

additionalProperties: true
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ description: |
provides a Dual-source Battery Charger, two port BC1.2 detection and a
Battery Monitor.
$ref: power-supply.yaml#

properties:
compatible:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ properties:
The charger uses the following battery properties
- charge-term-current-microamp: current for charge termination phase.
- constant-charge-voltage-max-microvolt: maximum constant input voltage.
See Documentation/devicetree/bindings/power/supply/battery.yaml
additionalProperties: false

Expand Down
Loading

0 comments on commit b29e6ec

Please sign in to comment.