Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp696150pxm; Fri, 25 Feb 2022 17:32:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJxoNyHUe6yZt3OjNnUgs2bqf9MsUlfdQZ4PHwhT9gStK7bw2B24WOdWDeasXyFDM9w3jVIq X-Received: by 2002:a17:902:aa88:b0:151:3829:a91a with SMTP id d8-20020a170902aa8800b001513829a91amr4480173plr.158.1645839131520; Fri, 25 Feb 2022 17:32:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645839131; cv=none; d=google.com; s=arc-20160816; b=oOGI1iYg941KhJPZfh+NR+C/SpScmjWy0d90adReuncUYrJk8NAJc++Eo4lzR7X7V9 lX2XPg2eBWJy4hGgpnp3NoS5FctA+T+fvrzVkA4z0UqvjVGKCZBrbqIPZhH+48xfHynm gZDEr9Y3arubrU8cquXNoSo1PyggfC0Xlk7gIMQetAwWUGvZN+ms2WU/J8ArlhliyuVJ DvQD3srRHx/k3Fj5LR9G46dz6SlA3lM3SL7UPHhWrC3LaOkWZJfaFEdQhEbt1wgw77Gc cffenUfQsmsCIxgpr9DCNgbkoCYtTzE4zIazHiIon9NkkrBsTFdEezfwArA+b9MUGcAt yoAg== 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=cCBg/D6SOxICZ8bzSkUecbzVhRVyvFsZfNOMBfa81yQ=; b=LcqZNVFpOvR0hP5zrgMgvdZJxC3ipWGwTgHEeFTiCc54TJwsMJ5Y6YNStGL+AzXEEB Fx1t13MkkrOvSnzMwdAbGwwPNTiGa/7+QanOdMtMPYrAE2eQknG1OK3ilKWMViaL5syv GcmJmJbcGFyMJts10F4Kj6ddnGxCSk6BPX2LhmFPUxmZ/hxxEsV/r513J9tNU0MoL7AP NTkXuvJNzqt03GAbKu5eD3mshHJf5vsRMcuoCnFsGDwb/r7Go//NgbY4Kh2oOzL0lfEi VAaUuPb498zKiuH4afwsZORDbOkit3XcFk4F3GdOYx/QCK8nHrGxL2srHdeGmlwUtByt 24Zw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=GiLBjagw; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id b21-20020a056a000cd500b004e196837c4fsi3502227pfv.75.2022.02.25.17.32.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Feb 2022 17:32:11 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=GiLBjagw; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A7C5D10FD5; Fri, 25 Feb 2022 17:28:36 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233256AbiBYTXA (ORCPT + 99 others); Fri, 25 Feb 2022 14:23:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234708AbiBYTWt (ORCPT ); Fri, 25 Feb 2022 14:22:49 -0500 Received: from m43-7.mailgun.net (m43-7.mailgun.net [69.72.43.7]) by lindbergh.monkeyblade.net (Postfix) with UTF8SMTPS id DADC41E480C for ; Fri, 25 Feb 2022 11:22:15 -0800 (PST) DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1645816935; h=References: In-Reply-To: Message-Id: Date: Subject: Cc: To: From: Sender; bh=cCBg/D6SOxICZ8bzSkUecbzVhRVyvFsZfNOMBfa81yQ=; b=GiLBjagwa84+/zKkasOhAmm2ZPwK/3ltoe723sONtiaxvJJE4VrJcU0ct2rW/4HK/r1hncUp u/zriRZqoOTY7oQxQscaMDZZN4pJ5mD8fPgC7tY/QqOAwmBjCou5AQDMy9kj2iqKx/flCdEa 07fvl0Bem1czazdzzLltrnGSsqU= X-Mailgun-Sending-Ip: 69.72.43.7 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-n07.prod.us-east-1.postgun.com with SMTP id 62192c6727716a6952abc92b (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Fri, 25 Feb 2022 19:22:15 GMT Sender: quic_akhilpo=quicinc.com@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id D9D24C4361A; Fri, 25 Feb 2022 19:22:14 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 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 7CD9CC43638; Fri, 25 Feb 2022 19:22:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 smtp.codeaurora.org 7CD9CC43638 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 , Bjorn Andersson Cc: Andy Gross , Rob Herring , linux-kernel@vger.kernel.org Subject: [PATCH v2 5/5] arm64: dts: qcom: sc7280: Support gpu speedbin Date: Sat, 26 Feb 2022 00:51:32 +0530 Message-Id: <20220226005021.v2.5.I4c2cb95f06f0c37038c80cc1ad20563fdf0618e2@changeid> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1645816893-22815-1-git-send-email-quic_akhilpo@quicinc.com> References: <1645816893-22815-1-git-send-email-quic_akhilpo@quicinc.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add speedbin fuse and additional OPPs for gpu to support sc7280 SKUs. 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