From patchwork Wed Jul 22 12:53:04 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dong Aisheng X-Patchwork-Id: 6844341 Return-Path: X-Original-To: patchwork-linux-arm@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 3501C9F1D4 for ; Wed, 22 Jul 2015 14:06:57 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5C3C92058C for ; Wed, 22 Jul 2015 14:06:56 +0000 (UTC) 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.kernel.org (Postfix) with ESMTPS id 42CD520722 for ; Wed, 22 Jul 2015 14:06:55 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZHudh-0006vJ-1O; Wed, 22 Jul 2015 14:04:53 +0000 Received: from mail-by2on0103.outbound.protection.outlook.com ([207.46.100.103] helo=na01-by2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZHucj-00066W-0z for linux-arm-kernel@lists.infradead.org; Wed, 22 Jul 2015 14:03:54 +0000 Received: from BN3PR0301CA0054.namprd03.prod.outlook.com (10.160.152.150) by CY1PR03MB1421.namprd03.prod.outlook.com (10.163.17.143) with Microsoft SMTP Server (TLS) id 15.1.225.19; Wed, 22 Jul 2015 14:03:31 +0000 Received: from BN1AFFO11FD050.protection.gbl (2a01:111:f400:7c10::149) by BN3PR0301CA0054.outlook.office365.com (2a01:111:e400:401e::22) with Microsoft SMTP Server (TLS) id 15.1.219.17 via Frontend Transport; Wed, 22 Jul 2015 14:03:31 +0000 Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=freescale.com; gmail.com; dkim=none (message not signed) header.d=none; Received-SPF: Fail (protection.outlook.com: domain of freescale.com does not designate 192.88.158.2 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Received: from az84smr01.freescale.net (192.88.158.2) by BN1AFFO11FD050.mail.protection.outlook.com (10.58.53.65) with Microsoft SMTP Server (TLS) id 15.1.213.8 via Frontend Transport; Wed, 22 Jul 2015 14:03:22 +0000 Received: from shlinux2.ap.freescale.net (shlinux2.ap.freescale.net [10.192.224.44]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id t6ME2iY3019637; Wed, 22 Jul 2015 07:03:16 -0700 From: Dong Aisheng To: Subject: [PATCH V2 05/11] dts: imx7: fix sd card gpio polarity specified in device tree Date: Wed, 22 Jul 2015 20:53:04 +0800 Message-ID: <1437569590-5228-6-git-send-email-aisheng.dong@freescale.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1437569590-5228-1-git-send-email-aisheng.dong@freescale.com> References: <1437569590-5228-1-git-send-email-aisheng.dong@freescale.com> X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD050; 1:saF6oWKshLWyLdN8uo9QDwF0AeJqbMcW54zxPTBK+KBp37kyLTANS/gqPNAuEA3J0b0n/gOI7rLOUOtqGbWwWjcjTD1YD9YW/z2LviZy44MAXU/zw3dFHD9OOuNdseedLiMBDvMNRHkW8lepDSoCykc9f9Ag6mXXH3r0ouBjpZfOzgZHvmjFW1mOXcPeOymcFldVZVM+UNfUtIYX2FWIdGhwzMLJOP2A/C10EJOlwxlZdbAutQiipEixYlQi9aV2u3yzZxXk7w1npLKhWwsO1rEMSyfhJOsrnL2r8+xJrz0yWSt1nV2UQxQkIvvBXRZ+VapeVeIj4NU7jZUHDlrONRbH0PsPHolpg7B0YMTjdtHlo4aeJ5BWseJTgUCfYvtbqFnn39yQH/jOFZbjeVgUNCXYpeYiuCB17Cp/ClAki9YcRNKzQQS7l4QmRhJ+dxfM X-Forefront-Antispam-Report: CIP:192.88.158.2; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(2980300002)(339900001)(199003)(189002)(104016003)(105606002)(5001920100001)(87936001)(85426001)(50226001)(86362001)(5001960100002)(106466001)(77156002)(62966003)(110136002)(2351001)(229853001)(33646002)(48376002)(47776003)(6806004)(189998001)(19580405001)(19580395003)(50466002)(92566002)(50986999)(5003940100001)(36756003)(2950100001)(77096005)(76176999)(46102003); DIR:OUT; SFP:1102; SCL:1; SRVR:CY1PR03MB1421; H:az84smr01.freescale.net; FPR:; SPF:Fail; MLV:sfv; A:1; MX:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Exchange-Diagnostics: 1; CY1PR03MB1421; 2:QDm/wTuGWhpnzbhvEFXeYEy0NQpIspRwEXciYFQmo9To9ViMnfhKKdITvZPcr5zz7I09JMzCLJKady2M9fwTkXbi6cxyD4HABcdeFguHCSc/WTADIiBoocWSTZv0piqgRovVj/C7RDcKlnOM9c4rBEi2HfeCbrAkPOYbW6RlxAE=; 3:47D47KSdMNnIv8uzvYJP6qpqYOxuZ1VIwlUTK6mGwqxzKVDpYt3hCjef2EBI86Mlo7LfhQ1284T4/X58Hd7D3m5MggxQxQHy9yc7sxKv5Q51ZkQZ9ZbVrAWctdczccFOF9l4cgXCI9DDwNDeSSFgSP0TPJE75O5fczmb1nf1VGsKGHsmTjHo1tUqFJP0SwzjsI8dPWJflsi9d81ffHRFOAY6SUzP6TAyPpTrFNKItg8=; 25:y8dh7A5b3JS0GoKVnskf0b+3lqn/MZBhAPu9YrnXxTNkIQDzjlZjTF4vyY8yiTTHigSKmGpkgz2M5YTEVFBFx7AwZk8hvug/5HRdHiyM6kzsfHwOv2TFQt26B/8aduLaY+W5AotmSu3Tu1LUF29fJv96OkMSPoUqDcDN7uxbfXoo7M1PmkhgTLjLR61dxAlh1c8vRwFUzWOe+GE/qp4K2T9yY8IcTY2ZVONhiONQ6iDVaBY9+kmKgdynXiSCdrsCr6m+3XDYLk/jacTNXtxqFQ== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY1PR03MB1421; X-Microsoft-Exchange-Diagnostics: 1; CY1PR03MB1421; 20:YiSy4vHgTIyytBqFNjPUuw+yCkHJJ69/9bIgnqdb5N7gsr6RPf9Tz97NNMStk1xOK5457RBG+MF9fkmcKmY5PuBsTXeibphF6qeN5vdv2c7/UdCbjIDMI3ohA3y/0ztx6/LL1DZKtJMk2qcrPGAKoVxkMXEma4//7J6x2EnTU9LkaX7/MstE/6lNQE3KTFdK9fjlXZ46wR/a/+tOSKmAAYMijFbBOhCjtYyty/4fna1DuBlzrg22pDul7QarjOJyoS/kkNqNgJceIeusNZ2RDUwybw08x+s94PzC68paWY7qrSXytOZMAkJRmfGEna50NVjhUM4NBpDY9uiTyMrB4+Vk9K9b1h17oBMZpUQRmgE=; 4:anwIY+BbP0LgL9IkJPENXXcYEby0yfpB+UEQ2d4vU0STnPezZuMJo8dKWHrd8Kn6P/gamXQRXsw6c7t91nzwt23u94Lw7xaGFeu2zv8NnySpfONI6rYfH8rFCLTNVl0WDtA2XXUb8zolAeZVoUh9ldPza0p5Y82S7Q8AExAkdP0XwD7lnCNJFMy1cQO4dTYZjISw3Il21wZ5Q285e47V56SL0bbhErId1cHp7G6nh84gLqNajoW6AJCPN+kifa0mpWmr0dp7RV87BVwgdF2A9nj0TP6XvY5BW7rwOL7AwiM= CY1PR03MB1421: X-MS-Exchange-Organization-RulesExecuted X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(5005006)(3002001); SRVR:CY1PR03MB1421; BCL:0; PCL:0; RULEID:; SRVR:CY1PR03MB1421; X-Forefront-PRVS: 0645BEB7AA X-Microsoft-Exchange-Diagnostics: 1; CY1PR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EhTeSffpuk+M/D7Dq29OIjGj/gd7KRkW5WS+vBQ6Y1CsRIJebUfhJYZnfcgd6sYCExL7LRfh80faP+xBw==; 24:PQu3js8GxUSSpvKE8Z0pQ335C0lk3ZUTVZbMirSAFtXCwZC2PGYWBeltAlG1AMB2oHRKYWiXla/5qREdSm8GctQp4FeFYGa78ZuhYR1OaPc=; 20:xxSCEtcNMeUOSb8P4z2P/KMfjRXyUNMRgH5hUh5oRUXVIQAXMZNRphry6Lgfo6SDQtxs9kmw5PwX77wBwUFEvg== X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Jul 2015 14:03:22.3921 (UTC) X-MS-Exchange-CrossTenant-Id: 710a03f5-10f6-4d38-9ff4-a80b81da590d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=710a03f5-10f6-4d38-9ff4-a80b81da590d; Ip=[192.88.158.2]; Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR03MB1421 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150722_070353_158619_293282EE X-CRM114-Status: GOOD ( 12.13 ) X-Spam-Score: -1.9 (-) 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@freescale.com, marex@denx.de, ulf.hansson@linaro.org, hs@denx.de, p.zabel@pengutronix.de, tharvey@gateworks.com, shawn.guo@linaro.org, s.hauer@pengutronix.de, ipaton0@gmail.com, chris@printf.net, rabeeh@solid-run.com, troy.kisky@boundarydevices.com, smoch@web.de, gwenhael.goavec-merou@armadeus.com, rmk+kernel@arm.linux.org.uk, lisovy@gmail.com, s.trumtrar@pengutronix.de, robertcnelson@gmail.com, b29396@freescale.com, linux-arm-kernel@lists.infradead.org, LW@KARO-electronics.de Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-5.4 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, 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 cd-gpios polarity should be changed to GPIO_ACTIVE_LOW and wp-gpios should be changed to GPIO_ACTIVE_HIGH. Otherwise, the SD may not work properly due to wrong polarity inversion specified in DT after switch to common parsing function mmc_of_parse(). Signed-off-by: Dong Aisheng --- arch/arm/boot/dts/imx7d-sdb.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/imx7d-sdb.dts b/arch/arm/boot/dts/imx7d-sdb.dts index 4d1a4b9..fdd1d7c 100644 --- a/arch/arm/boot/dts/imx7d-sdb.dts +++ b/arch/arm/boot/dts/imx7d-sdb.dts @@ -234,8 +234,8 @@ &usdhc1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_usdhc1>; - cd-gpios = <&gpio5 0 0>; - wp-gpios = <&gpio5 1 0>; + cd-gpios = <&gpio5 0 GPIO_ACTIVE_LOW>; + wp-gpios = <&gpio5 1 GPIO_ACTIVE_HIGH>; enable-sdio-wakeup; keep-power-in-suspend; status = "okay";