From patchwork Tue Jan 3 11:22:46 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gary Bisson X-Patchwork-Id: 9494771 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 39225606A7 for ; Tue, 3 Jan 2017 11:25:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1E4BC200F5 for ; Tue, 3 Jan 2017 11:25:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 12D3B26CF9; Tue, 3 Jan 2017 11:25:15 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id BA0F1200F5 for ; Tue, 3 Jan 2017 11:25:14 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1cONBl-0007BE-3B; Tue, 03 Jan 2017 11:23:33 +0000 Received: from mail-wm0-x235.google.com ([2a00:1450:400c:c09::235]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1cONBY-00073X-9M for linux-arm-kernel@lists.infradead.org; Tue, 03 Jan 2017 11:23:21 +0000 Received: by mail-wm0-x235.google.com with SMTP id c85so197051913wmi.1 for ; Tue, 03 Jan 2017 03:22:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=boundarydevices-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=PiYvO/hdst1LmWx1VmW7csdqgXr4uYs7b/Rw8jeUQws=; b=byry//f1q9Ul9b9sP/MpBJ5MR+sKvkrKgBMwkSWb2dyyglR1e6bxgeEXBXgTwUpvZ2 8ENrsppqw7AVXsAXEt2+Hk3sqLGiWbdsO3diuwlazv28X2yUAuQ6y/N5R5CAG/X5gGZk GG6j/2aQbjgU7kAVZyRgt/ttVRFJBUM/3/kXAEHnoG0Ud/CeKVFRMVetl65dRArRqkdN poC2vhemxWbb4xFkE2wKXM+oXBvP/UM+2Ice25wN4Q6U0+8Tjznf3Yb6Z3+GY15m8tFz 2QbIVIa3GJalTAm2wtYJ3nmKc3KVbsodUaJXL9avtloW67iNy1ufx5DUm9fcVQXZYGdY 6W2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=PiYvO/hdst1LmWx1VmW7csdqgXr4uYs7b/Rw8jeUQws=; b=K8A2plJ6o0/1Hz0Y/8xbZTO5s4y/s8+8TESZzfSQV/GDLkmV49lfwhOnz8okFYgfew VyeQAXwbRzAZlqN7Jq8Oi4pRCTpHX3bTO4wHdk7P9EO1AS48Tsekjg8XLg4SlgxQyGxw fkBkszj4IONDKvNauOZOLwSUHhNIWsyQ1pT8v+/6xVBwo5cdLT6PIv9fehBuNL1ich9A ehCL1UMQrfA4Ra5pP3tgpr0XOMPJbR5HVIPNYZoyZFUEuF6R7B+atW12bzgz6aXmP8sj hiUQl59EbZLqo0Act7CCgxHA1/un/HZZ9L1X0HGMsnxbxYBR7fMjtGcYxE9FbHHP4wU+ Nrgw== X-Gm-Message-State: AIkVDXLLduLnONmyJK9UwW6ZYhDptZe8t9zFhXwK3qxETkZhRwgC0EBKRMwPh/XbT0VYJA== X-Received: by 10.28.1.135 with SMTP id 129mr59625554wmb.108.1483442578286; Tue, 03 Jan 2017 03:22:58 -0800 (PST) Received: from t450s.home (AStLambert-153-1-56-89.w83-204.abo.wanadoo.fr. [83.204.135.89]) by smtp.googlemail.com with ESMTPSA id e5sm89026872wma.12.2017.01.03.03.22.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 03 Jan 2017 03:22:57 -0800 (PST) From: Gary Bisson To: shawnguo@kernel.org Subject: [PATCH 1/2] ARM: dts: imx6qdl-nitrogen6_max: fix sgtl5000 pinctrl init Date: Tue, 3 Jan 2017 12:22:46 +0100 Message-Id: <20170103112247.4563-2-gary.bisson@boundarydevices.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170103112247.4563-1-gary.bisson@boundarydevices.com> References: <20170103112247.4563-1-gary.bisson@boundarydevices.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170103_032320_521306_DBD06366 X-CRM114-Status: GOOD ( 13.16 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: fabio.estevam@nxp.com, devicetree@vger.kernel.org, Gary Bisson , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This patch fixes the following error: sgtl5000 0-000a: Error reading chip id -6 imx-sgtl5000 sound: ASoC: CODEC DAI sgtl5000 not registered imx-sgtl5000 sound: snd_soc_register_card failed (-517) The problem was that the pinctrl group was linked to the sound driver instead of the codec node. Since the codec is probed first, the sys_mclk was missing and it would therefore fail to initialize. Signed-off-by: Gary Bisson --- arch/arm/boot/dts/imx6qdl-nitrogen6_max.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/imx6qdl-nitrogen6_max.dtsi b/arch/arm/boot/dts/imx6qdl-nitrogen6_max.dtsi index 34887a10c5f1..47ba97229a48 100644 --- a/arch/arm/boot/dts/imx6qdl-nitrogen6_max.dtsi +++ b/arch/arm/boot/dts/imx6qdl-nitrogen6_max.dtsi @@ -319,8 +319,6 @@ compatible = "fsl,imx6q-nitrogen6_max-sgtl5000", "fsl,imx-audio-sgtl5000"; model = "imx6q-nitrogen6_max-sgtl5000"; - pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_sgtl5000>; ssi-controller = <&ssi1>; audio-codec = <&codec>; audio-routing = @@ -402,6 +400,8 @@ codec: sgtl5000@0a { compatible = "fsl,sgtl5000"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_sgtl5000>; reg = <0x0a>; clocks = <&clks IMX6QDL_CLK_CKO>; VDDA-supply = <®_2p5v>;