The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/contrib/device-tree/Bindings/leds/leds-aw2013.yaml

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
    2 %YAML 1.2
    3 ---
    4 $id: http://devicetree.org/schemas/leds/leds-aw2013.yaml#
    5 $schema: http://devicetree.org/meta-schemas/core.yaml#
    6 
    7 title: AWINIC AW2013 3-channel LED Driver
    8 
    9 maintainers:
   10   - Nikita Travkin <nikitos.tr@gmail.com>
   11 
   12 description: |
   13   The AW2013 is a 3-channel LED driver with I2C interface. It can control
   14   LED brightness with PWM output.
   15 
   16 properties:
   17   compatible:
   18     const: awinic,aw2013
   19 
   20   reg:
   21     maxItems: 1
   22 
   23   vcc-supply:
   24     description: Regulator providing power to the "VCC" pin.
   25 
   26   "#address-cells":
   27     const: 1
   28 
   29   "#size-cells":
   30     const: 0
   31 
   32 patternProperties:
   33   "^led@[0-2]$":
   34     type: object
   35     $ref: common.yaml#
   36 
   37     properties:
   38       reg:
   39         description: Index of the LED.
   40         minimum: 0
   41         maximum: 2
   42 
   43 required:
   44   - compatible
   45   - reg
   46   - "#address-cells"
   47   - "#size-cells"
   48 
   49 additionalProperties: false
   50 
   51 examples:
   52   - |
   53     #include <dt-bindings/gpio/gpio.h>
   54     #include <dt-bindings/leds/common.h>
   55 
   56     i2c0 {
   57         #address-cells = <1>;
   58         #size-cells = <0>;
   59 
   60         led-controller@45 {
   61             compatible = "awinic,aw2013";
   62             reg = <0x45>;
   63             #address-cells = <1>;
   64             #size-cells = <0>;
   65 
   66             vcc-supply = <&pm8916_l17>;
   67 
   68             led@0 {
   69                 reg = <0>;
   70                 led-max-microamp = <5000>;
   71                 function = LED_FUNCTION_INDICATOR;
   72                 color = <LED_COLOR_ID_RED>;
   73             };
   74 
   75             led@1 {
   76                 reg = <1>;
   77                 led-max-microamp = <5000>;
   78                 function = LED_FUNCTION_INDICATOR;
   79                 color = <LED_COLOR_ID_GREEN>;
   80             };
   81 
   82             led@2 {
   83                 reg = <2>;
   84                 led-max-microamp = <5000>;
   85                 function = LED_FUNCTION_INDICATOR;
   86                 color = <LED_COLOR_ID_BLUE>;
   87             };
   88         };
   89     };
   90 ...

Cache object: a410d686f54569fb1b987fa45b0330de


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.