From patchwork Thu Jul 20 23:50:36 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcin Wojtas X-Patchwork-Id: 9855829 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 85391601C8 for ; Thu, 20 Jul 2017 23:50:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 74BBE286F2 for ; Thu, 20 Jul 2017 23:50:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 693D0286FD; Thu, 20 Jul 2017 23:50:31 +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_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE 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 2DEA0286F2 for ; Thu, 20 Jul 2017 23:50:29 +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: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:In-Reply-To: References:List-Owner; bh=pNKhupwM1PMczMNYXaq59jraIHudqiuO8zlKLM0Tf7Q=; b=koi kKEC+zQlApf0dgdiBA8zeCukxC7Dq7vB2eFC1+077zVD826It37+sGX4Sk4uBw2IdSUttjcMaVZ1L jQBy7vEH3MHsHL8lmh7yvOlcK7g7kOxTMx3GK7jaGannq/TLCmhzxyXzWVg713u1YSo7QLfUiZDbH /9BPtwuEfbcqGv8LHK5rIQcNIpJQ+H+g7deWVOlH2IAL3z7NZgvhRcTXjakWnGYFcTWaf9eEm876c biwfxornuCc/8tgAWFva+rBG3lpTQ+wYH6oIFSvlfEe0Ykba+KdbqPSR2sdg2jFwQP3GrL4eL52uo XTA7Lg3RZ0odOLUzndvvKXUEFwBrAIw==; 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 1dYLD7-0006zw-QM; Thu, 20 Jul 2017 23:50:25 +0000 Received: from mail-lf0-x22d.google.com ([2a00:1450:4010:c07::22d]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dYLD4-0005mW-Hm for linux-arm-kernel@lists.infradead.org; Thu, 20 Jul 2017 23:50:24 +0000 Received: by mail-lf0-x22d.google.com with SMTP id g25so13837798lfh.1 for ; Thu, 20 Jul 2017 16:50:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=hzyzrRtkPtPCED6IbCFNV4PTFSf7ZMmyKWnECBhUzz0=; b=pDKXEsA2tKdnfq/Y76uaLfxARLRrzB0K4lZtGSHaK4fYywoErzkjS1N6l+5y1VBROI JiK2gslEi80zXR8TR52myom7S6E117B/x48bDG2bg0dM394QpiAuLCB/27fKSfaBNYz7 XrIlerbgBR3gcnxwnOjNP9AdpAg61L+UosoqVKGFLr07K3I9x02W8biUl4gl0S6HZR8/ M+IESDvc3iLnopFqieMZctWxoY6DhhvszmIGAwI7RiojJS/Af7GUJrH6Qfbfa6YTDas6 aDflxq1n4BRKJ1kul5cN7GlnKueu2gSUE8VMDFyhd0mq0Qf9FHzTmyeKsgRqP+3+j34p GDew== 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; bh=hzyzrRtkPtPCED6IbCFNV4PTFSf7ZMmyKWnECBhUzz0=; b=a+/sThFY8Gz4Mh7zdzZsVsWEzgQX1GNML5h3FE8Rh9PKikihxRyAKMQlbQFtskh0w7 5pgeVFo8HHCeAB9GCEhxd2GJD6oPt48sntVKGkAQMnU3bFCwhLE6LhKcyeUm84VOCOK/ lFGUeiIajAliGs0wymiBpN+aDsXsiHaByok3t/0TU4N+pONiHa2aSObnJd5Hzd8ISReN i2+lKw98qgwh7pQ6Qnz82y9PEhqNMFVxPFiVkeax9KfasPIGlx7g0uVZXLoMME9HU5ME 7pqrBWUzLFUJ0PKPtfmfepcuyq8HcA263xSfdVZrN0aHx1W5s+KBD1bco8uE0DxCftvY 287A== X-Gm-Message-State: AIVw111fctMCy+J7yzj7eW1ePLLXOKQQhWMgHSmoGf9Z6x6du1X5XmXi +xjfdgp3BXeqzYQG X-Received: by 10.25.158.139 with SMTP id h133mr2074274lfe.125.1500594599393; Thu, 20 Jul 2017 16:49:59 -0700 (PDT) Received: from enkidu.local (31-172-191-173.noc.fibertech.net.pl. [31.172.191.173]) by smtp.gmail.com with ESMTPSA id h1sm677633lfg.9.2017.07.20.16.49.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Jul 2017 16:49:58 -0700 (PDT) From: Marcin Wojtas To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH] ARM64: dts: marvell: armada-37xx: Enable uSD on ESPRESSObin Date: Fri, 21 Jul 2017 01:50:36 +0200 Message-Id: <1500594636-19911-1-git-send-email-mw@semihalf.com> X-Mailer: git-send-email 1.8.3.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170720_165022_824613_8DD20F55 X-CRM114-Status: UNSURE ( 8.42 ) X-CRM114-Notice: Please train this message. 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: thomas.petazzoni@free-electrons.com, andrew@lunn.ch, marc.zyngier@arm.com, jaz@semihalf.com, hannah@marvell.com, nadavh@marvell.com, neta@marvell.com, gregory.clement@free-electrons.com, mark.rutland@arm.com, mw@semihalf.com, zbodek@gmail.com 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 The ESPRESSObin board exposes one of the SDHCI interfaces via J1 uSD slot. This patch enables it. Signed-off-by: Marcin Wojtas Signed-off-by: Zbigniew Bodek Tested-by: Miquel Raynal --- .../boot/dts/marvell/armada-3720-espressobin.dts | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/arch/arm64/boot/dts/marvell/armada-3720-espressobin.dts b/arch/arm64/boot/dts/marvell/armada-3720-espressobin.dts index b1af3f98..6d0caf1 100644 --- a/arch/arm64/boot/dts/marvell/armada-3720-espressobin.dts +++ b/arch/arm64/boot/dts/marvell/armada-3720-espressobin.dts @@ -45,6 +45,7 @@ /dts-v1/; +#include #include "armada-372x.dtsi" / { @@ -59,6 +60,20 @@ device_type = "memory"; reg = <0x00000000 0x00000000 0x00000000 0x20000000>; }; + + vcc_sd_reg1: regulator { + compatible = "regulator-gpio"; + regulator-name = "vcc_sd1"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + + gpios = <&gpionb 4 GPIO_ACTIVE_HIGH>; + gpios-states = <0>; + states = <1800000 0x1 + 3300000 0x0>; + enable-active-high; + }; }; /* J9 */ @@ -71,6 +86,17 @@ status = "okay"; }; +/* J1 */ +&sdhci1 { + wp-inverted; + bus-width = <4>; + cd-gpios = <&gpionb 3 GPIO_ACTIVE_LOW>; + no-1-8-v; + marvell,pad-type = "sd"; + vqmmc-supply = <&vcc_sd_reg1>; + status = "okay"; +}; + /* Exported on the micro USB connector J5 through an FTDI */ &uart0 { status = "okay";