From patchwork Fri Feb 14 12:27:07 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 24646 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f70.google.com (mail-yh0-f70.google.com [209.85.213.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 3D4D7202B2 for ; Fri, 14 Feb 2014 12:27:16 +0000 (UTC) Received: by mail-yh0-f70.google.com with SMTP id c41sf27196778yho.9 for ; Fri, 14 Feb 2014 04:27:16 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=ke6nUx82diZ8DYzH2JGSi5MniUobFtOgamUgwrXs6mk=; b=iIw0vSct7HGtFfLSvESkax1idTeKPM4S18UJMgeTnXYq0GuDlaHdICCFOdFRfzSHKq O9l4GY50nJW7vXY0pKgT+niFft9EjOSdcwUCgvCxKLKMRM+VfhqLM/Nid+t07rAhKmc2 j+4r8yX72QWFMDeVf+GSu0dC+GPqmS/r3N0ENnIUT3IpwDQwm1pgMERIj4DZ3AW3BqL8 Z61nELuuqLFh8ZTyIoVO0l3qHE/AZMQbGI/Kl7dYsfecG0NBw2nWq0L9cl7qBMfY9kru yTIAacEQgW8VH/wFPzrsg4+b7KI674zBs4apyzPS8FnbaJzviPFL3C06JXfRfC/RoyFx bqSw== X-Gm-Message-State: ALoCoQledPlbI4rVxt/qEXXU3lvlJt+GV0Mva05nfPqIM7+1EAeTzyt8xFTcMBIRW672qYPrs4TC X-Received: by 10.52.53.73 with SMTP id z9mr2579406vdo.4.1392380836114; Fri, 14 Feb 2014 04:27:16 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.23.80 with SMTP id 74ls52901qgo.61.gmail; Fri, 14 Feb 2014 04:27:16 -0800 (PST) X-Received: by 10.52.109.193 with SMTP id hu1mr4463420vdb.11.1392380836007; Fri, 14 Feb 2014 04:27:16 -0800 (PST) Received: from mail-vc0-f176.google.com (mail-vc0-f176.google.com [209.85.220.176]) by mx.google.com with ESMTPS id i8si1840472vcj.146.2014.02.14.04.27.15 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 14 Feb 2014 04:27:15 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.176 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.176; Received: by mail-vc0-f176.google.com with SMTP id la4so9304891vcb.35 for ; Fri, 14 Feb 2014 04:27:15 -0800 (PST) X-Received: by 10.52.246.133 with SMTP id xw5mr855314vdc.32.1392380835881; Fri, 14 Feb 2014 04:27:15 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp104723vcz; Fri, 14 Feb 2014 04:27:15 -0800 (PST) X-Received: by 10.152.42.129 with SMTP id o1mr5177302lal.19.1392380834522; Fri, 14 Feb 2014 04:27:14 -0800 (PST) Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com [209.85.217.182]) by mx.google.com with ESMTPS id b5si7936568lbp.133.2014.02.14.04.27.13 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 14 Feb 2014 04:27:14 -0800 (PST) Received-SPF: neutral (google.com: 209.85.217.182 is neither permitted nor denied by best guess record for domain of ulf.hansson@linaro.org) client-ip=209.85.217.182; Received: by mail-lb0-f182.google.com with SMTP id w7so9145368lbi.41 for ; Fri, 14 Feb 2014 04:27:13 -0800 (PST) X-Received: by 10.152.43.47 with SMTP id t15mr2035284lal.38.1392380833762; Fri, 14 Feb 2014 04:27:13 -0800 (PST) Received: from linaro-ulf.lan (90-231-160-185-no158.tbcn.telia.com. [90.231.160.185]) by mx.google.com with ESMTPSA id qx7sm5727943lbb.9.2014.02.14.04.27.12 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 14 Feb 2014 04:27:13 -0800 (PST) From: Ulf Hansson To: linux-mmc@vger.kernel.org, Chris Ball Cc: Jaehoon Chung , devicetree@vger.kernel.org, Ulf Hansson Subject: [PATCH 1/3] mmc: core: Add DT bindings for SD card's UHS bus speed modes Date: Fri, 14 Feb 2014 13:27:07 +0100 Message-Id: <1392380829-8473-1-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 1.7.9.5 X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ulf.hansson@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.176 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Provide the option to configure these speed modes per host, for those host driver's that can't distinguish this in runtime. Signed-off-by: Ulf Hansson --- Documentation/devicetree/bindings/mmc/mmc.txt | 5 +++++ drivers/mmc/core/host.c | 10 ++++++++++ 2 files changed, 15 insertions(+) diff --git a/Documentation/devicetree/bindings/mmc/mmc.txt b/Documentation/devicetree/bindings/mmc/mmc.txt index 458b57f..bd2ce67 100644 --- a/Documentation/devicetree/bindings/mmc/mmc.txt +++ b/Documentation/devicetree/bindings/mmc/mmc.txt @@ -26,6 +26,11 @@ Optional properties: this system, even if the controller claims it is. - cap-sd-highspeed: SD high-speed timing is supported - cap-mmc-highspeed: MMC high-speed timing is supported +- sd-uhs-sdr12: SD UHS SDR12 speed is supported +- sd-uhs-sdr25: SD UHS SDR25 speed is supported +- sd-uhs-sdr50: SD UHS SDR50 speed is supported +- sd-uhs-sdr104: SD UHS SDR104 speed is supported +- sd-uhs-ddr50: SD UHS DDR50 speed is supported - cap-power-off-card: powering off the card is safe - cap-sdio-irq: enable SDIO IRQ signalling on this interface - full-pwr-cycle: full power cycle of the card is supported diff --git a/drivers/mmc/core/host.c b/drivers/mmc/core/host.c index 49bc403..2644d91 100644 --- a/drivers/mmc/core/host.c +++ b/drivers/mmc/core/host.c @@ -419,6 +419,16 @@ int mmc_of_parse(struct mmc_host *host) host->caps |= MMC_CAP_SD_HIGHSPEED; if (of_find_property(np, "cap-mmc-highspeed", &len)) host->caps |= MMC_CAP_MMC_HIGHSPEED; + if (of_find_property(np, "sd-uhs-sdr12", &len)) + host->caps |= MMC_CAP_UHS_SDR12; + if (of_find_property(np, "sd-uhs-sdr25", &len)) + host->caps |= MMC_CAP_UHS_SDR25; + if (of_find_property(np, "sd-uhs-sdr50", &len)) + host->caps |= MMC_CAP_UHS_SDR50; + if (of_find_property(np, "sd-uhs-sdr104", &len)) + host->caps |= MMC_CAP_UHS_SDR104; + if (of_find_property(np, "sd-uhs-ddr50", &len)) + host->caps |= MMC_CAP_UHS_DDR50; if (of_find_property(np, "cap-power-off-card", &len)) host->caps |= MMC_CAP_POWER_OFF_CARD; if (of_find_property(np, "cap-sdio-irq", &len))