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/gpio/gpio-lp3943.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 TI/National Semiconductor LP3943 GPIO controller
    2 
    3 Required properties:
    4   - compatible: "ti,lp3943-gpio"
    5   - gpio-controller: Marks the device node as a GPIO controller.
    6   - #gpio-cells: Should be 2. See gpio.txt in this directory for a
    7                  description of the cells format.
    8 
    9 Example:
   10 Simple LED controls with LP3943 GPIO controller
   11 
   12 &i2c4 {
   13         lp3943@60 {
   14                 compatible = "ti,lp3943";
   15                 reg = <0x60>;
   16 
   17                 gpioex: gpio {
   18                         compatible = "ti,lp3943-gpio";
   19                         gpio-controller;
   20                         #gpio-cells = <2>;
   21                 };
   22         };
   23 };
   24 
   25 leds {
   26         compatible = "gpio-leds";
   27         indicator1 {
   28                 label = "indi1";
   29                 gpios = <&gpioex 9 GPIO_ACTIVE_LOW>;
   30         };
   31 
   32         indicator2 {
   33                 label = "indi2";
   34                 gpios = <&gpioex 10 GPIO_ACTIVE_LOW>;
   35                 default-state = "off";
   36         };
   37 };

Cache object: a301ad31b4321a1f50ffdf3b2dcce873


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