From patchwork Fri Feb 17 13:41:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Devi Priya X-Patchwork-Id: 13144708 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4BB35C6379F for ; Fri, 17 Feb 2023 13:42:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=G55uJNdd10H54BpSHwE+tYEixd7XjYMlcjvHAgaUUO8=; b=TEss+wQScmC8aT HaoAY3VYMffkNCZycL0o68cDHUjl/S9Khd/mhIkStUQzvxWTWCXQO80/vkNfYt37tNz5JDed2Joxo Ltbxn3i62Qc+J8fixKw9hOaOEo1pulCgDr3RmUYhokPKpV3YqcnlLozYW0MMY9/Icw4CNNI+MXtwu 6znCNdrl1tOJnZCfVIL55oNy0i5IT1TptjjOlgMabUNT/H6QxLz4lw6gktq2FUMBSpcC2n1rsXtGz EEOb2xCXPkM+X6EIHwq62mjZY/j8b+HXLELvOxUYxzyZ8PnX5BShmeTXuXcUuEJdWz7LgFDWAZSXd GjGRdNDkzkog6DHve6hg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pT0zv-00EMh6-5Y; Fri, 17 Feb 2023 13:41:59 +0000 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pT0zr-00EMfs-TN for linux-arm-kernel@lists.infradead.org; Fri, 17 Feb 2023 13:41:57 +0000 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 31H7JQRL010284; Fri, 17 Feb 2023 13:41:40 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=YR8uzAgGu23TnVSKLkRlcqL5lQHfoXTBdhcjkS8fgao=; b=TXG7NKk5WbJfTEy4a211dEEJQRZJuvEQXEiLnFzGjplwlNkInqVbGdcSYIkNfBTBc+Uh 7TDrE7J0H9UagXXTWRKD67aCX5yiJuWRd68cLXWOVQLYigX0nLDfXIfJrnxx91XJEI0O dpyFlb1/OccpbyQLHLOdz46vTRsuUgZbzgAmUYUdl/Kml3iGt1LDSMJZPgHPq/huN0ZW 1eK77cCrLszf08npeF9zMkhzzeOcl4a8srXy5d+kg43KXBXSdjxC+thYEb9By1jaqyTG ygYCQsPdnE8IhdH4Lo+uG8iVvstp7ew633mbYdy9X86yWFrg62RPZp1DWd6Ls5oX7vN3 /w== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3nt53brttu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 17 Feb 2023 13:41:40 +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 31HDfdCc011409 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 17 Feb 2023 13:41:39 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 05:41:30 -0800 From: Devi Priya To: , , , , , , , , , , , , , , , , , , , , CC: , , , , , Subject: [PATCH V2 1/5] dt-bindings: clock: qcom,a53pll: add IPQ9574 compatible Date: Fri, 17 Feb 2023 19:11:03 +0530 Message-ID: <20230217134107.13946-2-quic_devipriy@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230217134107.13946-1-quic_devipriy@quicinc.com> References: <20230217134107.13946-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: U6ResctxxMrA8ZjaIH5wAwEQvF9tdV8A X-Proofpoint-GUID: U6ResctxxMrA8ZjaIH5wAwEQvF9tdV8A 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=991 spamscore=0 clxscore=1015 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2302170123 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230217_054156_107131_78ACD73A X-CRM114-Status: GOOD ( 14.10 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org IPQ9574 uses A73 PLL of type Huayra. Add the IPQ9574 A73 compatible to A53 bindings as the PLL properties match with that of A53 Signed-off-by: Devi Priya Acked-by: Krzysztof Kozlowski --- Changes in V2: - Dropped the qcom,a73pll.yaml and added the ipq9574 compatible to qcom,a53pll.yaml as suggested by konrad Documentation/devicetree/bindings/clock/qcom,a53pll.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/clock/qcom,a53pll.yaml b/Documentation/devicetree/bindings/clock/qcom,a53pll.yaml index 3b6169f30154..476e81ad1a0c 100644 --- a/Documentation/devicetree/bindings/clock/qcom,a53pll.yaml +++ b/Documentation/devicetree/bindings/clock/qcom,a53pll.yaml @@ -19,6 +19,7 @@ properties: - qcom,ipq5332-a53pll - qcom,ipq6018-a53pll - qcom,ipq8074-a53pll + - qcom,ipq9574-a73pll - qcom,msm8916-a53pll - qcom,msm8939-a53pll From patchwork Fri Feb 17 13:41:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Devi Priya X-Patchwork-Id: 13144710 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 56DD4C05027 for ; Fri, 17 Feb 2023 13:43:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ELxWg4R8GuHicpuB7xTbOOBNqE7PGqbFFq7D22i6Luc=; b=lFbRQTnjnPMfN/ EZcik9eiA3LouCZWwigG0+8I/w8100YhnFG4U/rm5plIgsGFFC7EsGNe7x8YrC+wOWQhTICjQb5e0 tyO166PtnMYZPKvskZ6ttqqhM78AszqvRw9D9BbSU044CMN1GW+lW4/KJXuYIrxx5bpplNl8JoTdM XwFkkzDC5eIS+Il7IZQLpLUtceYShQQRTHA74LS559Zqcv0Oa12CHUyPy7OLAg0p6VDP4a1dJQviV T3CZJDBcs4x910o+jbU7wYX3vsRWWgeKDG2OWkgdHE+HigQSNZ+NGZlS5b5D0ceymTrK6egbkI57n 9gbd/Llepxr2mo4l9zmQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pT10I-00EMoe-C4; Fri, 17 Feb 2023 13:42:22 +0000 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pT100-00EMiO-Hh for linux-arm-kernel@lists.infradead.org; Fri, 17 Feb 2023 13:42:06 +0000 Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 31HA8EHf030270; Fri, 17 Feb 2023 13:41:48 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=q+8H82uyrY86i2RqYMIqpxR6AA+Zq0xVccgaZNmhqeA=; b=FqhB/jNo8mLH4XsFe+ACvbEVvjpRVz0vwlnXGRKGbOMdO5PnGAb/qVxHKpAfJf9H+5bD Jf5iEze8b/TDDbysOH/GmdbW3Fj6Qd3ItAKlqRHGDs2NP/8j/HH7Uia3D0vFf4kUlPEn oC+tWsGkvYtTmRh5oWksbJDw+qlztuR/Q1E2ZSFW2+3QftgTup2fDqhoeO+YDshWwiFu DliVU6N54byfJXm9+fnGnO7VDT+b1ucR22DnnhBFoHjbdNYMGsimxwEMqFIgTUrmB4pO jYt6kZc8UvAE2NQPCcMI52iL0Q6Xt4al5RB96gZJnSHkzHXHde3MMNdYEgYEZ61pU7LF /Q== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3nt10u1e6w-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 17 Feb 2023 13:41:48 +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 31HDflZ7021070 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 17 Feb 2023 13:41:47 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 05:41:39 -0800 From: Devi Priya To: , , , , , , , , , , , , , , , , , , , , CC: , , , , , Subject: [PATCH V2 2/5] clk: qcom: apss-ipq-pll: Enable APSS clock driver in IPQ9574 Date: Fri, 17 Feb 2023 19:11:04 +0530 Message-ID: <20230217134107.13946-3-quic_devipriy@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230217134107.13946-1-quic_devipriy@quicinc.com> References: <20230217134107.13946-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: rWPauRwu6_97kd6DA4YJjr9GJb16q38H X-Proofpoint-GUID: rWPauRwu6_97kd6DA4YJjr9GJb16q38H 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 lowpriorityscore=0 bulkscore=0 malwarescore=0 mlxscore=0 impostorscore=0 adultscore=0 mlxlogscore=999 phishscore=0 suspectscore=0 clxscore=1015 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2302170123 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230217_054204_624477_0533069F X-CRM114-Status: GOOD ( 18.38 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add the compatible and configuration values for A73 Huayra PLL found on IPQ9574 Co-developed-by: Praveenkumar I Signed-off-by: Praveenkumar I Signed-off-by: Devi Priya --- Changes in V2: - Rebased the changes on the below series which refactors the driver to accommodate Huayra & Stromer Plus PLLs https://lore.kernel.org/linux-arm-msm/20230217083308.12017-2-quic_kathirav@quicinc.com/ - Changed the hex value in ipq9574_pll_config to lowercase - Dropped the mailbox driver changes as ipq9574 mailbox is compatible with ipq6018 drivers/clk/qcom/apss-ipq-pll.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/drivers/clk/qcom/apss-ipq-pll.c b/drivers/clk/qcom/apss-ipq-pll.c index cf4f0d340cbf..ce28d882ee78 100644 --- a/drivers/clk/qcom/apss-ipq-pll.c +++ b/drivers/clk/qcom/apss-ipq-pll.c @@ -111,6 +111,18 @@ static const struct alpha_pll_config ipq8074_pll_config = { .test_ctl_hi_val = 0x4000, }; +static const struct alpha_pll_config ipq9574_pll_config = { + .l = 0x3b, + .config_ctl_val = 0x200d4828, + .config_ctl_hi_val = 0x6, + .early_output_mask = BIT(3), + .aux2_output_mask = BIT(2), + .aux_output_mask = BIT(1), + .main_output_mask = BIT(0), + .test_ctl_val = 0x0, + .test_ctl_hi_val = 0x4000, +}; + struct apss_pll_data { int pll_type; struct clk_alpha_pll *pll; @@ -135,6 +147,12 @@ static struct apss_pll_data ipq6018_pll_data = { .pll_config = &ipq6018_pll_config, }; +static struct apss_pll_data ipq9574_pll_data = { + .pll_type = CLK_ALPHA_PLL_TYPE_HUAYRA, + .pll = &ipq_pll_huayra, + .pll_config = &ipq9574_pll_config, +}; + static const struct regmap_config ipq_pll_regmap_config = { .reg_bits = 32, .reg_stride = 4, @@ -180,6 +198,7 @@ static const struct of_device_id apss_ipq_pll_match_table[] = { { .compatible = "qcom,ipq5332-a53pll", .data = &ipq5332_pll_data }, { .compatible = "qcom,ipq6018-a53pll", .data = &ipq6018_pll_data }, { .compatible = "qcom,ipq8074-a53pll", .data = &ipq8074_pll_data }, + { .compatible = "qcom,ipq9574-a73pll", .data = &ipq9574_pll_data }, { } }; MODULE_DEVICE_TABLE(of, apss_ipq_pll_match_table); From patchwork Fri Feb 17 13:41:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Devi Priya X-Patchwork-Id: 13144711 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5B2DEC05027 for ; Fri, 17 Feb 2023 13:43:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=+Kpd5PxFEcU06cx/N4MucsBJzLMn8kZks5YUdwMsKbY=; b=Ji4/SCszlYxvlg 7Q92jNCaSffB4148sWcrCMa9f5Dw4p88FiX6vI08nw70Gurg+o+lxj4Cvmd8aXlrssG81Mw0DkKiT oESylwlTP8YAwV0Dfc3Py2O/hrmDFof3mEJJHBUxg5bjRW9BVXHVQjxCKlEKb8NU7VZwN/08wJCCn 4+GJI6fiLYQuAewWT5VNWg0k1Kb5rOJt546jXKqm4UTzlLfJKZ5829f20yhK8s9UfeEkpFgwg/BDu Zlg7+Vjgq1OlfJrFXAP2NCO45Di8mGowb3OryE99h1x81neg7nfpqfj+1NUpIpow54gIJChmfjC2E 2ajq0jfM79HGo3c6WInw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pT10U-00EMtA-4d; Fri, 17 Feb 2023 13:42:34 +0000 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pT104-00EMjV-Rj for linux-arm-kernel@lists.infradead.org; Fri, 17 Feb 2023 13:42:10 +0000 Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 31H6nEJs016048; Fri, 17 Feb 2023 13:41:57 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=tlNbYg2iBO8PmGsjUzTu8yEmnBRVwSX/CY9Q39fS38M=; b=kY7RZ9L8OlR9JAGLnjo8rL+IcA+AYRxAS2Qoe/ncFD5xGSjguAndRxy41CZaRZtVQ3Ll KAEqQx+DJbq7TPDMHWwSPMl+qI/GPPKwgmxdgNcTBkAz4+L6301qCTrT0fJ3QJp/j4FD ZmEmclNPCVAaPm0H2Fp7m+Rg7O+b0wMLbsPSviuU/9gbjW/WVS0MjUKV7l3cfPts8wKc ed6mWtEhUiZS691vNz/cl1NKbh4jgnn8hZM2EkWxplTdxPnUjmoUJHSv2YzkMrF3jDoJ VE6kkJE7/4M7ppbdgP8xAhwGl7v7WxtnRnDiOXRpzs2Kzz9k7p3lxUgadjjIZMcJboi7 TQ== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3nsjyw3p7j-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 17 Feb 2023 13:41:57 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 31HDft81000667 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 17 Feb 2023 13:41:56 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 05:41:47 -0800 From: Devi Priya To: , , , , , , , , , , , , , , , , , , , , CC: , , , , , Subject: [PATCH V2 3/5] dt-bindings: mailbox: qcom: add compatible for IPQ9574 SoC Date: Fri, 17 Feb 2023 19:11:05 +0530 Message-ID: <20230217134107.13946-4-quic_devipriy@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230217134107.13946-1-quic_devipriy@quicinc.com> References: <20230217134107.13946-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-GUID: hKmwUBXPdUmxvl7HZVlWzxqhBll0tlWu X-Proofpoint-ORIG-GUID: hKmwUBXPdUmxvl7HZVlWzxqhBll0tlWu 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 adultscore=0 phishscore=0 spamscore=0 clxscore=1015 mlxscore=0 bulkscore=0 malwarescore=0 impostorscore=0 mlxlogscore=904 suspectscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2302170123 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230217_054209_048302_5F0F6442 X-CRM114-Status: GOOD ( 15.53 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add the mailbox compatible for IPQ9574 SoC Signed-off-by: Devi Priya Acked-by: Krzysztof Kozlowski --- Changes in V2: - Rebased the changes on the below patch set which adds fallback support to ipq6018 compatible to avoid bloating the driver https://lore.kernel.org/linux-arm-msm/20230217083308.12017-5-quic_kathirav@quicinc.com/ - Did not pick up the R-b tag as the changes were modified to support the fallback mechanism .../devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml b/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml index 71195c0cadf9..dfb6a3453267 100644 --- a/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml +++ b/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml @@ -19,6 +19,7 @@ properties: - items: - enum: - qcom,ipq5332-apcs-apps-global + - qcom,ipq9574-apcs-apps-global - const: qcom,ipq6018-apcs-apps-global - items: - enum: From patchwork Fri Feb 17 13:41:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Devi Priya X-Patchwork-Id: 13144712 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E28D2C6379F for ; Fri, 17 Feb 2023 13:43:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=wDu0y6h3ZqlnLucWn2OqLM2BN0iIQyFcsF7VpE6bmF8=; b=BtpLhxKvo20K6Z XHaNXp6qkK0u5MyIGP0CEoSHvwZXLxdbXHcDsenEVUCj7a0Yjw1bwC6+Jl2qxNKwRJdRqXSPJcSOJ fNR76JwREzRYHCYXA4Ac5FRsSOxYWN8OZYsfeLgyy6AY4YxPDKUeQDU3KpZa9XKsh+ZoD1WViU/u7 Z5PwPhcVPi90lhb+lYuSRWBidJbrQjROX2YaLoEK71HWSUx1Dp/1IORoNnyVhkoRMcrM6JR14ruoo iTnga/gDcr6p0+ErE/c3r+3cjN2pNGH8D4zgWE3LOk6vWdRL4kZ5Foq+2f7xaNhoDRXaC6FYE6wRt pwzpirs3WId6vAdWkqSw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pT10g-00EMyI-Hu; Fri, 17 Feb 2023 13:42:47 +0000 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pT10C-00EMm3-Il for linux-arm-kernel@lists.infradead.org; Fri, 17 Feb 2023 13:42:24 +0000 Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 31HD4037023195; Fri, 17 Feb 2023 13:42:05 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=3GV9c988KNmafVXkQ6VtQvOb09UyQXkHpLlr8irXf4c=; b=PaB9GFkWvfW7JBVEEAu7+V4BUEtzDWpFt2vbBE8he5hT2YQGPXgz4soxqgo3Xstl5im9 CcIH3sgO5CqcCW+rqwYSDg9+jup5QTLTYwVUslyhSBL/1t2tStLO64qN4eq+XOvReCm+ VAUSDcCU2sekyWfQGqbGweXUvJEOY9k4NQoRAk4kLT75wz3Ol7xsKFepc86tV9kW9Jlu ezs2tKdTggeB/1iaHJif298U1+VUlLkCv9ADcoWyvNQX62c5NYoOa2R9fbsPSxSJSO6+ 0KV5mZVlfMqp+PX76BjslFdjzSVs1gf0cvk9U60PVGQOMVv4mslXGbGLLRMtOPknVJsk tg== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3nsxe7suj0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 17 Feb 2023 13:42:05 +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 31HDg4xR012434 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 17 Feb 2023 13:42:04 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 05:41:56 -0800 From: Devi Priya To: , , , , , , , , , , , , , , , , , , , , CC: , , , , , Subject: [PATCH V2 4/5] arm64: dts: qcom: ipq9574: Add support for APSS clock controller Date: Fri, 17 Feb 2023 19:11:06 +0530 Message-ID: <20230217134107.13946-5-quic_devipriy@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230217134107.13946-1-quic_devipriy@quicinc.com> References: <20230217134107.13946-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-GUID: QfWYR3H5aIeRe4AOUxCOj8JaYzMqmVzr X-Proofpoint-ORIG-GUID: QfWYR3H5aIeRe4AOUxCOj8JaYzMqmVzr 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 phishscore=0 adultscore=0 spamscore=0 suspectscore=0 malwarescore=0 mlxlogscore=999 impostorscore=0 mlxscore=0 priorityscore=1501 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2302170123 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230217_054216_798481_08434C62 X-CRM114-Status: GOOD ( 15.20 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add the APCS & A73 PLL nodes to support CPU frequency scaling Co-developed-by: Praveenkumar I Signed-off-by: Praveenkumar I Signed-off-by: Devi Priya --- Changes in V2: - No changes arch/arm64/boot/dts/qcom/ipq9574.dtsi | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/ipq9574.dtsi b/arch/arm64/boot/dts/qcom/ipq9574.dtsi index 70d920400265..d20f3c7383f5 100644 --- a/arch/arm64/boot/dts/qcom/ipq9574.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq9574.dtsi @@ -405,6 +405,24 @@ }; }; + apcs_glb: mailbox@b111000 { + compatible = "qcom,ipq9574-apcs-apps-global", + "qcom,ipq6018-apcs-apps-global"; + reg = <0x0b111000 0x1000>; + #clock-cells = <1>; + clocks = <&a73pll>, <&xo_board_clk>; + clock-names = "pll", "xo"; + #mbox-cells = <1>; + }; + + a73pll: clock@b116000 { + compatible = "qcom,ipq9574-a73pll"; + reg = <0x0b116000 0x40>; + #clock-cells = <0>; + clocks = <&xo_board_clk>; + clock-names = "xo"; + }; + timer@b120000 { compatible = "arm,armv7-timer-mem"; reg = <0x0b120000 0x1000>; From patchwork Fri Feb 17 13:41:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Devi Priya X-Patchwork-Id: 13144713 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4A35EC6379F for ; Fri, 17 Feb 2023 13:43:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=2+RooAPnWs5Fwto7BqsE8e2Aj0LewyADLgtjLuRZds8=; b=jpwc0xJmCAkeXN XT50qehuZ+9pamske4BSLLGWcSLiKJqY37nDI9sd8n4B5C7pukeqwmuJtCy/Eifiayk0RHrYnQ0zH g9LVNc3c0ZWMLj5rsuu90hj/n1SwHPr/uo9cCO5kZOL+r1vmTegJ4A9Sp9dG4BYFGK8TZ+seY+z9e MaQE0t4qgHdZw2dBaYtSzo/SdmDW70APdqqbbqsYtUeYRgHsdD1VenWnkJFJJobEsi8QSRk7OIqdD WXbo2R4mVdPb5kI+dB68ZlInG/bTkBOf9fA3bw4FJubOtPW715Tgxuorc/+2vTODrg505QWj0+PxA lagkHJMQ8/EgNYXo5dOQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pT10u-00EN4z-7F; Fri, 17 Feb 2023 13:43:00 +0000 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pT10K-00EMpn-K9 for linux-arm-kernel@lists.infradead.org; Fri, 17 Feb 2023 13:42:25 +0000 Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 31H6p6Tp020792; Fri, 17 Feb 2023 13:42:14 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=cULItb46ULJKNwBUpggs73TuMg6y7kRi6xedZUrC7Hg=; b=TkfAimLu1gljcRymMmiHTiNT/IHuqooj3SaNGvcVoL9Ims+xBGNrHY/ljQ9/6YCwjMZ1 I2oHrLy3vJ3YrKgnBB4FpDKmIOmktaSCqzh1N8IGagWP+sUI62whGbJz7DYHPSNCIAGk wGQOI0ApYgkgYhOmWYMH7iHuj/5TZZg3hlVHH+z73xw2jxZq98nsE6D52l/yK3zDbzzC i3KOze+PN5UeMaysuYjORJzZwuUXDg2qmtQKFe7M+DQrYteGYuMzDhnUIr22mXUuwrQ2 l9WlFfH8+A56V2dPIsC/8jCCySeaIu12yhe4jEBbH5itexjeWjdfSTf5iVOCuiqQI4Ae OA== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3nsjyw3p8c-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 17 Feb 2023 13:42:13 +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 31HDgCSw008376 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 17 Feb 2023 13:42: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 05:42:04 -0800 From: Devi Priya To: , , , , , , , , , , , , , , , , , , , , CC: , , , , , Subject: [PATCH V2 5/5] arm64: defconfig: Enable ipq6018 apss clock and PLL controller Date: Fri, 17 Feb 2023 19:11:07 +0530 Message-ID: <20230217134107.13946-6-quic_devipriy@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230217134107.13946-1-quic_devipriy@quicinc.com> References: <20230217134107.13946-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-GUID: nHYiSS898w8_osU_u6501od49xUMJoOS X-Proofpoint-ORIG-GUID: nHYiSS898w8_osU_u6501od49xUMJoOS 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 adultscore=0 phishscore=0 spamscore=0 clxscore=1015 mlxscore=0 bulkscore=0 malwarescore=0 impostorscore=0 mlxlogscore=865 suspectscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2302170123 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230217_054224_821483_F548CCFD X-CRM114-Status: GOOD ( 14.48 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The PLL and IPQ6018 APSS clock controller are used on several IPQ platforms to clock the CPU. Hence it should be enabled and built-in. Signed-off-by: Devi Priya --- Changes in V2: - Added the comment as why the config is being enabled arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index c2dfa833af3f..e5a797e3a4bf 100644 --- a/arch/arm64/configs/defconfig +++ b/arch/arm64/configs/defconfig @@ -1122,6 +1122,7 @@ CONFIG_QCOM_CLK_APCS_MSM8916=y CONFIG_QCOM_CLK_APCC_MSM8996=y CONFIG_QCOM_CLK_SMD_RPM=y CONFIG_QCOM_CLK_RPMH=y +CONFIG_IPQ_APSS_6018=y CONFIG_IPQ_GCC_6018=y CONFIG_IPQ_GCC_8074=y CONFIG_IPQ_GCC_9574=y