Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3671063rdg; Wed, 18 Oct 2023 02:32:26 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFZWKREvNuBD7isNgRkzD2gC/Xt47E+7lMf6P/mWSuzuUgQsUV9vH7eAWXUBETHDVGEPnis X-Received: by 2002:a05:6808:13d3:b0:3ad:f536:2f26 with SMTP id d19-20020a05680813d300b003adf5362f26mr5999898oiw.18.1697621545713; Wed, 18 Oct 2023 02:32:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697621545; cv=none; d=google.com; s=arc-20160816; b=cllRxk4uaoSG1IKFTJkq1EOQsg/UPqkL6JM3G5TzK+UfuMKWEJpqOyRf2WXFa3rf7j fNwpaus1Bi95HWb6hoxf+g1XNQtMUze0ZIJH1jxkQI5qhYyeRg8E17xHPMg/dLosoL88 bw93Nth8gM5aePMqjz4aOtrlvoPy3NXuS93ptimXsb52T4WHaK0mX1AzrAXqq2aFB0MW p7iaMIQ+T61T6UY5j8FxwKHfgfPj33gMByhgxQsQThByd5HmD7RLhUo2kcKrTS0Jm5nH 9rjqS/M+TP4XaSfDFNeF9vKRInOAPIvDNiM4C7f0Knkm6fAQdBKNQbtd7P3MARloYJ8E y0bQ== 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=0/z1aE8IPiETaIScHbyhLazcbnzCXnH1Qund8xpklbM=; fh=TexRbNhpseSDwji4zm0ZYE1dIqB1VQ9GLSRhn7EXsPo=; b=W1IITIL5FObNVnMQVCQMZAJrElgR7A6Rpm0D7Mre3FseKeU33XDDP0wiv/zXS4cxG7 PKrWdnHN0EInMVgup+kXc5bleQ4idd1omu/ikVif4ZgKJDo8XcZF4M1+Cj6Y+2OuYWI/ E1ZyZzkdNHq3mHUXNZ2xN2pYGQEyKAf0tgr5/R3ZhyJcPt2SB//oaSLIlPdvyV6pVySc ui7JtqBJ7uq9vgEW0NryS8AA1yz3QRqdMBPf3uHAchB3STRNrcoykbE8hNwsnsxmdtIP 8KkFFGqBp6U6XGiJxL7nuZGQE4ADGqozppgrumF7zqng85XustBFpVPOpvcMpT0visiO UWow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=lY6Ead4j; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id n128-20020a634086000000b00564929df8besi1669537pga.568.2023.10.18.02.32.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 02:32:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=lY6Ead4j; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 545F68026B91; Wed, 18 Oct 2023 02:32:15 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230169AbjJRJa4 (ORCPT + 99 others); Wed, 18 Oct 2023 05:30:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229835AbjJRJab (ORCPT ); Wed, 18 Oct 2023 05:30:31 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C0A1B0; Wed, 18 Oct 2023 02:30:29 -0700 (PDT) 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 39I7bqnP010211; Wed, 18 Oct 2023 09:30:24 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=0/z1aE8IPiETaIScHbyhLazcbnzCXnH1Qund8xpklbM=; b=lY6Ead4jU6HSMYIeXJxET7V7/mtPa4s1XbyNKa2WVk9k0FPhLrDFL/rTea6/mqLm1vY/ oJc+NyGz+MncjAvoCthWd/vczVa+X1+pbv5DTn79InzMQXT6YVYzRRizYehL3OlPuj+/ tXrEVm+aaIyPIRA4TftJUwMuQtuDGlXV3NnfaMyWkgUSiBD1F7F3ffM6HQjriNgaRLdO mFWQlMgk/yUQrbf91sS4DhAAqplA1K/qyi+PdAEBNAtxEuSTFdPhcwLVPRhMjzpd7TpM ykDUJYHqMiguaId0r/yCrEU51UAI5N5FIjgW+FGb71gMqkYrXCvE+cW2yt/R4Lg6QKyu ig== Received: from nasanppmta04.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3tsb7xm767-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 18 Oct 2023 09:30:23 +0000 Received: from nasanex01a.na.qualcomm.com (nasanex01a.na.qualcomm.com [10.52.223.231]) by NASANPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 39I9UMgG031601 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 18 Oct 2023 09:30:22 GMT Received: from varda-linux.qualcomm.com (10.80.80.8) by nasanex01a.na.qualcomm.com (10.52.223.231) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.39; Wed, 18 Oct 2023 02:30:16 -0700 From: Varadarajan Narayanan To: , , , , , , , , , , , , , , , , CC: Varadarajan Narayanan Subject: [PATCH v3 0/8] Enable cpufreq for IPQ5332 & IPQ9574 Date: Wed, 18 Oct 2023 14:59:13 +0530 Message-ID: X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nasanex01a.na.qualcomm.com (10.52.223.231) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: 4BxFETwDxKapZbod5a0Y2MS8kb2cueSI X-Proofpoint-GUID: 4BxFETwDxKapZbod5a0Y2MS8kb2cueSI X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-18_07,2023-10-17_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 mlxlogscore=873 suspectscore=0 lowpriorityscore=0 spamscore=0 bulkscore=0 mlxscore=0 phishscore=0 malwarescore=0 impostorscore=0 clxscore=1015 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2309180000 definitions=main-2310180079 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Wed, 18 Oct 2023 02:32:15 -0700 (PDT) Depends On: https://lore.kernel.org/lkml/20230913-gpll_cleanup-v2-6-c8ceb1a37680@quicinc.com/T/ This patch series aims to enable cpufreq for IPQ5332 and IPQ9574. For IPQ5332, a minor enhancement to Stromer Plus ops and a safe source switch is needed before cpu freq can be enabled. These are also included in this series. Posting this as a single series. Please let me know if this is not correct, will split in the subsequent revisions. Passed the following DT related validations make W=1 ARCH=arm64 -j16 DT_CHECKER_FLAGS='-v -m' dt_binding_check DT_SCHEMA_FILES=qcom make W=1 ARCH=arm64 -j16 CHECK_DTBS=y DT_SCHEMA_FILES=qcom dtbs_check For IPQ5332: ~~~~~~~~~~~ * This patch series introduces stromer plus ops which builds on stromer ops and implements a different set_rate and determine_rate. A different set_rate is needed since stromer plus PLLs do not support dynamic frequency scaling. To switch between frequencies, we have to shut down the PLL, configure the L and ALPHA values and turn on again. So introduce the separate set of ops for Stromer Plus PLL. * Update ipq_pll_stromer_plus to use clk_alpha_pll_stromer_plus_ops instead of clk_alpha_pll_stromer_ops. * Set 'l' value to a value that is supported on all SKUs. * Provide safe source switch for a53pll * Include IPQ5332 in cpufreq nvmem framework * Add OPP details to device tree For IPQ9574: ~~~~~~~~~~~ * Include IPQ9574 in cpufreq nvmem framework * Add OPP details to device tree Removed 2 patches from V1 as they have been merged * dt-bindings: cpufreq: qcom-cpufreq-nvmem: document IPQ5332 * dt-bindings: cpufreq: qcom-cpufreq-nvmem: document IPQ9574 Varadarajan Narayanan (8): clk: qcom: clk-alpha-pll: introduce stromer plus ops clk: qcom: apss-ipq-pll: Use stromer plus ops for stromer plus pll clk: qcom: apss-ipq-pll: Fix 'l' value for ipq5332_pll_config clk: qcom: apss-ipq6018: ipq5332: add safe source switch for a53pll cpufreq: qti: Enable cpufreq for ipq53xx arm64: dts: qcom: ipq5332: populate the opp table based on the eFuse cpufreq: qti: Introduce cpufreq for ipq95xx arm64: dts: qcom: ipq9574: populate the opp table based on the eFuse arch/arm64/boot/dts/qcom/ipq5332.dtsi | 19 ++++++++++-- arch/arm64/boot/dts/qcom/ipq9574.dtsi | 21 ++++++++++++- drivers/clk/qcom/apss-ipq-pll.c | 4 +-- drivers/clk/qcom/apss-ipq6018.c | 58 ++++++++++++++++++++++++++++++++++- drivers/clk/qcom/clk-alpha-pll.c | 57 ++++++++++++++++++++++++++++++++++ drivers/clk/qcom/clk-alpha-pll.h | 1 + drivers/cpufreq/cpufreq-dt-platdev.c | 2 ++ drivers/cpufreq/qcom-cpufreq-nvmem.c | 16 ++++++++++ 8 files changed, 171 insertions(+), 7 deletions(-) -- 2.7.4