All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hans Verkuil <hverkuil-qWit8jRvyhVmR6Xm/wNWPw@public.gmane.org>
To: linux-media-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Cc: Guennadi Liakhovetski
	<guennadi.liakhovetski-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>,
	Songjun Wu <songjun.wu-UWL1GkI3JZL3oGB3hsPCZA@public.gmane.org>,
	Sakari Ailus <sakari.ailus-X3B1VOXEql0@public.gmane.org>,
	devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	Hans Verkuil
	<hans.verkuil-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org>
Subject: [PATCHv2 08/16] atmel-isi: document device tree bindings
Date: Mon, 30 Jan 2017 15:06:20 +0100	[thread overview]
Message-ID: <20170130140628.18088-9-hverkuil@xs4all.nl> (raw)
In-Reply-To: <20170130140628.18088-1-hverkuil-qWit8jRvyhVmR6Xm/wNWPw@public.gmane.org>

From: Hans Verkuil <hans.verkuil-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org>

Document the device tree bindings for this driver.

Mostly copied from the atmel-isc bindings.

Signed-off-by: Hans Verkuil <hans.verkuil-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org>
---
 .../devicetree/bindings/media/atmel-isi.txt        | 91 +++++++++++++---------
 1 file changed, 56 insertions(+), 35 deletions(-)

diff --git a/Documentation/devicetree/bindings/media/atmel-isi.txt b/Documentation/devicetree/bindings/media/atmel-isi.txt
index 251f008..d1934b4 100644
--- a/Documentation/devicetree/bindings/media/atmel-isi.txt
+++ b/Documentation/devicetree/bindings/media/atmel-isi.txt
@@ -1,51 +1,72 @@
-Atmel Image Sensor Interface (ISI) SoC Camera Subsystem
-----------------------------------------------
+Atmel Image Sensor Interface (ISI)
+----------------------------------
 
-Required properties:
-- compatible: must be "atmel,at91sam9g45-isi"
-- reg: physical base address and length of the registers set for the device;
-- interrupts: should contain IRQ line for the ISI;
-- clocks: list of clock specifiers, corresponding to entries in
-          the clock-names property;
-- clock-names: must contain "isi_clk", which is the isi peripherial clock.
+Required properties for ISI:
+- compatible
+	Must be "atmel,at91sam9g45-isi".
+- reg
+	Physical base address and length of the registers set for the device.
+- interrupts
+	Should contain IRQ line for the ISI.
+- clocks
+	List of clock specifiers, corresponding to entries in
+	the clock-names property;
+	Please refer to clock-bindings.txt.
+- clock-names
+	Required elements: "isi_clk".
+- #clock-cells
+	Should be 0.
+- pinctrl-names, pinctrl-0
+	Please refer to pinctrl-bindings.txt.
 
 ISI supports a single port node with parallel bus. It should contain one
 'port' child node with child 'endpoint' node. Please refer to the bindings
 defined in Documentation/devicetree/bindings/media/video-interfaces.txt.
 
 Example:
-	isi: isi@f0034000 {
-		compatible = "atmel,at91sam9g45-isi";
-		reg = <0xf0034000 0x4000>;
-		interrupts = <37 IRQ_TYPE_LEVEL_HIGH 5>;
 
-		clocks = <&isi_clk>;
-		clock-names = "isi_clk";
+isi: isi@f0034000 {
+	compatible = "atmel,at91sam9g45-isi";
+	reg = <0xf0034000 0x4000>;
+	interrupts = <37 IRQ_TYPE_LEVEL_HIGH 5>;
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_isi_data_0_7>;
+	clocks = <&isi_clk>;
+	clock-names = "isi_clk";
+	status = "ok";
+	port {
+		#address-cells = <1>;
+		#size-cells = <0>;
+		isi_0: endpoint {
+			reg = <0>;
+			remote-endpoint = <&ov2640_0>;
+			bus-width = <8>;
+			vsync-active = <1>;
+			hsync-active = <1>;
+		};
+	};
+};
+
+i2c1: i2c@f0018000 {
+	status = "okay";
 
+	ov2640: camera@0x30 {
+		compatible = "ovti,ov2640";
+		reg = <0x30>;
 		pinctrl-names = "default";
-		pinctrl-0 = <&pinctrl_isi>;
+		pinctrl-0 = <&pinctrl_pck0_as_isi_mck &pinctrl_sensor_power &pinctrl_sensor_reset>;
+		resetb-gpios = <&pioE 11 GPIO_ACTIVE_LOW>;
+		pwdn-gpios = <&pioE 13 GPIO_ACTIVE_HIGH>;
+		clocks = <&pck0>;
+		clock-names = "xvclk";
+		assigned-clocks = <&pck0>;
+		assigned-clock-rates = <25000000>;
 
 		port {
-			#address-cells = <1>;
-			#size-cells = <0>;
-
-			isi_0: endpoint {
-				remote-endpoint = <&ov2640_0>;
+			ov2640_0: endpoint {
+				remote-endpoint = <&isi_0>;
 				bus-width = <8>;
 			};
 		};
 	};
-
-	i2c1: i2c@f0018000 {
-		ov2640: camera@0x30 {
-			compatible = "ovti,ov2640";
-			reg = <0x30>;
-
-			port {
-				ov2640_0: endpoint {
-					remote-endpoint = <&isi_0>;
-					bus-width = <8>;
-				};
-			};
-		};
-	};
+};
-- 
2.10.2

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

WARNING: multiple messages have this Message-ID (diff)
From: Hans Verkuil <hverkuil@xs4all.nl>
To: linux-media@vger.kernel.org
Cc: Guennadi Liakhovetski <guennadi.liakhovetski@intel.com>,
	Songjun Wu <songjun.wu@microchip.com>,
	Sakari Ailus <sakari.ailus@iki.fi>,
	devicetree@vger.kernel.org, Hans Verkuil <hans.verkuil@cisco.com>
Subject: [PATCHv2 08/16] atmel-isi: document device tree bindings
Date: Mon, 30 Jan 2017 15:06:20 +0100	[thread overview]
Message-ID: <20170130140628.18088-9-hverkuil@xs4all.nl> (raw)
In-Reply-To: <20170130140628.18088-1-hverkuil@xs4all.nl>

From: Hans Verkuil <hans.verkuil@cisco.com>

Document the device tree bindings for this driver.

Mostly copied from the atmel-isc bindings.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
---
 .../devicetree/bindings/media/atmel-isi.txt        | 91 +++++++++++++---------
 1 file changed, 56 insertions(+), 35 deletions(-)

diff --git a/Documentation/devicetree/bindings/media/atmel-isi.txt b/Documentation/devicetree/bindings/media/atmel-isi.txt
index 251f008..d1934b4 100644
--- a/Documentation/devicetree/bindings/media/atmel-isi.txt
+++ b/Documentation/devicetree/bindings/media/atmel-isi.txt
@@ -1,51 +1,72 @@
-Atmel Image Sensor Interface (ISI) SoC Camera Subsystem
-----------------------------------------------
+Atmel Image Sensor Interface (ISI)
+----------------------------------
 
-Required properties:
-- compatible: must be "atmel,at91sam9g45-isi"
-- reg: physical base address and length of the registers set for the device;
-- interrupts: should contain IRQ line for the ISI;
-- clocks: list of clock specifiers, corresponding to entries in
-          the clock-names property;
-- clock-names: must contain "isi_clk", which is the isi peripherial clock.
+Required properties for ISI:
+- compatible
+	Must be "atmel,at91sam9g45-isi".
+- reg
+	Physical base address and length of the registers set for the device.
+- interrupts
+	Should contain IRQ line for the ISI.
+- clocks
+	List of clock specifiers, corresponding to entries in
+	the clock-names property;
+	Please refer to clock-bindings.txt.
+- clock-names
+	Required elements: "isi_clk".
+- #clock-cells
+	Should be 0.
+- pinctrl-names, pinctrl-0
+	Please refer to pinctrl-bindings.txt.
 
 ISI supports a single port node with parallel bus. It should contain one
 'port' child node with child 'endpoint' node. Please refer to the bindings
 defined in Documentation/devicetree/bindings/media/video-interfaces.txt.
 
 Example:
-	isi: isi@f0034000 {
-		compatible = "atmel,at91sam9g45-isi";
-		reg = <0xf0034000 0x4000>;
-		interrupts = <37 IRQ_TYPE_LEVEL_HIGH 5>;
 
-		clocks = <&isi_clk>;
-		clock-names = "isi_clk";
+isi: isi@f0034000 {
+	compatible = "atmel,at91sam9g45-isi";
+	reg = <0xf0034000 0x4000>;
+	interrupts = <37 IRQ_TYPE_LEVEL_HIGH 5>;
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_isi_data_0_7>;
+	clocks = <&isi_clk>;
+	clock-names = "isi_clk";
+	status = "ok";
+	port {
+		#address-cells = <1>;
+		#size-cells = <0>;
+		isi_0: endpoint {
+			reg = <0>;
+			remote-endpoint = <&ov2640_0>;
+			bus-width = <8>;
+			vsync-active = <1>;
+			hsync-active = <1>;
+		};
+	};
+};
+
+i2c1: i2c@f0018000 {
+	status = "okay";
 
+	ov2640: camera@0x30 {
+		compatible = "ovti,ov2640";
+		reg = <0x30>;
 		pinctrl-names = "default";
-		pinctrl-0 = <&pinctrl_isi>;
+		pinctrl-0 = <&pinctrl_pck0_as_isi_mck &pinctrl_sensor_power &pinctrl_sensor_reset>;
+		resetb-gpios = <&pioE 11 GPIO_ACTIVE_LOW>;
+		pwdn-gpios = <&pioE 13 GPIO_ACTIVE_HIGH>;
+		clocks = <&pck0>;
+		clock-names = "xvclk";
+		assigned-clocks = <&pck0>;
+		assigned-clock-rates = <25000000>;
 
 		port {
-			#address-cells = <1>;
-			#size-cells = <0>;
-
-			isi_0: endpoint {
-				remote-endpoint = <&ov2640_0>;
+			ov2640_0: endpoint {
+				remote-endpoint = <&isi_0>;
 				bus-width = <8>;
 			};
 		};
 	};
-
-	i2c1: i2c@f0018000 {
-		ov2640: camera@0x30 {
-			compatible = "ovti,ov2640";
-			reg = <0x30>;
-
-			port {
-				ov2640_0: endpoint {
-					remote-endpoint = <&isi_0>;
-					bus-width = <8>;
-				};
-			};
-		};
-	};
+};
-- 
2.10.2


  parent reply	other threads:[~2017-01-30 14:06 UTC|newest]

Thread overview: 53+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-30 14:06 [PATCHv2 00/16] atmel-isi/ov7670/ov2640: convert to standalone drivers Hans Verkuil
2017-01-30 14:06 ` Hans Verkuil
2017-01-30 14:06 ` [PATCHv2 01/16] ov7670: call v4l2_async_register_subdev Hans Verkuil
2017-01-30 14:06 ` [PATCHv2 05/16] ov7670: document device tree bindings Hans Verkuil
     [not found]   ` <20170130140628.18088-6-hverkuil-qWit8jRvyhVmR6Xm/wNWPw@public.gmane.org>
2017-01-31  6:56     ` Sakari Ailus
2017-01-31  6:56       ` Sakari Ailus
2017-02-01 16:40   ` Rob Herring
2017-01-30 14:06 ` [PATCHv2 09/16] ov2640: convert from soc-camera to a standard subdev sensor driver Hans Verkuil
     [not found] ` <20170130140628.18088-1-hverkuil-qWit8jRvyhVmR6Xm/wNWPw@public.gmane.org>
2017-01-30 14:06   ` [PATCHv2 02/16] ov7670: fix g/s_parm Hans Verkuil
2017-01-30 14:06     ` Hans Verkuil
2017-01-30 14:06   ` [PATCHv2 03/16] ov7670: get xclk Hans Verkuil
2017-01-30 14:06     ` Hans Verkuil
2017-01-30 14:06   ` [PATCHv2 04/16] ov7670: add devicetree support Hans Verkuil
2017-01-30 14:06     ` Hans Verkuil
     [not found]     ` <20170130140628.18088-5-hverkuil-qWit8jRvyhVmR6Xm/wNWPw@public.gmane.org>
2017-01-31  6:53       ` Sakari Ailus
2017-01-31  6:53         ` Sakari Ailus
2017-01-30 14:06   ` [PATCHv2 06/16] atmel-isi: remove dependency of the soc-camera framework Hans Verkuil
2017-01-30 14:06     ` Hans Verkuil
2017-01-30 14:06   ` [PATCHv2 07/16] atmel-isi: move out of soc_camera to atmel Hans Verkuil
2017-01-30 14:06     ` Hans Verkuil
2017-01-30 14:06   ` Hans Verkuil [this message]
2017-01-30 14:06     ` [PATCHv2 08/16] atmel-isi: document device tree bindings Hans Verkuil
     [not found]     ` <20170130140628.18088-9-hverkuil-qWit8jRvyhVmR6Xm/wNWPw@public.gmane.org>
2017-01-31  7:30       ` Sakari Ailus
2017-01-31  7:30         ` Sakari Ailus
2017-02-06 11:46         ` Hans Verkuil
2017-02-01 16:50       ` Rob Herring
2017-02-01 16:50         ` Rob Herring
2017-02-02  7:05         ` Sakari Ailus
2017-02-06 21:39           ` Rob Herring
2017-02-06 12:20         ` Hans Verkuil
2017-02-06 12:20           ` Hans Verkuil
     [not found]           ` <00bc695f-d412-7796-93a9-8d67a8f66370-qWit8jRvyhVmR6Xm/wNWPw@public.gmane.org>
2017-02-06 21:31             ` Rob Herring
2017-02-06 21:31               ` Rob Herring
2017-01-30 14:06   ` [PATCHv2 10/16] ov2640: enable clock and fix power/reset Hans Verkuil
2017-01-30 14:06     ` Hans Verkuil
     [not found]     ` <20170130140628.18088-11-hverkuil-qWit8jRvyhVmR6Xm/wNWPw@public.gmane.org>
2017-01-31 10:20       ` Sakari Ailus
2017-01-31 10:20         ` Sakari Ailus
     [not found]         ` <20170131102020.GT7139-S+BSfZ9RZZmRSg0ZkenSGLdO1Tsj/99ntUK59QYPAWc@public.gmane.org>
2017-02-06 12:02           ` Hans Verkuil
2017-02-06 12:02             ` Hans Verkuil
2017-01-30 14:06   ` [PATCHv2 11/16] ov2640: allow use inside em28xx Hans Verkuil
2017-01-30 14:06     ` Hans Verkuil
2017-01-30 14:06   ` [PATCHv2 12/16] ov2640: add MC support Hans Verkuil
2017-01-30 14:06     ` Hans Verkuil
2017-01-30 14:06   ` [PATCHv2 13/16] ov2640: update bindings Hans Verkuil
2017-01-30 14:06     ` Hans Verkuil
     [not found]     ` <20170130140628.18088-14-hverkuil-qWit8jRvyhVmR6Xm/wNWPw@public.gmane.org>
2017-02-01 16:58       ` Rob Herring
2017-02-01 16:58         ` Rob Herring
2017-01-30 14:06   ` [PATCHv2 14/16] em28xx: drop last soc_camera link Hans Verkuil
2017-01-30 14:06     ` Hans Verkuil
2017-01-30 14:06   ` [PATCHv2 15/16] sama5d3 dts: enable atmel-isi Hans Verkuil
2017-01-30 14:06     ` Hans Verkuil
2017-01-30 14:06   ` [PATCHv2 16/16] at91-sama5d3_xplained.dts: select ov2640 Hans Verkuil
2017-01-30 14:06     ` Hans Verkuil

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170130140628.18088-9-hverkuil@xs4all.nl \
    --to=hverkuil-qwit8jrvyhvmr6xm/wnwpw@public.gmane.org \
    --cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=guennadi.liakhovetski-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
    --cc=hans.verkuil-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org \
    --cc=linux-media-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=sakari.ailus-X3B1VOXEql0@public.gmane.org \
    --cc=songjun.wu-UWL1GkI3JZL3oGB3hsPCZA@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.