From patchwork Wed Aug 29 07:03:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chunyan Zhang X-Patchwork-Id: 145392 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp340331ljw; Wed, 29 Aug 2018 00:03:56 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbgTmv1JXDYqiBgp21iy1VeZucR1spr10rF/dqLpkIenRebc4VU8pVRE3JsslCsi3so5lr6 X-Received: by 2002:a17:902:925:: with SMTP id 34-v6mr4718419plm.307.1535526236458; Wed, 29 Aug 2018 00:03:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535526236; cv=none; d=google.com; s=arc-20160816; b=oMFwWJ67MNdUH2rzuLnZGP3AwmIaC/U3mcmXS9MJj+Ifp+vH+AAdIB72iLHaqCjZh1 mOKcctAEGsj8HUSIO4UVnLvD8hIm9T9+QIKJmBmQFUrC9gf/yGhFnQBsr+YFVnKfAPY+ 1IIAsIURI4tyP0NtQiYs0zvEx4H5tB6/UMj0uEuIB0g4+NZ+aIHm3JnlNWDBLB9cUvDJ e6IvlM7nVPQyuP59o3nacI8KSBVOeBT6za2lGp+ja8FMMNm64eMIAactvuMonrx0ruvi jr/OD9N/lFSi5vzvPIwxlBGG1HrUXPwMoNl/okzuk4Ys9QaQSZDVWpB6UCMKRdV3nZ2c GkMw== 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=RUk9Vth9nIZy+8ZQMoC2VloQcaHiOAjNEn+QfoF5h29JhWJBcEx3jPc/n3Er2TygHb vWMUc5yYJDVJCxt7Gq2BkNkMwxUccNGnUdzbzyzt6EyvbO0vaokKBtkTEwiqfbrNjTyc i4RODwEBPfdn53zvgl5bF5kdEyuyoCLzIcLpeN0gzuGB59Q0xzvWumBGKd/BtFXU0eYF Q6xmAqYtBVvZqotHub8KCZJ/3zcbXMHtzLP8bsPi/l+nmkscTL/LtMjx48KsB7TcHKA7 nuFBRlYNFhS8C8igBCDWnptX3z81upVvoJ3mbe7533JI93y+rHqmiATl9oUKcIYjt+/h 3iug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Jr7z9Xrh; 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 x6-v6si2810814pge.100.2018.08.29.00.03.56; Wed, 29 Aug 2018 00:03:56 -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=Jr7z9Xrh; 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 S1727866AbeH2K7T (ORCPT + 32 others); Wed, 29 Aug 2018 06:59:19 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:42646 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727526AbeH2K7T (ORCPT ); Wed, 29 Aug 2018 06:59:19 -0400 Received: by mail-pl1-f196.google.com with SMTP id g23-v6so1880652plq.9 for ; Wed, 29 Aug 2018 00:03:54 -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=Jr7z9XrhU3HrcPk/AT/DjDvnFFmTvleGb0H/furxCuBSYyZzL7uKeWtLUYar+F4IIm Wrt2u60UvZF4n/jHJcSF2kmPpVoRuvu+KpbmsZeWZoPnrxTfLHtVhelmeOLNp4to8NNb 2scOigqUNNicqcWV8Z83dAFah/7kyxkvoRmRg= 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=ntuAL9LrX8NLPCLu1EG7qc9UdBWR7sDWlXv1q7GThCsyPuGT4XFYcazWicqShyVHAN WpaSnt5ZrJD0oCviHNibN+3b0YdizfbTYSyTlz14VVmLLKIk637MpiIQIcCBmO8SxxqM 67Li2uA6JRR5ZNFA8yUYRIXyfr3gmgmOCYkhg5L3BRxo8OQNAS5LtoYYOpbTapVUqDb8 w4dsiKlfN5lUIXfVaYfWhOK4uYDnj2RsGx/uTpZNBEIK4cyfMqZnznWPCgGQ23s1uOxy 2h2x/zhysLE9qXfqS3EfbrMdpa6yLhVlST/QdXM5lIuapRbWa4z+lZHjePe5V70BiIbC gYMQ== X-Gm-Message-State: APzg51AV3JxvQn1unyHPPdGhzLtsi0Il/spGxBkxIGFpwEo4ABdq+AfG 2cNbe3An/UsKWKMGmTlEiM62+w== X-Received: by 2002:a17:902:7203:: with SMTP id ba3-v6mr4757417plb.179.1535526234254; Wed, 29 Aug 2018 00:03:54 -0700 (PDT) Received: from ubt.spreadtrum.com ([117.18.48.102]) by smtp.gmail.com with ESMTPSA id d81-v6sm4317342pfj.122.2018.08.29.00.03.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 29 Aug 2018 00:03:53 -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 V7 9/9] dt-bindings: sdhci-sprd: Add bindings for the sdhci-sprd controller Date: Wed, 29 Aug 2018 15:03:04 +0800 Message-Id: <1535526184-32718-10-git-send-email-zhang.chunyan@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1535526184-32718-1-git-send-email-zhang.chunyan@linaro.org> References: <1535526184-32718-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 -- 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"; +};