Skip to content

Commit

Permalink
MLK-25915-1 arm64: dts: imx8m: set the parent clock of pcie aux clock
Browse files Browse the repository at this point in the history
Set the parent clock for PCIE_AUX clock firstly, then set the rate of
the PCI_AUX clock to 10MHZ.

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
Reviewed-by: Peter Chen <peter.chen@nxp.com>
(cherry picked from commit c787efe575330e538cc92da0dde49255bdc80c94)
  • Loading branch information
Richard Zhu committed Mar 3, 2021
1 parent 9a6ced7 commit 855ad0c
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
6 changes: 6 additions & 0 deletions arch/arm64/boot/dts/freescale/imx8mm-evk.dts
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,9 @@
<&clk IMX8MM_CLK_PCIE1_PHY>,
<&pcie0_refclk>;
clock-names = "pcie", "pcie_aux", "pcie_phy", "pcie_bus";
assigned-clocks = <&clk IMX8MM_CLK_PCIE1_AUX>;
assigned-clock-rates = <10000000>;
assigned-clock-parents = <&clk IMX8MM_SYS_PLL2_50M>;
ext_osc = <1>;
status = "okay";
};
Expand All @@ -242,6 +245,9 @@
<&clk IMX8MM_CLK_PCIE1_PHY>,
<&pcie0_refclk>;
clock-names = "pcie", "pcie_aux", "pcie_phy", "pcie_bus";
assigned-clocks = <&clk IMX8MM_CLK_PCIE1_AUX>;
assigned-clock-rates = <10000000>;
assigned-clock-parents = <&clk IMX8MM_SYS_PLL2_50M>;
ext_osc = <1>;
status = "disabled";
};
Expand Down
2 changes: 2 additions & 0 deletions arch/arm64/boot/dts/freescale/imx8mp-evk.dts
Original file line number Diff line number Diff line change
Expand Up @@ -686,6 +686,7 @@
clock-names = "pcie", "pcie_aux", "pcie_phy", "pcie_bus";
assigned-clocks = <&clk IMX8MP_CLK_HSIO_AXI_SRC>,
<&clk IMX8MP_CLK_PCIE_AUX>;
assigned-clock-rates = <500000000>, <10000000>;
assigned-clock-parents = <&clk IMX8MP_SYS_PLL2_500M>,
<&clk IMX8MP_SYS_PLL2_50M>;
status = "okay";
Expand All @@ -702,6 +703,7 @@
clock-names = "pcie", "pcie_aux", "pcie_phy", "pcie_bus";
assigned-clocks = <&clk IMX8MP_CLK_HSIO_AXI_SRC>,
<&clk IMX8MP_CLK_PCIE_AUX>;
assigned-clock-rates = <500000000>, <10000000>;
assigned-clock-parents = <&clk IMX8MP_SYS_PLL2_500M>,
<&clk IMX8MP_SYS_PLL2_50M>;
status = "disabled";
Expand Down
9 changes: 9 additions & 0 deletions arch/arm64/boot/dts/freescale/imx8mq-evk.dts
Original file line number Diff line number Diff line change
Expand Up @@ -662,6 +662,9 @@
<&clk IMX8MQ_CLK_PCIE1_PHY>,
<&pcie0_refclk>;
clock-names = "pcie", "pcie_aux", "pcie_phy", "pcie_bus";
assigned-clocks = <&clk IMX8MQ_CLK_PCIE1_AUX>;
assigned-clock-rates = <10000000>;
assigned-clock-parents = <&clk IMX8MQ_SYS2_PLL_50M>;
hard-wired = <1>;
status = "okay";
};
Expand All @@ -676,6 +679,9 @@
<&clk IMX8MQ_CLK_PCIE2_PHY>,
<&pcie1_refclk>;
clock-names = "pcie", "pcie_aux", "pcie_phy", "pcie_bus";
assigned-clocks = <&clk IMX8MQ_CLK_PCIE2_AUX>;
assigned-clock-rates = <10000000>;
assigned-clock-parents = <&clk IMX8MQ_SYS2_PLL_50M>;
status = "okay";
};

Expand All @@ -687,6 +693,9 @@
<&clk IMX8MQ_CLK_PCIE2_PHY>,
<&pcie1_refclk>;
clock-names = "pcie", "pcie_aux", "pcie_phy", "pcie_bus";
assigned-clocks = <&clk IMX8MQ_CLK_PCIE2_AUX>;
assigned-clock-rates = <10000000>;
assigned-clock-parents = <&clk IMX8MQ_SYS2_PLL_50M>;
status = "disabled";
};

Expand Down

0 comments on commit 855ad0c

Please sign in to comment.