From patchwork Thu Aug 25 18:05:47 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 9299651 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 E24FA607D8 for ; Thu, 25 Aug 2016 18:08:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D900F293EC for ; Thu, 25 Aug 2016 18:08:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CD52F293EF; Thu, 25 Aug 2016 18:08:25 +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.2 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, RCVD_IN_DNSWL_MED 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 6FAB2293EC for ; Thu, 25 Aug 2016 18:08:24 +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 1bcz3E-0004ox-H3; Thu, 25 Aug 2016 18:06:52 +0000 Received: from mail-bl2nam02on0055.outbound.protection.outlook.com ([104.47.38.55] helo=NAM02-BL2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bcz39-0004hz-MW for linux-arm-kernel@lists.infradead.org; Thu, 25 Aug 2016 18:06:48 +0000 Received: from BLUPR0301CA0017.namprd03.prod.outlook.com (10.162.113.155) by BY2PR03MB1878.namprd03.prod.outlook.com (10.164.114.18) with Microsoft SMTP Server (TLS) id 15.1.466.19; Thu, 25 Aug 2016 18:06:24 +0000 Received: from BN1AFFO11FD028.protection.gbl (2a01:111:f400:7c10::112) by BLUPR0301CA0017.outlook.office365.com (2a01:111:e400:5259::27) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.599.9 via Frontend Transport; Thu, 25 Aug 2016 18:06:23 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none; nxp.com; dmarc=fail action=none header.from=nxp.com; nxp.com; dkim=none (message not signed) header.d=none; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BN1AFFO11FD028.mail.protection.outlook.com (10.58.52.88) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.587.6 via Frontend Transport; Thu, 25 Aug 2016 18:06:23 +0000 Received: from fabio-Latitude-E6410.am.freescale.net (fabio-Latitude-E6410.am.freescale.net [10.29.244.2]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id u7PI6LBY019782; Thu, 25 Aug 2016 11:06:22 -0700 From: Fabio Estevam To: Subject: [PATCH] ARM: dts: imx7s-warp: Let the codec control MCLK pinctrl Date: Thu, 25 Aug 2016 15:05:47 -0300 Message-ID: <1472148347-504-1-git-send-email-fabio.estevam@nxp.com> X-Mailer: git-send-email 1.9.1 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131166219839922510; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(2980300002)(1109001)(1110001)(339900001)(189002)(199003)(86362001)(105606002)(36756003)(189998001)(586003)(229853001)(104016004)(92566002)(68736007)(15975445007)(7846002)(5003940100001)(2906002)(19580395003)(50226002)(19580405001)(50466002)(2351001)(626004)(8936002)(47776003)(5660300001)(305945005)(356003)(11100500001)(575784001)(110136002)(85426001)(87936001)(81166006)(8666005)(97736004)(50986999)(77096005)(81156014)(48376002)(106466001)(33646002)(8676002)(4326007)(129583001)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR03MB1878; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD028; 1:zDyC5HDQRc5+i184v1EcUM60ftjZNnt1Z5exJ2+wGWuEAwHGgCDnLnS/iffalTeQ3NUvp/ru1mPnNiPh1/CkkJ8+YEiT+iiyV2s5VceSVKmdHu0xGpuSKDsnBq7KkSKwZKPbSW5UUR5KPU9m2P00njNHHKjcmyPVwiFTt0xQj2jsm9r2+ZZxeLj8MbaqSkuYfTBeHm8/f6zLby+ChyI51rup02IukJ1HI/7HA6JIZP6Yfn0NOIeqsu5312Ld9kw6sxXevs1pUUfNJbHicbNrK1XjXfLwePJlm6uRzyKkstdkvSBdxexX3QQFuvdEiqxlLGT+surdLR3pjCKkTuNs/fRM/Thf3o7JEF6KM2l9255d4A+aDntkErR7CeDHnl5fQ/36jpl6BGbuBynHOSe7mHy2wgvWpX+5i98mGm9UQW+gfMhuO4br8GG54YMTuItF8ScYPK8mKAIOcMeTnCMh1sXWErlbd11xJ7HbwdZABDchuAcjFK1nYCaGUUAw3XXNa61zKy7e7ZvknEvFX0O/wR3LEO63S8CDOLDRslPo8zoUUoi+UP98c95fI2UeNxKHCYQbrNKw9ffqoRyyoSl4oB0smDeubS9pwEXFI+NAw9x99QKAqLt13SkFUkyH5pSpkQYgxWJ8fLLFb1HVAOJY4ZCkLHifNauFQ4jMdxyyx+fKihDB5xOmYDCD0y4lIO5sbjawy/MgbnyfxeMm1jjwPHP40IKHetBR3O1wEqORYqk= MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 7e581f6a-841b-45a1-7fed-08d3cd12868b X-Microsoft-Exchange-Diagnostics: 1; BY2PR03MB1878; 2:NE/Du5k0UAaSaej1P41O8AVvpUlLwJxuB38D2ilPUysviTsQzc+Kl5B68EihfIVpx30UFUEVHHO8U4SCPU/tQK677m0GXj+V90aERGKusEzvZTqq5vnL4xPqnrRObSmjZ/vVm01TWUZYrOKfT8VcyBsSCmVoO42TuVWPRQriviHnTzcA3OBYJv1eBDtZx71K; 3:i1B6pNyAQ8lAyki+sh2guUFVeXKbzBNe/r/IaO04qoPC/U1fbxMPqoAufq8/91SWfRTj5jPyeQAT1IxfrKvW6DqgLubo+COkcud84E01lAfGvy/0PzLOMye46SPR4oxX+oYyg750OpQKZzrfDhr3COP+aPAPttUgcy2swyqg5awdUC344z/tfuHVfh8oYWMvUrukZOKY58rPhmCHMnMuRCIvUaNCMiBPJJF5NdcFdik=; 25:HelwGSEaKG2MgUYUqGWbJs19TUczne0PZAhy5aAYt3KGo+BCEqxvBwMcuE8GJqFiiXhBTqNkS9YNRS9fJftfi8ZqEj7TVRv7nBdV6Yi85o1PIqYjhzp0FouWuQKDXT0W3b7IlH0ayJYLBphFIeHmM/PgIIGCQpbW6E4JNuPUEdWzVhwhXyZ8xXBKiGmNMUWN3xwg1tzwBcherwSb18YL80znreUXW6fHHT5XEWUOCG+KSgJt/PN8MTtrSHqX/6YbCJflm6bzTlVKTn0lt70+0Vyep2bEl9jHk6x6Ef/fZjs= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY2PR03MB1878; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(13015025)(13017025)(13023025)(13024025)(13018025)(8121501046)(5005006)(3002001)(10201501046)(6055026); SRVR:BY2PR03MB1878; BCL:0; PCL:0; RULEID:(400006); SRVR:BY2PR03MB1878; X-Microsoft-Exchange-Diagnostics: 1; BY2PR03MB1878; 4:hn73k94JlklbGIE+ofFRZ0k6irVmm8tjUXowVq1KSmaUJJBl5b4SX0431VnBoI4p1Ni+HKMN3gUNRJZOPDkU0H6ukVPQT2/RKZ3OCbKS+IpHAfWWHPWPIDJ69nh5XncP0W+mjhCMOSGG/OwCgt900RsSiLZGMEWIngb8nuKdKKNkwjpVpOvfYh4VkD5czIb78f1aeX99vLIF3G6jrsHbJyfmrE5AVs04J2PJtDHp58IKsB+TZPE3Slfb8ITmGuqYbPdNaFPdPgq0kD7aWXjDYOlz14h2dMeJ5U9LEjFRwWMBHKFs1tUDlpesuCYVWOsF66HwNwoTTJ0t08C8ncvrxBoirIplEaFL567cooELcgSeZnrH2yZBJevEXKqOUo6a68kkRG1SyN5HclGLEo1xTpRrrfBSksdy4UZ21DZVxFqmmUSQ/cPkX6OY8ZNzEv5OyKcFGYojofmhFc6u2p/ZjKQmGt5rpPuBb7gwyjvLjzav77teej6HEirVVyRJ5x5opAnPJVzkx5+hIy41zNextFGVjLaPvbqJf8Fh3jMYIy4= X-Forefront-PRVS: 0045236D47 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR03MB1878; 23:n94gnusAJNpgbBIhqmP3IbC/x/wxx1qvvb+HgvAQG?= =?us-ascii?Q?SLFfxFT26DldKg5K+e8Vv53s2bpL0PG3GmIr8CFtkuzQeFFLeMlcyPUp3Ee5?= =?us-ascii?Q?PyT/vGpkiyUk5l8zbOaGgHHW4tUAGpf0IEWvgFv0kPGcJF9JCH36YCO3hlFR?= =?us-ascii?Q?f0OWTgYfZgF6tAoR3Y5XGTgwk0AaasdVs7JxMtKGWWx6wS2PeB7SHekgQ/Cs?= =?us-ascii?Q?hYYC0Oo8g3TU5IJPJHAXJVM7cev+k9HBVAvNrDHP7nxv2rqYa+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VY/NmMKbs5OUEOW5PYpucwHBkM2ehxczOHU3xhRu9?= =?us-ascii?Q?4Nm1lJ6kVFv7kz/UeXGGUfk4xIxLIpKRLnoNg0XbGp8TeMzGAzq3C00KXnjG?= =?us-ascii?Q?XS+DaDMCnTEnvh5Q20=3D?= X-Microsoft-Exchange-Diagnostics: 1; BY2PR03MB1878; 5:pjw4ak0byrYgQ8ZtfAlF2+jN4zWemi/QGUh6HxHfVAjEl8TWXKxTFpmUOWUqJF5GcdAmyK6XwWl0PkkHliLxnIVbnn9pc8e8rkO/xUUgVVoYNoOSAZNOfw7J2UWSRGs9x90SZF171rPIictyxvTUt2M9kjRFF30yH5R/jwp9fNMb6K3WMJovGdI/HnGZ4Jg3I8b4BBdfZUS2c1bmjiaOSw==; 24:WRiSODTj3zdcudAy7IPMKKAc5g0k1NfUC0c4EcsgNiaNCn1mygT0km5Utn48tZn6tsVeCfO4QG5moApIqJAeHrDwqPtUsg6vPQNnPlyQTi8=; 7:Chiz9Y7COfy5/FPPCXda+rbvtJePWJMu42jRwnjhlEUPH/5KFRE/Bm57vnb3f6qk1+Jqgoi8AkEJo3GFtYo2yC97KVJlDdGBokThcvR9X9SD3OA9Cxs3Mvj4UT4/CH0AxAYcOkAHySoVI6V42YA8HQY75p8LeSqsrwSXQ9wgzuq0cuFWZuJIvAwAYCk3dPxEuarmqGqB+yLPSynX1pOBPecAuykh1Nbq601HAcxnY/Y= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Aug 2016 18:06:23.6022 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR03MB1878 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160825_110647_974372_F96A55BA X-CRM114-Status: GOOD ( 12.08 ) 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 , linux-arm-kernel@lists.infradead.org, stefan@agner.ch 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 sgtl5000 codec needs MCLK clock to be provided so that it can successfully read/write via I2C, so we should better let the codec control the pinctrl for such pin. Thanks to Stefan Agner who provided the fix on Toradex's tree: http://git.toradex.com/cgit/linux-toradex.git/commit/?h=toradex_imx_4.1.15_1.0.0_ga-next&id=0a55a7e5f58d46eef0d4d1d357d89e36d0c32fa4 Signed-off-by: Fabio Estevam --- arch/arm/boot/dts/imx7s-warp.dts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/imx7s-warp.dts b/arch/arm/boot/dts/imx7s-warp.dts index 92d9c857..7c3f110e 100644 --- a/arch/arm/boot/dts/imx7s-warp.dts +++ b/arch/arm/boot/dts/imx7s-warp.dts @@ -199,6 +199,8 @@ reg = <0x0a>; compatible = "fsl,sgtl5000"; clocks = <&clks IMX7D_AUDIO_MCLK_ROOT_CLK>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_sai1_mclk>; VDDA-supply = <&vgen4_reg>; VDDIO-supply = <&vgen4_reg>; VDDD-supply = <&vgen2_reg>; @@ -291,7 +293,12 @@ MX7D_PAD_SAI1_TX_BCLK__SAI1_TX_BCLK 0x1f MX7D_PAD_SAI1_TX_SYNC__SAI1_TX_SYNC 0x1f MX7D_PAD_SAI1_TX_DATA__SAI1_TX_DATA0 0x30 - MX7D_PAD_SAI1_MCLK__SAI1_MCLK 0x1f + >; + }; + + pinctrl_sai1_mclk: sai1grp_mclk { + fsl,pins = < + MX7D_PAD_SAI1_MCLK__SAI1_MCLK 0x1f >; };