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-spi-byte.txt

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 * Single Byte SPI LED Device Driver.
    2 
    3 The driver can be used for controllers with a very simple SPI protocol:
    4 - one LED is controlled by a single byte on MOSI
    5 - the value of the byte gives the brightness between two values (lowest to
    6   highest)
    7 - no return value is necessary (no MISO signal)
    8 
    9 The value for lowest and highest brightness is dependent on the device and
   10 therefore on the compatible string.
   11 
   12 Depending on the compatible string some special functions (like hardware
   13 accelerated blinking) might can be supported too.
   14 
   15 The driver currently only supports one LED. The properties of the LED are
   16 configured in a sub-node in the device node.
   17 
   18 Required properties:
   19 - compatible: should be one of
   20    * "ubnt,acb-spi-led"         microcontroller (SONiX 8F26E611LA) based device
   21                                 used for example in Ubiquiti airCube ISP
   22 
   23 Property rules described in Documentation/devicetree/bindings/spi/spi-bus.txt
   24 apply.
   25 
   26 LED sub-node properties:
   27 - label:
   28         see Documentation/devicetree/bindings/leds/common.txt
   29 - default-state:
   30         see Documentation/devicetree/bindings/leds/common.txt
   31         Only "on" and "off" are supported.
   32 
   33 Example:
   34 
   35 led-controller@0 {
   36         compatible = "ubnt,acb-spi-led";
   37         reg = <0>;
   38         spi-max-frequency = <100000>;
   39 
   40         led {
   41                 label = "white:status";
   42                 default-state = "on";
   43         };
   44 };

Cache object: bd357b6f5224cc839908c981e4063284


[ 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.