Skip to contentSkip to conversation

ARM: dts: da850: tilcdc related DT changes

PATCH Superseded Bartosz Golaszewski 2 participants 5 messages Nov 28, 2016 – Nov 29, 2016 Device tree bindings

v2 of 7 Superseded Latest is v7 →

lore
Share & tools
lore
#0 lore raw

v2 cover ARM: dts: da850: tilcdc related DT changes

This series contains the last DT changes required for LCDC support on da850-lcdk. The first one adds the dumb-vga-dac nodes, the second limits the maximum pixel clock rate.

v1 -> v2:
- drop patch 3/3 (already merged)
- use max-pixelclock instead of max-bandwidth for display mode limiting

Bartosz Golaszewski (2):
ARM: dts: da850-lcdk: add the dumb-vga-dac node
ARM: dts: da850-lcdk: specify the maximum pixel clock rate for tilcdc

 arch/arm/boot/dts/da850-lcdk.dts | 59 ++++++++++++++++++++++++++++++++++++++++
 arch/arm/boot/dts/da850.dtsi     | 17 ++++++++++++
 2 files changed, 76 insertions(+)
Signature · 1 line
2.9.3
#1 lore raw

PATCH v2 1/2 ARM: dts: da850-lcdk: add the dumb-vga-dac node

Add the dumb-vga-dac node to the board DT together with corresponding ports and vga connector. This allows to retrieve the edid info from the display automatically.

---
 arch/arm/boot/dts/da850-lcdk.dts | 58 ++++++++++++++++++++++++++++++++++++++++
 arch/arm/boot/dts/da850.dtsi     | 17 ++++++++++++
 2 files changed, 75 insertions(+)
arch/arm/boot/dts/da850-lcdk.dts +58 -0
index 711b9ad..d864f11 100644
@@ -50,6 +50,53 @@
 			system-clock-frequency = <24576000>;
 		};
 	};
+
+	vga_bridge {
+		compatible = "dumb-vga-dac";
+		pinctrl-names = "default";
+		pinctrl-0 = <&lcd_pins>;
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		ports {
+			#address-cells = <1>;
+			#size-cells = <0>;
+
+			port at 0 {
+				#address-cells = <1>;
+				#size-cells = <0>;
+				reg = <0>;
+
+				vga_bridge_in: endpoint at 0 {
+					reg = <0>;
+					remote-endpoint = <&display_out_vga>;
+				};
+			};
+
+			port at 1 {
+				#address-cells = <1>;
+				#size-cells = <0>;
+				reg = <1>;
+
+				vga_bridge_out: endpoint at 0 {
+					reg = <0>;
+					remote-endpoint = <&vga_con_in>;
+				};
+			};
+		};
+	};
+
+	vga {
+		compatible = "vga-connector";
+
+		ddc-i2c-bus = <&i2c0>;
+
+		port {
+			vga_con_in: endpoint {
+				remote-endpoint = <&vga_bridge_out>;
+			};
+		};
+	};
 };
 
 &pmx_core {
@@ -235,3 +282,14 @@
 &memctrl {
 	status = "okay";
 };
+
+&display {
+	status = "okay";
+};
+
+&display_out {
+	display_out_vga: endpoint at 0 {
+		reg = <0>;
+		remote-endpoint = <&vga_bridge_in>;
+	};
+};
arch/arm/boot/dts/da850.dtsi +17 -0
index 4070619..5f4ba2e 100644
@@ -454,6 +454,23 @@
 			reg = <0x213000 0x1000>;
 			interrupts = <52>;
 			status = "disabled";
+
+			ports {
+				#address-cells = <1>;
+				#size-cells = <0>;
+
+				display_in: port at 0 {
+					#address-cells = <1>;
+					#size-cells = <0>;
+					reg = <0>;
+				};
+
+				display_out: port at 1 {
+					#address-cells = <1>;
+					#size-cells = <0>;
+					reg = <1>;
+				};
+			};
 		};
 	};
 	aemif: aemif at 68000000 {
Signature · 1 line
2.9.3
#2 lore raw

PATCH v2 2/2 ARM: dts: da850-lcdk: specify the maximum pixel clock rate for tilcdc

In reply to Bartosz Golaszewski

Due to memory throughput constraints any display mode for which the pixel clock rate exceeds the recommended value of 37500 KHz must be filtered out.

Specify the max-pixelclock property for the display node for da850-lcdk.

---
 arch/arm/boot/dts/da850-lcdk.dts | 1 +
 1 file changed, 1 insertion(+)
arch/arm/boot/dts/da850-lcdk.dts +1 -0
index d864f11..1283263 100644
@@ -285,6 +285,7 @@
 
 &display {
 	status = "okay";
+	max-pixelclock = <37500>;
 };
 
 &display_out {
Signature · 1 line
2.9.3
#3 lore raw

Re: [PATCH v2 2/2] ARM: dts: da850-lcdk: specify the maximum pixel clock rate for tilcdc

Quoted 3 lines · Bartosz Golaszewski

Due to memory throughput constraints any display mode for which the pixel clock rate exceeds the recommended value of 37500 KHz must be filtered out.

I think there might be more reasons than memory throughput constraints for the reasoning behind 37.5Mhz cap on pixel clock. Why not just refer to the datasheet section that places this constraint so we know its a hardware restriction.

Quoted 14 lines

Specify the max-pixelclock property for the display node for da850-lcdk.

---
 arch/arm/boot/dts/da850-lcdk.dts | 1 +
 1 file changed, 1 insertion(+)
arch/arm/boot/dts/da850-lcdk.dts +0 -0
index d864f11..1283263 100644

arch/arm/boot/dts/da850-lcdk.dts line 288

Quoted 4 lines
arch/arm/boot/dts/da850-lcdk.dts +1 -0
@@ -285,6 +285,7 @@
 
 &display {
 	status = "okay";
+	max-pixelclock = <37500>;

Should this not be in da850.dtsi since its an SoC imposed constraint? If a board needs narrower constraint, it can override it. But I guess most well designed boards will just hit the SoC constraint.

Thanks,
Sekhar
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#4 lore raw

Re: [PATCH v2 2/2] ARM: dts: da850-lcdk: specify the maximum pixel clock rate for tilcdc

2016-11-29 11:53 GMT+01:00 Sekhar Nori <[email protected]>:

Quoted 25 lines · Bartosz Golaszewski
Quoted 3 lines

Due to memory throughput constraints any display mode for which the pixel clock rate exceeds the recommended value of 37500 KHz must be filtered out.

I think there might be more reasons than memory throughput constraints for the reasoning behind 37.5Mhz cap on pixel clock. Why not just refer to the datasheet section that places this constraint so we know its a hardware restriction.

Quoted 15 lines

Specify the max-pixelclock property for the display node for da850-lcdk.

---
 arch/arm/boot/dts/da850-lcdk.dts | 1 +
 1 file changed, 1 insertion(+)
arch/arm/boot/dts/da850-lcdk.dts +0 -0
index d864f11..1283263 100644
@@ -285,6 +285,7 @@
 
Quoted 8 lines

arch/arm/boot/dts/da850-lcdk.dts line 288

Quoted 3 lines
arch/arm/boot/dts/da850-lcdk.dts +1 -0
 &display {
      status = "okay";
+     max-pixelclock = <37500>;

Should this not be in da850.dtsi since its an SoC imposed constraint? If a board needs narrower constraint, it can override it. But I guess most well designed boards will just hit the SoC constraint.

Both issues fixed in v3.

Thanks,
Bartosz Golaszewski