1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
4 $id: http://devicetree.org/schemas/leds/allwinner,sun50i-a100-ledc.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Allwinner A100 LED Controller
10 - Samuel Holland <samuel@sholland.org>
13 The LED controller found in Allwinner sunxi SoCs uses a one-wire serial
14 interface to drive up to 1024 RGB LEDs.
19 - const: allwinner,sun50i-a100-ledc
22 - allwinner,sun20i-d1-ledc
23 - allwinner,sun50i-r329-ledc
24 - const: allwinner,sun50i-a100-ledc
40 - description: Bus clock
41 - description: Module clock
53 description: TX DMA channel
58 allwinner,pixel-format:
59 description: Pixel format (subpixel transmission order), default is "grb"
70 description: Length of high pulse when transmitting a "0" bit
74 description: Length of low pulse when transmitting a "0" bit
78 description: Length of high pulse when transmitting a "1" bit
82 description: Length of low pulse when transmitting a "1" bit
86 description: Minimum delay between transmission frames
89 "^multi-led@[0-9a-f]+$":
91 $ref: leds-class-multicolor.yaml#
92 unevaluatedProperties: false
97 description: Index of the LED in the series (must be contiguous)
110 additionalProperties: false
114 #include <dt-bindings/interrupt-controller/irq.h>
115 #include <dt-bindings/leds/common.h>
117 ledc: led-controller@2008000 {
118 compatible = "allwinner,sun20i-d1-ledc",
119 "allwinner,sun50i-a100-ledc";
120 reg = <0x2008000 0x400>;
121 interrupts = <36 IRQ_TYPE_LEVEL_HIGH>;
122 clocks = <&ccu 12>, <&ccu 34>;
123 clock-names = "bus", "mod";
127 #address-cells = <1>;
132 color = <LED_COLOR_ID_RGB>;
133 function = LED_FUNCTION_INDICATOR;