Skip to content

Commit b29e6ec

Browse files
committed
Resync master with latest Linus upstream
2 parents 77856d9 + f9ff564 commit b29e6ec

File tree

91 files changed

+1243
-906
lines changed

Some content is hidden

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

91 files changed

+1243
-906
lines changed

Documentation/devicetree/bindings/leds/common.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ properties:
100100
- pattern
101101
# LED is triggered by SD/MMC activity
102102
- pattern: "^mmc[0-9]+$"
103+
- pattern: "^cpu[0-9]*$"
103104

104105
led-pattern:
105106
description: |

Documentation/devicetree/bindings/leds/leds-pm8058.txt

Lines changed: 0 additions & 67 deletions
This file was deleted.
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/leds/qcom,pm8058-led.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Qualcomm PM8058 PMIC LED
8+
9+
maintainers:
10+
- Krzysztof Kozlowski <[email protected]>
11+
12+
description: |
13+
The Qualcomm PM8058 contains an LED block for up to six LEDs:: three normal
14+
LEDs, two "flash" LEDs and one "keypad backlight" LED. The names are quoted
15+
because sometimes these LED drivers are used for wildly different things than
16+
flash or keypad backlight:: their names are more of a suggestion than a
17+
hard-wired usecase.
18+
19+
Hardware-wise the different LEDs support slightly different output currents.
20+
The "flash" LEDs do not need to charge nor do they support external triggers.
21+
They are just powerful LED drivers.
22+
23+
allOf:
24+
- $ref: common.yaml#
25+
26+
properties:
27+
compatible:
28+
enum:
29+
- qcom,pm8058-led
30+
- qcom,pm8058-keypad-led
31+
- qcom,pm8058-flash-led
32+
33+
reg:
34+
maxItems: 1
35+
36+
required:
37+
- compatible
38+
- reg
39+
40+
unevaluatedProperties: false
41+
42+
examples:
43+
- |
44+
#include <dt-bindings/leds/common.h>
45+
46+
pmic {
47+
#address-cells = <1>;
48+
#size-cells = <0>;
49+
50+
led@131 {
51+
compatible = "qcom,pm8058-led";
52+
reg = <0x131>;
53+
label = "pm8058:red";
54+
color = <LED_COLOR_ID_RED>;
55+
default-state = "off";
56+
};
57+
};

Documentation/devicetree/bindings/mfd/ene-kb930.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ description: |
1313
maintainers:
1414
- Dmitry Osipenko <[email protected]>
1515

16+
$ref: /schemas/power/supply/power-supply.yaml
17+
1618
properties:
1719
compatible:
1820
items:
@@ -22,15 +24,13 @@ properties:
2224
reg:
2325
maxItems: 1
2426

25-
monitored-battery: true
26-
power-supplies: true
2727
system-power-controller: true
2828

2929
required:
3030
- compatible
3131
- reg
3232

33-
additionalProperties: false
33+
unevaluatedProperties: false
3434

3535
examples:
3636
- |

Documentation/devicetree/bindings/mfd/qcom-pm8xxx.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ properties:
3939
interrupt-controller: true
4040

4141
patternProperties:
42+
"led@[0-9a-f]+$":
43+
type: object
44+
$ref: /schemas/leds/qcom,pm8058-led.yaml#
45+
4246
"rtc@[0-9a-f]+$":
4347
type: object
4448
$ref: "../rtc/qcom-pm8xxx-rtc.yaml"

Documentation/devicetree/bindings/mfd/rockchip,rk817.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ properties:
124124
The child node for the charger to hold additional properties. If a
125125
battery is not in use, this node can be omitted.
126126
type: object
127+
$ref: /schemas/power/supply/power-supply.yaml
128+
127129
properties:
128130
monitored-battery:
129131
description: |

Documentation/devicetree/bindings/power/reset/gpio-restart.yaml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ description: >
2525
inactive-delay, the GPIO is driven active again. After a delay specified by wait-delay, the
2626
restart handler completes allowing other restart handlers to be attempted.
2727
28+
allOf:
29+
- $ref: restart-handler.yaml#
30+
2831
properties:
2932
compatible:
3033
const: gpio-restart
@@ -41,16 +44,6 @@ properties:
4144
in its inactive state.
4245

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

5649
active-delay:
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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/restart-handler.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Restart and shutdown handler generic binding
8+
9+
maintainers:
10+
- Sebastian Reichel <[email protected]>
11+
12+
description:
13+
Restart and shutdown handler device is responsible for powering off the
14+
system, e.g. my cutting off the power. System might have several restart
15+
handlers, which usually are tried from most precise to last resort.
16+
17+
properties:
18+
priority:
19+
$ref: /schemas/types.yaml#/definitions/uint32
20+
description: |
21+
A priority ranging from 0 to 255 according to the following guidelines::
22+
0:: Restart handler of last resort, with limited restart capabilities.
23+
128:: Typical, default restart handler; use if no other restart handler
24+
is expected to be available, and/or if restart functionality is
25+
sufficient to restart the entire system.
26+
255:: Highest priority restart handler, will preempt all other restart handlers.
27+
minimum: 0
28+
maximum: 255
29+
30+
additionalProperties: true

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

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,15 @@ allOf:
1515

1616
properties:
1717
compatible:
18-
enum:
19-
- ti,bq25890
20-
- ti,bq25892
21-
- ti,bq25895
22-
- ti,bq25896
18+
oneOf:
19+
- enum:
20+
- ti,bq25890
21+
- items:
22+
- enum:
23+
- ti,bq25892
24+
- ti,bq25895
25+
- ti,bq25896
26+
- const: ti,bq25890
2327

2428
reg:
2529
maxItems: 1
@@ -93,7 +97,7 @@ required:
9397
- ti,boost-voltage
9498
- ti,boost-max-current
9599

96-
additionalProperties: false
100+
unevaluatedProperties: false
97101

98102
examples:
99103
- |

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,11 @@ properties:
6060

6161
monitored-battery:
6262
description: |
63-
phandle of battery characteristics node.
6463
The fuel gauge uses the following battery properties:
6564
- energy-full-design-microwatt-hours
6665
- charge-full-design-microamp-hours
6766
- voltage-min-design-microvolt
6867
Both or neither of the *-full-design-*-hours properties must be set.
69-
See Documentation/devicetree/bindings/power/supply/battery.yaml
7068
7169
power-supplies: true
7270

0 commit comments

Comments
 (0)