Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp92305imm; Sun, 8 Jul 2018 20:23:40 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeHFfmVHxufDMZIMgwaFS/IZgua45STveOl6Kx5hshiUIiv8xO2pqp57hYeuAPIhRQvXk3g X-Received: by 2002:a17:902:143:: with SMTP id 61-v6mr18751837plb.171.1531106620710; Sun, 08 Jul 2018 20:23:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531106620; cv=none; d=google.com; s=arc-20160816; b=H7TjGSrFaUkMJBGpB/V8F0McMbljXnXYFWcQhOmVv+xjQAK9LtMb12ZAyN7pN7sMDn g0rTphkZXlokV4LS8pz+AZjXzDSMCF9us5s5KMnsrWubEcpz6ERf+8wo/n4/2+bZbZIE Rvu3PUWXvmJldv8As5Ci7X5LN24uhECkocshE05W6FDJqX+RzxMESyYlM/JLndvXCrLg HcrjhX1nHlTn4GoFxJCAJ4dHx+8hLAN9b1udTLBwZ4Bt2Onrzt7T7HYqkPIQYUkcjh3f LCa6//ug6cnU/uZrwu0rtaFyAmZ3pzXEvm2+84jHGZAB0FDbO/pYH7TlgLFkf6BIQvPG G1tQ== 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=sGLPjX49OTXcr5HbcNL8SJgAyExm4NZ2L8OY3I8v0COpJO1lzwODc5GEDFjaVZgV98 aWNFqquSI7rpgFNCf9sVyK9CK/7AYFD2gMc1UlyCStRhVgouQwhnv0Pa+OEBfERTqeDx 85AAiu47jUwmliCqJTRM1VI8ItoMY5RFhNoH3byRM4YTZBTLHNQde7a08xcXy2Fjn5va rPHhsor9AHzEnV7p32aDBWy5pWcExBNUQDaCfSlaQxOHRl2Qps2JqYJIWCKBv6qMycY+ OS3GrdkElm74iODFEfk5eFXpr15vGQsnyK/4kk/Y6s5rOfhO+atQhCJsVHVcNsMkcQ3q P5Yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HVQocukH; 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 y20-v6si13515217plr.55.2018.07.08.20.23.26; Sun, 08 Jul 2018 20:23:40 -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=HVQocukH; 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 S933538AbeGIDWY (ORCPT + 99 others); Sun, 8 Jul 2018 23:22:24 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:46164 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932996AbeGIDWW (ORCPT ); Sun, 8 Jul 2018 23:22:22 -0400 Received: by mail-pg1-f194.google.com with SMTP id p23-v6so810701pgv.13 for ; Sun, 08 Jul 2018 20:22:21 -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=HVQocukHUClXSNSLDRggehh7ZXaV5tKZvDVso0NG2+//TwzyQ25zBJtb9G1pZ6noaW CcsriR4t4VIsbF8tN0z1S7EznEF1KN82eI1wcUhXgm9evKggdK+mrYRqeP6m3W581eRS HJzOs6N0YIh/Ujz3PPfVDKKM3G7U/iIF2wQAE= 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=gK3Nxn0/x1KCE4EiIDXTTblZUd2cRvZHPbyGBpP+Ez+lI/HUlz8bn7zrBWGlovhUPZ Uaa7Ypwv2L085mjAwSCz/EFlPCf34O2W96mDBTvkwenpm5r3Lo6irgaHQJYXb6LVEFaX KPtEURufPiUiKuzl2T2FLbq1IEl9uykayhkyaxhJIy85Jmk4lSkLjcTh0vxiTUdcdphx 2nWm/T96+sXXcQbtzlzabH3B7FJZdoAk8y+EX46Y8AvzzGfn+/5EAT2m7KEJs3yjPYGl rcKkzjbAtX54ujGEGsUGnDw0uhyIDCwVV79so/xKJk5myYfp9iXMARz5GOv/4O+gWqNp RuDg== X-Gm-Message-State: APt69E3p+ifZcaB1aMA6YYgaHxl0GOO1vQMcIa/bF5IK9+GMckIhT9tD 4icWZAoM3eW27TuB+z/w7eFevQ== X-Received: by 2002:a63:6004:: with SMTP id u4-v6mr17248394pgb.441.1531106541708; Sun, 08 Jul 2018 20:22:21 -0700 (PDT) Received: from ubt.spreadtrum.com ([117.18.48.102]) by smtp.gmail.com with ESMTPSA id e82-v6sm41458950pfk.87.2018.07.08.20.22.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 08 Jul 2018 20:22:20 -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 V3 7/7] dt-bindings: sdhci-sprd: Add bindings for the sdhci-sprd controller Date: Mon, 9 Jul 2018 11:19:58 +0800 Message-Id: <1531106398-14062-8-git-send-email-zhang.chunyan@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1531106398-14062-1-git-send-email-zhang.chunyan@linaro.org> References: <1531106398-14062-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