Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp397026imm; Thu, 30 Aug 2018 01:24:39 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYkPSV9t07q/hxsPUa+IovXL/44iJequvXajbPrgq3hQf+03vOQ5XQS525ZBfu52eFhbKJW X-Received: by 2002:a17:902:9a48:: with SMTP id x8-v6mr9234055plv.72.1535617479008; Thu, 30 Aug 2018 01:24:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535617478; cv=none; d=google.com; s=arc-20160816; b=LcwR6NNLAq1n9QCSZ/U8Ydr4An4nKC8eVrudA0OB0Tp89hdfDivVt1dSLCRoG3FSGW aZuyAAygGOh6IgmfuFDe3jcqCGpjlMoWL4GkoikZM+DJxY1BIZuVpcHxFjTHdUOc0/e/ VIVeNVtleRVgXLHTjMJjaHBV4qKytDqAzjNe8DT/cR4iYb3C6SLx5+iLpiaHa8DJDJrj leTA+LuIKqI6ExmkWdWISIsvxAnNSLXYiGFFY4vwpaQHlIgQhB5LKTbrFn1mdplTr8Jj PrCNluugrafsS+3ZVRABH0hwTtwhvYVTQFqpWbSeOdWixRrH6MffvB31P5Qy3dqE0mZF FEzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=/RXtHte8bNFCXLz2sWlB+/MjHMcewoMGpsLw3S8KcCM=; b=k/mk3bC9Ka1LNdnZfPfwE6JKYhsdFuNyvXbiUamS0ZYWG1IqqCoM9gHLCFz0/JoAkC GnAkY1tfG1JxNhQiL40La9Qn0FgsTqvqSPoJ/u5nv33tlQdCSNtNMr9m+tg2dzSdi01n +muzrBpNlbhdQ0y+Sysszi6Z/ntqfskobjtoEUOs1rjQMYXLu08mnLkrk2mvzs3hhLsB USPYm76QRlDnqFenoCs4uhLSEYmf8qOkxs8R6Y4E3sbT1DfSWTeHm+RY+7PQtqOcW6LT jEhOBH7mdfHyNYLgi0gtK4EiKtNUMnkLzAc12hWlX7d2tWmXpCHkKGkrXGjfPWMIODHr 8xNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ehdLvAHu; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i2-v6si5930478plt.112.2018.08.30.01.24.23; Thu, 30 Aug 2018 01:24:38 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ehdLvAHu; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728146AbeH3MXi (ORCPT + 99 others); Thu, 30 Aug 2018 08:23:38 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:36662 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728133AbeH3MXi (ORCPT ); Thu, 30 Aug 2018 08:23:38 -0400 Received: by mail-pg1-f196.google.com with SMTP id d1-v6so3568103pgo.3 for ; Thu, 30 Aug 2018 01:22:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=/RXtHte8bNFCXLz2sWlB+/MjHMcewoMGpsLw3S8KcCM=; b=ehdLvAHulsqEGy2bI4CKy7Yju2jHtCBeOXunvc9ihc53cj2WslPESCJbLHPy1vlTvy E5paeKwr31lXBvDbVokPkwrPYr9JEkaEUbQw9yqhF3NaN+wyhQjNA6FcnMP49yd6Z83z K4WhB54ZIzBNrW5MufdnAHX7F7gaN8WAyiYeA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=/RXtHte8bNFCXLz2sWlB+/MjHMcewoMGpsLw3S8KcCM=; b=O7buIWBx8ezFELEqqelURG/e/j11TmTjSGyA8qYBbMC7nCBBstDH6Z95L9r50NUYUg xju3MI+bPXq1E9UrYg5ZXz3Ng7KEuuiezHjeWo1yZKHFtdLqtbSjPlMJYNxPXgjhsTfz MTbm/rFczwZ4OKPNrewRl4B9dJw5EHLohbI3ssDQV4Hljvi/0Q8+N9eM/V8LWpuzf9yT V2O5OwgjOQeUxErijDrGM8xA96QMYpOkTYDUkMBkmIqe8ETRf/ZCThrGdrrzfUySZ8Gk 4tVrdEXKMrmcIqqI0btsuDeNeBlKWGnLxENOfhUuvlaGvxkrzE3J11PUrhdV4OosJ3va SecA== X-Gm-Message-State: APzg51D1W69NMORhklgpn7/paed2PLqb2u90CJ9tc/3v++jA3MP5MMUb JaUtvZWlQxC1umKpDyTA3Da4qw== X-Received: by 2002:a65:6413:: with SMTP id a19-v6mr1774313pgv.359.1535617359659; Thu, 30 Aug 2018 01:22:39 -0700 (PDT) Received: from ubt.spreadtrum.com ([117.18.48.102]) by smtp.gmail.com with ESMTPSA id j22-v6sm8224885pfh.45.2018.08.30.01.22.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 30 Aug 2018 01:22:38 -0700 (PDT) From: Chunyan Zhang To: Ulf Hansson , Adrian Hunter , Rob Herring Cc: linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, Orson Zhai , Baolin Wang , Billows Wu , Jason Wu , Chunyan Zhang , Chunyan Zhang Subject: [PATCH V8 9/9] dt-bindings: sdhci-sprd: Add bindings for the sdhci-sprd controller Date: Thu, 30 Aug 2018 16:21:45 +0800 Message-Id: <1535617305-16952-10-git-send-email-zhang.chunyan@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1535617305-16952-1-git-send-email-zhang.chunyan@linaro.org> References: <1535617305-16952-1-git-send-email-zhang.chunyan@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Chunyan Zhang This patch adds the device-tree binding documentation for Spreadtrum SDHCI driver. Signed-off-by: Chunyan Zhang --- .../devicetree/bindings/mmc/sdhci-sprd.txt | 41 ++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 Documentation/devicetree/bindings/mmc/sdhci-sprd.txt diff --git a/Documentation/devicetree/bindings/mmc/sdhci-sprd.txt b/Documentation/devicetree/bindings/mmc/sdhci-sprd.txt new file mode 100644 index 0000000..45c9978 --- /dev/null +++ b/Documentation/devicetree/bindings/mmc/sdhci-sprd.txt @@ -0,0 +1,41 @@ +* Spreadtrum SDHCI controller (sdhci-sprd) + +The Secure Digital (SD) Host controller on Spreadtrum SoCs provides an interface +for MMC, SD and SDIO types of cards. + +This file documents differences between the core properties in mmc.txt +and the properties used by the sdhci-sprd driver. + +Required properties: +- compatible: Should contain "sprd,sdhci-r11". +- reg: physical base address of the controller and length. +- interrupts: Interrupts used by the SDHCI controller. +- clocks: Should contain phandle for the clock feeding the SDHCI controller +- clock-names: Should contain the following: + "sdio" - SDIO source clock (required) + "enable" - gate clock which used for enabling/disabling the device (required) + +Optional properties: +- assigned-clocks: the same with "sdio" clock +- assigned-clock-parents: the default parent of "sdio" clock + +Examples: + +sdio0: sdio@20600000 { + compatible = "sprd,sdhci-r11"; + reg = <0 0x20600000 0 0x1000>; + interrupts = ; + + clock-names = "sdio", "enable"; + clocks = <&ap_clk CLK_EMMC_2X>, + <&apahb_gate CLK_EMMC_EB>; + assigned-clocks = <&ap_clk CLK_EMMC_2X>; + assigned-clock-parents = <&rpll CLK_RPLL_390M>; + + bus-width = <8>; + non-removable; + no-sdio; + no-sd; + cap-mmc-hw-reset; + status = "okay"; +}; -- 2.7.4