From patchwork Thu Mar 8 01:01:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 130924 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp5851777lja; Wed, 7 Mar 2018 17:02:49 -0800 (PST) X-Google-Smtp-Source: AG47ELursjA7jzV97O6lJUlejvfwJFP1maa4mzJnjATD8j1SAwqh+VPtfJ0Cb8MUBlRMHqBlfrX3 X-Received: by 2002:a17:902:8602:: with SMTP id f2-v6mr12505266plo.6.1520470969428; Wed, 07 Mar 2018 17:02:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520470969; cv=none; d=google.com; s=arc-20160816; b=PcsomFUZB/no7LW4G6SwynS3H78WRlnOiYmVQdLXqQSgoi5a5w0iqh74ctYAywk+i8 U6OOXDEKebqilSJI2ZcyeoUyVbf6q9x+uot3FiWWEpi0Rn1xBVbYgWDqnULVDgCPCC9K k/pOngy1qdB0p96MJpyszkuVAuHgP/OP5LVRS+KLjO6LjjLkBo/tdj3GmsI6+xLoJUTj uf5/XogQjW0ETjPF9u6Nz3T2O5BuitLJQGM5BAdGON611nHYDn1U4ByAMDWIZumOOo3O JASp/kum3bBXy0BOrxQArdcLUaGfeDR2SZQ+ZftyMn7msPSgphs2aEr9YcbvhXdeKDLb ikaA== 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=Ww+lBFHfN3e1h1TOExchhUtNsA2Y7r3fMy1dm9X6R0I=; b=v6r47mjKovwx/WPvOiJPbeqYo2vC27qeCK1Bxg6eUzCotm/KLws4FMMHWAmioyJyvq Xm1I43jzZG+CAxO/vtL1PzGDgHb1GZx6hh0hKqRI4hQBh7Qg5whP9PeOn2BBZdRDMQDX PBaZG76Nwh+K5wMp4j1fA4/Ql9yErGITSe+Z1W+CNSliFnJ0RSvs5bmbmyMtfe7g8jms vJC2lIw1B9CIxVhVvANNidLEH70cBfsBYpA5tevCiz/yD349Sla6xMfriKzWzu/mwMgn nnI6Zb6TgPlq0oSup+47qYFKHPAWFnW/dEDzSqaF0LzLG+GOtXfQBieQLifWFKPXSsRS 5ejQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=GMZ8nApl; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (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 l3-v6si13983255pld.519.2018.03.07.17.02.49; Wed, 07 Mar 2018 17:02:49 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=GMZ8nApl; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754967AbeCHBCs (ORCPT + 6 others); Wed, 7 Mar 2018 20:02:48 -0500 Received: from mail-pf0-f194.google.com ([209.85.192.194]:42149 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754946AbeCHBCr (ORCPT ); Wed, 7 Mar 2018 20:02:47 -0500 Received: by mail-pf0-f194.google.com with SMTP id a16so1682040pfn.9 for ; Wed, 07 Mar 2018 17:02:47 -0800 (PST) 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=BaQpGtQ9A+jYcLhaNDpr0FaAMTTP4fInrxCsJEaSh5c=; b=GMZ8nAplNICyuCvLbVrpux0PUFmx6nirRa0AS/weD5ZIcqtmYnXFHsDbYM7qOZ67+Y BtEEfl/+84WOlHLNxOfdy8zOCCEg3cru8gCyeQqlSUAGL5eCewdVU6CGu8pkdqvKDyPJ FSdjefmXN4m7Yr82RgxIuno1+QOWGUWBP91B0= 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=BaQpGtQ9A+jYcLhaNDpr0FaAMTTP4fInrxCsJEaSh5c=; b=XL8hXf45Warb+65W5h2rED75fmAF7agioLlq44yyjML8fhVgEjitokjwnS3TUY2lv0 KNzbraAgq3CTFZEwVaYtoFSgT+aUyh7Bjm6+Iv3z0Z+3xMzEMuX2lD59rARIdeowve4z bv62bCnoU2xR/vJrbFAtlL9yKY8ysWC0+rBnNZUP5ado1nZ2kjJoCARIeA2DUQWnDzfs GahUHejr6zAItBOXkNciijk7qE7Vq7PsYFzk2BF8Le+8PD+5EqefROXbLAbrX+ZrN+bD aALBNOJtnPquCDN2Nd2Md/CaecPxQ6DQAjc74h0Bw2Q07mkggZZytkOjLOOzCfFBtgNu JBKw== X-Gm-Message-State: APf1xPA+DI7gCrzw1/It3jJ1tQFdqtUoykiG1OwsYkDvXyHEdCgn1+NV pJZ/wJz6Dkc328vxQCCF+zLd1Q== X-Received: by 10.99.96.18 with SMTP id u18mr20184923pgb.124.1520470966940; Wed, 07 Mar 2018 17:02:46 -0800 (PST) Received: from localhost.localdomain ([104.237.91.63]) by smtp.gmail.com with ESMTPSA id l12sm39459131pfb.35.2018.03.07.17.02.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 07 Mar 2018 17:02:45 -0800 (PST) From: Shawn Guo To: Ulf Hansson Cc: Jaehoon Chung , Shawn Lin , Rob Herring , tianshuliang , Jiancheng Xue , devicetree@vger.kernel.org, linux-mmc@vger.kernel.org, Shawn Guo Subject: [PATCH v3 1/2] dt-bindings: mmc: add bindings for hi3798cv200-dw-mshc Date: Thu, 8 Mar 2018 09:01:33 +0800 Message-Id: <1520470894-9114-2-git-send-email-shawn.guo@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1520470894-9114-1-git-send-email-shawn.guo@linaro.org> References: <1520470894-9114-1-git-send-email-shawn.guo@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: tianshuliang Hisilicon hi3798cv200 SoC extends the dw-mshc controller for additional clock control. Add device tree bindings for hi3798cv200-dw-mshc. Signed-off-by: tianshuliang Signed-off-by: Jiancheng Xue Signed-off-by: Shawn Guo Reviewed-by: Rob Herring --- .../bindings/mmc/hi3798cv200-dw-mshc.txt | 40 ++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 Documentation/devicetree/bindings/mmc/hi3798cv200-dw-mshc.txt -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/Documentation/devicetree/bindings/mmc/hi3798cv200-dw-mshc.txt b/Documentation/devicetree/bindings/mmc/hi3798cv200-dw-mshc.txt new file mode 100644 index 000000000000..a0693b7145f2 --- /dev/null +++ b/Documentation/devicetree/bindings/mmc/hi3798cv200-dw-mshc.txt @@ -0,0 +1,40 @@ +* Hisilicon Hi3798CV200 specific extensions to the Synopsys Designware Mobile + Storage Host Controller + +Read synopsys-dw-mshc.txt for more details + +The Synopsys designware mobile storage host controller is used to interface +a SoC with storage medium such as eMMC or SD/MMC cards. This file documents +differences between the core Synopsys dw mshc controller properties described +by synopsys-dw-mshc.txt and the properties used by the Hisilicon Hi3798CV200 +specific extensions to the Synopsys Designware Mobile Storage Host Controller. + +Required Properties: +- compatible: Should contain "hisilicon,hi3798cv200-dw-mshc". +- clocks: A list of phandle + clock-specifier pairs for the clocks listed + in clock-names. +- clock-names: Should contain the following: + "ciu" - The ciu clock described in synopsys-dw-mshc.txt. + "biu" - The biu clock described in synopsys-dw-mshc.txt. + "ciu-sample" - Hi3798CV200 extended phase clock for ciu sampling. + "ciu-drive" - Hi3798CV200 extended phase clock for ciu driving. + +Example: + + emmc: mmc@9830000 { + compatible = "hisilicon,hi3798cv200-dw-mshc"; + reg = <0x9830000 0x10000>; + interrupts = ; + clocks = <&crg HISTB_MMC_CIU_CLK>, + <&crg HISTB_MMC_BIU_CLK>, + <&crg HISTB_MMC_SAMPLE_CLK>, + <&crg HISTB_MMC_DRV_CLK>; + clock-names = "ciu", "biu", "ciu-sample", "ciu-drive"; + fifo-depth = <256>; + clock-frequency = <200000000>; + cap-mmc-highspeed; + mmc-ddr-1_8v; + mmc-hs200-1_8v; + non-removable; + bus-width = <8>; + };