Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2289752imm; Thu, 16 Aug 2018 07:42:53 -0700 (PDT) X-Google-Smtp-Source: AA+uWPxyu01BBAIziAjuXuvJ6eRpxrQLKU2AVPujUme7ZcxXa889vjaQHJF91uXNF1bF2RPo4IZ8 X-Received: by 2002:a17:902:6501:: with SMTP id b1-v6mr29364946plk.31.1534430573280; Thu, 16 Aug 2018 07:42:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534430573; cv=none; d=google.com; s=arc-20160816; b=f+RYMCuI0r0yMhvncQiY1b2CCGpMvaHxtEpEgzOUOo1gmnMuHaonXgRQ3U6xXheOhr vgntQeBdui3/Z8HWPHVb3HZwsrJcjLpfYVig89t+Yy3kiF1uLayVdxjagI2MtARcRk0e WSqreMe8zV1cqIm89unVLgxg8Ck99d7km2un5ndqc3kQye+yZUeP1/mTXNSq3Bro81KZ vgpXbm1r/EtUBr4gAwQxhEQpUMM+XPSazRzdDMnnrT8QPywCemkjU2J080eYK5rNnCv0 f1wQxXi5pVGIgNvHjCLHzlCsLiQOqhlUfJjWvfSzNkQT7+L/FaMK6lFlF6cA/OBpwUAu 1hxQ== 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=iMrql5pChvk0l0OVuaoPU9zdtIybInbwoq7vsafDp1A=; b=qHhqkAVV8Zlg2OqBwNi6F0OJDJHQKbGfnisySSB1+9g0R/dfZkr09COLbQT2eg26Z9 t1WjDetwCU8aM+GYlDeYoRM4v8pd9NPZSIc+A44f2oKD/PkNEAdJy8m1ypr3PcUZwgFb lS5Rl7jU0ZxFkRTwjo3zLqxm5pHmZGU+WMWMv4sSouyYvsqW7zn2aQi5l8niN9AhiEl5 x527cd1w1qD8K9qRDjJ/Dqn2+15cFdTCiHRzRc7LIp17WDHB8IW22c3PuQ/LZofL65i1 2T18SeuQpqr44q0jfrQdRUKvw0960YCDKHVYXglActxw3GsYDSnIlSaLsfwWOWPtXJaX cBYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TNUY490V; 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 j24-v6si24331606pfn.363.2018.08.16.07.42.24; Thu, 16 Aug 2018 07:42:53 -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=TNUY490V; 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 S2389709AbeHPKwm (ORCPT + 99 others); Thu, 16 Aug 2018 06:52:42 -0400 Received: from mail-pl0-f68.google.com ([209.85.160.68]:37927 "EHLO mail-pl0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389699AbeHPKwl (ORCPT ); Thu, 16 Aug 2018 06:52:41 -0400 Received: by mail-pl0-f68.google.com with SMTP id u11-v6so1700148plq.5 for ; Thu, 16 Aug 2018 00:56:00 -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=iMrql5pChvk0l0OVuaoPU9zdtIybInbwoq7vsafDp1A=; b=TNUY490V5PaPYtEl4kRP+eAAGofj223txKV/xltMRjW9UAIF0Gjyt7nVgWjdZID9hC yw6eBWwK8OLJhR0GxzAiuL+DVBApl3Xg9DEYJl/qQp3waWKcfy3x5YZVNx5n1lP1yBXN b3yEThJhvCcBrNh8rYxmV4iVCoT5i0Y/BShvo= 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=iMrql5pChvk0l0OVuaoPU9zdtIybInbwoq7vsafDp1A=; b=YGNQbR66xnYpc3aPbL2kg7V514Ccw9/FzmwnCv+jN5A12xCth8J2/md9iuBBiImrsm WKtR2+yux1G/WeW5MzJNbKv8uH3reNFmwF3AKjtW7DIaMHIwiCNb8qVCp4eeByFSzJmp ZiaRKHBHN2e+o97NPqykgyglVZdVYfBp/b1zyQa/T79gpNbiRisVY++Txd9VxQp2rT7W PAygmXwSDylcRPQeTGjrCa5ogj7h1bXchFW6lmRRPSLrYUJTxM4DQcQaZPyc+0pwWYU6 bOEcIVE1BFMtjq5jMpnhVUL2KJ0bOsJY548IIL5jEf4H0CRBKl3966YBAHKYOXPYl/x4 LC0w== X-Gm-Message-State: AOUpUlHQsES5ofZuU4o4aLsjr5iIPUI426eM40goeA2xVFw1J+zGtguw ypJiBR+NixdJ0JxpV2GJ3VWicg== X-Received: by 2002:a17:902:1101:: with SMTP id d1-v6mr27431120pla.131.1534406160234; Thu, 16 Aug 2018 00:56:00 -0700 (PDT) Received: from ubt.spreadtrum.com ([117.18.48.102]) by smtp.gmail.com with ESMTPSA id i25-v6sm50838137pfi.150.2018.08.16.00.55.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 16 Aug 2018 00:55:59 -0700 (PDT) From: Chunyan Zhang To: Ulf Hansson , Adrian Hunter Cc: linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, Orson Zhai , Baolin Wang , Billows Wu , Jason Wu , Chunyan Zhang Subject: [PATCH V5 10/10] dt-bindings: sdhci-sprd: Add bindings for the sdhci-sprd controller Date: Thu, 16 Aug 2018 15:54:24 +0800 Message-Id: <1534406064-10065-11-git-send-email-zhang.chunyan@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1534406064-10065-1-git-send-email-zhang.chunyan@linaro.org> References: <1534406064-10065-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