From patchwork Fri Feb 15 15:13:55 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guennadi Liakhovetski X-Patchwork-Id: 2148321 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 BE63C3FDF1 for ; Fri, 15 Feb 2013 15:14:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758244Ab3BOPOP (ORCPT ); Fri, 15 Feb 2013 10:14:15 -0500 Received: from moutng.kundenserver.de ([212.227.17.9]:58075 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755696Ab3BOPOO (ORCPT ); Fri, 15 Feb 2013 10:14:14 -0500 Received: from axis700.grange (dslb-188-109-033-039.pools.arcor-ip.net [188.109.33.39]) by mrelayeu.kundenserver.de (node=mrbap3) with ESMTP (Nemesis) id 0M7az9-1UrRy71VI7-00xLA2; Fri, 15 Feb 2013 16:14:12 +0100 Received: from 6a.grange (6a.grange [192.168.1.11]) by axis700.grange (Postfix) with ESMTPS id 2DB9340BC3; Fri, 15 Feb 2013 16:14:10 +0100 (CET) Received: from lyakh by 6a.grange with local (Exim 4.72) (envelope-from ) id 1U6MzJ-0004jo-S8; Fri, 15 Feb 2013 16:14:09 +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 , Arnd Bergmann , Guennadi Liakhovetski Subject: [PATCH v4 06/13] mmc: tmio-mmc: define device-tree bindings Date: Fri, 15 Feb 2013 16:13:55 +0100 Message-Id: <1360941242-18153-7-git-send-email-g.liakhovetski@gmx.de> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: <1360941242-18153-1-git-send-email-g.liakhovetski@gmx.de> References: <1360941242-18153-1-git-send-email-g.liakhovetski@gmx.de> X-Provags-ID: V02:K0:QkUHoan+X6JOrxmyP157QP56j4gdQnIlgoL8Z93XgBs BIe7wTToclN7CKE/3F+q5n4mfwc6nBS4+XCsLz4TbZEsVz4+ha loZkTUMQ2d4xWLbMfFMwlzgdbEcYTyvMXXe2CjsZyxpQ/X3rrS wID7GOQUSBu/YaB0ZJ/GTPXtnGIrkwj0QPnsNwua5QZOiqcHGJ VbCcx5PnBg9P6r4glvdZbAPkiVeKje88AuC7fUSa6bm/Ew4BT6 wAUT1+OHvP8e2KgGGGM+s1bZFxtBUTZ3dBbN0XvIarea9xo9Ng +U2LynqsR0GQGJpEXrvlgQ2h5y+dtyzl54P50T3Ha5gTFm352Q Of5LJ7GRSWf9bddSoWKYv6iJKXWWP76Fz+F4Bgg1tuoPgdMah7 Iol4+kFL/zPNQ== 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. Signed-off-by: Guennadi Liakhovetski --- v4: remove the "toshiba,mmc-blksz-2bytes" property, it can be set directly by the sh_mobile_sdhi driver, use compatible string parsing instead of the "toshiba,mmc-has-idle-wait" property. Documentation/devicetree/bindings/mmc/tmio_mmc.txt | 20 ++++++++++++++++++++ 1 files changed, 20 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..df204e1 --- /dev/null +++ b/Documentation/devicetree/bindings/mmc/tmio_mmc.txt @@ -0,0 +1,20 @@ +* 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, can be used. Additionally the following tmio_mmc-specific +optional bindings can be used. + +Optional properties: +- toshiba,mmc-wrprotect-disable: write-protect detection is unavailable + +When used with Renesas SDHI hardware, the following compatibility strings +configure various model-specific properties: + +"renesas,sh7372-sdhi": (default) compatible with SH7372 +"renesas,r8a7740-sdhi": compatible with R8A7740: certain MMC/SD commands have to + wait for the interface to become idle.