From patchwork Wed Jul 22 12:53:03 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dong Aisheng X-Patchwork-Id: 6844311 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 A4DCC9F1D4 for ; Wed, 22 Jul 2015 14:06:20 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DB71F206E8 for ; Wed, 22 Jul 2015 14:06:19 +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 C41512058E for ; Wed, 22 Jul 2015 14:06:18 +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 1ZHud7-0006V5-QU; Wed, 22 Jul 2015 14:04:17 +0000 Received: from mail-bn1bon0146.outbound.protection.outlook.com ([157.56.111.146] helo=na01-bn1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZHucV-00064Y-7S for linux-arm-kernel@lists.infradead.org; Wed, 22 Jul 2015 14:03:46 +0000 Received: from BN3PR0301CA0079.namprd03.prod.outlook.com (10.160.152.175) by BY1PR03MB1420.namprd03.prod.outlook.com (10.162.127.150) with Microsoft SMTP Server (TLS) id 15.1.213.14; Wed, 22 Jul 2015 14:03:16 +0000 Received: from BL2FFO11FD045.protection.gbl (2a01:111:f400:7c09::172) by BN3PR0301CA0079.outlook.office365.com (2a01:111:e400:401e::47) with Microsoft SMTP Server (TLS) id 15.1.225.19 via Frontend Transport; Wed, 22 Jul 2015 14:03:17 +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 BL2FFO11FD045.mail.protection.outlook.com (10.173.161.207) with Microsoft SMTP Server (TLS) id 15.1.213.8 via Frontend Transport; Wed, 22 Jul 2015 14:03:16 +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 t6ME2iY2019637; Wed, 22 Jul 2015 07:03:10 -0700 From: Dong Aisheng To: Subject: [PATCH V2 04/11] dts: imx25: fix sd card gpio polarity specified in device tree Date: Wed, 22 Jul 2015 20:53:03 +0800 Message-ID: <1437569590-5228-5-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; BL2FFO11FD045; 1:mg3EWkzbojP6FUJl28hvl5XO/0pT2XnPxhSjBnNmPNmpoPhRigenjcV1rIG0iMkxWmVMOkggp0Weju/TwWGeWTRRFTa/SBn1a+I+5YisLLGOP/suhOxo2sqNaec5enemdmcnNbo9IyumG6ZbU4S1dOxvcKRl5KF+0GTGyXrfYzu2b8b4/iWefj77ifXL4WTlTDiRInWOVL4QwnZogKbJzsO1QYoK5yHPabFvr4pVRMsH4hqK+xj1HHx8A19AVV9SlOsAuIF+Ts34qiL6laer2NeWyjRnmQkaiN7vxDINkIPhh28jlbfZ2zGjpNwDGrgZsiTQi8/IXV/wEVeAhN8wSvOVhDpHZixGTqncrDMTjlgqr5drteVBIIwROtKyuVhkvDO6ChM/j8tdT/oa5ZAW7vQaVudU8NufC2HK34OlB6kYveZ5fwRPKVzk7ojQbJWS X-Forefront-Antispam-Report: CIP:192.88.158.2; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(2980300002)(339900001)(189002)(199003)(104016003)(33646002)(105606002)(77096005)(36756003)(62966003)(2950100001)(77156002)(5003940100001)(47776003)(92566002)(2351001)(106466001)(229853001)(50466002)(48376002)(87936001)(19580395003)(46102003)(85426001)(189998001)(50226001)(86362001)(19580405001)(50986999)(6806004)(76176999)(5001960100002)(110136002); DIR:OUT; SFP:1102; SCL:1; SRVR:BY1PR03MB1420; H:az84smr01.freescale.net; FPR:; SPF:Fail; MLV:sfv; MX:1; A:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Exchange-Diagnostics: 1; BY1PR03MB1420; 2:Q69UU5nowOv8x/U9cMN9M6Q3RQSzwrHmlOJ0YntAfpq5f8TMRshRn3Jqe0auJeva; 3:3whJNP3v+u/57SAilG9ecXg10FFlspMetTQHTwiaEP1wxztoKQlv1atjXT0+sOH/FNKItRYsBuu7bxAOBIrMvBS7DqFlsI/f7dzp0LvK+2WjYlzteZJPsKATJDCJ7NAxwtrZH7mgSzKUpEGdBllI7PMvi/vwskyr351YByqHSKAzCeFBowx63vKb3R4WNvzB4MmSKmYbn2JklVnwh16zKBoq6OHWkiWWHMLfu7lPSVI=; 25:CacLeKPIqHAHLPEnEDdmgdx9XkkiYb3SsN47IFOpgDYpU/pObn+QI+IgKr8wX5eLyLxfgYrQnlrvukkr1i7kQiwLM05VT+zzXHEh3SQ27LZnHNgLqg2j+lAnHwH0JmJPktSJB1niqe3WwNTeseZy6QRNwIFj6qujYEd4munoMRo11YWGl6WJlz/nUFPVXzZ46zVjc1X21ZIwG2v9pOdjXcRLKWB+iOIc5cTE0a1uFtAzlIDXdAGe2ps+GgeuBt7MB0o4IXiCGwaWok3GZIv6HQ==; 20:V1jXT46E5hyjHjCPe+Fpg+gJ1t090vfBRpltQWV3OztE0FaTBHQEB0zo6JuF/8f9AICb+wCheLJ9RDvj2y82YUgyVAEWjlN/tQwGhKw1kUWCr0DhS1aeUtVDQuJrpGk6ljN3MG9gADMnsPoAMs7tEs+0aXTEtMLDb69yLcsqx4TTT3AmaQ1mPdmFG5saOgh+lF3ZNHj/sB7x910D8iNdq7tREpQE8vOqeGcepii1tt6ceNTZRCj6gNagswBnTGmTzWgqnkQXrE7pYlL+B0mb7gaN/feisz0Vf0NGMVDWPNNvFcuV7Uv6qh2SqcnYdwFxMepPyd+TmEu7Nc0Ohq2UhY7ISmtUwHCxyETwWVOgMeE= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY1PR03MB1420; BY1PR03MB1420: 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:BY1PR03MB1420; BCL:0; PCL:0; RULEID:; SRVR:BY1PR03MB1420; X-Microsoft-Exchange-Diagnostics: 1; BY1PR03MB1420; 4:MtBjgM/g0wksXwHHd4uwnZN0qDakrCrbw0TETAVKVDDU+28FhA8vR3IMiH807O7OghsONAfbPyeG4PYssbwcFNPsLouBdMrYxLrZLackPcx0aqPZf246k4E8IveAjIrJWvfpj15D6ITlT62rM2aV9BjwWoDWzge1aI1PFKLAIzkK1urz0hMQAOmPUczcSxcjjVpw850BbLn82bwq/yKpDpyHenR7fkyeGuZi6GomrCZAm43GjTO8uok6DIfKOB03D165OmxwXeuDLDryLcvJCincsa/KDrk2PRdhg0WmpRk= X-Forefront-PRVS: 0645BEB7AA X-Microsoft-Exchange-Diagnostics: 1; BY1PR03MB1420; 23:V7p/kSKXb69zApABVoM7yMAswVnD+/KUlLSdMDa0hb4+NZcd5BPwmBqgivBo/W2y3a39keB5GIr7xTWX1895qGsRsIWBzZqnUoxEssbyxADs9TXJttiUxsx9jqMjbIVihca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0hfeiBuEk7gd3uEabd90tQBE=; 20:0vt3gDnRAkEu+qIlNirE2fu50XtR4/yInWYogIphS1ZFVrB8ktloH/1U5TDB57u+TJGPtaIaJm1AdwY1kdAiKg== X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Jul 2015 14:03:16.4513 (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: BY1PR03MB1420 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150722_070339_517531_37B20558 X-CRM114-Status: GOOD ( 11.23 ) 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/imx25-pdk.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/imx25-pdk.dts b/arch/arm/boot/dts/imx25-pdk.dts index dd45e69..faf252f 100644 --- a/arch/arm/boot/dts/imx25-pdk.dts +++ b/arch/arm/boot/dts/imx25-pdk.dts @@ -114,8 +114,8 @@ &esdhc1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_esdhc1>; - cd-gpios = <&gpio2 1 0>; - wp-gpios = <&gpio2 0 0>; + cd-gpios = <&gpio2 1 GPIO_ACTIVE_LOW>; + wp-gpios = <&gpio2 0 GPIO_ACTIVE_HIGH>; status = "okay"; };