From patchwork Wed Oct 2 15:28:31 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: 11171347 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 DC2DD13BD for ; Wed, 2 Oct 2019 15:28:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8D97221D80 for ; Wed, 2 Oct 2019 15:28:45 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="b3IosqaB" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728839AbfJBP2p (ORCPT ); Wed, 2 Oct 2019 11:28:45 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:40236 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728836AbfJBP2o (ORCPT ); Wed, 2 Oct 2019 11:28:44 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20191002152843euoutp016bf9cfd96ad6014fc6222228f95856d5~J3hQictUi2888228882euoutp01O for ; Wed, 2 Oct 2019 15:28:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20191002152843euoutp016bf9cfd96ad6014fc6222228f95856d5~J3hQictUi2888228882euoutp01O DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1570030123; bh=KpLLVvizVFJlbuG5FNM/yxSQ5grDqz/h6He5fDPmduI=; h=From:To:Cc:Subject:Date:References:From; b=b3IosqaB0iUvnkmDBWtSQOiXk33YEGxWFIslovnRHq3Qt5CWiKa0v6FSd/s84p2Ez iGEyWl11zlo5j7loeNNT795N+NNBaEhkh/uZm6kVA1UJLdErqg+4BH23sLOboqRcJG XOU8zXNCLoAWRSgRwWL6LrxihuSfeHmbZBFOChm0= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20191002152842eucas1p17b238b5dfa827747b4c6c4a5f6f98eae~J3hQUh7891745417454eucas1p1b; Wed, 2 Oct 2019 15:28:42 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 3E.CF.04309.A22C49D5; Wed, 2 Oct 2019 16:28:42 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20191002152842eucas1p281f3fb4b7efffaf74fa89ffaa4108b3f~J3hQF6Fgl2442424424eucas1p2Q; Wed, 2 Oct 2019 15:28:42 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20191002152842eusmtrp1de6c2814300e9dbe41f97e834be4780a~J3hQFTUTb3256132561eusmtrp1g; Wed, 2 Oct 2019 15:28:42 +0000 (GMT) X-AuditID: cbfec7f4-ae1ff700000010d5-dc-5d94c22a63d5 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id F6.E2.04166.A22C49D5; Wed, 2 Oct 2019 16:28:42 +0100 (BST) Received: from AMDC3061.DIGITAL.local (unknown [106.120.51.75]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20191002152842eusmtip17256df3fee68d94f9f00899476aa5a54~J3hPqKm6G2682526825eusmtip1c; Wed, 2 Oct 2019 15:28:42 +0000 (GMT) From: Sylwester Nawrocki To: krzk@kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, robh+dt@kernel.org, b.zolnierkie@samsung.com, m.szyprowski@samsung.com, Sylwester Nawrocki Subject: [PATCH RESEND] ARM: dts: arndale: Add audio support (WM1811 CODEC boards) Date: Wed, 2 Oct 2019 17:28:31 +0200 Message-Id: <20191002152831.18509-1-s.nawrocki@samsung.com> X-Mailer: git-send-email 2.17.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrHIsWRmVeSWpSXmKPExsWy7djP87pah6bEGvRPMrfYOGM9q8X8I+dY Lc6f38BusenxNVaLGef3MVmsPXKX3aJ17xF2i8Nv2lkdODw2repk89i8pN6jb8sqRo/Pm+QC WKK4bFJSczLLUov07RK4Mr5vvMpecF6wYt+572wNjCv5uhg5OSQETCS+Xp7N3sXIxSEksIJR 4sjNi6wQzhdGie+nTjNDOJ8ZJb5O+c8C0/Ll2QswW0hgOaPE/kfOcB2/711jAkmwCRhK9B7t YwSxRQSEJe4tXQ62g1ngAaPE7rsXmEESwgIhEm9/doMVsQioSnz6swHM5hWwlng2fzHUNnmJ 1RsOgJ0hIXCdTeJ/zxMmiISLxMejp9khbGGJV8e3QNkyEqcn97BANDQzSvTsvs0O4UxglLh/ fAEjRJW1xOHjIK9yAN2kKbF+lz5E2FFixZKPTCBhCQE+iRtvBUHCzEDmpG3TmSHCvBIdbUIQ 1SoSv1dNhzpHSqL7CSiEQEo8JKYfsYUEUKzEmWO/WScwys1CWLWAkXEVo3hqaXFuemqxUV5q uV5xYm5xaV66XnJ+7iZGYCo4/e/4lx2Mu/4kHWIU4GBU4uFtCJocK8SaWFZcmXuIUYKDWUmE 99L6KbFCvCmJlVWpRfnxRaU5qcWHGKU5WJTEeasZHkQLCaQnlqRmp6YWpBbBZJk4OKUaGHd+ CO/erVrmVl81g2N9SrFxSoJwNFPp0S8Ca35/iudP/rdgi8KaX/IzNaWcDpw6yyGybWkBy23G hPl7RI8bKaRVF/LG/6j2lBLT91qZdlf+073HOt1XTn6bsuFa5pRnS/kjppU/e71KQ3XJwX7P W5U79bTUg1/xP3jwes0vZXdDXVHxq4+Fi5RYijMSDbWYi4oTAcPhc8wBAwAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrCLMWRmVeSWpSXmKPExsVy+t/xu7pah6bEGmz/pmGxccZ6Vov5R86x Wpw/v4HdYtPja6wWM87vY7JYe+Quu0Xr3iPsFofftLM6cHhsWtXJ5rF5Sb1H35ZVjB6fN8kF sETp2RTll5akKmTkF5fYKkUbWhjpGVpa6BmZWOoZGpvHWhmZKunb2aSk5mSWpRbp2yXoZXzf eJW94Lxgxb5z39kaGFfydTFyckgImEh8efaCpYuRi0NIYCmjxIVTk5m7GDmAElIS81uUIGqE Jf5c62KDqPnEKNE2/zQTSIJNwFCi92gfI4gtAlR0b+lydpAiZoEXjBITXs9lAUkICwRJ9O+e BdbAIqAq8enPBrAGXgFriWfzF7NAbJCXWL3hAPMERp4FjAyrGEVSS4tz03OLDfWKE3OLS/PS 9ZLzczcxAkNw27Gfm3cwXtoYfIhRgINRiYe3IWhyrBBrYllxZe4hRgkOZiUR3kvrp8QK8aYk VlalFuXHF5XmpBYfYjQFWj6RWUo0OR8YH3kl8YamhuYWlobmxubGZhZK4rwdAgdjhATSE0tS s1NTC1KLYPqYODilGhindJjIb0/L2/lW5rSGzMeHDoX5Wl8iJTcFuAZ+2se1O144TJzra+v0 nYwvQtinZM1Oiv0+u1xuh6BOUcb3E3t97R7OeyzFLvjFrMVMautz7a7Vm75xGTX0rz8+X1Hl 7MLeQ3a2HKmTyhVDcvpiBN0VPL5eNuHMvvEsr+qkjJX9Dc5qn+crU5VYijMSDbWYi4oTAfww VM9XAgAA X-CMS-MailID: 20191002152842eucas1p281f3fb4b7efffaf74fa89ffaa4108b3f X-Msg-Generator: CA X-RootMTR: 20191002152842eucas1p281f3fb4b7efffaf74fa89ffaa4108b3f X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20191002152842eucas1p281f3fb4b7efffaf74fa89ffaa4108b3f References: 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 v2: - none. 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(-) -- 2.17.1 diff --git a/arch/arm/boot/dts/exynos5250-arndale.dts b/arch/arm/boot/dts/exynos5250-arndale.dts index 6fcb78a354fe..d6c85efdb465 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 = ; +}; + &mali { mali-supply = <&buck4_reg>; status = "okay";