From patchwork Fri Apr 7 15:57:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Devi Priya X-Patchwork-Id: 80900 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp384870vqo; Fri, 7 Apr 2023 09:07:55 -0700 (PDT) X-Google-Smtp-Source: AKy350Y8pp0s4yC0rVOn4kf0hhA9S6ltxOLEYUpxIxZnjTLv+BcYNJMI23r8oeSb0uq0pWTi2UDm X-Received: by 2002:a17:903:1209:b0:1a2:63af:e980 with SMTP id l9-20020a170903120900b001a263afe980mr3992759plh.13.1680883674955; Fri, 07 Apr 2023 09:07:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680883674; cv=none; d=google.com; s=arc-20160816; b=CRMZOmNIUlfYZ+iY+pAU4NRN9+wilhtcc92vUo+iNTtOquemHuLgwHCWA3V2ZTR3gj ytGHFw988Y7JBV+nSwisQZaSLuMEa6bcaIxGtIZPFnY3lFseI7bk+GYmDIdWTe+WdQvo EFf3wOEmsfCu7UhltJukJsZDTQrWXefafbfGLp1ZjFAN76NzrkWLtA7ZgleJKAScYA4t VfhYp8Abao9vnH3lPHQJ7+5FCxKRuYvP6YYnGKb4YYFy2q6gNasGRgIFEjo9aZidt/ki QqczFgG5piYs6oDhljcS9Hni55kJ6YAJglvvvcqPBPdmptUrMfvZnrHvw1EGN5xk2DuG JTlQ== 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=QTbFrIMzCg8UtDOevSdkHy1kXuqTFzn8jG+YsklXcAQ=; b=rWQ0Hr1QZUH5wfxGrp5b5EEZS2pl4TsH3jtptpZ3VqPlpeJDt9+YqjHF0fw1fD+6hu xYgAX0W7jy+059DISMbVdfQqGkFi9u7jdilAtBhZa6yaPTz1nDnktmi/lqe3gs8DuzeQ NpC0E+e0TsZjvUNu7RAgmUc/e0GzwmYv9el7lRVt8a5IVxBwC1CJfO23SJCvnjLsUknz g4rDZjqYmv9ucLt8Z6zIXhWWRI+g0H0Wb8IugN8ef9WyFKBhzUY/cvUZOS7+jNcpRtwl dqznJESYQ9F72CZ2M606fuOz4EDC4To9Ya1fIY9vSm9oL3dNaLpRDlR1b8f5Z5oHAy6H unPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=FoVWdTtV; 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 h9-20020a170902f54900b001992144f3aasi4265748plf.581.2023.04.07.09.07.37; Fri, 07 Apr 2023 09:07:54 -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=@quicinc.com header.s=qcppdkim1 header.b=FoVWdTtV; 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 S232009AbjDGP6O (ORCPT + 99 others); Fri, 7 Apr 2023 11:58:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230028AbjDGP6M (ORCPT ); Fri, 7 Apr 2023 11:58:12 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B23626BC; Fri, 7 Apr 2023 08:58:06 -0700 (PDT) Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 337EpaiX017445; Fri, 7 Apr 2023 15:57:58 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=QTbFrIMzCg8UtDOevSdkHy1kXuqTFzn8jG+YsklXcAQ=; b=FoVWdTtVIYruyPpUyrs8n3fbJC0swWtBEa4Tb3wwVfA682nfiUWkDuqlqPj3fVHyFaw1 cM1D3xgCcJYZ+4eDDzMbbmf4+wOtji7fMBKtpQC4Qo/rk8naG7hPDti+earGsPrIKK9B fdMyBvnk0OjmNJwk8e4fjpeSgti8T9NxmPweOKXuuqkGnNZNSHmMANPstte2LLnPteMc F7vHYvZQoW46RMhS3HRBw0btDU3+RScnZ/yvi8CgXNVvkNOp1oGg7pljKZSn1n7QGrW5 8wIaY1VjmtacU/0mdKbw7OgrRK1tD6rytl5dFQCtj8niQo+kAQF3F2gvIgTpxZ198j+s Nw== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3pt87b9n9u-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 07 Apr 2023 15:57:58 +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 337FvvOU007024 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 7 Apr 2023 15:57:57 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.42; Fri, 7 Apr 2023 08:57:51 -0700 From: Devi Priya To: , , , , , , , , , CC: , , , , , Subject: [PATCH V4 2/5] regulator: qcom_smd: Add MP5496 S1 regulator Date: Fri, 7 Apr 2023 21:27:24 +0530 Message-ID: <20230407155727.20615-3-quic_devipriy@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230407155727.20615-1-quic_devipriy@quicinc.com> References: <20230407155727.20615-1-quic_devipriy@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) 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-ORIG-GUID: vRdjG4Q7frkOjnS15tb_1MelgBjTCGUK X-Proofpoint-GUID: vRdjG4Q7frkOjnS15tb_1MelgBjTCGUK X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-04-07_10,2023-04-06_03,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 impostorscore=0 mlxlogscore=999 phishscore=0 lowpriorityscore=0 spamscore=0 adultscore=0 malwarescore=0 bulkscore=0 suspectscore=0 mlxscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2304070146 X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762534280157145834?= X-GMAIL-MSGID: =?utf-8?q?1762534280157145834?= Adding support for MP5496 S1 regulator on IPQ9574 SoC. Co-developed-by: Praveenkumar I Signed-off-by: Praveenkumar I Signed-off-by: Devi Priya Reviewed-by: Konrad Dybcio --- Changes in V4: - Dropped struct mp5496_smpa1 which was the same as mp5496_smpa2 and renamed mp5496_smpa2 to mp5496_smps as suggested by Konrad drivers/regulator/qcom_smd-regulator.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/regulator/qcom_smd-regulator.c b/drivers/regulator/qcom_smd-regulator.c index 6f722b2d682e..18189f35db68 100644 --- a/drivers/regulator/qcom_smd-regulator.c +++ b/drivers/regulator/qcom_smd-regulator.c @@ -749,7 +749,7 @@ static const struct regulator_desc pms405_pldo600 = { .ops = &rpm_smps_ldo_ops, }; -static const struct regulator_desc mp5496_smpa2 = { +static const struct regulator_desc mp5496_smps = { .linear_ranges = (struct linear_range[]) { REGULATOR_LINEAR_RANGE(600000, 0, 127, 12500), }, @@ -794,7 +794,8 @@ struct rpm_regulator_data { }; static const struct rpm_regulator_data rpm_mp5496_regulators[] = { - { "s2", QCOM_SMD_RPM_SMPA, 2, &mp5496_smpa2, "s2" }, + { "s1", QCOM_SMD_RPM_SMPA, 1, &mp5496_smps, "s1" }, + { "s2", QCOM_SMD_RPM_SMPA, 2, &mp5496_smps, "s2" }, { "l2", QCOM_SMD_RPM_LDOA, 2, &mp5496_ldoa2, "l2" }, {} };