Lines Matching +full:gpio10 +full:- +full:pins
1 // SPDX-License-Identifier: GPL-2.0+
17 #include "../pinctrl-utils.h"
19 #include "pinctrl-bcm63xx.h"
65 PINCTRL_PIN(10, "gpio10"),
170 BCM_PIN_GROUP(gpio10),
222 "gpio10",
279 "gpio10",
452 unsigned group, const unsigned **pins, in bcm6362_pinctrl_get_group_pins() argument
455 *pins = bcm6362_groups[group].pins; in bcm6362_pinctrl_get_group_pins()
486 unsigned int basemode = (uintptr_t)desc->drv_data; in bcm6362_set_gpio()
490 regmap_update_bits(pc->regs, BCM6362_BASEMODE_REG, basemode, 0); in bcm6362_set_gpio()
494 regmap_update_bits(pc->regs, BCM6362_MODE_REG, mask, 0); in bcm6362_set_gpio()
496 /* pins 0-23 might be muxed to led */ in bcm6362_set_gpio()
498 regmap_update_bits(pc->regs, BCM6362_LED_REG, mask, 0); in bcm6362_set_gpio()
501 regmap_update_bits(pc->regs, BCM6362_CTRL_REG, mask, mask); in bcm6362_set_gpio()
515 for (i = 0; i < pg->npins; i++) in bcm6362_pinctrl_set_mux()
516 bcm6362_set_gpio(pc, pg->pins[i]); in bcm6362_pinctrl_set_mux()
518 switch (f->reg) { in bcm6362_pinctrl_set_mux()
521 mask = BIT(pg->pins[0]); in bcm6362_pinctrl_set_mux()
522 val = BIT(pg->pins[0]); in bcm6362_pinctrl_set_mux()
526 mask = BIT(pg->pins[0]); in bcm6362_pinctrl_set_mux()
527 val = BIT(pg->pins[0]); in bcm6362_pinctrl_set_mux()
531 mask = BIT(pg->pins[0]); in bcm6362_pinctrl_set_mux()
536 mask = f->basemode_mask; in bcm6362_pinctrl_set_mux()
537 val = f->basemode_mask; in bcm6362_pinctrl_set_mux()
541 return -EINVAL; in bcm6362_pinctrl_set_mux()
544 regmap_update_bits(pc->regs, reg, mask, val); in bcm6362_pinctrl_set_mux()
582 .pins = bcm6362_pins,
592 { .compatible = "brcm,bcm6362-pinctrl", },
599 .name = "bcm6362-pinctrl",