Message ID | 20230721082903.2038975-2-wenst@chromium.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9010:0:b0:3e4:2afc:c1 with SMTP id l16csp63955vqg; Fri, 21 Jul 2023 01:55:59 -0700 (PDT) X-Google-Smtp-Source: APBJJlG5UTAGoXEE/t582Vmq+WpioNE1S2pMwIDyIC3wvhoSg0Su87EwTHq5x9LhK3jnSoLR6eaA X-Received: by 2002:a05:6358:6f1d:b0:134:e603:116e with SMTP id r29-20020a0563586f1d00b00134e603116emr962677rwn.6.1689929759090; Fri, 21 Jul 2023 01:55:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689929759; cv=none; d=google.com; s=arc-20160816; b=fN7rncnLvdaAtqlEd1qSSn2sVaelIpuHIC92qniHiRdlsasota9s1Ar9vwjjOXcFcF +/GCWYCqCCHwcOo5wNvmAfyfOv4bO8p9MhnF/WgsQFVAdqHnuEiELmDv1gQV7hemftDU JobYdMCSpXc6KTpJDF5wb5HbQDt+Sw82acWL8XKL40DgAHKPJwIPmDdRACxfMF0j/mAn 3B3K4H+pue/gfxQpzeeAVEjsakv6Dtm0YNQrjOz3XJ94B6387Rr4K8HCyaqHRiDgsynA brjdEfbkvfOdex9DQ4Ko/dSyecw3TZa775KxLh6ygrgpjIED26CQhIrd2imojFXUwh8N NwyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=NqcAnVxpvMo7IksBTYj7fHRMjHClyEVoFOPZWnp2zrc=; fh=SfnTO7GpW3zzB964eh5mthfKZWMy4oqbu80hrCJiJEw=; b=IgKLpFm3vuiluyQ+xsxq0qhn7AsmTiMph55fNQ6AnDuTchG17JE3kXzXan0hAgffMq GSPwG2Kx8j0N2phCNc4VNb80HDrh3hmiG1Jt2R0BhKg3aH1eWSQ4X81qB8Q+4RMx+itQ OVwOeR2RUrCOYAVsSv+LXd2BgxDHVsFdreVI+Q3MwetR5vtLU3Ocos+0Tu1xGT0N3EFG l8rp7FSU8YOF2uwiCkCUafUXs5Pc2GrFZVnV9aW+ZDJQDfVs0jt2TA2pWGtscvfHlTZX 4R/XIaBFJHRrNr+Uc4T5fV+KN/8aHx9QScxvf2UtbS3ibCB93dmq3SFy/8AQ/YtNrglE QS4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=hF1OzzEu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l19-20020a639853000000b0055aeedd94d3si2404895pgo.58.2023.07.21.01.55.43; Fri, 21 Jul 2023 01:55:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=hF1OzzEu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231463AbjGUI3l (ORCPT <rfc822;assdfgzxcv4@gmail.com> + 99 others); Fri, 21 Jul 2023 04:29:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229668AbjGUI3j (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 21 Jul 2023 04:29:39 -0400 Received: from mail-il1-x130.google.com (mail-il1-x130.google.com [IPv6:2607:f8b0:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EAEF22D54 for <linux-kernel@vger.kernel.org>; Fri, 21 Jul 2023 01:29:30 -0700 (PDT) Received: by mail-il1-x130.google.com with SMTP id e9e14a558f8ab-3460815fde5so8317465ab.2 for <linux-kernel@vger.kernel.org>; Fri, 21 Jul 2023 01:29:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1689928170; x=1690532970; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=NqcAnVxpvMo7IksBTYj7fHRMjHClyEVoFOPZWnp2zrc=; b=hF1OzzEufhEDtjc1xGiWd3Q09tWgNep/QKfIBNhgJHpTTbdq2kKmoY/mkJdducvuFx e09+2Wsf9hGM4/njO7eO5dATDrHIhU95LkRhtbffp/ztBgDXWaotwYu8GK7AmSFgSlKv kPbrYmWW9/r+bMdm5GbJyIDwY2rym7M9bdP3Y= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689928170; x=1690532970; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=NqcAnVxpvMo7IksBTYj7fHRMjHClyEVoFOPZWnp2zrc=; b=lgRaBbONlQX+r0J9foX8T7CWWmly6rFAaWVqQzP5sMQHIc8twXle5x+IfkzpVYbyuq 2StNkbK1bMkAmzcpyJI42ht3S6eF7GoBYWNxwucdmcjW7py2B756AIB9hnmEPjeYS3hu xbDDqe7QCfys9gieAuf25U9Hd0LDUpmPjvlEeZZabv8O5HyeI7Op7bpVxAdtRZKpJIuc pzpaIXiIQqJsPqTS25hyV3RCLL0jUXjIRuJpiPTNy7S4Co3NtUJLuulK+nUzJywO6KbN 4QWVuT7vj2j/6sh7y187v0lqud6ygW019UTv0dZM47UKQzM/5tDH/dZ468TSyrOwtfUi WCPg== X-Gm-Message-State: ABy/qLbpJmrd8k7BgYI0YpI9Ds2C2HrT7NTMJ6/5U8a2Es4rKZ26GJ+B gW0chI+PztONammpI8qdGfBKKw== X-Received: by 2002:a05:6e02:164e:b0:345:d0c1:12b5 with SMTP id v14-20020a056e02164e00b00345d0c112b5mr1535037ilu.26.1689928170285; Fri, 21 Jul 2023 01:29:30 -0700 (PDT) Received: from wenstp920.tpe.corp.google.com ([2401:fa00:1:10:6d86:d21:714:abab]) by smtp.gmail.com with ESMTPSA id d26-20020a63991a000000b0055fe64fd3f4sm2594382pge.9.2023.07.21.01.29.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Jul 2023 01:29:29 -0700 (PDT) From: Chen-Yu Tsai <wenst@chromium.org> To: Lee Jones <lee@kernel.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Mark Brown <broonie@kernel.org>, Liam Girdwood <lgirdwood@gmail.com>, Matthias Brugger <matthias.bgg@gmail.com>, AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Cc: Chen-Yu Tsai <wenst@chromium.org>, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH RESEND v2 1/7] mfd: mt6358: Add missing registers for LDO voltage calibration Date: Fri, 21 Jul 2023 16:28:53 +0800 Message-ID: <20230721082903.2038975-2-wenst@chromium.org> X-Mailer: git-send-email 2.41.0.487.g6d72f3e995-goog In-Reply-To: <20230721082903.2038975-1-wenst@chromium.org> References: <20230721082903.2038975-1-wenst@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=unavailable 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772019787082348745 X-GMAIL-MSGID: 1772019787082348745 |
Series |
regulator: mt6358: Remove bogus regulators and improvements
|
|
Commit Message
Chen-Yu Tsai
July 21, 2023, 8:28 a.m. UTC
Most of the LDOs, except the "VSRAM_*" ones, on the MT6358 and MT6366
PMICs support a finer output voltage calibration within the range of
+0 mV to +100 mV with 10 mV step. Some of the registers for this
function are missing from the register table.
Add the missing ones for MT6358.
Signed-off-by: Chen-Yu Tsai <wenst@chromium.org>
---
include/linux/mfd/mt6358/registers.h | 6 ++++++
1 file changed, 6 insertions(+)
Comments
Il 21/07/23 10:28, Chen-Yu Tsai ha scritto: > Most of the LDOs, except the "VSRAM_*" ones, on the MT6358 and MT6366 > PMICs support a finer output voltage calibration within the range of > +0 mV to +100 mV with 10 mV step. Some of the registers for this > function are missing from the register table. > Please mention that you're doing this addition *because* you're using those new definitions right after, and in the regulator driver: [...] In preparation for adding support for improved output voltage selection in mt6358-regulator, add the relevant missing registers for the same. [...] After which, Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> > Add the missing ones for MT6358. > > Signed-off-by: Chen-Yu Tsai <wenst@chromium.org> > --- > include/linux/mfd/mt6358/registers.h | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/include/linux/mfd/mt6358/registers.h b/include/linux/mfd/mt6358/registers.h > index 3d33517f178c..5ea2590be710 100644 > --- a/include/linux/mfd/mt6358/registers.h > +++ b/include/linux/mfd/mt6358/registers.h > @@ -262,6 +262,12 @@ > #define MT6358_LDO_VBIF28_CON3 0x1db0 > #define MT6358_VCAMA1_ANA_CON0 0x1e08 > #define MT6358_VCAMA2_ANA_CON0 0x1e0c > +#define MT6358_VFE28_ANA_CON0 0x1e10 > +#define MT6358_VCN28_ANA_CON0 0x1e14 > +#define MT6358_VBIF28_ANA_CON0 0x1e18 > +#define MT6358_VAUD28_ANA_CON0 0x1e1c > +#define MT6358_VAUX18_ANA_CON0 0x1e20 > +#define MT6358_VXO22_ANA_CON0 0x1e24 > #define MT6358_VCN33_ANA_CON0 0x1e28 > #define MT6358_VSIM1_ANA_CON0 0x1e2c > #define MT6358_VSIM2_ANA_CON0 0x1e30
diff --git a/include/linux/mfd/mt6358/registers.h b/include/linux/mfd/mt6358/registers.h index 3d33517f178c..5ea2590be710 100644 --- a/include/linux/mfd/mt6358/registers.h +++ b/include/linux/mfd/mt6358/registers.h @@ -262,6 +262,12 @@ #define MT6358_LDO_VBIF28_CON3 0x1db0 #define MT6358_VCAMA1_ANA_CON0 0x1e08 #define MT6358_VCAMA2_ANA_CON0 0x1e0c +#define MT6358_VFE28_ANA_CON0 0x1e10 +#define MT6358_VCN28_ANA_CON0 0x1e14 +#define MT6358_VBIF28_ANA_CON0 0x1e18 +#define MT6358_VAUD28_ANA_CON0 0x1e1c +#define MT6358_VAUX18_ANA_CON0 0x1e20 +#define MT6358_VXO22_ANA_CON0 0x1e24 #define MT6358_VCN33_ANA_CON0 0x1e28 #define MT6358_VSIM1_ANA_CON0 0x1e2c #define MT6358_VSIM2_ANA_CON0 0x1e30