From patchwork Mon Jul 9 03:19:58 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chunyan Zhang X-Patchwork-Id: 10513455 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 47ABD603D7 for ; Mon, 9 Jul 2018 03:22:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 35D5A2847E for ; Mon, 9 Jul 2018 03:22:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2850628A4D; Mon, 9 Jul 2018 03:22:38 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AD5E02847E for ; Mon, 9 Jul 2018 03:22:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933519AbeGIDWY (ORCPT ); Sun, 8 Jul 2018 23:22:24 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:44372 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933516AbeGIDWW (ORCPT ); Sun, 8 Jul 2018 23:22:22 -0400 Received: by mail-pg1-f193.google.com with SMTP id r1-v6so961252pgp.11 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=RKPImypjOTgCpO00EsrXo1PyN5ALHwkK6xSk/3MCQM2wexWiT6/kQj4tu5FcRZtbsI 1Qu/3uL3B/6rRqmwrAT3kjqlL3ZGEH3wxJ7Xdp2hIRUnCCVuUbQsCP/uyRd4Qd8JboZL yJieMEQxEHWNoHdgD9XwFJLrn+A7F8H0M0zOY7Pm/rDcHOVajsG8nZFkd2W6C5qNp+Q9 79qUhEtb1NNYXv6LyEPcUTOlE2KDRw1+zjiHdXuCPlHjXZDh+B2YxO096XIC8wU/Awv8 IUREL4LSTVoET0Xu6FoA2ao+Kq/mbwC/ZEeiSdtK/Y2hQgF8h30AMmql6PulKfylnIHE 6WMw== X-Gm-Message-State: APt69E13zF7R40dpGhsJUGjApvibfI6AzXnmc05OPAAeIIGvS0uu0l65 26MRPBqhUOKJmrc7kI+ihTENpw== X-Google-Smtp-Source: AAOMgpdBKo3AJI9fieipaoqhpt7v+52Wl6nh2la/LE0PwaXvs/sStzEz5Lvi+f0RjUP5dmaT1wbuvg== 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-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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"; +};