From patchwork Wed Feb 6 19:46:53 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guennadi Liakhovetski X-Patchwork-Id: 2106561 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 0D1093FDF1 for ; Wed, 6 Feb 2013 19:47:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757962Ab3BFTrX (ORCPT ); Wed, 6 Feb 2013 14:47:23 -0500 Received: from moutng.kundenserver.de ([212.227.126.186]:54576 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757990Ab3BFTrR (ORCPT ); Wed, 6 Feb 2013 14:47:17 -0500 Received: from axis700.grange (dslb-178-006-240-079.pools.arcor-ip.net [178.6.240.79]) by mrelayeu.kundenserver.de (node=mrbap4) with ESMTP (Nemesis) id 0MLyRQ-1U24UX0hpM-0080oP; Wed, 06 Feb 2013 20:47:05 +0100 Received: from 6a.grange (6a.grange [192.168.1.11]) by axis700.grange (Postfix) with ESMTPS id 8FB0D40BB7; Wed, 6 Feb 2013 20:47:04 +0100 (CET) Received: from lyakh by 6a.grange with local (Exim 4.72) (envelope-from ) id 1U3AxU-0004qG-Fa; Wed, 06 Feb 2013 20:47:04 +0100 From: Guennadi Liakhovetski To: linux-mmc@vger.kernel.org Cc: devicetree-discuss@lists.ozlabs.org, linux-sh@vger.kernel.org, Magnus Damm , Simon Horman , Guennadi Liakhovetski , Arnd Bergmann Subject: [PATCH v3 06/13] mmc: tmio-mmc: define device-tree bindings Date: Wed, 6 Feb 2013 20:46:53 +0100 Message-Id: <1360180020-18555-7-git-send-email-g.liakhovetski@gmx.de> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: <1360180020-18555-1-git-send-email-g.liakhovetski@gmx.de> References: <1360180020-18555-1-git-send-email-g.liakhovetski@gmx.de> X-Provags-ID: V02:K0:gYNLMIXDbPk9DOqwY5B0WAXG59880ZdMb8aNpzvPWXa lwN18rexK9SI2QfOkNSyqBEE3YNZGTc/HICkZxpUd02CeJrE4C zQJ9Dp2cHLTg85driBH3mOp26J4/xPxEo5a3nd54QSafH1gDrE Jw1syd1r8v+h/nZ/cK3rYHx6sLgGCQr79LCkXG5F7QwzFsYPkn C4wQTqshPyxg+HJFw6O792iyL93+7olW/Wje+fN30TcC4xVp1B jsrVihv9JqlW+t9SFQnEhNJCHcKRWnr8hRUe4R7oUm/WpSHTAe gZroqdK7U/gbkWzJESz89IOMqCfPRYpyRJ6Q4QvKYbVKit9ysX pxOWYmo4hjh0HpKolfj63nmwU+Y4LEJVs8HSko/U+W/Y9rzKnr 3NEm9d9znAOrA== Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org Define device-tree bindings for the tmio-mmc driver to be able to specify parameters, currently provided in platform data. Cc: Arnd Bergmann Signed-off-by: Guennadi Liakhovetski --- v3: make the property to set TMIO_MMC_SDIO_IRQ global Documentation/devicetree/bindings/mmc/tmio_mmc.txt | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-) create mode 100644 Documentation/devicetree/bindings/mmc/tmio_mmc.txt diff --git a/Documentation/devicetree/bindings/mmc/tmio_mmc.txt b/Documentation/devicetree/bindings/mmc/tmio_mmc.txt new file mode 100644 index 0000000..5762a55 --- /dev/null +++ b/Documentation/devicetree/bindings/mmc/tmio_mmc.txt @@ -0,0 +1,15 @@ +* Toshiba Mobile IO SD/MMC controller + +The tmio-mmc driver doesn't probe its devices actively, instead its binding to +devices is managed by either MFD drivers or by the sh_mobile_sdhi platform +driver. Those drivers supply the tmio-mmc driver with platform data, that either +describe hardware capabilities, known to them, or are obtained by them from +their own platform data or from their DT information. In the latter case all +compulsory and any optional properties, common to all SD/MMC drivers, as +described in mmc.txt, should or can be used. Additionally the following optional +bindings can be used. They set respective TMIO_MMC_* flags. + +Optional properties: +- toshiba,mmc-wrprotect-disable : set TMIO_MMC_WRPROTECT_DISABLE flag +- toshiba,mmc-blksz-2bytes : set TMIO_MMC_BLKSZ_2BYTES +- toshiba,mmc-has-idle-wait : set TMIO_MMC_HAS_IDLE_WAIT