Re: [PATCH v2 2/4] iio: ad5755: Add DT binding documentation
From: Jonathan Cameron <hidden>
Date: 2016-02-06 18:36:03
Also in:
linux-iio
On 03/02/16 14:31, Sean Nyekjaer wrote:
Signed-off-by: Sean Nyekjaer <sean.nyekjaer-rjjw5hvvQKZaa/9Udqfwiw@public.gmane.org>
Please pick up Rob's Ack in any future versions of the series (I'm sending this as mostly as a reminder to myself if this one goes in as it is!)
quoted hunk
--- Changes since v1: - none .../devicetree/bindings/iio/dac/ad5755.txt | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/dac/ad5755.txtdiff --git a/Documentation/devicetree/bindings/iio/dac/ad5755.txt b/Documentation/devicetree/bindings/iio/dac/ad5755.txt new file mode 100644 index 0000000..4c91583 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/dac/ad5755.txt@@ -0,0 +1,24 @@ +* Analog Device AD5755 IIO Multi-Channel DAC Linux Driver + +Required properties: + - compatible: Has to contain one of the following: + adi,ad5755 + adi,ad5755-1 + adi,ad5757 + adi,ad5735 + adi,ad5737 + + - reg: spi chip select number for the device + - spi-cpha or spi-cpol: is the only modes that is supported + +Recommended properties: + - spi-max-frequency: Definition as per + Documentation/devicetree/bindings/spi/spi-bus.txt + +Example: +dac@0 { + compatible = "adi,ad5755"; + reg = <0>; + spi-max-frequency = <1000000>; + spi-cpha; +};