* [PATCH v4 2/2] dt-bindings: iio: dac: Add ti,dac7311 device tree bindings in documentation
[not found] <20181028162402.16182-1-charles-antoine.couret@essensium.com>
@ 2018-10-28 16:24 ` Charles-Antoine Couret
2018-10-30 19:35 ` Rob Herring
0 siblings, 1 reply; 2+ messages in thread
From: Charles-Antoine Couret @ 2018-10-28 16:24 UTC (permalink / raw)
To: linux-iio; +Cc: Charles-Antoine Couret, mark.rutland, devicetree
Description how to invoke ti-dac7311 driver from device tree file.
Signed-off-by: Charles-Antoine Couret <charles-antoine.couret@essensium.com>
---
.../bindings/iio/dac/ti,dac7311.txt | 24 +++++++++++++++++++
1 file changed, 24 insertions(+)
create mode 100644 Documentation/devicetree/bindings/iio/dac/ti,dac7311.txt
diff --git a/Documentation/devicetree/bindings/iio/dac/ti,dac7311.txt b/Documentation/devicetree/bindings/iio/dac/ti,dac7311.txt
new file mode 100644
index 000000000000..1139e3b743cd
--- /dev/null
+++ b/Documentation/devicetree/bindings/iio/dac/ti,dac7311.txt
@@ -0,0 +1,24 @@
+TI DAC7311 device tree bindings
+
+Required properties:
+- compatible: must be set to:
+ * "ti,dac7311"
+ * "ti,dac6311"
+ * "ti,dac5311"
+- reg: spi chip select number for the device
+- vref-supply: The regulator supply for ADC reference voltage
+
+Optional properties:
+- spi-max-frequency: Max SPI frequency to use
+
+Example:
+
+ spi_master {
+ dac@0 {
+ compatible = "ti,dac7311";
+ reg = <0>; /* CS0 */
+ spi-max-frequency = <1000000>;
+ vref-supply = <&vdd_supply>;
+ };
+ };
+
--
2.19.1
^ permalink raw reply related [flat|nested] 2+ messages in thread