From patchwork Mon Oct 12 12:37:18 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alim Akhtar X-Patchwork-Id: 7374511 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 9B6E69F1D5 for ; Mon, 12 Oct 2015 12:47:22 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BCB40205DA for ; Mon, 12 Oct 2015 12:47:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D584A203E6 for ; Mon, 12 Oct 2015 12:47:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751796AbbJLMrA (ORCPT ); Mon, 12 Oct 2015 08:47:00 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:51199 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751647AbbJLMq7 (ORCPT ); Mon, 12 Oct 2015 08:46:59 -0400 Received: from epcpsbgr2.samsung.com (u142.gpu120.samsung.co.kr [203.254.230.142]) by mailout1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0NW301MRPY696V60@mailout1.samsung.com>; Mon, 12 Oct 2015 21:46:57 +0900 (KST) Received: from epcpsbgm2new.samsung.com ( [172.20.52.126]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id 82.84.05272.0CBAB165; Mon, 12 Oct 2015 21:46:57 +0900 (KST) X-AuditID: cbfee68e-f791c6d000001498-fa-561babc000fe Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2new.samsung.com (EPCPMTA) with SMTP id DD.AD.18629.0CBAB165; Mon, 12 Oct 2015 21:46:56 +0900 (KST) Received: from exypnos.sisodomain.com ([107.108.73.28]) by mmp2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0NW300IYHY4LMA90@mmp2.samsung.com>; Mon, 12 Oct 2015 21:46:56 +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 v2] arm: dts: Fix audio card detection on peach boards Date: Mon, 12 Oct 2015 18:07:18 +0530 Message-id: <1444653438-6532-1-git-send-email-alim.akhtar@samsung.com> X-Mailer: git-send-email 1.7.10.4 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrOLMWRmVeSWpSXmKPExsWyRsSkTvfgaukwgxMbOSzmHznHanF22UE2 i9cvDC36H79mttj0+BqrxeVdc9gsZpzfx2SxYOMjRgcOj9kNF1k8Nq3qZPPYvKTeo2/LKkaP z5vkAlijuGxSUnMyy1KL9O0SuDKO9uxkKXgqUPH0ZA9jA+Mkvi5GTg4JAROJlT2LWSFsMYkL 99azdTFycQgJrGCU2LDpDBtM0YE5bYwQiVmMEv/ObWCGcH4CVd1bzQJSxSagLXF3+hYmEFtE QFXic9sCdpAiZoEDjBL79k4HKuLgEBZwk1jTlQ5SwwJUc3LmZbANvEDhjgnHoM5QlOh+NgHs DAmBbnaJc/++skE0CEh8m3wIbI6EgKzEpgPMEPWSEgdX3GCZwCi4gJFhFaNoakFyQXFSepGR XnFibnFpXrpecn7uJkZg+J7+96xvB+PNA9aHGAU4GJV4eDm2SIUJsSaWFVfmHmI0BdowkVlK NDkfGCV5JfGGxmZGFqYmpsZG5pZmSuK8CVI/g4UE0hNLUrNTUwtSi+KLSnNSiw8xMnFwSjUw xlpOCNCMCm16xyX3RH/SR/GEfOs9SkxfeJdtXvhvG0czjw739YvP1r5rP9U+vY1lvc20+X12 H9q3rnc3O8ISvU9jAa/gU0FTpi26bHYbklRUFSbXqiTvmHdwg53B+33OkzKD/zZf0drZkjZx xtvSBvP04Pu3GZ7t416eoKz3oMHJ/W+1Ft9NJZbijERDLeai4kQAJOiToVoCAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprCIsWRmVeSWpSXmKPExsVy+t9jQd0Dq6XDDNZNtbKYf+Qcq8XZZQfZ LF6/MLTof/ya2WLT42usFpd3zWGzmHF+H5PFgo2PGB04PGY3XGTx2LSqk81j85J6j74tqxg9 Pm+SC2CNamC0yUhNTEktUkjNS85PycxLt1XyDo53jjc1MzDUNbS0MFdSyEvMTbVVcvEJ0HXL zAE6RUmhLDGnFCgUkFhcrKRvh2lCaIibrgVMY4Sub0gQXI+RARpIWMOYcbRnJ0vBU4GKpyd7 GBsYJ/F1MXJySAiYSByY08YIYYtJXLi3nq2LkYtDSGAWo8S/cxuYIZyfjBIb7q1mAaliE9CW uDt9CxOILSKgKvG5bQE7SBGzwAFGiX17pwMVcXAIC7hJrOlKB6lhAao5OfMyG4jNCxTumHCM FWKbokT3swlsExi5FzAyrGKUSC1ILihOSs81ykst1ytOzC0uzUvXS87P3cQIjpFn0jsYD+9y P8QowMGoxMPLsUUqTIg1say4MvcQowQHs5IIr9JE6TAh3pTEyqrUovz4otKc1OJDjKZAB0xk lhJNzgfGb15JvKGxibmpsamliYWJmaWSOO+NQwxhQgLpiSWp2ampBalFMH1MHJxSDYweTvM1 u57s0qrcs8L0zOxDy555TCx28guKPCxX0BVhHiW1qkxUz3Hnos48w6sb/3ne1BQWUp9fOH/C zMncj/LV/2TPi8jnLUiSeigSNGX9Gpf9lxI9HtfP2rWrrH9DoeSmGwrVp091zs46rZwxV+vD pk02WSxbnuW3Oq3Y1FWhYysuxXej5boSS3FGoqEWc1FxIgBsLJ9QpwIAAA== 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 commit 2fad972d45c4 ("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: 2fad972d45c4 ("ARM: dts: Add mclk entry for Peach boards") Cc: Reviewed-by: Krzysztof Kozlowski --- Changes since v1: Addressed Krzysztof's review comments. 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 8f4d76c5e11c..1b95da79293c 100644 --- a/arch/arm/boot/dts/exynos5420-peach-pit.dts +++ b/arch/arm/boot/dts/exynos5420-peach-pit.dts @@ -915,6 +915,11 @@ }; }; +&pmu_system_controller { + assigned-clocks = <&pmu_system_controller 0>; + assigned-clock-parents = <&clock CLK_FIN_PLL>; +}; + &rtc { status = "okay"; clocks = <&clock CLK_RTC>, <&max77802 MAX77802_CLK_32K_AP>; diff --git a/arch/arm/boot/dts/exynos5800-peach-pi.dts b/arch/arm/boot/dts/exynos5800-peach-pi.dts index 7d5b386b5ae6..8f40c7e549bd 100644 --- a/arch/arm/boot/dts/exynos5800-peach-pi.dts +++ b/arch/arm/boot/dts/exynos5800-peach-pi.dts @@ -878,6 +878,11 @@ }; }; +&pmu_system_controller { + assigned-clocks = <&pmu_system_controller 0>; + assigned-clock-parents = <&clock CLK_FIN_PLL>; +}; + &rtc { status = "okay"; clocks = <&clock CLK_RTC>, <&max77802 MAX77802_CLK_32K_AP>;