File tree Expand file tree Collapse file tree 3 files changed +25
-31
lines changed
Documentation/devicetree/bindings/leds/backlight Expand file tree Collapse file tree 3 files changed +25
-31
lines changed Original file line number Diff line number Diff line change @@ -33,4 +33,21 @@ properties:
33
33
due to restrictions in a specific system, such as mounting conditions.
34
34
$ref : /schemas/types.yaml#/definitions/uint32
35
35
36
+ brightness-levels :
37
+ description :
38
+ Array of distinct brightness levels. The levels must be in the range
39
+ accepted by the underlying LED device. Typically these are in the range
40
+ from 0 to 255, but any range starting at 0 will do, as long as they are
41
+ accepted by the LED.
42
+ The 0 value means a 0% of brightness (darkest/off), while the last value
43
+ in the array represents a full 100% brightness (brightest).
44
+ If this array is not provided, the driver default mapping is used.
45
+ $ref : /schemas/types.yaml#/definitions/uint32-array
46
+
47
+ default-brightness-level :
48
+ description :
49
+ The default brightness level (index into the array defined by the
50
+ " brightness-levels" property).
51
+ $ref : /schemas/types.yaml#/definitions/uint32
52
+
36
53
additionalProperties : true
Original file line number Diff line number Diff line change @@ -16,6 +16,9 @@ description:
16
16
can also be used to describe a backlight device controlled by the output of
17
17
a LED driver.
18
18
19
+ allOf :
20
+ - $ref : common.yaml#
21
+
19
22
properties :
20
23
compatible :
21
24
const : led-backlight
@@ -26,25 +29,11 @@ properties:
26
29
items :
27
30
maxItems : 1
28
31
29
- brightness-levels :
30
- description :
31
- Array of distinct brightness levels. The levels must be in the range
32
- accepted by the underlying LED devices. This is used to translate a
33
- backlight brightness level into a LED brightness level. If it is not
34
- provided, the identity mapping is used.
35
- $ref : /schemas/types.yaml#/definitions/uint32-array
36
-
37
- default-brightness-level :
38
- description :
39
- The default brightness level (index into the array defined by the
40
- " brightness-levels" property).
41
- $ref : /schemas/types.yaml#/definitions/uint32
42
-
43
32
required :
44
33
- compatible
45
34
- leds
46
35
47
- additionalProperties : false
36
+ unevaluatedProperties : false
48
37
49
38
examples :
50
39
- |
Original file line number Diff line number Diff line change @@ -11,6 +11,9 @@ maintainers:
11
11
-
Daniel Thompson <[email protected] >
12
12
13
13
14
+ allOf :
15
+ - $ref : common.yaml#
16
+
14
17
properties :
15
18
compatible :
16
19
const : pwm-backlight
@@ -39,21 +42,6 @@ properties:
39
42
Delay in ms between disabling the backlight using GPIO and setting PWM
40
43
value to 0.
41
44
42
- brightness-levels :
43
- description :
44
- Array of distinct brightness levels. Typically these are in the range
45
- from 0 to 255, but any range starting at 0 will do. The actual brightness
46
- level (PWM duty cycle) will be interpolated from these values. 0 means a
47
- 0% duty cycle (darkest/off), while the last value in the array represents
48
- a 100% duty cycle (brightest).
49
- $ref : /schemas/types.yaml#/definitions/uint32-array
50
-
51
- default-brightness-level :
52
- description :
53
- The default brightness level (index into the array defined by the
54
- " brightness-levels" property).
55
- $ref : /schemas/types.yaml#/definitions/uint32
56
-
57
45
num-interpolated-steps :
58
46
description :
59
47
Number of interpolated steps between each value of brightness-levels
@@ -69,7 +57,7 @@ required:
69
57
- compatible
70
58
- pwms
71
59
72
- additionalProperties : false
60
+ unevaluatedProperties : false
73
61
74
62
examples :
75
63
- |
You can’t perform that action at this time.
0 commit comments