From patchwork Wed Mar 8 13:39:43 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 9611147 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 62FB060414 for ; Wed, 8 Mar 2017 13:40:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0976E2856E for ; Wed, 8 Mar 2017 13:40:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F0DDD28585; Wed, 8 Mar 2017 13:40:50 +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=-1.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 846532856E for ; Wed, 8 Mar 2017 13:40:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=CPsqR6Odmeiqn3GQpgXq5KLztt9Wx7810e9J1fUuogM=; b=Jm/GAAenpL8weM+OFxE54N/yl0 wh/4X9m3eYSPJwQfPhQPmSQVko9fNnQA6S7f92hFQXq5oP9s0DRBSnn3303yMqruUVlyuwuN3+OzT FzkBHprzHb8AAVheXJLMJX9FQUjG3ANM2HFDbIGns5a5bXZ7XC9YZ6vYsxLnUSnaDIUd7ByXCZEvm 7BSVPtkBk/phoVnWxviUBukl1o6MvplRO2Bees9PcXQp0LAi9/kLewLZ083gnu5+ZnieodWtvDMV5 ImUIBAmDhCmgprQr4AvuCPBNZITjdF5eDJOBRTW0EYbaRc8jpztQ0PT3ZTiKwERPBF/FjqmA5tj4d vMtl1dAg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1clbpi-0004Fe-Jo; Wed, 08 Mar 2017 13:40:50 +0000 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1clbp2-0002pT-Oh for linux-arm-kernel@lists.infradead.org; Wed, 08 Mar 2017 13:40:10 +0000 Received: by mail-wm0-x242.google.com with SMTP id u132so6115591wmg.1 for ; Wed, 08 Mar 2017 05:39:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=vXdvedENXWgKBYDG1aEuqsORdl7u+imP+Vzmo7xHh6o=; b=hkk9QyreFxMa5DO1o7AM2owIR3G9YP3UEVM9qkTH/zPK6TAZLIxHtIw4tyUEkc6SsQ uhVhy0pWfgx/plbzfAw/ch0FfyFrqpBEUBLfdfmuQteqZ/HbedHldtOIHMZX0/D3hIgj mnekOv/gfxGNtCTiJ13WHILNKYfg+nAEtl1yaEuJPNCxjJSjw7izt5Xe76N7XCj6RjeI lqnqAkLHjJ/HYHPkWeLYJG2VgCYs8LuY+x0dx4tzmhhD7MHjA/1EhqyyVb1yhW22YCKE fK4mndfwe1OtDTl7nXis28srLWHeNFUCW8fOauq/9d7ZR/Rftc61W6uUz815SnZyIDzz tVzg== 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=vXdvedENXWgKBYDG1aEuqsORdl7u+imP+Vzmo7xHh6o=; b=BZiZXV1Tf2nG5H/fCNO2taSHBIxqeTKhJ0itsxooPHPjX5o8/VJGJw4DeN8JHkDcin kIhzRp+8IX0PXJauGiRy9+9VqQs+QHmI2u+F4gu/FjwVdlHHxFZ8nJmO9zt8gHPv4T+t sHni06uco63peyiCr59m3jGXMyiFA2E7DJb1+N+Z/7atru6Kpq61szZR5kxG/GH243d2 9Iul2nF4NI1X1f3JaoJ+grVVKHHEjpL88yi40l91u7iIG59r2iiidOTA4nnvVRuDN+SJ jfkpykSXDVLVwsVOk+XG9n3FxnT8sIkUk9Rih6kJoJrO9h4TMdRDLRZIVb14+Rv6V8hG CXHg== X-Gm-Message-State: AMke39lW5jMtWtp8u74cvne4+QRbEhwzZ1VVHRSq+h++bUCLVlfXknDTClepyoPpLK5RVw== X-Received: by 10.28.6.203 with SMTP id 194mr13408985wmg.125.1488980386659; Wed, 08 Mar 2017 05:39:46 -0800 (PST) Received: from localhost (port-49067.pppoe.wtnet.de. [46.59.192.68]) by smtp.gmail.com with ESMTPSA id m188sm23280677wma.27.2017.03.08.05.39.45 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 08 Mar 2017 05:39:45 -0800 (PST) From: Thierry Reding To: Thierry Reding Subject: [PATCH v2 1/2] arm64: tegra: Enable SDHCI controllers on P3110 Date: Wed, 8 Mar 2017 14:39:43 +0100 Message-Id: <20170308133944.32568-1-thierry.reding@gmail.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20170223173053.19701-7-thierry.reding@gmail.com> References: <20170223173053.19701-7-thierry.reding@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170308_054008_987154_BA64B684 X-CRM114-Status: GOOD ( 10.52 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-tegra@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Jonathan Hunter MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Thierry Reding The P3110 processor module wires one of the SDHCI controllers to an on- board eMMC and exposes another set of SD/MMC signals on the connector to support an external SD/MMC card. A third controller is connected to the SDIO pins of an M.2 KEY E connector. Signed-off-by: Thierry Reding Acked-by: Jon Hunter --- Changes in v2: - move SD_CARD_SW_PWR regulator to carrier board (separate patch) - move status = "okay" to carrier board - fix card-detect GPIO for SDMMC1 arch/arm64/boot/dts/nvidia/tegra186-p3310.dtsi | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/arch/arm64/boot/dts/nvidia/tegra186-p3310.dtsi b/arch/arm64/boot/dts/nvidia/tegra186-p3310.dtsi index 69553bde7ef7..847e7db59b47 100644 --- a/arch/arm64/boot/dts/nvidia/tegra186-p3310.dtsi +++ b/arch/arm64/boot/dts/nvidia/tegra186-p3310.dtsi @@ -7,6 +7,8 @@ compatible = "nvidia,p3310", "nvidia,tegra186"; aliases { + sdhci0 = "/sdhci@3460000"; + sdhci1 = "/sdhci@3400000"; serial0 = &uarta; i2c0 = "/bpmp/i2c"; i2c1 = "/i2c@3160000"; @@ -72,6 +74,29 @@ status = "okay"; }; + /* SDMMC1 (SD/MMC) */ + sdhci@3400000 { + cd-gpios = <&gpio TEGRA_MAIN_GPIO(P, 5) GPIO_ACTIVE_LOW>; + wp-gpios = <&gpio TEGRA_MAIN_GPIO(P, 4) GPIO_ACTIVE_LOW>; + + vqmmc-supply = <&vddio_sdmmc1>; + }; + + /* SDMMC3 (SDIO) */ + sdhci@3440000 { + status = "okay"; + }; + + /* SDMMC4 (eMMC) */ + sdhci@3460000 { + status = "okay"; + bus-width = <8>; + non-removable; + + vqmmc-supply = <&vdd_1v8_ap>; + vmmc-supply = <&vdd_3v3_sys>; + }; + hsp@3c00000 { status = "okay"; };