From patchwork Wed Jan 23 15:32:29 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guennadi Liakhovetski X-Patchwork-Id: 2025661 Return-Path: X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 5041B3FD86 for ; Wed, 23 Jan 2013 15:40:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755967Ab3AWPkb (ORCPT ); Wed, 23 Jan 2013 10:40:31 -0500 Received: from moutng.kundenserver.de ([212.227.17.10]:62887 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755945Ab3AWPkS (ORCPT ); Wed, 23 Jan 2013 10:40:18 -0500 Received: from axis700.grange (dslb-178-006-250-035.pools.arcor-ip.net [178.6.250.35]) by mrelayeu.kundenserver.de (node=mreu0) with ESMTP (Nemesis) id 0La0Mr-1UjmvC12dx-00lbqe; Wed, 23 Jan 2013 16:40:15 +0100 Received: from 6a.grange (6a.grange [192.168.1.11]) by axis700.grange (Postfix) with ESMTPS id 7F5D140B99; Wed, 23 Jan 2013 16:40:14 +0100 (CET) Received: from lyakh by 6a.grange with local (Exim 4.72) (envelope-from ) id 1Ty2Qw-0000Pd-8O; Wed, 23 Jan 2013 16:40:14 +0100 From: Guennadi Liakhovetski To: linux-mmc@vger.kernel.org Cc: linux-sh@vger.kernel.org, Magnus Damm , Chris Ball , Guennadi Liakhovetski Subject: [PATCH v2 02/11] mmc: deprecate redundant cd-inverted and wp-inverted DT properties Date: Wed, 23 Jan 2013 16:32:29 +0100 Message-Id: <1358955158-1510-3-git-send-email-g.liakhovetski@gmx.de> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: <1358955158-1510-1-git-send-email-g.liakhovetski@gmx.de> References: <1358955158-1510-1-git-send-email-g.liakhovetski@gmx.de> X-Provags-ID: V02:K0:4bK7E+jI4vs0MqnN/l6yhLBWO2HjXp6V+W5s/xJpzMS f30Qf/PhDe9KDzs5QF/0b6jUWxWbyAmrQuSyN1CdIhDIocYolB 8TX4hLGqE13B8yGsM0PUh9kevM+eoiy3f7wnqL6wqu7gf6rwls 0BLnrQtOUTDEGmeL7mVLgr+cz0/nCS5eHQqxFVPR3yTHGuamd2 AEnZRJNOx0z0iG81A08ECK8O7l5OM5fxR4jKipeAtEf2ntc4Jk zfO5tsZ4A/Zzry9mLn9i9mOv+0LXW+ndBqMHRY5/LAP/zgAR0s gvD3Jzl2UNyZR9hdyOgou3gKWkDf071O0EPTE1P8Q8JWr6ftqf RCVNYIZwJATRWmUtduT4rbtQULuU2f1s63meRoESopBMTcRRrY RNZVGDQlevt2Q== Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org GPIO DT bindings have a standard way to specify GPIO polarity - the OF_GPIO_ACTIVE_LOW flag. Use that instead of custom cd-inverted and wp-inverted properties. Signed-off-by: Guennadi Liakhovetski --- Documentation/devicetree/bindings/mmc/mmc.txt | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/Documentation/devicetree/bindings/mmc/mmc.txt b/Documentation/devicetree/bindings/mmc/mmc.txt index 34f28ed..e180892 100644 --- a/Documentation/devicetree/bindings/mmc/mmc.txt +++ b/Documentation/devicetree/bindings/mmc/mmc.txt @@ -19,11 +19,19 @@ Only one of the properties in this section should be supplied: Optional properties: - wp-gpios: Specify GPIOs for write protection, see gpio binding - cd-inverted: when present, polarity on the cd gpio line is inverted + (deprecated) - wp-inverted: when present, polarity on the wp gpio line is inverted + (deprecated) - max-frequency: maximum operating clock frequency - no-1-8-v: when present, denotes that 1.8v card voltage is not supported on this system, even if the controller claims it is. +cd-inverted and wp-inverted properties are deprecated ans shouldn't be used, +instead pleaseuse the OF_GPIO_ACTIVE_LOW flag in respective GPIO bindings. Note, +that the default (as defined by the SDHCI standard) CD and WP polarity is +active-low, so, OF_GPIO_ACTIVE_LOW should normally be set, and only be left +clear, if the polarity is inverted. + Optional SDIO properties: - keep-power-in-suspend: Preserves card power during a suspend/resume cycle - enable-sdio-wakeup: Enables wake up of host system on SDIO IRQ assertion