From patchwork Wed Jan 16 16:54:37 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guennadi Liakhovetski X-Patchwork-Id: 1991711 Return-Path: X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 9F3B7DF2A2 for ; Wed, 16 Jan 2013 16:54:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757904Ab3APQyw (ORCPT ); Wed, 16 Jan 2013 11:54:52 -0500 Received: from moutng.kundenserver.de ([212.227.126.187]:62317 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757947Ab3APQyu (ORCPT ); Wed, 16 Jan 2013 11:54:50 -0500 Received: from axis700.grange (dslb-178-006-255-053.pools.arcor-ip.net [178.6.255.53]) by mrelayeu.kundenserver.de (node=mreu2) with ESMTP (Nemesis) id 0Le9EG-1TA6A73kjs-00q6OV; Wed, 16 Jan 2013 17:54:48 +0100 Received: from 6a.grange (6a.grange [192.168.1.11]) by axis700.grange (Postfix) with ESMTPS id 240E840B9C; Wed, 16 Jan 2013 17:54:46 +0100 (CET) Received: from lyakh by 6a.grange with local (Exim 4.72) (envelope-from ) id 1TvWGE-0006mY-Ns; Wed, 16 Jan 2013 17:54:46 +0100 From: Guennadi Liakhovetski To: linux-mmc@vger.kernel.org Cc: linux-sh@vger.kernel.org, Magnus Damm Subject: [PATCH 02/11] mmc: deprecate redundant cd-inverted and wp-inverted DT properties Date: Wed, 16 Jan 2013 17:54:37 +0100 Message-Id: <1358355286-26029-3-git-send-email-g.liakhovetski@gmx.de> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: <1358355286-26029-1-git-send-email-g.liakhovetski@gmx.de> References: <1358355286-26029-1-git-send-email-g.liakhovetski@gmx.de> X-Provags-ID: V02:K0:ylvQFsbOiB3At+JgwikJjqlNV/ovoVwUkijWotHtVP+ cN9fya9ZfNCx8/PpByx3bV1AMhToePiT2woFXiFnBJmqztdirk rC0sOjRk+JO7tB6Mwjnd70o3ENYkNHVR6XzMY1etiQc1RofG5s 6UXVeAiG/SgnsEMHwM9NBKbuydaq48BMLvHaZALq/InyDISYGp 6NZPKtTi7Z522UxFYvPkC0wIqZiWpF/KgyNYgD0PkLUjMC/PaO TwYUxQx7DVxas+ELqNIj7VAudSu24h1mMlLur8IH2Mua3ZnQL+ WIAzyOYuuJY/z9hZ8m4hbSRSHhB2uz6PFVy2rAE9IR/N7oybbv 7k/pwwzWQY7B1SpOBcrHDYl8cyh03BA5mJR10Vy3RbnMhvkzV1 6n74jncSEpYrA== 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