From patchwork Tue Jul 21 06:55:25 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sascha Hauer X-Patchwork-Id: 6832411 Return-Path: X-Original-To: patchwork-linux-mediatek@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 3DB479F1D4 for ; Tue, 21 Jul 2015 06:56:06 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 601C8204D2 for ; Tue, 21 Jul 2015 06:56:05 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7841E204AD for ; Tue, 21 Jul 2015 06:56:04 +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 1ZHRTA-0006cU-4B; Tue, 21 Jul 2015 06:56:04 +0000 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZHRSz-0006Ux-Fo for linux-mediatek@lists.infradead.org; Tue, 21 Jul 2015 06:55:54 +0000 Received: from dude.hi.pengutronix.de ([2001:67c:670:100:1d::7]) by metis.ext.pengutronix.de with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1ZHPb0-0003zc-1T; Tue, 21 Jul 2015 06:56:02 +0200 Received: from sha by dude.hi.pengutronix.de with local (Exim 4.86_RC4) (envelope-from ) id 1ZHRSX-0003E2-JZ; Tue, 21 Jul 2015 08:55:25 +0200 From: Sascha Hauer To: linux-arm-kernel@lists.infradead.org Subject: [PATCH] ARM64: dts: Mediatek: mt8173-evb: fix MMC, add to USB power domain Date: Tue, 21 Jul 2015 08:55:25 +0200 Message-Id: <1437461725-12364-1-git-send-email-s.hauer@pengutronix.de> X-Mailer: git-send-email 2.1.4 X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::7 X-SA-Exim-Mail-From: sha@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-mediatek@lists.infradead.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150720_235553_716375_290EDEF6 X-CRM114-Status: GOOD ( 13.14 ) X-Spam-Score: -3.1 (---) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Matthias Brugger , Sascha Hauer , Rob Herring , linux-mediatek@lists.infradead.org, Eddie Huang MIME-Version: 1.0 Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-5.4 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, 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 The MT8173 E1 chip has a silicon bug which breaks MMC when the USB power domain is disabled. The E1 chip is only found on the MT8173-evb board and this board only has the E1 chip, so we can implement this as a board specific workaround. This patch adds the MMC ports to the USB power domain to enable the domain whenever MMC is active. Since people tend to copy-paste add a comment so hopefully people will drop this line for other boards. Signed-off-by: Sascha Hauer --- This fixes MMC support in conjunction with the SCPSYS power domain driver currently sitting in Matthias' tree, so this is best fitted in Matthias' v4.2-next/arm64 branch arch/arm64/boot/dts/mediatek/mt8173-evb.dts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8173-evb.dts b/arch/arm64/boot/dts/mediatek/mt8173-evb.dts index 459ce6d..1c9dd84 100644 --- a/arch/arm64/boot/dts/mediatek/mt8173-evb.dts +++ b/arch/arm64/boot/dts/mediatek/mt8173-evb.dts @@ -317,6 +317,8 @@ cap-mmc-highspeed; vmmc-supply = <&mt6397_vemc_3v3_reg>; non-removable; + /* Only MT8173 E1 needs USB power domain enabled for MMC */ + power-domains = <&scpsys MT8173_POWER_DOMAIN_USB>; }; &mmc1 { @@ -331,6 +333,8 @@ cd-gpios = <&pio 132 0>; vmmc-supply = <&mt6397_vmch_reg>; vqmmc-supply = <&mt6397_vmc_reg>; + /* Only MT8173 E1 needs USB power domain enabled for MMC */ + power-domains = <&scpsys MT8173_POWER_DOMAIN_USB>; }; &pio {