From patchwork Tue Jan 27 06:15:31 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chaotian Jing X-Patchwork-Id: 5714841 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 1CACB9F1D6 for ; Tue, 27 Jan 2015 06:19:49 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2B19A201CE for ; Tue, 27 Jan 2015 06:19:48 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 39224201CD for ; Tue, 27 Jan 2015 06:19:47 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1YFzTF-0003Pz-1X; Tue, 27 Jan 2015 06:17:53 +0000 Received: from [210.61.82.183] (helo=mailgw01.mediatek.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YFzSp-0003Aq-RK for linux-arm-kernel@lists.infradead.org; Tue, 27 Jan 2015 06:17:30 +0000 X-Listener-Flag: 11101 Received: from mtkhts09.mediatek.inc [(172.21.101.70)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1352371268; Tue, 27 Jan 2015 14:17:06 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkhts09.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 14.3.181.6; Tue, 27 Jan 2015 14:17:04 +0800 From: Chaotian Jing To: Rob Herring , Matthias Brugger , Chris Ball , Ulf Hansson , Linus Walleij Subject: [PATCH 6/7] dts: mediatek: Add MT8135 mmc dts Date: Tue, 27 Jan 2015 14:15:31 +0800 Message-ID: <1422339332-27498-7-git-send-email-chaotian.jing@mediatek.com> X-Mailer: git-send-email 1.8.1.1.dirty In-Reply-To: <1422339332-27498-1-git-send-email-chaotian.jing@mediatek.com> References: <1422339332-27498-1-git-send-email-chaotian.jing@mediatek.com> MIME-Version: 1.0 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150126_221728_308474_043D575E X-CRM114-Status: UNSURE ( 6.36 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 1.3 (+) Cc: Mark Rutland , James Liao , srv_heupstream@mediatek.com, Arnd Bergmann , devicetree@vger.kernel.org, Hongzhou Yang , Catalin Marinas , linux-mmc@vger.kernel.org, Will Deacon , linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, Chaotian Jing , Sascha Hauer , "Joe.C" , Eddie Huang , bin.zhang@mediatek.com, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add node mmc0, mmc1, mmc2 Signed-off-by: Chaotian Jing --- arch/arm/boot/dts/mt8135-evbp1.dts | 137 +++++++++++++++++++++++++++++++++++++ arch/arm/boot/dts/mt8135.dtsi | 27 ++++++++ 2 files changed, 164 insertions(+) diff --git a/arch/arm/boot/dts/mt8135-evbp1.dts b/arch/arm/boot/dts/mt8135-evbp1.dts index 73a833b..34abca6 100644 --- a/arch/arm/boot/dts/mt8135-evbp1.dts +++ b/arch/arm/boot/dts/mt8135-evbp1.dts @@ -226,3 +226,140 @@ }; }; }; + +&pio { + mmc0_pins_default: mmc0default { + pins_cmd_dat { + pins = , + , + , + , + , + , + , + , + , + ; + bias-pull-up; + }; + pins_clk { + pins = ; + bias-pull-down; + }; + }; + + mmc1_pins_default: mmc1default { + pins_cmd_dat { + pins = , + , + , + , + , + ; + bias-pull-up; + }; + pins_clk { + pins = ; + bias-pull-down; + }; + }; + + mmc2_pins_default: mmc2default { + pins_cmd_dat { + pins = , + , + , + , + , + ; + bias-pull-up; + }; + pins_clk { + pins = ; + bias-pull-down; + }; + }; + + mmc0_pins_uhs: mmc0@0 { + pins_cmd_dat { + pins = , + , + , + , + , + , + , + , + , + ; + input-enable; + drive-strength = ; + bias-pull-up = ; + }; + pins_clk { + pins = ; + drive-strength = ; + bias-pull-down = ; + }; + }; + + mmc1_pins_uhs: mmc1@0 { + pins_cmd_dat { + pins = , + , + , + , + ; + input-enable; + drive-strength = ; + bias-pull-up = ; + }; + pins_clk { + pins = ; + drive-strength = ; + bias-pull-down = ; + }; + }; + + mmc2_pins_uhs: mmc2@0 { + pins_cmd_dat { + pins = , + , + , + , + ; + input-enable; + drive-strength = ; + bias-pull-up = ; + }; + pins_clk { + pins = ; + drive-strength = ; + bias-pull-down = ; + }; + }; +}; + +&mmc0 { + pinctrl-names = "default", "state_uhs"; + pinctrl-0 = <&mmc0_pins_default>; + pinctrl-1 = <&mmc0_pins_uhs>; + status = "okay"; + bus-width = <8>; + max-frequency = <50000000>; + cap-mmc-highspeed; + core-power-supply = <&mt6397_vemc_3v3_reg>; + non-removable; +}; + +&mmc1 { + pinctrl-names = "default", "state_uhs"; + pinctrl-0 = <&mmc1_pins_default>; + pinctrl-1 = <&mmc1_pins_uhs>; + status = "okay"; + bus-width = <4>; + max-frequency = <50000000>; + core-power-supply = <&mt6397_vmch_reg>; + io-power-supply = <&mt6397_vmc_reg>; + cd-gpios = <&pio 63 0>; +}; diff --git a/arch/arm/boot/dts/mt8135.dtsi b/arch/arm/boot/dts/mt8135.dtsi index 53ce89f..cc2550c 100644 --- a/arch/arm/boot/dts/mt8135.dtsi +++ b/arch/arm/boot/dts/mt8135.dtsi @@ -253,5 +253,32 @@ <0 0x10214000 0 0x2000>, <0 0x10216000 0 0x2000>; }; + + mmc0: mmc@11230000 { + compatible = "mediatek,mt8135-mmc"; + reg = <0 0x11230000 0 0x108>; + interrupts = ; + clocks = <&pericfg PERI_MSDC20_1_CK>; + clock-names = "source"; + status = "disabled"; + }; + + mmc1: mmc@11240000 { + compatible = "mediatek,mt8135-mmc"; + reg = <0 0x11240000 0 0x108>; + interrupts = ; + clocks = <&pericfg PERI_MSDC20_2_CK>; + clock-names = "source"; + status = "disabled"; + }; + + mmc2: mmc@11250000 { + compatible = "mediatek,mt8135-mmc"; + reg = <0 0x11250000 0 0x108>; + interrupts = ; + clocks = <&pericfg PERI_MSDC30_1_CK>; + clock-names = "source"; + status = "disabled"; + }; }; };