diff mbox series

[v2,2/4] arm64: dts: imx8mq-librem5-devkit: Enable the LCD panel

Message ID f03b599160804142f738eb53d0fe8686234c4896.1597913263.git.agx@sigxcpu.org (mailing list archive)
State New, archived
Headers show
Series arm64: dts: imx8mq: Add NWL DSI host controller to Librem 5 Devkit | expand

Commit Message

Guido Günther Aug. 20, 2020, 8:50 a.m. UTC
Enable LCD panel output by adding nodes for the NWL DSI host controller,
the Rocktech panel and the eLCDIF display controller.

Signed-off-by: Guido Günther <agx@sigxcpu.org>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
---
 .../dts/freescale/imx8mq-librem5-devkit.dts   | 33 +++++++++++++++++++
 1 file changed, 33 insertions(+)

Comments

Martin Kepplinger Aug. 20, 2020, 1:58 p.m. UTC | #1
On 20.08.20 10:50, Guido Günther wrote:
> Enable LCD panel output by adding nodes for the NWL DSI host controller,
> the Rocktech panel and the eLCDIF display controller.
> 
> Signed-off-by: Guido Günther <agx@sigxcpu.org>
> Reviewed-by: Fabio Estevam <festevam@gmail.com>
> ---
>  .../dts/freescale/imx8mq-librem5-devkit.dts   | 33 +++++++++++++++++++
>  1 file changed, 33 insertions(+)
> 


Hi Guido,

Tested-by: Martin Kepplinger <martin.kepplinger@puri.sm>

thanks,
                              martin
Shawn Guo Aug. 23, 2020, 2:54 a.m. UTC | #2
On Thu, Aug 20, 2020 at 10:50:57AM +0200, Guido Günther wrote:
> Enable LCD panel output by adding nodes for the NWL DSI host controller,
> the Rocktech panel and the eLCDIF display controller.
> 
> Signed-off-by: Guido Günther <agx@sigxcpu.org>
> Reviewed-by: Fabio Estevam <festevam@gmail.com>

Applied, thanks.
diff mbox series

Patch

diff --git a/arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts b/arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts
index e7b5c595ceed7..48e22e93a7a74 100644
--- a/arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts
+++ b/arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts
@@ -830,6 +830,39 @@  MX8MQ_IOMUXC_NAND_DATA03_GPIO3_IO9	0x19 /* WWAN_RESET */
 	};
 };
 
+&lcdif {
+	status = "okay";
+};
+
+&mipi_dsi {
+	status = "okay";
+	#address-cells = <1>;
+	#size-cells = <0>;
+
+	panel@0 {
+		compatible = "rocktech,jh057n00900";
+		reg = <0>;
+		backlight = <&backlight_dsi>;
+		reset-gpios = <&gpio3 13 GPIO_ACTIVE_LOW>;
+		iovcc-supply = <&reg_1v8_p>;
+		vcc-supply = <&reg_2v8_p>;
+		port {
+			panel_in: endpoint {
+				remote-endpoint = <&mipi_dsi_out>;
+			};
+		};
+	};
+
+	ports {
+		port@1 {
+			reg = <1>;
+			mipi_dsi_out: endpoint {
+				remote-endpoint = <&panel_in>;
+			};
+		};
+	};
+};
+
 &pgc_gpu {
 	power-supply = <&buck3_reg>;
 };