Skip to content

Commit d19261f

Browse files
Linus Walleijlag-linaro
authored andcommitted
dt-bindings: leds: bcm63138: Add shift register bits
The BCM63138 family of serial LED controllers has a register where we can set up bits for the shift registers. These are the number of rounds the bits need to be shifted before all bits have been shifted through the external shift registers. Signed-off-by: Linus Walleij <[email protected]> Reviewed-by: Florian Fainelli <[email protected]> Reviewed-by: Rob Herring (Arm) <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lee Jones <[email protected]>
1 parent 4250741 commit d19261f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Documentation/devicetree/bindings/leds/leds-bcm63138.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,16 @@ properties:
4141
"#size-cells":
4242
const: 0
4343

44+
brcm,serial-shift-bits:
45+
minimum: 1
46+
maximum: 32
47+
description:
48+
This describes the number of 8-bit serial shifters connected to the LED
49+
controller block. The hardware is typically using 8-bit shift registers
50+
with 8 LEDs per shift register, so 4 shifters results in 32 LEDs or 2
51+
shifters give 16 LEDs etc, but the hardware supports any odd number of
52+
registers. If left unspecified, the hardware boot-time default is used.
53+
4454
patternProperties:
4555
"^led@[a-f0-9]+$":
4656
type: object
@@ -71,6 +81,7 @@ examples:
7181
leds@ff800800 {
7282
compatible = "brcm,bcm4908-leds", "brcm,bcm63138-leds";
7383
reg = <0xff800800 0xdc>;
84+
brcm,serial-shift-bits = <16>;
7485
7586
#address-cells = <1>;
7687
#size-cells = <0>;

0 commit comments

Comments
 (0)