brintos

brintos / linux-shallow public Read only

0
0
Text · 2.8 KiB · 760cb33 Raw
138 lines · yaml
1# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause2%YAML 1.23---4$id: http://devicetree.org/schemas/leds/allwinner,sun50i-a100-ledc.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: Allwinner A100 LED Controller8 9maintainers:10  - Samuel Holland <samuel@sholland.org>11 12description:13  The LED controller found in Allwinner sunxi SoCs uses a one-wire serial14  interface to drive up to 1024 RGB LEDs.15 16properties:17  compatible:18    oneOf:19      - const: allwinner,sun50i-a100-ledc20      - items:21          - enum:22              - allwinner,sun20i-d1-ledc23              - allwinner,sun50i-r329-ledc24          - const: allwinner,sun50i-a100-ledc25 26  reg:27    maxItems: 128 29  "#address-cells":30    const: 131 32  "#size-cells":33    const: 034 35  interrupts:36    maxItems: 137 38  clocks:39    items:40      - description: Bus clock41      - description: Module clock42 43  clock-names:44    items:45      - const: bus46      - const: mod47 48  resets:49    maxItems: 150 51  dmas:52    maxItems: 153    description: TX DMA channel54 55  dma-names:56    const: tx57 58  allwinner,pixel-format:59    description: Pixel format (subpixel transmission order), default is "grb"60    enum:61      - bgr62      - brg63      - gbr64      - grb65      - rbg66      - rgb67 68  allwinner,t0h-ns:69    default: 33670    description: Length of high pulse when transmitting a "0" bit71 72  allwinner,t0l-ns:73    default: 84074    description: Length of low pulse when transmitting a "0" bit75 76  allwinner,t1h-ns:77    default: 88278    description: Length of high pulse when transmitting a "1" bit79 80  allwinner,t1l-ns:81    default: 29482    description: Length of low pulse when transmitting a "1" bit83 84  allwinner,treset-ns:85    default: 30000086    description: Minimum delay between transmission frames87 88patternProperties:89  "^multi-led@[0-9a-f]+$":90    type: object91    $ref: leds-class-multicolor.yaml#92    unevaluatedProperties: false93    properties:94      reg:95        minimum: 096        maximum: 102397        description: Index of the LED in the series (must be contiguous)98 99    required:100      - reg101 102required:103  - compatible104  - reg105  - interrupts106  - clocks107  - clock-names108  - resets109 110additionalProperties: false111 112examples:113  - |114    #include <dt-bindings/interrupt-controller/irq.h>115    #include <dt-bindings/leds/common.h>116 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";124      resets = <&ccu 12>;125      dmas = <&dma 42>;126      dma-names = "tx";127      #address-cells = <1>;128      #size-cells = <0>;129 130      multi-led@0 {131        reg = <0x0>;132        color = <LED_COLOR_ID_RGB>;133        function = LED_FUNCTION_INDICATOR;134      };135    };136 137...138