142fcb203SNandor HanGPIO Driver for XRA1403 16-BIT GPIO Expander With Reset Input from EXAR
242fcb203SNandor Han
342fcb203SNandor HanThe XRA1403 is an 16-bit GPIO expander with an SPI interface. Features available:
442fcb203SNandor Han	- Individually programmable inputs:
542fcb203SNandor Han		- Internal pull-up resistors
642fcb203SNandor Han		- Polarity inversion
742fcb203SNandor Han		- Individual interrupt enable
842fcb203SNandor Han		- Rising edge and/or Falling edge interrupt
942fcb203SNandor Han		- Input filter
1042fcb203SNandor Han	- Individually programmable outputs
1142fcb203SNandor Han		- Output Level Control
1242fcb203SNandor Han		- Output Three-State Control
1342fcb203SNandor Han
1442fcb203SNandor HanProperties
1542fcb203SNandor Han----------
1642fcb203SNandor HanCheck documentation for SPI and GPIO controllers regarding properties needed to configure the node.
1742fcb203SNandor Han
1842fcb203SNandor Han	- compatible = "exar,xra1403".
1942fcb203SNandor Han	- reg - SPI id of the device.
2042fcb203SNandor Han	- gpio-controller - marks the node as gpio.
2142fcb203SNandor Han	- #gpio-cells - should be two where the first cell is the pin number
2242fcb203SNandor Han		and the second one is used for optional parameters.
2342fcb203SNandor Han
2442fcb203SNandor HanOptional properties:
2542fcb203SNandor Han-------------------
2642fcb203SNandor Han	- reset-gpios: in case available used to control the device reset line.
2742fcb203SNandor Han	- interrupt-controller - marks the node as interrupt controller.
2842fcb203SNandor Han	- #interrupt-cells - should be two and represents the number of cells
2942fcb203SNandor Han		needed to encode interrupt source.
3042fcb203SNandor Han
3142fcb203SNandor HanExample
3242fcb203SNandor Han--------
3342fcb203SNandor Han
3442fcb203SNandor Han	gpioxra0: gpio@2 {
3542fcb203SNandor Han		compatible = "exar,xra1403";
3642fcb203SNandor Han		reg = <2>;
3742fcb203SNandor Han
3842fcb203SNandor Han		gpio-controller;
3942fcb203SNandor Han		#gpio-cells = <2>;
4042fcb203SNandor Han
4142fcb203SNandor Han		interrupt-controller;
4242fcb203SNandor Han		#interrupt-cells = <2>;
4342fcb203SNandor Han
4442fcb203SNandor Han		reset-gpios = <&gpio3 6 GPIO_ACTIVE_LOW>;
4542fcb203SNandor Han		spi-max-frequency = <1000000>;
4642fcb203SNandor Han	};
47