linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] arm64: dts: imx8mq-evk: Add MIPI DSI support
@ 2020-09-14 14:38 Fabio Estevam
  2020-09-14 14:38 ` [PATCH 2/2] arm64: defconfig: Enable the eLCDIF and Raydium RM67191 drivers Fabio Estevam
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Fabio Estevam @ 2020-09-14 14:38 UTC (permalink / raw)
  To: shawnguo
  Cc: martin.kepplinger, agx, linux-imx, kernel, Fabio Estevam,
	linux-arm-kernel

imx8mq-evk has a MIPI DSI port that can be used to connect a Raydium
RM67191 panel.

Add support for it.

Signed-off-by: Fabio Estevam <festevam@gmail.com>
---
 arch/arm64/boot/dts/freescale/imx8mq-evk.dts | 44 ++++++++++++++++++++
 1 file changed, 44 insertions(+)

diff --git a/arch/arm64/boot/dts/freescale/imx8mq-evk.dts b/arch/arm64/boot/dts/freescale/imx8mq-evk.dts
index 7c6808814856..2418cca00bc5 100644
--- a/arch/arm64/boot/dts/freescale/imx8mq-evk.dts
+++ b/arch/arm64/boot/dts/freescale/imx8mq-evk.dts
@@ -132,6 +132,10 @@
 	};
 };
 
+&dphy {
+	status = "okay";
+};
+
 &fec1 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_fec1>;
@@ -255,6 +259,40 @@
 	};
 };
 
+&lcdif {
+	status = "okay";
+};
+
+&mipi_dsi {
+	#address-cells = <1>;
+	#size-cells = <0>;
+	status = "okay";
+
+	panel@0 {
+		pinctrl-0 = <&pinctrl_mipi_dsi>;
+		pinctrl-names = "default";
+		compatible = "raydium,rm67191";
+		reg = <0>;
+		reset-gpios = <&gpio5 6 GPIO_ACTIVE_LOW>;
+		dsi-lanes = <4>;
+
+		port {
+			panel_in: endpoint {
+				remote-endpoint = <&mipi_dsi_out>;
+			};
+		};
+	};
+
+	ports {
+		port@1 {
+			reg = <1>;
+			mipi_dsi_out: endpoint {
+				remote-endpoint = <&panel_in>;
+			};
+		};
+	};
+};
+
 &pcie0 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_pcie0>;
@@ -388,6 +426,12 @@
 		>;
 	};
 
+	pinctrl_mipi_dsi: mipidsigrp {
+		fsl,pins = <
+			MX8MQ_IOMUXC_ECSPI1_SCLK_GPIO5_IO6		0x16
+		>;
+	};
+
 	pinctrl_pcie0: pcie0grp {
 		fsl,pins = <
 			MX8MQ_IOMUXC_I2C4_SCL_PCIE1_CLKREQ_B		0x76
-- 
2.17.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 2/2] arm64: defconfig: Enable the eLCDIF and Raydium RM67191 drivers
  2020-09-14 14:38 [PATCH 1/2] arm64: dts: imx8mq-evk: Add MIPI DSI support Fabio Estevam
@ 2020-09-14 14:38 ` Fabio Estevam
  2020-09-14 14:51   ` Guido Günther
  2020-09-15  7:43 ` [PATCH 1/2] arm64: dts: imx8mq-evk: Add MIPI DSI support Guido Günther
  2020-09-22  2:32 ` Shawn Guo
  2 siblings, 1 reply; 5+ messages in thread
From: Fabio Estevam @ 2020-09-14 14:38 UTC (permalink / raw)
  To: shawnguo
  Cc: martin.kepplinger, agx, linux-imx, kernel, Fabio Estevam,
	linux-arm-kernel

Select the eLCDIF display controller and Raydium RM67191 panel drivers,
so that MIPI DSI can be functional by default on a imx8mq-evk board.

Signed-off-by: Fabio Estevam <festevam@gmail.com>
---
 arch/arm64/configs/defconfig | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
index 63003ec116ee..e5cf51108423 100644
--- a/arch/arm64/configs/defconfig
+++ b/arch/arm64/configs/defconfig
@@ -650,6 +650,7 @@ CONFIG_DRM_MSM=m
 CONFIG_DRM_TEGRA=m
 CONFIG_DRM_PANEL_LVDS=m
 CONFIG_DRM_PANEL_SIMPLE=m
+CONFIG_DRM_PANEL_RAYDIUM_RM67191=m
 CONFIG_DRM_PANEL_SITRONIX_ST7703=m
 CONFIG_DRM_PANEL_TRULY_NT35597_WQXGA=m
 CONFIG_DRM_DISPLAY_CONNECTOR=m
@@ -667,6 +668,7 @@ CONFIG_DRM_VC4=m
 CONFIG_DRM_ETNAVIV=m
 CONFIG_DRM_HISI_HIBMC=m
 CONFIG_DRM_HISI_KIRIN=m
+CONFIG_DRM_MXSFB=m
 CONFIG_DRM_MESON=m
 CONFIG_DRM_PL111=m
 CONFIG_DRM_LIMA=m
-- 
2.17.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH 2/2] arm64: defconfig: Enable the eLCDIF and Raydium RM67191 drivers
  2020-09-14 14:38 ` [PATCH 2/2] arm64: defconfig: Enable the eLCDIF and Raydium RM67191 drivers Fabio Estevam
@ 2020-09-14 14:51   ` Guido Günther
  0 siblings, 0 replies; 5+ messages in thread
From: Guido Günther @ 2020-09-14 14:51 UTC (permalink / raw)
  To: Fabio Estevam
  Cc: linux-arm-kernel, martin.kepplinger, shawnguo, linux-imx, kernel

Hi Fabio,
On Mon, Sep 14, 2020 at 11:38:47AM -0300, Fabio Estevam wrote:
> Select the eLCDIF display controller and Raydium RM67191 panel drivers,
> so that MIPI DSI can be functional by default on a imx8mq-evk board.
> 
> Signed-off-by: Fabio Estevam <festevam@gmail.com>

Reviewed-by: Guido Günther <agx@sigxcpu.org>
 -- Guido

> ---
>  arch/arm64/configs/defconfig | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
> index 63003ec116ee..e5cf51108423 100644
> --- a/arch/arm64/configs/defconfig
> +++ b/arch/arm64/configs/defconfig
> @@ -650,6 +650,7 @@ CONFIG_DRM_MSM=m
>  CONFIG_DRM_TEGRA=m
>  CONFIG_DRM_PANEL_LVDS=m
>  CONFIG_DRM_PANEL_SIMPLE=m
> +CONFIG_DRM_PANEL_RAYDIUM_RM67191=m
>  CONFIG_DRM_PANEL_SITRONIX_ST7703=m
>  CONFIG_DRM_PANEL_TRULY_NT35597_WQXGA=m
>  CONFIG_DRM_DISPLAY_CONNECTOR=m
> @@ -667,6 +668,7 @@ CONFIG_DRM_VC4=m
>  CONFIG_DRM_ETNAVIV=m
>  CONFIG_DRM_HISI_HIBMC=m
>  CONFIG_DRM_HISI_KIRIN=m
> +CONFIG_DRM_MXSFB=m
>  CONFIG_DRM_MESON=m
>  CONFIG_DRM_PL111=m
>  CONFIG_DRM_LIMA=m
> -- 
> 2.17.1
> 

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/2] arm64: dts: imx8mq-evk: Add MIPI DSI support
  2020-09-14 14:38 [PATCH 1/2] arm64: dts: imx8mq-evk: Add MIPI DSI support Fabio Estevam
  2020-09-14 14:38 ` [PATCH 2/2] arm64: defconfig: Enable the eLCDIF and Raydium RM67191 drivers Fabio Estevam
@ 2020-09-15  7:43 ` Guido Günther
  2020-09-22  2:32 ` Shawn Guo
  2 siblings, 0 replies; 5+ messages in thread
From: Guido Günther @ 2020-09-15  7:43 UTC (permalink / raw)
  To: Fabio Estevam
  Cc: linux-arm-kernel, martin.kepplinger, shawnguo, linux-imx, kernel

Hi,
On Mon, Sep 14, 2020 at 11:38:46AM -0300, Fabio Estevam wrote:
> imx8mq-evk has a MIPI DSI port that can be used to connect a Raydium
> RM67191 panel.
> 
> Add support for it.

This looks good regarding the DTS changes but i don't know if this is a
reasonable default for the EVK so i'm doing a:

Acked-by: Guido Günther <agx@sigxcpu.org> 

Cheers,
 -- Guido

> 
> Signed-off-by: Fabio Estevam <festevam@gmail.com>
> ---
>  arch/arm64/boot/dts/freescale/imx8mq-evk.dts | 44 ++++++++++++++++++++
>  1 file changed, 44 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/freescale/imx8mq-evk.dts b/arch/arm64/boot/dts/freescale/imx8mq-evk.dts
> index 7c6808814856..2418cca00bc5 100644
> --- a/arch/arm64/boot/dts/freescale/imx8mq-evk.dts
> +++ b/arch/arm64/boot/dts/freescale/imx8mq-evk.dts
> @@ -132,6 +132,10 @@
>  	};
>  };
>  
> +&dphy {
> +	status = "okay";
> +};
> +
>  &fec1 {
>  	pinctrl-names = "default";
>  	pinctrl-0 = <&pinctrl_fec1>;
> @@ -255,6 +259,40 @@
>  	};
>  };
>  
> +&lcdif {
> +	status = "okay";
> +};
> +
> +&mipi_dsi {
> +	#address-cells = <1>;
> +	#size-cells = <0>;
> +	status = "okay";
> +
> +	panel@0 {
> +		pinctrl-0 = <&pinctrl_mipi_dsi>;
> +		pinctrl-names = "default";
> +		compatible = "raydium,rm67191";
> +		reg = <0>;
> +		reset-gpios = <&gpio5 6 GPIO_ACTIVE_LOW>;
> +		dsi-lanes = <4>;
> +
> +		port {
> +			panel_in: endpoint {
> +				remote-endpoint = <&mipi_dsi_out>;
> +			};
> +		};
> +	};
> +
> +	ports {
> +		port@1 {
> +			reg = <1>;
> +			mipi_dsi_out: endpoint {
> +				remote-endpoint = <&panel_in>;
> +			};
> +		};
> +	};
> +};
> +
>  &pcie0 {
>  	pinctrl-names = "default";
>  	pinctrl-0 = <&pinctrl_pcie0>;
> @@ -388,6 +426,12 @@
>  		>;
>  	};
>  
> +	pinctrl_mipi_dsi: mipidsigrp {
> +		fsl,pins = <
> +			MX8MQ_IOMUXC_ECSPI1_SCLK_GPIO5_IO6		0x16
> +		>;
> +	};
> +
>  	pinctrl_pcie0: pcie0grp {
>  		fsl,pins = <
>  			MX8MQ_IOMUXC_I2C4_SCL_PCIE1_CLKREQ_B		0x76
> -- 
> 2.17.1
> 

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/2] arm64: dts: imx8mq-evk: Add MIPI DSI support
  2020-09-14 14:38 [PATCH 1/2] arm64: dts: imx8mq-evk: Add MIPI DSI support Fabio Estevam
  2020-09-14 14:38 ` [PATCH 2/2] arm64: defconfig: Enable the eLCDIF and Raydium RM67191 drivers Fabio Estevam
  2020-09-15  7:43 ` [PATCH 1/2] arm64: dts: imx8mq-evk: Add MIPI DSI support Guido Günther
@ 2020-09-22  2:32 ` Shawn Guo
  2 siblings, 0 replies; 5+ messages in thread
From: Shawn Guo @ 2020-09-22  2:32 UTC (permalink / raw)
  To: Fabio Estevam; +Cc: linux-arm-kernel, martin.kepplinger, agx, linux-imx, kernel

On Mon, Sep 14, 2020 at 11:38:46AM -0300, Fabio Estevam wrote:
> imx8mq-evk has a MIPI DSI port that can be used to connect a Raydium
> RM67191 panel.
> 
> Add support for it.
> 
> Signed-off-by: Fabio Estevam <festevam@gmail.com>

Applied both, thanks.

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-09-22  2:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-14 14:38 [PATCH 1/2] arm64: dts: imx8mq-evk: Add MIPI DSI support Fabio Estevam
2020-09-14 14:38 ` [PATCH 2/2] arm64: defconfig: Enable the eLCDIF and Raydium RM67191 drivers Fabio Estevam
2020-09-14 14:51   ` Guido Günther
2020-09-15  7:43 ` [PATCH 1/2] arm64: dts: imx8mq-evk: Add MIPI DSI support Guido Günther
2020-09-22  2:32 ` Shawn Guo

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).