From patchwork Fri May 1 01:46:56 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangfei Gao X-Patchwork-Id: 47881 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f200.google.com (mail-lb0-f200.google.com [209.85.217.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 457222121F for ; Fri, 1 May 2015 01:47:20 +0000 (UTC) Received: by lbos2 with SMTP id s2sf20691004lbo.2 for ; Thu, 30 Apr 2015 18:47:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=1HYvtVKzlximM0eAn8pGPeIx/Iy0vLZYH9LgcXns5II=; b=IpTRscyWPaWuuVja3hzK4BkQCteYDHilX0ouCQAwOvPLASnLfjhZcraLgHb4rE3xvR 7EHyOhUeaCgzrqFX+BYYCqFbaMgmEwIcTZA/DmQBGmSjkwL2byalDPLxXN2H5JQSv2ko ThPCMrNQ2qxJSb/L0b37iuDW9Aq24gg3pouxy/XoqG6613CkkLP2xEoVRY3wXdPlXuZw /QTf19xc+P5zEkB3ot1/f1Q4Fgxl2z3yIu2jHZSF5MLiiNvVpyippWDqX41sq7jo0Wbu aKWHuvdY9YZxY18v1FmngiDCE8vBMSSzfh+x+DGq8WrvKPJvhmdzxhwZ7xg/79Ayahs0 oC3g== X-Gm-Message-State: ALoCoQkDfkYN2/L3FWNUpHY3V8SprGD/7qiNPQkPHAX3rCRf2qEUIO4cq2MkAs7jM/c3YfnPl3Av X-Received: by 10.194.5.229 with SMTP id v5mr5201251wjv.0.1430444839288; Thu, 30 Apr 2015 18:47:19 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.44.195 with SMTP id g3ls483530lam.0.gmail; Thu, 30 Apr 2015 18:47:19 -0700 (PDT) X-Received: by 10.152.43.74 with SMTP id u10mr6316055lal.90.1430444839066; Thu, 30 Apr 2015 18:47:19 -0700 (PDT) Received: from mail-la0-f54.google.com (mail-la0-f54.google.com. [209.85.215.54]) by mx.google.com with ESMTPS id am7si2974868lbc.70.2015.04.30.18.47.18 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Apr 2015 18:47:18 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.54 as permitted sender) client-ip=209.85.215.54; Received: by lagv1 with SMTP id v1so56965522lag.3 for ; Thu, 30 Apr 2015 18:47:18 -0700 (PDT) X-Received: by 10.152.29.161 with SMTP id l1mr6199359lah.76.1430444838892; Thu, 30 Apr 2015 18:47:18 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.67.65 with SMTP id l1csp33272lbt; Thu, 30 Apr 2015 18:47:18 -0700 (PDT) X-Received: by 10.70.47.68 with SMTP id b4mr13454578pdn.33.1430444836991; Thu, 30 Apr 2015 18:47:16 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t17si5848838pdi.227.2015.04.30.18.47.16; Thu, 30 Apr 2015 18:47:16 -0700 (PDT) Received-SPF: none (google.com: devicetree-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753201AbbEABrP (ORCPT + 6 others); Thu, 30 Apr 2015 21:47:15 -0400 Received: from mail-pa0-f51.google.com ([209.85.220.51]:35484 "EHLO mail-pa0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751206AbbEABrO (ORCPT ); Thu, 30 Apr 2015 21:47:14 -0400 Received: by pabtp1 with SMTP id tp1so77129521pab.2 for ; Thu, 30 Apr 2015 18:47:14 -0700 (PDT) X-Received: by 10.68.69.69 with SMTP id c5mr13460787pbu.61.1430444834098; Thu, 30 Apr 2015 18:47:14 -0700 (PDT) Received: from localhost.localdomain ([180.150.153.56]) by mx.google.com with ESMTPSA id ef3sm3354503pbc.26.2015.04.30.18.47.10 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 30 Apr 2015 18:47:13 -0700 (PDT) From: Zhangfei Gao To: Jaehoon Chung , Ulf Hansson Cc: linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, Zhangfei Gao Subject: [PATCH 1/3] Document: dw_mmc-k3: add document of hi6220 mmc Date: Fri, 1 May 2015 09:46:56 +0800 Message-Id: <1430444818-7740-2-git-send-email-zhangfei.gao@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1430444818-7740-1-git-send-email-zhangfei.gao@linaro.org> References: <1430444818-7740-1-git-send-email-zhangfei.gao@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: devicetree@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: zhangfei.gao@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.54 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Signed-off-by: Zhangfei Gao --- .../devicetree/bindings/mmc/k3-dw-mshc.txt | 50 ++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/Documentation/devicetree/bindings/mmc/k3-dw-mshc.txt b/Documentation/devicetree/bindings/mmc/k3-dw-mshc.txt index 3b35449..a353d0b 100644 --- a/Documentation/devicetree/bindings/mmc/k3-dw-mshc.txt +++ b/Documentation/devicetree/bindings/mmc/k3-dw-mshc.txt @@ -13,6 +13,10 @@ Required Properties: * compatible: should be one of the following. - "hisilicon,hi4511-dw-mshc": for controllers with hi4511 specific extensions. + - "hisilicon,hi6220-dw-mshc": for controllers with hi6220 specific extensions. + +Optional Properties: +- hisilicon,peripheral-syscon: phandle of syscon used to control peripheral. Example: @@ -42,3 +46,49 @@ Example: cap-mmc-highspeed; cap-sd-highspeed; }; + + /* for Hi6220 */ + + /* SoC portion */ + dwmmc_0: dwmmc0@f723d000 { + compatible = "hisilicon,hi6220-dw-mshc"; + num-slots = <0x1>; + board-mmc-bus-clk = <0x0>; + reg = <0x0 0xf723d000 0x0 0x1000>; + interrupts = <0x0 0x48 0x4>; + clocks = <&clock_sys HI6220_MMC0_CIUCLK>, <&clock_sys HI6220_MMC0_CLK>; + clock-names = "ciu", "biu"; + }; + + dwmmc_1: dwmmc1@f723e000 { + compatible = "hisilicon,hi6220-dw-mshc"; + num-slots = <0x1>; + board-mmc-bus-clk = <0x0>; + card-detect-delay = <200>; + hisilicon,peripheral-syscon = <&ao_ctrl>; + reg = <0x0 0xf723e000 0x0 0x1000>; + interrupts = <0x0 0x49 0x4>; + clocks = <&clock_sys HI6220_MMC1_CIUCLK>, <&clock_sys HI6220_MMC1_CLK>; + clock-names = "ciu", "biu"; + }; + + /* Board portion */ + dwmmc_0: dwmmc0@f723d000 { + bus-width = <0x8>; + broken-cd; + vmmc-supply = <&ldo19>; + pinctrl-names = "default"; + pinctrl-0 = <&emmc_pmx_func &emmc_clk_cfg_func + &emmc_cfg_func &emmc_rst_cfg_func>; + }; + + dwmmc_1: dwmmc1@f723e000 { + bus-width = <0x4>; + disable-wp; + cd-gpios = <&gpio1 0 1>; + pinctrl-names = "default", "idle"; + pinctrl-0 = <&sd_pmx_func &sd_clk_cfg_func &sd_cfg_func>; + pinctrl-1 = <&sd_pmx_idle &sd_clk_cfg_idle &sd_cfg_idle>; + vqmmc-supply = <&ldo7>; + vmmc-supply = <&ldo10>; + };