Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1330126 > unrolled thread

[PATCH] ARM: DTS: am57xx-beagle-x15: Select SYS_CLK2 for audio clocks

Started byPeter Ujfalusi <peter.ujfalusi@ti.com>
First post2016-02-09 12:50 +0100
Last post2016-02-11 01:30 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] ARM: DTS: am57xx-beagle-x15: Select SYS_CLK2 for audio clocks Peter Ujfalusi <peter.ujfalusi@ti.com> - 2016-02-09 12:50 +0100
    Re: [PATCH] ARM: DTS: am57xx-beagle-x15: Select SYS_CLK2 for audio  clocks Tony Lindgren <tony@atomide.com> - 2016-02-11 01:30 +0100

#1330126 — [PATCH] ARM: DTS: am57xx-beagle-x15: Select SYS_CLK2 for audio clocks

FromPeter Ujfalusi <peter.ujfalusi@ti.com>
Date2016-02-09 12:50 +0100
Subject[PATCH] ARM: DTS: am57xx-beagle-x15: Select SYS_CLK2 for audio clocks
Message-ID<r0eXT-3rF-7@gated-at.bofh.it>
The tlv320aic3104 codec's master clock is coming from the SoC's CLKOUT2.
Select the SYS_CLK2 (via divider) as parent clock for CLKOUT2 and select
the same clock (SYS_CLK2) for McASP3 AHCLKX clock as well.
SYS_CLK2 is sourced from an external oscillator running 22.5792MHz and it
is coming in to the SoC via the X1_OSC1.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
---
 arch/arm/boot/dts/am57xx-beagle-x15.dts | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm/boot/dts/am57xx-beagle-x15.dts b/arch/arm/boot/dts/am57xx-beagle-x15.dts
index c37a5193f199..592e65c3a4e0 100644
--- a/arch/arm/boot/dts/am57xx-beagle-x15.dts
+++ b/arch/arm/boot/dts/am57xx-beagle-x15.dts
@@ -173,6 +173,8 @@
 
 		sound0_master: simple-audio-card,codec {
 			sound-dai = <&tlv320aic3104>;
+			assigned-clocks = <&clkoutmux2_clk_mux>;
+			assigned-clock-parents = <&sys_clk2_dclk_div>;
 			clocks = <&clkout2_clk>;
 		};
 	};
@@ -795,6 +797,8 @@
 	pinctrl-names = "default", "sleep";
 	pinctrl-0 = <&mcasp3_pins_default>;
 	pinctrl-1 = <&mcasp3_pins_sleep>;
+	assigned-clocks = <&mcasp3_ahclkx_mux>;
+	assigned-clock-parents = <&sys_clkin2>;
 	status = "okay";
 
 	op-mode = <0>;	/* MCASP_IIS_MODE */
-- 
2.7.1

[toc] | [next] | [standalone]


#1331607 — Re: [PATCH] ARM: DTS: am57xx-beagle-x15: Select SYS_CLK2 for audio clocks

FromTony Lindgren <tony@atomide.com>
Date2016-02-11 01:30 +0100
SubjectRe: [PATCH] ARM: DTS: am57xx-beagle-x15: Select SYS_CLK2 for audio clocks
Message-ID<r0NiW-16K-9@gated-at.bofh.it>
In reply to#1330126
* Peter Ujfalusi <peter.ujfalusi@ti.com> [160209 03:48]:
> The tlv320aic3104 codec's master clock is coming from the SoC's CLKOUT2.
> Select the SYS_CLK2 (via divider) as parent clock for CLKOUT2 and select
> the same clock (SYS_CLK2) for McASP3 AHCLKX clock as well.
> SYS_CLK2 is sourced from an external oscillator running 22.5792MHz and it
> is coming in to the SoC via the X1_OSC1.
> 
> Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>

Applying into omap-for-v4.5/fixes thanks.

Tony

> ---
>  arch/arm/boot/dts/am57xx-beagle-x15.dts | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/arch/arm/boot/dts/am57xx-beagle-x15.dts b/arch/arm/boot/dts/am57xx-beagle-x15.dts
> index c37a5193f199..592e65c3a4e0 100644
> --- a/arch/arm/boot/dts/am57xx-beagle-x15.dts
> +++ b/arch/arm/boot/dts/am57xx-beagle-x15.dts
> @@ -173,6 +173,8 @@
>  
>  		sound0_master: simple-audio-card,codec {
>  			sound-dai = <&tlv320aic3104>;
> +			assigned-clocks = <&clkoutmux2_clk_mux>;
> +			assigned-clock-parents = <&sys_clk2_dclk_div>;
>  			clocks = <&clkout2_clk>;
>  		};
>  	};
> @@ -795,6 +797,8 @@
>  	pinctrl-names = "default", "sleep";
>  	pinctrl-0 = <&mcasp3_pins_default>;
>  	pinctrl-1 = <&mcasp3_pins_sleep>;
> +	assigned-clocks = <&mcasp3_ahclkx_mux>;
> +	assigned-clock-parents = <&sys_clkin2>;
>  	status = "okay";
>  
>  	op-mode = <0>;	/* MCASP_IIS_MODE */
> -- 
> 2.7.1
> 

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web