Skip to contentSkip to conversation

ARM: dts: imx: ventana LVDS fixes

PATCH New Tim Harvey 3 participants 6 messages Nov 6, 2015 – Nov 24, 2015

Subsystems (2)
lore
Share & tools
lore

Tim Harvey

author
#0 lore raw

cover ARM: dts: imx: ventana LVDS fixes

This series has a vew device-tree patches that resolves some LVDS issues with Gateworks Ventana boards.

Tim Harvey (3):
ARM: dts: imx: ventana: set GW54xx PMIC swbst regulator as always-on
ARM: dts: imx: ventana: fix GW53xx/GW54xx lvds channel
ARM: dts: imx: ventana: Allow HDMI and LVDS to work simultaneously

 arch/arm/boot/dts/imx6qdl-gw52xx.dtsi |  7 +++++++
 arch/arm/boot/dts/imx6qdl-gw53xx.dtsi |  9 ++++++++-
 arch/arm/boot/dts/imx6qdl-gw54xx.dtsi | 11 ++++++++++-
 3 files changed, 25 insertions(+), 2 deletions(-)
Signature · 1 line
1.9.1
author
#1 lore raw

PATCH 1/3 ARM: dts: imx: ventana: GW54xx PMIC swbst reg always-on

The GW54xx PMIC swbst regulator is used for LVDS power, CANbus xceiver and HDMI DDC and is enabled by the bootloader. Set the regulator to always-on so that Linux doesn't turn it off thinking its not needed.

---
 arch/arm/boot/dts/imx6qdl-gw54xx.dtsi | 2 ++
 1 file changed, 2 insertions(+)
arch/arm/boot/dts/imx6qdl-gw54xx.dtsi +2 -0
index 929e0b3..743db9f 100644
@@ -260,6 +260,8 @@
 			swbst_reg: swbst {
 				regulator-min-microvolt = <5000000>;
 				regulator-max-microvolt = <5150000>;
+				regulator-boot-on;
+				regulator-always-on;
 			};
 
 			snvs_reg: vsnvs {
Signature · 1 line
1.9.1
author
#2 lore raw

PATCH 2/3 ARM: dts: imx: ventana: fix GW53xx/GW54xx lvds channel

In reply to Tim Harvey
---
 arch/arm/boot/dts/imx6qdl-gw53xx.dtsi | 2 +-
 arch/arm/boot/dts/imx6qdl-gw54xx.dtsi | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
arch/arm/boot/dts/imx6qdl-gw53xx.dtsi +1 -1
index 7c51839..5172de0 100644
@@ -247,7 +247,7 @@
 &ldb {
 	status = "okay";
 
-	lvds-channel at 1 {
+	lvds-channel at 0 {
 		fsl,data-mapping = "spwg";
 		fsl,data-width = <18>;
 		status = "okay";
arch/arm/boot/dts/imx6qdl-gw54xx.dtsi +1 -1
index 743db9f..aad051b 100644
@@ -338,7 +338,7 @@
 &ldb {
 	status = "okay";
 
-	lvds-channel at 1 {
+	lvds-channel at 0 {
 		fsl,data-mapping = "spwg";
 		fsl,data-width = <18>;
 		status = "okay";
Signature · 1 line
1.9.1
author
#3 lore raw

PATCH 3/3 ARM: dts: imx: ventana: Allow HDMI and LVDS to work simultaneously

In reply to Tim Harvey

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 displays supported by the Ventana boards.

Cc Fabio Estevam <[email protected]>
Cc Philipp Zabel <[email protected]>
---
 arch/arm/boot/dts/imx6qdl-gw52xx.dtsi | 7 +++++++
 arch/arm/boot/dts/imx6qdl-gw53xx.dtsi | 7 +++++++
 arch/arm/boot/dts/imx6qdl-gw54xx.dtsi | 7 +++++++
 3 files changed, 21 insertions(+)
arch/arm/boot/dts/imx6qdl-gw52xx.dtsi +7 -0
index 1b66328..9709728 100644
@@ -151,6 +151,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>;
+};
+
 &fec {
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_enet>;
arch/arm/boot/dts/imx6qdl-gw53xx.dtsi +7 -0
index 5172de0..dc1cd13 100644
@@ -152,6 +152,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>;
+};
+
 &fec {
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_enet>;
arch/arm/boot/dts/imx6qdl-gw54xx.dtsi +7 -0
index aad051b..d8aa22e 100644
@@ -142,6 +142,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>;
+};
+
 &fec {
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_enet>;
Signature · 1 line
1.9.1
reviewer
#4 lore raw

PATCH 3/3 ARM: dts: imx: ventana: Allow HDMI and LVDS to work simultaneously

Quoted 6 lines · Tim Harvey

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.

Quoted 6 lines

With this change the LDB pixel clock goes to 68.57 MHz, which is still within the valid range for the displays supported by the Ventana boards.

Cc Fabio Estevam <[email protected]>
Cc Philipp Zabel <[email protected]>
Applied
#5 lore raw

cover ARM: dts: imx: ventana LVDS fixes

In reply to Tim Harvey
Quoted 4 lines · Tim Harvey

Tim Harvey (3):
ARM: dts: imx: ventana: set GW54xx PMIC swbst regulator as always-on
ARM: dts: imx: ventana: fix GW53xx/GW54xx lvds channel
ARM: dts: imx: ventana: Allow HDMI and LVDS to work simultaneously

Applied all, thanks.