Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp4255158pxb; Thu, 14 Oct 2021 01:32:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwJTrvWuvb4UyBwPZ69HpHnSk1WiiHqdO4O/XfxHi5UmWcazaLPPOJFPZ36rIXNpaTr0gmz X-Received: by 2002:a17:902:a50f:b029:11a:b033:e158 with SMTP id s15-20020a170902a50fb029011ab033e158mr3769580plq.26.1634200333372; Thu, 14 Oct 2021 01:32:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634200333; cv=none; d=google.com; s=arc-20160816; b=IJ3QvzW/svUCh1TYtVoIZGw8gxaMAEEoIqmKlUQAQcIUFJNLvHaraxUa+Cn49atG0k PrTohNQuol5m9+pnKNn9mfhxAcvFfAXlL2mmjbJ+HARlmyoIKinU9n70ihy1czwYfzcZ l9CByNahjy58BoJ1k1D1Cxfrd7m8TzfOl6BVKz/GNALg0bM3KzJDJUB+ri3gFa0CL5wm KhoHlDNYYz1fyCXpfnUMETI9cOYSk1yEJCo6DIXmtWN5reFBOfE44kXaAqqOiU610KsY kLw6uOosFxQkiqjX53OCMjMfIeLY68zgTN3L9JEcE6Jfu4SnAG3gfeQJ4sMHJEot7E+r Hegg== 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:subject:reply-to:cc:from:to:dkim-signature:date; bh=dYBtx/f72FXDYETSYLf5EAjO7iUAZoohiB+Y/H5mUU0=; b=eFuRjLan9VDOzq/zWrkIS8Z4egIjWPhLClKRZboWDcf9RXaSnnYivkw6hbxMZjjtpq WSf7HpAqO5oZ3YYJNUwFl5R0GltSD25i+TjeODyfxxDb3LMcHxxxGGndKPZ/iNHfWUmr G1J23LEA9X/SkxjrHpzwQ5Fp2JIOOiBi1t7HTgZp4nLMblJWPw3ad8QlYpUxapxRWwBN /tgMjn1JGZgV4VpQG2wrGVkBjsyHdhqU83gzOS255clgjDnJamK9eTv0n/EFBJA9QdTJ FNtIgiPh0AeJmFX36JD0XlJsWyhB2E0yXu5toF+MJhBsbTO7SmwLk9kYC9CeyoTGEmmM ZZuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail header.b=I8a9Rl4Q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u12si2831519pgr.18.2021.10.14.01.31.59; Thu, 14 Oct 2021 01:32:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@protonmail.com header.s=protonmail header.b=I8a9Rl4Q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230172AbhJNIcy (ORCPT + 99 others); Thu, 14 Oct 2021 04:32:54 -0400 Received: from mail-4318.protonmail.ch ([185.70.43.18]:12483 "EHLO mail-4318.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230161AbhJNIcy (ORCPT ); Thu, 14 Oct 2021 04:32:54 -0400 Date: Thu, 14 Oct 2021 08:30:38 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1634200246; bh=dYBtx/f72FXDYETSYLf5EAjO7iUAZoohiB+Y/H5mUU0=; h=Date:To:From:Cc:Reply-To:Subject:From; b=I8a9Rl4QsX2UuPOvVMYlUxxXgztYNgff7Vaf223KD4KAhJcfPaqG/tZS9CBWXGBZ6 hUrTCrUApoOEEtsMxuvFdPhHb1nZYwRTWnQqxj4SEzeiV78Ia67O8Y3bfMXavEEmnG wVFvSlB4BNVt8CDZ42a8x9etqiBLIF/+EZYCUUMI= To: Andy Gross , Bjorn Andersson , Michael Turquette , Stephen Boyd , Rob Herring , Ilia Lin , Viresh Kumar , Nishanth Menon , "Rafael J. Wysocki" , Loic Poulain From: Yassine Oudjana Cc: Yassine Oudjana , Konrad Dybcio , AngeloGioacchino Del Regno , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org Reply-To: Yassine Oudjana Subject: [PATCH 0/8] Add support for MSM8996 Pro Message-ID: <20211014083016.137441-1-y.oudjana@protonmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org MSM8996 Pro (also known as MSM8996SG) is a newer revision of MSM8996 with different CPU/CBF/GPU frequencies and CPR parameters. Its CBF clock al= so has a different divisor. This series handles the difference in the CBF clock and adds a new DTSI for MSM8996 Pro with CPU and GPU OPPs. It also removes reading msm-id from SMEM in qcom-cpufreq-nvmem as it becomes no longer necessary. Separating MSM8996 and MSM8996 Pro will help with implementing CBF scaling and CPR; since they have different CPR parameters and CPU:CBF OPP mapping which is difficult to implement in the same cluster OPP tables. Dependencies: - clk: qcom: msm8996-cpu: Add CBF support https://lore.kernel.org/linux-arm-msm/20210528192541.1120703-1-konrad.dyb= cio@somainline.org/ - arm64: dts: qcom: msm8996: Add support for the CBF clock https://lore.kernel.org/linux-arm-msm/20210528192541.1120703-2-konrad.dyb= cio@somainline.org/ Yassine Oudjana (8): dt-bindings: clk: qcom: msm8996-apcc: Add CBF dt-bindings: clk: qcom: msm8996-apcc: Add MSM8996 Pro compatible clk: qcom: msm8996-cpu: Add MSM8996 Pro CBF support cpufreq: qcom_cpufreq_nvmem: Simplify reading kryo speedbin dt-bindings: opp: Convert qcom-nvmem-cpufreq to DT schema dt-bindings: opp: qcom-cpufreq-nvmem: Remove SMEM arm64: dts: qcom: msm8996: Add MSM8996 Pro support arm64: dts: qcom: msm8996-xiaomi-scorpio: Include msm8996pro.dtsi .../bindings/clock/qcom,msm8996-apcc.yaml | 11 +- .../bindings/opp/qcom-cpufreq-nvmem.yaml | 557 ++++++++++++ .../bindings/opp/qcom-nvmem-cpufreq.txt | 796 ------------------ MAINTAINERS | 2 +- .../boot/dts/qcom/msm8996-xiaomi-common.dtsi | 3 - .../boot/dts/qcom/msm8996-xiaomi-gemini.dts | 1 + .../boot/dts/qcom/msm8996-xiaomi-scorpio.dts | 2 +- arch/arm64/boot/dts/qcom/msm8996.dtsi | 82 +- arch/arm64/boot/dts/qcom/msm8996pro.dtsi | 281 +++++++ drivers/clk/qcom/clk-cpu-8996.c | 61 +- drivers/cpufreq/Kconfig.arm | 1 - drivers/cpufreq/qcom-cpufreq-nvmem.c | 75 +- 12 files changed, 935 insertions(+), 937 deletions(-) create mode 100644 Documentation/devicetree/bindings/opp/qcom-cpufreq-nvme= m.yaml delete mode 100644 Documentation/devicetree/bindings/opp/qcom-nvmem-cpufre= q.txt create mode 100644 arch/arm64/boot/dts/qcom/msm8996pro.dtsi --=20 2.33.0