1*c66ec88fSEmmanuel Vadot* GPIO Decoder DT bindings
2*c66ec88fSEmmanuel Vadot
3*c66ec88fSEmmanuel VadotRequired Properties:
4*c66ec88fSEmmanuel Vadot- compatible: should be "gpio-decoder"
5*c66ec88fSEmmanuel Vadot- gpios: a spec of gpios (at least two) to be decoded to a number with
6*c66ec88fSEmmanuel Vadot  first entry representing the MSB.
7*c66ec88fSEmmanuel Vadot
8*c66ec88fSEmmanuel VadotOptional Properties:
9*c66ec88fSEmmanuel Vadot- decoder-max-value: Maximum possible value that can be reported by
10*c66ec88fSEmmanuel Vadot  the gpios.
11*c66ec88fSEmmanuel Vadot- linux,axis: the input subsystem axis to map to (ABS_X/ABS_Y).
12*c66ec88fSEmmanuel Vadot  Defaults to 0 (ABS_X).
13*c66ec88fSEmmanuel Vadot
14*c66ec88fSEmmanuel VadotExample:
15*c66ec88fSEmmanuel Vadot	gpio-decoder0 {
16*c66ec88fSEmmanuel Vadot		compatible = "gpio-decoder";
17*c66ec88fSEmmanuel Vadot		gpios = <&pca9536 3 GPIO_ACTIVE_HIGH>,
18*c66ec88fSEmmanuel Vadot			<&pca9536 2 GPIO_ACTIVE_HIGH>,
19*c66ec88fSEmmanuel Vadot			<&pca9536 1 GPIO_ACTIVE_HIGH>,
20*c66ec88fSEmmanuel Vadot			<&pca9536 0 GPIO_ACTIVE_HIGH>;
21*c66ec88fSEmmanuel Vadot		linux,axis = <0>; /* ABS_X */
22*c66ec88fSEmmanuel Vadot		decoder-max-value = <9>;
23*c66ec88fSEmmanuel Vadot	};
24