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