1 From 13344f8ce8a0d98aa7f5d69ce3b47393c73a343b Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
3 Date: Mon, 27 Dec 2021 15:59:04 +0100
4 Subject: [PATCH] dt-bindings: leds: add Broadcom's BCM63138 controller
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
9 Broadcom used 2 LEDs hardware blocks for their BCM63xx SoCs:
10 1. Older one (BCM6318, BCM6328, BCM6362, BCM63268, BCM6838)
11 2. Newer one (BCM6848, BCM6858, BCM63138, BCM63148, BCM63381, BCM68360)
13 The newer one was also later also used on BCM4908 SoC.
15 Old block is already documented in the leds-bcm6328.yaml. This binding
16 documents the new one which uses different registers & programming. It's
17 first used in BCM63138 thus the binding name.
19 Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
20 Reviewed-by: Rob Herring <robh@kernel.org>
21 Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
22 Signed-off-by: Pavel Machek <pavel@ucw.cz>
24 .../bindings/leds/leds-bcm63138.yaml | 95 +++++++++++++++++++
25 1 file changed, 95 insertions(+)
26 create mode 100644 Documentation/devicetree/bindings/leds/leds-bcm63138.yaml
29 +++ b/Documentation/devicetree/bindings/leds/leds-bcm63138.yaml
31 +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
34 +$id: http://devicetree.org/schemas/leds/leds-bcm63138.yaml#
35 +$schema: http://devicetree.org/meta-schemas/core.yaml#
37 +title: Broadcom's BCM63138 LEDs controller
40 + - Rafał Miłecki <rafal@milecki.pl>
43 + This LEDs controller was first used on BCM63138 and later reused on BCM4908,
44 + BCM6848, BCM6858, BCM63138, BCM63148, BCM63381 and BCM68360 SoCs.
46 + It supports up to 32 LEDs that can be connected parallelly or serially. It
47 + also includes limited support for hardware blinking.
49 + Binding serially connected LEDs isn't documented yet.
59 + - brcm,bcm63148-leds
60 + - brcm,bcm63381-leds
61 + - brcm,bcm68360-leds
62 + - const: brcm,bcm63138-leds
63 + - const: brcm,bcm63138-leds
83 + description: LED pin number
87 + description: Makes LED active low.
92 + unevaluatedProperties: false
99 +additionalProperties: false
103 + #include <dt-bindings/leds/common.h>
106 + compatible = "brcm,bcm4908-leds", "brcm,bcm63138-leds";
107 + reg = <0xff800800 0xdc>;
109 + #address-cells = <1>;
114 + function = LED_FUNCTION_POWER;
115 + color = <LED_COLOR_ID_GREEN>;
116 + default-state = "on";
121 + function = LED_FUNCTION_STATUS;
122 + color = <LED_COLOR_ID_GREEN>;