From patchwork Thu Jul 2 09:39:19 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Loic Poulain X-Patchwork-Id: 11638363 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 50257618 for ; Thu, 2 Jul 2020 09:34:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3788F20702 for ; Thu, 2 Jul 2020 09:34:19 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="ROc9lpGY" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726362AbgGBJeS (ORCPT ); Thu, 2 Jul 2020 05:34:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726183AbgGBJeS (ORCPT ); Thu, 2 Jul 2020 05:34:18 -0400 Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A1B7C08C5DC for ; Thu, 2 Jul 2020 02:34:18 -0700 (PDT) Received: by mail-wm1-x342.google.com with SMTP id l2so25602399wmf.0 for ; Thu, 02 Jul 2020 02:34:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=wNBd8IKH2tiilVW9f95WBKZLvBm2AFUMvOOUIMAtbjU=; b=ROc9lpGYJNr1jvW8KUTWHIl5/yg1514yfak4l0bsnJO+YKrdMUY+pr6c2GYcfDPhyH hB6TxIbELlhaCqBq4McBt6aWhBtSRutKQFcfNVkkRaW9D4UQ0bg2Q/21IO2Q7k6Jir7f m2GpKy7yNC9Y1RX0MbKtp1ijkmbdr0bo4DPrcb+iu9loAYXOE4sTIqwiHsCpMc3R3Dwx ywW02KGTMEr1SRKmFyUpt74J4qUhY9r+sBPMBh5hrbexEGd+9uQl7FnDgJnOTQNGVPZX QpMttaIqio83dvyEpVdX09/awsZ2VZGOn+p0rLTngkqWiVieE3zvmZoRdim4v/12ajSd 7szQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=wNBd8IKH2tiilVW9f95WBKZLvBm2AFUMvOOUIMAtbjU=; b=ZWGa65rQSQFXp79fPzs5vRSjtTdzx2Fcrvk7OOVcVAtpuQll0GKuqS+eut1hyJE0mI Un3cBCdHXxZNnT8PnTMIbg2ieKbq9ZxGKseRiWVgENjDloEPA8G+jR1zbpO/FuJyqzAj 4S+6MIQbB3Td0lHndq8GIcRvLK3j2Tare2YZnLv9R6pXoKrtKj1EvzPTOH65i5cYx6Ul CXvP6FRQvoKsPBUV78bgt1Cc1zVAal+TT6rIkbhThQmIxg6cBxDZL7wwZMNPFzijtTYX b2SPajUxNHMWDq27YXMdk5NUkRFz1nIkQYPHBcMRVooVpaJlHmBYURqJnVrOKFiDfD/E c7DA== X-Gm-Message-State: AOAM5316IGIQM6m1qu6Vi9PbGTUwMaQJ88B0/cYRKwiGfzmhuLglsLDX s0uc37XPhVeFi41aks50KZnfIg== X-Google-Smtp-Source: ABdhPJyI+3aY/huDvFyQGp8SbhwNpNuAtLvQnnARxI8sob2XVnNHABW77w/SdZSe5/6HKrTKYMNPwQ== X-Received: by 2002:a1c:2d83:: with SMTP id t125mr31554275wmt.187.1593682456705; Thu, 02 Jul 2020 02:34:16 -0700 (PDT) Received: from localhost.localdomain ([88.122.66.28]) by smtp.gmail.com with ESMTPSA id b184sm10326345wmc.20.2020.07.02.02.34.15 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 02 Jul 2020 02:34:16 -0700 (PDT) From: Loic Poulain To: sboyd@kernel.org, bjorn.andersson@linaro.org Cc: mturquette@baylibre.com, linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, Loic Poulain Subject: [PATCH v3 0/4] msm8996 CPU scaling suppor Date: Thu, 2 Jul 2020 11:39:19 +0200 Message-Id: <1593682763-31368-1-git-send-email-loic.poulain@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org v2: - Converted dt bindings to YAML - Various fixes from Stephen inputs - Removed useless wmb barrier, MODULE_ALIAS - Use helpers like struct_size() and devm_platform_ioremap_resource() - Coding style fixes + comments - Kconfig: remove useless depends - Added Co-developed-by tag v3: - Added Ilia and Rajendra s-o-b and contribution description Ilia Lin (2): soc: qcom: Separate kryo l2 accessors from PMU driver dt-bindings: clk: qcom: Add bindings for CPU clock for msm8996 Loic Poulain (2): clk: qcom: Add CPU clock driver for msm8996 arch: arm64: dts: msm8996: Add opp and thermal .../bindings/clock/qcom,msm8996-apcc.yaml | 56 +++ arch/arm64/boot/dts/qcom/msm8996.dtsi | 338 ++++++++++++- drivers/clk/qcom/Kconfig | 8 + drivers/clk/qcom/Makefile | 1 + drivers/clk/qcom/clk-alpha-pll.h | 6 + drivers/clk/qcom/clk-cpu-8996.c | 538 +++++++++++++++++++++ drivers/perf/Kconfig | 1 + drivers/perf/qcom_l2_pmu.c | 90 +--- drivers/soc/qcom/Kconfig | 3 + drivers/soc/qcom/Makefile | 1 + drivers/soc/qcom/kryo-l2-accessors.c | 57 +++ include/soc/qcom/kryo-l2-accessors.h | 12 + 12 files changed, 1030 insertions(+), 81 deletions(-) create mode 100644 Documentation/devicetree/bindings/clock/qcom,msm8996-apcc.yaml create mode 100644 drivers/clk/qcom/clk-cpu-8996.c create mode 100644 drivers/soc/qcom/kryo-l2-accessors.c create mode 100644 include/soc/qcom/kryo-l2-accessors.h