Skip to contentSkip to conversation

ARM: dts: am437x-gp-evm: add DT nodes for ov2659 sensor

PATCH In review Lad Prabhakar 2 participants 7 messages Mar 12, 2015 – May 20, 2015 Device tree bindings

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: dts: am437x-gp-evm: add DT nodes for ov2659 sensor

From: "Lad, Prabhakar" <[email protected]>

this patch does the following:
1: adds DT node for fixed oscillator.
2: adds DT node entries for ov2659 sensor
3: adds remote-endpoint entry for VPFE.

---
Note this patch depends on
https://patchwork.kernel.org/patch/6000161/

 arch/arm/boot/dts/am437x-gp-evm.dts | 42 +++++++++++++++++++++++++++++++++++--
 1 file changed, 40 insertions(+), 2 deletions(-)
arch/arm/boot/dts/am437x-gp-evm.dts +40 -2
index f84d971..195f452 100644
@@ -106,6 +106,14 @@
 			};
 		};
 	};
+
+	/* fixed 12MHz oscillator */
+	refclk: oscillator {
+		#clock-cells = <0>;
+		compatible = "fixed-clock";
+		clock-frequency = <12000000>;
+	};
+
 };
 
 &am43xx_pinmux {
@@ -404,6 +412,21 @@
 			regulator-always-on;
 		};
 	};
+
+	ov2659 at 30 {
+		compatible = "ovti,ov2659";
+		reg = <0x30>;
+
+		clocks = <&refclk 0>;
+		clock-names = "xvclk";
+
+		port {
+			ov2659_0: endpoint {
+				remote-endpoint = <&vpfe1_ep>;
+				link-frequencies = /bits/ 64 <70000000>;
+			};
+		};
+	};
 };
 
 &i2c1 {
@@ -423,6 +446,21 @@
 		touchscreen-size-x = <1024>;
 		touchscreen-size-y = <600>;
 	};
+
+	ov2659 at 30 {
+		compatible = "ovti,ov2659";
+		reg = <0x30>;
+
+		clocks = <&refclk 0>;
+		clock-names = "xvclk";
+
+		port {
+			ov2659_1: endpoint {
+				remote-endpoint = <&vpfe0_ep>;
+				link-frequencies = /bits/ 64 <70000000>;
+			};
+		};
+	};
 };
 
 &epwmss0 {
@@ -626,7 +664,7 @@
 
 	port {
 		vpfe0_ep: endpoint {
-			/* remote-endpoint = <&sensor>; add once we have it */
+			remote-endpoint = <&ov2659_1>;
 			ti,am437x-vpfe-interface = <0>;
 			bus-width = <8>;
 			hsync-active = <0>;
@@ -643,7 +681,7 @@
 
 	port {
 		vpfe1_ep: endpoint {
-			/* remote-endpoint = <&sensor>; add once we have it */
+			remote-endpoint = <&ov2659_0>;
 			ti,am437x-vpfe-interface = <0>;
 			bus-width = <8>;
 			hsync-active = <0>;
Signature · 1 line
2.1.0
#1 lore raw
Quoted 8 lines · Lad Prabhakar

From: "Lad, Prabhakar" <[email protected]>

this patch does the following:
1: adds DT node for fixed oscillator.
2: adds DT node entries for ov2659 sensor
3: adds remote-endpoint entry for VPFE.

Applying into omap-for-v4.1/dt thanks.

Tony

Quoted 91 lines

---
Note this patch depends on
https://patchwork.kernel.org/patch/6000161/

 arch/arm/boot/dts/am437x-gp-evm.dts | 42 +++++++++++++++++++++++++++++++++++--
 1 file changed, 40 insertions(+), 2 deletions(-)
arch/arm/boot/dts/am437x-gp-evm.dts +40 -2
index f84d971..195f452 100644
@@ -106,6 +106,14 @@
 			};
 		};
 	};
+
+	/* fixed 12MHz oscillator */
+	refclk: oscillator {
+		#clock-cells = <0>;
+		compatible = "fixed-clock";
+		clock-frequency = <12000000>;
+	};
+
 };
 
 &am43xx_pinmux {
@@ -404,6 +412,21 @@
 			regulator-always-on;
 		};
 	};
+
+	ov2659 at 30 {
+		compatible = "ovti,ov2659";
+		reg = <0x30>;
+
+		clocks = <&refclk 0>;
+		clock-names = "xvclk";
+
+		port {
+			ov2659_0: endpoint {
+				remote-endpoint = <&vpfe1_ep>;
+				link-frequencies = /bits/ 64 <70000000>;
+			};
+		};
+	};
 };
 
 &i2c1 {
@@ -423,6 +446,21 @@
 		touchscreen-size-x = <1024>;
 		touchscreen-size-y = <600>;
 	};
+
+	ov2659 at 30 {
+		compatible = "ovti,ov2659";
+		reg = <0x30>;
+
+		clocks = <&refclk 0>;
+		clock-names = "xvclk";
+
+		port {
+			ov2659_1: endpoint {
+				remote-endpoint = <&vpfe0_ep>;
+				link-frequencies = /bits/ 64 <70000000>;
+			};
+		};
+	};
 };
 
 &epwmss0 {
@@ -626,7 +664,7 @@
 
 	port {
 		vpfe0_ep: endpoint {
-			/* remote-endpoint = <&sensor>; add once we have it */
+			remote-endpoint = <&ov2659_1>;
 			ti,am437x-vpfe-interface = <0>;
 			bus-width = <8>;
 			hsync-active = <0>;
@@ -643,7 +681,7 @@
 
 	port {
 		vpfe1_ep: endpoint {
-			/* remote-endpoint = <&sensor>; add once we have it */
+			remote-endpoint = <&ov2659_0>;
 			ti,am437x-vpfe-interface = <0>;
 			bus-width = <8>;
 			hsync-active = <0>;
Signature · 1 line
2.1.0
#2 lore raw

Hi Tony,

Quoted 12 lines · Tony Lindgren
Quoted 8 lines · Lad Prabhakar

From: "Lad, Prabhakar" <[email protected]>

this patch does the following:
1: adds DT node for fixed oscillator.
2: adds DT node entries for ov2659 sensor
3: adds remote-endpoint entry for VPFE.

Applying into omap-for-v4.1/dt thanks.

I would like to get this one in via media tree to avoid dependency as I am still waiting for Acks from DT maintainers for the sensor driver.

If I can get your Ack on this I'll queue it up along with sensor driver via media tree.

Cheers,
--Prabhakar Lad

Quoted 93 lines

Tony

Quoted 91 lines

---
Note this patch depends on
https://patchwork.kernel.org/patch/6000161/

 arch/arm/boot/dts/am437x-gp-evm.dts | 42 +++++++++++++++++++++++++++++++++++--
 1 file changed, 40 insertions(+), 2 deletions(-)
arch/arm/boot/dts/am437x-gp-evm.dts +40 -3
index f84d971..195f452 100644
@@ -106,6 +106,14 @@
                      };
              };
      };
+
+     /* fixed 12MHz oscillator */
+     refclk: oscillator {
+             #clock-cells = <0>;
+             compatible = "fixed-clock";
+             clock-frequency = <12000000>;
+     };
+
 };
 
 &am43xx_pinmux {
@@ -404,6 +412,21 @@
                      regulator-always-on;
              };
      };
+
+     ov2659 at 30 {
+             compatible = "ovti,ov2659";
+             reg = <0x30>;
+
+             clocks = <&refclk 0>;
+             clock-names = "xvclk";
+
+             port {
+                     ov2659_0: endpoint {
+                             remote-endpoint = <&vpfe1_ep>;
+                             link-frequencies = /bits/ 64 <70000000>;
+                     };
+             };
+     };
 };
 
 &i2c1 {
@@ -423,6 +446,21 @@
              touchscreen-size-x = <1024>;
              touchscreen-size-y = <600>;
      };
+
+     ov2659 at 30 {
+             compatible = "ovti,ov2659";
+             reg = <0x30>;
+
+             clocks = <&refclk 0>;
+             clock-names = "xvclk";
+
+             port {
+                     ov2659_1: endpoint {
+                             remote-endpoint = <&vpfe0_ep>;
+                             link-frequencies = /bits/ 64 <70000000>;
+                     };
+             };
+     };
 };
 
 &epwmss0 {
@@ -626,7 +664,7 @@
 
      port {
              vpfe0_ep: endpoint {
-                     /* remote-endpoint = <&sensor>; add once we have it */
+                     remote-endpoint = <&ov2659_1>;
                      ti,am437x-vpfe-interface = <0>;
                      bus-width = <8>;
                      hsync-active = <0>;
@@ -643,7 +681,7 @@
 
      port {
              vpfe1_ep: endpoint {
-                     /* remote-endpoint = <&sensor>; add once we have it */
+                     remote-endpoint = <&ov2659_0>;
                      ti,am437x-vpfe-interface = <0>;
                      bus-width = <8>;
                      hsync-active = <0>;
--

2.1.0

#3 lore raw
Quoted 11 lines · Lad, Prabhakar

Hi Tony,

Quoted 8 lines · Tony Lindgren
Quoted 7 lines · Lad Prabhakar

From: "Lad, Prabhakar" <[email protected]>

this patch does the following:
1: adds DT node for fixed oscillator.
2: adds DT node entries for ov2659 sensor
3: adds remote-endpoint entry for VPFE.

Quoted 7 lines
Quoted 4 lines
Quoted 1 line

Applying into omap-for-v4.1/dt thanks.

I would like to get this one in via media tree to avoid dependency as I am still waiting for Acks from DT maintainers for the sensor driver.

OK dropping it.

Quoted 2 lines

If I can get your Ack on this I'll queue it up along with sensor driver via media tree.

Sorry the chances are too big for pointless merge conflicts with these files with constant patching going on.

Please just resend this patch alone again to me later on once the driver changes are merged into Linux next and on their way to the mainline kernel.

Regards,

Tony

#4 lore raw

Hi Tony,

Quoted 25 lines · Tony Lindgren
Quoted 11 lines · Lad, Prabhakar

Hi Tony,

Quoted 8 lines · Tony Lindgren
Quoted 7 lines · Lad Prabhakar

From: "Lad, Prabhakar" <[email protected]>

this patch does the following:
1: adds DT node for fixed oscillator.
2: adds DT node entries for ov2659 sensor
3: adds remote-endpoint entry for VPFE.

Quoted 7 lines
Quoted 4 lines
Quoted 1 line

Applying into omap-for-v4.1/dt thanks.

I would like to get this one in via media tree to avoid dependency as I am still waiting for Acks from DT maintainers for the sensor driver.

OK dropping it.

Quoted 2 lines

If I can get your Ack on this I'll queue it up along with sensor driver via media tree.

Quoted 7 lines

Sorry the chances are too big for pointless merge conflicts with these files with constant patching going on.

Please just resend this patch alone again to me later on once the driver changes are merged into Linux next and on their way to the mainline kernel.

the sensor driver is now present in linux-next and the same patch applies cleanly, can you pick up the same or do you want me to resend the patch ?

Cheers,
--Prabhakar Lad

#5 lore raw
Quoted 31 lines · Prabhakar

Hi Tony,

Quoted 28 lines · Tony Lindgren
Quoted 11 lines · Lad, Prabhakar

Hi Tony,

Quoted 8 lines · Tony Lindgren
Quoted 7 lines · Lad Prabhakar

From: "Lad, Prabhakar" <[email protected]>

this patch does the following:
1: adds DT node for fixed oscillator.
2: adds DT node entries for ov2659 sensor
3: adds remote-endpoint entry for VPFE.

Quoted 7 lines
Quoted 4 lines
Quoted 1 line

Applying into omap-for-v4.1/dt thanks.

I would like to get this one in via media tree to avoid dependency as I am still waiting for Acks from DT maintainers for the sensor driver.

OK dropping it.

Quoted 2 lines

If I can get your Ack on this I'll queue it up along with sensor driver via media tree.

Sorry the chances are too big for pointless merge conflicts with these files with constant patching going on.

Quoted 8 lines
Quoted 4 lines

Please just resend this patch alone again to me later on once the driver changes are merged into Linux next and on their way to the mainline kernel.

the sensor driver is now present in linux-next and the same patch applies cleanly, can you pick up the same or do you want me to resend the patch ?

Ping...

Cheers,
--Prabhakar Lad

#6 lore raw
In reply to Tony Lindgren
Quoted 11 lines · Tony Lindgren
Quoted 8 lines · Lad Prabhakar

From: "Lad, Prabhakar" <[email protected]>

this patch does the following:
1: adds DT node for fixed oscillator.
2: adds DT node entries for ov2659 sensor
3: adds remote-endpoint entry for VPFE.

Applying into omap-for-v4.1/dt thanks.

Hmm looks like I somehow dropped this one, sorry. Applying into omap-for-v4.2/dt now thanks.

Regards,

Tony