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-ns2.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 Binding for dual-GPIO LED found on Network Space v2 (and parents).
    2 
    3 Required properties:
    4 - compatible: "lacie,ns2-leds".
    5 
    6 Each LED is represented as a sub-node of the ns2-leds device.
    7 
    8 Required sub-node properties:
    9 - cmd-gpio: Command LED GPIO. See OF device-tree GPIO specification.
   10 - slow-gpio: Slow LED GPIO. See OF device-tree GPIO specification.
   11 - modes-map: A mapping between LED modes (off, on or SATA activity blinking) and
   12   the corresponding cmd-gpio/slow-gpio values. All the GPIO values combinations
   13   should be given in order to avoid having an unknown mode at driver probe time.
   14 
   15 Optional sub-node properties:
   16 - label: Name for this LED. If omitted, the label is taken from the node name.
   17 - linux,default-trigger: Trigger assigned to the LED.
   18 
   19 Example:
   20 
   21 #include <dt-bindings/leds/leds-ns2.h>
   22 
   23 ns2-leds {
   24         compatible = "lacie,ns2-leds";
   25 
   26         blue-sata {
   27                 label = "ns2:blue:sata";
   28                 slow-gpio = <&gpio0 29 0>;
   29                 cmd-gpio = <&gpio0 30 0>;
   30                 modes-map = <NS_V2_LED_OFF  0 1
   31                              NS_V2_LED_ON   1 0
   32                              NS_V2_LED_ON   0 0
   33                              NS_V2_LED_SATA 1 1>;
   34         };
   35 };

Cache object: a6263188c7ab31233e546432d64ba24d


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