summaryrefslogtreecommitdiff
path: root/arch/arm64/boot/dts/freescale/imx8qm-ss-mipi.dtsi
diff options
context:
space:
mode:
authorAisheng Dong <aisheng.dong@nxp.com>2019-12-06 11:42:30 +0000
committerRobert Chiras <robert.chiras@nxp.com>2019-12-10 11:38:00 +0200
commit01b8b7a56fcdacbae7ee09c25a2de27cbdc67556 (patch)
tree94193c39a646274884ad1f32b9db6f4ed2aafd43 /arch/arm64/boot/dts/freescale/imx8qm-ss-mipi.dtsi
parenta6a3a9cd11ae8b5f997a4fe004bd163e5f6f8eff (diff)
arm64: dts: mipi-lvds: fix mipi rx/tx clocks
By default, the MIPI RX and TX clocks are parented to the BYPASS clock, but it seems that this doesn't work on QXP. Since these clocks can also be parented to MIPI_PLL and MIPI_PLL_DIV2, use the MIPI_PLL_DIV2 with a fixed rate of 432M and parent the RX and TX clocks to it. This works on both QM and QXP. Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com> Signed-off-by: Robert Chiras <robert.chiras@nxp.com> Reviewed-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
Diffstat (limited to 'arch/arm64/boot/dts/freescale/imx8qm-ss-mipi.dtsi')
-rw-r--r--arch/arm64/boot/dts/freescale/imx8qm-ss-mipi.dtsi23
1 files changed, 19 insertions, 4 deletions
diff --git a/arch/arm64/boot/dts/freescale/imx8qm-ss-mipi.dtsi b/arch/arm64/boot/dts/freescale/imx8qm-ss-mipi.dtsi
index 91397ad49bf5..41e4e7470503 100644
--- a/arch/arm64/boot/dts/freescale/imx8qm-ss-mipi.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8qm-ss-mipi.dtsi
@@ -12,6 +12,13 @@
clock-output-names = "dsi_ipg_clk";
};
+ mipi_pll_div2_clk: clock-mipi-div2-pll {
+ compatible = "fixed-clock";
+ #clock-cells = <0>;
+ clock-frequency = <432000000>;
+ clock-output-names = "mipi_pll_div2_clk";
+ };
+
mipi0_subsys: bus@56220000 {
compatible = "simple-bus";
#address-cells = <1>;
@@ -148,9 +155,13 @@
"phy_ref",
"tx_esc",
"rx_esc";
- assigned-clocks = <&clk IMX_SC_R_MIPI_0 IMX_SC_PM_CLK_MST_BUS>,
+ assigned-clocks = <&clk IMX_SC_R_MIPI_0 IMX_SC_PM_CLK_PHY>,
+ <&clk IMX_SC_R_MIPI_0 IMX_SC_PM_CLK_MST_BUS>,
<&clk IMX_SC_R_MIPI_0 IMX_SC_PM_CLK_SLV_BUS>;
- assigned-clock-rates = <18000000>, <72000000>;
+ assigned-clock-parents = <&mipi_pll_div2_clk>,
+ <&mipi_pll_div2_clk>,
+ <&mipi_pll_div2_clk>;
+ assigned-clock-rates = <0>, <18000000>, <72000000>;
interrupts = <16>;
interrupt-parent = <&irqsteer_mipi0>;
power-domains = <&pd IMX_SC_R_MIPI_0>;
@@ -314,9 +325,13 @@
"phy_ref",
"tx_esc",
"rx_esc";
- assigned-clocks = <&clk IMX_SC_R_MIPI_1 IMX_SC_PM_CLK_MST_BUS>,
+ assigned-clocks = <&clk IMX_SC_R_MIPI_1 IMX_SC_PM_CLK_PHY>,
+ <&clk IMX_SC_R_MIPI_1 IMX_SC_PM_CLK_MST_BUS>,
<&clk IMX_SC_R_MIPI_1 IMX_SC_PM_CLK_SLV_BUS>;
- assigned-clock-rates = <18000000>, <72000000>;
+ assigned-clock-parents = <&mipi_pll_div2_clk>,
+ <&mipi_pll_div2_clk>,
+ <&mipi_pll_div2_clk>;
+ assigned-clock-rates = <0>, <18000000>, <72000000>;
interrupts = <16>;
interrupt-parent = <&irqsteer_mipi1>;
power-domains = <&pd IMX_SC_R_MIPI_1>;