Skip to contentSkip to conversation

ARM: at91/dt: ov2640: add hsync/vsync-active property

PATCH In review Josh Wu 2 participants 4 messages Sep 18, 2015 – Sep 21, 2015

Subsystems (2)
lore
Share & tools
lore

Josh Wu

author
#0 lore raw

PATCH 1/1 ARM: at91/dt: ov2640: add hsync/vsync-active property

On at91sam9x5ek/at91sam9m10g45ek/sama5d3xek boards, we use the parallel connection for ov2640. So we must set the hsync/vsync property (1 means active high).
Otherwise, the connection would be seen as BT.656 or BT.1120.

---

 arch/arm/boot/dts/at91sam9m10g45ek.dts | 2 ++
 arch/arm/boot/dts/at91sam9x5ek.dtsi    | 2 ++
 arch/arm/boot/dts/sama5d3xmb.dtsi      | 2 ++
 3 files changed, 6 insertions(+)
arch/arm/boot/dts/at91sam9m10g45ek.dts +2 -0
index d1ae60a..9d16ef8 100644
@@ -198,6 +198,8 @@
 					isi_0: endpoint {
 						remote-endpoint = <&ov2640_0>;
 						bus-width = <8>;
+						vsync-active = <1>;
+						hsync-active = <1>;
 					};
 				};
 			};
arch/arm/boot/dts/at91sam9x5ek.dtsi +2 -0
index d237c46..479f200 100644
@@ -66,6 +66,8 @@
 					isi_0: endpoint@0 {
 						remote-endpoint = <&ov2640_0>;
 						bus-width = <8>;
+						vsync-active = <1>;
+						hsync-active = <1>;
 					};
 				};
 			};
arch/arm/boot/dts/sama5d3xmb.dtsi +2 -0
index 83bee7a..8901042 100644
@@ -87,6 +87,8 @@
 					isi_0: endpoint {
 						remote-endpoint = <&ov2640_0>;
 						bus-width = <8>;
+						vsync-active = <1>;
+						hsync-active = <1>;
 					};
 				};
 			};
Signature · 1 line
1.9.1
#1 lore raw

Le 18/09/2015 13:28, Josh Wu a ?crit :

Quoted 6 lines

On at91sam9x5ek/at91sam9m10g45ek/sama5d3xek boards, we use the parallel connection for ov2640. So we must set the hsync/vsync property (1 means active high).
Otherwise, the connection would be seen as BT.656 or BT.1120.

Hi Josh,

Does this patch apply because of the new enhancement that you had proposed in "media: atmel-isi: parse the DT parameters for vsync/hsync/pixclock polarity" or does it apply even before? Is it a fix that applies to older kernels?

So, should I wait for the enhancements to enter media git tree or can I take them anyway?

Bye,

Quoted 47 lines

---

 arch/arm/boot/dts/at91sam9m10g45ek.dts | 2 ++
 arch/arm/boot/dts/at91sam9x5ek.dtsi    | 2 ++
 arch/arm/boot/dts/sama5d3xmb.dtsi      | 2 ++
 3 files changed, 6 insertions(+)
arch/arm/boot/dts/at91sam9m10g45ek.dts +2 -0
index d1ae60a..9d16ef8 100644
@@ -198,6 +198,8 @@
 					isi_0: endpoint {
 						remote-endpoint = <&ov2640_0>;
 						bus-width = <8>;
+						vsync-active = <1>;
+						hsync-active = <1>;
 					};
 				};
 			};
arch/arm/boot/dts/at91sam9x5ek.dtsi +2 -0
index d237c46..479f200 100644
@@ -66,6 +66,8 @@
 					isi_0: endpoint at 0 {
 						remote-endpoint = <&ov2640_0>;
 						bus-width = <8>;
+						vsync-active = <1>;
+						hsync-active = <1>;
 					};
 				};
 			};
arch/arm/boot/dts/sama5d3xmb.dtsi +2 -0
index 83bee7a..8901042 100644
@@ -87,6 +87,8 @@
 					isi_0: endpoint {
 						remote-endpoint = <&ov2640_0>;
 						bus-width = <8>;
+						vsync-active = <1>;
+						hsync-active = <1>;
 					};
 				};
 			};
Signature · 1 line
Nicolas Ferre
author
#2 lore raw

Hi, Nicolas

Quoted 6 lines · Nicolas Ferre

Le 18/09/2015 13:28, Josh Wu a ?crit :

Quoted 5 lines

On at91sam9x5ek/at91sam9m10g45ek/sama5d3xek boards, we use the parallel connection for ov2640. So we must set the hsync/vsync property (1 means active high).
Otherwise, the connection would be seen as BT.656 or BT.1120.

Quoted 7 lines
Quoted 1 line

Hi Josh,

Does this patch apply because of the new enhancement that you had proposed in "media: atmel-isi: parse the DT parameters for vsync/hsync/pixclock polarity" or does it apply even before? Is it a fix that applies to older kernels?

It's is a fix, according to the dt binding of video interface. So it should be applied before:

"media: atmel-isi: parse the DT parameters for
vsync/hsync/pixclock polarity".

it has no impact in older kernel as the driver doesn't parse that property yet.

Quoted 3 lines

So, should I wait for the enhancements to enter media git tree or can I take them anyway?

yes, you can take it without waiting for the media tree. Thanks.

Best Regards,
Josh Wu

Quoted 51 lines

Bye,

Quoted 47 lines

---

  arch/arm/boot/dts/at91sam9m10g45ek.dts | 2 ++
  arch/arm/boot/dts/at91sam9x5ek.dtsi    | 2 ++
  arch/arm/boot/dts/sama5d3xmb.dtsi      | 2 ++
  3 files changed, 6 insertions(+)
arch/arm/boot/dts/at91sam9m10g45ek.dts +2 -0
index d1ae60a..9d16ef8 100644
@@ -198,6 +198,8 @@
  					isi_0: endpoint {
  						remote-endpoint = <&ov2640_0>;
  						bus-width = <8>;
+						vsync-active = <1>;
+						hsync-active = <1>;
  					};
  				};
  			};
arch/arm/boot/dts/at91sam9x5ek.dtsi +2 -0
index d237c46..479f200 100644
@@ -66,6 +66,8 @@
  					isi_0: endpoint at 0 {
  						remote-endpoint = <&ov2640_0>;
  						bus-width = <8>;
+						vsync-active = <1>;
+						hsync-active = <1>;
  					};
  				};
  			};
arch/arm/boot/dts/sama5d3xmb.dtsi +2 -0
index 83bee7a..8901042 100644
@@ -87,6 +87,8 @@
  					isi_0: endpoint {
  						remote-endpoint = <&ov2640_0>;
  						bus-width = <8>;
+						vsync-active = <1>;
+						hsync-active = <1>;
  					};
  				};
  			};
Acked-by
#3 lore raw

Le 21/09/2015 03:19, Josh Wu a ?crit :

Quoted 23 lines

Hi, Nicolas

Quoted 6 lines · Nicolas Ferre

Le 18/09/2015 13:28, Josh Wu a ?crit :

Quoted 5 lines

On at91sam9x5ek/at91sam9m10g45ek/sama5d3xek boards, we use the parallel connection for ov2640. So we must set the hsync/vsync property (1 means active high).
Otherwise, the connection would be seen as BT.656 or BT.1120.

Quoted 7 lines
Quoted 1 line

Hi Josh,

Does this patch apply because of the new enhancement that you had proposed in "media: atmel-isi: parse the DT parameters for vsync/hsync/pixclock polarity" or does it apply even before? Is it a fix that applies to older kernels?

It's is a fix, according to the dt binding of video interface. So it should be applied before:

"media: atmel-isi: parse the DT parameters for
vsync/hsync/pixclock polarity".

Quoted 8 lines

it has no impact in older kernel as the driver doesn't parse that property yet.

Quoted 3 lines

So, should I wait for the enhancements to enter media git tree or can I take them anyway?

yes, you can take it without waiting for the media tree. Thanks.

Fair enough.

Thanks for the information. Bye,

Quoted 56 lines

Best Regards,
Josh Wu

Quoted 51 lines

Bye,

Quoted 47 lines

---

  arch/arm/boot/dts/at91sam9m10g45ek.dts | 2 ++
  arch/arm/boot/dts/at91sam9x5ek.dtsi    | 2 ++
  arch/arm/boot/dts/sama5d3xmb.dtsi      | 2 ++
  3 files changed, 6 insertions(+)
arch/arm/boot/dts/at91sam9m10g45ek.dts +2 -0
index d1ae60a..9d16ef8 100644
@@ -198,6 +198,8 @@
  					isi_0: endpoint {
  						remote-endpoint = <&ov2640_0>;
  						bus-width = <8>;
+						vsync-active = <1>;
+						hsync-active = <1>;
  					};
  				};
  			};
arch/arm/boot/dts/at91sam9x5ek.dtsi +2 -0
index d237c46..479f200 100644
@@ -66,6 +66,8 @@
  					isi_0: endpoint at 0 {
  						remote-endpoint = <&ov2640_0>;
  						bus-width = <8>;
+						vsync-active = <1>;
+						hsync-active = <1>;
  					};
  				};
  			};
arch/arm/boot/dts/sama5d3xmb.dtsi +2 -0
index 83bee7a..8901042 100644
@@ -87,6 +87,8 @@
  					isi_0: endpoint {
  						remote-endpoint = <&ov2640_0>;
  						bus-width = <8>;
+						vsync-active = <1>;
+						hsync-active = <1>;
  					};
  				};
  			};
Signature · 1 line
Nicolas Ferre