Lines Matching +full:input +full:- +full:polarity +full:- +full:invert
1 // SPDX-License-Identifier: GPL-2.0
68 return -1; in pca953x_reg_write()
76 return -1; in pca953x_reg_write()
94 return -1; in pca953x_reg_read()
98 return -1; in pca953x_reg_read()
114 * Set read polarity of IO pins in 'mask' to corresponding value in 'data'
124 * 0 = output, 1 = input
139 return -1; in pca953x_get_val()
153 int msb = nr_gpio - 1; in pca953x_info()
157 for (i = msb; i >= 0; i--) in pca953x_info()
160 for (i = 11 + nr_gpio; i > 0; i--) in pca953x_info()
161 printf("-"); in pca953x_info()
165 return -1; in pca953x_info()
167 for (i = msb; i >= 0; i--) in pca953x_info()
172 return -1; in pca953x_info()
173 printf("invert: "); in pca953x_info()
174 for (i = msb; i >= 0; i--) in pca953x_info()
179 return -1; in pca953x_info()
180 printf("input: "); in pca953x_info()
181 for (i = msb; i >= 0; i--) in pca953x_info()
186 return -1; in pca953x_info()
188 for (i = msb; i >= 0; i--) in pca953x_info()
198 U_BOOT_CMD_MKENT(input, 3, 0, (void *)PCA953X_CMD_INPUT, "", ""),
199 U_BOOT_CMD_MKENT(invert, 4, 0, (void *)PCA953X_CMD_INVERT, "", ""),
214 if (!c || !((argc == (c->maxargs)) || in do_pca953x()
215 (((long)c->cmd == PCA953X_CMD_DEVICE) && in do_pca953x()
216 (argc == (c->maxargs - 1))))) { in do_pca953x()
224 /* arg3 used as pin or invert value */ in do_pca953x()
228 switch ((long)c->cmd) { in do_pca953x()
282 " - show or set current device address\n"
284 " - display info for current chip\n"
286 " - set pin as output and drive low or high\n"
287 "pca953x invert pin 0|1\n"
288 " - disable/enable polarity inversion for reads\n"
289 "pca953x input pin\n"
290 " - set pin as input and read value"