diff mbox

[3/4] Documentation: Add SPI example

Message ID 1487780078-18510-4-git-send-email-michael.hennerich@analog.com (mailing list archive)
State Accepted
Headers show

Commit Message

Hennerich, Michael Feb. 22, 2017, 4:14 p.m. UTC
From: Michael Hennerich <michael.hennerich@analog.com>

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
---
 .../devicetree/bindings/input/touchscreen/ad7879.txt   | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

Comments

Dmitry Torokhov Feb. 23, 2017, 8:42 a.m. UTC | #1
On Wed, Feb 22, 2017 at 05:14:37PM +0100, michael.hennerich@analog.com wrote:
> From: Michael Hennerich <michael.hennerich@analog.com>
> 
> Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>

Applied, thank you.

> ---
>  .../devicetree/bindings/input/touchscreen/ad7879.txt   | 18 ++++++++++++++++++
>  1 file changed, 18 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/input/touchscreen/ad7879.txt b/Documentation/devicetree/bindings/input/touchscreen/ad7879.txt
> index 323b609..3c8614c 100644
> --- a/Documentation/devicetree/bindings/input/touchscreen/ad7879.txt
> +++ b/Documentation/devicetree/bindings/input/touchscreen/ad7879.txt
> @@ -52,3 +52,21 @@ Example:
>  		adi,averaging = /bits/ 8 <1>;
>  		adi,conversion-interval = /bits/ 8 <255>;
>  	};
> +
> +	ad7879@1 {
> +		compatible = "adi,ad7879";
> +		spi-max-frequency = <5000000>;
> +		reg = <1>;
> +		spi-cpol;
> +		spi-cpha;
> +		gpio-controller;
> +		interrupt-parent = <&gpio1>;
> +		interrupts = <13 IRQ_TYPE_EDGE_FALLING>;
> +		touchscreen-max-pressure = <4096>;
> +		adi,resistance-plate-x = <120>;
> +		adi,first-conversion-delay = /bits/ 8 <3>;
> +		adi,acquisition-time = /bits/ 8 <1>;
> +		adi,median-filter-size = /bits/ 8 <2>;
> +		adi,averaging = /bits/ 8 <1>;
> +		adi,conversion-interval = /bits/ 8 <255>;
> +	};
> -- 
> 2.7.4
>
diff mbox

Patch

diff --git a/Documentation/devicetree/bindings/input/touchscreen/ad7879.txt b/Documentation/devicetree/bindings/input/touchscreen/ad7879.txt
index 323b609..3c8614c 100644
--- a/Documentation/devicetree/bindings/input/touchscreen/ad7879.txt
+++ b/Documentation/devicetree/bindings/input/touchscreen/ad7879.txt
@@ -52,3 +52,21 @@  Example:
 		adi,averaging = /bits/ 8 <1>;
 		adi,conversion-interval = /bits/ 8 <255>;
 	};
+
+	ad7879@1 {
+		compatible = "adi,ad7879";
+		spi-max-frequency = <5000000>;
+		reg = <1>;
+		spi-cpol;
+		spi-cpha;
+		gpio-controller;
+		interrupt-parent = <&gpio1>;
+		interrupts = <13 IRQ_TYPE_EDGE_FALLING>;
+		touchscreen-max-pressure = <4096>;
+		adi,resistance-plate-x = <120>;
+		adi,first-conversion-delay = /bits/ 8 <3>;
+		adi,acquisition-time = /bits/ 8 <1>;
+		adi,median-filter-size = /bits/ 8 <2>;
+		adi,averaging = /bits/ 8 <1>;
+		adi,conversion-interval = /bits/ 8 <255>;
+	};