Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp155907pxy; Thu, 6 May 2021 23:34:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxg0q1rZmuFL2iVAwB1jzYyDOVyoC2S4yJ9TJXCxfItBAM6gY3RSEhKqtdf9CbWAb42JAix X-Received: by 2002:a17:907:2095:: with SMTP id pv21mr8204353ejb.77.1620369255440; Thu, 06 May 2021 23:34:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620369255; cv=none; d=google.com; s=arc-20160816; b=ovgbUueRqXohX/lXctdcOv/zWvUDUPUroRK5GE87GZyaXwyxvD2HxybZpwEI682Dh1 fb1PHHzbYTcl+H4zz1jTkUkGSisxauygF8FR5lblbkHYTfaZrFbPbVkkWLM6/X3AcrLQ QLM6JSM73Kdl/oqH96pOUIctQTvWue2leP181JK2eK5/bPbMbwoPvTO1lbfh/bzkYm8o +XMgb8Nr87ktNmyC696p8+pl7XyjINwZ66EZG6KzAHmJQ1cR8eHthOOMi/XmWtmqpeP6 rPFNiTTkZI9SoXH9WmtJS56nxA2DQBDESlUtHbxktB52ZNzfskaEQz1UAjnGHhEzDdXg 4ykA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:date:references:in-reply-to :message-id:mime-version:user-agent:dkim-signature:dkim-signature; bh=arDYubqdnTaycuMeD6vidROrSycff0E9LYTfLWtgEeY=; b=Cb+/ETQK0onagoCpYQqdaG/rLJbnF46rnRvs2WsTFmnWJ8SX7/dTXztoXGkQFdJLM3 blLJqnF+wPtG6NEo729s1jKp2rn4mK5luNW9BqN5xm3NeW8CWVFUOGTQEvt/Wa2YFVxo lDyYJy/0i97JwWmTtvpisc72GfemJQW9rbx9w7mG8vw8+om1OKKO0P3NaJfK4HcP1LRR T1IjB7mW2BTxbaahQJpje5Wm2mmX1CTTvFKzXGTvv/iHP5W5h3PEzv6qQAIJe52X9Oyd D6lrSZp6VjLpZ8fRd+hM/ylx68W3xpOa/zyfubTJo4A0yTilTKJmOFDfxSoPkDDkRocB KYfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@aj.id.au header.s=fm2 header.b=vUdHaypf; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b="Jotf7hi/"; 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 gz20si4208534ejc.731.2021.05.06.23.33.51; Thu, 06 May 2021 23:34:15 -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; dkim=pass header.i=@aj.id.au header.s=fm2 header.b=vUdHaypf; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b="Jotf7hi/"; 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 S232318AbhEGDn6 (ORCPT + 99 others); Thu, 6 May 2021 23:43:58 -0400 Received: from new4-smtp.messagingengine.com ([66.111.4.230]:53945 "EHLO new4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231299AbhEGDn5 (ORCPT ); Thu, 6 May 2021 23:43:57 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailnew.nyi.internal (Postfix) with ESMTP id 8B99B580EFD; Thu, 6 May 2021 23:42:57 -0400 (EDT) Received: from imap2 ([10.202.2.52]) by compute3.internal (MEProxy); Thu, 06 May 2021 23:42:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aj.id.au; h= mime-version:message-id:in-reply-to:references:date:from:to:cc :subject:content-type; s=fm2; bh=arDYubqdnTaycuMeD6vidROrSycff0E 9LYTfLWtgEeY=; b=vUdHaypfY4c34YnKjC3s38glKfC2kan4S8Y3Sn2ZirS1OSy 67ziv2lw5DGr/TW8IAGecuPLAlX9tOIQtl3s3Y/upj9zNy1qjTSRftWlfDcWUr2l 6H3MscnI12kj5PlEQsSMgENVHXbu3boVDCnKd7eKPTYJCkH76xm01m/hjq/Rl/Hz CA6y5K8u1QTTuQ6xA+K4gwNfWb43+8wnzGyCvCP+WGha64jgB8JTgcjQKf8J0gr6 aoXLoXMbeKxTMfr6DSrPx4JqemG9lsNqYTM8S+5SfjqWoBH50F8vTlomf2x3vEY8 4LLf+R6k4sfxenxOBhKmOI1UxqPhyJ4Wtx7P6tQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=arDYub qdnTaycuMeD6vidROrSycff0E9LYTfLWtgEeY=; b=Jotf7hi/FDyVXe12rk8yAh 5AUFEwU+zBRtM+RZLmWbwnSk9Le2M5M9BQY8QGiRM2xOkA+xXH4oH26u1xvEfxGs zoGUsGiy9cvSrwQ2gn6eOtfSYgJXOWGhw1WCAwKriP1Bdq3BMmD//kUAFjT87gBW Vil9ksLVPjWW7M1Vl6QbDc33TBGiiUTOYraBcZDXKkNHzBno9xUBb6j9CR+hWRcp TzEEwhjUchKw3lFMY8A3RFeYg9RSQQ+yA2c1YekYYDBPteCuZW9EnAaTI0kYU8Ik BkAahLwTb6OBB3j0crZr4VC50BKjm7PhN5GPNsmFU4GaZ2zs5tg3xWs6OBZeC4zg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvdeguddgieekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvffutgesthdtredtreerjeenucfhrhhomhepfdetnhgu rhgvficulfgvfhhfvghrhidfuceorghnughrvgifsegrjhdrihgurdgruheqnecuggftrf grthhtvghrnhepuddttdekueeggedvtddtueekiedutdfguedutdefieeuteefieelteet vddthfeinecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh eprghnughrvgifsegrjhdrihgurdgruh X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 22FE4A0007A; Thu, 6 May 2021 23:42:54 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.5.0-alpha0-448-gae190416c7-fm-20210505.004-gae190416 Mime-Version: 1.0 Message-Id: In-Reply-To: <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> <20210507033021.GB23749@aspeedtech.com> Date: Fri, 07 May 2021 13:12:33 +0930 From: "Andrew Jeffery" To: "Steven Lee" 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: =?UTF-8?Q?Re:_[PATCH_v3_2/5]_ARM:_dts:_aspeed:_ast2600evb:_Add_comment_f?= =?UTF-8?Q?or_gpio_regulator_of_sdhci?= Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 7 May 2021, at 13:00, Steven Lee wrote: > 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? If the board design varies with the silicon revision we should probably have devicetrees that are appropriate for each, so an aspeed-ast2600-evb-a2.dts #include "aspeed-ast2600-evb.dts" at the top and go from there. Cheers, Andrew