Lines Matching refs:pins
38 struct gpio_desc *pins[PIN_NUM];
46 if (hd->pins[PIN_CTRL_BL])
47 gpiod_set_value_cansleep(hd->pins[PIN_CTRL_BL], on);
55 gpiod_set_value_cansleep(hd->pins[PIN_CTRL_E], 1);
60 gpiod_set_value_cansleep(hd->pins[PIN_CTRL_E], 0);
71 n = hd->pins[PIN_CTRL_RW] ? 10 : 9;
74 gpiod_set_array_value_cansleep(n, &hd->pins[PIN_DATA0], NULL, values);
88 n = hd->pins[PIN_CTRL_RW] ? 6 : 5;
91 gpiod_set_array_value_cansleep(n, &hd->pins[PIN_DATA4], NULL, values);
100 gpiod_set_array_value_cansleep(n, &hd->pins[PIN_DATA4], NULL, values);
164 n = hd->pins[PIN_CTRL_RW] ? 6 : 5;
167 gpiod_set_array_value_cansleep(n, &hd->pins[PIN_DATA4], NULL, values);
209 /* Required pins */
240 hd->pins[base + i] = devm_gpiod_get_index(dev, "data", i,
242 if (IS_ERR(hd->pins[base + i])) {
243 ret = PTR_ERR(hd->pins[base + i]);
248 hd->pins[PIN_CTRL_E] = devm_gpiod_get(dev, "enable", GPIOD_OUT_LOW);
249 if (IS_ERR(hd->pins[PIN_CTRL_E])) {
250 ret = PTR_ERR(hd->pins[PIN_CTRL_E]);
254 hd->pins[PIN_CTRL_RS] = devm_gpiod_get(dev, "rs", GPIOD_OUT_HIGH);
255 if (IS_ERR(hd->pins[PIN_CTRL_RS])) {
256 ret = PTR_ERR(hd->pins[PIN_CTRL_RS]);
260 /* Optional pins */
261 hd->pins[PIN_CTRL_RW] = devm_gpiod_get_optional(dev, "rw",
263 if (IS_ERR(hd->pins[PIN_CTRL_RW])) {
264 ret = PTR_ERR(hd->pins[PIN_CTRL_RW]);
268 hd->pins[PIN_CTRL_BL] = devm_gpiod_get_optional(dev, "backlight",
270 if (IS_ERR(hd->pins[PIN_CTRL_BL])) {
271 ret = PTR_ERR(hd->pins[PIN_CTRL_BL]);