Back to home page

OSCL-LXR

 
 

    


0001 TI/National Semiconductor LP3943 GPIO controller
0002 
0003 Required properties:
0004   - compatible: "ti,lp3943-gpio"
0005   - gpio-controller: Marks the device node as a GPIO controller.
0006   - #gpio-cells: Should be 2. See gpio.txt in this directory for a
0007                  description of the cells format.
0008 
0009 Example:
0010 Simple LED controls with LP3943 GPIO controller
0011 
0012 &i2c4 {
0013         lp3943@60 {
0014                 compatible = "ti,lp3943";
0015                 reg = <0x60>;
0016 
0017                 gpioex: gpio {
0018                         compatible = "ti,lp3943-gpio";
0019                         gpio-controller;
0020                         #gpio-cells = <2>;
0021                 };
0022         };
0023 };
0024 
0025 leds {
0026         compatible = "gpio-leds";
0027         indicator1 {
0028                 label = "indi1";
0029                 gpios = <&gpioex 9 GPIO_ACTIVE_LOW>;
0030         };
0031 
0032         indicator2 {
0033                 label = "indi2";
0034                 gpios = <&gpioex 10 GPIO_ACTIVE_LOW>;
0035                 default-state = "off";
0036         };
0037 };