From patchwork Fri Sep 20 13:02:18 2019 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: 11154407 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id EA7F1197C for ; Fri, 20 Sep 2019 13:03:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C883B20B7C for ; Fri, 20 Sep 2019 13:03:27 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="reh4OU8r" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726990AbfITND1 (ORCPT ); Fri, 20 Sep 2019 09:03:27 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:46512 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726996AbfITND1 (ORCPT ); Fri, 20 Sep 2019 09:03:27 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20190920130325euoutp013a6f7968f16e994aaed470ff1965ded9~GJy_xdpRN2955929559euoutp01b for ; Fri, 20 Sep 2019 13:03:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20190920130325euoutp013a6f7968f16e994aaed470ff1965ded9~GJy_xdpRN2955929559euoutp01b DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1568984606; bh=y4Kvy/he22nbkNnh3UtlDLg5F84jBQHhkJan8z/Dg4I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=reh4OU8rVu5iGu+lGWWMQfJ7h4gdclU/318CVSIL9C7qMv3GyO4KGpgvCuLQ+0eXs cUN8zXJT95fmblWDPwlntoYQeDuFP8vbPecdvWKymx0Ggw2K7k4pj2TtlIYAywyE/i tmTDnVXr1S2Cc6455m+JrgoPxMrZlaZciHN3QfGE= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20190920130325eucas1p2fc72e9073210a504295088ca09b9013d~GJy_VE9wR1581315813eucas1p2m; Fri, 20 Sep 2019 13:03:25 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id BC.DC.04469.D1EC48D5; Fri, 20 Sep 2019 14:03:25 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20190920130324eucas1p118bfab45306a29752bf4c1cfdd8f61a1~GJy9gDx6M2867428674eucas1p1i; Fri, 20 Sep 2019 13:03:24 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20190920130324eusmtrp258dccde01909620f4f0c634d76513d12~GJy9M3cFN1022710227eusmtrp2H; Fri, 20 Sep 2019 13:03:24 +0000 (GMT) X-AuditID: cbfec7f2-569ff70000001175-7d-5d84ce1d21ac Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id D9.2B.04166.C1EC48D5; Fri, 20 Sep 2019 14:03:24 +0100 (BST) Received: from AMDC3061.DIGITAL.local (unknown [106.120.51.75]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20190920130323eusmtip273f4ce49ec2238905b885382f032410c~GJy8io9MM1303613036eusmtip29; Fri, 20 Sep 2019 13:03:23 +0000 (GMT) From: Sylwester Nawrocki To: broonie@kernel.org, krzk@kernel.org Cc: lgirdwood@gmail.com, ckeepax@opensource.cirrus.com, sbkim73@samsung.com, alsa-devel@alsa-project.org, robh+dt@kernel.org, devicetree@vger.kernel.org, patches@opensource.cirrus.com, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, b.zolnierkie@samsung.com, m.szyprowski@samsung.com, Sylwester Nawrocki Subject: [PATCH v2 09/10] ARM: dts: arndale: Add audio support (WM1811 CODEC boards) Date: Fri, 20 Sep 2019 15:02:18 +0200 Message-Id: <20190920130218.32690-10-s.nawrocki@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190920130218.32690-1-s.nawrocki@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA0WSa0gUYRSG+2ZndkZpZdwV/NJSWoowyk1ZYSKRiqKhX6HUj8xq0kGXvO54 D9S8tZptFpriBTfvGnlZxWtqueoGgYtiJoipua15ScPV6ELaTmP17znved/vHA4fIZLWYS6E KjKWVUcy4XKxPdox8t10/MBoZtCJtj47amJsEKFai5sxqnDeLKYmsvSAqhgaxSiTqQWnvk5o EEq/MIlRxaZ+hHo+NINT1vUBjMrqG8Ipw+o9jBqr30ROO9At1nQx3V0yg9P6xhwx3VadSheV 7QBa294IaKve7RJ+1d43hA1XxbNqhd9N+7Ds3mEs+qljYvX4OpoGtiW5gCAgqYQ9W665wI6Q kvUA6ivRXGBv400ANzKmgVBYAWwunxTzLj6Q19uCCYk6ABcX9v1LrGlrUb4hJr3gg2Et4NmJ PAJni9Mx3iQilxCYP9yE8A0ZeQV26N7+eQklD0Pj9ADOs4T0hd8sJiBMc4fPWl6KeLaz6UtT lQj/ECT1OLQU/sAE0zk4vKxDBZbBZWM7LvB+uNNdsRvIALa9p3GhyAdw1qjbHXEKGoxjGH8N EekBm3sUgnwGfswz4MKRHODUZ0deFtnwcUeRSJAlUJMtFdyH4M/GIkRgF3jfvLO7Dg21JTmI cKGHAH54+gnPB+4l/4fpAGgEzmwcFxHKcl6RbIInx0RwcZGhnsFREXpg+z5vto0bXWBr/NYg IAkg3yuhRzKDpBgTzyVFDAJIiOROk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durLjgdW6AULNu9aNkOoxChySGvSpaFpyseVzkY4td96MlU7wlVa5RY ijMSDbWYi4oTAX30pqWaAgAA X-CMS-MailID: 20190920130324eucas1p118bfab45306a29752bf4c1cfdd8f61a1 X-Msg-Generator: CA X-RootMTR: 20190920130324eucas1p118bfab45306a29752bf4c1cfdd8f61a1 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190920130324eucas1p118bfab45306a29752bf4c1cfdd8f61a1 References: <20190920130218.32690-1-s.nawrocki@samsung.com> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org Add sound node and the clock configurations for the I2S controller for audio support on the Exynos5250 SoC Arndale boards with WM1811 based audio daughter board. We need to increase drive strength of the I2S bus, otherwise the audio CODEC doesn't work. Likely the CODEC's master clock is the main issue here. Signed-off-by: Sylwester Nawrocki --- Changes since v1: - moved &clock, &clock_audss parts to preserve alphabetical order --- arch/arm/boot/dts/exynos5250-arndale.dts | 27 +++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/exynos5250-arndale.dts b/arch/arm/boot/dts/exynos5250-arndale.dts index dc6fa6fe83f1..7247efe2ec12 100644 --- a/arch/arm/boot/dts/exynos5250-arndale.dts +++ b/arch/arm/boot/dts/exynos5250-arndale.dts @@ -11,6 +11,7 @@ #include #include #include +#include #include "exynos5250.dtsi" / { @@ -135,6 +136,12 @@ }; }; + sound { + compatible = "samsung,arndale-wm1811"; + samsung,audio-cpu = <&i2s0>; + samsung,audio-codec = <&wm1811>; + }; + fixed-rate-clocks { xxti { compatible = "samsung,clock-xxti"; @@ -151,6 +158,16 @@ }; }; +&clock { + assigned-clocks = <&clock CLK_FOUT_EPLL>; + assigned-clock-rates = <49152000>; +}; + +&clock_audss { + assigned-clocks = <&clock_audss EXYNOS_MOUT_AUDSS>; + assigned-clock-parents = <&clock CLK_FOUT_EPLL>; +}; + &cpu0 { cpu0-supply = <&buck2_reg>; }; @@ -502,9 +519,11 @@ &i2c_3 { status = "okay"; - wm1811a@1a { + wm1811: codec@1a { compatible = "wlf,wm1811"; reg = <0x1a>; + clocks = <&i2s0 CLK_I2S_CDCLK>; + clock-names = "MCLK1"; AVDD2-supply = <&main_dc_reg>; CPVDD-supply = <&main_dc_reg>; @@ -540,9 +559,15 @@ }; &i2s0 { + assigned-clocks = <&i2s0 CLK_I2S_RCLK_SRC>; + assigned-clock-parents = <&clock_audss EXYNOS_I2S_BUS>; status = "okay"; }; +&i2s0_bus { + samsung,pin-drv = ; +}; + &mixer { status = "okay"; };