All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
To: Geert Uytterhoeven <geert+renesas@glider.be>,
	Magnus Damm <magnus.damm@gmail.com>,
	Rob Herring <robh+dt@kernel.org>
Cc: linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	Biju Das <biju.das.jz@bp.renesas.com>,
	Prabhakar <prabhakar.csengg@gmail.com>,
	Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Subject: [PATCH] ARM: dts: r8a7742-iwg21d-q7-dbcm-ca: Add OV7725 nodes
Date: Fri, 20 Nov 2020 15:13:43 +0000	[thread overview]
Message-ID: <20201120151343.24175-1-prabhakar.mahadev-lad.rj@bp.renesas.com> (raw)

Add the ov7725 endpoint nodes to the camera daughter board. The ov7725
sensors can be populated on I2C{0,1,2,3} buses.

By default the VIN{0,1,2,3} are tied to OV5640{0,1,2,3} endpoints
respectively in the camera DB dts hence the remote-endpoint property in
OV7725{0,1,2,3} endpoints is commented out.

Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: Biju Das <biju.das.jz@bp.renesas.com>
---
Hi All,

This patch is based on top of [1].

[1] https://git.kernel.org/pub/scm/linux/kernel/git/geert/
    renesas-devel.git/log/?h=renesas-arm-dt-for-v5.11

Cheers,
Prabhakar
---
 .../boot/dts/r8a7742-iwg21d-q7-dbcm-ca.dts    | 93 +++++++++++++++++++
 1 file changed, 93 insertions(+)

diff --git a/arch/arm/boot/dts/r8a7742-iwg21d-q7-dbcm-ca.dts b/arch/arm/boot/dts/r8a7742-iwg21d-q7-dbcm-ca.dts
index 98c3fbd89fa6..d1386bf7bdbe 100644
--- a/arch/arm/boot/dts/r8a7742-iwg21d-q7-dbcm-ca.dts
+++ b/arch/arm/boot/dts/r8a7742-iwg21d-q7-dbcm-ca.dts
@@ -108,6 +108,29 @@
 			};
 		};
 	};
+
+	ov7725@21 {
+		compatible = "ovti,ov7725";
+		reg = <0x21>;
+		clocks = <&mclk_cam1>;
+
+		port {
+			ov7725_0: endpoint {
+				bus-width = <8>;
+				bus-type = <6>;
+				/*
+				 * uncomment remote-endpoint property to
+				 * tie ov7725_0 to vin0ep also make
+				 * sure to comment/remove remote-endpoint
+				 * property from ov5640_0 endpoint and
+				 * replace remote-endpoint property in
+				 * vin0ep node with
+				 * remote-endpoint = <&ov7725_0>;
+				 */
+				/* remote-endpoint = <&vin0ep>; */
+			};
+		};
+	};
 };
 
 &i2c1 {
@@ -133,6 +156,29 @@
 			};
 		};
 	};
+
+	ov7725@21 {
+		compatible = "ovti,ov7725";
+		reg = <0x21>;
+		clocks = <&mclk_cam2>;
+
+		port {
+			ov7725_1: endpoint {
+				bus-width = <8>;
+				bus-type = <6>;
+				/*
+				 * uncomment remote-endpoint property to
+				 * tie ov7725_1 to vin1ep also make
+				 * sure to comment/remove remote-endpoint
+				 * property from ov5640_1 endpoint and
+				 * replace remote-endpoint property in
+				 * vin1ep node with
+				 * remote-endpoint = <&ov7725_1>;
+				 */
+				/* remote-endpoint = <&vin1ep>; */
+			};
+		};
+	};
 };
 
 &i2c2 {
@@ -152,6 +198,30 @@
 			};
 		};
 	};
+
+	ov7725@21 {
+		status = "disabled";
+		compatible = "ovti,ov7725";
+		reg = <0x21>;
+		clocks = <&mclk_cam3>;
+
+		port {
+			ov7725_2: endpoint {
+				bus-width = <8>;
+				bus-type = <6>;
+				/*
+				 * uncomment remote-endpoint property to
+				 * tie ov7725_2 to vin2ep also make
+				 * sure to comment/remove remote-endpoint
+				 * property from ov5640_2 endpoint and
+				 * replace remote-endpoint property in
+				 * vin2ep node with
+				 * remote-endpoint = <&ov7725_2>;
+				 */
+				/* remote-endpoint = <&vin2ep>; */
+			};
+		};
+	};
 };
 
 &i2c3 {
@@ -177,6 +247,29 @@
 			};
 		};
 	};
+
+	ov7725@21 {
+		compatible = "ovti,ov7725";
+		reg = <0x21>;
+		clocks = <&mclk_cam4>;
+
+		port {
+			ov7725_3: endpoint {
+				bus-width = <8>;
+				bus-type = <6>;
+				/*
+				 * uncomment remote-endpoint property to
+				 * tie ov7725_3 to vin3ep also make
+				 * sure to comment/remove remote-endpoint
+				 * property from ov5640_3 endpoint and
+				 * replace remote-endpoint property in
+				 * vin3ep node with
+				 * remote-endpoint = <&ov7725_3>;
+				 */
+				/* remote-endpoint = <&vin3ep>; */
+			};
+		};
+	};
 };
 
 &pfc {
-- 
2.17.1


             reply	other threads:[~2020-11-20 15:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-20 15:13 Lad Prabhakar [this message]
2020-11-24  9:04 ` [PATCH] ARM: dts: r8a7742-iwg21d-q7-dbcm-ca: Add OV7725 nodes Geert Uytterhoeven
2020-11-24 13:51   ` Lad, Prabhakar

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=20201120151343.24175-1-prabhakar.mahadev-lad.rj@bp.renesas.com \
    --to=prabhakar.mahadev-lad.rj@bp.renesas.com \
    --cc=biju.das.jz@bp.renesas.com \
    --cc=devicetree@vger.kernel.org \
    --cc=geert+renesas@glider.be \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-renesas-soc@vger.kernel.org \
    --cc=magnus.damm@gmail.com \
    --cc=prabhakar.csengg@gmail.com \
    --cc=robh+dt@kernel.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.