From patchwork Wed May 3 13:00:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yassine Oudjana X-Patchwork-Id: 8881 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1310260vqo; Wed, 3 May 2023 06:04:19 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4L8a7ai7O3Nf1GKHGri2SflLAzH0n33qTDp7rFdJK15uxMTveoUxkZTrJ3uJes2Yl4W9Oh X-Received: by 2002:a17:902:c948:b0:1a9:6d25:b2d2 with SMTP id i8-20020a170902c94800b001a96d25b2d2mr2311480pla.67.1683119059038; Wed, 03 May 2023 06:04:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683119059; cv=none; d=google.com; s=arc-20160816; b=ioVvUThf09idIdIyZQU31uSgh79fUjklA6I+clGxcOf1RmfTZIzyBtokg/spNJgf3m 64LaBh7rmsQhRiRQo2YXJ7VfexDaJa66WNh9e7Qf9Uw8u0/hVmIf3qiwyPVkFQ+MUDqL k/HF0LwrvnOMljYatiK/XLVQtlUcrm86sj4SduMrVMaBEMTdZ0l9KbjHhc9h/nM0HqM6 81ffaUB9kR9ZdWm2bhp49aRUv7zmTx9pdY3GbyKEm4cLSnd7KS85NaxH81ibQ6lhipB0 qFvQr6OlRFxwsl3O7yx2QOYz7dKgKEZXUrf3bZ+oX2vN3oxDeh21hzFMOrj12RBw4GRO 7tgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=MwC+BnPU6BKqxfDtGr6AFGwZArDyvQQ/gezoS0Ber4M=; b=kj1/QPiQY3MVJsvEk8JANC0kD0QBklVqYhvA1iibpY4ApShfZa2g5vEOtLTh9sx/Aw kh08Fnx2JFWIjkXopqy5/ea+H5QXMiI9F0gkFmi1b/EQTq8tX8X/k/KoKXlFqBtUWej2 Dhjj6xaz/kODES8XoaP/livqw55AXbbMj1C162WvSPuUi5HDM0Q9ZBuAdajaE3QPmDsZ 0wngZuna30b2VLNaXBq9S0/AZXAEXsrrLwkl42h0HSFWH7b0BtWXWm4pJwYMEl0bdyjb JeetwRQT63jLptRVR4prgyK6u+6S5mvPc1Lk0squCxTt/kA6n5shjsujpyykgNZwcxkD oppw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=X3oBKjud; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ik3-20020a170902ab0300b001ab02f505ffsi5078133plb.87.2023.05.03.06.04.04; Wed, 03 May 2023 06:04:19 -0700 (PDT) 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=@gmail.com header.s=20221208 header.b=X3oBKjud; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230026AbjECNBW (ORCPT + 99 others); Wed, 3 May 2023 09:01:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229601AbjECNBU (ORCPT ); Wed, 3 May 2023 09:01:20 -0400 Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com [IPv6:2a00:1450:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 166271A5; Wed, 3 May 2023 06:01:19 -0700 (PDT) Received: by mail-ej1-x62b.google.com with SMTP id a640c23a62f3a-95369921f8eso832037066b.0; Wed, 03 May 2023 06:01:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683118877; x=1685710877; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=MwC+BnPU6BKqxfDtGr6AFGwZArDyvQQ/gezoS0Ber4M=; b=X3oBKjudACwmC75Y4wdJDr/J+xLu8cqCfJ7s6xOe71aUPDGQ1Q6bGm3sZA416t1+Sr iXcevJSgMY4H67knvJTWrlnLkjFaoirfoBQSM4cNPugqgp+lutVkqjyGTXGjskpXh6I+ OH9auC7rUdmKJN31C3C/e+HZP6tLmfOXY7Whi538m9aBoGQ7A0bnGPspxTfsD1ziKnOm VrtcF3vl4yhmkE1SORUM76taFPbaXigFI4rK959Z0xvlqypRgcKHV643jqYoEclL3y14 S75aEIN3xUKpKayqonu7OaGzFnUsWSOYnVG1Zirjzaa7ElSP+Y+LG/8YQz0lVUsYYZ5e 8Oog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683118877; x=1685710877; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=MwC+BnPU6BKqxfDtGr6AFGwZArDyvQQ/gezoS0Ber4M=; b=GKnJ8ZgwdQOMLEiZqtzgeNHFHjAy3rkFXqtL152E2zCkTjZy1CKR6totn/kgjwW+Ol KHjQ/OCcFmPk+XPUjGo1QNJpmTHuSnq/0cMloDb9HGKRym2KrrNerboU1MVdzvnmCxcE lfLRirotPlNKD2ieI8aEbRcENed/eL35KDFA1qzaBu/lMFDFmOi8ijwEplS/OTvg3ua4 O6/Bu44bIiLvloN098aCy11hhbfAsh543rLhmUxjaiPP+XdR4F9Cs4RpxGWoegfxmef1 IMc2E8CVTDuc/CnXXZHuno/tL+XGlq7vvTkOa7o6F+0qe9bjzhhsfPuAgp8SxbqxvVPl dZGA== X-Gm-Message-State: AC+VfDwyNDZ1S22tJAe+qrX9Eeg9+vo274HowL+1o4DMiRXsW6ADRkLc ibS8nym1dcwcomQkr0GVBfQ= X-Received: by 2002:a17:907:608f:b0:94a:71b6:c007 with SMTP id ht15-20020a170907608f00b0094a71b6c007mr3327638ejc.8.1683118876191; Wed, 03 May 2023 06:01:16 -0700 (PDT) Received: from localhost.localdomain ([95.183.227.33]) by smtp.gmail.com with ESMTPSA id my17-20020a1709065a5100b0095728081944sm16105578ejc.146.2023.05.03.06.01.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 May 2023 06:01:15 -0700 (PDT) From: Yassine Oudjana X-Google-Original-From: Yassine Oudjana To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Dmitry Baryshkov Cc: Yassine Oudjana , Yassine Oudjana , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH RESEND 0/3] MSM8996 Pro CBF scaling support Date: Wed, 3 May 2023 16:00:48 +0300 Message-Id: <20230503130051.144708-1-y.oudjana@protonmail.com> X-Mailer: git-send-email 2.40.0 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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?1764878250824795007?= X-GMAIL-MSGID: =?utf-8?q?1764878250824795007?= From: Yassine Oudjana MSM8996 Pro has a /4 post divisor on its CBF PLL instead of /2, allowing it to reach 192000000Hz on the lowest CPU OPPs (compared to 307200000Hz on MSM8996). Add a compatible string to differentiate between the two and handle the different divisor in the driver. Finally, add peak bandwidths to CPU OPPs in msm8996pro.dtsi. This series depends on the following patch series: clk: qcom: msm8996: add support for the CBF clock https://lore.kernel.org/linux-arm-msm/20230410200014.432418-1-dmitry.baryshkov@linaro.org/ Yassine Oudjana (3): dt-bindings: clock: qcom,msm8996-cbf: Add compatible for MSM8996 Pro arm64: dts: qcom: msm8996pro: Add CBF scaling support clk: qcom: cbf-msm8996: Add support for MSM8996 Pro .../bindings/clock/qcom,msm8996-cbf.yaml | 4 +- arch/arm64/boot/dts/qcom/msm8996pro.dtsi | 51 ++++++++ drivers/clk/qcom/clk-cbf-8996.c | 121 +++++++++++++++--- 3 files changed, 160 insertions(+), 16 deletions(-)