diff options
author | Shengjiu Wang <shengjiu.wang@freescale.com> | 2015-12-16 13:16:39 +0800 |
---|---|---|
committer | Nitin Garg <nitin.garg@nxp.com> | 2016-01-14 11:02:45 -0600 |
commit | bef020962334c0124165cf26142391eb31d88825 (patch) | |
tree | 9f8a5bc328993e075f82bb6006498f46a7e0e458 /arch | |
parent | fe86dc3b7e7cec7cb4f3ff52757b0d486beee408 (diff) |
MLK-12027: ARM: dts: fix the sample rate clock not accurate for spdif tx
Clock of spdif tx is derived from clk_ipg and clk_osc, which is not the
integer multiple size of sample rate, can't generate accurate clock for
each sample rate. Use pll4 as the clk_spdif's parent, because the clk_spdif
is the one of source clock of tx, use a proper frequency for pll4, then it
can generate more accurate clock for sample rate (32k,48k,96k,192k).
Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/boot/dts/imx6ul-14x14-ddr3-arm2-spdif.dts | 4 | ||||
-rw-r--r-- | arch/arm/boot/dts/imx6ul-14x14-ddr3-arm2.dts | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/imx6ul-14x14-ddr3-arm2-spdif.dts b/arch/arm/boot/dts/imx6ul-14x14-ddr3-arm2-spdif.dts index ee530736a557..7191f0572e3b 100644 --- a/arch/arm/boot/dts/imx6ul-14x14-ddr3-arm2-spdif.dts +++ b/arch/arm/boot/dts/imx6ul-14x14-ddr3-arm2-spdif.dts @@ -34,5 +34,9 @@ &spdif { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_spdif>; + assigned-clocks = <&clks IMX6UL_CLK_SPDIF_SEL>, + <&clks IMX6UL_CLK_SPDIF_PODF>; + assigned-clock-parents = <&clks IMX6UL_CLK_PLL4_AUDIO_DIV>; + assigned-clock-rates = <0>, <98304000>; status = "okay"; }; diff --git a/arch/arm/boot/dts/imx6ul-14x14-ddr3-arm2.dts b/arch/arm/boot/dts/imx6ul-14x14-ddr3-arm2.dts index 1a71ffd0235c..13147ede7afc 100644 --- a/arch/arm/boot/dts/imx6ul-14x14-ddr3-arm2.dts +++ b/arch/arm/boot/dts/imx6ul-14x14-ddr3-arm2.dts @@ -81,6 +81,11 @@ }; }; +&clks { + assigned-clocks = <&clks IMX6UL_CLK_PLL4_AUDIO_DIV>; + assigned-clock-rates = <786432000>; +}; + &cpu0 { /* * on i.MX6UL, no seperated VDD_ARM_IN and VDD_SOC_IN, |