Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp233950imm; Thu, 14 Jun 2018 19:07:16 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKJbVTvL6FcqZayCbOU5BtB9PACcF2aDQd9hQEbw551ljUDIQGTZCo70NrrAumP4cjfNm89 X-Received: by 2002:a62:a8e:: with SMTP id 14-v6mr11967188pfk.57.1529028436329; Thu, 14 Jun 2018 19:07:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529028436; cv=none; d=google.com; s=arc-20160816; b=rICncqPWzlxviLyAjdMllq/pPCsms/z3tSwTe+RGuSzWlRr5AlgiFoOJfpX/rUsAkf /ahrwrgcjhQCaM7hDZ6vYPuQK9sPPjR5TiOOuP36LxKWlelo4gtDvkyvdrdW9hjcDwAX BajzWgnLahqnh9ifYA6Vi9TbE/ccrkpLQmtgRyIfpSmdTD8QCOLrdgOWJGPo4/nMAVN9 Y3CIdR0NLpR3ln0891i0EzzaQHs6mCWOKzgs7EWK8S4AVaiU5Yj8B8DINzCljG8xgcTV dlKketXb4v/UixNGAAAdYFoxCqJwy9i2KZz7bMpbVYkQzyLHN81U+3PdS024cCzyej/9 pIcA== 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=GPVR9hltrShZ2IH00AGzicJabdQB4vd/PBiwFZBsFf+vDK+wopa16hjOeNzMhHir6Q yrvabY38KFx5R4Qk0iDHEwPpKh3K4vbRfk/4bcbF31rIhCqjvxbbmJ1OYoVRGUhTEGip aKNPqPwiITQ2cfwWX77Esd1sLPihsX9m221/EyyEo8LFxV1ceTYF7iS9+3q4VyviZebt lfOG9Uppt41MR4e/T854LofrPGUK75M98rTJtNrvBuztxv1r3DZO/gundZQOauKa2ZeC J4cv+VQR2Vbc9fDE5n38URC3tB4rvm11a+ombwyvEH/kgLEQMW/7NIow+S6MKObt1Ydh G6/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZFwLRIYf; 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 a3-v6si8060998pll.412.2018.06.14.19.07.02; Thu, 14 Jun 2018 19:07:16 -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=ZFwLRIYf; 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 S965533AbeFOCFb (ORCPT + 99 others); Thu, 14 Jun 2018 22:05:31 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:33543 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965475AbeFOCF0 (ORCPT ); Thu, 14 Jun 2018 22:05:26 -0400 Received: by mail-pf0-f193.google.com with SMTP id b17-v6so4134071pfi.0 for ; Thu, 14 Jun 2018 19:05:26 -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=ZFwLRIYf1YMykqsQUjRHRqpN6ibWMmukmz+3u1v2oql47QrPLYYZMaXn8EblWJ6SAy 6E0gBwWqnlRh9auRrDR2Y4FhwuTaI+7V1XmoFOpoCqg3Bq4G7IzdMrj8BJZetfMpbSlj n3glKy+FwSivSAjshgGEAnlJhXx/xHq7vsAq0= 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=AqYCKxIpd7c6rH2QDj3csfNjuR8I6OqKMDuIZ8mAw969e+p7LH1zABPd/wQf/4GVnp juJELckiiXPy+dPnzM4Y8cv1PIGrmchghfmte91UlU7jPSt1z5t+m6nA/sJZiemBYcKk hogojFaluamUbsrDAya5CULL/dpenMax9W7XLvCCyTlZMQ0jkmDQehFVjmwcPuVih1J1 t8A7hZREgvFbUR9Qe2AoPCOK6EvH/oKa1OggqpJR38pIWWJlpBqjj40G3UhIhpheMwSN bPB6NLaAPxZnB7OCV2QIGGcbTCpOh45GZPtJSWNOt0rqxNBC6CUoaCbksp99QE4MBGnN pkDg== X-Gm-Message-State: APt69E2ZDqBaQrOKubH+FACppoJiMukilFz+u71HzyaBf629I/pQOuA0 D6dukTBxh9pIPkEKGuVcvx395wYyV40= X-Received: by 2002:a62:4556:: with SMTP id s83-v6mr12043599pfa.73.1529028326182; Thu, 14 Jun 2018 19:05:26 -0700 (PDT) Received: from ubt.spreadtrum.com ([117.18.48.102]) by smtp.gmail.com with ESMTPSA id k69-v6sm9504953pgc.39.2018.06.14.19.05.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 14 Jun 2018 19:05:25 -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 , zhang.lyra@gmail.com Subject: [PATCH V2 7/7] dt-bindings: sdhci-sprd: Add bindings for the sdhci-sprd controller Date: Fri, 15 Jun 2018 10:04:15 +0800 Message-Id: <1529028255-6022-8-git-send-email-zhang.chunyan@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1529028255-6022-1-git-send-email-zhang.chunyan@linaro.org> References: <1529028255-6022-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