From patchwork Wed Feb 8 04:28:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kathiravan Thirumoorthy X-Patchwork-Id: 5105 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp3247960wrn; Tue, 7 Feb 2023 20:30:02 -0800 (PST) X-Google-Smtp-Source: AK7set82DMIuj0mQ/9BVAM6U7XAXU2tbUA8xlOKfLp4e55jikpo7BwqxvDSasgECOYQrMss7QW9y X-Received: by 2002:a17:906:f56:b0:88c:5a80:a7bb with SMTP id h22-20020a1709060f5600b0088c5a80a7bbmr5199862ejj.6.1675830601888; Tue, 07 Feb 2023 20:30:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675830601; cv=none; d=google.com; s=arc-20160816; b=rZIx3eIEa5p44KdcJhbq97fT9ooO+q8MIg9IYYpl2byiOd+oICzY69gRwaon4vs45I zG7v2Cui9xo0YoKE8CSSg9v1KRFbtEd9AZ5oFnJyDgeV1pjO4q/sNtp/5COT902ppUcT Z7b9rozN+JcmsRZl/D28ZPjVYKLuzuHs+JvcBAcy642EBj8/R0i2ewlAundFgiD3nOlW hR5kffG4kCi8y9gQA7rN3YojN8+B6CTU8wRJQKfbOPeXSgc/BAYbQVTeO+5OIpRFMUxV r5suXfM9V2Zv7LVyQf201U/IBXbDFBP4SwwY2fzD2yjehOaWXS0WOucoCjsjiirPBXuI pa3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=AZBtbN86MnL3/WzWM8oN+UDB8m7i7HmzJmiVNUxVVfE=; b=Qiz10sRFIL6Do02PsbzZgPrb9/kVaF1JDX/sKGgUKyBc3G1Zr84HG2E6Bldbc5cpxb YNzCJODzN3Ik3FkWHBvIsDcu/8BiC5BL/2kHe8h8+c+APanH+6Fz+iusXTTfdURmYcZO brDwVUYMd2VMiNkPZiWeH0EQn2vLOy4/s8j3gC+VXX+KMWdruknxBdSyaE8khiI+O7ub JABi9niqnuzhCXqvaGWbmgT6K+hNH7hjo33lpocb64xBu09yFAN92yoYCRQChgFJhYgV b0enju+CcR/BBrGYBf7rGfT8dLNwQDO2KqJFVWSDjW+np6Uu6sktdoyVkuDIl+ZHcWkV iAOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=mJydNIyY; 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 c3-20020a1709063f0300b008785b789c4bsi22045140ejj.457.2023.02.07.20.29.38; Tue, 07 Feb 2023 20:30:01 -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=mJydNIyY; 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 S230246AbjBHE3R (ORCPT + 99 others); Tue, 7 Feb 2023 23:29:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35114 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229460AbjBHE3O (ORCPT ); Tue, 7 Feb 2023 23:29:14 -0500 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 532CD3B677; Tue, 7 Feb 2023 20:29:13 -0800 (PST) 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 31841FVq019455; Wed, 8 Feb 2023 04:29:09 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=qcppdkim1; bh=AZBtbN86MnL3/WzWM8oN+UDB8m7i7HmzJmiVNUxVVfE=; b=mJydNIyY5x5Z06lxEe/ctbS0rlCb/50L+rSmFe3tSGy6cpH17cR8LtfpocdtEvJk7H+p +JI9KgKqsGecwIMjsvFituWsVrDSyObtE4JrFp0jjfq5oDty/ezgOpxAHWCmXcopb466 ofQfleSrLfsgQ3C8GFcLyNHryE6mLHUXuMII7hDUEOWL+ISmfMdhDzOLcp0mOSJ0lqu+ zSREGiE0kAPMJfr5muBztUkC4VpDH+8qEfFUu2jllLOIzAr1svPvAZ63gII3JMdREdwE rLAar7e75ljnhXTYNOU4YRoVjgjHGzLVTdsx7EJ4+ix7wTlW+hGGG5Fcq275I2Y6Ddm5 7A== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3nke4h3cw0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 08 Feb 2023 04:29:08 +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 3184T7ZR005858 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 8 Feb 2023 04:29:07 GMT Received: from kathirav-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; Tue, 7 Feb 2023 20:29:02 -0800 From: Kathiravan T To: , , , , , , , , , , , CC: , , Kathiravan T Subject: [PATCH V2 0/6] Add APSS clock driver support for IPQ5332 Date: Wed, 8 Feb 2023 09:58:45 +0530 Message-ID: <20230208042850.1687-1-quic_kathirav@quicinc.com> X-Mailer: git-send-email 2.17.1 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: IGjU3gBrJYHoOiffZ6GpZleuKUTJ6J6t X-Proofpoint-ORIG-GUID: IGjU3gBrJYHoOiffZ6GpZleuKUTJ6J6t X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.930,Hydra:6.0.562,FMLib:17.11.122.1 definitions=2023-02-07_15,2023-02-06_03,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 suspectscore=0 bulkscore=0 phishscore=0 adultscore=0 clxscore=1015 impostorscore=0 mlxlogscore=775 spamscore=0 lowpriorityscore=0 mlxscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2302080039 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?1757235749415437882?= X-GMAIL-MSGID: =?utf-8?q?1757235749415437882?= This series adds support for the APSS clock to bump the CPU frequency above 800MHz. APSS PLL found in the IPQ5332 is of type Stromer Plus. However the existing IPQ targets uses the Huayra PLL. So the driver has to refactored to accommodate the different PLL types. The first patch in the series does the refactoring, which can be independenty merged. For the Stromer PLL separate function clk_stromer_pll_configure is introduced, so the 3rd patch in the series depends on the below patch https://lore.kernel.org/linux-arm-msm/20230120082631.22053-1-quic_kathirav@quicinc.com/ DTS patch depends on the IPQ5332 baseport series https://lore.kernel.org/linux-arm-msm/20230130114702.20606-1-quic_kathirav@quicinc.com/ Changes since V1: - Dropped the patch 5/6, since the fallback mechanism for compatible is introduced to avoid bloating the of_device_id table - V1 can be found at https://lore.kernel.org/linux-arm-msm/20230202145208.2328032-1-quic_kathirav@quicinc.com/ Kathiravan T (5): clk: qcom: apss-ipq-pll: refactor the driver to accommodate different PLL types dt-bindings: clock: qcom,a53pll: add IPQ5332 compatible clk: qcom: apss-ipq-pll: add support for IPQ5332 dt-bindings: mailbox: qcom: add compatible for the IPQ5332 SoC arm64: dts: qcom: ipq5332: enable the CPUFreq support .../bindings/clock/qcom,a53pll.yaml | 1 + .../mailbox/qcom,apcs-kpss-global.yaml | 18 ++- arch/arm64/boot/dts/qcom/ipq5332.dtsi | 37 ++++++ drivers/clk/qcom/apss-ipq-pll.c | 116 +++++++++++++++--- 4 files changed, 147 insertions(+), 25 deletions(-)