From patchwork Fri Mar 3 02:00:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Allen-KH Cheng X-Patchwork-Id: 63723 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp181284wrd; Thu, 2 Mar 2023 18:18:05 -0800 (PST) X-Google-Smtp-Source: AK7set9i5iMB23CxzLeeaw/l5FfPgGBjDn4nhrzJngxGCOIvEOFr3/bDIfFL7ZwSeGMvdgbBctvb X-Received: by 2002:aa7:db53:0:b0:4af:6c25:f04b with SMTP id n19-20020aa7db53000000b004af6c25f04bmr400184edt.13.1677809885511; Thu, 02 Mar 2023 18:18:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677809885; cv=none; d=google.com; s=arc-20160816; b=b3+ay94kbc/9qTlyCuy/wN1De6HR9OlyjGyLCkXgSuSdGU0LUzBb3vCfDehlNtAc94 T+u35VXrh5NuUtMqvK7PT/fb4sgYqYGr58K2TiLC9KEVjAQ1qo8M/ndLqg+th9xw9kOh NzW4AbIvAJNlDfQmx2Yjp+96fsTFxEJDRCTFXcrL/v4r1y4p9frYhKMM5HEOcMMMfDM7 TphVJ9w8I9KjRbeHoWDjMHpG13q2vnFvb5oPmw6e76P8M1LJKjKUhR1ywI5uH13M9gQe wpNHh7u06r2gjn7Zf74GMCmWm65BoWR/GiTJ6KXuWzrozYzATXJALaNCV+M3S8PG7VNd OssQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=e1LaISQmDySBwK5fVZyb1TsPzxwkstAmNzoyLqLOhjA=; b=H2CHYLSX0w2YXTrEAW2ogGhZvqhp1US2HPegWOSBLj0umBgzJR6azqHF5uqmwxTnYl HPiNfAuBNqMNL3nw/lXNEuoBYq/BbLwjxcJXDeFGfcdfUejWvJacsb6l+wfCleE3W/bX Sc3Lxdu+YHVwHoAiH/+Dd5C6cLPQLclZg4M2afXj8/ImHvjCmx830IH4yh1MViEoiSsD bVXz/P3TqPSOwDCTgi+qwDbAGx8VkLX/d0BjTX8bHgmvqCeiwV3Tzn4KCL4MNXOuQh3L uGAwJSlAgmCDYrcSbjHhn1/+YNJXuItqUHr6F71NUOjC/MCjNMZUYjlN0B1Cldr9Rypt fITg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=PYhtJKel; 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=QUARANTINE dis=NONE) header.from=mediatek.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z26-20020aa7d41a000000b004c0fd821bedsi1259754edq.621.2023.03.02.18.17.42; Thu, 02 Mar 2023 18:18:05 -0800 (PST) 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=@mediatek.com header.s=dk header.b=PYhtJKel; 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=QUARANTINE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229649AbjCCCA0 (ORCPT + 99 others); Thu, 2 Mar 2023 21:00:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229555AbjCCCAZ (ORCPT ); Thu, 2 Mar 2023 21:00:25 -0500 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5E07C1ACC1; Thu, 2 Mar 2023 18:00:23 -0800 (PST) X-UUID: 248c5df0b96711ed945fc101203acc17-20230303 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=e1LaISQmDySBwK5fVZyb1TsPzxwkstAmNzoyLqLOhjA=; b=PYhtJKelZAJza8QcQyD6FQkSCGYMvoFZBrf3e56bagvkyySC5Q2Q9wU6+lX4PLwA6adHPbx5XCSRASRvVddHcomERVB56xjSQ25AbpHLtcOgtqjc1+QT5UCALiPW4muAsONh8oBaIIl90bZg4vWPkUxQrvyRkAGQ1RtKLSkiUMA=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.20,REQID:91ab8183-bbe0-41e3-a307-3aef4e8053d9,IP:0,U RL:0,TC:0,Content:0,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION: release,TS:0 X-CID-META: VersionHash:25b5999,CLOUDID:46470eb2-beed-4dfc-bd9c-e1b22fa6ccc4,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:-3,IP:nil,U RL:0,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OSI:0,OSA:0,AV:0 X-CID-BVR: 0 X-UUID: 248c5df0b96711ed945fc101203acc17-20230303 Received: from mtkmbs11n2.mediatek.inc [(172.21.101.187)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 455657128; Fri, 03 Mar 2023 10:00:16 +0800 Received: from mtkmbs13n2.mediatek.inc (172.21.101.108) by mtkmbs11n2.mediatek.inc (172.21.101.187) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.25; Fri, 3 Mar 2023 10:00:15 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs13n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.25 via Frontend Transport; Fri, 3 Mar 2023 10:00:15 +0800 From: Allen-KH Cheng To: Rob Herring , Krzysztof Kozlowski , Matthias Brugger CC: , , , , , , Allen-KH Cheng Subject: [PATCH v2] arm64: dts: mediatek: Add cpufreq nodes for MT8192 Date: Fri, 3 Mar 2023 10:00:14 +0800 Message-ID: <20230303020014.23580-1-allen-kh.cheng@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 X-MTK: N X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, SPF_PASS,UNPARSEABLE_RELAY 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759311178534097256?= X-GMAIL-MSGID: =?utf-8?q?1759311178534097256?= Add the cpufreq nodes for MT8192 SoC. Signed-off-by: Allen-KH Cheng --- Change in v1: Fix : this should be <&performance 0> [Allen-KH Cheng ] --- --- arch/arm64/boot/dts/mediatek/mt8192.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8192.dtsi b/arch/arm64/boot/dts/mediatek/mt8192.dtsi index 87b91c8feaf9..48a4fc88fde4 100644 --- a/arch/arm64/boot/dts/mediatek/mt8192.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8192.dtsi @@ -70,6 +70,7 @@ d-cache-line-size = <64>; d-cache-sets = <128>; next-level-cache = <&l2_0>; + performance-domains = <&performance 0>; capacity-dmips-mhz = <530>; }; @@ -87,6 +88,7 @@ d-cache-line-size = <64>; d-cache-sets = <128>; next-level-cache = <&l2_0>; + performance-domains = <&performance 0>; capacity-dmips-mhz = <530>; }; @@ -104,6 +106,7 @@ d-cache-line-size = <64>; d-cache-sets = <128>; next-level-cache = <&l2_0>; + performance-domains = <&performance 0>; capacity-dmips-mhz = <530>; }; @@ -121,6 +124,7 @@ d-cache-line-size = <64>; d-cache-sets = <128>; next-level-cache = <&l2_0>; + performance-domains = <&performance 0>; capacity-dmips-mhz = <530>; }; @@ -138,6 +142,7 @@ d-cache-line-size = <64>; d-cache-sets = <256>; next-level-cache = <&l2_1>; + performance-domains = <&performance 0>; capacity-dmips-mhz = <1024>; }; @@ -155,6 +160,7 @@ d-cache-line-size = <64>; d-cache-sets = <256>; next-level-cache = <&l2_1>; + performance-domains = <&performance 0>; capacity-dmips-mhz = <1024>; }; @@ -172,6 +178,7 @@ d-cache-line-size = <64>; d-cache-sets = <256>; next-level-cache = <&l2_1>; + performance-domains = <&performance 0>; capacity-dmips-mhz = <1024>; }; @@ -189,6 +196,7 @@ d-cache-line-size = <64>; d-cache-sets = <256>; next-level-cache = <&l2_1>; + performance-domains = <&performance 0>; capacity-dmips-mhz = <1024>; }; @@ -318,6 +326,12 @@ compatible = "simple-bus"; ranges; + performance: performance-controller@11bc10 { + compatible = "mediatek,cpufreq-hw"; + reg = <0 0x0011bc10 0 0x120>, <0 0x0011bd30 0 0x120>; + #performance-domain-cells = <1>; + }; + gic: interrupt-controller@c000000 { compatible = "arm,gic-v3"; #interrupt-cells = <4>;