From patchwork Mon Dec 21 03:36:54 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "andrew-sh.cheng" X-Patchwork-Id: 11984161 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY, URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 279FCC433DB for ; Mon, 21 Dec 2020 03:37:33 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6390E22B3B for ; Mon, 21 Dec 2020 03:37:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6390E22B3B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=mediatek.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-ID:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=d1k5ZJfrLTfIW6yra27mGvykV0HJ/I3c260EwzyZrvA=; b=sOJKFx14UmkIGciqmXCGT296Z L2UJER4us40mWVKC4vNqpN1ne43Zubdr+kI7gcdcUEfjpMvhQdmslIN57WEKkXJwOimxk9+DQ+pfS /+9t3DCCvay7z7z2tplq4NiLC3WPXWI7CDqRu2W7jyBfCr957F7xoiWkLqhXZ7vr7wNUiX2GJQXjQ HtBChE8U1708Bje2dz61ABpQVkK8rxL3XPI2zWnpbLbsG4PYBxZpTE/7FBK7hfkFElSfm+w3ByV2T XrRPNCUd7acupXcSvcFH1Jf9JkbZQr4W3rbg0P9w75nHsOIA8HNfjSMnahr4xkapBRkVRzDHbypjM CQNZZP6Cg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1krC0d-00007r-34; Mon, 21 Dec 2020 03:37:19 +0000 Received: from mailgw01.mediatek.com ([216.200.240.184]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1krC0W-00006K-6q; Mon, 21 Dec 2020 03:37:14 +0000 X-UUID: 90c157f9720548e99d4885cedcbe5410-20201220 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=IqoeTgE55XVjSOpPIl/m9kHTWzTKGLEjro1b69noYbI=; b=CT0gNq8pSB8HzvcwPCkHQBSXUOng5w8VDX6iZZ8IqoleDiqM9RyiH3+m/xwkh4SuyAOTYlzv58Mb/39/aUcp8nsOuMaliCSdp3x60O1cXF5RZyYP6O7GaknnM8ifvZjoRZKEfDq3sOFhJb9d+sYCNgQ7qmInL1KvCYlThMTZYuY=; X-UUID: 90c157f9720548e99d4885cedcbe5410-20201220 Received: from mtkcas67.mediatek.inc [(172.29.193.45)] by mailgw01.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1477295957; Sun, 20 Dec 2020 19:37:04 -0800 Received: from mtkmbs07n1.mediatek.inc (172.21.101.16) by MTKMBS62N2.mediatek.inc (172.29.193.42) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sun, 20 Dec 2020 19:37:02 -0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkmbs07n1.mediatek.inc (172.21.101.16) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 21 Dec 2020 11:37:00 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas11.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 21 Dec 2020 11:37:00 +0800 From: Andrew-sh.Cheng To: Rob Herring , Matthias Brugger , , , , Subject: [PATCH] arm64: dts: mediatek: Add Mediatek mt8192 cpufreq device nodes Date: Mon, 21 Dec 2020 11:36:54 +0800 Message-ID: <1608521814-13017-2-git-send-email-andrew-sh.cheng@mediatek.com> X-Mailer: git-send-email 1.8.1.1.dirty In-Reply-To: <1608521814-13017-1-git-send-email-andrew-sh.cheng@mediatek.com> References: <1608521814-13017-1-git-send-email-andrew-sh.cheng@mediatek.com> MIME-Version: 1.0 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201220_223712_408674_CEC6A37A X-CRM114-Status: GOOD ( 10.33 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "Andrew-sh.Cheng" , srv_heupstream@mediatek.com Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org From: "Andrew-sh.Cheng" This patch depends on [1] and [2]. [1]http://lists.infradead.org/pipermail/linux-mediatek/2020-November/019378.html [2]https://patchwork.kernel.org/project/linux-mediatek/patch/1607586516-6547-3-git-send-email-hector.yuan@mediatek.com/ Signed-off-by: Andrew-sh.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 69d45c7..770f7d8 100644 --- a/arch/arm64/boot/dts/mediatek/mt8192.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8192.dtsi @@ -39,6 +39,7 @@ compatible = "arm,cortex-a55"; reg = <0x000>; enable-method = "psci"; + performance-domain = <&performance 0>; clock-frequency = <1701000000>; next-level-cache = <&l2_0>; capacity-dmips-mhz = <530>; @@ -49,6 +50,7 @@ compatible = "arm,cortex-a55"; reg = <0x100>; enable-method = "psci"; + performance-domain = <&performance 0>; clock-frequency = <1701000000>; next-level-cache = <&l2_0>; capacity-dmips-mhz = <530>; @@ -59,6 +61,7 @@ compatible = "arm,cortex-a55"; reg = <0x200>; enable-method = "psci"; + performance-domain = <&performance 0>; clock-frequency = <1701000000>; next-level-cache = <&l2_0>; capacity-dmips-mhz = <530>; @@ -69,6 +72,7 @@ compatible = "arm,cortex-a55"; reg = <0x300>; enable-method = "psci"; + performance-domain = <&performance 0>; clock-frequency = <1701000000>; next-level-cache = <&l2_0>; capacity-dmips-mhz = <530>; @@ -79,6 +83,7 @@ compatible = "arm,cortex-a76"; reg = <0x400>; enable-method = "psci"; + performance-domain = <&performance 1>; clock-frequency = <2171000000>; next-level-cache = <&l2_1>; capacity-dmips-mhz = <1024>; @@ -89,6 +94,7 @@ compatible = "arm,cortex-a76"; reg = <0x500>; enable-method = "psci"; + performance-domain = <&performance 1>; clock-frequency = <2171000000>; next-level-cache = <&l2_1>; capacity-dmips-mhz = <1024>; @@ -99,6 +105,7 @@ compatible = "arm,cortex-a76"; reg = <0x600>; enable-method = "psci"; + performance-domain = <&performance 1>; clock-frequency = <2171000000>; next-level-cache = <&l2_1>; capacity-dmips-mhz = <1024>; @@ -109,6 +116,7 @@ compatible = "arm,cortex-a76"; reg = <0x700>; enable-method = "psci"; + performance-domain = <&performance 1>; clock-frequency = <2171000000>; next-level-cache = <&l2_1>; capacity-dmips-mhz = <1024>; @@ -194,6 +202,12 @@ compatible = "simple-bus"; ranges; + performance: performance-controller@0011bc00 { + 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>;