From patchwork Fri Apr 29 17:32:16 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Doug Anderson X-Patchwork-Id: 8984171 Return-Path: X-Original-To: patchwork-linux-rockchip@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id A8FA1BF29F for ; Fri, 29 Apr 2016 17:33:13 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A6470201CE for ; Fri, 29 Apr 2016 17:33:12 +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 D2506201CD for ; Fri, 29 Apr 2016 17:33:11 +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 1awCHv-0003yo-JO; Fri, 29 Apr 2016 17:33:11 +0000 Received: from mail-pf0-x22e.google.com ([2607:f8b0:400e:c00::22e]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1awCHm-0003mu-NY for linux-rockchip@lists.infradead.org; Fri, 29 Apr 2016 17:33:03 +0000 Received: by mail-pf0-x22e.google.com with SMTP id 77so18145442pfv.2 for ; Fri, 29 Apr 2016 10:32:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=fVv8I2qe9+cPwtul49lWz2R8l8Ek3d1DudvCBBMsZe4=; b=KsfI+55gWwvMAO3omIx3WZtPQNp8p8bvTvQJNDRk3oWd/kwYkwNxpQEU8NuoSKQ/3t RHU+bG8ouIBGZJHZZ4CVKuWPbOn8jDlqDPlWyd1Qh/z+bk/RxRW7F9nXwcMEbeIBAMiB iU8cqQ6N4cWIUJ2gm6PPHy6Gwz5q9ebmdz6cQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=fVv8I2qe9+cPwtul49lWz2R8l8Ek3d1DudvCBBMsZe4=; b=f/m28ecGESpKk7Ps9h2S2Tf0bRsaF1S0FuwIaKmjzGGPAs3HYWBmBq+vnN+BR2jhbI GjlF67bQpKQs1dnH+/6EFYDHzBs2fFx+g4JPlyR2UIA/ftgN4prrQPhy7UES/YtRvHXV cYwlb8EkWMS2jZd+daDTIORa5PC6WRN7WiKleZePaH3dESA+ckXPgtCOu1SItyoaKiYY l9a96miV9q3hCXruAk9a6om++7aniOHLesUTihT8pJ3fUZCvoO3C9WR4JhkPVnilBGLe nCe/3AAEnL8NahPAouEWVmrS2vXkhVP9G906rW6qe6F/XQhAdknMIhCr8lZWWwMd6zF+ oMdQ== X-Gm-Message-State: AOPr4FVV5NkGkjIk++bJ7oYfctVDRrpo2FGfInIrOov46vJk9mv0BEyd+zWq5CGg2omV8Q== X-Received: by 10.98.2.22 with SMTP id 22mr30641873pfc.36.1461951161856; Fri, 29 Apr 2016 10:32:41 -0700 (PDT) Received: from tictac.mtv.corp.google.com ([172.22.65.76]) by smtp.gmail.com with ESMTPSA id 19sm24880623pfu.83.2016.04.29.10.32.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 29 Apr 2016 10:32:41 -0700 (PDT) From: Douglas Anderson To: ulf.hansson@linaro.org, jh80.chung@samsung.com Subject: [PATCH v2 1/4] Documentation: mmc: Document mmc aliases Date: Fri, 29 Apr 2016 10:32:16 -0700 Message-Id: <1461951139-6109-2-git-send-email-dianders@chromium.org> X-Mailer: git-send-email 2.8.0.rc3.226.g39d4020 In-Reply-To: <1461951139-6109-1-git-send-email-dianders@chromium.org> References: <1461951139-6109-1-git-send-email-dianders@chromium.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160429_103302_818039_0B9E8757 X-CRM114-Status: GOOD ( 11.76 ) X-Spam-Score: -2.7 (--) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: jszhang@marvell.com, mark.rutland@arm.com, sudeep.holla@arm.com, Heiko Stuebner , pawel.moll@arm.com, ijc+devicetree@hellion.org.uk, devicetree-spec@vger.kernel.org, linux-kernel@vger.kernel.org, shawn.lin@rock-chips.com, dmitry.torokhov@gmail.com, linux-mmc@vger.kernel.org, adrian.hunter@intel.com, stefan@agner.ch, Douglas Anderson , linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, robh+dt@kernel.org, galak@codeaurora.org, computersforpeace@gmail.com, lars@metafoo.de, chaotian.jing@mediatek.com MIME-Version: 1.0 Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham 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 From: Jaehoon Chung Now, index of mmc/mmcblk devices is allocated in accordance with probing time. If want to use the mmcblk1 for some device, it can use alias. aliases { mmc0 = &mmc0; /* mmc0/mmcblk0 for eMMC */ mmc1 = &mmc2; /* mmc1/mmcblk1 for SD */ mmc2 = &mmc1; /* mmc2/mmcblk2 for SDIO*/ }; If there are no corresponding values, it might be allocated with existing scheme. Signed-off-by: Jaehoon Chung [dianders: just bindings now; mention mmc not just mmcblk] Signed-off-by: Douglas Anderson --- Changes in v2: None Documentation/devicetree/bindings/mmc/mmc.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Documentation/devicetree/bindings/mmc/mmc.txt b/Documentation/devicetree/bindings/mmc/mmc.txt index ed23b9bedfdc..4b5c23e61adb 100644 --- a/Documentation/devicetree/bindings/mmc/mmc.txt +++ b/Documentation/devicetree/bindings/mmc/mmc.txt @@ -71,6 +71,10 @@ Optional SDIO properties: - wakeup-source: Enables wake up of host system on SDIO IRQ assertion (Legacy property supported: "enable-sdio-wakeup") +Aliases (Optional): +- If you want to use the fixed index for devices like mmcX / mmcblkX, should +be represented in the aliases node using following format "mmc(X)". +(X is an unique number for the alias.) MMC power sequences: -------------------- @@ -145,3 +149,10 @@ mmc3: mmc@01c12000 { interrupt-names = "host-wake"; }; }; + +Example with aliases nodes: + +aliases { + mmc0 = &mmc0; /* Fixed to mmc0/mmcblk0 for &mmc0 */ + mmc1 = &mmc2; /* Fixed to mmc1/mmcblk1 for &mmc2 */ +};