Skip to content

Commit aa4ed49

Browse files
geo-starklag-linaro
authored andcommitted
dt-bindings: leds: aw200xx: Remove property "awinic,display-rows"
Get rid of the property "awinic,display-rows" and calculate it in the driver using led definition nodes. Signed-off-by: George Stark <gnstark@salutedevices.com> Signed-off-by: Dmitry Rokosov <ddrokosov@salutedevices.com> Acked-by: Rob Herring <robh@kernel.org> Link: https://lore.kernel.org/r/20231125200519.1750-6-ddrokosov@salutedevices.com Signed-off-by: Lee Jones <lee@kernel.org>
1 parent 2b8db57 commit aa4ed49

File tree

1 file changed

+4
-24
lines changed

1 file changed

+4
-24
lines changed

Documentation/devicetree/bindings/leds/awinic,aw200xx.yaml

Lines changed: 4 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,6 @@ properties:
3636
"#size-cells":
3737
const: 0
3838

39-
awinic,display-rows:
40-
$ref: /schemas/types.yaml#/definitions/uint32
41-
description:
42-
Leds matrix size
43-
4439
enable-gpios:
4540
maxItems: 1
4641

@@ -63,31 +58,17 @@ patternProperties:
6358
since the chip has a single global setting.
6459
The maximum output current of each LED is calculated by the
6560
following formula:
66-
IMAXled = 160000 * (592 / 600.5) * (1 / display-rows)
61+
IMAXled = 160000 * (592 / 600.5) * (1 / max-current-switch-number)
6762
And the minimum output current formula:
68-
IMINled = 3300 * (592 / 600.5) * (1 / display-rows)
63+
IMINled = 3300 * (592 / 600.5) * (1 / max-current-switch-number)
64+
where max-current-switch-number is determinated by led configuration
65+
and depends on how leds are physically connected to the led driver.
6966
7067
required:
7168
- compatible
7269
- reg
7370
- "#address-cells"
7471
- "#size-cells"
75-
- awinic,display-rows
76-
77-
allOf:
78-
- if:
79-
properties:
80-
compatible:
81-
contains:
82-
const: awinic,aw20036
83-
then:
84-
properties:
85-
awinic,display-rows:
86-
enum: [1, 2, 3]
87-
else:
88-
properties:
89-
awinic,display-rows:
90-
enum: [1, 2, 3, 4, 5, 6, 7]
9172

9273
additionalProperties: false
9374

@@ -105,7 +86,6 @@ examples:
10586
reg = <0x3a>;
10687
#address-cells = <1>;
10788
#size-cells = <0>;
108-
awinic,display-rows = <3>;
10989
enable-gpios = <&gpio 3 GPIO_ACTIVE_HIGH>;
11090
11191
led@0 {

0 commit comments

Comments
 (0)