Re: [PATCH RFC V2 3/4] pinctrl: bcm2835: activate strict mux mode

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jan 21, 2019 at 08:11:24AM +0100, Stefan Wahren wrote:
> This activates strict mode muxing for the bcm2835 pin controller,
> as the GPIO Function Select Registers do not allow GPIO and functions
> at the same time.

bcm2835_spi_setup() in spi-bcm2835.c converts a native chip select
to a gpio chip select.  So pins 7+8 and/or 35+36 may be set to
function alt0 but in reality the pins are requested and driven as
generic output gpio pins.

I'm not sure but doesn't this break in strict mode?

Thanks,

Lukas

> 
> Signed-off-by: Stefan Wahren <stefan.wahren@xxxxxxxx>
> ---
>  drivers/pinctrl/bcm/pinctrl-bcm2835.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/pinctrl/bcm/pinctrl-bcm2835.c b/drivers/pinctrl/bcm/pinctrl-bcm2835.c
> index 183d1ff..452e734 100644
> --- a/drivers/pinctrl/bcm/pinctrl-bcm2835.c
> +++ b/drivers/pinctrl/bcm/pinctrl-bcm2835.c
> @@ -894,6 +894,7 @@ static const struct pinmux_ops bcm2835_pmx_ops = {
>  	.set_mux = bcm2835_pmx_set,
>  	.gpio_disable_free = bcm2835_pmx_gpio_disable_free,
>  	.gpio_set_direction = bcm2835_pmx_gpio_set_direction,
> +	.strict = true,
>  };
>  
>  static int bcm2835_pinconf_get(struct pinctrl_dev *pctldev,
> -- 
> 2.7.4



[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux