From patchwork Fri Feb 17 14:20:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Devi Priya X-Patchwork-Id: 58618 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp913964wrn; Fri, 17 Feb 2023 06:25:03 -0800 (PST) X-Google-Smtp-Source: AK7set9NPOripizCbuoE0NT4w2Ros9THFNqRNLYWuyDG0F2YI03MDkiUUBTv+0sUbWj596NCrGu3 X-Received: by 2002:a17:907:c20c:b0:88f:87f0:c919 with SMTP id ti12-20020a170907c20c00b0088f87f0c919mr877747ejc.64.1676643903052; Fri, 17 Feb 2023 06:25:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676643903; cv=none; d=google.com; s=arc-20160816; b=eOzOanAxuVV3ZScRwJthwRMN7GESGGkvUnXtZr/QuGBjFNopvLQn2M1HG8wWotl4Ri W++Fsq+p1BGJLr0V4E82PMcK6FVBPXc3PsbXPCzn7xD+vgTn6a+XdL5prL2lkciDZZc8 58+K7dHtCi7u9oNf8/5jpVR1dOOPBzeHHQOrqiIKDr48CherPQ+vwRerulKwwWrNEVYF /2zMiD/zW19bKS2YlrrnxAiAoJ51OSqQu02WroJ4P+1/RUc/NIzzFOKynPiZ2z7XVQOc fMd4IZVkN5zcZDZlnJYX2hZZDFhxnuA1PxSELW1s3mW2ikNQY8DP7vHVueBgh5W4Chu3 kcgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=kN1pMvQMvf4rNJk5oLI8P6wuj92iycXwvvelsT3HbMs=; b=z/l+iyMZa0V+vkCc/dvcEiySoewgPRw9z3hRN2+gsvqJEQ0T9A2sabfNRGl+rSpaUs Zo6gjOSGjmuCsUOEqIr+QdZ/CGIK8r0yhkaAH670dFO2ZXQW7f6irpRlkp1IjI26X5ru ZADSkH4ayVfBmHaZ1Vr2xjOmd4Iek9DOEznYnvFJc0atd76W9s3MzttO12qYH+kiBZQ3 0htCTkqjqELxeMqb9aENgD1BCA2OpScYqkft0j9iq8JcT+lFpRSt9EeWyV/jUHgHpT8I UbvDOSkATzAYHuavAfET7KhRwjrXb77GzYfIXbyGaMy9XBpQskRMmPXNn6oe9HEw0Kfm 7xyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=QGYGsYtS; 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=quicinc.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id fi4-20020a1709073ac400b008b12ede9a82si4729041ejc.32.2023.02.17.06.24.37; Fri, 17 Feb 2023 06:25:03 -0800 (PST) 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=@quicinc.com header.s=qcppdkim1 header.b=QGYGsYtS; 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=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229551AbjBQOV2 (ORCPT + 99 others); Fri, 17 Feb 2023 09:21:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49492 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229522AbjBQOVY (ORCPT ); Fri, 17 Feb 2023 09:21:24 -0500 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 556DB6C00B; Fri, 17 Feb 2023 06:21:10 -0800 (PST) Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 31HC9CHm029204; Fri, 17 Feb 2023 14:21:07 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=qcppdkim1; bh=kN1pMvQMvf4rNJk5oLI8P6wuj92iycXwvvelsT3HbMs=; b=QGYGsYtSik73OoglRfEDZ8wAmP2lpvbg/8i+qNDNOz19+Zssz+opHCmXHOg7VRZmExl7 mWJvNw73u4esS13Rft4Xyi8iPXvKnbCzzpzzV9Bu0O7N7OIJ7a8BzgbXIU9AXIQdjfA1 LtGOMgg5GyDwL+51ujzS5dTDUzlTlcOKQRiEoqp+GEbAI6VUro8bWj407LiuE+SzuxPc OubvyfvqmNjayiKm0UeFnnkilscFVgFtB/t6tCuTUXlTxZXxFc1aI9tCHDOfJX5cm3/u 9mgKfh4TPR6XJiMSY5ElqfpUMVpR3AMzqSPZtYdUmekFfCdOVp3cclS+V77C26X8cNAe rg== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3nsgttc32j-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 17 Feb 2023 14:21:07 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 31HEL6JV019859 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 17 Feb 2023 14:21:06 GMT Received: from devipriy-linux.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.41; Fri, 17 Feb 2023 06:21:00 -0800 From: Devi Priya To: , , , , , , , , , CC: , , , , , , Subject: [PATCH V2 3/6] regulator: qcom_smd: Add MP5496 S1 regulator Date: Fri, 17 Feb 2023 19:50:27 +0530 Message-ID: <20230217142030.16012-4-quic_devipriy@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230217142030.16012-1-quic_devipriy@quicinc.com> References: <20230217142030.16012-1-quic_devipriy@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: 3oPD5rVuIKNb-6ztUcrLboAGO_ojVaB9 X-Proofpoint-ORIG-GUID: 3oPD5rVuIKNb-6ztUcrLboAGO_ojVaB9 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.930,Hydra:6.0.562,FMLib:17.11.170.22 definitions=2023-02-17_08,2023-02-17_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 adultscore=0 spamscore=0 bulkscore=0 mlxscore=0 malwarescore=0 mlxlogscore=987 suspectscore=0 clxscore=1015 phishscore=0 impostorscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2302170130 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1758088557300196052?= X-GMAIL-MSGID: =?utf-8?q?1758088557300196052?= Adding support for MP5496 S1 regulator on IPQ9574 SoC Co-developed-by: Praveenkumar I Signed-off-by: Praveenkumar I Signed-off-by: Devi Priya --- Changes in V2: - Extended the existing MP5496 support with S1 regulator and dropped the ipq9574 compatible drivers/regulator/qcom_smd-regulator.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/regulator/qcom_smd-regulator.c b/drivers/regulator/qcom_smd-regulator.c index 9f2b58458841..a40e66cea7e7 100644 --- a/drivers/regulator/qcom_smd-regulator.c +++ b/drivers/regulator/qcom_smd-regulator.c @@ -749,6 +749,15 @@ static const struct regulator_desc pms405_pldo600 = { .ops = &rpm_smps_ldo_ops, }; +static const struct regulator_desc mp5496_smpa1 = { + .linear_ranges = (struct linear_range[]) { + REGULATOR_LINEAR_RANGE(600000, 0, 127, 12500), + }, + .n_linear_ranges = 1, + .n_voltages = 128, + .ops = &rpm_mp5496_ops, +}; + static const struct regulator_desc mp5496_smpa2 = { .linear_ranges = (struct linear_range[]) { REGULATOR_LINEAR_RANGE(600000, 0, 127, 12500), @@ -794,6 +803,7 @@ struct rpm_regulator_data { }; static const struct rpm_regulator_data rpm_mp5496_regulators[] = { + { "s1", QCOM_SMD_RPM_SMPA, 1, &mp5496_smpa1, "s1" }, { "s2", QCOM_SMD_RPM_SMPA, 2, &mp5496_smpa2, "s2" }, { "l2", QCOM_SMD_RPM_LDOA, 2, &mp5496_ldoa2, "l2" }, {}