Lines Matching +full:mux +full:- +full:gpio2
1 // SPDX-License-Identifier: GPL-2.0+
17 #include "../pinctrl-utils.h"
19 #include "pinctrl-bcm63xx.h"
42 PINCTRL_PIN(2, "gpio2"),
146 BCM_PIN_GROUP(gpio2),
200 "gpio2",
234 "gpio2",
305 #define BCM6318_MUX_FUN(n, mux) \ argument
310 .mux_val = mux, \
389 unsigned int mode, unsigned int mux) in bcm6318_rmw_mux() argument
392 regmap_update_bits(pc->regs, BCM6318_MODE_REG, BIT(pin), in bcm6318_rmw_mux()
396 regmap_update_bits(pc->regs, in bcm6318_rmw_mux()
399 mux << ((pin % 16) * 2)); in bcm6318_rmw_mux()
405 regmap_update_bits(pc->regs, bcm6318_pad_off(pin), in bcm6318_set_pad()
417 bcm6318_rmw_mux(pc, pg->pins[0], f->mode_val, f->mux_val); in bcm6318_pinctrl_set_mux()
430 /* GPIOs 0-12 use mux 0 as GPIO function */ in bcm6318_gpio_request_enable()
433 /* GPIOs 13-41 use mux 3 as GPIO function */ in bcm6318_gpio_request_enable()
473 { .compatible = "brcm,bcm6318-pinctrl", },
480 .name = "bcm6318-pinctrl",