Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <linus.walleij@linaro.org>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Link: https://lore.kernel.org/r/20241010-bcm63138-leds-v4-1-cdb80780a555@linaro.org
Signed-off-by: Lee Jones <lee@kernel.org>

authored by

Linus Walleij and committed by
Lee Jones
d19261ff 42507413

+11
+11
Documentation/devicetree/bindings/leds/leds-bcm63138.yaml
··· 41 41 "#size-cells": 42 42 const: 0 43 43 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 + 44 54 patternProperties: 45 55 "^led@[a-f0-9]+$": 46 56 type: object ··· 81 71 leds@ff800800 { 82 72 compatible = "brcm,bcm4908-leds", "brcm,bcm63138-leds"; 83 73 reg = <0xff800800 0xdc>; 74 + brcm,serial-shift-bits = <16>; 84 75 85 76 #address-cells = <1>; 86 77 #size-cells = <0>;