Skip to contentSkip to conversation

ARM: dts: imx6qdl-sabrelite: Allow HDMI and LVDS to work simultaneously

PATCH Superseded Fabio Estevam 4 participants 8 messages Jun 29, 2015 – Jul 13, 2015

Subsystems (2)

v1 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 ARM: dts: imx6qdl-sabrelite: Allow HDMI and LVDS to work simultaneously

Currently it is not possible to have HDMI and LVDS working simultaneously, because both ports try to use PLL5.

Move the LVDS clock parent to PLL3_USB_OTG, so that HDMI and LVDS can be driven from independent sources.

With this change the LDB pixel clock goes to 68.57 MHz, which is still within the valid range for the HSD100PXN1 LVDS panel.

---
 arch/arm/boot/dts/imx6qdl-sabrelite.dtsi | 7 +++++++
 1 file changed, 7 insertions(+)
arch/arm/boot/dts/imx6qdl-sabrelite.dtsi +7 -0
index e00c44f..d87e71c 100644
@@ -148,6 +148,13 @@
 	status = "okay";
 };
 
+&clks {
+	assigned-clocks = <&clks IMX6QDL_CLK_LDB_DI0_SEL>,
+			  <&clks IMX6QDL_CLK_LDB_DI1_SEL>;
+	assigned-clock-parents = <&clks IMX6QDL_CLK_PLL3_USB_OTG>,
+				 <&clks IMX6QDL_CLK_PLL3_USB_OTG>;
+};
+
 &ecspi1 {
 	fsl,spi-num-chipselects = <1>;
 	cs-gpios = <&gpio3 19 0>;
Signature · 1 line
1.9.1
#1 lore raw

PATCH 2/3 ARM: dts: imx6qdl-nitrogen6x: Allow HDMI and LVDS to work simultaneously

Currently it is not possible to have HDMI and LVDS working simultaneously, because both ports try to use PLL5.

Move the LVDS clock parent to PLL3_USB_OTG, so that HDMI and LVDS can be driven from independent sources.

With this change the LDB pixel clock goes to 68.57 MHz, which is still within the valid range for the HSD100PXN1 LVDS panel.

---
 arch/arm/boot/dts/imx6qdl-nitrogen6x.dtsi | 7 +++++++
 1 file changed, 7 insertions(+)
arch/arm/boot/dts/imx6qdl-nitrogen6x.dtsi +7 -0
index 3af16df..1cba390 100644
@@ -149,6 +149,13 @@
 	status = "okay";
 };
 
+&clks {
+	assigned-clocks = <&clks IMX6QDL_CLK_LDB_DI0_SEL>,
+			  <&clks IMX6QDL_CLK_LDB_DI1_SEL>;
+	assigned-clock-parents = <&clks IMX6QDL_CLK_PLL3_USB_OTG>,
+				 <&clks IMX6QDL_CLK_PLL3_USB_OTG>;
+};
+
 &ecspi1 {
 	fsl,spi-num-chipselects = <1>;
 	cs-gpios = <&gpio3 19 0>;
Signature · 1 line
1.9.1
#2 lore raw

PATCH 2/3 ARM: dts: imx6qdl-nitrogen6x: Allow HDMI and LVDS to work simultaneously

Fabio, All,

Quoted 33 lines · Fabio Estevam

Currently it is not possible to have HDMI and LVDS working simultaneously, because both ports try to use PLL5.

Move the LVDS clock parent to PLL3_USB_OTG, so that HDMI and LVDS can be driven from independent sources.

With this change the LDB pixel clock goes to 68.57 MHz, which is still within the valid range for the HSD100PXN1 LVDS panel.

---
 arch/arm/boot/dts/imx6qdl-nitrogen6x.dtsi | 7 +++++++
 1 file changed, 7 insertions(+)
arch/arm/boot/dts/imx6qdl-nitrogen6x.dtsi +7 -1
index 3af16df..1cba390 100644
@@ -149,6 +149,13 @@
        status = "okay";
 };
 
+&clks {
+       assigned-clocks = <&clks IMX6QDL_CLK_LDB_DI0_SEL>,
+                         <&clks IMX6QDL_CLK_LDB_DI1_SEL>;
+       assigned-clock-parents = <&clks IMX6QDL_CLK_PLL3_USB_OTG>,
+                                <&clks IMX6QDL_CLK_PLL3_USB_OTG>;
+};
+
 &ecspi1 {
        fsl,spi-num-chipselects = <1>;
        cs-gpios = <&gpio3 19 0>;
--
Quoted 2 lines

1.9.1

Tested using linux-next 20150629 on Nitrogen6x with either Hannstar 7" or 10" + HDMI monitor.
This patch relies on previous clk-imx6q patch from Fabio:
https://patchwork.kernel.org/patch/6682561/

Regards,
Gary

#3 lore raw

PATCH 2/3 ARM: dts: imx6qdl-nitrogen6x: Allow HDMI and LVDS to work simultaneously

In reply to Fabio Estevam

Am Montag, den 29.06.2015, 13:16 -0300 schrieb Fabio Estevam:

Quoted 19 lines

Currently it is not possible to have HDMI and LVDS working simultaneously, because both ports try to use PLL5.

Move the LVDS clock parent to PLL3_USB_OTG, so that HDMI and LVDS can be driven from independent sources.

With this change the LDB pixel clock goes to 68.57 MHz, which is still within the valid range for the HSD100PXN1 LVDS panel.

---
 arch/arm/boot/dts/imx6qdl-nitrogen6x.dtsi | 7 +++++++
 1 file changed, 7 insertions(+)
arch/arm/boot/dts/imx6qdl-nitrogen6x.dtsi +0 -0
index 3af16df..1cba390 100644

arch/arm/boot/dts/imx6qdl-nitrogen6x.dtsi line 157

Quoted 9 lines
arch/arm/boot/dts/imx6qdl-nitrogen6x.dtsi +6 -0
@@ -149,6 +149,13 @@
 	status = "okay";
 };
 
+&clks {
+	assigned-clocks = <&clks IMX6QDL_CLK_LDB_DI0_SEL>,
+			  <&clks IMX6QDL_CLK_LDB_DI1_SEL>;
+	assigned-clock-parents = <&clks IMX6QDL_CLK_PLL3_USB_OTG>,
+				 <&clks IMX6QDL_CLK_PLL3_USB_OTG>;
+};

with a HannStar HSD070PWW1 7" 1280x800 panel (results in 58.93 Hz vrefresh with the default timings).

regards
Philipp

#4 lore raw

PATCH 3/3 ARM: dts: imx6qdl-sabreauto: Allow HDMI and LVDS to work simultaneously

In reply to Fabio Estevam

Currently it is not possible to have HDMI and LVDS working simultaneously, because both ports try to use PLL5.

Move the LVDS clock parent to PLL3_USB_OTG, so that HDMI and LVDS can be driven from independent sources.

With this change the LDB pixel clock goes to 68.57 MHz, which is still within the valid range for the HSD100PXN1 LVDS panel.

---
 arch/arm/boot/dts/imx6qdl-sabreauto.dtsi | 7 +++++++
 1 file changed, 7 insertions(+)
arch/arm/boot/dts/imx6qdl-sabreauto.dtsi +7 -0
index bd0707f..8acf319 100644
@@ -45,6 +45,13 @@
 	};
 };
 
+&clks {
+	assigned-clocks = <&clks IMX6QDL_CLK_LDB_DI0_SEL>,
+			  <&clks IMX6QDL_CLK_LDB_DI1_SEL>;
+	assigned-clock-parents = <&clks IMX6QDL_CLK_PLL3_USB_OTG>,
+				 <&clks IMX6QDL_CLK_PLL3_USB_OTG>;
+};
+
 &ecspi1 {
 	fsl,spi-num-chipselects = <1>;
 	cs-gpios = <&gpio3 19 0>;
Signature · 1 line
1.9.1
#5 lore raw

PATCH 1/3 ARM: dts: imx6qdl-sabrelite: Allow HDMI and LVDS to work simultaneously

In reply to Fabio Estevam

Fabio, all,

Quoted 33 lines · Fabio Estevam

Currently it is not possible to have HDMI and LVDS working simultaneously, because both ports try to use PLL5.

Move the LVDS clock parent to PLL3_USB_OTG, so that HDMI and LVDS can be driven from independent sources.

With this change the LDB pixel clock goes to 68.57 MHz, which is still within the valid range for the HSD100PXN1 LVDS panel.

---
 arch/arm/boot/dts/imx6qdl-sabrelite.dtsi | 7 +++++++
 1 file changed, 7 insertions(+)
arch/arm/boot/dts/imx6qdl-sabrelite.dtsi +7 -1
index e00c44f..d87e71c 100644
@@ -148,6 +148,13 @@
        status = "okay";
 };
 
+&clks {
+       assigned-clocks = <&clks IMX6QDL_CLK_LDB_DI0_SEL>,
+                         <&clks IMX6QDL_CLK_LDB_DI1_SEL>;
+       assigned-clock-parents = <&clks IMX6QDL_CLK_PLL3_USB_OTG>,
+                                <&clks IMX6QDL_CLK_PLL3_USB_OTG>;
+};
+
 &ecspi1 {
        fsl,spi-num-chipselects = <1>;
        cs-gpios = <&gpio3 19 0>;
--
Quoted 2 lines

1.9.1

Tested using linux-next 20150629 on Sabrelite with either Hannstar 7" or 10" + HDMI monitor.
This patch relies on previous clk-imx6q patch from Fabio:
https://patchwork.kernel.org/patch/6682561/

Regards,
Gary

#6 lore raw

PATCH 1/3 ARM: dts: imx6qdl-sabrelite: Allow HDMI and LVDS to work simultaneously

In reply to Fabio Estevam

Am Montag, den 29.06.2015, 13:16 -0300 schrieb Fabio Estevam:

Quoted 10 lines

Currently it is not possible to have HDMI and LVDS working simultaneously, because both ports try to use PLL5.

Move the LVDS clock parent to PLL3_USB_OTG, so that HDMI and LVDS can be driven from independent sources.

With this change the LDB pixel clock goes to 68.57 MHz, which is still within the valid range for the HSD100PXN1 LVDS panel.

All three

regards
Philipp

#7 lore raw

PATCH 1/3 ARM: dts: imx6qdl-sabrelite: Allow HDMI and LVDS to work simultaneously

In reply to Fabio Estevam
Quoted 10 lines · Fabio Estevam

Currently it is not possible to have HDMI and LVDS working simultaneously, because both ports try to use PLL5.

Move the LVDS clock parent to PLL3_USB_OTG, so that HDMI and LVDS can be driven from independent sources.

With this change the LDB pixel clock goes to 68.57 MHz, which is still within the valid range for the HSD100PXN1 LVDS panel.

Applied #1 and #2. But #3 doesn't apply to my imx/dt branch.

Shawn