1*c66ec88fSEmmanuel VadotGPIO driver for Maxim MAX3191x industrial serializer
2*c66ec88fSEmmanuel Vadot
3*c66ec88fSEmmanuel VadotRequired properties:
4*c66ec88fSEmmanuel Vadot - compatible:		Must be one of:
5*c66ec88fSEmmanuel Vadot			"maxim,max31910"
6*c66ec88fSEmmanuel Vadot			"maxim,max31911"
7*c66ec88fSEmmanuel Vadot			"maxim,max31912"
8*c66ec88fSEmmanuel Vadot			"maxim,max31913"
9*c66ec88fSEmmanuel Vadot			"maxim,max31953"
10*c66ec88fSEmmanuel Vadot			"maxim,max31963"
11*c66ec88fSEmmanuel Vadot - reg: 		Chip select number.
12*c66ec88fSEmmanuel Vadot - gpio-controller:	Marks the device node as a GPIO controller.
13*c66ec88fSEmmanuel Vadot - #gpio-cells: 	Should be two. For consumer use see gpio.txt.
14*c66ec88fSEmmanuel Vadot
15*c66ec88fSEmmanuel VadotOptional properties:
16*c66ec88fSEmmanuel Vadot - #daisy-chained-devices:
17*c66ec88fSEmmanuel Vadot			Number of chips in the daisy-chain (default is 1).
18*c66ec88fSEmmanuel Vadot - maxim,modesel-gpios: GPIO pins to configure modesel of each chip.
19*c66ec88fSEmmanuel Vadot			The number of GPIOs must equal "#daisy-chained-devices"
20*c66ec88fSEmmanuel Vadot			(if each chip is driven by a separate pin) or 1
21*c66ec88fSEmmanuel Vadot			(if all chips are wired to the same pin).
22*c66ec88fSEmmanuel Vadot - maxim,fault-gpios: 	GPIO pins to read fault of each chip.
23*c66ec88fSEmmanuel Vadot			The number of GPIOs must equal "#daisy-chained-devices"
24*c66ec88fSEmmanuel Vadot			or 1.
25*c66ec88fSEmmanuel Vadot - maxim,db0-gpios:	GPIO pins to configure debounce of each chip.
26*c66ec88fSEmmanuel Vadot			The number of GPIOs must equal "#daisy-chained-devices"
27*c66ec88fSEmmanuel Vadot			or 1.
28*c66ec88fSEmmanuel Vadot - maxim,db1-gpios:	GPIO pins to configure debounce of each chip.
29*c66ec88fSEmmanuel Vadot			The number of GPIOs must equal "maxim,db0-gpios".
30*c66ec88fSEmmanuel Vadot - maxim,modesel-8bit:	Boolean whether the modesel pin of the chips is
31*c66ec88fSEmmanuel Vadot			pulled high (8-bit mode).  Use this if the modesel pin
32*c66ec88fSEmmanuel Vadot			is hardwired and consequently "maxim,modesel-gpios"
33*c66ec88fSEmmanuel Vadot			cannot be specified.  By default if neither this nor
34*c66ec88fSEmmanuel Vadot			"maxim,modesel-gpios" is given, the driver assumes
35*c66ec88fSEmmanuel Vadot			that modesel is pulled low (16-bit mode).
36*c66ec88fSEmmanuel Vadot - maxim,ignore-undervoltage:
37*c66ec88fSEmmanuel Vadot			Boolean whether to ignore undervoltage alarms signaled
38*c66ec88fSEmmanuel Vadot			by the "maxim,fault-gpios" or by the status byte
39*c66ec88fSEmmanuel Vadot			(in 16-bit mode).  Use this if the chips are powered
40*c66ec88fSEmmanuel Vadot			through 5VOUT instead of VCC24V, in which case they
41*c66ec88fSEmmanuel Vadot			will constantly signal undervoltage.
42*c66ec88fSEmmanuel Vadot
43*c66ec88fSEmmanuel VadotFor other required and optional properties of SPI slave nodes please refer to
44*c66ec88fSEmmanuel Vadot../spi/spi-bus.txt.
45*c66ec88fSEmmanuel Vadot
46*c66ec88fSEmmanuel VadotExample:
47*c66ec88fSEmmanuel Vadot	gpio@0 {
48*c66ec88fSEmmanuel Vadot		compatible = "maxim,max31913";
49*c66ec88fSEmmanuel Vadot		reg = <0>;
50*c66ec88fSEmmanuel Vadot		gpio-controller;
51*c66ec88fSEmmanuel Vadot		#gpio-cells = <2>;
52*c66ec88fSEmmanuel Vadot
53*c66ec88fSEmmanuel Vadot		maxim,modesel-gpios = <&gpio2 23>;
54*c66ec88fSEmmanuel Vadot		maxim,fault-gpios   = <&gpio2 24 GPIO_ACTIVE_LOW>;
55*c66ec88fSEmmanuel Vadot		maxim,db0-gpios     = <&gpio2 25>;
56*c66ec88fSEmmanuel Vadot		maxim,db1-gpios     = <&gpio2 26>;
57*c66ec88fSEmmanuel Vadot
58*c66ec88fSEmmanuel Vadot		spi-max-frequency = <25000000>;
59*c66ec88fSEmmanuel Vadot	};
60