From patchwork Mon Oct 12 06:26:09 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alim Akhtar X-Patchwork-Id: 7372411 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 135A99F1B9 for ; Mon, 12 Oct 2015 06:35:27 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3030520752 for ; Mon, 12 Oct 2015 06:35:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 448272075F for ; Mon, 12 Oct 2015 06:35:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750888AbbJLGfY (ORCPT ); Mon, 12 Oct 2015 02:35:24 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:44326 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750705AbbJLGfW (ORCPT ); Mon, 12 Oct 2015 02:35:22 -0400 Received: from epcpsbgr3.samsung.com (u143.gpu120.samsung.co.kr [203.254.230.143]) by mailout1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0NW301NX1GYNLA00@mailout1.samsung.com>; Mon, 12 Oct 2015 15:35:11 +0900 (KST) Received: from epcpsbgm2new.samsung.com ( [172.20.52.126]) by epcpsbgr3.samsung.com (EPCPMTA) with SMTP id 18.4A.05284.F945B165; Mon, 12 Oct 2015 15:35:11 +0900 (KST) X-AuditID: cbfee68f-f796f6d0000014a4-b8-561b549fe2d6 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2new.samsung.com (EPCPMTA) with SMTP id 68.72.18629.E945B165; Mon, 12 Oct 2015 15:35:11 +0900 (KST) Received: from exypnos.sisodomain.com ([107.108.73.28]) by mmp1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0NW300CLGGY0AT21@mmp1.samsung.com>; Mon, 12 Oct 2015 15:35:10 +0900 (KST) From: Alim Akhtar To: linux-samsung-soc@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, k.kozlowski@samsung.com, kgene@kernel.org, devicetree@vger.kernel.org, dianders@chromium.org, stable@vger.kernel.org Subject: [PATCH] arm: dts: Fix audio card detection on peach boards Date: Mon, 12 Oct 2015 11:56:09 +0530 Message-id: <1444631169-19468-1-git-send-email-alim.akhtar@samsung.com> X-Mailer: git-send-email 1.7.10.4 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrOLMWRmVeSWpSXmKPExsWyRsSkTnd+iHSYwasDfBbzj5xjtTi77CCb xesXhhb9j18zW2x6fI3V4vKuOWwWM87vY7JYsPERowOHx+yGiywem1Z1snlsXlLv0bdlFaPH 501yAaxRXDYpqTmZZalF+nYJXBm7fk1kLZgiUNG0fzlTA+Mt3i5GTg4JAROJi/+PMELYYhIX 7q1n62Lk4hASWMEo0fJuJxNM0ZQDp9lAbCGBpYwSHa0BEEU/GSUWH53HApJgE9CWuDt9C1iD iICqxOe2BewgRcwCBxgl9u2dDlYkLOAs8ebKRrB1LEBFi9q2soLYvALuEufarrJAbFOU6H42 AewMCYF2don16yazQzQISHybfAioiAMoISux6QAzRL2kxMEVN1gmMAouYGRYxSiaWpBcUJyU XmSsV5yYW1yal66XnJ+7iREYvqf/PevfwXj3gPUhRgEORiUeXs4tUmFCrIllxZW5hxhNgTZM ZJYSTc4HRkleSbyhsZmRhamJqbGRuaWZkjjvQqmfwUIC6YklqdmpqQWpRfFFpTmpxYcYmTg4 pRoYze8KOc9ytpmecEL/xdHE9Tkh2a/3znugKF+zhtNibwBHc7h1xqwWlqWrOFz1Q6yva7tq Tvtat3aDbVZJrF99yDWj5NSJyYEzrA7c3nXWMy2j7XPcSvdQ1nm+mm0HW1km7LdeEhnKdNSl fYPK+q9aplq6ZUEFL6ZKXwzamvhD3I7ht7bhizglluKMREMt5qLiRAAuWco0WgIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprCIsWRmVeSWpSXmKPExsVy+t9jAd35IdJhBvNXMVvMP3KO1eLssoNs Fq9fGFr0P37NbLHp8TVWi8u75rBZzDi/j8liwcZHjA4cHrMbLrJ4bFrVyeaxeUm9R9+WVYwe nzfJBbBGNTDaZKQmpqQWKaTmJeenZOal2yp5B8c7x5uaGRjqGlpamCsp5CXmptoqufgE6Lpl 5gCdoqRQlphTChQKSCwuVtK3wzQhNMRN1wKmMULXNyQIrsfIAA0krGHM2PVrImvBFIGKpv3L mRoYb/F2MXJySAiYSEw5cJoNwhaTuHBvPZgtJLCUUaKjNaCLkQvI/skosfjoPBaQBJuAtsTd 6VuYQGwRAVWJz20L2EGKmAUOMErs2zsdrEhYwFnizZWNjCA2C1DRoratrCA2r4C7xLm2qywQ 2xQlup9NYJvAyL2AkWEVo0RqQXJBcVJ6rlFearlecWJucWleul5yfu4mRnCMPJPewXh4l/sh RgEORiUeXo4tUmFCrIllxZW5hxglOJiVRHj3BkmHCfGmJFZWpRblxxeV5qQWH2I0BTpgIrOU aHI+MH7zSuINjU3MTY1NLU0sTMwslcR5bxxiCBMSSE8sSc1OTS1ILYLpY+LglGpgnGFn/9XR LOjKC8sTWrFKa4VnBb638ukRf/9P2I31VbDrdgPF6jf6a96emTE7bUGLdEZVyfXHty02Xbjs pS01k+Hxj+Kr6qvFJM2OGfZm7OHh2yRyV+7tLaFz7K6vgtf+PPZipvvHCcHHM+y/FSw0Z/8Q Pvte48WUCc6dN3783BN4lGOhkHHZOSWW4oxEQy3mouJEAHagowqnAgAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Since the merge of 2fad972 ("ARM: dts: Add mclk entry for Peach boards"), sound card detection is broken on peach boards and gives below errors: [ 3.630457] max98090 7-0010: MAX98091 REVID=0x51 [ 3.634233] max98090 7-0010: use default 2.8v micbias [ 3.640985] snow-audio sound: HiFi <-> 3830000.i2s mapping ok [ 3.645307] max98090 7-0010: Invalid master clock frequency [ 3.650824] snow-audio sound: ASoC: Peach-Pi-I2S-MAX98091 late_probe() failed: -22 [ 3.658914] snow-audio sound: snd_soc_register_card failed (-22) [ 3.664366] snow-audio: probe of sound failed with error -22 This patch adds missing assigned-clocks and assigned-clock-parents for pmu_system_controller node which is used as "mclk" for audio codec. Signed-off-by: Alim Akhtar Fixes: 2fad972 ("ARM: dts: Add mclk entry for Peach boards") Cc: --- arch/arm/boot/dts/exynos5420-peach-pit.dts | 5 +++++ arch/arm/boot/dts/exynos5800-peach-pi.dts | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/exynos5420-peach-pit.dts b/arch/arm/boot/dts/exynos5420-peach-pit.dts index 8f4d76c..525a93a 100644 --- a/arch/arm/boot/dts/exynos5420-peach-pit.dts +++ b/arch/arm/boot/dts/exynos5420-peach-pit.dts @@ -1056,5 +1056,10 @@ timeout-sec = <32>; }; +&pmu_system_controller { + assigned-clocks = <&pmu_system_controller 0>; + assigned-clock-parents = <&clock CLK_FIN_PLL>; +}; + #include "cros-ec-keyboard.dtsi" #include "cros-adc-thermistors.dtsi" diff --git a/arch/arm/boot/dts/exynos5800-peach-pi.dts b/arch/arm/boot/dts/exynos5800-peach-pi.dts index 7d5b386..411de8f 100644 --- a/arch/arm/boot/dts/exynos5800-peach-pi.dts +++ b/arch/arm/boot/dts/exynos5800-peach-pi.dts @@ -1019,5 +1019,10 @@ timeout-sec = <32>; }; +&pmu_system_controller { + assigned-clocks = <&pmu_system_controller 0>; + assigned-clock-parents = <&clock CLK_FIN_PLL>; +}; + #include "cros-ec-keyboard.dtsi" #include "cros-adc-thermistors.dtsi"