Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5825249rdb; Wed, 13 Dec 2023 23:57:24 -0800 (PST) X-Google-Smtp-Source: AGHT+IGeqQC1lhH1DNJZAHZi8xTYL5Qv/JJ9n0Kp5VmDw4iom6XzvQXS8WMQl7xQXm2/3o2tixM3 X-Received: by 2002:a17:902:e9cd:b0:1d0:8fad:f187 with SMTP id 13-20020a170902e9cd00b001d08fadf187mr8221581plk.48.1702540644153; Wed, 13 Dec 2023 23:57:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702540644; cv=none; d=google.com; s=arc-20160816; b=GrVvijgvwyF7bmFL34ZxmLv31LaoD0e7RJEsu/O5oNyCKLkkRHfl/jTG0fbF00IB7m vGWs9Sg/6LZRzyApAf+nfuAwbROlRmRLkSgZ4Zi4cxCSUrOLWiYtmwZYfyQ2/48WZ4DC mlitys9jT6JFQG5S1tAGgrNaYtmOtH9RJNB2ivQyW5Gt99gXy1YVKsn/B+6HJZGaWme9 uDEi5m94pwk03FjutcTAphMCZ+kQNweCSTRbcmEPC9ZsfbHfbePB8sP1ZCpE4LY9ks40 7W2DsLhVJy2uA9ozzB+ixSBs4tIGH7Ruu9A6Y9+BQYploIu4tJtMf10/KoaltK3ip66F SGwA== 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:date:subject:cc:to:from:dkim-signature; bh=3lHhBGyswinmAFRMz+DLytZSA7pbdQyR25LCCNCUqkY=; fh=bdLXzcKUWFZqVcYUSNdj8CYHIkOpG0kEyeXl9Z/g0Wk=; b=h5p5//U6L31rQYmlxSv9bF8I7fVQspmpeS4rumHi6e1YONJ21NmO0tgon0mRnaDuGz 8j1H0KZBSPadCvF++Mh5L1jtNlynlLLMS0gzT0ic9jBwvGBMfHdLSHl/f6zobCBwotMd /ZTDd+q9Kxw7T2AGSwUJBpxNWILZslAAbW5to/q3k87mULbNchPbWi8m1W/BDYn6uR4h bbCCUmNS4U1n3F4ER4nGis3Y+4TKwAqr0bhfCe5A1/D1m0YBfr2xskcl4ZLOue4cjhi3 6+z4aoLaGH7krLEDtDNjEk1RxfuWzmU4Gd7uXqWWvbKBCytT/S4SQM1kKkYQ54x895pI Djgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Zigny+0Y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id t15-20020a170902e84f00b001d3673fd28asi814861plg.138.2023.12.13.23.57.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 23:57:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Zigny+0Y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 4C16A80DB727; Wed, 13 Dec 2023 23:57:05 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234389AbjLNH4t (ORCPT + 99 others); Thu, 14 Dec 2023 02:56:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34270 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230176AbjLNH4r (ORCPT ); Thu, 14 Dec 2023 02:56:47 -0500 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0322610F; Wed, 13 Dec 2023 23:56:52 -0800 (PST) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 3BE7ugRs029444; Thu, 14 Dec 2023 01:56:42 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1702540602; bh=3lHhBGyswinmAFRMz+DLytZSA7pbdQyR25LCCNCUqkY=; h=From:To:CC:Subject:Date; b=Zigny+0Y03YdhLSJMVm8aYMkgizCfxgneY32eYMr22zaMKzGddXgLTQG8q6V1o/Y4 yCElyDJVbfWqJa/bPSjD+1YBSMAO1ZBSxpLfb+NxN502mcwdjd1asEsZbFqcm7pUOh Oh0JBVmu7EaxZbt2AmapLMkw3s8FdqnBh4/x7qsw= Received: from DLEE111.ent.ti.com (dlee111.ent.ti.com [157.170.170.22]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 3BE7ufai022171 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 14 Dec 2023 01:56:41 -0600 Received: from DLEE113.ent.ti.com (157.170.170.24) by DLEE111.ent.ti.com (157.170.170.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Thu, 14 Dec 2023 01:56:41 -0600 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DLEE113.ent.ti.com (157.170.170.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Thu, 14 Dec 2023 01:56:41 -0600 Received: from a0497641-HP-Z2-Tower-G9-Workstation-Desktop-PC.dhcp.ti.com (a0497641-hp-z2-tower-g9-workstation-desktop-pc.dhcp.ti.com [172.24.227.36]) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 3BE7uc86027328; Thu, 14 Dec 2023 01:56:38 -0600 From: Neha Malcom Francis To: , , , CC: , , , , , , Subject: [PATCH] arm64: dts: ti: k3-j721e: Add support for DFS in J721E A72 Date: Thu, 14 Dec 2023 13:26:37 +0530 Message-ID: <20231214075637.176586-1-n-francis@ti.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Wed, 13 Dec 2023 23:57:05 -0800 (PST) Add 2G, 1.5G, 1G, 750M, 500M and 250M as the supported frequencies for A72. This enables support for Dynamic Frequency Scaling (DFS). Signed-off-by: Neha Malcom Francis --- Boot logs: https://gist.github.com/nehamalcom/e3c3d0446f0467e7fd28706f7ffaeea8 J721E SoC has three different speed grade devices (see [1], 7.5 Operating Performance Points) which as of today are indiscernible in software, users of a different speed grade device must manually change the DTS to ensure their maximum speed frequency is supported. [1] https://www.ti.com/lit/gpn/tda4vm arch/arm64/boot/dts/ti/k3-j721e.dtsi | 35 ++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-j721e.dtsi b/arch/arm64/boot/dts/ti/k3-j721e.dtsi index a200810df54a..fe92879f5812 100644 --- a/arch/arm64/boot/dts/ti/k3-j721e.dtsi +++ b/arch/arm64/boot/dts/ti/k3-j721e.dtsi @@ -48,6 +48,9 @@ cpu0: cpu@0 { d-cache-line-size = <64>; d-cache-sets = <256>; next-level-cache = <&L2_0>; + clocks = <&k3_clks 202 2>; + clock-names = "cpu"; + operating-points-v2 = <&cpu0_opp_table>; }; cpu1: cpu@1 { @@ -62,9 +65,41 @@ cpu1: cpu@1 { d-cache-line-size = <64>; d-cache-sets = <256>; next-level-cache = <&L2_0>; + clocks = <&k3_clks 203 0>; + clock-names = "cpu"; + operating-points-v2 = <&cpu0_opp_table>; }; }; + cpu0_opp_table: opp-table { + compatible = "operating-points-v2"; + + opp6-2000000000 { + opp-hz = /bits/ 64 <2000000000>; + }; + + opp5-1500000000 { + opp-hz = /bits/ 64 <1500000000>; + }; + + opp4-1000000000 { + opp-hz = /bits/ 64 <1000000000>; + }; + + opp3-750000000 { + opp-hz = /bits/ 64 <750000000>; + }; + + opp2-500000000 { + opp-hz = /bits/ 64 <500000000>; + }; + + opp1-250000000 { + opp-hz = /bits/ 64 <250000000>; + }; + + }; + L2_0: l2-cache0 { compatible = "cache"; cache-level = <2>; -- 2.34.1