0001 GPIO Driver for XRA1403 16-BIT GPIO Expander With Reset Input from EXAR
0002
0003 The XRA1403 is an 16-bit GPIO expander with an SPI interface. Features available:
0004 - Individually programmable inputs:
0005 - Internal pull-up resistors
0006 - Polarity inversion
0007 - Individual interrupt enable
0008 - Rising edge and/or Falling edge interrupt
0009 - Input filter
0010 - Individually programmable outputs
0011 - Output Level Control
0012 - Output Three-State Control
0013
0014 Properties
0015 ----------
0016 Check documentation for SPI and GPIO controllers regarding properties needed to configure the node.
0017
0018 - compatible = "exar,xra1403".
0019 - reg - SPI id of the device.
0020 - gpio-controller - marks the node as gpio.
0021 - #gpio-cells - should be two where the first cell is the pin number
0022 and the second one is used for optional parameters.
0023
0024 Optional properties:
0025 -------------------
0026 - reset-gpios: in case available used to control the device reset line.
0027 - interrupt-controller - marks the node as interrupt controller.
0028 - #interrupt-cells - should be two and represents the number of cells
0029 needed to encode interrupt source.
0030
0031 Example
0032 --------
0033
0034 gpioxra0: gpio@2 {
0035 compatible = "exar,xra1403";
0036 reg = <2>;
0037
0038 gpio-controller;
0039 #gpio-cells = <2>;
0040
0041 interrupt-controller;
0042 #interrupt-cells = <2>;
0043
0044 reset-gpios = <&gpio3 6 GPIO_ACTIVE_LOW>;
0045 spi-max-frequency = <1000000>;
0046 };