From patchwork Fri Jan 13 14:36:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Devi Priya X-Patchwork-Id: 43360 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp313244wrt; Fri, 13 Jan 2023 06:57:39 -0800 (PST) X-Google-Smtp-Source: AMrXdXu26odSkEmWhOBU5/PZ7DtOJ8J3j73F7itWSwjIIK6QVHbLgvIJUBOa0SiRB5sxu2rlZYMl X-Received: by 2002:a05:6a20:4909:b0:b5:e763:54f3 with SMTP id ft9-20020a056a20490900b000b5e76354f3mr13170025pzb.35.1673621859309; Fri, 13 Jan 2023 06:57:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673621859; cv=none; d=google.com; s=arc-20160816; b=kDPUIww8SWqh76v4MDn4wflMqpiY7X/Fa5S1cyycTMHOAt8FhJiPOlUM66yoBKBo9/ J7O5Q0R3ABXKGlGZG8LgyYe1D8mOFcR0rgbbSaDQ8b605rfc7yw/i0GAuZIvtHpI99er uHpnpy30bkS3P9wpBYOT672AGukNR+DK0KNTPsMvLXvcF/Sq8aaBzQ47dGiszL6/J4lu ibhY/RBXNWKhjhJWaP/rokUQAv+D/xTdEcv0+iZEzYeaegdsvOlze+lD1/Wjn8Fdb3X4 6QB5DUWBAfw1DKtlsfZOgkpmxviYbNDUi+RD9X2ysmAg2f/xHSY5OgZVb3P5AeWLRAjA 4jcw== 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=emK3ivnMVpTbuaRO6S0ZBxspc1eopUyUDaOExihAF2U=; b=Dm5l9eQdmvHdp/L0359natk2+0VV0yyOosCLqYproTzKroxRVlFXMUJs464iYFsDGG EbGcqQah1iANuXK7EP7hTFecVGlrgCBkYazeSI03jd/GNwdm20lSysBMHN8ffpX3XqjS /ZOwn4orl9+8+bAaVzfbbIybKoK4HAyVah7V8peFuzDDvF3gDAVCXtj+ftr9KzXlbVb2 PdjRmFkRHHH7XgDP92zqbtKKA0zrLda7ouNa3ZDdnEQOww9uDuLMLNugi468jW0GE83K fYPQFbbcz4US+lpJNKiMchNHfKd4EXM0rJDBgeDN409i0GDUgOIMaIVrYUUPaYBtlcum Mj8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=pw2FDgjT; 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 a21-20020a63e855000000b004791644f520si20831392pgk.437.2023.01.13.06.57.26; Fri, 13 Jan 2023 06:57:39 -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=pw2FDgjT; 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 S229488AbjAMOvr (ORCPT + 99 others); Fri, 13 Jan 2023 09:51:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229604AbjAMOvR (ORCPT ); Fri, 13 Jan 2023 09:51:17 -0500 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DABF6A41D5; Fri, 13 Jan 2023 06:37:47 -0800 (PST) Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 30DCuEEq011963; Fri, 13 Jan 2023 14:37:21 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=emK3ivnMVpTbuaRO6S0ZBxspc1eopUyUDaOExihAF2U=; b=pw2FDgjT+0g9LHVZvC/pje/+uNoLnWdLuHiyuKRrAGRcB2BIisAzJgw54Vtl0IC8+nhP KPumiTM6hlYCWhc67XMJ5Ih+xUtA96XNHMSa+cjnCVcsk4RBKAlxf1P2cNHE0SINsh7R gj8SjRh8sGpZ2hG4I3lz4G9CYgNxNo5SsqS+wwBaMXzQH0WvLRoGLbgWhjtFC+9VfWk9 iFsBSOJI/np27eqeBPzz6yZwWVkERylBThr+ZIVmy9a1VHlZjvesRaaATiPoHGVN4sSV p2r9vVnY5+JvSGDpJ3PQIjzS9t3u5ia9142wsPMhdkrglHMJ/6RS9+EzGPHF+02FqsmU zQ== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3n2fwpuc1d-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 13 Jan 2023 14:37:21 +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 30DEbJSf030182 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 13 Jan 2023 14:37:19 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.36; Fri, 13 Jan 2023 06:37:11 -0800 From: devi priya To: , , , , , , , , , , , , , , , , , , , , CC: , , , , , , Subject: [PATCH 1/6] dt-bindings: clock: Add YAML schemas for QCOM A73 PLL Date: Fri, 13 Jan 2023 20:06:42 +0530 Message-ID: <20230113143647.14961-2-quic_devipriy@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230113143647.14961-1-quic_devipriy@quicinc.com> References: <20230113143647.14961-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: t14IYcrqzmyTHYHYFBpLx_d6RJSkHUcZ X-Proofpoint-ORIG-GUID: t14IYcrqzmyTHYHYFBpLx_d6RJSkHUcZ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.923,Hydra:6.0.562,FMLib:17.11.122.1 definitions=2023-01-13_06,2023-01-13_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 lowpriorityscore=0 clxscore=1015 spamscore=0 impostorscore=0 malwarescore=0 mlxlogscore=999 phishscore=0 bulkscore=0 suspectscore=0 adultscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2301130096 X-Spam-Status: No, score=1.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_SBL_CSS,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: * 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?1754919714476588655?= X-GMAIL-MSGID: =?utf-8?q?1754919714476588655?= Add schema for primary CPU PLL found on few Qualcomm platforms. Co-developed-by: Praveenkumar I Signed-off-by: Praveenkumar I Signed-off-by: devi priya --- .../bindings/clock/qcom,a73pll.yaml | 52 +++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/qcom,a73pll.yaml diff --git a/Documentation/devicetree/bindings/clock/qcom,a73pll.yaml b/Documentation/devicetree/bindings/clock/qcom,a73pll.yaml new file mode 100644 index 000000000000..a0e81094db8d --- /dev/null +++ b/Documentation/devicetree/bindings/clock/qcom,a73pll.yaml @@ -0,0 +1,52 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/qcom,a73pll.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm A73 PLL clock + +maintainers: + - Bjorn Andersson + +description: + The A73 PLL on few Qualcomm platforms is the main CPU PLL used for + frequencies above 1GHz. + +properties: + compatible: + enum: + - qcom,ipq9574-a73pll + + reg: + maxItems: 1 + + '#clock-cells': + const: 0 + + clocks: + items: + - description: board XO clock + + clock-names: + items: + - const: xo + + operating-points-v2: true + +required: + - compatible + - reg + - '#clock-cells' + +additionalProperties: false + +examples: + - | + a73pll: clock@b116000 { + compatible = "qcom,ipq9574-a73pll"; + reg = <0x0b116000 0x40>; + #clock-cells = <0>; + clocks = <&xo_board_clk>; + clock-names = "xo"; + }; From patchwork Fri Jan 13 14:36:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Devi Priya X-Patchwork-Id: 43361 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp313272wrt; Fri, 13 Jan 2023 06:57:42 -0800 (PST) X-Google-Smtp-Source: AMrXdXtEAfJ1JR9HZYuagICgDea2uxk9tb5xB2ysBjM9f5iuxeuRQHq7McKjB+2wQbnTLbLgV3nc X-Received: by 2002:a17:902:e948:b0:191:309a:d752 with SMTP id b8-20020a170902e94800b00191309ad752mr87602552pll.47.1673621862504; Fri, 13 Jan 2023 06:57:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673621862; cv=none; d=google.com; s=arc-20160816; b=iwMQTh9dbzscSFR9tOnwTVFon1CbVY21MsLuZfoONduJlNROvmWFlQLOAY6pXBDUUj q7aBUtzBUI4hzoXY94TkxQLH9vR4o0xQ2ldADu+aigz97dVbAfurNep1mKD97FGUbd8G oxcGhwMxVoIAgsMx4UFL2wvuob90yv1PQUcKkWmY+5yOrXMFpgcBy9YAAAfCyK0kqwa+ bPPaC0EM7bzYZLwILijL0G6F0lEa2ByuViOsdilm8u+z2wjm18hN7L9XICUfluxUZO7D Eji0UdWcL9J/4nUE2d++qnXdfkYTSaDlsciHEX6O0p01hDqZNZFMPCMQw5umV6ZUzsMx r0RA== 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=FXPnunrhdcpD2U9KcjoaHr8Be6vGt3y43oqp6fmj+w4=; b=TP2uFuAOU38rSbkg/vrCTc4xmRcODOSM7TxkQm63s1l4SM8Rw0cgwaOvlnk/m4w2OX Z6y2f7+QmsQPkqx2Bk/8Nx80z2tj0n81Dh8TebtstyJPDxcL0RRx6cEBM6Ue4pWkLwEF N2n8z6vSk4QCT45idS7yT9hpdqImBfjjAtMsq5qxbcSwJ/6KX8Kba5rIv0DUFdM1uy+G hr1ndklDu9WWTDkThDRmDIqkTr+mGB+u65ff77P48yHc6aY+/1qi/3bBh7TUDtAjjCgz Esp++8JA2F5jg+EOSilHOPcQ2JPaEG+gWAg35pQnQUzfyvDnp72EvaHXRVyIBCXEYASs tYLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=T+QwPYi3; 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 jd12-20020a170903260c00b0019463a75b96si4155393plb.295.2023.01.13.06.57.30; Fri, 13 Jan 2023 06:57:42 -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=T+QwPYi3; 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 S229816AbjAMOvx (ORCPT + 99 others); Fri, 13 Jan 2023 09:51:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46266 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229623AbjAMOv0 (ORCPT ); Fri, 13 Jan 2023 09:51:26 -0500 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 907B1A41F3; Fri, 13 Jan 2023 06:37:51 -0800 (PST) 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 30DD1JnT008266; Fri, 13 Jan 2023 14:37:28 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=FXPnunrhdcpD2U9KcjoaHr8Be6vGt3y43oqp6fmj+w4=; b=T+QwPYi3wC2u6dJyvIxNbfJb9cAIu/6iCmf5Lp+A7nSZXM2/hOV3Dl6Du7jh2+VzP94t pH32MveUa8OOe1r2gj/ogxAuJPUysRAdJqSdMapKE/kUh52drdwaYJ4RPP+ThX1Dfka9 u0wpmnmQNLXA19xyTRONysTSJucrAqRlJ3y2HI22qf21PY9NiU3wVcMhloOPBF7nZ/NC At7q3qYyZg258cGzSBNk46yg5G7bHbeIr5YUUy41BpmMa42ZYrslgzYuVXj+SJt+YuBg 2YtmRaRWF3/D3Md1OE8C8Ey3OoBhQv9RrXu0Nxlb+wtwrp+qqHdtw83TBDGzN0LAcD5K 9g== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3n351f8w7d-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 13 Jan 2023 14:37:27 +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 30DEbQ3C030456 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 13 Jan 2023 14:37:27 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.36; Fri, 13 Jan 2023 06:37:19 -0800 From: devi priya To: , , , , , , , , , , , , , , , , , , , , CC: , , , , , , Subject: [PATCH 2/6] clk: qcom: ipq9574: Enable APSS clock driver Date: Fri, 13 Jan 2023 20:06:43 +0530 Message-ID: <20230113143647.14961-3-quic_devipriy@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230113143647.14961-1-quic_devipriy@quicinc.com> References: <20230113143647.14961-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: Grb9o1kJCR7lhmJ7Ynu42Wv5wKkKsAN_ X-Proofpoint-ORIG-GUID: Grb9o1kJCR7lhmJ7Ynu42Wv5wKkKsAN_ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.923,Hydra:6.0.562,FMLib:17.11.122.1 definitions=2023-01-13_06,2023-01-13_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 adultscore=0 clxscore=1015 impostorscore=0 mlxlogscore=999 spamscore=0 lowpriorityscore=0 bulkscore=0 priorityscore=1501 malwarescore=0 mlxscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2301130096 X-Spam-Status: No, score=0.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no 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?1754919718272829440?= X-GMAIL-MSGID: =?utf-8?q?1754919718272829440?= Enable APSS clock driver for IPQ9574 based devices Co-developed-by: Praveenkumar I Signed-off-by: Praveenkumar I Signed-off-by: devi priya --- drivers/clk/qcom/apss-ipq-pll.c | 13 +++++++++++++ drivers/mailbox/qcom-apcs-ipc-mailbox.c | 5 +++++ 2 files changed, 18 insertions(+) diff --git a/drivers/clk/qcom/apss-ipq-pll.c b/drivers/clk/qcom/apss-ipq-pll.c index a5aea27eb867..dd0c01bf5a98 100644 --- a/drivers/clk/qcom/apss-ipq-pll.c +++ b/drivers/clk/qcom/apss-ipq-pll.c @@ -61,6 +61,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, +}; + static const struct regmap_config ipq_pll_regmap_config = { .reg_bits = 32, .reg_stride = 4, @@ -102,6 +114,7 @@ static int apss_ipq_pll_probe(struct platform_device *pdev) static const struct of_device_id apss_ipq_pll_match_table[] = { { .compatible = "qcom,ipq6018-a53pll", .data = &ipq6018_pll_config }, { .compatible = "qcom,ipq8074-a53pll", .data = &ipq8074_pll_config }, + { .compatible = "qcom,ipq9574-a73pll", .data = &ipq9574_pll_config }, { } }; MODULE_DEVICE_TABLE(of, apss_ipq_pll_match_table); diff --git a/drivers/mailbox/qcom-apcs-ipc-mailbox.c b/drivers/mailbox/qcom-apcs-ipc-mailbox.c index 0e9f9cba8668..90e74f9d7cb3 100644 --- a/drivers/mailbox/qcom-apcs-ipc-mailbox.c +++ b/drivers/mailbox/qcom-apcs-ipc-mailbox.c @@ -33,6 +33,10 @@ static const struct qcom_apcs_ipc_data ipq6018_apcs_data = { .offset = 8, .clk_name = "qcom,apss-ipq6018-clk" }; +static const struct qcom_apcs_ipc_data ipq9574_apcs_data = { + .offset = 8, .clk_name = "qcom,apss-ipq6018-clk" +}; + static const struct qcom_apcs_ipc_data msm8916_apcs_data = { .offset = 8, .clk_name = "qcom-apcs-msm8916-clk" }; @@ -143,6 +147,7 @@ static int qcom_apcs_ipc_remove(struct platform_device *pdev) static const struct of_device_id qcom_apcs_ipc_of_match[] = { { .compatible = "qcom,ipq6018-apcs-apps-global", .data = &ipq6018_apcs_data }, { .compatible = "qcom,ipq8074-apcs-apps-global", .data = &ipq6018_apcs_data }, + { .compatible = "qcom,ipq9574-apcs-apps-global", .data = &ipq9574_apcs_data }, { .compatible = "qcom,msm8916-apcs-kpss-global", .data = &msm8916_apcs_data }, { .compatible = "qcom,msm8939-apcs-kpss-global", .data = &msm8916_apcs_data }, { .compatible = "qcom,msm8953-apcs-kpss-global", .data = &msm8994_apcs_data }, From patchwork Fri Jan 13 14:36:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Devi Priya X-Patchwork-Id: 43357 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp312911wrt; Fri, 13 Jan 2023 06:56:49 -0800 (PST) X-Google-Smtp-Source: AMrXdXsiRQ3B3hphnv279l7naINaR+jxzErj/yXChFuAJqK0awsxoZMILLDLIaW8W3nxlQxXt8uY X-Received: by 2002:a62:3883:0:b0:580:b942:e85 with SMTP id f125-20020a623883000000b00580b9420e85mr68412301pfa.16.1673621809215; Fri, 13 Jan 2023 06:56:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673621809; cv=none; d=google.com; s=arc-20160816; b=GemSmn0iVpu8qJRi6gkGnivuat91+hvfPHe72qyAtoS7+s80lu53d3FPolFGDHW6q2 pHt854scd8pgwMnMf1mpkKqO5aRUob3uYT3pHgRnTMutc11YZV1iEJzZfNdpGPFfqjC+ hxr93nH/cLVy9oQEuziwpjghfzy0T4c/liADLzYLm0M/1mHAYj2VnQZh5srwfOPewjLz SsMpd2AsoYSxinoPwZjN7xiivGaBr4esbA9o1y3pboeoAjy8CCo2EQVhXuA+RE0/cVrU edToYcuuca3gP2FYH/ASbWRPc7+V/Cp5tEZ7jHAai4JALFByTDnDQ0Js751S5GBr96Tz Pn8A== 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=SANJZXqu1UF0Oa0u9joRWeW0AIAwVecV+w1UlPaBw3w=; b=tq4aHmfMM8aSjAEVuEo9NF9yMRdE011gna7QMtypwSNQGIjMTgoDRpcPKw95k8CQxI Qr2RaZZwHTkHAjyhoZC68CEa3LO0j8rENulkW5L7mZ8iKxdxXR4KaouBPK/yihoymRYS BJe/TnNLK3pAIFwAJRa7r8YQnoRVySlSRunvKGrpVjQ9Js9R4RnThbpxhWi2vZGE51lv +T3nrQ1IMwWwFDWHq/0bSRDUix1FIiMAxLEXCoYRdu7m8x5CR/vGWiRl64PiHbsUHbse K2dtom41RlP9faEQIX5zpHZK1zrEH313e9peDhYMBvDItPg3lN/VSvDehIcFNy0mcvir zohA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=LK1Z6rPD; 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 q27-20020aa7961b000000b0058bc2e7766asi305040pfg.222.2023.01.13.06.56.37; Fri, 13 Jan 2023 06:56:49 -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=LK1Z6rPD; 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 S229723AbjAMOwM (ORCPT + 99 others); Fri, 13 Jan 2023 09:52:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46320 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229606AbjAMOvc (ORCPT ); Fri, 13 Jan 2023 09:51:32 -0500 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AA1C8A83C6; Fri, 13 Jan 2023 06:37:55 -0800 (PST) Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 30DDEExD012475; Fri, 13 Jan 2023 14:37:35 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=SANJZXqu1UF0Oa0u9joRWeW0AIAwVecV+w1UlPaBw3w=; b=LK1Z6rPDdiPwXxadjYYfbxEZ+4cN24MiZCSDQbbKd7DhjGpwu3Rx87x4lWsc0+hhytsf oFI0RQWNhG4Wucp3nx8lYvo1pTkPtVI61zlIxc2LSQDZLFx8orVM0btrqLOGn3QbycXF 5axrSSbB6hkFKr3w0hhZc8BRsdqn0XteLq81Y3YT7fIXeEZXk4mhrLEmn9XNAmADEvwA MOynjqg4lYgCNyiTTsbWlzLRVyZMaPzb/uBOh8+7UwarGMwnaysefgkke9YGPOwi2GkZ t7Hw86PUM4UhqBIoGSooUHmYOpI++JGyRms5jxKBfNtMVMe5NIZ036RIxlseZ85VrRRo TQ== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3n2k47k2mr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 13 Jan 2023 14:37:35 +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 30DEbYYb015590 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 13 Jan 2023 14:37:34 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.36; Fri, 13 Jan 2023 06:37:26 -0800 From: devi priya To: , , , , , , , , , , , , , , , , , , , , CC: , , , , , , Subject: [PATCH 3/6] arm64: defconfig: Enable ipq6018 apss clock and PLL controller Date: Fri, 13 Jan 2023 20:06:44 +0530 Message-ID: <20230113143647.14961-4-quic_devipriy@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230113143647.14961-1-quic_devipriy@quicinc.com> References: <20230113143647.14961-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: auEoPpl4w_SEk5xMc7Pf8nkJ7r2LlKBV X-Proofpoint-ORIG-GUID: auEoPpl4w_SEk5xMc7Pf8nkJ7r2LlKBV X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.923,Hydra:6.0.562,FMLib:17.11.122.1 definitions=2023-01-13_06,2023-01-13_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 clxscore=1015 mlxscore=0 bulkscore=0 adultscore=0 mlxlogscore=750 impostorscore=0 lowpriorityscore=0 spamscore=0 suspectscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2301130096 X-Spam-Status: No, score=0.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no 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?1754919662614174539?= X-GMAIL-MSGID: =?utf-8?q?1754919662614174539?= Enable the PLL controller and IPQ6018 APSS clock controller Co-developed-by: Praveenkumar I Signed-off-by: Praveenkumar I Signed-off-by: devi priya --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index e0ae0996d5ad..8de3979b10a3 100644 --- a/arch/arm64/configs/defconfig +++ b/arch/arm64/configs/defconfig @@ -1092,6 +1092,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 From patchwork Fri Jan 13 14:36:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Devi Priya X-Patchwork-Id: 43358 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp313008wrt; Fri, 13 Jan 2023 06:57:03 -0800 (PST) X-Google-Smtp-Source: AMrXdXsh3QGlP/I6lfDKQN1lTSaNllAjzTy/iuxIaeK2nb16DMa5ZEFkuul1XGAOnIzBUmASos+p X-Received: by 2002:a17:907:7650:b0:84d:1872:1256 with SMTP id kj16-20020a170907765000b0084d18721256mr25821857ejc.34.1673621823283; Fri, 13 Jan 2023 06:57:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673621823; cv=none; d=google.com; s=arc-20160816; b=Rzn05hngo+zDKHK02iZQaCGOBCLCv3Ds+oq3UjZO8s/zzAe/XqMbDno+zPSBoyPhih VFeUQt7oPEeftPodeRtb9IoMju9BylDvi35idZJ/pNnbNVPTMp9aLD1sHghcAJ5zS87z aBM0PTLjtGCp7AOu6PvcpgJFnyIU6ZGZSUFkyvS1rCg0E/CbQv9GHRkSDxNfZrtogzkN 1PZoP+m0B6VNjFyBkZ1wy5+BuWlGhv3k/tUfsNdrHJmDPJD2QzmjEmkg0I5H757Y+Ag5 HCQ42jPmNP2u81U5YPaMh6joZIAA+gu+N2O5BNeJjflIwOuNUUaw5u//fhID4gr7lTdt JvrA== 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=u+eP0k1vYylHeJHQvfuEPQmpava1VfrvgAXIIkjZcQU=; b=snVT82nEtdy+EgiPGLZ/kgUV6QbUyebaGO6gjdGf/Jlk0qESTytmv8DG8dYm1MttQU AgGo3XeWvGGZhodDjrQ3C3WU9aD5wE3gg8eFA5UtQ0QGdjup+yIZVkIgbFF9GGun/JYX Yfv0xqbc/5WA57Y8sadZRYMx+YAJXiIML0RBCDPpkPV6jhXZjALCwIEEwiE8psev+4fa F0OfjM6LnUeMXMuVu7CnWQV+fs99P9Vaxk7XbEVgu54XuoQUmMOLrDNXVxrqnZsAoRgR gr8VEqoZH7Cg1EuG2c4KB0nylfRc8ULJ+6sfbDY8eOE9f/NspizImvcS5jokg4l+k+kH lflw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=TiEMEq0b; 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 xj4-20020a170906db0400b007c1691c5296si20752802ejb.385.2023.01.13.06.56.39; Fri, 13 Jan 2023 06:57: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=TiEMEq0b; 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 S229654AbjAMOwh (ORCPT + 99 others); Fri, 13 Jan 2023 09:52:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46280 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229579AbjAMOvz (ORCPT ); Fri, 13 Jan 2023 09:51:55 -0500 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 32DA7A83EB; Fri, 13 Jan 2023 06:38:06 -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 30DBnC1H004227; Fri, 13 Jan 2023 14:37:43 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=u+eP0k1vYylHeJHQvfuEPQmpava1VfrvgAXIIkjZcQU=; b=TiEMEq0bmYVMI/wJbzMwPDacQRshFVhlPX3ghkK0rTm5V9DEdAZMTAPs0GblKnx7A4Af ABcguFigosBnxItfdc8atQTFtTZbOrhUlxMh/VvOZIkQ42CCadjZ6SWRBskx2U4si15/ mLgxlQ+5+lDZT1tPadIDbGa5nUeC/VVG4nEcHn+hqQLsf40dyPrNgwpjExl9UlhhFPbv KumNiv3KrtamhOy2lTrD82925FYEzZ49yUo4DzauGLbAyVGMCJkYcjt2DexdT3LfZ/+7 TwjUnQW15reIzNtAl1sgnp9V5j0YHJgB2fxAPvXH3nFQyIkAE3tvmVeptNcxu+PqFHIK aQ== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3n33h612ur-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 13 Jan 2023 14:37:42 +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 30DEbgBq015610 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 13 Jan 2023 14:37:42 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.36; Fri, 13 Jan 2023 06:37:34 -0800 From: devi priya To: , , , , , , , , , , , , , , , , , , , , CC: , , , , , , Subject: [PATCH 4/6] arm64: dts: qcom: ipq9574: Add support for APSS clock controller Date: Fri, 13 Jan 2023 20:06:45 +0530 Message-ID: <20230113143647.14961-5-quic_devipriy@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230113143647.14961-1-quic_devipriy@quicinc.com> References: <20230113143647.14961-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: GtybPz50zE5Uv6sXBwUCSui69HgdJ8rq X-Proofpoint-GUID: GtybPz50zE5Uv6sXBwUCSui69HgdJ8rq X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.923,Hydra:6.0.562,FMLib:17.11.122.1 definitions=2023-01-13_06,2023-01-13_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 lowpriorityscore=0 priorityscore=1501 phishscore=0 impostorscore=0 mlxscore=0 malwarescore=0 adultscore=0 bulkscore=0 spamscore=0 mlxlogscore=956 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2301130096 X-Spam-Status: No, score=0.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no 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?1754919676717696459?= X-GMAIL-MSGID: =?utf-8?q?1754919676717696459?= Enable APSS clock controller in IPQ9574 Co-developed-by: Praveenkumar I Signed-off-by: Praveenkumar I Signed-off-by: devi priya --- arch/arm64/boot/dts/qcom/ipq9574.dtsi | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/ipq9574.dtsi b/arch/arm64/boot/dts/qcom/ipq9574.dtsi index 188d18688a77..5a2244b437ed 100644 --- a/arch/arm64/boot/dts/qcom/ipq9574.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq9574.dtsi @@ -247,6 +247,23 @@ }; }; + apcs_glb: mailbox@b111000 { + compatible = "qcom,ipq9574-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 = <0xb120000 0x1000>; From patchwork Fri Jan 13 14:36:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Devi Priya X-Patchwork-Id: 43359 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp313056wrt; Fri, 13 Jan 2023 06:57:12 -0800 (PST) X-Google-Smtp-Source: AMrXdXscXy59hQmTjReW5w+ZU0OkVfw2d6CrTcNLjtUd18QcZzBjjpNJ8WSgdcFAwGjxdNvYrBeJ X-Received: by 2002:aa7:d419:0:b0:49d:57:f538 with SMTP id z25-20020aa7d419000000b0049d0057f538mr1037214edq.15.1673621832748; Fri, 13 Jan 2023 06:57:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673621832; cv=none; d=google.com; s=arc-20160816; b=FUATpdEo7VlKKyVyDAs6DJWEhUJjACnBHbsObXc+3XingwNV71MDbDR6HPjvjnWlAV XBCyRf2TmtzMs+43wwhHsbbE3w/49FuaINFlW/T3JESTcppH3UZE4VMRyFwtMncyYQ0V 4fThC5kKxYFNZngA3tH7XWseE3H6602kfT9Hsy09LVtMYmqWk2LPF3fENCdfW9kmT/XQ k32LTe6j7x8/yATyDy7gE6k+e+wb3qSVRGAM/WxG1wgrdc+FFqsvQhyj1z+v3iQSstef pKsUGwZOOmGYreKnYyfMzFAtWsRbPD/hbydKEFnsWeNep4JMMGnUJr3e1sr5V66QEfvV Utzg== 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=SEd8EyVqHx/70vZjdhFCAeNeVfCo+EEUm2HhzU4QjUQ=; b=NVLnisiItLkTU3EK9J+kZ8DAP+OnTJ5VDTzhxh6w5MOZIZENoF8VGvLyF37WRGk9Td rC1qb4qsqRZ22Mn6WoddY5y3+armSKCjQ7wRPI8vKDlvOA/EcTMPOZAME8iITXZaeS4j vAtLvYiZPWq6sXeEC4jMP+T96hNvbd+X5+7v4gr3j9yEJk0yKqeTqTwj13Gacl68dbOV 8vk+Vkce7FQ+75tPsZ7t6tT6np5B78KI4s9iNOTlWVlPo8mPLMs778t2rrHkWGTFAqBG q5Nypupxf6dUY58FEdahcdN3UnSGR03w06jNqeVWTbjtC4Y3hYh7nFruBC8BoGkMcoAF K2ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=o3xTZlll; 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 l16-20020a170906795000b00835203f1170si22588826ejo.575.2023.01.13.06.56.48; Fri, 13 Jan 2023 06:57:12 -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=o3xTZlll; 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 S229841AbjAMOxA (ORCPT + 99 others); Fri, 13 Jan 2023 09:53:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46232 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229582AbjAMOwV (ORCPT ); Fri, 13 Jan 2023 09:52:21 -0500 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CD92563F74; Fri, 13 Jan 2023 06:38:22 -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 30DC3OrM015364; Fri, 13 Jan 2023 14:37:50 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=SEd8EyVqHx/70vZjdhFCAeNeVfCo+EEUm2HhzU4QjUQ=; b=o3xTZlll+zc+IsBmPHP+h51yiyHbBnyHAfwp4FwyoiplcNnANUcNzRtwrjtWhKyaG5es Rdr5u9BknI5ZFK2dGOkr84/gIbdbRlNomcb+jxw//eIt49eHdUnDIdmiPqnCjjOM4BFV JrcdC40b2cbmu35iBt7l8Suj4RGr60LORdIfEnmpCm1ZBdghZgOb4s/798dYMUj0hG6x TxQtKrX2AX/4QeTKCbCmq4bIqhWiIg3HijELfDq3O57AYjAPu0q+mi01ulb2FzgUcAH6 +7G9Ma+CnGzDtzUseHOKFp+r/YtGL6VSAXbYswC+zHWQQ1hTRC6mGp0C33L2AaYOJKJz /g== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3n2d75404v-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 13 Jan 2023 14:37:50 +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 30DEbnlR011392 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 13 Jan 2023 14:37:49 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.36; Fri, 13 Jan 2023 06:37:42 -0800 From: devi priya To: , , , , , , , , , , , , , , , , , , , , CC: , , , , , , Subject: [PATCH 5/6] dt-bindings: mailbox: Add compatible for IPQ9574 Date: Fri, 13 Jan 2023 20:06:46 +0530 Message-ID: <20230113143647.14961-6-quic_devipriy@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230113143647.14961-1-quic_devipriy@quicinc.com> References: <20230113143647.14961-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: ONMkcqGJQAoUOW1N3a5ZO2kTIBHRVEKc X-Proofpoint-GUID: ONMkcqGJQAoUOW1N3a5ZO2kTIBHRVEKc X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.923,Hydra:6.0.562,FMLib:17.11.122.1 definitions=2023-01-13_06,2023-01-13_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 phishscore=0 adultscore=0 malwarescore=0 bulkscore=0 priorityscore=1501 lowpriorityscore=0 clxscore=1015 mlxlogscore=974 impostorscore=0 spamscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2301130096 X-Spam-Status: No, score=0.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no 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?1754919686859492770?= X-GMAIL-MSGID: =?utf-8?q?1754919686859492770?= Add the mailbox compatible string for IPQ9574 SoC Co-developed-by: Praveenkumar I Signed-off-by: Praveenkumar I Signed-off-by: devi priya Reviewed-by: Krzysztof Kozlowski --- .../devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml b/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml index 943f9472ae10..9e076758a58a 100644 --- a/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml +++ b/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml @@ -20,6 +20,7 @@ properties: - enum: - qcom,ipq6018-apcs-apps-global - qcom,ipq8074-apcs-apps-global + - qcom,ipq9574-apcs-apps-global - qcom,msm8976-apcs-kpss-global - qcom,msm8996-apcs-hmss-global - qcom,msm8998-apcs-hmss-global @@ -113,6 +114,7 @@ allOf: enum: - qcom,ipq6018-apcs-apps-global - qcom,ipq8074-apcs-apps-global + - qcom,ipq9574-apcs-apps-global then: properties: clocks: @@ -129,6 +131,7 @@ allOf: enum: - qcom,ipq6018-apcs-apps-global - qcom,ipq8074-apcs-apps-global + - qcom,ipq9574-apcs-apps-global then: properties: '#clock-cells': From patchwork Fri Jan 13 14:36:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Devi Priya X-Patchwork-Id: 43362 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp313449wrt; Fri, 13 Jan 2023 06:58:10 -0800 (PST) X-Google-Smtp-Source: AMrXdXtXZyjP4q1NpuF9QPNuWGuN32F6+S29BNUaBodTgF/RDVOPzKN0PubNr9X72QD+T/daaGDp X-Received: by 2002:a17:902:db0e:b0:194:5ff8:a3b0 with SMTP id m14-20020a170902db0e00b001945ff8a3b0mr8765638plx.7.1673621889754; Fri, 13 Jan 2023 06:58:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673621889; cv=none; d=google.com; s=arc-20160816; b=DK8Kd3sY/41iErEdDgrsDm8zwcnIGdej8B4blk4ZpL9eK44BDtsVnbaJwePY74UzMQ Cz/IyuUi2HYaL6F/oQtJvkE739DtgW+jzPHz0L/O8RWBLlO0KguYCJyQ/udw4BKlWvQm /3s/Z2c1ADvU5hhTNBa+RElNMDFGM5P+usv5F/0YGBbicru+PavL4+xbO9ThOrHA5bHQ FSfUShHfrq2mgOc6iHLvQ777CgqXD3GZ1G9LOoai2QXoIhRaSJyVBwthf0kE5wP7fqD5 O3jpa5rAJn/n+3nN+ARJeHRBYISCUZ4Y/MYgh6iUm70fEku7r4OSdC6PsnLAvIesDD2+ npoQ== 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=TIzwL21/6Eec7RTfa/nt4grL8psh5AsYyGkeDqti/xg=; b=in4RdwAxHJHeKtR/F0GbjeLQEg3OsZaetdK5LZ4ZoexsnXGMUm1P7bxsiVWBbLS9d7 c8VBTS8C/3dQhycfTToUlC0XC2VLKYjPW4CTp1Kt9235TmNa37B6WdeDwB86uN4UjVDz tuJlZ/62cbWAxLw6Awmhmyj2/kZ8TadM0oNFLPbm1+uE0diJcv7nTG8YbNscrnKFTATh xdBnYbMOezvwdtBo5VbSJ7Zrn9AS1yPSqNhwP/1GMH8gt1wbt/H/Y/jogMcHcRbjwOEe HACkoCjq0xSiY2K6rQXpUyJpFmajj6xuIdK9LPJvv8DqlsSqG+xQK/V9AvIz8jKkSOyj eKow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="fBGu/Gl2"; 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 t13-20020a170902e84d00b001944c51f9d6si8130407plg.123.2023.01.13.06.57.56; Fri, 13 Jan 2023 06:58:09 -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="fBGu/Gl2"; 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 S229607AbjAMOxM (ORCPT + 99 others); Fri, 13 Jan 2023 09:53:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46396 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229815AbjAMOwg (ORCPT ); Fri, 13 Jan 2023 09:52:36 -0500 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 859E47EC88; Fri, 13 Jan 2023 06:38:26 -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 30DDgCvE018314; Fri, 13 Jan 2023 14:37: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=TIzwL21/6Eec7RTfa/nt4grL8psh5AsYyGkeDqti/xg=; b=fBGu/Gl2vYLFq1BbDfpgwDBZ056Z1Pw9KFUie2sPX5lhCwGoOTLCAh74Bq0dNhq0Foz4 uL0CRw1bPfqR0FaHSO8X25E8AdakIAfMGR18WrOwJHSkH8UbVWXsf575ntFdpQznNGPM DPr+EPMtOy1cvMpA8ohXLitEyRgu3rHHgyDpa82CTOv6GRFiQ2hFYDJew+rAOyet24R5 fT++GzrRF/7it2VEH96RuMABehZpMyh/dyCR940f2uHjuQ9N2PQ3O87f5BMwB3qwJRQp iugZ/rRRhSQX+On0kpeZAthplcpWnU4H/LTYru04Fr28E8Yq/EWqy5sggXn+9Qhae4WO tQ== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3n2jghtys8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 13 Jan 2023 14:37: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 30DEbvsE000505 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 13 Jan 2023 14:37: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.36; Fri, 13 Jan 2023 06:37:49 -0800 From: devi priya To: , , , , , , , , , , , , , , , , , , , , CC: , , , , , , Subject: [PATCH 6/6] clk: qcom: Fix APSS PLL and RCG Configuration Date: Fri, 13 Jan 2023 20:06:47 +0530 Message-ID: <20230113143647.14961-7-quic_devipriy@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230113143647.14961-1-quic_devipriy@quicinc.com> References: <20230113143647.14961-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: dfOSr7wANXk6JETj8MnbsuzSbz2-IxvR X-Proofpoint-ORIG-GUID: dfOSr7wANXk6JETj8MnbsuzSbz2-IxvR X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.923,Hydra:6.0.562,FMLib:17.11.122.1 definitions=2023-01-13_06,2023-01-13_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 spamscore=0 malwarescore=0 mlxscore=0 suspectscore=0 priorityscore=1501 phishscore=0 clxscore=1015 bulkscore=0 impostorscore=0 mlxlogscore=922 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2301130096 X-Spam-Status: No, score=1.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_SBL_CSS,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: * 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?1754919746977530790?= X-GMAIL-MSGID: =?utf-8?q?1754919746977530790?= Included CLK_IS_CRITICAL flag which helps to properly enable the APSS PLL during bootup. clk_rcg2_ops should be used for APSS clock RCG, as other ops will not configure the RCG register Co-developed-by: Praveenkumar I Signed-off-by: Praveenkumar I Signed-off-by: devi priya --- drivers/clk/qcom/apss-ipq-pll.c | 1 + drivers/clk/qcom/apss-ipq6018.c | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/clk/qcom/apss-ipq-pll.c b/drivers/clk/qcom/apss-ipq-pll.c index dd0c01bf5a98..75486a124fcd 100644 --- a/drivers/clk/qcom/apss-ipq-pll.c +++ b/drivers/clk/qcom/apss-ipq-pll.c @@ -33,6 +33,7 @@ static struct clk_alpha_pll ipq_pll = { }, .num_parents = 1, .ops = &clk_alpha_pll_huayra_ops, + .flags = CLK_IS_CRITICAL, }, }, }; diff --git a/drivers/clk/qcom/apss-ipq6018.c b/drivers/clk/qcom/apss-ipq6018.c index f2f502e2d5a4..0d0e7196a4dc 100644 --- a/drivers/clk/qcom/apss-ipq6018.c +++ b/drivers/clk/qcom/apss-ipq6018.c @@ -33,15 +33,21 @@ static const struct parent_map parents_apcs_alias0_clk_src_map[] = { { P_APSS_PLL_EARLY, 5 }, }; +static const struct freq_tbl ftbl_apcs_alias0_clk_src[] = { + { .src = P_APSS_PLL_EARLY, .pre_div = 1 }, + { } +}; + static struct clk_rcg2 apcs_alias0_clk_src = { .cmd_rcgr = 0x0050, + .freq_tbl = ftbl_apcs_alias0_clk_src, .hid_width = 5, .parent_map = parents_apcs_alias0_clk_src_map, .clkr.hw.init = &(struct clk_init_data){ .name = "apcs_alias0_clk_src", .parent_data = parents_apcs_alias0_clk_src, .num_parents = ARRAY_SIZE(parents_apcs_alias0_clk_src), - .ops = &clk_rcg2_mux_closest_ops, + .ops = &clk_rcg2_ops, .flags = CLK_SET_RATE_PARENT, }, };