Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp766584rwr; Wed, 3 May 2023 06:02:00 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5IQEOx+pj21j8do5uJIv3CKBnt7EoGdiocHhE130/Fl+eOsHeRkBy7XyAL+mKdBpMAtrpF X-Received: by 2002:a17:90a:53c6:b0:24e:203c:caa4 with SMTP id y64-20020a17090a53c600b0024e203ccaa4mr6777638pjh.15.1683118920273; Wed, 03 May 2023 06:02:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683118920; cv=none; d=google.com; s=arc-20160816; b=yX5sGIAM/gRI4O5dsmr9VtZfXpYtOFGFGShBssH61BZ78EumbEPVMdCZDNpbmsjJDd JiYJ6si/rM/ur2Nx+/4OzxSM1+2CKpPoapenSrCFRX0D0uU29oTCuuvGUZZQPi7fwAOq kJDgvGMz9RiYl/RT1rfwCNQ0OzTrk3hcDJ/4M2irXx0BIBxAIDPvoKk4HhKzAi5l3HzA ddUEgapABdrJ9XABOYH5psRLImzXfD83KM0efS+d2gJdIIaHhMyvBbu1aKpzfFrOjYV3 BqxY3EyNeK9RZr0AnTczd8O+fFO1BLfZT6jGN96b6eZJ2t+uJ64o2WocdS9tdosnvO5X Bgiw== 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=DAYsNvZ1r6vDYyH11825cLuMgyWocyOOg2bkotlIsxv1L2ruXiO6Gned+sLHsGsdz0 hbwcsOyp4Ev8jiwQY2poO4h7LYmZhRsnu3lg59TkS8l2xVHC1zomw5aZ+LPt1hqEPKKE aEgRbWNOKekJhHYz55NEr7fhCnTc/7qiXxh0IQo2C5tIVpvMgnD4M2D2IdXPYl5Z8mh0 jPoSrkfoews07j0Ql9bSpO70WPT3RyQfNEmZLTpRq77+8slfR9KcIMsibLZ2XtQSnZmy Oc2ac3DNOvZpZZhMIxYDMRGrYi9yrcYcx7496SIPqqb4j03rEgxyhPxqX7I7f+FtwYQI Tseg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b="Whvtoc/s"; 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 p23-20020a634f57000000b004fca80d4647si30909214pgl.216.2023.05.03.06.01.22; Wed, 03 May 2023 06:02:00 -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="Whvtoc/s"; 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 S229965AbjECM7f (ORCPT + 99 others); Wed, 3 May 2023 08:59:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59222 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229671AbjECM7e (ORCPT ); Wed, 3 May 2023 08:59:34 -0400 Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 90342DF; Wed, 3 May 2023 05:59:33 -0700 (PDT) Received: by mail-ed1-x534.google.com with SMTP id 4fb4d7f45d1cf-50bd2d7ba74so6352645a12.1; Wed, 03 May 2023 05:59:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683118772; x=1685710772; 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=Whvtoc/skophwF5/lRnqZvU1HO9Y43Jm5bQ33Y4F+62KIWB5UxTiVA7QWdvdULYFkz MwIU3Oe/1xZRIouK++//fKBd/uW1VGOwKoWjzMtRhxvqlMsIkqp8AuYIqvx4ASTqoCRN 8U6FduvNK59YjQlWcLUaVSPpZWoumSiXY9GqUBrfl+pKq5Rkl3YhjnczZfu4kO4fqqLz 8cfwzm6C4WBZIRMbmE5xMIBaDSaxqiwnYLzreA5DhoWKx09nB26U970l8mg1c1oWDq5o x6LtGx9876/D9WscvZK/IVj6BnbxKfNVkbIBhJCvjq9n1+3YoMzKwt/LN3OZcyiOFhKk ho5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683118772; x=1685710772; 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=OsEBdFc1xeIFkPXjW6R6V+XuW7vx4+f7DFSiSmDT8xNyGj2ivS7MvHzN6U3fpzk/ll tDdPf67jlDVSCiqEGIOJMq4JZQIWnwyu2ZMPi1vYw1S+s3ngAEVX2YEIg0Gey+CP5X+H qlAzV+MRwy+ro0QzfZ+CmJGPKEoVFDtmfZT/J1U0o3kpbLh8iBxZNMu3Q+iqOxOcIfza yHEf3XeqGI5n1brpIvowpesmMBXyX3G48E/CBNjH8j0cqSZokoNJYagtycQZAjfQjB9Q uHO15whMLoM/5OzVxAKideDlzyXbp78AvEryKGB5Qaqopx+HqUvRxabx8q9t7Fa29Qjl Xw9A== X-Gm-Message-State: AC+VfDw8Iaf6R+qz8u6xJUyn8auJ7alaltc69fK8MlBVqjUX7XenIXO8 FCdA+X91BQIfqheL7Qk+sWc= X-Received: by 2002:a17:907:7f89:b0:94b:769f:3ba3 with SMTP id qk9-20020a1709077f8900b0094b769f3ba3mr1841245ejc.8.1683118771593; Wed, 03 May 2023 05:59:31 -0700 (PDT) Received: from localhost.localdomain ([95.183.227.33]) by smtp.gmail.com with ESMTPSA id gn2-20020a1709070d0200b009545230e682sm17107696ejc.91.2023.05.03.05.59.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 May 2023 05:59:31 -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 0/3] MSM8996 Pro CBF scaling support Date: Wed, 3 May 2023 15:59:13 +0300 Message-Id: <20230503125916.144600-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