Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp770963rwr; Wed, 3 May 2023 06:04:22 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7yCqARI/+sMjiLWFHU+sqYZqaPHAdsmQwvBTHziyjFXH6Zp15bJe1KNHRRtQJyzuiMfJaI X-Received: by 2002:a17:902:d4d1:b0:1a9:54c4:760f with SMTP id o17-20020a170902d4d100b001a954c4760fmr2368586plg.54.1683119061504; Wed, 03 May 2023 06:04:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683119061; cv=none; d=google.com; s=arc-20160816; b=tkpIaLc3DvCrRXjIVthW4Cf/KSaKLd/6+aa8jqHxP1gInC7ugix5e57pzRSmHDwgh6 rsHBgb8MhBsh+NJ3w0B6SePClqItzQDafmnGY+IgxI8dJP7ci+3iBxB0bHW9AaGTaiWl Enhv07RvHf/AK29/hgE5HoJqXkkhLSLiOFe24uIdV+tecrMHuN+arEuJrlo5YZfQCxlf zAkhcNnrzZe1TsfCetiI2GEJm+wFpEUF7faSWjCK+cOww9HxhraRDkQMn+80rTyYrnVl PEx+cvlAHe3KXEFexu0C+nXhVmi0FQ2EV17c1+xsHQu2KaC4uiHHUE1pnwdr3MBxAMiO c7rQ== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p8-20020a170902e74800b001a966042af8si27942330plf.341.2023.05.03.06.04.03; Wed, 03 May 2023 06:04:21 -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 S230024AbjECNBV (ORCPT + 99 others); Wed, 3 May 2023 09:01:21 -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 Content-Transfer-Encoding: 8bit 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 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(-) -- 2.40.0