Lines Matching defs:pins
140 * @nr_pins: number of pins in this bank
155 * @route_mask: bits describing the routing pins of per bank
182 #define PIN_BANK(id, pins, label) \
185 .nr_pins = pins, \
195 #define PIN_BANK_IOMUX_FLAGS(id, pins, label, iom0, iom1, iom2, iom3) \
198 .nr_pins = pins, \
208 #define PIN_BANK_DRV_FLAGS(id, pins, label, type0, type1, type2, type3) \
211 .nr_pins = pins, \
227 #define PIN_BANK_DRV_FLAGS_PULL_FLAGS(id, pins, label, drv0, drv1, \
232 .nr_pins = pins, \
252 #define PIN_BANK_IOMUX_DRV_FLAGS_OFFSET(id, pins, label, iom0, iom1, \
258 .nr_pins = pins, \
274 #define PIN_BANK_IOMUX_FLAGS_DRV_FLAGS_OFFSET_PULL_FLAGS(id, pins, \
282 .nr_pins = pins, \
394 * struct rockchip_pin_group: represent group of pins of a pinmux function.
396 * @pins: the pins included in this group.
397 * @npins: number of pins included in this group.
403 unsigned int *pins;
504 unsigned selector, const unsigned **pins,
512 *pins = info->groups[selector].pins;
531 * config maps for pins
565 pin_get_name(pctldev, grp->pins[i]);
868 RK_MUXROUTE_SAME(0, RK_PD0, 1, 0xa0, BIT(16 + 11)), /* non-iomuxed emmc/flash pins on flash-dqs */
869 RK_MUXROUTE_SAME(0, RK_PD0, 2, 0xa0, BIT(16 + 11) | BIT(11)), /* non-iomuxed emmc/flash pins on emmc-clk */
1244 /* The first 32 pins of the first bank are located in PMU */
1274 /* The first 32 pins of the first bank are located in PMU */
1335 /* The first 24 pins of the first bank are located in PMU */
1364 /* The first 24 pins of the first bank are located in PMU */
1478 /* The first 12 pins of the first bank are located elsewhere */
1513 /* The first 24 pins of the first bank are located in PMU */
1547 /* The first 24 pins of the first bank are located in PMU */
1646 /* The first 32 pins of the first bank are located in PMU */
1677 /* The first 32 pins of the first bank are located in PMU */
1709 /* The bank0:16 and bank1:32 pins are located in PMU */
1740 /* The bank0:16 and bank1:32 pins are located in PMU */
1797 /* The first 32 pins of the first bank are located in PMU */
2289 const unsigned int *pins = info->groups[group].pins;
2302 bank = pin_to_bank(info, pins[cnt]);
2303 ret = rockchip_set_mux(bank, pins[cnt] - bank->pin_base,
2312 rockchip_set_mux(bank, pins[cnt] - bank->pin_base, 0);
2621 * the binding format is rockchip,pins = <bank pin mux CONFIG>,
2622 * do sanity check and calculate pins number
2624 list = of_get_property(np, "rockchip,pins", &size);
2628 dev_err(info->dev, "wrong pins number or pins and configs should be by 4\n");
2634 grp->pins = devm_kcalloc(info->dev, grp->npins, sizeof(unsigned int),
2640 if (!grp->pins || !grp->data)
2652 grp->pins[j] = bank->pin_base + be32_to_cpu(*list++);
2775 ctrldesc->pins = pindesc;