Signed-off-by: Michal Suchanek <[email protected]>
---
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
--
You received this message because you are subscribed to the Google Groups
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.