Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752328AbcDULFH (ORCPT ); Thu, 21 Apr 2016 07:05:07 -0400 Received: from mail-wm0-f46.google.com ([74.125.82.46]:38609 "EHLO mail-wm0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752291AbcDULFB (ORCPT ); Thu, 21 Apr 2016 07:05:01 -0400 From: Peter Griffin To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, srinivas.kandagatla@gmail.com, maxime.coquelin@st.com, patrice.chotard@st.com, vinod.koul@intel.com Cc: peter.griffin@linaro.org, lee.jones@linaro.org, dmaengine@vger.kernel.org, devicetree@vger.kernel.org, arnd@arndb.de, broonie@kernel.org, ludovic.barre@st.com, arnaud.pouliquen@st.com Subject: [PATCH 10/18] ASoC: sti: Update example to include assigned-clocks and mclk-fs Date: Thu, 21 Apr 2016 12:04:27 +0100 Message-Id: <1461236675-10176-11-git-send-email-peter.griffin@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1461236675-10176-1-git-send-email-peter.griffin@linaro.org> References: <1461236675-10176-1-git-send-email-peter.griffin@linaro.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1731 Lines: 51 Update the examples, as otherwise driver errors with an incorrect mclk ratio at runtime. Signed-off-by: Peter Griffin Cc: arnaud.pouliquen@st.com --- Documentation/devicetree/bindings/sound/st,sti-asoc-card.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/st,sti-asoc-card.txt b/Documentation/devicetree/bindings/sound/st,sti-asoc-card.txt index ef2e0c6..e6ef96a8 100644 --- a/Documentation/devicetree/bindings/sound/st,sti-asoc-card.txt +++ b/Documentation/devicetree/bindings/sound/st,sti-asoc-card.txt @@ -62,6 +62,9 @@ Example: #sound-dai-cells = <0>; st,syscfg = <&syscfg_core>; clocks = <&clk_s_d0_flexgen CLK_PCM_2>; + assigned-clocks = <&clk_s_d0_flexgen CLK_PCM_2>; + assigned-clock-parents = <&clk_s_d0_quadfs 2>; + assigned-clock-rates = <50000000>; reg = <0x8D82000 0x158>; interrupts = ; dmas = <&fdma0 4 0 1>; @@ -78,6 +81,9 @@ Example: #sound-dai-cells = <0>; st,syscfg = <&syscfg_core>; clocks = <&clk_s_d0_flexgen CLK_SPDIFF>; + assigned-clocks = <&clk_s_d0_flexgen CLK_SPDIFF>; + assigned-clock-parents = <&clk_s_d0_quadfs 3>; + assigned-clock-rates = <50000000>; reg = <0x8D85000 0x158>; interrupts = ; dmas = <&fdma0 7 0 1>; @@ -133,6 +139,7 @@ Example of audio card declaration: /* DAC */ format = "i2s"; dai-tdm-slot-width = <32>; + mclk-fs = <256>; cpu { sound-dai = <&sti_uni_player2>; }; @@ -144,6 +151,7 @@ Example of audio card declaration: simple-audio-card,dai-link@1 { /* SPDIF */ format = "left_j"; + mclk-fs = <128>; cpu { sound-dai = <&sti_uni_player3>; }; -- 1.9.1