From patchwork Thu Jun 30 15:32:08 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 642654 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3rgNp11WRxz9sC3 for ; Fri, 1 Jul 2016 01:32:25 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=fSiKzNdh; dkim-atps=neutral Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932447AbcF3PcO (ORCPT ); Thu, 30 Jun 2016 11:32:14 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:33412 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932162AbcF3PcN (ORCPT ); Thu, 30 Jun 2016 11:32:13 -0400 Received: by mail-pf0-f195.google.com with SMTP id c74so7672914pfb.0 for ; Thu, 30 Jun 2016 08:32:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=lZF20VBfUtCLLMqt6BzzkWbN87Suzg8rqxjj9qlycRI=; b=fSiKzNdhYQtMSDqY4zISxgux2nEWSFCDBCGLW979lvpjK/nqWe5mSdH/C00yBI+dN6 UHwlalvWCK8hJaRnq/+ioe4D8Y+Z0kzglxJ3RxoYlFOB02glYXpN33dauKadyAumgHS1 0QiLr0uVBFdfm6YGnhW+iER9kTFiZ4cbCtyNvFNLNb8zpEjdL47qLBrVcSNDWTs1SA2/ uUopgKo3a5lQSXLef8VO4ZBg7bBaR6XClmAjBuQVkw2WGXp+zsbEX7F6MC0AWcv6c6Hl Oen5L9Ca/joGmUKWMGauAJGGwHSrMg2GfUs/+rLFmX4hBjzVvL8TVbZGXALn9pDkRtQ5 2lXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=lZF20VBfUtCLLMqt6BzzkWbN87Suzg8rqxjj9qlycRI=; b=D+MSW5FrDhSfKe03dJ/ja71y/0uPn7dRu2CuksdUkoTmRSI6w/VIQROhKDgqLErGS3 3cpFVh1d1KI9owhcvrtfT/ao+Ix96TB+reyqrG2yclxkbqnzeOEdbcWUyad/SN/Dz/tb tSXtBCCIyhLDtsJdMeXbzV2YHPS+KYm96Bd9HJM/fBxlW94mWJHDVTTWKxGM9LI6pViC BHi9LKCl32aEkvHEdi8ZMgxmohRzLd0cWPnxR5KURPGZOrtdf0K2yWkg3JAhZ/Uok9dg X9xW7yZpZyv/cb7vtOiocGqGS92K9D0JAeCgJ7UfjmCVapIKmlflKm/Zidv8mWQ84r1B Qmww== X-Gm-Message-State: ALyK8tIim459wJCfBTwwLFmAzyewnmmz1IFgVuNw9DJuDKsts/qxtNr4sdOZpE5U0J+aVA== X-Received: by 10.98.38.69 with SMTP id m66mr583531pfm.57.1467300732348; Thu, 30 Jun 2016 08:32:12 -0700 (PDT) Received: from localhost (port-5350.pppoe.wtnet.de. [84.46.20.250]) by smtp.gmail.com with ESMTPSA id ot2sm6765138pac.29.2016.06.30.08.32.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Jun 2016 08:32:11 -0700 (PDT) From: Thierry Reding To: arm@kernel.org Cc: Lucas Stach , Jon Hunter , linux-tegra@vger.kernel.org Subject: [PATCH] ARM: tegra: beaver: Allow SD card voltage to be changed Date: Thu, 30 Jun 2016 17:32:08 +0200 Message-Id: <20160630153208.22761-1-thierry.reding@gmail.com> X-Mailer: git-send-email 2.8.3 Sender: linux-tegra-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-tegra@vger.kernel.org From: Lucas Stach This allows to switch the card signal voltage level to 1.8 V, which is needed for any ultra high speed modes to work. Signed-off-by: Lucas Stach Acked-by: Jon Hunter Signed-off-by: Thierry Reding --- Hi ARM-SoC maintainers, Can you please apply this for v4.7? It fixes a regression with UHS modes that I had hoped could be fixed in the MMC core, but it turns out that a fairly invasive change will be required and it's not going to make v4.7. I should note that this is not a workaround. It is the proper fix to enable UHS modes, but it exposes a weakness in the SDHCI driver which will happily switch to UHS modes whether or not the power supply can be configured to output the required voltage. Ideally the SDHCI driver will be taught to reject UHS modes if the available supply voltages aren't suitable. There is work underway to do that, but it won't make v4.7. Thanks, Thierry arch/arm/boot/dts/tegra30-beaver.dts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/tegra30-beaver.dts b/arch/arm/boot/dts/tegra30-beaver.dts index 1eca3b28ac64..b6da15d823a6 100644 --- a/arch/arm/boot/dts/tegra30-beaver.dts +++ b/arch/arm/boot/dts/tegra30-beaver.dts @@ -1843,7 +1843,7 @@ ldo5_reg: ldo5 { regulator-name = "vddio_sdmmc,avdd_vdac"; - regulator-min-microvolt = <3300000>; + regulator-min-microvolt = <1800000>; regulator-max-microvolt = <3300000>; regulator-always-on; }; @@ -1914,6 +1914,7 @@ sdhci@78000000 { status = "okay"; + vqmmc-supply = <&ldo5_reg>; cd-gpios = <&gpio TEGRA_GPIO(I, 5) GPIO_ACTIVE_LOW>; wp-gpios = <&gpio TEGRA_GPIO(T, 3) GPIO_ACTIVE_HIGH>; power-gpios = <&gpio TEGRA_GPIO(D, 7) GPIO_ACTIVE_HIGH>;