* [PATCH 1/2] ARM: dts: imx51-babbage: Fix the DVI output description
@ 2019-12-12 17:17 Fabio Estevam
2019-12-12 17:17 ` [PATCH 2/2] ARM: imx_v6_v7_defconfig: Select the TFP410 driver Fabio Estevam
2019-12-12 19:45 ` [PATCH 1/2] ARM: dts: imx51-babbage: Fix the DVI output description Fabio Estevam
0 siblings, 2 replies; 3+ messages in thread
From: Fabio Estevam @ 2019-12-12 17:17 UTC (permalink / raw)
To: shawnguo
Cc: kernel, linux-imx, devicetree, robh+dt, linux-arm-kernel, Fabio Estevam
imx51-babbage has a TFP410 chip that receives 24-bit RGB parallel
input and convert it to DVI.
Fix the device tree description to reflect the real hardware.
Signed-off-by: Fabio Estevam <festevam@gmail.com>
---
arch/arm/boot/dts/imx51-babbage.dts | 64 ++++++++++++++++++++++-------
1 file changed, 49 insertions(+), 15 deletions(-)
diff --git a/arch/arm/boot/dts/imx51-babbage.dts b/arch/arm/boot/dts/imx51-babbage.dts
index ed6a3ce874b2..1f05afa7579c 100644
--- a/arch/arm/boot/dts/imx51-babbage.dts
+++ b/arch/arm/boot/dts/imx51-babbage.dts
@@ -58,29 +58,27 @@
display1: disp1 {
compatible = "fsl,imx-parallel-display";
+ #address-cells = <1>;
+ #size-cells = <0>;
interface-pix-fmt = "rgb24";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_ipu_disp1>;
- display-timings {
- native-mode = <&timing0>;
- timing0: dvi {
- clock-frequency = <65000000>;
- hactive = <1024>;
- vactive = <768>;
- hback-porch = <220>;
- hfront-porch = <40>;
- vback-porch = <21>;
- vfront-porch = <7>;
- hsync-len = <60>;
- vsync-len = <10>;
- };
- };
- port {
+ port@0 {
+ reg = <0>;
+
display0_in: endpoint {
remote-endpoint = <&ipu_di0_disp1>;
};
};
+
+ port@1 {
+ reg = <1>;
+
+ parallel_display_out: endpoint {
+ remote-endpoint = <&tfp410_in>;
+ };
+ };
};
display2: disp2 {
@@ -115,6 +113,31 @@
};
};
+ encoder {
+ compatible = "ti,tfp410";
+
+ ports {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ port@0 {
+ reg = <0>;
+
+ tfp410_in: endpoint {
+ remote-endpoint = <¶llel_display_out>;
+ };
+ };
+
+ port@1 {
+ reg = <1>;
+
+ tfp410_out: endpoint {
+ remote-endpoint = <&hdmi_connector_in>;
+ };
+ };
+ };
+ };
+
gpio-keys {
compatible = "gpio-keys";
pinctrl-names = "default";
@@ -128,6 +151,17 @@
};
};
+ hdmi-connector {
+ compatible = "hdmi-connector";
+ type = "a";
+
+ port {
+ hdmi_connector_in: endpoint {
+ remote-endpoint = <&tfp410_out>;
+ };
+ };
+ };
+
leds {
compatible = "gpio-leds";
pinctrl-names = "default";
--
2.17.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH 2/2] ARM: imx_v6_v7_defconfig: Select the TFP410 driver
2019-12-12 17:17 [PATCH 1/2] ARM: dts: imx51-babbage: Fix the DVI output description Fabio Estevam
@ 2019-12-12 17:17 ` Fabio Estevam
2019-12-12 19:45 ` [PATCH 1/2] ARM: dts: imx51-babbage: Fix the DVI output description Fabio Estevam
1 sibling, 0 replies; 3+ messages in thread
From: Fabio Estevam @ 2019-12-12 17:17 UTC (permalink / raw)
To: shawnguo
Cc: kernel, linux-imx, devicetree, robh+dt, linux-arm-kernel, Fabio Estevam
Some boards like imx51-babbage, imx53-cx9020 and imx6q-utilite-pro
have a TFP410 DVI bridge chip.
Select its driver by default.
Signed-off-by: Fabio Estevam <festevam@gmail.com>
---
arch/arm/configs/imx_v6_v7_defconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm/configs/imx_v6_v7_defconfig b/arch/arm/configs/imx_v6_v7_defconfig
index d5f31e436032..e1a219573966 100644
--- a/arch/arm/configs/imx_v6_v7_defconfig
+++ b/arch/arm/configs/imx_v6_v7_defconfig
@@ -283,6 +283,7 @@ CONFIG_DRM_MSM=y
CONFIG_DRM_PANEL_LVDS=y
CONFIG_DRM_PANEL_SIMPLE=y
CONFIG_DRM_PANEL_SEIKO_43WVF1G=y
+CONFIG_DRM_TI_TFP410=y
CONFIG_DRM_DW_HDMI_AHB_AUDIO=m
CONFIG_DRM_DW_HDMI_CEC=y
CONFIG_DRM_IMX=y
--
2.17.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 1/2] ARM: dts: imx51-babbage: Fix the DVI output description
2019-12-12 17:17 [PATCH 1/2] ARM: dts: imx51-babbage: Fix the DVI output description Fabio Estevam
2019-12-12 17:17 ` [PATCH 2/2] ARM: imx_v6_v7_defconfig: Select the TFP410 driver Fabio Estevam
@ 2019-12-12 19:45 ` Fabio Estevam
1 sibling, 0 replies; 3+ messages in thread
From: Fabio Estevam @ 2019-12-12 19:45 UTC (permalink / raw)
To: Shawn Guo
Cc: Sascha Hauer, NXP Linux Team,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
Rob Herring,
moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE
On Thu, Dec 12, 2019 at 2:17 PM Fabio Estevam <festevam@gmail.com> wrote:
> + hdmi-connector {
> + compatible = "hdmi-connector";
This should be "dvi-connector" instead.
I will respin this patch.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-12-12 19:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-12 17:17 [PATCH 1/2] ARM: dts: imx51-babbage: Fix the DVI output description Fabio Estevam
2019-12-12 17:17 ` [PATCH 2/2] ARM: imx_v6_v7_defconfig: Select the TFP410 driver Fabio Estevam
2019-12-12 19:45 ` [PATCH 1/2] ARM: dts: imx51-babbage: Fix the DVI output description Fabio Estevam
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).