From patchwork Wed Aug 29 07:03:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chunyan Zhang X-Patchwork-Id: 10579569 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A0B7A1709 for ; Wed, 29 Aug 2018 07:04:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 920862AB64 for ; Wed, 29 Aug 2018 07:04:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 860E52AB82; Wed, 29 Aug 2018 07:04:02 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI 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 C926F2AB64 for ; Wed, 29 Aug 2018 07:04:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727406AbeH2K7Y (ORCPT ); Wed, 29 Aug 2018 06:59:24 -0400 Received: from mail-pl1-f193.google.com ([209.85.214.193]:34120 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727590AbeH2K7T (ORCPT ); Wed, 29 Aug 2018 06:59:19 -0400 Received: by mail-pl1-f193.google.com with SMTP id f6-v6so1899547plo.1 for ; Wed, 29 Aug 2018 00:03:54 -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=/RXtHte8bNFCXLz2sWlB+/MjHMcewoMGpsLw3S8KcCM=; b=Jr7z9XrhU3HrcPk/AT/DjDvnFFmTvleGb0H/furxCuBSYyZzL7uKeWtLUYar+F4IIm Wrt2u60UvZF4n/jHJcSF2kmPpVoRuvu+KpbmsZeWZoPnrxTfLHtVhelmeOLNp4to8NNb 2scOigqUNNicqcWV8Z83dAFah/7kyxkvoRmRg= 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=/RXtHte8bNFCXLz2sWlB+/MjHMcewoMGpsLw3S8KcCM=; b=UXoDNMFZIfXTw5tpQx87YABXzv4NUBILHb6OYMtg6za6DxsldBTrV10ojird2MNwaO xPU6jwzB7sVFtT0CqyhAllua2nLwTb184jnDa/8/jVUNvuXuxoJTpo5gVxh31B4GtzHq +j1VdHtcEBwW17OkNdtmq+OIvanXgdiVbyt/Q6bekC/e4zWdUETNxqjTEvhd+v7XIqS6 Aycxzu9oEyDUiSHPyoYP9TZZagXYMIG4zTSzqKcGB4m0vQ3RDKDDOCghk60j675EOXyS GNJsxr1Nf+C9HLwtRWlpUfW9B8iS8+S4EXxHse8yoOR60jHrNSPzsxvpbXSznO6bJ2qK 6IvA== X-Gm-Message-State: APzg51CIaSEW9vmt39FExUS+//izeZrNelHSZDG3QoLN0Orkf9kAdo6D ZA5Sc/klVtsZR95CsAZt5oDAzA== X-Google-Smtp-Source: ANB0Vdbdr+A5Bk/wBR5YVlkydZGX5vZd5YV2BsgEn4+LYzTHFAcGw8UH+2ipxrOBmL7mQktLBiZ7Wg== X-Received: by 2002:a17:902:7203:: with SMTP id ba3-v6mr4757417plb.179.1535526234254; Wed, 29 Aug 2018 00:03:54 -0700 (PDT) Received: from ubt.spreadtrum.com ([117.18.48.102]) by smtp.gmail.com with ESMTPSA id d81-v6sm4317342pfj.122.2018.08.29.00.03.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 29 Aug 2018 00:03:53 -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 , Chunyan Zhang , Chunyan Zhang Subject: [PATCH V7 9/9] dt-bindings: sdhci-sprd: Add bindings for the sdhci-sprd controller Date: Wed, 29 Aug 2018 15:03:04 +0800 Message-Id: <1535526184-32718-10-git-send-email-zhang.chunyan@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1535526184-32718-1-git-send-email-zhang.chunyan@linaro.org> References: <1535526184-32718-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"; +};