From patchwork Sun Jul 24 14:04:15 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 593213 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 1B69FC43334 for ; Sun, 24 Jul 2022 14:04:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231318AbiGXOEa (ORCPT ); Sun, 24 Jul 2022 10:04:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57078 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229578AbiGXOEa (ORCPT ); Sun, 24 Jul 2022 10:04:30 -0400 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B476B12634 for ; Sun, 24 Jul 2022 07:04:25 -0700 (PDT) Received: by mail-lf1-x133.google.com with SMTP id a23so12043913lfm.10 for ; Sun, 24 Jul 2022 07:04:25 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=s0ASRw18lgzywYyTsagXKKvbBg90h5rD8OpC1S5h+xM=; b=mdC50YomQRDZdmSUXeSVcoqF2unvVSJwSGOTDBOhGSB6NG9wjTN4yfUDwie7qJQ2D3 tBoM2jFBm7xUbDt33guWjzjQCWiPJpyeiyo/DA+Xi2+whDBYAxQV0S8atBV3W2OCTKyR S4uQpaxBqUzcoG16O5fxb0Ri+Qg+da+Vf4Avri/yEBgjLbn293ZX9oRuyxoT/PCCru9J wE5KyYUpU+BiP5pxGxN6bXsoc/ZP/RbFt072hn+rPFH6HnPbnxrgnazK4rjOfzWtwbFQ Z2ea2GVhC3WZqY34kKDBSCAddbRNOtFsbmFkGIzgs7YauZloBFsHThH6py/DeA7GZxD3 Fd4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=s0ASRw18lgzywYyTsagXKKvbBg90h5rD8OpC1S5h+xM=; b=h3nxHL90yCb8gs9KQxVcTLrvFKnFwyt2V7WqYxoVKAXrV9tWqVfMR/hkfU0rDIhcwI Jh1ghsrKf/HS2Wp1LV+xDS/YVQuTjq8fz52YcfwQzMFrnyAyV1JTnQETNL1BxhlIfmzd koXe+wP2pa4gY2qjJMWMGM7ZcroQ1z1DP/l92ANY7e+oaukraD9gE8hcDllXBmdHnv18 Vn42qJbzKIDJmtAB//HjkZFcDZI6Hy23fXOPv95wW0MmshxpwrS0AKApDeAYCrMvDp1d c4kKaYDeE/Uz/uWX6ZDq3ATHOYzmzvPx3EZcb654CV+MAlFV48na03gLgwEpmag+bn34 aeKg== X-Gm-Message-State: AJIora/XMTI+FeOl5C84Wt0Xg5uTt0ymG2khJy+PsA/cGVRTRO9tOGq9 2IlhpzeEo5JAtTefIbsjBbc98Q== X-Google-Smtp-Source: AGRyM1vIOOLvlHTeWbJYtiX/0i9kEkNs3w/skZ6e1qHR6S0B5uLfGe9xYtt6fYR2nGwubfYk/8lmxA== X-Received: by 2002:a05:6512:2394:b0:48a:7cfd:72ac with SMTP id c20-20020a056512239400b0048a7cfd72acmr2960663lfv.411.1658671463981; Sun, 24 Jul 2022 07:04:23 -0700 (PDT) Received: from eriador.lan ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id s13-20020a056512202d00b00489dedf1dcfsm2192622lfs.289.2022.07.24.07.04.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Jul 2022 07:04:23 -0700 (PDT) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, Yassine Oudjana Subject: [PATCH 1/7] dt-bindings: arm: qcom: separate msm8996pro bindings Date: Sun, 24 Jul 2022 17:04:15 +0300 Message-Id: <20220724140421.1933004-2-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220724140421.1933004-1-dmitry.baryshkov@linaro.org> References: <20220724140421.1933004-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Xiaomi Mi 5s Plus (natrium) and Xiaomi Mi Note 2 (scorpio) use MSM8996Pro rather than plain MSM8996. Describe this in the arm/qcom.yaml bindings. Since MSM8996Pro is largely compatible with MSM8996, keep old compatible too rather than insiting on qcom,msm8996pro only. This allows the code that doesn't yet know about msm8996pro to continue supporting these devices. Signed-off-by: Dmitry Baryshkov Reviewed-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/arm/qcom.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/qcom.yaml b/Documentation/devicetree/bindings/arm/qcom.yaml index fb1d00bcc847..3892aedd9215 100644 --- a/Documentation/devicetree/bindings/arm/qcom.yaml +++ b/Documentation/devicetree/bindings/arm/qcom.yaml @@ -223,8 +223,13 @@ properties: - sony,kagura-row - sony,keyaki-row - xiaomi,gemini + - const: qcom,msm8996 + + - items: + - enum: - xiaomi,natrium - xiaomi,scorpio + - const: qcom,msm8996pro - const: qcom,msm8996 - items: From patchwork Sun Jul 24 14:04:18 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 593212 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 88AD7CCA48E for ; Sun, 24 Jul 2022 14:04:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230055AbiGXOEd (ORCPT ); Sun, 24 Jul 2022 10:04:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57096 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230063AbiGXOEa (ORCPT ); Sun, 24 Jul 2022 10:04:30 -0400 Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 886B512621 for ; Sun, 24 Jul 2022 07:04:28 -0700 (PDT) Received: by mail-lf1-x129.google.com with SMTP id p10so6882498lfd.9 for ; Sun, 24 Jul 2022 07:04:28 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=kstyrt0XJSckYmgk033hhfAcj8eyuSwLu1LDNFgz1o8=; b=eeVwxImNS4ubJ29h1XNHDAG0DzYVWUXzBK2jPhBgvcSRYxTvRR4rPADU36LdxAtkmk /q1y1xcUzA3J5gV+2SPQwqHNQCyjxonrzaXP36sSpvzwWywRnV7kDtreVuSjFpKxpTy7 0DQ/2hh7cdKWYmEB8eJDssXOL+bm5OCAngiWmkhRaXJRjXSNXVhGwcnqn+icUbkUs4sO WMopIr3WrRUMOCxXLL1UKTjSvLgWGe4sVB//sKfdOVi/DsysaN44d8GPD/gEHJTW1za8 eluWD1yTYbLLrQUgle5NW+g5sPX/3tcgmB0ZUHSCg1YA/JixDE6WcWW3VCpZyY9dFnLe FHyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=kstyrt0XJSckYmgk033hhfAcj8eyuSwLu1LDNFgz1o8=; b=PL+JTEzFT2qhNVb/h1OrKTVOVtZpdn633Ly6JF+VY6v7mOOc8r7JL5eNKF6r8B4GBe dACN2F62DKfzrtcYzDvXTVlw7whDrynNllFuofOUNGCpBqqPH1w9l2lsWKfxV6JF6ATT P07NbRhpYh3QJYT4B0U7plrnHIUmtf6bW7pkIic7HicE699qfHpV62GAJ+VEE7nEczWw XSxo14zBFqwnVXSnT3zV+QIfCSHlCmeZRCSIvj4jdV7Fibdj9xI/kK+u84pSepejPSdj F2zSUj/xX67bmc09Kovoj9HyfqyJo6PdMba6MeRkiWxU1C44sONN+EL6Z53264fWn76c DzlQ== X-Gm-Message-State: AJIora/gZNsJwKWb3yrKDeWfP3uIaqLxcWcixT0vPKYr6gUYYl6jZcEL TdbrMED7SJw8OF+EZNJug4qpAQ== X-Google-Smtp-Source: AGRyM1sl6nqUDQCpKQmfBJccBkddpkh40nbW0ylG1/Y7zzA4YtQ9dJBe0YBnjWKmCSeQIgVMukd1/w== X-Received: by 2002:a05:6512:a8e:b0:48a:7513:6d83 with SMTP id m14-20020a0565120a8e00b0048a75136d83mr3271916lfu.56.1658671466896; Sun, 24 Jul 2022 07:04:26 -0700 (PDT) Received: from eriador.lan ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id s13-20020a056512202d00b00489dedf1dcfsm2192622lfs.289.2022.07.24.07.04.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Jul 2022 07:04:26 -0700 (PDT) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, Yassine Oudjana Subject: [PATCH 4/7] arm64: dts: qcom: msm8996: fix supported-hw in cpufreq OPP tables Date: Sun, 24 Jul 2022 17:04:18 +0300 Message-Id: <20220724140421.1933004-5-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220724140421.1933004-1-dmitry.baryshkov@linaro.org> References: <20220724140421.1933004-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Adjust MSM8996 cpufreq tables according to tables in msm-3.18. Some of the frequencies are not supported on speed bins other than 0. Also other speed bins support intermediate topmost frequencies, not supported on speed bin 0. Implement all these differencies. Fixes: 90173a954a22 ("arm64: dts: qcom: msm8996: Add CPU opps") Signed-off-by: Dmitry Baryshkov Acked-by: Krzysztof Kozlowski --- arch/arm64/boot/dts/qcom/msm8996.dtsi | 38 ++++++++++++++++++++------- 1 file changed, 29 insertions(+), 9 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi b/arch/arm64/boot/dts/qcom/msm8996.dtsi index 41c09895268e..24791ed436c5 100644 --- a/arch/arm64/boot/dts/qcom/msm8996.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8996.dtsi @@ -203,22 +203,32 @@ opp-1228800000 { }; opp-1324800000 { opp-hz = /bits/ 64 <1324800000>; - opp-supported-hw = <0x7>; + opp-supported-hw = <0x5>; + clock-latency-ns = <200000>; + }; + opp-1363200000 { + opp-hz = /bits/ 64 <1363200000>; + opp-supported-hw = <0x2>; clock-latency-ns = <200000>; }; opp-1401600000 { opp-hz = /bits/ 64 <1401600000>; - opp-supported-hw = <0x7>; + opp-supported-hw = <0x5>; clock-latency-ns = <200000>; }; opp-1478400000 { opp-hz = /bits/ 64 <1478400000>; - opp-supported-hw = <0x7>; + opp-supported-hw = <0x1>; + clock-latency-ns = <200000>; + }; + opp-1497600000 { + opp-hz = /bits/ 64 <1497600000>; + opp-supported-hw = <0x04>; clock-latency-ns = <200000>; }; opp-1593600000 { opp-hz = /bits/ 64 <1593600000>; - opp-supported-hw = <0x7>; + opp-supported-hw = <0x1>; clock-latency-ns = <200000>; }; }; @@ -329,29 +339,39 @@ opp-1785600000 { opp-supported-hw = <0x7>; clock-latency-ns = <200000>; }; + opp-1804800000 { + opp-hz = /bits/ 64 <1804800000>; + opp-supported-hw = <0x6>; + clock-latency-ns = <200000>; + }; opp-1824000000 { opp-hz = /bits/ 64 <1824000000>; - opp-supported-hw = <0x7>; + opp-supported-hw = <0x1>; + clock-latency-ns = <200000>; + }; + opp-1900800000 { + opp-hz = /bits/ 64 <1900800000>; + opp-supported-hw = <0x4>; clock-latency-ns = <200000>; }; opp-1920000000 { opp-hz = /bits/ 64 <1920000000>; - opp-supported-hw = <0x7>; + opp-supported-hw = <0x1>; clock-latency-ns = <200000>; }; opp-1996800000 { opp-hz = /bits/ 64 <1996800000>; - opp-supported-hw = <0x7>; + opp-supported-hw = <0x1>; clock-latency-ns = <200000>; }; opp-2073600000 { opp-hz = /bits/ 64 <2073600000>; - opp-supported-hw = <0x7>; + opp-supported-hw = <0x1>; clock-latency-ns = <200000>; }; opp-2150400000 { opp-hz = /bits/ 64 <2150400000>; - opp-supported-hw = <0x7>; + opp-supported-hw = <0x1>; clock-latency-ns = <200000>; }; }; From patchwork Sun Jul 24 14:04:20 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 593211 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 BF1F7C433EF for ; Sun, 24 Jul 2022 14:04:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230063AbiGXOEd (ORCPT ); Sun, 24 Jul 2022 10:04:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57138 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231591AbiGXOEb (ORCPT ); Sun, 24 Jul 2022 10:04:31 -0400 Received: from mail-lj1-x236.google.com (mail-lj1-x236.google.com [IPv6:2a00:1450:4864:20::236]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8879012634 for ; Sun, 24 Jul 2022 07:04:30 -0700 (PDT) Received: by mail-lj1-x236.google.com with SMTP id o12so10338608ljc.3 for ; Sun, 24 Jul 2022 07:04:30 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=oKmnR8pcWpFGv+QMlFKOsQCj6vs8uoDIFMT8NXu4mE4=; b=BbUEJ5yryTOknJOga7tAdzzxQAAl/+zE4ertI1WlpIJkzy2AAI+FNvWicbtP1Xf+7Z 85DzniV+WEi/m4UwekFaNZpydoyuSLv1lSCAbcSnGOAgWS4rxFmD4wbj7OlxeGvUEjEk Ll4rPPJJt/OtQ+4Lld8GbRxjwFSENPtJVgX63VE7T/T4ER+9Aw+p0kKLUW0nY99lkKTc VMPq4vOpuJBzmBNMVJ6WpdvCs4b3d562VxpxdwiyphDfC0vJEPBV6720B48iX6+G9ri8 5817niPo/IP2ouyE7QTh0fx1Fa3/suRXrLh91w2SPF/iyOCtw8vm3yudlCUgO+cQGCc2 FvRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=oKmnR8pcWpFGv+QMlFKOsQCj6vs8uoDIFMT8NXu4mE4=; b=6fPTR/dwba0THtH0f0ZcHwbGRx9yEimDLKjSBB1TIkbPsSocES61lFBL0Y2Vwk8fKR gl59NKyKpEM10liw2o0Oz5uC8pDA7wxA5W2ygyhqqjXHPGA1QS0GDQBKMYd6oZ0nzpuf IQKAJTyt8s5VUqKULmSdniVVeiQPucOPyhmx141kSYsyjK7g1DmaYGyjBrmQAePWf/MM FXMPT3R1xN9Nyyo4H15lgZCMr8yPnmYRElM0WM28BO8SP6E+A1tfog4DNn0HhaqWItx4 v6mNm99AGLaP95mhZy0yiGDFDvBUcmu/6dgeXUfb61WkEMfcxYQXQBMSItWM8puuPPRx Kqww== X-Gm-Message-State: AJIora8bwdoLgfWdxriDesiv2MOTlvn1Tmb3gX+hY96JqnXo8HMlj6E3 /le7rZzCWb+BWjO2j++Ba1Bdtg== X-Google-Smtp-Source: AGRyM1vNwBgh5Q8CltLCA8YuXXXU4qliUHu5dJy1ZJA9o0NqxOXhMwALe8Ik5TCoLIZDppIAMa+NQg== X-Received: by 2002:a2e:a884:0:b0:25d:d8a2:d18c with SMTP id m4-20020a2ea884000000b0025dd8a2d18cmr2613583ljq.305.1658671468673; Sun, 24 Jul 2022 07:04:28 -0700 (PDT) Received: from eriador.lan ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id s13-20020a056512202d00b00489dedf1dcfsm2192622lfs.289.2022.07.24.07.04.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Jul 2022 07:04:28 -0700 (PDT) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, Yassine Oudjana Subject: [PATCH 6/7] arm64: dts: qcom: msm8996: fix GPU OPP table Date: Sun, 24 Jul 2022 17:04:20 +0300 Message-Id: <20220724140421.1933004-7-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220724140421.1933004-1-dmitry.baryshkov@linaro.org> References: <20220724140421.1933004-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Fix Adreno OPP table according to the msm-3.18. Enable 624 MHz for the speed bin 3 and 560 MHz for bins 2 and 3. Fixes: 69cc3114ab0f ("arm64: dts: Add Adreno GPU definitions") Signed-off-by: Dmitry Baryshkov Acked-by: Krzysztof Kozlowski --- arch/arm64/boot/dts/qcom/msm8996.dtsi | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi b/arch/arm64/boot/dts/qcom/msm8996.dtsi index 3ce572f3765f..6dfd30a91af7 100644 --- a/arch/arm64/boot/dts/qcom/msm8996.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8996.dtsi @@ -1228,17 +1228,17 @@ gpu_opp_table: opp-table { compatible = "operating-points-v2"; /* - * 624Mhz and 560Mhz are only available on speed - * bin (1 << 0). All the rest are available on - * all bins of the hardware + * 624Mhz is only available on speed bins 0 and 3. + * 560Mhz is only available on speed bins 0, 2 and 3. + * All the rest are available on all bins of the hardware. */ opp-624000000 { opp-hz = /bits/ 64 <624000000>; - opp-supported-hw = <0x01>; + opp-supported-hw = <0x09>; }; opp-560000000 { opp-hz = /bits/ 64 <560000000>; - opp-supported-hw = <0x01>; + opp-supported-hw = <0x0d>; }; opp-510000000 { opp-hz = /bits/ 64 <510000000>; From patchwork Sun Jul 24 14:04:21 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 593210 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 63462CCA48A for ; Sun, 24 Jul 2022 14:04:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231238AbiGXOEf (ORCPT ); Sun, 24 Jul 2022 10:04:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57136 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229966AbiGXOEc (ORCPT ); Sun, 24 Jul 2022 10:04:32 -0400 Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3CA2212621 for ; Sun, 24 Jul 2022 07:04:31 -0700 (PDT) Received: by mail-lj1-x229.google.com with SMTP id b34so5125848ljr.7 for ; Sun, 24 Jul 2022 07:04: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:in-reply-to:references :mime-version:content-transfer-encoding; bh=TMAnf+EGgmUpjbvOUJCY6VfEl67ycFCn6aKjkzHtu64=; b=JbkVxxRv5J1hnELOOT67MG2BhN9fVtaCGLTmRqRmg6+bxj6quwhC/7iNK5eZuP6U2k l5t4bhLmGs/7/VsO1aUe5u4NJ+vcMfO4tz5r/eQEwqbzs6o6E2XeoxPBXfa4Vm1oBQlh YK+CXX2ry+EGg1YRNnN7NAlGz8Jn/g/pdC9ng1Oh2dB+RK77deXHfOjy6HZJN2GyYeRU x5of9YeJaUKRZSfm/MLcFP+RUKEjSAbuQMsgGPRUMKPq87AQ+8t/K1PK8o4lrziJ0LEo rRKpeIvsLZTguFUXVY5hqh3SNTkB+MtOjyF0u+7y6I86OQgo/valcG27Wuz4U3Xp1ATa 1KZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=TMAnf+EGgmUpjbvOUJCY6VfEl67ycFCn6aKjkzHtu64=; b=rME8Oj6AJ+yOEpSkytEvU23H2FO1k/MyYbamC2LCXkGHfZomYzdchoA9BiVgK64Y4A tDCuo5p4xrtazRAqljAPn8M8KJoGCm1//8HULg85znjMUvxkTHy7JDW33HMtvqG0+AFK gY/cr2V8X2Ld6R7ybFTzGRdlYhRFjb3JMn1Zua9Xq/pS9zZLsEi8WDQASZL/nJDzz+o4 GWTBM8BCizRkihoNHrlAkEqDMccBgs9I14J4zTCqMUbeJkgIbM7VLX/hBFyFjzo0Ijir KWhPCpfADkqv7RA5EHvVC2evIY6/W8xJTXhNS0/m1jJuyAcb5YX0Qn3xU7rEjL3tQH8I flWQ== X-Gm-Message-State: AJIora88a+yQ0ElzMboKcYT3x8g8vUaKCvI/0HyVrYQBgJQrLbPn3YXF 81LJ15Ll1vcAW+B/e/KuODMApw== X-Google-Smtp-Source: AGRyM1t+84hjXgSu4poB9GAB58EJvbG7rZcyIreXIf3+bAoqBcTooIDVjgoOoYT4BaS8x8XvXBqVhw== X-Received: by 2002:a2e:3209:0:b0:25d:644e:b9d4 with SMTP id y9-20020a2e3209000000b0025d644eb9d4mr2606210ljy.13.1658671469540; Sun, 24 Jul 2022 07:04:29 -0700 (PDT) Received: from eriador.lan ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id s13-20020a056512202d00b00489dedf1dcfsm2192622lfs.289.2022.07.24.07.04.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Jul 2022 07:04:29 -0700 (PDT) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, Yassine Oudjana Subject: [PATCH 7/7] arm64: dts: qcom: msm8996pro: expand Adreno OPP table Date: Sun, 24 Jul 2022 17:04:21 +0300 Message-Id: <20220724140421.1933004-8-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220724140421.1933004-1-dmitry.baryshkov@linaro.org> References: <20220724140421.1933004-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org There are minor differeces between msm8996 and msm8996pro in terms of GPU frequencies support. For example msm8996pro supports 652.8 MHz frequency for the Adreno. Reclect these differences in msm8996pro.dtsi. Signed-off-by: Dmitry Baryshkov Acked-by: Krzysztof Kozlowski --- arch/arm64/boot/dts/qcom/msm8996pro.dtsi | 25 ++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8996pro.dtsi b/arch/arm64/boot/dts/qcom/msm8996pro.dtsi index 63e1b4ec7a36..a679a9c0cf99 100644 --- a/arch/arm64/boot/dts/qcom/msm8996pro.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8996pro.dtsi @@ -264,3 +264,28 @@ opp-2342400000 { }; }; }; + +&gpu_opp_table { + /* + * Unlike CPU opp tables, the GPU driver does not shift speed bins. + * + * 652.8 Mhz is available on speed bin 0 only. + * 624 Mhz and 560 Mhz are available on speed bins 0 and 1. + * All the rest are available on all bins of the hardware (like on + * plain 8996). + */ + + opp-652800000 { + opp-hz = /bits/ 64 <652800000>; + opp-supported-hw = <0x01>; + }; + opp-624000000 { + opp-hz = /bits/ 64 <624000000>; + opp-supported-hw = <0x03>; + }; + opp-560000000 { + opp-hz = /bits/ 64 <560000000>; + opp-supported-hw = <0x03>; + }; + /* The rest is inherited from msm8996 */ +};