Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753129AbdHBRQN (ORCPT ); Wed, 2 Aug 2017 13:16:13 -0400 Received: from mail.free-electrons.com ([62.4.15.54]:55577 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752795AbdHBRQL (ORCPT ); Wed, 2 Aug 2017 13:16:11 -0400 Date: Wed, 2 Aug 2017 19:16:08 +0200 From: Miquel RAYNAL To: Marcin Wojtas Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, 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, zbodek@gmail.com Subject: Re: [PATCH] ARM64: dts: marvell: armada-37xx: Enable uSD on ESPRESSObin Message-ID: <20170802191608.58aa312e@xps13> In-Reply-To: <1500594636-19911-1-git-send-email-mw@semihalf.com> References: <1500594636-19911-1-git-send-email-mw@semihalf.com> Organization: Free Electrons X-Mailer: Claws Mail 3.14.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1849 Lines: 75 Hi, On Fri, 21 Jul 2017 01:50:36 +0200 Marcin Wojtas wrote: > 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"; -- Miquel Raynal, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com