From patchwork Tue Jul 4 11:59:20 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Quentin Schulz X-Patchwork-Id: 106951 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp910959qge; Tue, 4 Jul 2017 04:59:51 -0700 (PDT) X-Received: by 10.28.14.149 with SMTP id 143mr17911114wmo.105.1499169591136; Tue, 04 Jul 2017 04:59:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1499169591; cv=none; d=google.com; s=arc-20160816; b=OVAe7eqsxXLJ92Pni9qYhvE+9ousC0Xl7++819bkxJJWE+uFYUfFc1kiKblD71TPQU 1FvLmkAUaEvVJ1son78DQhSCxXsetD9hQdzjr3hrJHtqNRhcMHUoOtqNNxNqR4sTPCw1 zaOhRnbhdtc138pPJBPAX3b90kJaxM7Ab+gWq9HXnDyBvnqSBF+71IUJcpCVwXBhwFhr AWW+hAPMeycxXKBkyXE6YCGlJUl/+/HBxwnbicCC7Cuoy8UFb+sWgxWfgDmsLUKfHUC/ BW3QvwS9eBpT7H+aikmnEHfUKG3enrwWv50Bwd4/gKkn0dJQBqvG1BJtmIhq+BkyiD35 98eQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:references:in-reply-to:message-id :date:to:from:delivered-to:arc-authentication-results; bh=jFDwtofPIhNH7spmk6GF/lArYZ9x1+Ig6uqiVrWKHzE=; b=dnwQISL9Xkg8KjQND/WMRHZ7+JrX1Z6kFN2+0JZZ3VFGHLbRqXwuqkPdzReYxNdXhJ 7aYE7vXdHRGhDQHc/xyBGrTTRnqgCsLZ79vgG3v+t3v3fmqoy3HqBImQJBX0NOHFkp3w yfkERqadLPBX0j67Dc28qwSunbiVgo5d5NjyuXAUSlFJS2pnomuJcTGhW+mD5u5FgRAN 22fRvLJ8Fk8VfCoFH+zEfidY+zlclhY/S+NJcnG8wEbtQW/BxVmIkZEhJhi+fib+W5Nl tKDMkEuYbSC0Xq6ym1mpQqsNCUI/HiwsA8O5ijwx69WK+oPYLF2v4UW9bPw/Ubwt6Ur9 edZw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org Return-Path: Received: from alsa0.perex.cz (alsa0.perex.cz. [77.48.224.243]) by mx.google.com with ESMTP id 126si12769349wmz.192.2017.07.04.04.59.50; Tue, 04 Jul 2017 04:59:51 -0700 (PDT) Received-SPF: pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) client-ip=77.48.224.243; Authentication-Results: mx.google.com; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 143B9266E24; Tue, 4 Jul 2017 13:59:49 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 09301266E15; Tue, 4 Jul 2017 13:59:48 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail1.perex.cz X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=RP_MATCHES_RCVD,SPF_PASS, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from mail.free-electrons.com (mail.free-electrons.com [62.4.15.54]) by alsa0.perex.cz (Postfix) with ESMTP id D441B266884 for ; Tue, 4 Jul 2017 13:59:45 +0200 (CEST) Received: by mail.free-electrons.com (Postfix, from userid 110) id DEC0621FB7; Tue, 4 Jul 2017 13:59:43 +0200 (CEST) Received: from localhost.localdomain (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr [90.63.216.87]) by mail.free-electrons.com (Postfix) with ESMTPSA id 7C01C21D40; Tue, 4 Jul 2017 13:59:43 +0200 (CEST) From: Quentin Schulz To: mturquette@baylibre.com, sboyd@codeaurora.org, robh+dt@kernel.org, mark.rutland@arm.com, lgirdwood@gmail.com, broonie@kernel.org, nicolas.ferre@microchip.com, alexandre.belloni@free-electrons.com, linux@armlinux.org.uk, boris.brezillon@free-electrons.com, perex@perex.cz, tiwai@suse.com Date: Tue, 4 Jul 2017 13:59:20 +0200 Message-Id: <20170704115927.32662-3-quentin.schulz@free-electrons.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170704115927.32662-1-quentin.schulz@free-electrons.com> References: <20170704115927.32662-1-quentin.schulz@free-electrons.com> Cc: thomas.petazzoni@free-electrons.com, devicetree@vger.kernel.org, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Quentin Schulz , cyrille.pitchen@wedev4u.fr, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [alsa-devel] [PATCH v2 2/9] clk: at91: add audio plls to the compatible list in DT binding X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org This new clock driver set allows to have a fractional divided clock that would generate a precise clock particularly suitable for audio applications. The main audio pll clock has two children clocks: one that is connected to the PMC, the other that can directly drive a pad. As these two routes have different enable bits and different dividers and divider formulas, they are handled by two different drivers. This adds the audio plls (frac, pad and pmc) to the compatible list of at91 clocks in DT binding. Signed-off-by: Quentin Schulz Acked-by: Rob Herring --- added in v2: - split from big patch with pll drivers and dt-binding Documentation/devicetree/bindings/clock/at91-clock.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) -- 2.11.0 _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel diff --git a/Documentation/devicetree/bindings/clock/at91-clock.txt b/Documentation/devicetree/bindings/clock/at91-clock.txt index 5f3ad65daf69..51c259a92d02 100644 --- a/Documentation/devicetree/bindings/clock/at91-clock.txt +++ b/Documentation/devicetree/bindings/clock/at91-clock.txt @@ -81,6 +81,16 @@ Required properties: "atmel,sama5d2-clk-generated": at91 generated clock + "atmel,sama5d2-clk-audio-pll-frac": + at91 audio fractional pll + + "atmel,sama5d2-clk-audio-pll-pad": + at91 audio pll CLK_AUDIO output pin + + "atmel,sama5d2-clk-audio-pll-pmc" + at91 audio pll output on AUDIOPLLCLK that feeds the PMC + and can be used by peripheral clock or generic clock + Required properties for SCKC node: - reg : defines the IO memory reserved for the SCKC. - #size-cells : shall be 0 (reg is used to encode clk id). From patchwork Tue Jul 4 11:59:25 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Quentin Schulz X-Patchwork-Id: 106956 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp913337qge; Tue, 4 Jul 2017 05:01:36 -0700 (PDT) X-Received: by 10.223.165.82 with SMTP id j18mr33197510wrb.45.1499169696108; Tue, 04 Jul 2017 05:01:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1499169696; cv=none; d=google.com; s=arc-20160816; b=dM2B4+LYB53dlAUK9fN3atW47zw3QO/7xjqr5qYFJVQ7zMFI/vnPUxbxTTRDSNtf+Q Jr6+xd7pDVIxh5Y+FkyE7Gp5WeYjC9xgqMyv9n7PoSSInXLcntixCaKJCPnteWF9X/Qx cStmKFPA4NiZZIZvvotPTrFamt6T671/0q0gJZUEMSGtcbh5lKyiUur9ioQ/tWOQY0JX zUdK0LVFpsAC0lsk+AHgZLcNQlwsgE3lFYfhdt+7id5FOowGPPsnr/hiiVXu6ZmsdSZH PhaATwkcN1vNVYJxvp1L7PkA2zE89dA+fOfnhVdpAF0zZckFAI+6zA11+dxiuVqACzpn p/6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:references:in-reply-to:message-id :date:to:from:delivered-to:arc-authentication-results; bh=YORwMMMhIfLkWg35cHD/vfnJTvZkQmjmrgkKFA3I1uY=; b=YA70XL7q86gyvywagirHZhaISvKLBZxnAu6VlXixPdQn+jzu/YNVlISx/++oHHzcOo b/MCll3ukDovxC9P9cv15mPXuw4C1EeINQXCiKRzfshPWd4A+7GpXxo4TUBkq8DLXwDX 1Em6e44C/JmJ9pP0N+tgmLjyMWEZBoiPe89s6pnqFTALVef3MwCxH/h3Q31Gbt3OLqPn gN/eLBh6iXejYv+EYsNYu7iOywGk76QZMVQsTNTFTvdqZUTOZ66ktkGu+BC4VVunFYVZ 5kuA4+nPSWT261jon9mzTpIb9LWilbDIgcWsHh//K3fa2y/AtONk3IEoP1Y8kVtspWRc E5aw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org Return-Path: Received: from alsa0.perex.cz (alsa0.perex.cz. [77.48.224.243]) by mx.google.com with ESMTP id w23si13179063wmw.19.2017.07.04.05.01.35; Tue, 04 Jul 2017 05:01:36 -0700 (PDT) Received-SPF: pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) client-ip=77.48.224.243; Authentication-Results: mx.google.com; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 75072266EA7; Tue, 4 Jul 2017 13:59:59 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id B2DE7266E42; Tue, 4 Jul 2017 13:59:54 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail1.perex.cz X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=RP_MATCHES_RCVD,SPF_PASS, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from mail.free-electrons.com (mail.free-electrons.com [62.4.15.54]) by alsa0.perex.cz (Postfix) with ESMTP id 035B5266E17 for ; Tue, 4 Jul 2017 13:59:47 +0200 (CEST) Received: by mail.free-electrons.com (Postfix, from userid 110) id B20C521FC6; Tue, 4 Jul 2017 13:59:45 +0200 (CEST) Received: from localhost.localdomain (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr [90.63.216.87]) by mail.free-electrons.com (Postfix) with ESMTPSA id 5185D21D3F; Tue, 4 Jul 2017 13:59:45 +0200 (CEST) From: Quentin Schulz To: mturquette@baylibre.com, sboyd@codeaurora.org, robh+dt@kernel.org, mark.rutland@arm.com, lgirdwood@gmail.com, broonie@kernel.org, nicolas.ferre@microchip.com, alexandre.belloni@free-electrons.com, linux@armlinux.org.uk, boris.brezillon@free-electrons.com, perex@perex.cz, tiwai@suse.com Date: Tue, 4 Jul 2017 13:59:25 +0200 Message-Id: <20170704115927.32662-8-quentin.schulz@free-electrons.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170704115927.32662-1-quentin.schulz@free-electrons.com> References: <20170704115927.32662-1-quentin.schulz@free-electrons.com> Cc: thomas.petazzoni@free-electrons.com, devicetree@vger.kernel.org, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Quentin Schulz , cyrille.pitchen@wedev4u.fr, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [alsa-devel] [PATCH v2 7/9] ASoC: atmel-classd: remove aclk clock from DT binding X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org Since gclk (generated-clk) is now able to determine the rate of the audio_pll, there is no need for classd to have a direct phandle to the audio_pll while already having a phandle to gclk. This binding is used by no board in mainline so it is safe to be modified. Signed-off-by: Quentin Schulz --- added in v2 Documentation/devicetree/bindings/sound/atmel-classd.txt | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) -- 2.11.0 _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel Acked-by: Mark Brown diff --git a/Documentation/devicetree/bindings/sound/atmel-classd.txt b/Documentation/devicetree/bindings/sound/atmel-classd.txt index 549e701cb7a1..898551076382 100644 --- a/Documentation/devicetree/bindings/sound/atmel-classd.txt +++ b/Documentation/devicetree/bindings/sound/atmel-classd.txt @@ -13,13 +13,11 @@ Required properties: Must be "tx". - clock-names Tuple listing input clock names. - Required elements: "pclk", "gclk" and "aclk". + Required elements: "pclk" and "gclk". - clocks Please refer to clock-bindings.txt. - assigned-clocks Should be <&classd_gclk>. -- assigned-clock-parents - Should be <&audio_pll_pmc>. Optional properties: - pinctrl-names, pinctrl-0 @@ -45,10 +43,9 @@ classd: classd@fc048000 { (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1) | AT91_XDMAC_DT_PERID(47))>; dma-names = "tx"; - clocks = <&classd_clk>, <&classd_gclk>, <&audio_pll_pmc>; - clock-names = "pclk", "gclk", "aclk"; + clocks = <&classd_clk>, <&classd_gclk>; + clock-names = "pclk", "gclk"; assigned-clocks = <&classd_gclk>; - assigned-clock-parents = <&audio_pll_pmc>; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_classd_default>;