Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/leds/leds-bcm63138.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: Broadcom's BCM63138 LEDs controller
0008 
0009 maintainers:
0010   - Rafał Miłecki <rafal@milecki.pl>
0011 
0012 description: |
0013   This LEDs controller was first used on BCM63138 and later reused on BCM4908,
0014   BCM6848, BCM6858, BCM63138, BCM63148, BCM63381 and BCM68360 SoCs.
0015 
0016   It supports up to 32 LEDs that can be connected parallelly or serially. It
0017   also includes limited support for hardware blinking.
0018 
0019   Binding serially connected LEDs isn't documented yet.
0020 
0021 properties:
0022   compatible:
0023     oneOf:
0024       - items:
0025           - enum:
0026               - brcm,bcm4908-leds
0027               - brcm,bcm6848-leds
0028               - brcm,bcm6858-leds
0029               - brcm,bcm63148-leds
0030               - brcm,bcm63381-leds
0031               - brcm,bcm68360-leds
0032           - const: brcm,bcm63138-leds
0033       - const: brcm,bcm63138-leds
0034 
0035   reg:
0036     maxItems: 1
0037 
0038   "#address-cells":
0039     const: 1
0040 
0041   "#size-cells":
0042     const: 0
0043 
0044 patternProperties:
0045   "^led@[a-f0-9]+$":
0046     type: object
0047 
0048     $ref: common.yaml#
0049 
0050     properties:
0051       reg:
0052         maxItems: 1
0053         description: LED pin number
0054 
0055       active-low:
0056         type: boolean
0057         description: Makes LED active low
0058 
0059     required:
0060       - reg
0061 
0062     unevaluatedProperties: false
0063 
0064 required:
0065   - reg
0066   - "#address-cells"
0067   - "#size-cells"
0068 
0069 additionalProperties: false
0070 
0071 examples:
0072   - |
0073     #include <dt-bindings/leds/common.h>
0074 
0075     leds@ff800800 {
0076         compatible = "brcm,bcm4908-leds", "brcm,bcm63138-leds";
0077         reg = <0xff800800 0xdc>;
0078 
0079         #address-cells = <1>;
0080         #size-cells = <0>;
0081 
0082         led@0 {
0083             reg = <0x0>;
0084             function = LED_FUNCTION_POWER;
0085             color = <LED_COLOR_ID_GREEN>;
0086             default-state = "on";
0087         };
0088 
0089         led@3 {
0090             reg = <0x3>;
0091             function = LED_FUNCTION_STATUS;
0092             color = <LED_COLOR_ID_GREEN>;
0093             active-low;
0094         };
0095     };