Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4509276imm; Mon, 30 Jul 2018 16:25:47 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcB/1GWZfrZOG0iD6CYlTTdMK325PXCBp7W2OY7RiQoGFiSjncFU5QfEbr+NSo0GzoCTEEH X-Received: by 2002:a17:902:22e:: with SMTP id 43-v6mr12404162plc.118.1532993147859; Mon, 30 Jul 2018 16:25:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532993147; cv=none; d=google.com; s=arc-20160816; b=Yqnm5cFoGCsQ2NI+5JH1kMq5sWgN8Ih0kaxc1Mn97T/v0JZCfZYLchUYEOoNmKuVwC aHoYrKCGJ4qRM98fqkQCF2SbOfwag1KZz09omzk5DUVKZhlmXKgyH8bdrUKCRD5g/qkC p+qzvuEhUNIu8fj2fBe3iEPs8ZV0d51OsUu7/mCtwx7YtStbhbLkXzC2dpugcRTos0We WCa52CkYqB9nJMlMy00gqkgCE8XCUXBII3yskDzNLAO5HX+Q/5KeFELYMQc8G2LlU9lM 19yCJttk1kCgrHOPGGfmHH1weQqdZhn6W7QKJUFNerCOTtVO2tfJPbRZgF8HDXJDo7Cj k50A== 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:message-id:subject:cc :to:from:date:arc-authentication-results; bh=w3g/jaN+uEXeAyTQ3YZflKJHqL7zDsfnrXd5mT/1WmU=; b=0POL47Ag+gu004/EzlmrUwMy0VE/FQ3PKNIP/DBEtV8oXC8oSeUINlu33qAQ1LZz3Q iYl0/Ae/gLxEh9qWT8lO+XLIidibHoFVbCQjmip5QAl07wdPsumqb1iZQVsCaUGizmUc jP/Wj3m1XVMF24jL3B515zWB0axSX78WMxrq/fRMcsQ6yrzm1I8WLKog23MTE1ByJIrt 4OrPrrHQ4kcrkQvcTrewAfuHvcStoNnd+SRJSxa/DiqAxGTIxZz15WDv0XdxkxV13jHf B0wbRlfvhH41F+GqU4bT9AT///IXSfkX4y+dMWs17gwfCnFw1gUTdfaUlnrvik0bWsWS HBGg== 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x68-v6si11848726pfc.239.2018.07.30.16.25.32; Mon, 30 Jul 2018 16:25:47 -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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731576AbeGaBCC (ORCPT + 99 others); Mon, 30 Jul 2018 21:02:02 -0400 Received: from mail-it0-f66.google.com ([209.85.214.66]:51486 "EHLO mail-it0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727094AbeGaBCC (ORCPT ); Mon, 30 Jul 2018 21:02:02 -0400 Received: by mail-it0-f66.google.com with SMTP id e14-v6so1754883itf.1; Mon, 30 Jul 2018 16:24:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=w3g/jaN+uEXeAyTQ3YZflKJHqL7zDsfnrXd5mT/1WmU=; b=EZSawt11LMAQwNaOWnbiueFrcJMZ8V1Koyax0gztGQ2mUaVFnQfsqw1nWIvaMzvrfM cd5/PC3FddLiK5txPMuEiJX9QW6UCW5FhcWrlaejRWWrNN3hIE+lRpZVYCaZGFBaTH9s rCUwXhMtWkt4IX48hDE8oHk7bQrlmIidYQT4P33bNVeGnyJ3zZAiq6g+FTJOrmN+aWNE Auaanat2VXtjwly+peHPb2yhv4oeWrh7qT395U3qjYFBlJYdEMDQDPt+vyZ/KdQslu2v anBVNyZ/0N7KPHnpXBovkA/yZdy4w+XB81OkanxzDGD0X82f4TxqVIU3sd1N7tjS2qI5 UQEA== X-Gm-Message-State: AOUpUlEIE2P27dtfxdrSoM7l+RrHsE7/xlznYHwI/ikadpEyM3gisED0 Mgh3Ci9TAJjnQX2Lxm0NMg== X-Received: by 2002:a24:54d:: with SMTP id 74-v6mr1082262itl.96.1532993082764; Mon, 30 Jul 2018 16:24:42 -0700 (PDT) Received: from localhost ([24.51.61.72]) by smtp.gmail.com with ESMTPSA id f3-v6sm3834774iok.29.2018.07.30.16.24.41 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 30 Jul 2018 16:24:41 -0700 (PDT) Date: Mon, 30 Jul 2018 17:24:41 -0600 From: Rob Herring To: Aapo Vienamo Cc: Stefan Agner , Ulf Hansson , Mark Rutland , Thierry Reding , Jonathan Hunter , Adrian Hunter , Mikko Perttunen , linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org, linux-tegra-owner@vger.kernel.org Subject: Re: [PATCH v2 02/10] dt-bindings: mmc: tegra: Add nvidia,only-1-8-v property Message-ID: <20180730232441.GA17560@rob-hp-laptop> References: <1532607560-11253-1-git-send-email-avienamo@nvidia.com> <1532607560-11253-3-git-send-email-avienamo@nvidia.com> <484a31bdaad6d76b4fbb7d6fa80cbb8d@agner.ch> <20180727110555.1b7ad97d@dhcp-10-21-25-168> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180727110555.1b7ad97d@dhcp-10-21-25-168> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 27, 2018 at 11:05:55AM +0300, Aapo Vienamo wrote: > On Thu, 26 Jul 2018 15:05:55 +0200 > Stefan Agner wrote: > > > On 26.07.2018 14:19, Aapo Vienamo wrote: > > > Add a property to mark controllers which operate at a 1.8 V fixed I/O > > > voltage. > > > > > > This feature of the hardware needs to be signaled this way because it > > > cannot be probed at runtime or reliably derived from other properties. > > > > Is this really needed? Can we not use vqmmc to determine which voltage > > the controller runs on? > > > > There is already some precedence in the SDHCI core to determine which > > voltage levels are supported: > > https://lkml.org/lkml/2018/7/5/342 > > This property is introduced to solve a slightly different issue. The > thing is that supplying a fixed voltage SDHCI controller from a variable > regulator is still a valid configuration. Which means that testing the > capabilities of the regulator doesn't actually describe the SDHCI > controller itself. The regulator constraints should reflect this. The constraints aren't the capabilities of the regulator, but the limits on what it is supplying. > > In practice this property is used to communicate whether pad > reconfiguration and voltage switching needs to be performed or not. This > cannot be determined from the absence or presence of the pinctrl > properties either because they naturally won't be there on older dtbs. > > The logic behind this goes like this: if this property is present, > there's no need to perform pad or regulator reconfiguration and UHS > modes can be enabled. If this property is missing then valid pinctrl and > regulator properties are required to enable UHS signaling. This is > implemented in tegra_sdhci_is_uhs_valid() in "[PATCH v2 03/10] mmc: > tegra: Reconfigure pad voltages during voltage switching" > > -Aapo