Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp2331382rdb; Thu, 21 Sep 2023 15:49:21 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHu4E+e8I30pDMlq6Zh7d9HHam2CYUphVVrmOEmUEU4mgJ2G+TfWsfXIJ9IRqbMrAUVuIvx X-Received: by 2002:a17:903:187:b0:1bf:34fb:3085 with SMTP id z7-20020a170903018700b001bf34fb3085mr8038215plg.14.1695336560761; Thu, 21 Sep 2023 15:49:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695336560; cv=none; d=google.com; s=arc-20160816; b=E8q4yO+2Yy+Dtl5fAytzUF7B3lUsGcrx7g71/elOs3svPRiVx7MqUl5YR0Bh+Ixmuc UIstNVJDovWoqgk5Ygn460+x3Hba5GkvVS+FL3Lbs/PQuNDsVn1/gwemOhKijZWEIlCP gX6nNKpPAUqh5wOivjqNKrqsQPg8imQQRZ7G+tRIEOXKqNugKpFSSJMuPv8FgYpGAzcK DMRYbgQp/uQazWenL9v+rU4r2y2D3RDqWEN4bnPVu7FeoNNmYmhTAqsVsUPsk6OZVYep LnzETnmbHg2aZndHgGKIV1ovHci+7CjVE/JqJ8jwOkLJqUNtgW7I22G/hSiBjwM2UKEG eRCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=HC8D35TCdZUOXqWhbhM+Shwo1cqwwddI0ooxd0gnQLg=; fh=VOl+NzAnD9L/WUv3m0Kw8bxzzHzfJ0giqSLGBrf0YYU=; b=pl6u4KBh2ULZmqvG9zZeTFxKj8spi2St+IASrQhcE+cp+VVh4VEvr/S9Zbj0WW5DOF y/uzYsfiN4XRc5oLPL4EV3W7zD6+9BY5RUUEbneWwf5W5EazO0bWVafBJmLo0AmVDXfs Fy0NKlwRpONX+RVOG7jvbBCnSAjZXK+IQRVH0iM6hHyAoXVzgEzpaooA9/CGPAZDHJPy cVKiVeN0uM9/MFBE8eWQswJIiL8fTIUXgPtctP1KcFtBh/wxYFEuXXO0KQznti3nPaT4 hS+9oaefBycth34BELE9FVhi+ygGHhRqCY/PXpljA2vYP1eXSTdDIiF1Vy7iwgAnK5P9 wCGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=p1Bkwrc8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id z17-20020a170903019100b001b8ae69289dsi2797786plg.539.2023.09.21.15.49.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 15:49:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=p1Bkwrc8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 963CB801B181; Thu, 21 Sep 2023 13:36:20 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232041AbjIUUgD (ORCPT + 99 others); Thu, 21 Sep 2023 16:36:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57564 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232258AbjIUUew (ORCPT ); Thu, 21 Sep 2023 16:34:52 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5DC557EA1C for ; Thu, 21 Sep 2023 10:37:36 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 879F7C32799; Thu, 21 Sep 2023 10:41:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695292873; bh=l9YKq4Mo9HZomeyWWq8kJ2jlUSxpMR2JEf+l+sajQFQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=p1Bkwrc82xTjn6S9fkfu1yiZ4LfO5ofNvcMcNA8MIGtqd7F7tDfjdpUr1AOtmtnqi sFM5ci71SLHRYEDyPlMNnzy5g7ru0idAFa10yaEAHNKLaefUUbzbVuN++DOZQ2RDJm ZjSGkQcYMdLfnS/yo/WxfN0TbHiL6s7paewBypixzYOq6u2/tVx/LFQcwQgtjXDrhd yGt0IzyAEl93pdCUN9tY+qenaQWhYeIUkeNWjc9iBGrkghsLeTXRqBmmhHLyt+adjG cqXsqXx7dDdOhfJ12uftnOzE24YlAVl279KkYhuMIDU5d8w61ySkebprKCKjePIBvY lbZX56e425AvQ== Date: Thu, 21 Sep 2023 11:41:07 +0100 From: Lee Jones To: Chen-Yu Tsai Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , Mark Brown , Zhiyong Tao , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: Re: [PATCH v2 02/11] mfd: mt6358: Add registers for MT6366 specific regulators Message-ID: <20230921104107.GE3449785@google.com> References: <20230822084520.564937-1-wenst@chromium.org> <20230822084520.564937-3-wenst@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230822084520.564937-3-wenst@chromium.org> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Thu, 21 Sep 2023 13:36:20 -0700 (PDT) On Tue, 22 Aug 2023, Chen-Yu Tsai wrote: > The MT6366 PMIC, compared to the MT6358, does away with the VCAM* > regulators. Two regulators VM18 and VMDDR reuse their register space. > There's also a VSRAM type regulator VSRAM_CORE thats' split between > the VCAM* register space and other parts. > > Add register address macros for these MT6366 specific regulators. > > Signed-off-by: Chen-Yu Tsai > --- > include/linux/mfd/mt6358/registers.h | 17 +++++++++++++++++ > 1 file changed, 17 insertions(+) Acked-by: Lee Jones > diff --git a/include/linux/mfd/mt6358/registers.h b/include/linux/mfd/mt6358/registers.h > index 5ea2590be710..d83e87298ac4 100644 > --- a/include/linux/mfd/mt6358/registers.h > +++ b/include/linux/mfd/mt6358/registers.h > @@ -294,4 +294,21 @@ > #define MT6358_AUD_TOP_INT_CON0 0x2228 > #define MT6358_AUD_TOP_INT_STATUS0 0x2234 > > +/* > + * MT6366 has no VCAM*, but has other regulators in its place. The names > + * keep the MT6358 prefix for ease of use in the regulator driver. > + */ > +#define MT6358_LDO_VSRAM_CON5 0x1bf8 > +#define MT6358_LDO_VM18_CON0 MT6358_LDO_VCAMA1_CON0 > +#define MT6358_LDO_VM18_CON1 MT6358_LDO_VCAMA1_CON1 > +#define MT6358_LDO_VM18_CON2 MT6358_LDO_VCAMA1_CON2 > +#define MT6358_LDO_VMDDR_CON0 MT6358_LDO_VCAMA2_CON0 > +#define MT6358_LDO_VMDDR_CON1 MT6358_LDO_VCAMA2_CON1 > +#define MT6358_LDO_VMDDR_CON2 MT6358_LDO_VCAMA2_CON2 > +#define MT6358_LDO_VSRAM_CORE_CON0 MT6358_LDO_VCAMD_CON0 > +#define MT6358_LDO_VSRAM_CORE_DBG0 0x1cb6 > +#define MT6358_LDO_VSRAM_CORE_DBG1 0x1cb8 > +#define MT6358_VM18_ANA_CON0 MT6358_VCAMA1_ANA_CON0 > +#define MT6358_VMDDR_ANA_CON0 MT6358_VCAMD_ANA_CON0 > + > #endif /* __MFD_MT6358_REGISTERS_H__ */ > -- > 2.42.0.rc1.204.g551eb34607-goog > -- Lee Jones [李琼斯]