Received: by 2002:a05:6358:51dd:b0:131:369:b2a3 with SMTP id 29csp1014915rwl; Thu, 10 Aug 2023 05:21:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFOz/VeyDYtFLEkBE4mkKf3B1xJcAyYQrhCiDXkiqEk3lpvPjsISZw6d1VekyNcQFA4hjP4 X-Received: by 2002:a17:902:d511:b0:1bc:5e50:9345 with SMTP id b17-20020a170902d51100b001bc5e509345mr2420628plg.50.1691670093218; Thu, 10 Aug 2023 05:21:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691670093; cv=none; d=google.com; s=arc-20160816; b=t8qwF1gNbw0CC5bBVEbe6gaDE/HgugF7kNoEPPzKPqMNLzGG6YsikC1AqkT3RZQsHK Mv+0UueGbB3EsMlcg6oVq/cYo5hfFDbQzHKIBHAZVHf+r3+MDLYWwTLEeQX/ogwsgA+R lKwhBijRM5JJyqlIGwB1d1ZGvaHLeXmnVM2j4yPq3OzoURuheguXYRJWFyV03+s/aZRI QVVakXqE598qCIEl0cxiZsptc1hCHyfw1eaGiJrCATevO2TjYXdvwyo5Kqdt7fVSEm8P 3Xj1L/+e1VJmReY0GNQadG2ARLCi6KZHRUgCn3D/v9eiDD65wwgv50VW9UsEFyR8mZjq OIVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=2x5vUfJ+hzoSv36AHHqY1x0GU0dc6lOs8jv6cI6xFzs=; fh=frAEV8QwYog4VFqLOxhJ6vLd5YPJD29D1VMz6L3cJeQ=; b=d+Z14bVm/nNG8e3aPQGyUZWTbiPKowTIKltYN3AsW4PaCVc4W43GX1uAMfeQpxexN2 Fm6uFMyVb/N/jKUMUehCOv6NgMt5lG53NHwIUOKjfUWzWWuQZuWlR4pE4WON8kSKwGT6 DEpp/9f19AUP6KNzwte55mnO970BaAQ4Gysr906wE6dXyqwitCEMsXw9MguOLwnIB8vw Ehz0wSDm3y+5gxyhAWjehXmwzLLz8JwNWMsa/lMM0sO6BC6HYkwVLkM3PSbd+OWfBGmo QPquuWCzD0arXYEbXTzGgJ2DWvDISbRpzHcsFAIGbDvA3TIVR1GzdZvvsAppnxnNJJh5 7XIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=gr6vhGLa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d12-20020a170902cecc00b001bbbb70c23asi1450251plg.232.2023.08.10.05.21.20; Thu, 10 Aug 2023 05:21:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=gr6vhGLa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234557AbjHJLyL (ORCPT + 99 others); Thu, 10 Aug 2023 07:54:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44552 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232925AbjHJLyJ (ORCPT ); Thu, 10 Aug 2023 07:54:09 -0400 Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EBE6E91; Thu, 10 Aug 2023 04:54:08 -0700 (PDT) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 37ABrk8c028316; Thu, 10 Aug 2023 06:53:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1691668426; bh=2x5vUfJ+hzoSv36AHHqY1x0GU0dc6lOs8jv6cI6xFzs=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=gr6vhGLaxPoyfXC+8xcWtbewhvCWx+HrKgS36YsrqyrQyRyveS/Tgnaf3gv9ADWzJ No8noWxvJ+QS0gnvP7N/1O1yDQbI/0+A6sRXgtNlqpZ+R8kTacJ4DSb3UDKCm1eJgJ JJxG7XUNVX9TjflK8ILvFS1/oWkT5iAZUigPNZ8k= Received: from DFLE106.ent.ti.com (dfle106.ent.ti.com [10.64.6.27]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 37ABrkYs031658 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 10 Aug 2023 06:53:46 -0500 Received: from DFLE104.ent.ti.com (10.64.6.25) by DFLE106.ent.ti.com (10.64.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Thu, 10 Aug 2023 06:53:46 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DFLE104.ent.ti.com (10.64.6.25) 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, 10 Aug 2023 06:53:45 -0500 Received: from [10.249.141.75] (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 37ABrdbi089170; Thu, 10 Aug 2023 06:53:40 -0500 Message-ID: Date: Thu, 10 Aug 2023 17:23:39 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.14.0 Subject: Re: [PATCH 2/3] arm64: dts: ti: k3-j7200: Add the supported frequencies for A72 To: Nishanth Menon , Apurva Nandan CC: Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Rafael J Wysocki , Daniel Lezcano , Amit Kucheria , Zhang Rui , , , , , Keerthy J , References: <20230809173905.1844132-1-a-nandan@ti.com> <20230809173905.1844132-3-a-nandan@ti.com> <20230809190943.unpcbrinyn5ppei7@hydrated> Content-Language: en-US From: "Kumar, Udit" In-Reply-To: <20230809190943.unpcbrinyn5ppei7@hydrated> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/10/2023 12:39 AM, Nishanth Menon wrote: > On 23:09-20230809, Apurva Nandan wrote: >> From: Keerthy >> >> Add 750M, 1G, 1.5G & 2G as the supported frequencies for A72. >> This enables support for Dynamic Frequency Scaling(DFS) >> >> Signed-off-by: Keerthy >> Signed-off-by: Apurva Nandan >> --- >> arch/arm64/boot/dts/ti/k3-j7200.dtsi | 28 ++++++++++++++++++++++++++++ >> 1 file changed, 28 insertions(+) >> >> diff --git a/arch/arm64/boot/dts/ti/k3-j7200.dtsi b/arch/arm64/boot/dts/ti/k3-j7200.dtsi >> index ef73e6d7e858..7222c453096f 100644 >> --- a/arch/arm64/boot/dts/ti/k3-j7200.dtsi >> +++ b/arch/arm64/boot/dts/ti/k3-j7200.dtsi >> @@ -48,6 +48,10 @@ 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>; >> + #cooling-cells = <2>; /* min followed by max */ >> }; >> >> cpu1: cpu@1 { >> @@ -62,6 +66,30 @@ 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>; >> + #cooling-cells = <2>; /* min followed by max */ >> + }; >> + }; >> + >> + cpu0_opp_table: opp-table { >> + compatible = "operating-points-v2"; >> + >> + opp4-2000000000 { >> + opp-hz = /bits/ 64 <2000000000>; >> + }; >> + >> + opp3-1500000000 { >> + opp-hz = /bits/ 64 <1500000000>; >> + }; >> + >> + opp2-1000000000 { >> + opp-hz = /bits/ 64 <1000000000>; >> + }; >> + >> + opp1-750000000 { >> + opp-hz = /bits/ 64 <750000000>; >> }; >> }; >> >> -- >> 2.34.1 >> > Are you sure this is correct to enable all OPPs without efuse bit checks? > > https://www.ti.com/lit/ds/symlink/dra821u-q1.pdf > 7.5 Operating Performance Points > DRA821xC operates only upto 750MHz > DRA821xE at 1GHz > DRA821xL upto 1.5GHz and > DRA821xT upto 2GHz Looks, top SKUs is considered here . After detecting which SKU we are running (I hope TRM should have this information- through efuse or some other register) I think, we can follow two approaches. 1) have OPP table for each SKU and select based SKUs type or 2) Do run time fixup by u-boot based upon SKU type