From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4DAD0C46467 for ; Wed, 11 Jan 2023 20:00:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235291AbjAKUAy (ORCPT ); Wed, 11 Jan 2023 15:00:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56522 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239481AbjAKUAL (ORCPT ); Wed, 11 Jan 2023 15:00:11 -0500 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 408EE43A0E for ; Wed, 11 Jan 2023 11:57:57 -0800 (PST) Received: by mail-lf1-x12f.google.com with SMTP id bf43so25199453lfb.6 for ; Wed, 11 Jan 2023 11:57:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Bv2F71LxOWpxmjVGxEs6OM8T5rI6hsK3n1+ljlzRLro=; b=yZNnPAOr21AwlS4drbZdIObzFItqVRkZgyPdym1oxLIGpL+f+gR16gp4BfDcixowxe UKXnzZKMbQBUcALVoHO6Kydbd/vNTOx3IDg38WplB2FcT4cv2AANHIinIqi3WE3jmRBg tWQ5oYphRhUyDNkWT+O0NcEpZLL0I/zykFC1MLBATDM7l9bkNkqzc1gHhtiBvPznO31b iy/ohTRSFBNlNIKSloBEXcDzO+TSev3xXdi8svQBpHrAC9x0o4zSwFEeYUl4tHh2Tc4s OxuRszhiEHKJ6slhTme6YuVpCps8nrU42alZkGB9jc4lXI/Sb8/DEnWWu34RrOSrYSyT +1mg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=Bv2F71LxOWpxmjVGxEs6OM8T5rI6hsK3n1+ljlzRLro=; b=MWMaZDlawEd+UWDY/d4wLSZhh8nLvLvOmk0qR/RWt3DJun72yyUcvpAJ8VfoXwOVZP Q/qfEnphHV+DLUyl0Liy6yfX975+fzoyPpSNs7n2+emuhsUb282FNl8gJWv3rur6G+SE iZsMeMB+yDmh4g7GQU2e58VcYMy72scb/CZi3jo7h3heVcWfJ3jHD9XBSs756CPTxXue Ua3cL1oK7OT9ig5DJ7zCVM98OSye6yQSRI85qAzI+QHxPGzArEhBv9+s/6ao9mcKnR5i Qs9ZgI28XrRiGUzejycoT04bu7Cf7ujwNSQILe7MlRMKKuDVxvj/nqDhleOgiC5gidDG sCnA== X-Gm-Message-State: AFqh2kro7QxvbgUEV8I3VEDJD2DBwmHzvP2CfvStlmKNzcwi5SUn3lng AXqjm34CuqNd7HEPRPyfnjrXqQ== X-Google-Smtp-Source: AMrXdXtfk7VVOkAW0Lhq9C9eVkfMNFMU6DhQtYYFJ12HNUxa8k4CJuIA5Vjbf7pBdYbmMPNSP54RbA== X-Received: by 2002:a05:6512:3750:b0:4a4:68b9:66cc with SMTP id a16-20020a056512375000b004a468b966ccmr18314876lfs.23.1673467075921; Wed, 11 Jan 2023 11:57:55 -0800 (PST) Received: from umbar.unikie.fi ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id c3-20020ac25f63000000b0049f54c5f2a4sm2872452lfc.229.2023.01.11.11.57.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Jan 2023 11:57:55 -0800 (PST) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Stephen Boyd , Michael Turquette , Rob Herring , Krzysztof Kozlowski , Taniya Das Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 0/5] clk: qcom: msm8996: add support for the CBF clock Date: Wed, 11 Jan 2023 22:57:49 +0300 Message-Id: <20230111195754.2593134-1-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On MSM8996 two CPU clusters are interconnected using the Core Bus Fabric (CBF). In order for the CPU clusters to function properly, it should be clocked following the core's frequencies to provide adequate bandwidth. On the other hand the CBF's clock rate can be used by other drivers (e.g. by the pending SPDM driver to provide input on the CPU performance). Thus register CBF as a clock (required for CPU to boot) and add a tiny interconnect layer on top of it to let cpufreq/opp scale the CBF clock. Dependencies: [1], [2] [1] https://lore.kernel.org/linux-arm-msm/20230111191453.2509468-1-dmitry.baryshkov@linaro.org/ [2] https://lore.kernel.org/linux-arm-msm/20230111191634.2509616-1-dmitry.baryshkov@linaro.org/ Dmitry Baryshkov (5): dt-bindings: clock: qcom,msm8996-cbf: Describe the MSM8996 CBF clock controller clk: qcom: add msm8996 Core Bus Framework (CBF) support clk: qcom: cbf-msm8996: scale CBF clock according to the CPUfreq arm64: dts: qcom: msm8996: add CBF device entry arm64: dts: qcom: msm8996: scale CBF clock according to the CPUfreq .../bindings/clock/qcom,msm8996-cbf.yaml | 53 ++ arch/arm64/boot/dts/qcom/msm8996.dtsi | 57 +++ drivers/clk/qcom/Makefile | 2 +- drivers/clk/qcom/clk-cbf-8996.c | 457 ++++++++++++++++++ 4 files changed, 568 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/clock/qcom,msm8996-cbf.yaml create mode 100644 drivers/clk/qcom/clk-cbf-8996.c -- 2.30.2