* [PATCH V3 2/2] doc:devicetree: Add ti,dac7311 device tree bindings in documentation
[not found] <20181022210340.1136-1-charles-antoine.couret@essensium.com>
@ 2018-10-22 21:03 ` Charles-Antoine Couret
2018-10-23 15:45 ` Rob Herring
0 siblings, 1 reply; 2+ messages in thread
From: Charles-Antoine Couret @ 2018-10-22 21:03 UTC (permalink / raw)
To: linux-iio; +Cc: Charles-Antoine Couret, robh+dt, 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>
---
V1 to V3:
* Cosmetic changes
* Improve description of the patch
.../bindings/iio/dac/ti,dac7311.txt | 20 +++++++++++++++++++
1 file changed, 20 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..b681060579b4
--- /dev/null
+++ b/Documentation/devicetree/bindings/iio/dac/ti,dac7311.txt
@@ -0,0 +1,20 @@
+TI DAC7311 device tree bindings
+
+Required properties:
+
+- compatible: Must be set to "ti,dac7311", "ti,dac6311" or "ti,dac5311"
+- reg: spi chip select number for the device
+- vref-supply: The regulator supply for ADC reference voltage
+- spi-max-frequency: Max SPI frequency to use (< 50000000)
+
+Example:
+
+ spi_master {
+ dac: dac7311@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
* Re: [PATCH V3 2/2] doc:devicetree: Add ti,dac7311 device tree bindings in documentation
2018-10-22 21:03 ` [PATCH V3 2/2] doc:devicetree: Add ti,dac7311 device tree bindings in documentation Charles-Antoine Couret
@ 2018-10-23 15:45 ` Rob Herring
0 siblings, 0 replies; 2+ messages in thread
From: Rob Herring @ 2018-10-23 15:45 UTC (permalink / raw)
To: Charles-Antoine Couret; +Cc: linux-iio, mark.rutland, devicetree
On Mon, Oct 22, 2018 at 11:03:40PM +0200, Charles-Antoine Couret wrote:
> Description how to invoke ti-dac7311 driver from device tree file.
Same comments on the subject.
>
> Signed-off-by: Charles-Antoine Couret <charles-antoine.couret@essensium.com>
> ---
>
> V1 to V3:
> * Cosmetic changes
> * Improve description of the patch
>
> .../bindings/iio/dac/ti,dac7311.txt | 20 +++++++++++++++++++
> 1 file changed, 20 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..b681060579b4
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/iio/dac/ti,dac7311.txt
> @@ -0,0 +1,20 @@
> +TI DAC7311 device tree bindings
> +
> +Required properties:
> +
> +- compatible: Must be set to "ti,dac7311", "ti,dac6311" or "ti,dac5311"
Please format one per line.
> +- reg: spi chip select number for the device
> +- vref-supply: The regulator supply for ADC reference voltage
> +- spi-max-frequency: Max SPI frequency to use (< 50000000)
Same comment here.
> +
> +Example:
> +
> + spi_master {
> + dac: dac7311@0 {
Node names should be generic reflecting their class:
dac@0
> + compatible = "ti,dac7311";
> + reg = <0>; /* CS0 */
> + spi-max-frequency = <1000000>;
> + vref-supply = <&vdd_supply>;
> + };
> + };
> +
> --
> 2.19.1
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-10-23 15:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20181022210340.1136-1-charles-antoine.couret@essensium.com>
2018-10-22 21:03 ` [PATCH V3 2/2] doc:devicetree: Add ti,dac7311 device tree bindings in documentation Charles-Antoine Couret
2018-10-23 15:45 ` Rob Herring
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).