Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp7783289ybh; Thu, 8 Aug 2019 23:25:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqxEBlySI6And6pSGnAQPcRxlKJK3a2QtyvFqNz550k8AFi05JytmWhxPFXU5Szh2UeY/n+1 X-Received: by 2002:a17:902:be12:: with SMTP id r18mr16671640pls.341.1565331929023; Thu, 08 Aug 2019 23:25:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565331929; cv=none; d=google.com; s=arc-20160816; b=qfjzeTLXWx/8DhG/dHSaTcf4Z2relWT+0g8xGv1X2J55o5nS2oVuEl5ne2HAYxgowy lN42+XPBpVlxipMSTEasfJEydWjbZ2KBKyiS4x+hHHfJo8RE39U1eURNzsGFZy0UgL2u 8pMQZB/E2kOpTWZ3c4YNBYnec0S3cd5W++tQtVYvXaEK8KYx6WVZ8ODH9ducdNO4At2n 0BjpgdrPgxNnuWelF4cTEQt434mIwpW/j1oF6D9/VlAK91aeFIDvR7bUTd4D9OWMS13o lnVligywcUvs85EAeHk0OACNyE/OOfR0FVgGy5ia1+m25xn6JkP1c6pQj+MIysAw4t+C NonQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date:ironport-sdr; bh=2y9ZMgUPIprCxBH+WQuqcr59NEc6Pvi+Xs4JnMwczds=; b=UBjpl7/PpKC3bMJxzEe6W13fOmJXLgk6uBmLNZgEfH6TOq4LROA1qA0sbxYcP5+Qiq by6Ez6PW58uQDQRghBa+s6j6ziZN7c3o6VU3sV30ivYKdK1tadSA2DzW5K6W27DjXsJ9 FKHgL8oPiw022OrtbfZBaB8zuGLOEgXn6m6mgZHark5h61t3zygVxVm1B7JdPYXRouLY EDrHy+u6SvinAddtcha8b27cUdFRPb6pMIutQVuO5cdyEBM7kwni8jxTjZxHeLq4bTLY qHLt2/cToJ0hC808/atJZEulCKcxDq7UtoTgM9BarnY6RKiq8qPOppMt/+fYBQfRESl3 6LWQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=microchip.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j185si53937977pge.91.2019.08.08.23.25.13; Thu, 08 Aug 2019 23:25:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405616AbfHIGYd (ORCPT + 99 others); Fri, 9 Aug 2019 02:24:33 -0400 Received: from esa5.microchip.iphmx.com ([216.71.150.166]:27684 "EHLO esa5.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405510AbfHIGYc (ORCPT ); Fri, 9 Aug 2019 02:24:32 -0400 Received-SPF: Pass (esa5.microchip.iphmx.com: domain of Ludovic.Desroches@microchip.com designates 198.175.253.82 as permitted sender) identity=mailfrom; client-ip=198.175.253.82; receiver=esa5.microchip.iphmx.com; envelope-from="Ludovic.Desroches@microchip.com"; x-sender="Ludovic.Desroches@microchip.com"; x-conformance=spf_only; x-record-type="v=spf1"; x-record-text="v=spf1 mx a:ushub1.microchip.com a:smtpout.microchip.com a:mx1.microchip.iphmx.com a:mx2.microchip.iphmx.com include:servers.mcsv.net include:mktomail.com include:spf.protection.outlook.com ~all" Received-SPF: None (esa5.microchip.iphmx.com: no sender authenticity information available from domain of postmaster@email.microchip.com) identity=helo; client-ip=198.175.253.82; receiver=esa5.microchip.iphmx.com; envelope-from="Ludovic.Desroches@microchip.com"; x-sender="postmaster@email.microchip.com"; x-conformance=spf_only Authentication-Results: esa5.microchip.iphmx.com; dkim=none (message not signed) header.i=none; spf=Pass smtp.mailfrom=Ludovic.Desroches@microchip.com; spf=None smtp.helo=postmaster@email.microchip.com; dmarc=pass (p=none dis=none) d=microchip.com IronPort-SDR: 4WJWT/wn23UaX1GruXfR9JWONyV8gpdACAqNbsaU56BfyDoKB9oqw0TBvKTRWDSJtM45HNXvmR PCny3sTrieA/QzIbhiw9MNXvBxe+Q3d6fZ9F9ztirfIQNviUe2I8d+9+zwFdZqiWwqzUZTvgVO SOunDtl8u4x9hkFsVFCpplWx/2NHJqeigh8IaT0yHgODbEkhJ7dQHglbndmI9BcsoLP/equ0+t ZCbCvESXz5Pb6xcRGdrbuxWk8mqpkmBvWCOVGS0MjunxqdHRfA4q/himzCT8vJtHhl/2XoKovZ HMw= X-IronPort-AV: E=Sophos;i="5.64,364,1559545200"; d="scan'208";a="43015337" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa5.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 08 Aug 2019 23:24:27 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Thu, 8 Aug 2019 23:24:27 -0700 Received: from localhost (10.10.85.251) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.1713.5 via Frontend Transport; Thu, 8 Aug 2019 23:24:27 -0700 Date: Fri, 9 Aug 2019 08:23:22 +0200 From: Ludovic Desroches To: Adrian Hunter CC: Eugen Hristev - M18282 , "Nicolas Ferre - M43238" , "alexandre.belloni@bootlin.com" , "ulf.hansson@linaro.org" , "linux-arm-kernel@lists.infradead.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-mmc@vger.kernel.org" Subject: Re: [PATCH 2/2] ARM: dts: at91: sama5d27_som1_ek: add mmc capabilities for SDMMC0 Message-ID: <20190809062322.syuieymdqjs4e7lh@M43218.corp.atmel.com> Mail-Followup-To: Adrian Hunter , Eugen Hristev - M18282 , Nicolas Ferre - M43238 , "alexandre.belloni@bootlin.com" , "ulf.hansson@linaro.org" , "linux-arm-kernel@lists.infradead.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-mmc@vger.kernel.org" References: <1565252928-28994-1-git-send-email-eugen.hristev@microchip.com> <1565252928-28994-2-git-send-email-eugen.hristev@microchip.com> <20190808124217.wrmcxohw5i6ju2qe@M43218.corp.atmel.com> <04fd74c3-a828-1064-b77b-f3de07a26190@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <04fd74c3-a828-1064-b77b-f3de07a26190@intel.com> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 08, 2019 at 03:57:30PM +0300, Adrian Hunter wrote: > On 8/08/19 3:42 PM, Ludovic Desroches wrote: > > On Thu, Aug 08, 2019 at 10:35:43AM +0200, Eugen Hristev - M18282 wrote: > >> From: Eugen Hristev > >> > >> Add mmc capabilities for SDMMC0 for this board. > >> With this enabled, eMMC connected card is detected as: > >> > >> mmc0: new DDR MMC card at address 0001 > >> > >> Signed-off-by: Eugen Hristev > > Acked-by: Ludovic Desroches > > > > I am interested to have the some insights about the use of sd-uhs-* > > properties. > > > > Our IP can't deal with 1V8 by itself. It has a 1V8SEL signal which can > > be used as the logic control input of a mux. So even if the IP claims > > to support UHS modes, it depends on the board. > > > > Are the sd-uhs-* properties a way to deal with this? I tend to think no > > as sdhci_setup_host() will set the caps depending on the content of the > > capabilities register. Do we have to use the SDHCI_QUIRK_MISSING_CAPS > > quirk or sdhci-caps/sdhci-caps-mask? > > There is "no-1-8-v" which it looks like sdhci-of-at91.c already supports: > > sdhci_at91_probe() -> sdhci_get_of_property() -> sdhci_get_property() > > if (device_property_present(dev, "no-1-8-v")) > host->quirks2 |= SDHCI_QUIRK2_NO_1_8_V; > Right, I forgot this property. Thanks. Eugen, do you see cases we can't cover with this property? Regards Ludovic > > > > > Regards > > > > Ludovic > > > >> --- > >> arch/arm/boot/dts/at91-sama5d27_som1_ek.dts | 1 + > >> 1 file changed, 1 insertion(+) > >> > >> diff --git a/arch/arm/boot/dts/at91-sama5d27_som1_ek.dts b/arch/arm/boot/dts/at91-sama5d27_som1_ek.dts > >> index 149e539..194b3a3 100644 > >> --- a/arch/arm/boot/dts/at91-sama5d27_som1_ek.dts > >> +++ b/arch/arm/boot/dts/at91-sama5d27_som1_ek.dts > >> @@ -54,6 +54,7 @@ > >> > >> sdmmc0: sdio-host@a0000000 { > >> bus-width = <8>; > >> + mmc-ddr-3_3v; > >> pinctrl-names = "default"; > >> pinctrl-0 = <&pinctrl_sdmmc0_default>; > >> status = "okay"; > >> -- > >> 2.7.4 > >> > > >