Skip to contentSkip to conversation

arm64: dts: imx8mq: Add eLCDIF controller

PATCH Applied Guido Günther 4 participants 6 messages Nov 25, 2019 – Dec 9, 2019

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

v2 cover arm64: dts: imx8mq: Add eLCDIF controller

With some minimal support on imx8mq we might as well add it to the DT

Changes from v1:
- Per review comments by Fabio Estevam
- Document compatible
- use lcd-controller instead of lcdif as node name
- Add Reviewed-by: from Fabio Estevam, thanks!

Guido Günther (2):
dt-bindings: mxsfb: Add compatible for iMX8MQ
arm64: dts: imx8mq: Add eLCDIF controller

 .../devicetree/bindings/display/mxsfb.txt       |  1 +
 arch/arm64/boot/dts/freescale/imx8mq.dtsi       | 17 +++++++++++++++++
 2 files changed, 18 insertions(+)
Signature · 1 line
2.23.0
#1 lore raw

PATCH v2 1/2 dt-bindings: mxsfb: Add compatible for iMX8MQ

NXP's iMX8MQ has an LCDIF as well.

---
 Documentation/devicetree/bindings/display/mxsfb.txt | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/display/mxsfb.txt +1 -0
index 472e1ea6c591..c985871c46b3 100644
@@ -6,6 +6,7 @@ Required properties:
 - compatible:	Should be "fsl,imx23-lcdif" for i.MX23.
 		Should be "fsl,imx28-lcdif" for i.MX28.
 		Should be "fsl,imx6sx-lcdif" for i.MX6SX.
+		Should be "fsl,imx8mq-lcdif" for i.MX8MQ.
 - reg:		Address and length of the register set for LCDIF
 - interrupts:	Should contain LCDIF interrupt
 - clocks:	A list of phandle + clock-specifier pairs, one for each
Signature · 1 line
2.23.0
#4 lore raw

PATCH v2 2/2 arm64: dts: imx8mq: Add eLCDIF controller

In reply to Guido Günther

Add a node for the eLCDIF controller, "disabled" by default.

---
 arch/arm64/boot/dts/freescale/imx8mq.dtsi | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
arch/arm64/boot/dts/freescale/imx8mq.dtsi +17 -0
index 7f9319452b58..1fadd2b126a9 100644
@@ -448,6 +448,23 @@
 				fsl,sdma-ram-script-name = "imx/sdma/sdma-imx7d.bin";
 			};
 
+			lcdif: lcd-controller@30320000 {
+				compatible = "fsl,imx8mq-lcdif", "fsl,imx28-lcdif";
+				reg = <0x30320000 0x10000>;
+				interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>;
+				clocks = <&clk IMX8MQ_CLK_LCDIF_PIXEL>;
+				clock-names = "pix";
+				assigned-clocks = <&clk IMX8MQ_VIDEO_PLL1_REF_SEL>,
+						  <&clk IMX8MQ_VIDEO_PLL1_BYPASS>,
+						  <&clk IMX8MQ_CLK_LCDIF_PIXEL>,
+						  <&clk IMX8MQ_VIDEO_PLL1>;
+				assigned-clock-parents = <&clk IMX8MQ_CLK_25M>,
+						  <&clk IMX8MQ_VIDEO_PLL1>,
+						  <&clk IMX8MQ_VIDEO_PLL1_OUT>;
+				assigned-clock-rates = <0>, <0>, <0>, <594000000>;
+				status = "disabled";
+			};
+
 			iomuxc: iomuxc@30330000 {
 				compatible = "fsl,imx8mq-iomuxc";
 				reg = <0x30330000 0x10000>;
Signature · 1 line
2.23.0
Applied
#5 lore raw
In reply to Guido Günther
Quoted 11 lines · Guido Günther

With some minimal support on imx8mq we might as well add it to the DT

Changes from v1:
- Per review comments by Fabio Estevam
- Document compatible
- use lcd-controller instead of lcdif as node name
- Add Reviewed-by: from Fabio Estevam, thanks!

Guido Günther (2):
dt-bindings: mxsfb: Add compatible for iMX8MQ
arm64: dts: imx8mq: Add eLCDIF controller

Applied both, thanks.