From patchwork Fri Feb 17 14:20:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Devi Priya X-Patchwork-Id: 58614 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp913431wrn; Fri, 17 Feb 2023 06:23:52 -0800 (PST) X-Google-Smtp-Source: AK7set8qitXVofwiwla79XBIq1/7T6wwYN/3kbHY183M8gi4eG+GaXQu2KfMOXRcRqvlJx9VFlDH X-Received: by 2002:a17:90b:1c92:b0:234:c07f:c04d with SMTP id oo18-20020a17090b1c9200b00234c07fc04dmr3793267pjb.49.1676643832615; Fri, 17 Feb 2023 06:23:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676643832; cv=none; d=google.com; s=arc-20160816; b=Ngt2ovtnZWRwR1xxNbjfu9ndKGvOo2jZTsOqFiB0oldgLjoxEcsIFJgx2lkRtX3dH2 OzN9d0vHvCdMqwLlUKCHi+uaDykcy5TN91etgUfUC31N86m5r9tRUQH+rwUimzM3HLw2 DuHrfboksdbirsF7uhL/x7WjRDKwK4TzfjdZD4dv2wkXSXLlYIgxbcVKatziE47epHju cI11MM/hNZBwmsFvWWaUXZ7UDA1fqgxnsfsP8mMZ162o1Rf8YWEuwNUTQw6LCVyyFgOY ZOlwRnBCPJg64AxtDL4XVvFLpJmovSkWGuo8fj2DahRDpoZvJb13CwGheIGTVejhh3mj xtiw== 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=O5vLRqttas5jGx54CDQyANGKNiP6nlDvJnOcU377Yb8=; b=Wa+8xHbae8W0O8mNOf196svpe/JBpJ2h+w1uQ87WzYayyjRKAruweR+A9idUIhMoIv 0rSBrMoSkrrH/hc6LdDvvWEWgGSebpVdIBqZRDke/+VGMO18KaoX8zfH3FcyfuTqbz1C sDXcaEzO2RiAMNQPQxmteAosxBAt1CN1V0xXJxPlNqWeoH/iEhJLdGx3LaNrHkXw7I3C CWYXbQ+KKkDYTw1a1Tls+D0PO44vUBZ9UhQtxZOyOYShE0UnHCUP9P+oLZtZFo6dD2Mc mYzrO0NQr/6h6z+nDl4nctNcX7A9ToraRfxU+fmkO0ShRyhXQVJY1CPfud4wLMOZyQto A3Fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=daSWBHzR; 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 e186-20020a6369c3000000b004fb4568d22dsi4454409pgc.848.2023.02.17.06.23.39; Fri, 17 Feb 2023 06:23:52 -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=daSWBHzR; 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 S230049AbjBQOVD (ORCPT + 99 others); Fri, 17 Feb 2023 09:21:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48668 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229775AbjBQOVA (ORCPT ); Fri, 17 Feb 2023 09:21:00 -0500 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AC1EEBB9D; Fri, 17 Feb 2023 06:20:59 -0800 (PST) Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 31HCt8Ug010593; Fri, 17 Feb 2023 14:20:56 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=O5vLRqttas5jGx54CDQyANGKNiP6nlDvJnOcU377Yb8=; b=daSWBHzRXT71LVo7RFuUFjiwYV1J+aw/G6DM0u4VjWap9Zb+DGTBrLYS1UAylnAdr0lm AHMtMn302WOwLDQNvOluTJzAdjJgrGDlgvqCc+eMiTcSN5RvvkfUq4Ep6mFAWaGMC3yU x09LPObPrfVtLwq6UyU1lTNhTPyQDkZghRS9PoUR4f/H5Y6wcENI8XjXRDSFuaBEPf+2 +ucu6/zJtDf32VIBCalZjSOO/U0/AjW6yaNgH0mH6EbHykvHi42rg+nTwUUMBkhS43BF +x4Gg2O/34xuwfKYgf5pboSSC513G8Uc5pac7xrxpP1ZfAz/kOBcwNwKQ/JsDkEYCjd/ HA== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3nt53brwqk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 17 Feb 2023 14:20:56 +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 31HEKtuT019713 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 17 Feb 2023 14:20:55 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:20:49 -0800 From: Devi Priya To: , , , , , , , , , CC: , , , , , , Subject: [PATCH V2 1/6] dt-bindings: soc: qcom: smd-rpm: Add IPQ9574 compatible Date: Fri, 17 Feb 2023 19:50:25 +0530 Message-ID: <20230217142030.16012-2-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-ORIG-GUID: 2AIdlv0HpyPu1P9lRE2cDSkIXmAVH6hH X-Proofpoint-GUID: 2AIdlv0HpyPu1P9lRE2cDSkIXmAVH6hH 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 lowpriorityscore=0 bulkscore=0 malwarescore=0 suspectscore=0 adultscore=0 impostorscore=0 priorityscore=1501 phishscore=0 mlxlogscore=797 spamscore=0 clxscore=1015 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2302170128 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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?1758088483300922023?= X-GMAIL-MSGID: =?utf-8?q?1758088483300922023?= Document the compatible for RPM communication over SMD for IPQ9574 SoC Signed-off-by: Devi Priya Acked-by: Krzysztof Kozlowski --- Changes in V2: - Dropped the Co-developed-by tag Documentation/devicetree/bindings/soc/qcom/qcom,smd-rpm.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/soc/qcom/qcom,smd-rpm.yaml b/Documentation/devicetree/bindings/soc/qcom/qcom,smd-rpm.yaml index 16fd67c0bd1f..2a5791ebc8dd 100644 --- a/Documentation/devicetree/bindings/soc/qcom/qcom,smd-rpm.yaml +++ b/Documentation/devicetree/bindings/soc/qcom/qcom,smd-rpm.yaml @@ -33,6 +33,7 @@ properties: enum: - qcom,rpm-apq8084 - qcom,rpm-ipq6018 + - qcom,rpm-ipq9574 - qcom,rpm-msm8226 - qcom,rpm-msm8909 - qcom,rpm-msm8916 From patchwork Fri Feb 17 14:20:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Devi Priya X-Patchwork-Id: 58619 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp913966wrn; Fri, 17 Feb 2023 06:25:03 -0800 (PST) X-Google-Smtp-Source: AK7set9UF78bZT75JEfqI/I02vpXsQaV9UxcxPbmc7654R5Iz3bUVvImNELRg2mAlbHvVFC1diZ+ X-Received: by 2002:a17:907:c284:b0:8b3:1e35:8f22 with SMTP id tk4-20020a170907c28400b008b31e358f22mr2064608ejc.58.1676643903344; 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=CSezEwYrwQMWGU78RxJD2Qw4dsd5m7QTMYM93yNokpMZwlqRK7HNx30WUGD/y6Twut WSNbml8Te2dYgLvJOH5howmAtpl45/poSeoabXJu2iWcc+pAysOYvMswJpK+gCn1SBvM ZZpyRJT9zqUFjlJNy7vj63rg0Ov0C58mV4WURYsgrnj4dP2Z6sYwZZRXEhLjzvf20ISl llti9hu/G+UhpTC+PNOTgSZJjgvHOFqV3qBWYa/wveuvqnQz+zszfU/SBXx+ogJV6DZD is3StPgV6Rzd0byQfWgCfciRVfn5vtDjEy21vfjRcVsxU30Hzf4MP6ZNs03hECNw9SiW 80OQ== 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=qqIgaKbU+BTNQyTsS+nBp6WvTyCb0UhpV5Ckt0pxrWM=; b=dmw22/YEK9OEKffGWqbP1Srzf5y6UEZJRMthhKWSObuXFuSzPuBPyG0kf7JbT5w75N QqxHKoOLp/vRQDuiqmONL5pfd4gNLdGYCQWSIAcKseCaur3kkk2JXQ067nIgPCh42JWX A35c+Dn41VbOmnHu9aPQpgwcWJieiZb6k2qTVo1oDWGuB/3LBnDl9a40aJT6jKfEBbZZ k1fqar4TwlFo0PH8mWA9gQKtT/qZPLK5MryvxAzNzXHm+VKOWRNkbDdwXSwgtKpYfmYO uZwhNiD/YZaWlFp3php0PpbwCa46g5hLFpUTK5QasdtKbRHuNpsS2gYfGENeKJqFTHwC EXeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=TSDsWEQ+; 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 l13-20020a170907914d00b008b8ae79a059si259571ejs.369.2023.02.17.06.24.40; 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=TSDsWEQ+; 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 S229512AbjBQOVT (ORCPT + 99 others); Fri, 17 Feb 2023 09:21:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49292 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229539AbjBQOVR (ORCPT ); Fri, 17 Feb 2023 09:21:17 -0500 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 13F573B3E5; Fri, 17 Feb 2023 06:21:09 -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 31HAA6LU024385; Fri, 17 Feb 2023 14:21:01 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=qqIgaKbU+BTNQyTsS+nBp6WvTyCb0UhpV5Ckt0pxrWM=; b=TSDsWEQ+z+ab9dGQ93cR4NkMJ/clRGsIX23MOaHbF6cyVddizBVAVGJki+8Ds1Z3U11x 9eugeU0iTTzDwJ8eGZHBXRN1M5h73thV5C5X5tMYyyXA0/58xexfenPJAQ8G/US1ojGq j2E/JDHT1kEAQ+GEubxWAQCo4qGgpXGePZW5c87WE0yShr6D7whXm8zbcUL3RiLg13Qw 69BYwcXY/l8epoZr+x5F3AvV0i/8Dlo3MGs/n15R+o0Qu+RgxVQw/9fNr6HJucV1qyts CQBo6UhXFhD1BTvPOhRc+UWcIBqwyjW7Fa5oRWws7PkKsLwhOugpNzoac353nLMCmzBT ug== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3nsgttc32c-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 17 Feb 2023 14:21:01 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 31HEL0Fw000792 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 17 Feb 2023 14:21:00 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:20:55 -0800 From: Devi Priya To: , , , , , , , , , CC: , , , , , , Subject: [PATCH V2 2/6] regulator: qcom_smd: Add s1 sub-node to mp5496 regulator Date: Fri, 17 Feb 2023 19:50:26 +0530 Message-ID: <20230217142030.16012-3-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: vYCq1PYbDiCPUIbdcbZ3avD1WKBNGcgR X-Proofpoint-ORIG-GUID: vYCq1PYbDiCPUIbdcbZ3avD1WKBNGcgR 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=974 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?1758088557224272019?= X-GMAIL-MSGID: =?utf-8?q?1758088557224272019?= Adding s1 sub-node entry to mp5496 regulator node Signed-off-by: Devi Priya Reviewed-by: Rob Herring --- Changes in V2: - Dropped ipq9574 compatible as the existing MP5496 support is extended for S1 regulator .../devicetree/bindings/regulator/qcom,smd-rpm-regulator.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/regulator/qcom,smd-rpm-regulator.yaml b/Documentation/devicetree/bindings/regulator/qcom,smd-rpm-regulator.yaml index 8c45f53212b1..a8ca8e0b27f8 100644 --- a/Documentation/devicetree/bindings/regulator/qcom,smd-rpm-regulator.yaml +++ b/Documentation/devicetree/bindings/regulator/qcom,smd-rpm-regulator.yaml @@ -22,7 +22,7 @@ description: Each sub-node is identified using the node's name, with valid values listed for each of the pmics below. - For mp5496, s2 + For mp5496, s1, s2 For pm2250, s1, s2, s3, s4, l1, l2, l3, l4, l5, l6, l7, l8, l9, l10, l11, l12, l13, l14, l15, l16, l17, l18, l19, l20, l21, l22 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" }, {} From patchwork Fri Feb 17 14:20:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Devi Priya X-Patchwork-Id: 58616 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp913643wrn; Fri, 17 Feb 2023 06:24:22 -0800 (PST) X-Google-Smtp-Source: AK7set9IRCcl9Z/v/N7xO+CSXSI1p+bSoa3qInOwjVqV8lXTpXZmfmJkHKRs4pSV/r2jSEOTEEef X-Received: by 2002:a05:6a20:d019:b0:b7:4f67:c2de with SMTP id hu25-20020a056a20d01900b000b74f67c2demr931306pzb.40.1676643861878; Fri, 17 Feb 2023 06:24:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676643861; cv=none; d=google.com; s=arc-20160816; b=SiyatpJsOZJzFI/c7xm6ZMu7VRY8ONXMZRH5x1ZXz7gyq1A+bcHtwvq6RF6qCHaIAJ WSnF3Jc1Xqs5z5ZHf0rr9wjMfUWPwrk/I/buiV3RQS8Q9vnjXsBdN4LqcG0rdUAcg1OA Rol4gp1PeRyM/vX5+64DunEu1ReO4Tgcoo1o/zhisMyu/Cn5CvHcIvyXhWUgXr8PSVPw +Ia4lkrLE8vAsB5+jTaRrebaxw6dvWBsFZTkgUaNdcz4S6fVrbhg3WFpSnvNXgn/TqDS DDbQb/+XzMm1djEfpt5CtNDB2Gp8Z2OhcBJRRZiwyRR/9T3vXkr65pr8Q2PI1opgwZtw snDQ== 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=pEgnXSOuQtNq1e1QdA9XjfC/+JH3Look3Up+AUbAB2U=; b=Z0PwWgArGpuLlFtxQwvB0oeYQ5e35UbCLlk95gTTHi7Fs0mHSzQQGK7K8zW7hVF5uO DW2AGyh9gYgV6FOuXqPlu+OO26lcYha3G7qFFFL1pJSgG/5iA7KVjdbLIDVMHx+pRtyd jx4tkD5G4NFe6KUOGFt4AGxfAPFa2O2f9zrAit0nB/l3Gmy0qLAWnMwcnl7XxKY281kG YXbePHbiiZl7xL4QZtJ1nZyWoXj8P10QM1oN0ZEVdt8U3LNi+ITIdhosY6e6pdg096Xb oBIrRg1W8+CW3eje4CyvRn9Nl57OPFYDy/6/csV6XzXRQ+qmXPLzCkaFlMhbsHJE1STI sCig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=A+E6DgNt; 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 h70-20020a638349000000b004ff6eee716csi269957pge.398.2023.02.17.06.24.08; Fri, 17 Feb 2023 06:24:21 -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=A+E6DgNt; 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 S229829AbjBQOVg (ORCPT + 99 others); Fri, 17 Feb 2023 09:21:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49538 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229649AbjBQOVf (ORCPT ); Fri, 17 Feb 2023 09:21:35 -0500 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6FA3B6D78F; Fri, 17 Feb 2023 06:21:16 -0800 (PST) Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 31HCh5IT007130; Fri, 17 Feb 2023 14:21:13 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=pEgnXSOuQtNq1e1QdA9XjfC/+JH3Look3Up+AUbAB2U=; b=A+E6DgNtIofCifWxnI5UhUW2FFcZMnjL0o0Mj9Zdy+BxAogOThhvkSk2W3mQrJPPLIlt 4CQ6flXZwRWs5dBidiDiexakyksnkZSpKR9zn6koy6D1flVf6isHx0EI9CqdvI3gy/3B 6nFZ6HFPB5dyRdOpM71kEGQ49eqgoPATES4TOExVGkY6L8RlaXVTOC25Ph4mwAHd8+T7 4kvjO/gUuxTODTySaKgzYMrc0trOwNYp1z7+f64m2x0iDSwglfizdfpmvgjJjt2sYIaX VOoeEOVYKsVeG/8bMc7fAsavLw0Cbe0JDRwpdX03x2r2QW3zsX0AiHsOUeNZLoQrT3OK ew== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3nt6x4gk2y-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 17 Feb 2023 14:21:13 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 31HELC1G016495 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 17 Feb 2023 14:21:12 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:06 -0800 From: Devi Priya To: , , , , , , , , , CC: , , , , , , Subject: [PATCH V2 4/6] regulator: qcom_smd: Add support to define the bootup voltage Date: Fri, 17 Feb 2023 19:50:28 +0530 Message-ID: <20230217142030.16012-5-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: YEMFytLkcXna97A2s7soBw90a_vnxzlX X-Proofpoint-ORIG-GUID: YEMFytLkcXna97A2s7soBw90a_vnxzlX 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_09,2023-02-17_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 clxscore=1015 phishscore=0 malwarescore=0 adultscore=0 mlxlogscore=926 priorityscore=1501 impostorscore=0 lowpriorityscore=0 mlxscore=0 suspectscore=0 bulkscore=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?1758088514056003172?= X-GMAIL-MSGID: =?utf-8?q?1758088514056003172?= Kernel does not know the initial voltage set by the bootloaders. During regulator registration, the voltage variable is just declared and it is zero. Based on that, the regulator framework considers current the voltage as zero and tries to bring up each regulator to minimum the supported voltage. This introduces a dip in the voltage during kernel boot and gets stabilized once the voltage scaling comes into picture. To avoid the voltage dip, adding support to define the bootup voltage set by the boodloaders and based on it, regulator framework understands that proper voltage is already set Co-developed-by: Praveenkumar I Signed-off-by: Praveenkumar I Signed-off-by: Devi Priya --- Changes in V2: - Added the bootup voltages to s2 and l2 regulators drivers/regulator/qcom_smd-regulator.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/regulator/qcom_smd-regulator.c b/drivers/regulator/qcom_smd-regulator.c index a40e66cea7e7..5f9fe6b9d368 100644 --- a/drivers/regulator/qcom_smd-regulator.c +++ b/drivers/regulator/qcom_smd-regulator.c @@ -800,12 +800,13 @@ struct rpm_regulator_data { u32 id; const struct regulator_desc *desc; const char *supply; + int boot_uV; /* To store the bootup voltage set by bootloaders */ }; 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" }, + { "s1", QCOM_SMD_RPM_SMPA, 1, &mp5496_smpa1, "s1", 875000 }, + { "s2", QCOM_SMD_RPM_SMPA, 2, &mp5496_smpa2, "s2", 875000 }, + { "l2", QCOM_SMD_RPM_LDOA, 2, &mp5496_ldoa2, "l2", 2950000 }, {} }; @@ -1388,6 +1389,9 @@ static int rpm_regulator_init_vreg(struct qcom_rpm_reg *vreg, struct device *dev vreg->type = rpm_data->type; vreg->id = rpm_data->id; + if (rpm_data->boot_uV) + vreg->uV = rpm_data->boot_uV; + memcpy(&vreg->desc, rpm_data->desc, sizeof(vreg->desc)); vreg->desc.name = rpm_data->name; vreg->desc.supply_name = rpm_data->supply; From patchwork Fri Feb 17 14:20:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Devi Priya X-Patchwork-Id: 58615 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp913708wrn; Fri, 17 Feb 2023 06:24:30 -0800 (PST) X-Google-Smtp-Source: AK7set/f27/+84cNwVJIavZroJwY7GHmVuFu3atOIm6OTDdU63cxNWqvvZ+lpPrR1IDuHdaaCM+2 X-Received: by 2002:a62:1bd6:0:b0:5a9:cebc:90ee with SMTP id b205-20020a621bd6000000b005a9cebc90eemr2961227pfb.15.1676643870433; Fri, 17 Feb 2023 06:24:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676643870; cv=none; d=google.com; s=arc-20160816; b=LKW5DS4am0AlcxwxqxLWBL1MTgyLJy40ebFtRWk09UtF1JvZp43CYJ2TrSmMROnF0g Iqh4XHE0HWpP5qrFW94mCu+nOsLOq8bBZIqPTyCcFiWEMIR1TGiAI/m7idzSGv2B0/+Y XUgn0q6Yxbf3OdDWTif28ns7G+OU7rq6zZWUvY4KLYaGQePAoGGLethkWCGb/NJHgMWW JMLsVH/ureUh+KDJ4UNQkJug57OW29se4GHxDykt/aCvMCBlKLWzJ6BYNHmkA4Af6NF7 enow+nrTPrqVKi2Dz9dDp6tcLobC4ANeSMdk9UkW971szPQzWsZcTghwO8gFKZYlBN+o Y06A== 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=d+3ac4bmVhBFN8G4VXfF3+9hoCNEBlInf57L6+vTdFE=; b=AIh/Tv1/bv/VDc4jpsOoSGc1xaWZXNfhVYQb2jIIyDXgffixsZf51ra/cRyifhdv/r yjtxiQyFwLAOF3dN4Gwu08h2EQYtn2gioBDGzEbOmUK86oSzjyXC6MGsa/e5zx1NQQ3V XNZzIZd8ktO1H152/B3CjpVmVuzWEIZCpou+qQyJJ0dnJjSo9kZvf/F6QJJKuUm90Hb+ HUHa75Wuzk7grTaNlBgVlJhULSzxPOkeZxIW1C5HILx3O5Sisb2oJ4645p2JXlxfSkBz 4mhiC4bYbcmRYXdcEMXUzKQ5IYeCTNnqM4+VQUu4Eg8ADOc8T0FFwnfDuFZIc5LkMHvN ZcrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=hlujN1gA; 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 b18-20020a056a000cd200b00593b134c4easi5389220pfv.187.2023.02.17.06.24.17; Fri, 17 Feb 2023 06:24:30 -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=hlujN1gA; 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 S229865AbjBQOVq (ORCPT + 99 others); Fri, 17 Feb 2023 09:21:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50102 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229893AbjBQOVo (ORCPT ); Fri, 17 Feb 2023 09:21:44 -0500 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E761B6C00B; Fri, 17 Feb 2023 06:21:27 -0800 (PST) Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 31HAPdMR005954; Fri, 17 Feb 2023 14:21:19 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=d+3ac4bmVhBFN8G4VXfF3+9hoCNEBlInf57L6+vTdFE=; b=hlujN1gAOYO5mLQKjHuBM4akfzGaVO3qhGndmQNvNRR0r+niOJ49h/rdgat2VH+AcKjM 0cEvw5Hru0yqkDjDJOH5Q8rdoyrjkDihvLZno5z0C76yvti2XQfQpeFdmFfeocgBvWfC MLvQV+34WrK32x8dJ67f3BO9t34yOhXCJxzVYoRZMnzzr33ZgVtbSn2Wai8u3NgbmMLZ V6M7VMJsNeamJq4l0aiJIa+hSmyYE6bppP2DrwtV1lfhYsvKYrfCId3liYwFOeW5ByAn LLySsJ/gFTKoksDhyWn54y8JGRSOMwPZtRwgMsUPaVlXD/HmAjensTBBSbkmmEOjnxBQ sg== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3nt5kurshb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 17 Feb 2023 14:21:19 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 31HELIbH016545 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 17 Feb 2023 14:21:18 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:12 -0800 From: Devi Priya To: , , , , , , , , , CC: , , , , , , Subject: [PATCH V2 5/6] arm64: dts: qcom: ipq9574: Add RPM related nodes Date: Fri, 17 Feb 2023 19:50:29 +0530 Message-ID: <20230217142030.16012-6-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: WX0OXenROOkgcD37HACQIQoxMxPKsBaZ X-Proofpoint-ORIG-GUID: WX0OXenROOkgcD37HACQIQoxMxPKsBaZ 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_09,2023-02-17_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 suspectscore=0 lowpriorityscore=0 mlxlogscore=947 mlxscore=0 adultscore=0 malwarescore=0 clxscore=1015 phishscore=0 spamscore=0 impostorscore=0 bulkscore=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?1758088522966483372?= X-GMAIL-MSGID: =?utf-8?q?1758088522966483372?= Add RPM Glink, RPM message RAM and SMPA1 regulator nodes to support frequency scaling on IPQ9574 Signed-off-by: Devi Priya --- Changes in V2: - Splitted the RPM and CPU Freq changes to individual patches - Moved the regulators node to Board DT - Dropped the regulator-always-on property - Updated the compatible in regulators node with the existing mp5496 compatible arch/arm64/boot/dts/qcom/ipq9574-al02-c7.dts | 11 +++++++++++ arch/arm64/boot/dts/qcom/ipq9574.dtsi | 17 +++++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/ipq9574-al02-c7.dts b/arch/arm64/boot/dts/qcom/ipq9574-al02-c7.dts index 21b53f34ce84..8a6caaeb0c4b 100644 --- a/arch/arm64/boot/dts/qcom/ipq9574-al02-c7.dts +++ b/arch/arm64/boot/dts/qcom/ipq9574-al02-c7.dts @@ -57,6 +57,17 @@ status = "okay"; }; +&rpm_requests { + regulators { + compatible = "qcom,rpm-mp5496-regulators"; + + ipq9574_s1: s1 { + regulator-min-microvolt = <587500>; + regulator-max-microvolt = <1075000>; + }; + }; +}; + &sdhc_1 { pinctrl-0 = <&sdc_default_state>; pinctrl-names = "default"; diff --git a/arch/arm64/boot/dts/qcom/ipq9574.dtsi b/arch/arm64/boot/dts/qcom/ipq9574.dtsi index d20f3c7383f5..2f300cbab93e 100644 --- a/arch/arm64/boot/dts/qcom/ipq9574.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq9574.dtsi @@ -133,6 +133,11 @@ #size-cells = <2>; ranges; + rpm_msg_ram: rpm@60000 { + reg = <0x0 0x00060000 0x0 0x6000>; + no-map; + }; + tz_region: tz@4a600000 { reg = <0x0 0x4a600000 0x0 0x400000>; no-map; @@ -768,6 +773,18 @@ }; }; + rpm-glink { + compatible = "qcom,glink-rpm"; + interrupts = ; + qcom,rpm-msg-ram = <&rpm_msg_ram>; + mboxes = <&apcs_glb 0>; + + rpm_requests: glink-channel { + compatible = "qcom,rpm-ipq9574"; + qcom,glink-channels = "rpm_requests"; + }; + }; + timer { compatible = "arm,armv8-timer"; interrupts = , From patchwork Fri Feb 17 14:20:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Devi Priya X-Patchwork-Id: 58617 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp913890wrn; Fri, 17 Feb 2023 06:24:55 -0800 (PST) X-Google-Smtp-Source: AK7set/0EeeA2vHd85FOq0qBMRFTd7DuGRX4spVQJ0Ni2srdXh6iBDDJuXfQUpyE2F4VkM44kCtp X-Received: by 2002:a17:902:e5ca:b0:19a:80b2:e94b with SMTP id u10-20020a170902e5ca00b0019a80b2e94bmr11918050plf.33.1676643895187; Fri, 17 Feb 2023 06:24:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676643895; cv=none; d=google.com; s=arc-20160816; b=kmWChKQEyWJSXY4NJt8LmWcIIbRBwmJPY6+BrZ7s7FByiAPTLdTopssj9LW2z9kMSq oX07RQvkWAkuf3koQFXGlNmJuKZ+UnrqftqfdAvBuLi4RmXhzbdzDi7n8Jd2rh+fGIip NuShhijkiwUvFcXNewJlRj9/h8KW7daoeSKSdKe0v4iM6TyCqN6tK24Rgzybf3ahnSVb Bmf/Q8qyoHSJkKtIzv3VzFfAIpXvBKbzl37L0yM0aUpxP4L7WPpZIvADl1TPeNtPKOIx 8hmJsYnokViBGqo+SCvPvkuACegs/39O8j8RTYduQoj5tUhLWwbY8wl0A/vvCim6o5m3 D1HQ== 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=W4CccyOiOo4G+9Es20Lt/Igbfhe3yQ8E6P+ulKFqOQ4=; b=kSJtR7BCxG6vRbpm85DFEhFO7tfENysu2+PFwHTSkOyarg1eDk6pR5vMkyWdWclkli sX/QGI4jb7Ht11PcvgSjMO1JJLQ6QVA5HWVKz4+u4eIWSqrpcQ4kjlGyyGc6T25BF1gD dI5Gi/Y5gOvD/D9E3qKtoRm9hGivZSlqPJeD1/8E+iNibKvsu3Sqt9wMup+TtXA2SuIx rVzJ9/FWXFI4LYYBRCXkBX+UbIqZIZgUDSn5VqXwXatxF4vDWmWkYwa8oiUeb9DX8b0S c4Bsfwwv2ApQn2cLov3qzn+03l2BnNprgh6h5eU4J1K/NO4rclrOYZWG4V3ZYtjOt8el dngw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=KKnn2YA4; 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 a8-20020a170902ecc800b0019955f57cbdsi5365576plh.441.2023.02.17.06.24.26; Fri, 17 Feb 2023 06:24:55 -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=KKnn2YA4; 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 S229658AbjBQOVs (ORCPT + 99 others); Fri, 17 Feb 2023 09:21:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229867AbjBQOVo (ORCPT ); Fri, 17 Feb 2023 09:21:44 -0500 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 41C106CA3D; Fri, 17 Feb 2023 06:21:28 -0800 (PST) Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 31HDsEiE024326; Fri, 17 Feb 2023 14:21:25 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=W4CccyOiOo4G+9Es20Lt/Igbfhe3yQ8E6P+ulKFqOQ4=; b=KKnn2YA4C/q4bzr0pZRTSfkhxtIcbpXOgv89lNb9meIIBJYmhQTW05/m2giorExz+OIB skEX41ZREMfrQlCQYmSCuMT1I0B/f6c8w9+3bqmYl5xcJPSE6AG64Jyo1jsCbF4lR21q OGa5mhUyxqavxmR0caRk4ph8Z/ZODdJqEG6JhqycX8gDUGo65QDvskVdJ0CMFXo9AC44 3YxBtT8n6eNas750kuvGQr0FxtI7Xq6Ymko3kzKiQhyV8HkdZxNRb5Nw2CJtEORClKKM gMs0bgDA+gPL2d0bq3/D2Ck1jPNYWUP4/Fo86bxBVztDCNTL/23sGGUFbvi0Q7H9/2ai RQ== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3nt5kurshh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 17 Feb 2023 14:21:24 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 31HELO4m025162 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 17 Feb 2023 14:21:24 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:18 -0800 From: Devi Priya To: , , , , , , , , , CC: , , , , , , Subject: [PATCH V2 6/6] arm64: dts: qcom: ipq9574: Add cpufreq support Date: Fri, 17 Feb 2023 19:50:30 +0530 Message-ID: <20230217142030.16012-7-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: _1oZblUYjUfXvl7ArZfyPYNgaUgvgJVv X-Proofpoint-ORIG-GUID: _1oZblUYjUfXvl7ArZfyPYNgaUgvgJVv 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_09,2023-02-17_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 suspectscore=0 lowpriorityscore=0 mlxlogscore=780 mlxscore=0 adultscore=0 malwarescore=0 clxscore=1015 phishscore=0 spamscore=0 impostorscore=0 bulkscore=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?1758088548943240020?= X-GMAIL-MSGID: =?utf-8?q?1758088548943240020?= Add cpu freq nodes in the device tree to bump cpu frequency above 800MHz Co-developed-by: Praveenkumar I Signed-off-by: Praveenkumar I Signed-off-by: Devi Priya --- Changes in V2: - Created a separate patch for CPU freq related nodes - Updated cpu0-supply to cpu-supply in CPU@0 node - Moved the opp-table-cpu node after memory to have it sorted alphabetically - Added a new line between the subnodes in opp-table-cpu arch/arm64/boot/dts/qcom/ipq9574.dtsi | 58 +++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/ipq9574.dtsi b/arch/arm64/boot/dts/qcom/ipq9574.dtsi index 2f300cbab93e..2bb4053641da 100644 --- a/arch/arm64/boot/dts/qcom/ipq9574.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq9574.dtsi @@ -6,6 +6,7 @@ * Copyright (c) 2023, Qualcomm Innovation Center, Inc. All rights reserved. */ +#include #include #include #include @@ -73,6 +74,10 @@ reg = <0x0>; enable-method = "psci"; next-level-cache = <&L2_0>; + clocks = <&apcs_glb APCS_ALIAS0_CORE_CLK>; + clock-names = "cpu"; + operating-points-v2 = <&cpu_opp_table>; + cpu-supply = <&ipq9574_s1>; }; CPU1: cpu@1 { @@ -81,6 +86,10 @@ reg = <0x1>; enable-method = "psci"; next-level-cache = <&L2_0>; + clocks = <&apcs_glb APCS_ALIAS0_CORE_CLK>; + clock-names = "cpu"; + operating-points-v2 = <&cpu_opp_table>; + cpu-supply = <&ipq9574_s1>; }; CPU2: cpu@2 { @@ -89,6 +98,10 @@ reg = <0x2>; enable-method = "psci"; next-level-cache = <&L2_0>; + clocks = <&apcs_glb APCS_ALIAS0_CORE_CLK>; + clock-names = "cpu"; + operating-points-v2 = <&cpu_opp_table>; + cpu-supply = <&ipq9574_s1>; }; CPU3: cpu@3 { @@ -97,6 +110,10 @@ reg = <0x3>; enable-method = "psci"; next-level-cache = <&L2_0>; + clocks = <&apcs_glb APCS_ALIAS0_CORE_CLK>; + clock-names = "cpu"; + operating-points-v2 = <&cpu_opp_table>; + cpu-supply = <&ipq9574_s1>; }; L2_0: l2-cache { @@ -111,6 +128,47 @@ reg = <0x0 0x40000000 0x0 0x0>; }; + cpu_opp_table: opp-table-cpu { + compatible = "operating-points-v2"; + opp-shared; + + opp-936000000 { + opp-hz = /bits/ 64 <936000000>; + opp-microvolt = <725000>; + clock-latency-ns = <200000>; + }; + + opp-1104000000 { + opp-hz = /bits/ 64 <1104000000>; + opp-microvolt = <787500>; + clock-latency-ns = <200000>; + }; + + opp-1416000000 { + opp-hz = /bits/ 64 <1416000000>; + opp-microvolt = <862500>; + clock-latency-ns = <200000>; + }; + + opp-1488000000 { + opp-hz = /bits/ 64 <1488000000>; + opp-microvolt = <925000>; + clock-latency-ns = <200000>; + }; + + opp-1800000000 { + opp-hz = /bits/ 64 <1800000000>; + opp-microvolt = <987500>; + clock-latency-ns = <200000>; + }; + + opp-2208000000 { + opp-hz = /bits/ 64 <2208000000>; + opp-microvolt = <1062500>; + clock-latency-ns = <200000>; + }; + }; + firmware { scm { compatible = "qcom,scm-ipq9574", "qcom,scm";