All of lore.kernel.org
 help / color / mirror / Atom feed
From: Benoit Parrot <bparrot@ti.com>
To: Tony Lindgren <tony@atomide.com>, Tero Kristo <t-kristo@ti.com>,
	<linux-omap@vger.kernel.org>, <linux-clk@vger.kernel.org>
Cc: Rob Herring <robh+dt@kernel.org>, <devicetree@vger.kernel.org>,
	<linux-kernel@vger.kernel.org>, Benoit Parrot <bparrot@ti.com>
Subject: [Patch v4 10/10] arm64: dts: k3-am654-base-board: Add CSI2 OV5640 camera
Date: Wed, 11 Dec 2019 08:05:58 -0600	[thread overview]
Message-ID: <20191211140558.10407-11-bparrot@ti.com> (raw)
In-Reply-To: <20191211140558.10407-1-bparrot@ti.com>

Add support for the OV5640 CSI camera:
- add the OV5640 nodes
- add the CAL node linkage
- enable CAL node

Signed-off-by: Benoit Parrot <bparrot@ti.com>
---
 .../arm64/boot/dts/ti/k3-am654-base-board.dts | 32 +++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/arch/arm64/boot/dts/ti/k3-am654-base-board.dts b/arch/arm64/boot/dts/ti/k3-am654-base-board.dts
index 8a85b482ad31..f918c5804589 100644
--- a/arch/arm64/boot/dts/ti/k3-am654-base-board.dts
+++ b/arch/arm64/boot/dts/ti/k3-am654-base-board.dts
@@ -53,6 +53,12 @@
 			gpios = <&wkup_gpio0 27 GPIO_ACTIVE_LOW>;
 		};
 	};
+
+	clk_ov5640_fixed: clock {
+		compatible = "fixed-clock";
+		#clock-cells = <0>;
+		clock-frequency = <24000000>;
+	};
 };
 
 &wkup_pmx0 {
@@ -184,6 +190,23 @@
 	pinctrl-names = "default";
 	pinctrl-0 = <&main_i2c1_pins_default>;
 	clock-frequency = <400000>;
+
+	ov5640@3c {
+		compatible = "ovti,ov5640";
+		reg = <0x3c>;
+
+		clocks = <&clk_ov5640_fixed>;
+		clock-names = "xclk";
+
+		port {
+			csi2_cam0: endpoint {
+				remote-endpoint = <&csi2_phy0>;
+				clock-lanes = <0>;
+				data-lanes = <1 2>;
+			};
+		};
+	};
+
 };
 
 &main_i2c2 {
@@ -339,3 +362,12 @@
 &mailbox0_cluster11 {
 	status = "disabled";
 };
+
+&csi2_0 {
+	csi2_phy0: endpoint {
+		remote-endpoint = <&csi2_cam0>;
+		clock-lanes = <0>;
+		data-lanes = <1 2>;
+	};
+};
+
-- 
2.17.1


WARNING: multiple messages have this Message-ID (diff)
From: Benoit Parrot <bparrot@ti.com>
To: Tony Lindgren <tony@atomide.com>, Tero Kristo <t-kristo@ti.com>,
	linux-omap@vger.kernel.org, linux-clk@vger.kernel.org
Cc: Rob Herring <robh+dt@kernel.org>,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
	Benoit Parrot <bparrot@ti.com>
Subject: [Patch v4 10/10] arm64: dts: k3-am654-base-board: Add CSI2 OV5640 camera
Date: Wed, 11 Dec 2019 08:05:58 -0600	[thread overview]
Message-ID: <20191211140558.10407-11-bparrot@ti.com> (raw)
In-Reply-To: <20191211140558.10407-1-bparrot@ti.com>

Add support for the OV5640 CSI camera:
- add the OV5640 nodes
- add the CAL node linkage
- enable CAL node

Signed-off-by: Benoit Parrot <bparrot@ti.com>
---
 .../arm64/boot/dts/ti/k3-am654-base-board.dts | 32 +++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/arch/arm64/boot/dts/ti/k3-am654-base-board.dts b/arch/arm64/boot/dts/ti/k3-am654-base-board.dts
index 8a85b482ad31..f918c5804589 100644
--- a/arch/arm64/boot/dts/ti/k3-am654-base-board.dts
+++ b/arch/arm64/boot/dts/ti/k3-am654-base-board.dts
@@ -53,6 +53,12 @@
 			gpios = <&wkup_gpio0 27 GPIO_ACTIVE_LOW>;
 		};
 	};
+
+	clk_ov5640_fixed: clock {
+		compatible = "fixed-clock";
+		#clock-cells = <0>;
+		clock-frequency = <24000000>;
+	};
 };
 
 &wkup_pmx0 {
@@ -184,6 +190,23 @@
 	pinctrl-names = "default";
 	pinctrl-0 = <&main_i2c1_pins_default>;
 	clock-frequency = <400000>;
+
+	ov5640@3c {
+		compatible = "ovti,ov5640";
+		reg = <0x3c>;
+
+		clocks = <&clk_ov5640_fixed>;
+		clock-names = "xclk";
+
+		port {
+			csi2_cam0: endpoint {
+				remote-endpoint = <&csi2_phy0>;
+				clock-lanes = <0>;
+				data-lanes = <1 2>;
+			};
+		};
+	};
+
 };
 
 &main_i2c2 {
@@ -339,3 +362,12 @@
 &mailbox0_cluster11 {
 	status = "disabled";
 };
+
+&csi2_0 {
+	csi2_phy0: endpoint {
+		remote-endpoint = <&csi2_cam0>;
+		clock-lanes = <0>;
+		data-lanes = <1 2>;
+	};
+};
+
-- 
2.17.1

  parent reply	other threads:[~2019-12-11 14:02 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-11 14:05 [Patch v4 00/10] ARM: dts: dra7: add cal nodes Benoit Parrot
2019-12-11 14:05 ` Benoit Parrot
2019-12-11 14:05 ` [Patch v4 01/10] clk: ti: dra7: add cam clkctrl data Benoit Parrot
2019-12-11 14:05   ` Benoit Parrot
2019-12-30 19:58   ` Stephen Boyd
2019-12-30 19:58     ` Stephen Boyd
2020-01-21  7:32     ` Tero Kristo
2020-01-21  7:32       ` Tero Kristo
2019-12-11 14:05 ` [Patch v4 02/10] ARM: dts: dra7: add cam clkctrl node Benoit Parrot
2019-12-11 14:05   ` Benoit Parrot
2019-12-11 14:05 ` [Patch v4 03/10] ARM: OMAP: DRA7xx: Make CAM clock domain SWSUP only Benoit Parrot
2019-12-11 14:05   ` Benoit Parrot
2019-12-11 14:05 ` [Patch v4 04/10] ARM: dts: dra7-l4: Add ti-sysc node for CAM Benoit Parrot
2019-12-11 14:05   ` Benoit Parrot
2019-12-11 14:05 ` [Patch v4 05/10] ARM: dts: DRA72: Add CAL dtsi node Benoit Parrot
2019-12-11 14:05   ` Benoit Parrot
2019-12-11 14:05 ` [Patch v4 06/10] arm: dts: dra72-evm-common: Add entries for the CSI2 cameras Benoit Parrot
2019-12-11 14:05   ` Benoit Parrot
2019-12-11 14:05 ` [Patch v4 07/10] arm: dtsi: dra76x: Add CAL dtsi node Benoit Parrot
2019-12-11 14:05   ` Benoit Parrot
2019-12-11 14:05 ` [Patch v4 08/10] arm: dts: dra76-evm: Add CAL and OV5640 nodes Benoit Parrot
2019-12-11 14:05   ` Benoit Parrot
2019-12-11 14:05 ` [Patch v4 09/10] arm64: dts: k3-am65-main Add CAL node Benoit Parrot
2019-12-11 14:05   ` Benoit Parrot
2020-01-24 11:32   ` Tero Kristo
2020-01-24 11:32     ` Tero Kristo
2019-12-11 14:05 ` Benoit Parrot [this message]
2019-12-11 14:05   ` [Patch v4 10/10] arm64: dts: k3-am654-base-board: Add CSI2 OV5640 camera Benoit Parrot
2020-01-23 17:17 ` [Patch v4 00/10] ARM: dts: dra7: add cal nodes Tony Lindgren
2020-01-23 17:17   ` Tony Lindgren
2020-01-23 17:26   ` Tony Lindgren
2020-01-24  7:21     ` Tero Kristo
2020-01-24  7:21       ` Tero Kristo
2020-01-24  7:25       ` Tero Kristo
2020-01-24  7:25         ` Tero Kristo

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=20191211140558.10407-11-bparrot@ti.com \
    --to=bparrot@ti.com \
    --cc=devicetree@vger.kernel.org \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-omap@vger.kernel.org \
    --cc=robh+dt@kernel.org \
    --cc=t-kristo@ti.com \
    --cc=tony@atomide.com \
    /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.