From patchwork Tue Sep 6 12:04:55 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Sylwester Nawrocki/Kernel \\(PLT\\) /SRPOL/Staff Engineer/Samsung Electronics" X-Patchwork-Id: 9316493 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 06C5F60869 for ; Tue, 6 Sep 2016 12:05:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EBF8528CBC for ; Tue, 6 Sep 2016 12:05:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E11AB28CEF; Tue, 6 Sep 2016 12:05:49 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1788D28CF0 for ; Tue, 6 Sep 2016 12:05:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933539AbcIFMFp (ORCPT ); Tue, 6 Sep 2016 08:05:45 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:41963 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932358AbcIFMFo (ORCPT ); Tue, 6 Sep 2016 08:05:44 -0400 Received: from epcpsbgm2new.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OD302U7D0970O10@mailout2.samsung.com>; Tue, 06 Sep 2016 21:05:43 +0900 (KST) X-AuditID: cbfee61b-f79466d000001e3c-db-57ceb1166680 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2new.samsung.com (EPCPMTA) with SMTP id 61.B8.07740.611BEC75; Tue, 6 Sep 2016 05:05:43 -0700 (MST) Received: from AMDC1344.digital.local ([106.116.147.32]) by mmp2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OD300B5A08TSS80@mmp2.samsung.com>; Tue, 06 Sep 2016 21:05:42 +0900 (KST) From: Sylwester Nawrocki To: linux-samsung-soc@vger.kernel.org, linux-clk@vger.kernel.org Cc: b.zolnierkie@samsung.com, krzk@kernel.org, Sylwester Nawrocki Subject: [PATCH v2 6/7] clk: samsung: clk-exynos-audss: Add exynos5410 compatible Date: Tue, 06 Sep 2016 14:04:55 +0200 Message-id: <1473163496-17820-7-git-send-email-s.nawrocki@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1473163496-17820-1-git-send-email-s.nawrocki@samsung.com> References: <1473163496-17820-1-git-send-email-s.nawrocki@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpiluLIzCtJLcpLzFFi42I5/e+xoK74xnPhBlevMFpsnLGe1eL8+Q3s Fh977rFazDi/j8ni8Jt2VgdWj02rOtk8+rasYvT4vEkugDmKyyYlNSezLLVI3y6BK6PvxTn2 gstiFbMvnGZvYPwj1MXIySEhYCJx49E5ZghbTOLCvfVsXYxcHEICsxglNh48DuX8YpT4s3Uu E0gVm4ChRO/RPkYQW0TAQWLXsclgcWaBGInG27OAbA4OYYFgibbvGiBhFgFViV2X+9hAbF4B N4k7l6ewQSyTkzh5bDIriM0p4C4x+0wvmC0EVLP+2X3mCYy8CxgZVjFKpBYkFxQnpeca5aWW 6xUn5haX5qXrJefnbmIEh8wz6R2Mh3e5H2IU4GBU4uHdUHo2XIg1say4MvcQowQHs5IIr9+a c+FCvCmJlVWpRfnxRaU5qcWHGKU5WJTEeR//XxcmJJCeWJKanZpakFoEk2Xi4JRqYGRgmxGY /fZcLetn+fRjQc8eKB4W6Pvp2/hQ5ZBhuLZHxCHG/r3uDyubxOqXhWtM5KpTmCOub51f8Y5J v/Jybdu5+NnbWrNY0p8tCJO/GPUx2/jINP+fP2ZqSby+J11wdZ6YlGuhxf2cib8j/1St5Jzi PXlV2RJJtb9LEjO4P9/pyNsiIzTvuBJLcUaioRZzUXEiAFW6clUVAgAA Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Exynos5410 Audio Subsystem Clock Controller, comparing to the already supported IP block revisions, has additionally an I2S_MST divider so a new compatible string is added. It is not clear from the Exynos5410 User's Manual released on 2012.03.09 where in the clock tree the I2S_MST clock divider can be found exactly so this clock is left unimplemented for now. Signed-off-by: Sylwester Nawrocki --- Documentation/devicetree/bindings/clock/clk-exynos-audss.txt | 4 +++- drivers/clk/samsung/clk-exynos-audss.c | 9 +++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/clock/clk-exynos-audss.txt b/Documentation/devicetree/bindings/clock/clk-exynos-audss.txt index 180e883..0c3d601 100644 --- a/Documentation/devicetree/bindings/clock/clk-exynos-audss.txt +++ b/Documentation/devicetree/bindings/clock/clk-exynos-audss.txt @@ -10,6 +10,8 @@ Required Properties: - "samsung,exynos4210-audss-clock" - controller compatible with all Exynos4 SoCs. - "samsung,exynos5250-audss-clock" - controller compatible with Exynos5250 SoCs. + - "samsung,exynos5410-audss-clock" - controller compatible with Exynos5410 + SoCs. - "samsung,exynos5420-audss-clock" - controller compatible with Exynos5420 SoCs. - reg: physical base address and length of the controller's register set. @@ -91,5 +93,5 @@ i2s0: i2s@03830000 { <&clock_audss EXYNOS_MOUT_AUDSS>, <&clock_audss EXYNOS_MOUT_I2S>; clock-names = "iis", "i2s_opclk0", "i2s_opclk1", - "mout_audss", "mout_i2s"; + "mout_audss", "mout_i2s"; }; diff --git a/drivers/clk/samsung/clk-exynos-audss.c b/drivers/clk/samsung/clk-exynos-audss.c index 7d4026b..628f86b 100644 --- a/drivers/clk/samsung/clk-exynos-audss.c +++ b/drivers/clk/samsung/clk-exynos-audss.c @@ -70,6 +70,7 @@ static struct syscore_ops exynos_audss_clk_syscore_ops = { struct exynos_audss_clk_drvdata { unsigned int has_adma_clk:1; + unsigned int has_mst_clk:1; unsigned int enable_epll:1; unsigned int num_clks; }; @@ -78,6 +79,11 @@ static const struct exynos_audss_clk_drvdata exynos4210_drvdata = { .num_clks = EXYNOS_AUDSS_MAX_CLKS - 1, }; +static const struct exynos_audss_clk_drvdata exynos5410_drvdata = { + .num_clks = EXYNOS_AUDSS_MAX_CLKS - 1, + .has_mst_clk = 1, +}; + static const struct exynos_audss_clk_drvdata exynos5420_drvdata = { .num_clks = EXYNOS_AUDSS_MAX_CLKS, .has_adma_clk = 1, @@ -92,6 +98,9 @@ static const struct of_device_id exynos_audss_clk_of_match[] = { .compatible = "samsung,exynos5250-audss-clock", .data = &exynos4210_drvdata, }, { + .compatible = "samsung,exynos5410-audss-clock", + .data = &exynos5410_drvdata, + }, { .compatible = "samsung,exynos5420-audss-clock", .data = &exynos5420_drvdata, },