From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Warren Subject: Re: [PATCH 4/6] spi: bcm2835: warn about native-chip-selects being used Date: Mon, 30 Mar 2015 21:21:05 -0600 Message-ID: <551A12A1.8010309@wwwdotorg.org> References: <0330B85B-A297-482B-80A9-E01F236D33D2@martin.sperl.org> <20150330042205.GB1568@sirena.org.uk> <4790EEB6-C62D-4FE0-98AE-26ADE3024B04@martin.sperl.org> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Cc: Mark Brown , lee-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org, linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-rpi-kernel To: Martin Sperl Return-path: In-Reply-To: <4790EEB6-C62D-4FE0-98AE-26ADE3024B04-TqfNSX0MhmxHKSADF0wUEw@public.gmane.org> Sender: linux-spi-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: On 03/30/2015 01:20 PM, Martin Sperl wrote: > >> On 30.03.2015, at 06:22, Mark Brown 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-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html