Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp5625908imm; Mon, 23 Jul 2018 03:11:32 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcDeh4TpksaK4inifc7H0r2JPdGUoDXHOeQy5GAzahtYP5hDHr7XNNT966KJfSwIOYyE5uK X-Received: by 2002:a63:f713:: with SMTP id x19-v6mr11645731pgh.233.1532340692641; Mon, 23 Jul 2018 03:11:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532340692; cv=none; d=google.com; s=arc-20160816; b=atmiLZLISsiPQCo7mA29+KYp7ZOv9diDVO+qKrEyQ6jD4Qm6w8ZGMsHz9QV6vSwdOZ d1uAMB/j9d0YWahty60e+l8PqsxlmfjARW3HSNpHEii8QhhYHfpEzHyY+W+UVYTSMPAa /XMUABw3FflhGXFcdLaFogwJGMBWYwumsnDQPgKmp8rOWn8l1wPNg61p9ZSLf25M5ncB UwIHZVmxS/rYqbK34GHnm4bP6VZ6UrfoaZXAfWgB6LOgTVzXmMFKByjy/fTlJ5xTmWt7 yA9S92YXZrUTc4E+5L07RrB3b7W/trt6nPVCtOsnxGZNJ5bu+gBbiOgxX4eAY6G5y4hN ooQw== 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=V4ZdwYq/RtmG4C9gEovT+mDtrDOvO5eIpusVHTyzjMjRofMZUpidegyECweMtpPB17 hv8sSKs7LI4qM/jr9TmXzDKk+8y1esMk3/SLWP4DNtHk4MRji7KC6IgPF9vvAtI+Y8kz QIiXmFoD8cgPOpISsuzgEJ9oZrIezO2yZbTpCj6etrCm6rBXg5W5gz4WKaPrXWBRbzEx UzxsQJg/DnV/5C6sUL/tPh+i1McJnwKkCaWATsclawG9nlN/q9wOPdnKiw4ewUzlx6bW 8m2dKheQxYjRe8XvK5yTOHckIirgN5G//KoiJtHZ/cfq9fKybJqSeLQClDSOUwsrwAiU DFWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CffCcna6; 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 k17-v6si7230646pfj.321.2018.07.23.03.11.18; Mon, 23 Jul 2018 03:11:32 -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=CffCcna6; 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 S2388467AbeGWLKO (ORCPT + 99 others); Mon, 23 Jul 2018 07:10:14 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:45178 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388443AbeGWLKI (ORCPT ); Mon, 23 Jul 2018 07:10:08 -0400 Received: by mail-pf1-f195.google.com with SMTP id i26-v6so8648pfo.12 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=PQr1rqPAhIgvR8Jn8K4npgON3VfP0HYdeL3jcA2eVvYzZ8i/Puv4Y22VSKx5CadSBp x/+kWkelNGB3HUrECo3f+z3Dn8YVNONCT0Pwb2LXRZt6Or8gFO6RjNWa4gRNjkeF8ET8 69AnmS4ztJYquKwmVBrxAdwWrvIGaI8Ub5e/80N855YvvpOkQ6Je+cZqrgMCnckVuFdp HGUy6ERqfTrjnNOONYE5zsreDqWLPzO6HoC4eSeRwEDScnSsM8kMWvfp55iE0vIIKVHC 9pNaF+kpGdJGtcRSFBZsvyl8QwRD22dTkkZH9THlyE46OkJqpR17CxSj22MJzhzWcEdJ tezg== X-Gm-Message-State: AOUpUlGE+kYukaKZmkh7VopcmVBb+mG9ZxEgdciHuXIE+71luPeSF5bt sgNLyN57EFZRdxq8EnaTcyFuig== 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-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