Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1174449pxb; Fri, 21 Jan 2022 11:27:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJwL02YygYgDVAJt4mrPmWt4l2Owf0kWI5BsQE59H1yiLVCVqEM0Zd3lKxkbYaZGJYgxRe5x X-Received: by 2002:a17:902:db07:b0:14a:f008:2a10 with SMTP id m7-20020a170902db0700b0014af0082a10mr5428006plx.67.1642793271794; Fri, 21 Jan 2022 11:27:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642793271; cv=none; d=google.com; s=arc-20160816; b=am4XLW7BfrkQP821jFJdQP15RIPoaAFLA1iXQAQupNzGQbyctNEDqFULB5RRqp59mN Pso8Ctzb8nocdX+Josz8h83ysTnr0QLvUhNNQOI+xQdXGHHq19HbLDl7FJBlun7YXGoj n3fYiHt94zg5YiSD5z6WdwSggt9YDaFLP0hJFVLp9xlbgDq00AcU+3jrY3bmTSSt4DcH YAotHAAzMZRWhKh+q+AJzn3/i7WHeQBgstRlLbmrPhggzTYR/B1B0lGK8JTz6m1ePYxX Z9ml+Q85wts8CYLDSxHN1CQtuZSguEDm5REuXopISUBXnrQRKsgswk1LaJJh4f0eKR4V yK7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dmarc-filter:sender:dkim-signature; bh=ZIHWxJUCGTzaPIs8V5Uf3YAJfKBUKvRBFsdSQTSPScc=; b=LfVsmE/4HcxCYT2WinMO+RbUWJSD//lYq61PgX7l4HB3/n1NCpXy7BU8vXpHbMG+nU DLZKXrkbGsuLSwMEPWQ78/a8P2iI730iCwzHNaAexZ6ufPKSIRFsmOaTAJFC3OfWv/yq WIatMd9n2cXpbEDUGjkMA4bljQI0CB+zF2cTPmQ6nEEcWV3mvUxrkboX3RVBSZVj7/gj 5KeLh/zaCfEgx9oc8kdnyFAMWaD42DCRpPySXyjVXzSgap8M6mF+H3uEWQK1OySE0MKJ QgbI/afRBUz1mfYTETRIx4OLIicQCYVzuSOSrJffJQuLnD1PU+h++0cX4Vsu+VleZvCO EERA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=t42ffGmI; 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=fail (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v185si1849508pgd.469.2022.01.21.11.27.40; Fri, 21 Jan 2022 11:27:51 -0800 (PST) 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=@mg.codeaurora.org header.s=smtp header.b=t42ffGmI; 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=fail (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1355768AbiASPWK (ORCPT + 99 others); Wed, 19 Jan 2022 10:22:10 -0500 Received: from so254-9.mailgun.net ([198.61.254.9]:57172 "EHLO so254-9.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355680AbiASPVo (ORCPT ); Wed, 19 Jan 2022 10:21:44 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1642605702; h=References: In-Reply-To: Message-Id: Date: Subject: Cc: To: From: Sender; bh=ZIHWxJUCGTzaPIs8V5Uf3YAJfKBUKvRBFsdSQTSPScc=; b=t42ffGmIQipbcEGx1YDFXJbCEq8lRhUvleRt16nahgoBseguBF6ZDhBBks7fNhXnWGwIWjLx T4M8ZZlycswL2te9zqN0OJ+J5aZuVLCgJo/r5O7eG7oQZiZixGVhNvfWh2VGWTenszGEbPbo k4XX6xtMQ8/bjzexEB2uOtUSAkI= X-Mailgun-Sending-Ip: 198.61.254.9 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n04.prod.us-west-2.postgun.com with SMTP id 61e82c847e1ee9b1c184661c (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Wed, 19 Jan 2022 15:21:40 GMT Sender: quic_akhilpo=quicinc.com@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 0CD8EC4360D; Wed, 19 Jan 2022 15:21:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00,SPF_FAIL autolearn=no autolearn_force=no version=3.4.0 Received: from hyd-lnxbld559.qualcomm.com (unknown [202.46.22.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: akhilpo) by smtp.codeaurora.org (Postfix) with ESMTPSA id 7C3AEC43616; Wed, 19 Jan 2022 15:21:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 smtp.codeaurora.org 7C3AEC43616 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=fail (p=none dis=none) header.from=quicinc.com Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=quicinc.com From: Akhil P Oommen To: freedreno , dri-devel@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, Rob Clark , OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS , Dmitry Baryshkov Cc: Andy Gross , Bjorn Andersson , Rob Herring , linux-kernel@vger.kernel.org Subject: [PATCH v2 2/4] arm64: dts: qcom: sc7280: Support gpu speedbin Date: Wed, 19 Jan 2022 20:51:19 +0530 Message-Id: <20220119205012.v2.2.I4c2cb95f06f0c37038c80cc1ad20563fdf0618e2@changeid> X-Mailer: git-send-email 2.7.4 In-Reply-To: <20220119205012.v2.1.Ibac66e1e0e565313bc28f192e6c94cb508f205eb@changeid> References: <20220119205012.v2.1.Ibac66e1e0e565313bc28f192e6c94cb508f205eb@changeid> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add the speedbin fuse and the required opps to support gpu sku. Signed-off-by: Akhil P Oommen --- (no changes since v1) arch/arm64/boot/dts/qcom/sc7280.dtsi | 46 ++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc7280.dtsi b/arch/arm64/boot/dts/qcom/sc7280.dtsi index 365a2e0..f8fc8b8 100644 --- a/arch/arm64/boot/dts/qcom/sc7280.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7280.dtsi @@ -605,6 +605,11 @@ power-domains = <&rpmhpd SC7280_MX>; #address-cells = <1>; #size-cells = <1>; + + gpu_speed_bin: gpu_speed_bin@1e9 { + reg = <0x1e9 0x2>; + bits = <5 8>; + }; }; sdhc_1: sdhci@7c4000 { @@ -1762,6 +1767,9 @@ interconnect-names = "gfx-mem"; #cooling-cells = <2>; + nvmem-cells = <&gpu_speed_bin>; + nvmem-cell-names = "speed_bin"; + gpu_opp_table: opp-table { compatible = "operating-points-v2"; @@ -1769,18 +1777,56 @@ opp-hz = /bits/ 64 <315000000>; opp-level = ; opp-peak-kBps = <1804000>; + opp-supported-hw = <0x03>; }; opp-450000000 { opp-hz = /bits/ 64 <450000000>; opp-level = ; opp-peak-kBps = <4068000>; + opp-supported-hw = <0x03>; }; opp-550000000 { opp-hz = /bits/ 64 <550000000>; opp-level = ; opp-peak-kBps = <6832000>; + opp-supported-hw = <0x03>; + }; + + opp-608000000 { + opp-hz = /bits/ 64 <608000000>; + opp-level = ; + opp-peak-kBps = <8368000>; + opp-supported-hw = <0x02>; + }; + + opp-700000000 { + opp-hz = /bits/ 64 <700000000>; + opp-level = ; + opp-peak-kBps = <8532000>; + opp-supported-hw = <0x02>; + }; + + opp-812000000 { + opp-hz = /bits/ 64 <812000000>; + opp-level = ; + opp-peak-kBps = <8532000>; + opp-supported-hw = <0x02>; + }; + + opp-840000000 { + opp-hz = /bits/ 64 <840000000>; + opp-level = ; + opp-peak-kBps = <8532000>; + opp-supported-hw = <0x02>; + }; + + opp-900000000 { + opp-hz = /bits/ 64 <900000000>; + opp-level = ; + opp-peak-kBps = <8532000>; + opp-supported-hw = <0x02>; }; }; }; -- 2.7.4