From patchwork Fri Jul 3 08:49:40 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Loic Poulain X-Patchwork-Id: 227102 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp2188949ilg; Fri, 3 Jul 2020 01:44:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyCbdoKEN5LKw3zubpbMLO3d60FsZAsCDDO7H5jp9ntuBFBE0UC+slDPA4LRUtmml70NLO0 X-Received: by 2002:a50:e387:: with SMTP id b7mr38417846edm.190.1593765873725; Fri, 03 Jul 2020 01:44:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593765873; cv=none; d=google.com; s=arc-20160816; b=hloxiYjvW+yYonml84xjqSCnoW0pY2JsFUHxbWsbx4H7q748hk5v531vVYDk2dwBLr ea4ETt5Kdi/p3EZZM1rHqX1Gy6SCvIhtCH1Xg1hdKe8/rHjb+WG5fTJthkyDyBIUz0xF rhPy2QAgVsmJFD+uJjee+hEHsQXyfIFD3u1WlmotWvE2/Ks1K/5gSgbqQAxOgP9wFi+n jcK9S3AMyGitVWBX65CUGSFTv5yVid2mJthiSdxgPXyFeNuRC2txIZHnSx+FR2oV1UNS 159idrXV8Wm+8+LXiU9R8HdjE5VQ9E+hsb1By+KWNFdD7hY0wmBq9oniOwfgz9XBEAiE sr4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=i0v/KX7PDGOWBhmBu7PvBmI/9TXzkIhiF8/roULCWIA=; b=ULBxJjEGZuZvsBQq6XZVDbRfE+5tvoqzeNTGilO/yQ1M8vk8nUl3cUFTjGwDu5tGAA SggNzqsA83/YvfL6GY3CyeHmiZP4GILvV0VlkUM/J8RzIYl9htrvpscKt1vCaxVW6Qiu UPIC8R5AeOqHSAAv8fLcdf1UdsjrC8rZnLPrLON2AY+CullFfwQtKYf7J1Ju3CTfr2Jk 96dmyRK/jE1mGTbJOhV/36q9ryxbmRf05/1YXGQU7QwTidJPAdjW5UhSYmJ8q7dcuary x/76I/UeIB5CqI+G2S/qNFFrWtgMcymHacZCvxqoJDpgj/NLkWmXl5Q0Y2/zBDphCkwx ohAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=n6I+Ljmv; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m25si3926894edr.11.2020.07.03.01.44.32; Fri, 03 Jul 2020 01:44:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=n6I+Ljmv; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725648AbgGCIoc (ORCPT + 16 others); Fri, 3 Jul 2020 04:44:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46588 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725764AbgGCIob (ORCPT ); Fri, 3 Jul 2020 04:44:31 -0400 Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 783C8C08C5C1 for ; Fri, 3 Jul 2020 01:44:31 -0700 (PDT) Received: by mail-wr1-x443.google.com with SMTP id b6so31773927wrs.11 for ; Fri, 03 Jul 2020 01:44:31 -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=i0v/KX7PDGOWBhmBu7PvBmI/9TXzkIhiF8/roULCWIA=; b=n6I+Ljmv6tykD9SmTWqXiDnCdtPvc5J2ksK9dHqUMfPQS4RGsnIbwOdgQN8seJJwGb aHl24m/6220+pgWljVZBTHjlJmMlDNXEeBIxsRquq7mB+DmKO8L9j5eTUUkAW614Rauj 0+wCJBkvtHjKR9WQiXSglGbKeE0e24ov0sYNhFft+U3ERrYEe1jY6T23HjVJ2QEM2+Go 7E7fWWoWzyhE2uZo2Hz2vC8jASUJ2BhjO9TUix6O2eW1CeSpwBJFxmDryQUY0xX6kf2G MWmM2s8Mi2WIs5HLvvkSEbBwsRvpbi/XuBIuzt1OSkjaqZST89zABMbVSQ1OaeG2eXDn jZGQ== 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=i0v/KX7PDGOWBhmBu7PvBmI/9TXzkIhiF8/roULCWIA=; b=HplFarnGmfPM1X+kmBzBImEwei6fuF82kwVz23jNdUDwwZzgmZ8CqCKMh+txX2RzSe IWlcGqDHqrquO6XysarIiBtHlFnrHBaaC0JQit+9xUvTxEYhdsKV8Yo/NfQt9iWksSTh UcuMHiUnVq8zCbvuke0FLcy+XJ1AGjMln2irJhLmEicPJ+hIqeUi4wFptTC4H8bSmjqA 7laGXAJDRSFWd55ZSW3AzOwwmwI2ty9+b9Vpw6sA/KMwaTOlLYKqOoXnRTRRYrzPTCYK I3e0FYCQrrh+oEfyTxVBZPvITwhnC87X028VId7zfz5VBHjRp+/uR3lxAwx0cvhqt1HV jmIQ== X-Gm-Message-State: AOAM5318snX55g90g76iRgJjY/rje9bOgrabpgBfLHxdb0bPqCCqUHej bbUWksiHnSu+iPgSvpB/CAAfC4WR/TfjOA== X-Received: by 2002:adf:dfd1:: with SMTP id q17mr33645090wrn.94.1593765870024; Fri, 03 Jul 2020 01:44:30 -0700 (PDT) Received: from localhost.localdomain ([88.122.66.28]) by smtp.gmail.com with ESMTPSA id b18sm4213116wrs.46.2020.07.03.01.44.29 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 03 Jul 2020 01:44:29 -0700 (PDT) From: Loic Poulain To: sboyd@kernel.org, bjorn.andersson@linaro.org Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, amit.kucheria@linaro.org, Loic Poulain Subject: [PATCH v5 0/5] msm8996 CPU scaling support Date: Fri, 3 Jul 2020 10:49:40 +0200 Message-Id: <1593766185-16346-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 This series is a new tentative for adding MSM8996 CPU scaling support based on the previous Ilia's series, with some of the latest comments addressed. This series has been tested with dragonboard-820c and cpufreq-bench. The CPU opps are limited to maximum nominal frequencies (no turbo). 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 v4: - Rebasing on master - Removing obsolete cooling-min-level and cooling-max-level props - Align cpu trip nodes names with other boards - Fix trip types to passive for cpufreq v5: - Fix reported 0-DAY CI issues, read_cpuid_mpidr usage requires ARM64 conf - Fix cpu_crit node labels - Dedicated patch for speedbin node name change - Added patch description for dtsi patch 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 (3): clk: qcom: Add CPU clock driver for msm8996 arch: arm64: dts: msm8996: Rename speedbin node arch: arm64: dts: msm8996: Add CPU opps and thermal .../bindings/clock/qcom,msm8996-apcc.yaml | 56 +++ arch/arm64/boot/dts/qcom/msm8996.dtsi | 310 +++++++++++- drivers/clk/qcom/Kconfig | 9 + 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 | 4 + drivers/soc/qcom/Makefile | 1 + drivers/soc/qcom/kryo-l2-accessors.c | 57 +++ include/soc/qcom/kryo-l2-accessors.h | 12 + 12 files changed, 1012 insertions(+), 73 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 -- 2.7.4