From patchwork Fri Mar 17 06:19:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Allen-KH Cheng X-Patchwork-Id: 71090 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp176236wrt; Thu, 16 Mar 2023 23:32:52 -0700 (PDT) X-Google-Smtp-Source: AK7set+2qEsVCciYdB085+iZ9Lbc3vdNvGaWvShI6JGNCCq7tndKNGCdLImgCaOuJWK4oE18lOpx X-Received: by 2002:a17:903:2c1:b0:1a0:7663:731b with SMTP id s1-20020a17090302c100b001a07663731bmr8968851plk.5.1679034771838; Thu, 16 Mar 2023 23:32:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679034771; cv=none; d=google.com; s=arc-20160816; b=wbLlJJL9P/grRYgu9nRg4WVq9HuwzLtVNilfQRGJLGTUJNMMV2KX2FEVS5wtENQHEZ Sgxi+MmY6QQ3Y7OJPWDW8t0GYxgtHiswg7L1Ny3zYYrYJ0XJDmHab293lU7Nz9NGqHAZ j3xyRUIgm+S5oa8t4AosM1L5NWa6pcy/3ZNYbqImXudYYzMD1Cas1JYUIiyqziuUFOZn VR5CN5N5qjaVe/hcP05+MApUdA2vvHH2dTW5j8m/vWHr2on35DOzbbZ9oMdjDdaDh/0P F7yGtKud6wD0nQCTnZ19ciOPtINWCbCK7ZJ2N1fLVPHkyWNZBGCgWD+FiSQiva8vlhWO jYUg== 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=xqeNtvkOt380WvrUL9+n5dvMHV6xjQJa/F/8T0qazGA=; b=mRBUyLbRojM6tvsjsj/0qRRLR7AOZOVbqnq40m3R59bXuzRpqorvKOSEocq9BLmiuU VzM5YDjn67aDhZSMjjYB8vNSTUgKfuvZOjPs9ANelM3VE5pwFNTKfZZN1YVqXMv1DOjf xAydb9zLsKKp2vTL0vn+BEkES0C2XUxR9i5sHVxyl2B02Al5gzPSCpcEk2PkQu/SYrw2 SbYFRDZ6HeJ/zLivgoim3nTpOknBx7+b/HYwT5XRuGcCDMtrigcWuXONtig6HrOtRUPS sJOpxYyzc+Q8Nr11ebEMF2ghoTVX30KQuOjcOrRr/uhe72nDSZ90x+ph6c4cz5YKVFTl je6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=uwhldcv7; 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 d19-20020a170902b71300b0019cb3c949f1si1433476pls.598.2023.03.16.23.32.38; Thu, 16 Mar 2023 23:32:51 -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=@mediatek.com header.s=dk header.b=uwhldcv7; 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 S229826AbjCQGU1 (ORCPT + 99 others); Fri, 17 Mar 2023 02:20:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229588AbjCQGTz (ORCPT ); Fri, 17 Mar 2023 02:19:55 -0400 Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E90BBACB92; Thu, 16 Mar 2023 23:19:53 -0700 (PDT) X-UUID: b769cd04c48b11ed91027fb02e0f1d65-20230317 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=xqeNtvkOt380WvrUL9+n5dvMHV6xjQJa/F/8T0qazGA=; b=uwhldcv7l9C3VRVkMbeptZzqJiCxLx0CUAwEY/9mP36tO9lghsshT0cD5ltt2qcwo1UBiOuuPtMueoCktKETRF83eItpy5vnhBndGP05uHrn75xWetn0Vv4Fv9u/qvr6k3tTm1dcnoLFNRkIHubhQDqSJTTU2FB8P4H/Xmn3trI=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.21,REQID:bc211a6b-d1b9-4e01-a02c-fe6cc5d2197c,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:83295aa,CLOUDID:ed0789b3-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,NGT X-CID-BAS: 0,NGT,0,_ X-UUID: b769cd04c48b11ed91027fb02e0f1d65-20230317 Received: from mtkmbs13n2.mediatek.inc [(172.21.101.108)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 332766105; Fri, 17 Mar 2023 14:19:47 +0800 Received: from mtkmbs11n2.mediatek.inc (172.21.101.187) by mtkmbs13n1.mediatek.inc (172.21.101.193) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.25; Fri, 17 Mar 2023 14:19:46 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs11n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.25 via Frontend Transport; Fri, 17 Mar 2023 14:19:46 +0800 From: Allen-KH Cheng To: Rob Herring , Krzysztof Kozlowski , Matthias Brugger CC: , , , , , , Allen-KH Cheng Subject: [PATCH v3] arm64: dts: mediatek: Add cpufreq nodes for MT8192 Date: Fri, 17 Mar 2023 14:19:44 +0800 Message-ID: <20230317061944.15434-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,URIBL_BLOCKED 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?1760595564618328956?= X-GMAIL-MSGID: =?utf-8?q?1760595564618328956?= Add the cpufreq nodes for MT8192 SoC. Signed-off-by: Allen-KH Cheng Reviewed-by: AngeloGioacchino Del Regno Tested-by: AngeloGioacchino Del Regno Reviewed-by: NĂ­colas F. R. A. Prado Tested-by: NĂ­colas F. R. A. Prado Tested-by: Chen-Yu Tsai --- Change from v2: Fix wrong performance-domains [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..ba49f37933d6 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 1>; 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 1>; 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 1>; 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 1>; 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>;