Lines Matching refs:pins
103 * @offset: offset base of pins
104 * @npins: number pins with the same mux value of gpio function
121 * support for registering pins individually in the pinctrl
166 * @pins: physical pins on the SoC
199 struct pcs_data pins;
615 const unsigned *pins;
619 ret = pinctrl_generic_get_group_pins(pctldev, group, &pins, &npins);
623 if (pcs_pinconf_get(pctldev, pins[i], config))
625 /* configs do not match between two pins */
637 const unsigned *pins;
641 ret = pinctrl_generic_get_group_pins(pctldev, group, &pins, &npins);
645 if (pcs_pinconf_set(pctldev, pins[i], configs, num_configs))
690 i = pcs->pins.cur;
692 dev_err(pcs->dev, "too many pins, max %i\n",
709 pin = &pcs->pins.pa[i];
711 pcs->pins.cur++;
717 * pcs_allocate_pin_table() - adds all the pins for the pinctrl driver
738 dev_dbg(pcs->dev, "allocating %i pins\n", nr_pins);
739 pcs->pins.pa = devm_kcalloc(pcs->dev,
740 nr_pins, sizeof(*pcs->pins.pa),
742 if (!pcs->pins.pa)
745 pcs->desc.pins = pcs->pins.pa;
755 dev_err(pcs->dev, "error adding pins: %i\n", res);
812 * Note that this is OK as long as the pins are in a static array.
990 * a large number of pins. This driver just sets what is specified for the board
994 * If you are concerned about the boot time, set up the static pins in
995 * the bootloader, and only set up selected pins as device tree entries.
1003 const char *name = "pinctrl-single,pins";
1005 int rows, *pins, found = 0, res = -ENOMEM, i, fsel, gsel;
1018 pins = devm_kcalloc(pcs->dev, rows, sizeof(*pins), GFP_KERNEL);
1019 if (!pins)
1059 pins[found++] = pin;
1071 gsel = pinctrl_generic_add_group(pcs->pctl, np->name, pins, found, pcs);
1103 devm_kfree(pcs->dev, pins);
1119 int rows, *pins, found = 0, res = -ENOMEM, i, fsel;
1142 pins = devm_kzalloc(pcs->dev,
1143 array3_size(rows, npins_in_row, sizeof(*pins)),
1145 if (!pins)
1173 /* Parse pins in each row from LSB */
1208 pins[found++] = pin + pin_num_from_lsb;
1221 res = pinctrl_generic_add_group(pcs->pctl, np->name, pins, found, pcs);
1238 devm_kfree(pcs->dev, pins);
1279 dev_err(pcs->dev, "no pins entries for %pOFn\n",
1287 dev_err(pcs->dev, "no pins entries for %pOFn\n",
1918 dev_info(pcs->dev, "%i pins, size %u\n", pcs->desc.npins, pcs->size);