From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michal Suchanek Subject: [PATCH 2/3] spidev: Add DT binding example. Date: Tue, 24 Mar 2015 11:50:53 +0100 Message-ID: References: Reply-To: hramrach-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 To: linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org, Mark Brown , Jonathan Corbet , linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-doc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Return-path: In-Reply-To: List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , List-Id: linux-spi.vger.kernel.org Signed-off-by: Michal Suchanek --- Documentation/spi/spidev | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Documentation/spi/spidev b/Documentation/spi/spidev index 3d14035..1fcd42a 100644 --- a/Documentation/spi/spidev +++ b/Documentation/spi/spidev @@ -30,6 +30,22 @@ Set up the other device characteristics (bits per word, SPI clocking, chipselect polarity, etc) as usual, so you won't always need to override them later. +A spidev example for devicetree binding in a board dts file +&spi2 { + pinctrl-names = "default"; + pinctrl-0 = <&spi2_pins_a>; + status = "okay"; + spi2_0 { + #address-cells = <1>; + #size-cells = <0>; + + compatible = "spidev"; + + reg = <0>; + spi-max-frequency = <50000000>; + }; +} + (Sysfs also supports userspace driven binding/unbinding of drivers to devices. That mechanism might be supported here in the future.) -- 2.1.4