Lines Matching refs:pins
37 struct gpio_desc *pins[PIN_NUM];
44 if (hd->pins[PIN_CTRL_BL])
45 gpiod_set_value_cansleep(hd->pins[PIN_CTRL_BL], on);
53 gpiod_set_value_cansleep(hd->pins[PIN_CTRL_E], 1);
58 gpiod_set_value_cansleep(hd->pins[PIN_CTRL_E], 0);
69 n = hd->pins[PIN_CTRL_RW] ? 10 : 9;
72 gpiod_set_array_value_cansleep(n, &hd->pins[PIN_DATA0], NULL, values);
86 n = hd->pins[PIN_CTRL_RW] ? 6 : 5;
89 gpiod_set_array_value_cansleep(n, &hd->pins[PIN_DATA4], NULL, values);
98 gpiod_set_array_value_cansleep(n, &hd->pins[PIN_DATA4], NULL, values);
151 n = hd->pins[PIN_CTRL_RW] ? 6 : 5;
154 gpiod_set_array_value_cansleep(n, &hd->pins[PIN_DATA4], NULL, values);
185 /* Required pins */
208 hd->pins[base + i] = devm_gpiod_get_index(dev, "data", i,
210 if (IS_ERR(hd->pins[base + i])) {
211 ret = PTR_ERR(hd->pins[base + i]);
216 hd->pins[PIN_CTRL_E] = devm_gpiod_get(dev, "enable", GPIOD_OUT_LOW);
217 if (IS_ERR(hd->pins[PIN_CTRL_E])) {
218 ret = PTR_ERR(hd->pins[PIN_CTRL_E]);
222 hd->pins[PIN_CTRL_RS] = devm_gpiod_get(dev, "rs", GPIOD_OUT_HIGH);
223 if (IS_ERR(hd->pins[PIN_CTRL_RS])) {
224 ret = PTR_ERR(hd->pins[PIN_CTRL_RS]);
228 /* Optional pins */
229 hd->pins[PIN_CTRL_RW] = devm_gpiod_get_optional(dev, "rw",
231 if (IS_ERR(hd->pins[PIN_CTRL_RW])) {
232 ret = PTR_ERR(hd->pins[PIN_CTRL_RW]);
236 hd->pins[PIN_CTRL_BL] = devm_gpiod_get_optional(dev, "backlight",
238 if (IS_ERR(hd->pins[PIN_CTRL_BL])) {
239 ret = PTR_ERR(hd->pins[PIN_CTRL_BL]);