From patchwork Mon Jul 23 10:08: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: 142564 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp5862848ljj; Mon, 23 Jul 2018 03:09:48 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfQS5gysbgRyi1TFBdYxRW9bAEp7/92MPIiPosd0KpuqJ87nN3iThTRuNeLLHu8mMM5TmJU X-Received: by 2002:a62:5486:: with SMTP id i128-v6mr12452873pfb.166.1532340588739; Mon, 23 Jul 2018 03:09:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532340588; cv=none; d=google.com; s=arc-20160816; b=YqsCmSHzGnTrJ/ji8Lo46lmdX/8gY3Lz87q12DGc/b8jwqxEcjCMh0J+Llvb4D/st3 LmxuBa7E/75MWmw6LLExuZVl6PWLLZbwdyog5wuEi8AydGQAUGZSBnhTi9a+JcUVLY2x TFhbXO+Yp1WV44ZilWnjGOydfyIq6A2vSRQJ1IU/cfmU5urjCjDtsXzUg6vv4b5NirPG Huqr4PKjRjc7jrcqirRMevJcpfrbOo4P4msqztoA8u2xMq6gAr32bSqYfL/3/VeMoWBB A1TqC1Hs9mYpg5pbASmDdeRTHWxrtQzEJTQcPCLe0F9I4VfYL6foiQ0Mx7zmwSXdV29f Pngg== 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=8pONV0lCI2C6iIohlfSctuw+fvJ6a70OGrdIyjlTXOQ=; b=Mq2t0Liem3HMhddtmKIkPEnePnbGsHCv7fHF4OiCYMs8ji27O2mjj5+rFzi+UeN5WJ TyoK49/elwE/si6o4zAVWIm5P58sULiMNdMPgp73M8yp5LQC7wSH2fO42MUmB1TbtU/0 zw2Bgg41doxq2fZ+xDAOJBcnWJ29EQQ2H4/a3wjHfTcP7QyDwqr9aWJR4uTpdOgdgL5q kqtdQPL/aOe92QsX9R1nahvTPdFhfVjWbK5R9vearY1C1vc+5N/hvy1LwffILAroHfMQ dpdnFrljW7JuXRMVyQqG6cE7UOoCDbj1kG67Tz2f2Si5cNySioTWNBqiXzXh5ese7hbs TWUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=CffCcna6; 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=fail (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 b66-v6si7782537plb.212.2018.07.23.03.09.48; Mon, 23 Jul 2018 03:09:48 -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=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=CffCcna6; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388445AbeGWLKI (ORCPT + 5 others); Mon, 23 Jul 2018 07:10:08 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:40935 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388444AbeGWLKI (ORCPT ); Mon, 23 Jul 2018 07:10:08 -0400 Received: by mail-pf1-f195.google.com with SMTP id e13-v6so10808pff.7 for ; Mon, 23 Jul 2018 03:09:41 -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=CffCcna69M9mIBu8F3DaqT/aURH/Z9hNxoiO8RCU5b5PMlhWLQQv9L7Gj/38sQQDOk vV0cJJd9U86FHXvtVXrGW2SYs+E2vSneAIVEt3861zJg7ZDoOBdocwrX/WO3CdALndK2 rDut3rYidECFgGwUPm3FDxbIXlz9eD+W/+dWY= 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=VYPNmCqQPycqtrYqYfvG6CxaSnE+qhyPn71nv1S4plHy9cZM/1Afhc0YwV/rXpEO3R 9/XpjjCzeifM7LW9MrKDFkffZhKr3/hbmsc1D3/u431cXIDdmbUTBVgIIz7HTpJ/b6/E iRKAZZJgTChl5kp+ndcHGP3ExC3tjlLOY3INFcT0EaBLaro7lidJjmsJkm+f2tSs6UZe AAPHdksnt9MSw/bSaHTAdHZhqneBgBnNFEuksdrLS4sWahbjnvDoFPfE7RNmUMALyPAh WXMXX5jjYCSw7WJqQBXqmtN3hjsfa2z0O1rkVtOEXDxxxZPGHWYO4UEfkmRRVfhAmcoS lqwQ== X-Gm-Message-State: AOUpUlGhRsyfEQKUklaIq+mSlTw1t3PdPjwov+oxSdo2drjFsqiwDOVn 793jnYkkjPwJ3o0bX+4dRGdUpw== X-Received: by 2002:a62:3545:: with SMTP id c66-v6mr12569338pfa.63.1532340580981; Mon, 23 Jul 2018 03:09:40 -0700 (PDT) Received: from ubt.spreadtrum.com ([117.18.48.102]) by smtp.gmail.com with ESMTPSA id e82-v6sm13470698pfk.87.2018.07.23.03.09.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 23 Jul 2018 03:09:40 -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 , zhang.lyra@gmail.com Subject: [PATCH V4 7/7] dt-bindings: sdhci-sprd: Add bindings for the sdhci-sprd controller Date: Mon, 23 Jul 2018 18:08:28 +0800 Message-Id: <1532340508-8749-8-git-send-email-zhang.chunyan@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1532340508-8749-1-git-send-email-zhang.chunyan@linaro.org> References: <1532340508-8749-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 -- To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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"; +};