gpio-sx150x.txt 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. SEMTECH SX150x GPIO expander bindings
  2. Required properties:
  3. - compatible: should be "semtech,sx1506q",
  4. "semtech,sx1508q",
  5. "semtech,sx1509q".
  6. - reg: The I2C slave address for this device.
  7. - interrupt-parent: phandle of the parent interrupt controller.
  8. - interrupts: Interrupt specifier for the controllers interrupt.
  9. - #gpio-cells: Should be 2. The first cell is the GPIO number and the
  10. second cell is used to specify optional parameters:
  11. bit 0: polarity (0: normal, 1: inverted)
  12. - gpio-controller: Marks the device as a GPIO controller.
  13. - interrupt-controller: Marks the device as a interrupt controller.
  14. The GPIO expander can optionally be used as an interrupt controller, in
  15. which case it uses the default two cell specifier as described in
  16. Documentation/devicetree/bindings/interrupt-controller/interrupts.txt.
  17. Example:
  18. i2c_gpio_expander@20{
  19. #gpio-cells = <2>;
  20. #interrupt-cells = <2>;
  21. compatible = "semtech,sx1506q";
  22. reg = <0x20>;
  23. interrupt-parent = <&gpio_1>;
  24. interrupts = <16 0>;
  25. gpio-controller;
  26. interrupt-controller;
  27. };