Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp156528pxy; Thu, 6 May 2021 23:35:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw00Jd81gBXMf79BUxjUiXzOH1J0oV09PrvN0NpM8GDWlLtxLYeQ+arRXOiknA1omxosURd X-Received: by 2002:aa7:cad4:: with SMTP id l20mr9758977edt.282.1620369329972; Thu, 06 May 2021 23:35:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620369329; cv=none; d=google.com; s=arc-20160816; b=d52IrdZ2fnnt7EheGht18z3UvQci9JXKvMuKyDlEcbSCFx6EWY3YYYKTqMbCK+xr11 JCNbe0o5rSiGcTe4LTFM2/QbWHlt9R+P5YbKqqkqYedOMkwVOhDrtvcP+CUZMxsw2vVQ S+u0wxR2SDkXKZE9StM+Bs9oWF9eCpSm1DY6lARpe1S0SwAF/Z6dqNuiflqYaQc2C7FB WtznFvltQidRekQJCiBU3eB6cCFDAoRS60nycWmqc0i8rUYWrsHkcAM9+u9FQEI3UCHZ mIW//AcFLEM8G4L6ThGNJSFGdd92uuwXVA/3fQ4OAM7h2176DJam1EwycIh4ugAlbSMj 3W9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=Bfz9kZ6Mf74Ra3VjpFhBHR5zT6Lb+7bWs6+460QCTO0=; b=CoRl1UFsWHhQBhJyFiJq0hHEzJzJvaP3XSYg/+ONOevZA0REubyTEP6yex2A/ZXbb7 qJAXjE8YdO8/77GPnKVcrLrXQ6PDRSrB3uIE64CDA8utCVYhAg0M8ov12/NSwre20bn4 6BRULb+z7E+T7b0gqctF5wb8J7gvxGld/w1t3WhtADkhVXaW8oDge+IHadFKwxVSCCOq vQ77+2PTsdxcTNuS2Al5PsmcymjVbCXlE7QxtiFad4Nxuh+jjCNcSk6SYwgftcOOsy6g aJPkBkRo+19p8j7Tre3uMVNLWpHij4cXQapRHyHVQoBMxqvxS/ZG3NCTMn/hBAac/tXy Sm/Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dk10si4341960ejb.70.2021.05.06.23.35.06; Thu, 06 May 2021 23:35:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230443AbhEGDcc (ORCPT + 99 others); Thu, 6 May 2021 23:32:32 -0400 Received: from twspam01.aspeedtech.com ([211.20.114.71]:56577 "EHLO twspam01.aspeedtech.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230376AbhEGDcb (ORCPT ); Thu, 6 May 2021 23:32:31 -0400 Received: from mail.aspeedtech.com ([192.168.0.24]) by twspam01.aspeedtech.com with ESMTP id 1473IbOq021620; Fri, 7 May 2021 11:18:37 +0800 (GMT-8) (envelope-from steven_lee@aspeedtech.com) Received: from aspeedtech.com (192.168.100.253) by TWMBX02.aspeed.com (192.168.0.24) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 7 May 2021 11:30:28 +0800 Date: Fri, 7 May 2021 11:30:21 +0800 From: Steven Lee To: Andrew Jeffery CC: Ulf Hansson , Rob Herring , Joel Stanley , Adrian Hunter , Philipp Zabel , Ryan Chen , "moderated list:ASPEED SD/MMC DRIVER" , "moderated list:ASPEED SD/MMC DRIVER" , linux-mmc , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "moderated list:ARM/ASPEED MACHINE SUPPORT" , open list , Ryan Chen , Chin-Ting Kuo , Hongwei Zhang Subject: Re: [PATCH v3 2/5] ARM: dts: aspeed: ast2600evb: Add comment for gpio regulator of sdhci Message-ID: <20210507033021.GB23749@aspeedtech.com> References: <20210506100312.1638-1-steven_lee@aspeedtech.com> <20210506100312.1638-3-steven_lee@aspeedtech.com> <8611c4a7-8c65-4d7d-90d5-37c80faa3142@www.fastmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline In-Reply-To: <8611c4a7-8c65-4d7d-90d5-37c80faa3142@www.fastmail.com> User-Agent: Mutt/1.9.4 (2018-02-28) X-Originating-IP: [192.168.100.253] X-ClientProxiedBy: TWMBX02.aspeed.com (192.168.0.24) To TWMBX02.aspeed.com (192.168.0.24) X-DNSRBL: X-MAIL: twspam01.aspeedtech.com 1473IbOq021620 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The 05/07/2021 09:40, Andrew Jeffery wrote: > > > On Thu, 6 May 2021, at 19:33, Steven Lee wrote: > > Add the description for describing the AST2600-A2 EVB reference design of > > GPIO regulators. > > > > Signed-off-by: Steven Lee > > --- > > arch/arm/boot/dts/aspeed-ast2600-evb.dts | 15 +++++++++++++++ > > 1 file changed, 15 insertions(+) > > > > diff --git a/arch/arm/boot/dts/aspeed-ast2600-evb.dts > > b/arch/arm/boot/dts/aspeed-ast2600-evb.dts > > index 2772796e215e..1ae0facc3d5f 100644 > > --- a/arch/arm/boot/dts/aspeed-ast2600-evb.dts > > +++ b/arch/arm/boot/dts/aspeed-ast2600-evb.dts > > @@ -104,6 +104,21 @@ > > status = "okay"; > > }; > > > > +/* > > + * The signal voltage of sdhci0 and sdhci1 on AST2600-A2 EVB is able to be > > + * toggled by GPIO pins. > > + * In the reference design, GPIOV0 of AST2600-A2 EVB is connected to the > > + * power load switch that providing 3.3v to sdhci0 vdd, GPIOV1 is connected to > > + * a 1.8v and a 3.3v power load switch that providing signal voltage to > > + * sdhci0 bus. > > + * If GPIOV0 is active high, sdhci0 is enabled, otherwise, sdhci0 is disabled. > > + * If GPIOV1 is active high, 3.3v power load switch is enabled, sdhci0 signal > > + * voltage is 3.3v, otherwise, 1.8v power load switch will be enabled, > > + * sdhci0 signal voltage becomes 1.8v. > > + * AST2600-A2 EVB also support toggling signal voltage for sdhci1. > > + * The design is the same as sdhci0, it uses GPIOV2 as power-gpio and GPIOV3 > > + * as power-switch-gpio. > > + */ > > Okay, I think the comment is in the right place, but I feel this patch > should also add the regulator nodes and hook them up to the SDHCIs. > > Given Rob isn't super keen on a second example in the binding document > I think you can just cut the example out and paste it in here. > Hi Andrew, Since AST2600-A0 and AST2600-A1 don't have regulators, do you mean cut the example from dt-binding and paste it to aspeed-ast2600-evb.dts but comment out the example? > Andrew