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