Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp725929iob; Wed, 18 May 2022 11:31:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy+t9offwQUHpRJHhlOvQ8lqT2gh6HmKtDIivx6aAHtivdgo4qk6fraKADHgZvNvuLYl6pO X-Received: by 2002:a17:902:f605:b0:14f:5d75:4fb0 with SMTP id n5-20020a170902f60500b0014f5d754fb0mr660130plg.101.1652898691284; Wed, 18 May 2022 11:31:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652898691; cv=none; d=google.com; s=arc-20160816; b=HDxUxx0qj7TA3HkJPApks8PLituEyGE2m7OiggeQO9nrymOnSNM/kegMRQs1u5SNit SlKCNqoviu0cb+vXgwHPhm3F59JwoWkj+PoLkOy6Audv+j2e0Rxx0iqlP9mtzp1zsbH5 zpuVVIVLNn297cvj4ITWLji8xPMwxx+Y9VFKji8jy6slt5we+N13Tssw5XvZuMqXAAm3 JDy5L7soMmfuPFXeFYhArYTlUjhOBwtOTkGPs1EGY5bIJefqfIKU2yqGtcN+zdRrOj1F MhvtylWc5114h4NzcF7cH5yXuzzCgIOlRCQ4dVep8m2n6JsgxWrUOQ8gHnJIfwOA2vhY 1oug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=nfgYoWCNYtN7yDfm2+d3s9VvRbNwsmq2M10lbEvV91w=; b=hTbwgKgrHQRcZ5HP81UdtR1OcQ+cX+866bj8SAs/3qXqTwmeP1NmIEo+cBZ8B/XZ/A +NEacP25VNYQJ/mtNdAQfCgL1MM3QHj0NzEI3rfaI8qCht+VS6UqTLJXMlAA/Llif/Q+ inmaSnXXJ03k/YcbPa8t/Ig5LG/uVB2iH92cMeY23cH60zCDuimlOOeqMnPtWG9UlpTS LvviGDmvsmDWAZqY8k8vS2okOOzavQH4K4Al/hf3vIBu/MYlAlj7NIuqVHLFv8/Y77Uw mp/JvYCxEbjyz1j6B6GQB0B3YhTn/rO4wcI+n69+qHq/TT7lv7NMYnq5Dk99hxmmV6/j f7yQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=BU4UhCSB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id b30-20020a631b1e000000b003c142e9d0f7si3491610pgb.557.2022.05.18.11.31.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 May 2022 11:31:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=BU4UhCSB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7179A19321E; Wed, 18 May 2022 11:26:25 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241465AbiERS0S (ORCPT + 99 others); Wed, 18 May 2022 14:26:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58538 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241366AbiERS0F (ORCPT ); Wed, 18 May 2022 14:26:05 -0400 Received: from mail-qv1-xf32.google.com (mail-qv1-xf32.google.com [IPv6:2607:f8b0:4864:20::f32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 452F17CDE7; Wed, 18 May 2022 11:26:03 -0700 (PDT) Received: by mail-qv1-xf32.google.com with SMTP id y20so2108011qvx.3; Wed, 18 May 2022 11:26:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=nfgYoWCNYtN7yDfm2+d3s9VvRbNwsmq2M10lbEvV91w=; b=BU4UhCSBQmodnhlemcE31H7c2P5bS4uD95BTXf+A6pZjh/XS3tC1t1En3GecHCtM0t mXQzgOkt6y2dhDUY4NaqxzkRzFnNMxFB4vbJUXChGiDaCeCFkzu5wJklFunrx/hsoTT4 DDRXS8UCcvLanVCmZV8nJjMyto4R6qqi3P1Tm23y4csTS2oY7xthDULzOf5X+hnuKGaJ X03is8tUWDjhmeZkDo6Ma0u3ZEmvm5T17uAkkGtZd6pAO5HEFbHOq5jKBTJEThCQyV8/ EMQVr/w2ANjh/ZxHtdzRLqqlA8lxcIh0UiG47/f0dRuTjnFXUSDrVFyIgBdYSFOEHDqo hfLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=nfgYoWCNYtN7yDfm2+d3s9VvRbNwsmq2M10lbEvV91w=; b=jEkzD9UEu6pILcZi/1ENbeJH4Hq/TWjVTgnaXOVX4TUzZpm+WdgRLN9Vdy/muXFNuY uWzTT9Lv6ga4Zio3pFFppxWsVtOesA0B6NeRFFtov4GAeNI2ydW19QY89Y6ASDrGjjLn F3OAqfRYH0/6nEnwy47LL7bYssq7cMOMdaBsHXIHDT7tWluqBcezOxRpD+ZfYXKhdcV/ Ie5kZRoj6v49L2kcTU5OY+d1/k0ddDnk9hlJDoutsF8i/hiB9Ja5qehR/LaKLQ906j8c 5MP1gb/fmECdQLiir5Uj0smk+IbPAKuNGGBHEcKWMY09CUim7oqK3HC3lYDgvjqeOK/O 31ZQ== X-Gm-Message-State: AOAM532XZ59VtOhDzBX4Jv/UX92XQMdB08L+J31totlxfI2bZdJaicUv cV7Aw3gwk43uJDSkjGOqLYEGA8iPGgaeRffX/lk= X-Received: by 2002:a05:6214:48f:b0:461:d4fe:4eed with SMTP id ay15-20020a056214048f00b00461d4fe4eedmr859981qvb.48.1652898362364; Wed, 18 May 2022 11:26:02 -0700 (PDT) MIME-Version: 1.0 References: <20220517205341.536587-1-robimarko@gmail.com> <20220517205341.536587-4-robimarko@gmail.com> In-Reply-To: From: Robert Marko Date: Wed, 18 May 2022 20:25:51 +0200 Message-ID: Subject: Re: [PATCH v3 4/6] regulator: qcom_spmi: Add support for PMP8074 regulators To: Konrad Dybcio Cc: Andy Gross , Bjorn Andersson , lgirdwood@gmail.com, broonie@kernel.org, Rob Herring , krzysztof.kozlowski+dt@linaro.org, linux-arm-msm , open list , Devicetree List Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 On Wed, 18 May 2022 at 19:31, Robert Marko wrote: > > On Wed, 18 May 2022 at 15:42, Konrad Dybcio > wrote: > > > > > > On 17/05/2022 22:53, Robert Marko wrote: > > > PMP8074 is a companion PMIC for the Qualcomm IPQ8074 WiSoC-s. > > > > > > It features 5 HF-SMPS and 13 LDO regulators. > > > > > > This commit adds support for S3 and S4 HF-SMPS buck regulators of > > > the HFS430 type and LDO11 of the HT_P150 type. > > > S3 is the CPU cluster voltage supply, S4 supplies the UBI32 NPU cores > > > and LDO11 is the SDIO/eMMC I/O voltage regulator required for high speeds. > > > > > > Signed-off-by: Robert Marko > > > --- > > > drivers/regulator/qcom_spmi-regulator.c | 8 ++++++++ > > > 1 file changed, 8 insertions(+) > > > > > > diff --git a/drivers/regulator/qcom_spmi-regulator.c b/drivers/regulator/qcom_spmi-regulator.c > > > index 38bbc70241ae..696b088aae40 100644 > > > --- a/drivers/regulator/qcom_spmi-regulator.c > > > +++ b/drivers/regulator/qcom_spmi-regulator.c > > > @@ -2137,6 +2137,13 @@ static const struct spmi_regulator_data pms405_regulators[] = { > > > { } > > > }; > > > > > > +static const struct spmi_regulator_data pmp8074_regulators[] = { > > > > Please sort the struct alphabletically. > > Hi, > Will fixup in v3. > > > > > > > > + { "s3", 0x1a00, "vdd_s3"}, > > > + { "s4", 0x1d00, "vdd_s4"}, > > > + { "l11", 0x4a00, "vdd_l10_l11_l12_l13"}, > > > > Are the other regulators somehow not controllable through SPMI? Please > > leave a comment if that's the case. > > No, they are all controllable via SPMI as far as I know. > Though the output table completely leaves out L7, L9, and L10. > L5 and L6 are specified as Ebuck-4 subtypes (0x3d), while L10 is not > listed at all (0x34). Ok, I dug a bit further and L5/6 are HT_P600 and are easily supportable. L10 is an HT_P50 type but it's listed as unused and left disabled, I don't know its supported output voltage range. Regards, Robert > These are not currently supported and I don't have enough information > to support them. > L1, L2, L3, L4, L7, L8, L9, L11, L12, and L13 appear to have their > subtype already supported. > L1, L2, L3, L8, L9 subtype (0x32) > L4 subtype (0x30) > L7, L11, L12, L13 subtype (0x35) > > S3, S4, and L11 are the most important ones. > > > > > > > + { } > > > +}; > > > + > > > static const struct of_device_id qcom_spmi_regulator_match[] = { > > > { .compatible = "qcom,pm8004-regulators", .data = &pm8004_regulators }, > > > { .compatible = "qcom,pm8005-regulators", .data = &pm8005_regulators }, > > > @@ -2150,6 +2157,7 @@ static const struct of_device_id qcom_spmi_regulator_match[] = { > > > { .compatible = "qcom,pm660-regulators", .data = &pm660_regulators }, > > > { .compatible = "qcom,pm660l-regulators", .data = &pm660l_regulators }, > > > { .compatible = "qcom,pms405-regulators", .data = &pms405_regulators }, > > > + { .compatible = "qcom,pmp8074-regulators", .data = &pmp8074_regulators }, > > > > Please sort the compatible too. > > Will fixup in v3. > > Regards, > Robert > > > > > > Konrad > > > > > { } > > > }; > > > MODULE_DEVICE_TABLE(of, qcom_spmi_regulator_match); > > >