Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp567116rwd; Sat, 27 May 2023 02:46:58 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7BciyoP1A2TOHl8vywU6zrOZxyvQYso1IEg4fOTj4KuV5z67HWz+MOOfLfjSn0HCWqXWDO X-Received: by 2002:a05:6a00:1f11:b0:64d:223e:b38 with SMTP id be17-20020a056a001f1100b0064d223e0b38mr1887670pfb.0.1685180818009; Sat, 27 May 2023 02:46:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685180817; cv=none; d=google.com; s=arc-20160816; b=mND3tE8nEUUB9wBq0qSmC1LU0QP//fPZPFh64o3MO/rPbd+LWV+md+IYJYJY1kv9ew y+JPcqxWo2fFlpQ+DBQ2CLC4J6B1hW/IU4arDShHdZAZZGf7QlyygPsUJb0IrmK7Eg2q YBcHpO1GcL+lP4pf3rZLiiNM0np9GoPoHc4KHP4WBuLAbmwatrt4IKDxgTIwwkuGYi3s zHtvYXbnhAozli+wD7i5O1Rrz15DtlnW9f4HS29gw9SxmQcMGtjf+StgOWICP6OIbrk0 I5pZCPGg+JbBZCyuoHuEuS3RsPh4om4G8mVlErOH4erTwVg9PUFgAqyaAXdZRuzHXoHu gVnA== 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=Np2TY4wzluYjw6tvBst2SYU6co+dQh0uK/Q/WT/NspM=; b=XYEd0G3c6dKypH+cYWTqst5PqVo0Dbag6D+ITy8toPqvzP0QOe9Cm4rll0S++JWksA lfFNFu9fgOpxEderhQ2ZQoLNPj11r/SMyZt2AbKDhWLJCbV4uqiedntQRtrj56hq9oxU OS4QIA7hiAoOs5Row4joHT/KFJbaNBOaloc9VXIVn0cuB1Dr107r1bs0BsQjobOUJ/4u uOUG0EHrqHOzAax/+JgJrfeCnMPfi0Rt3G7ZMR8Fij+kML1gjc/PSVPDl880ncBg20Ie htkNume436+cReLRii6v802Wq26WecCxN0j8T3sINMw1OV1LZ6EL/Z9X0GHTomsPy20G UqGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=fQM6Hilq; 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 m28-20020a638c1c000000b0053eeed3d267si1985235pgd.686.2023.05.27.02.46.44; Sat, 27 May 2023 02:46:57 -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=fQM6Hilq; 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 S232031AbjE0JkP (ORCPT + 99 others); Sat, 27 May 2023 05:40:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36754 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232160AbjE0JkA (ORCPT ); Sat, 27 May 2023 05:40:00 -0400 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 43B90DE; Sat, 27 May 2023 02:39:59 -0700 (PDT) Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-96f7377c86aso281476266b.1; Sat, 27 May 2023 02:39:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685180398; x=1687772398; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Np2TY4wzluYjw6tvBst2SYU6co+dQh0uK/Q/WT/NspM=; b=fQM6Hilq3wWlqNn7ZUh7pa2JPh3q2D1ecibqbwZpL2dseryd4IVDDqU7WPm7Yqayl7 JS8c6KW0KTxrAjKif0wMTDHuqQuGRpEXA4PnqYbkwJSuYRN7sBt4r7NJNSq7k8VUHg/P ZYTNCWgy3BPS0iEY3oS7GkiJaUkujMlZB4EzF+x4O4hr6K7VzfFPm2Nt7mO6Oqrh95m+ 3V4PLk9StJWPbL8yCz5rzQ9jDq0GtCk/frzJexGqAhzu6E4SgvXTesAT/JspksDv0M0y JKESjO9U3jAeApv1zX75mKwraMofG7Fl1Lhnrdf8OkucHpd8GK41/O1La/DcodmaXdKH kvng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685180398; x=1687772398; 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=Np2TY4wzluYjw6tvBst2SYU6co+dQh0uK/Q/WT/NspM=; b=kf9uHqodSVwbU9CRfIxgRVGjlXWGOAYlC9s+smuVQONVg2sva7yyUTvZ7plN77jejK 41eUYpIBPGDuPsa74QgublYU064Di+BEVYuiMLzrdyZ5TKDWmTXkUhOo6CnDOABnzIld yUT7041NsC0mpR4e5dQJUzWw4mWx8q8eMn/sC+mkP6z88Cq34p03VLjqGi1Xjo+uaeNT D/xS8OrphHdXrVEDXPmh8YyPR8ZcOV9D/2FnRKbjrhTTfez0xqn/QN+Sw59OBz2jLLAG gZotTUKjKbaZSSzlT7Dwo0rrnrBdb/ZrHzoYd9yqAsf9GlYTkAh/KapsCremnO0jtysk g/Kw== X-Gm-Message-State: AC+VfDydmE3JFedwf8s+5rV3Lwe8yiCTQBgWpkzdVItlfoAxSL7qHGqc 495bjtJVMjjlT3395ZhBbHo= X-Received: by 2002:a17:906:ee88:b0:96a:928c:d382 with SMTP id wt8-20020a170906ee8800b0096a928cd382mr4311846ejb.48.1685180397384; Sat, 27 May 2023 02:39:57 -0700 (PDT) Received: from localhost.localdomain ([95.183.227.33]) by smtp.gmail.com with ESMTPSA id kq12-20020a170906abcc00b009596e7e0dbasm3163623ejb.162.2023.05.27.02.39.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 May 2023 02:39:56 -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 v2 0/3] MSM8996 Pro CBF scaling support Date: Sat, 27 May 2023 12:39:31 +0300 Message-Id: <20230527093934.101335-1-y.oudjana@protonmail.com> X-Mailer: git-send-email 2.40.1 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/ Changes since v1: - Patch structs during probe instead of defining new ones. 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 | 10 +++- 3 files changed, 62 insertions(+), 3 deletions(-) -- 2.40.1