Skip to contentSkip to conversation

arm64: dts: imx8mq: Add DT node for the Mixel MIPI D-PHY

PATCH Applied Guido Günther 3 participants 6 messages Jun 25, 2019 – Jul 18, 2019

Subsystems (2)

v1 of 2 Applied Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover arm64: dts: imx8mq: Add DT node for the Mixel MIPI D-PHY

Now that the driver is in linux-next as of 20190624 let's have a DT node for the i.MX8mq and enable it on the Librem 5 devkit.

Guido Günther (2):
arm64: dts: imx8mq: Add MIPI D-PHY
arm64: dts: imx8mq-librem5: Enable MIPI D-PHY

 .../boot/dts/freescale/imx8mq-librem5-devkit.dts    |  4 ++++
 arch/arm64/boot/dts/freescale/imx8mq.dtsi           | 13 +++++++++++++
 2 files changed, 17 insertions(+)
Signature · 1 line
2.20.1
#1 lore raw

PATCH 1/2 arm64: dts: imx8mq: Add MIPI D-PHY

Add a node for the Mixel MIPI D-PHY, "disabled" by default.

---
 arch/arm64/boot/dts/freescale/imx8mq.dtsi | 13 +++++++++++++
 1 file changed, 13 insertions(+)
arch/arm64/boot/dts/freescale/imx8mq.dtsi +13 -0
index d09b808eff87..891ee7578c2d 100644
@@ -728,6 +728,19 @@
 				status = "disabled";
 			};
 
+			dphy: dphy@30a00300 {
+				compatible = "fsl,imx8mq-mipi-dphy";
+				reg = <0x30a00300 0x100>;
+				clocks = <&clk IMX8MQ_CLK_DSI_PHY_REF>;
+				clock-names = "phy_ref";
+				assigned-clocks = <&clk IMX8MQ_CLK_DSI_PHY_REF>;
+				assigned-clock-parents = <&clk IMX8MQ_VIDEO_PLL1_OUT>;
+				assigned-clock-rates = <24000000>;
+				#phy-cells = <0>;
+				power-domains = <&pgc_mipi>;
+				status = "disabled";
+			};
+
 			i2c1: i2c@30a20000 {
 				compatible = "fsl,imx8mq-i2c", "fsl,imx21-i2c";
 				reg = <0x30a20000 0x10000>;
Signature · 1 line
2.20.1
Acked-by on v1 1/2
#2 lore raw

Re: [PATCH 1/2] arm64: dts: imx8mq: Add MIPI D-PHY

Quoted 3 lines · Guido Günther

Add a node for the Mixel MIPI D-PHY, "disabled" by default.

Quoted 29 lines
---
 arch/arm64/boot/dts/freescale/imx8mq.dtsi | 13 +++++++++++++
 1 file changed, 13 insertions(+)
arch/arm64/boot/dts/freescale/imx8mq.dtsi +13 -0
index d09b808eff87..891ee7578c2d 100644
@@ -728,6 +728,19 @@
 				status = "disabled";
 			};
 
+			dphy: dphy@30a00300 {
+				compatible = "fsl,imx8mq-mipi-dphy";
+				reg = <0x30a00300 0x100>;
+				clocks = <&clk IMX8MQ_CLK_DSI_PHY_REF>;
+				clock-names = "phy_ref";
+				assigned-clocks = <&clk IMX8MQ_CLK_DSI_PHY_REF>;
+				assigned-clock-parents = <&clk IMX8MQ_VIDEO_PLL1_OUT>;
+				assigned-clock-rates = <24000000>;
+				#phy-cells = <0>;
+				power-domains = <&pgc_mipi>;
+				status = "disabled";
+			};
+
 			i2c1: i2c@30a20000 {
 				compatible = "fsl,imx8mq-i2c", "fsl,imx21-i2c";
 				reg = <0x30a20000 0x10000>;
#3 lore raw

PATCH 2/2 arm64: dts: imx8mq-librem5: Enable MIPI D-PHY

In reply to Guido Günther

This enables the Mixel MIPI D-PHY on the Librem 5 devkit

---
 arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts | 4 ++++
 1 file changed, 4 insertions(+)
arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts +4 -0
index 93b3830e5406..83c965773a29 100644
@@ -174,6 +174,10 @@
 	assigned-clock-rates = <786432000>, <722534400>;
 };
 
+&dphy {
+	status = "okay";
+};
+
 &fec1 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_fec1>;
Signature · 1 line
2.20.1
Acked-by on v1 2/2
#4 lore raw

Re: [PATCH 2/2] arm64: dts: imx8mq-librem5: Enable MIPI D-PHY

Quoted 3 lines · Guido Günther

This enables the Mixel MIPI D-PHY on the Librem 5 devkit

Quoted 20 lines
---
 arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts | 4 ++++
 1 file changed, 4 insertions(+)
arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts +4 -0
index 93b3830e5406..83c965773a29 100644
@@ -174,6 +174,10 @@
 	assigned-clock-rates = <786432000>, <722534400>;
 };
 
+&dphy {
+	status = "okay";
+};
+
 &fec1 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_fec1>;
Applied
#5 lore raw
In reply to Guido Günther
Quoted 6 lines · Guido Günther

Now that the driver is in linux-next as of 20190624 let's have a DT node for the i.MX8mq and enable it on the Librem 5 devkit.

Guido Günther (2):
arm64: dts: imx8mq: Add MIPI D-PHY
arm64: dts: imx8mq-librem5: Enable MIPI D-PHY

Applied both, thanks.