Lines Matching refs:pins
104 * @offset: offset base of pins
105 * @npins: number pins with the same mux value of gpio function
122 * support for registering pins individually in the pinctrl
167 * @pins: physical pins on the SoC
200 struct pcs_data pins;
614 const unsigned *pins;
618 ret = pinctrl_generic_get_group_pins(pctldev, group, &pins, &npins);
622 if (pcs_pinconf_get(pctldev, pins[i], config))
624 /* configs do not match between two pins */
636 const unsigned *pins;
640 ret = pinctrl_generic_get_group_pins(pctldev, group, &pins, &npins);
644 if (pcs_pinconf_set(pctldev, pins[i], configs, num_configs))
689 i = pcs->pins.cur;
691 dev_err(pcs->dev, "too many pins, max %i\n",
708 pin = &pcs->pins.pa[i];
710 pcs->pins.cur++;
716 * pcs_allocate_pin_table() - adds all the pins for the pinctrl driver
739 dev_dbg(pcs->dev, "allocating %i pins\n", nr_pins);
740 pcs->pins.pa = devm_kcalloc(pcs->dev,
741 nr_pins, sizeof(*pcs->pins.pa),
743 if (!pcs->pins.pa)
746 pcs->desc.pins = pcs->pins.pa;
756 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.
989 * a large number of pins. This driver just sets what is specified for the board
993 * If you are concerned about the boot time, set up the static pins in
994 * the bootloader, and only set up selected pins as device tree entries.
1002 const char *name = "pinctrl-single,pins";
1004 int rows, *pins, found = 0, res = -ENOMEM, i, fsel, gsel;
1017 pins = devm_kcalloc(pcs->dev, rows, sizeof(*pins), GFP_KERNEL);
1018 if (!pins)
1058 pins[found++] = pin;
1070 gsel = pinctrl_generic_add_group(pcs->pctl, np->name, pins, found, pcs);
1102 devm_kfree(pcs->dev, pins);
1118 int rows, *pins, found = 0, res = -ENOMEM, i, fsel, gsel;
1136 pins = devm_kzalloc(pcs->dev,
1137 array3_size(rows, npins_in_row, sizeof(*pins)),
1139 if (!pins)
1167 /* Parse pins in each row from LSB */
1202 pins[found++] = pin + pin_num_from_lsb;
1215 gsel = pinctrl_generic_add_group(pcs->pctl, np->name, pins, found, pcs);
1243 devm_kfree(pcs->dev, pins);
1284 dev_err(pcs->dev, "no pins entries for %pOFn\n",
1292 dev_err(pcs->dev, "no pins entries for %pOFn\n",
1923 dev_info(pcs->dev, "%i pins, size %u\n", pcs->desc.npins, pcs->size);