From patchwork Wed Jun 17 17:33:38 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dong Aisheng X-Patchwork-Id: 6627391 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id E1178C0020 for ; Wed, 17 Jun 2015 17:39:34 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 14C9320860 for ; Wed, 17 Jun 2015 17:39:34 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2EF8C20858 for ; Wed, 17 Jun 2015 17:39:33 +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 1Z5HHG-0001Xm-FR; Wed, 17 Jun 2015 17:37:30 +0000 Received: from mail-bn1on0146.outbound.protection.outlook.com ([157.56.110.146] helo=na01-bn1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Z5HGh-0000xs-5G for linux-arm-kernel@lists.infradead.org; Wed, 17 Jun 2015 17:36:56 +0000 Received: from CO2PR03CA0043.namprd03.prod.outlook.com (10.141.194.170) by BY2PR03MB254.namprd03.prod.outlook.com (10.242.37.17) with Microsoft SMTP Server (TLS) id 15.1.195.6; Wed, 17 Jun 2015 17:36:30 +0000 Received: from BN1BFFO11FD004.protection.gbl (2a01:111:f400:7c10::1:150) by CO2PR03CA0043.outlook.office365.com (2a01:111:e400:1414::42) with Microsoft SMTP Server (TLS) id 15.1.190.14 via Frontend Transport; Wed, 17 Jun 2015 17:36:30 +0000 Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=freescale.com; lists.infradead.org; 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 BN1BFFO11FD004.mail.protection.outlook.com (10.58.144.67) with Microsoft SMTP Server (TLS) id 15.1.190.9 via Frontend Transport; Wed, 17 Jun 2015 17:36:28 +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 t5HHZpv5016757; Wed, 17 Jun 2015 10:36:22 -0700 From: Dong Aisheng To: Subject: [PATCH 5/5] dts: imx7: fix sd card gpio polarity specified in device tree Date: Thu, 18 Jun 2015 01:33:38 +0800 Message-ID: <1434562418-24090-6-git-send-email-aisheng.dong@freescale.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1434562418-24090-1-git-send-email-aisheng.dong@freescale.com> References: <1434562418-24090-1-git-send-email-aisheng.dong@freescale.com> X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD004; 1:nxWMuIWLcqvzS8R7M2Nm3hXT0ZD9SmFzzzyvCsj0NMq2721gtYYzhUE2oo3b2rCL+LBITP3Tl6fRs3vjIugjpvqBZS70tHVdTqolf0Pcg02DMIUfiW8DGY2S8rdg/IAiCGyCVngIZQ8ilM7wpR8P/dQmemz+zriTjd5B3m4JndHHREJDotoilHiyLLmvsi5kMjAWf/gKwKSFpyPOjAHdrYzD8BrO/XK12HyCU8G8+zsxxsWEiSszkie3EB8+T3T5HERqMe1XeQ2KNkWDuU3pfMqKq39urT0VAP9xKwjGnemFk4vRY2DADbDlpNX3fW5EqrXImE/qpwJFkHXmqjbzKk5FXRoERh6bPkbSDtRA1G0= X-Forefront-Antispam-Report: CIP:192.88.158.2; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(2980300002)(339900001)(199003)(189002)(46102003)(2351001)(85426001)(76176999)(86362001)(47776003)(81156007)(36756003)(50226001)(48376002)(50466002)(33646002)(50986999)(5001960100002)(229853001)(110136002)(2950100001)(62966003)(77156002)(189998001)(19580405001)(19580395003)(104016003)(6806004)(105606002)(87936001)(77096005)(106466001)(92566002); DIR:OUT; SFP:1102; SCL:1; SRVR:BY2PR03MB254; H:az84smr01.freescale.net; FPR:; SPF:Fail; MLV:ovrnspm; A:1; MX:1; PTR:InfoDomainNonexistent; LANG:en; MIME-Version: 1.0 X-Microsoft-Exchange-Diagnostics: 1; BY2PR03MB254; 2:HLNTWo85zzNidiVyZTfpX5JVWJ9r0MxXDw78ur0Xh1CVd0j5WBynrpfOyXTRglKW; 3:7F7OTs7VhGXzfHbrSIfVQYvwuy+cs9F0HWh9iqpuKEybYPygHzUIHgspVKXprtIEG7N9Y8TKJLKMWWJHo0GX77sUjPFHEw5qDwbJbGn4aME0DpMdugyMhqMrL+ai/oDXmvQXMn+GbSBQa4lrgoSGb4cRcz4xDrjZJk3AjrbVtgcib1Ev+klZTFCEVan/u6R/+GrkQzI4709hQytwrUSMijjroDVSAgdhW2nKrunAIaQ=; 20:AXwzOqvPP/puuWqXH1E1QBQr1EdHmYx1OUJVzWa/v9VBHXHPnS6vjbodBEd3YZxzJLrTVAaWaF1Ou+i4S/sHzeutoFAWc6HB5tXFcg/EB/fSQ+CFe5CTvoEC+kO/tj7sot+zbx9TCAW63UvkV54NcUrycyUIe77b8bMseSrOVHGuvSbqtC4nQt4rKp3D3CnJM0sl6i6sgbMfsg1PwiGZo7HbIH8kfpELGEz1ldqPPfmLllCv2Yx3RegE57dilRF+vOqDzuqE8+WHrWbpwMMWTjEZXJS9yA2kYA+r2Uw+whoyXMdFYWd4zyubuVqi3BmgQ3HySQwUUu4giXKIdlitt+E2N0C+7UCW1bHaiEaI3Xg=; 4:GYnuIKxAqSlZ8VVsCic+t5w7325JHwpIHdHArhjqtjZ82B0xqa9DU544JcuC4fOu3UIyrtDhaUHietBtYzs3k1S0FAsu+9PfrIDQq1lnd4YfuCzAspwXetm9zJdsrQmN+u9h9bSm5YyL/LD/89fXPrK8gv9v+zeMc1CapMg2XTM3qLmmJDprm0v7RV3ZItrKgmoeNhLJTgszAN2RrUBf62ziT+p44ruaSb1BHuYkpPCfZJUWxz4INvkOwmXJY0PX+K9euXzISgoil5mwDRpqezI78LP8eWZug8tHxvZhgJE= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY2PR03MB254; 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:BY2PR03MB254; BCL:0; PCL:0; RULEID:; SRVR:BY2PR03MB254; X-Forefront-PRVS: 0610D16BBE X-Microsoft-Exchange-Diagnostics: 1; BY2PR03MB254; 23:gT7Y8Sk+jloveyqkbn4n2sp7GhT+GYXCip2bVkuA0SI4EX/f6Ckka5e7zYIVjGmyO3nEWR7nO6ENmofQwWhteHB7mgR63ZTOdrqT5jSsa8cH/r5DbgJYzjAWaOAmLkyrrmDcXerYqOkkOh8IBao0m7dRY7ciV+O5nslm+iYl6jVkO71WGyfGw5mSpcRr1Oeq1vryOaDfhA2h5LHZxfoqgFpqoBEv+QhagjYUjlGtrQMFuBxC4Y3bIhqwbWFKTQwWFC04OOwsSPV+aDHCW2e6s85sin0y1Er7WrtAm6AB1igLApErwObcY6PVcMI5fwiBwPIrSAfddUeTStMFmaAzp9aGT4EpNsYQjRMDb3fO3sQQI/3+OWr+J/JU2VzZLe+WWRJe5EC6DIBKkktueZNXfvO77ubAzzqG6pZLnZ/KPcOBQHdV8eyxCMOwDhleVY+w+bwMBRhYH4EivwlQvoBNCVmeU8tDuFClJOSX41VTq4ipAHkkczxcPvRt6iTgV35FvShYEPKHKAfwC/TwnU3wlo71mYYKx5AEfPulBF2kfviEqpAGuqe2c6o1EL/KcfkpHUzyh5LjT1ZtclbuVJN1uZ5fzOIW3k3swE9leUtQL596PmCEgjAK+mJTS/2r8zX/D+nbU2zdQoBjgZk6UKkq01Q7DGoHfECR5YUTRO26LkC2xKN4QXb/deskBsScYfcx4XKeS0FCAVBoH4FBJqrlkBYSomsM9QN7dPVMKJlvxcJeUuCBjh19Ql3GxuxGCyTelPz7D0VIzk/w7FJHW7mdhx00RXSdoGrcUYgvi8j9mKPJnSL5jKdw1Gbq0DMdE6dfLcYQWVinHJ+Aj+MQvWLMbex5ShFOXqHI7NJc8nuCbV43iuQsmFLZLK9wykhPQNQcxKs+VBwitYf5DwKb2Q6bow== X-Microsoft-Exchange-Diagnostics: 1; BY2PR03MB254; 5:0J4lN+gDf7oBCu3NK8HFy5vEJLcwH+Gq50lB8FAE9BqrUaD6gLJiVc5LJePJOpvvzhbGARR762QK+8kvX32Fe/0T0KpLaIxWqGhcVPL/sdfesmM+SiUwII9yNt9e64jKmVyirDDs9OG3QqdtkJJ8RQ==; 24:4gGPVbHrCYPKR35BdvhixHIHHaQjDVaEefSAMU5YEV8f69Xh6R2REVcsX9mdUJzF8fJ9wjLn8/AK3nOwUB4ZF6S390KaGEJeTPMitaFI/cI=; 20:cJXt5rGiiIoSann8Y4dz/FPAPDJOVOl4k//dtP8oTMDwtc4IZHFe/7MIQQ+v7xro19zFu0Mu5QiaM1/qNCwcnA== X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jun 2015 17:36:28.8127 (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: BY2PR03MB254 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150617_103655_529705_FB9CC32E X-CRM114-Status: UNSURE ( 7.08 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.0 (/) Cc: fabio.estevam@freescale.com, marex@denx.de, ulf.hansson@linaro.org, s.trumtrar@pengutronix.de, smoch@web.de, linux-arm-kernel@lists.infradead.org, robertcnelson@gmail.com, s.hauer@pengutronix.de, chris@printf.net, rabeeh@solid-run.com, troy.kisky@boundarydevices.com, lisovy@gmail.com, hs@denx.de, gwenhael.goavec-merou@armadeus.com, p.zabel@pengutronix.de, rmk+kernel@arm.linux.org.uk, shawn.guo@linaro.org, b29396@freescale.com, tharvey@gateworks.com, LW@KARO-electronics.de, ipaton0@gmail.com X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.8 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";