Re: [PATCH 4/6] spi: bcm2835: warn about native-chip-selects being used

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

 



On 03/30/2015 01:20 PM, Martin Sperl wrote:
> 
>> On 30.03.2015, at 06:22, Mark Brown <broonie@xxxxxxxxxx> wrote:
>>>
>>> But I do not know what is the correct call to use.
>>
>> I don't know what you mean by "correct call" here, sorry.  If you're
>> talking about working out which GPIO maps to the /CS pin then can the
>> pinctrl API help?
> 
> Well - how do I change the mode of a GPIO to output (which is typically ALT0)?
> something like this:
>
>>> 			gpio_set_output(spi->gpio_cs);
> 
> I was hoping someone would have an explicit pointer...

Presumably the following DT bindings would work:

Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt

Documentation/devicetree/bindings/pinctrl/brcm,bcm2835-gpio.txt

--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [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