gpio-lp3943.txt 733 B

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