Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp492493iob; Wed, 18 May 2022 06:43:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwZKTsKjy8mR3y+XKRy1Tcfv+k5PDRsla0ixplOyjudKWVHfbtsWFJ5KjOxeGGfVfPKaQPv X-Received: by 2002:a17:902:ef46:b0:153:81f7:7fc2 with SMTP id e6-20020a170902ef4600b0015381f77fc2mr28049004plx.26.1652881423400; Wed, 18 May 2022 06:43:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652881423; cv=none; d=google.com; s=arc-20160816; b=wGYwgqc3bins7mY1M1LcFcCPhuGgQKEgH6Gn1taTxWsJrNhD/uldgVJiL6unY8vMWV o5/+VNDcLH3I6jBM4oScVoLMHRuf5thGEsqLnIRQcbiAQ4d/ZDaYwo37WKspXtpgXKvc IgYZUxNKmpxhcoINIB0qJAULJXM1TE0FRhgg54pd1pZRPIYJgfXbW15IcXGHA1QcOUUA AVOpKZfDwm5gBxfcDToR8Y2IVAKRVWuGXWQcwukTis0sJFd6Iz7C3VY9IrfE4kS2ZatS U4nE+3BoN7S0oMPUnOk0eOXMH1EhYd0vWw6DVJN2eFjT5Tz7F5zY9VEb4gUsHEKUVpwc t7lQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:subject:user-agent:mime-version:date:message-id; bh=9qiS+0joBYPwOVNz48Hl22ft2P6t57L4pOScSBwOo6w=; b=p5FvhQGK8iIymcDAdbHZ8NVpv/ESadB+HJKxLOzFevgX+kltDwp7rzrNyqusJ2NMiO Fi6p5lS40qdfpYqFI4qE+4zTcqKVCe4AoZsGX6ulH9QWiNzhau0qh3yH7J20X7bzKsuJ +3ThdlN2Cxi3qbDvBm4Z7uKczx0ltwIYANC7Gs5jf7sks/96Fg988zWJgj9DlXYBg/st pE/Whx6f9BFuJOz+QWXUJNmqu4oX9Et+EGZIbMgd1yEV+X1yM4nHLXGUNR/6IcOBpWd9 PRBK+30eqpSYpsEnuZ7cVMvrFhv7nUKwDM4S/xD7xL9LDM4JMmwY80Lp127y2BbGVOzk W7cw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id v2-20020a63f202000000b003f25729acd4si2559701pgh.555.2022.05.18.06.43.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 May 2022 06:43:43 -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; 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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id EE57A1AD599; Wed, 18 May 2022 06:42:59 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238078AbiERNmu (ORCPT + 99 others); Wed, 18 May 2022 09:42:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37020 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238076AbiERNms (ORCPT ); Wed, 18 May 2022 09:42:48 -0400 Received: from relay02.th.seeweb.it (relay02.th.seeweb.it [5.144.164.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F1B511A15CD for ; Wed, 18 May 2022 06:42:46 -0700 (PDT) Received: from [10.1.250.9] (riviera.nat.ds.pw.edu.pl [194.29.137.1]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by m-r1.th.seeweb.it (Postfix) with ESMTPSA id C2AE720602; Wed, 18 May 2022 15:42:44 +0200 (CEST) Message-ID: Date: Wed, 18 May 2022 15:42:44 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Subject: Re: [PATCH v3 4/6] regulator: qcom_spmi: Add support for PMP8074 regulators To: Robert Marko , agross@kernel.org, bjorn.andersson@linaro.org, lgirdwood@gmail.com, broonie@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org References: <20220517205341.536587-1-robimarko@gmail.com> <20220517205341.536587-4-robimarko@gmail.com> From: Konrad Dybcio In-Reply-To: <20220517205341.536587-4-robimarko@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE 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: X-Mailing-List: linux-kernel@vger.kernel.org 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. > + { "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. > + { } > +}; > + > 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. Konrad > { } > }; > MODULE_DEVICE_TABLE(of, qcom_spmi_regulator_match); >