From patchwork Fri Aug 24 09:20:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chunyan Zhang X-Patchwork-Id: 145004 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp1065696ljw; Fri, 24 Aug 2018 02:22:01 -0700 (PDT) X-Google-Smtp-Source: ANB0Vda8CqjI7CwOoG4kGmFBnoms+rlkSUqqav2NG3Tn5nx/u4gTaYW8vUAjoSGq7gJ3YYeVPN75 X-Received: by 2002:a17:902:1566:: with SMTP id b35-v6mr881348plh.135.1535102520962; Fri, 24 Aug 2018 02:22:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535102520; cv=none; d=google.com; s=arc-20160816; b=Q9uUzo3o4Pi0YtZCm72KkZm2eVTHm+wM6yhNcp6fKT/f4O0v1p2uFhTZf553NaT6nf wNvj6Fr3hqdDW1TtBXj3yCy3MXMY2IEdO8zkk8Ub0obZT5IX3DZFXu7ZjL/B16yfj4C7 TtQpl+e7aI/Hj7h1XuJt4xu3hxm0BG94v44nJ/gKAyCC49KeolrhhvIRO5/lu14dQ/VN DhZbuD96harG3vs+iFb+pbCsKVJs5raIAf/qoqMRNYUJAc0xtWwSXbyo3IupJdePmOut nc0FBzknhd58Me04n5+pQJQAyOSR34hAUPQL2+o/X9jbq3smHcj8O2dDgBwcsq4+dfS+ NMBA== 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=LrICAc+++VAgilnvS23Sef3egJ3q8rkXqzTr3SvVI19w8Pn3FjJ/t9VYeBTofGJiSt H2qmWBZJOBfm8oZbzSMZptNp7gYKu2y2YKwAe2+6IRjL4JOkdfsLH+hLkoDGD0ghLLQD 4JGhJ97pyLC2XR0amt6PsqdNeTh20cjY6CY6/+FJy96ptO1fB0BY6MWfF6XAs+0qyOyH vW63b5+W/T3XQ6Iu3aJ3c+4E85kK02WwjqyHAqBcmI2CpMMVkc8CL9eAKgkZF2RFSaCF 82ISQ61303XWMAsTtt3B+mrmNwk+1K0IA8+p/JsGRm9B5T0vVzFRIcq41UGV6a01nlv3 FX4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="RQ/9niS2"; spf=pass (google.com: best guess record for domain of linux-mmc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-mmc-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 s2-v6si4407822plp.144.2018.08.24.02.22.00; Fri, 24 Aug 2018 02:22:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-mmc-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="RQ/9niS2"; spf=pass (google.com: best guess record for domain of linux-mmc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-mmc-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 S1726746AbeHXMzo (ORCPT + 5 others); Fri, 24 Aug 2018 08:55:44 -0400 Received: from mail-pl1-f193.google.com ([209.85.214.193]:33011 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727941AbeHXMzo (ORCPT ); Fri, 24 Aug 2018 08:55:44 -0400 Received: by mail-pl1-f193.google.com with SMTP id 60-v6so851168ple.0 for ; Fri, 24 Aug 2018 02:21:58 -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=RQ/9niS2ZQDepy69GPR4TwrmfOO7UsOK2r2+SLhbspcKcRYUR5uLpEtybkOmM965Jq o2j18KVbNEKoeSXb0iYqm0uY+CI+ZWRvt8pa4ARh8rmundcEHO3lzIc5bIXK+7t8HXFw xUfnvM1MrewnCHXWevfo3yq+2FY5pS3dQzyVI= 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=O8jTB7gl/+YxCiNLKLA9zOjzduS4zdaFkFnBVRadaX/+b59ni/huQZXiKmRUKMSBSJ hvUjI3FvWG3EpehUqDyAJqm3jLcENeHlUmPHcnHjg1ovMIjTGUVNJUm5ML8GZqRh1mQP Z4GN1eMmdpdkeuhPxJ5mLwb7oQlZrirgGpKrEEPeYEr9CteKvUxfHIht7bkMysobV5az bM0tCEUaWLkG1ofhme2tHnS2iNeF2IHKCAaJK+MGN2phXllFTrXYv6hKcc48HCTkd3x5 lOQcYYJNc/wRLzaPNTRqHwWobkdUv579fgeqGKWt9W1s9ljXr9x4Tb+I0i+C54pmRWDj ehkA== X-Gm-Message-State: APzg51DS0t7/XKpr8Qa0eNotiYcWeKEmCEuzj1rZwOxGtRACtJClUUat k7dyiNi90cg4La7A4916NVtX4g== X-Received: by 2002:a17:902:8a92:: with SMTP id p18-v6mr891941plo.148.1535102517890; Fri, 24 Aug 2018 02:21:57 -0700 (PDT) Received: from ubt.spreadtrum.com ([117.18.48.102]) by smtp.gmail.com with ESMTPSA id g6-v6sm9520314pfb.11.2018.08.24.02.21.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 24 Aug 2018 02:21:57 -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 , Chunyan Zhang Subject: [PATCH V6 9/9] dt-bindings: sdhci-sprd: Add bindings for the sdhci-sprd controller Date: Fri, 24 Aug 2018 17:20:28 +0800 Message-Id: <1535102428-20332-10-git-send-email-zhang.chunyan@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1535102428-20332-1-git-send-email-zhang.chunyan@linaro.org> References: <1535102428-20332-1-git-send-email-zhang.chunyan@linaro.org> Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@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 -- 2.7.4 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"; +};