Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp4235701pxb; Thu, 14 Oct 2021 00:59:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxA0uRCYSZa//bv8NzTjIwgwcZitKv1UA2YNj0vGSuCQ71TCkUNgnN4IFAdfcVOiaTjL9SH X-Received: by 2002:a63:2acb:: with SMTP id q194mr3162004pgq.59.1634198344424; Thu, 14 Oct 2021 00:59:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634198344; cv=none; d=google.com; s=arc-20160816; b=P3LFA4e53gYRofbPDB58H3ctpvwVXEjUd9SLvB41XM0QkmgocK7ZdwjXxHYVc37AmH CsQnOkw485t67Yfaw8PhRSg1BUVSAznU/y8PmXPiFKanro+xxFjH+5RUX99tXuvpD6pY YD1gFgHqlPt2hJufU7iBjipfe7o2xUR4B+QPsEYVRZ/KqjBk2kvPp/mITSZaw8ilkH28 XYy39wyTn1dUiyWJ+SmOK+N6yeQzTVJ4/EkhF2zrWNXM/gFbkfmC0WDQtD2/RYxElXhJ r09DC7rTdTHtNHeLsZ7Ch4QPHg9JcwtiqM2IU4l232b/ewc+1MB1x9pEchbxKk6O2wqt Elyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=KWp+Edd7b2d2PepyiE4PmjMUZjvUDSY+xKJcKuiPbwo=; b=LhDZs2KgoV1yA/y06YbdO8ThiYPv3zXDAVZ88FLg9zqgOT/dSsqKOcxKx5kyMRM4Q0 3oWy5N5+yt0etp2P9svCJ+SofeRBbl9gFRPHoIv0NXih0ZQMt2rSmkSQr7lBT9n7ALkX xcT++2Y3JyLQAJycKSZUGXGugn6EntpQJ+9N4W0ZXXiQKtijXi4EaRubp344ENGG/CrJ Tof0MK2dQr5zOleIi1Brj+s06LaDdkt1o6HNDRyEGQ5x8HhzGG/FpKg7oCOcoo0L2hmO /0CRwTLcCHR+2CRLc7McY7GxkeBp2u0I1xnrzjD4b9GthraF2TiCIynmP8yR6wRBjWD6 e51g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y2si2908692pli.413.2021.10.14.00.58.51; Thu, 14 Oct 2021 00:59:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230153AbhJNH6l (ORCPT + 99 others); Thu, 14 Oct 2021 03:58:41 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:46268 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S230172AbhJNH6k (ORCPT ); Thu, 14 Oct 2021 03:58:40 -0400 X-UUID: 7c14215bd0cb4c839db4cf9f8f183afa-20211014 X-UUID: 7c14215bd0cb4c839db4cf9f8f183afa-20211014 Received: from mtkexhb02.mediatek.inc [(172.21.101.103)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1548455158; Thu, 14 Oct 2021 15:56:33 +0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkmbs10n1.mediatek.inc (172.21.101.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.792.15; Thu, 14 Oct 2021 15:56:32 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 14 Oct 2021 15:56:32 +0800 From: Sam Shih To: Rob Herring , Matthias Brugger , Michael Turquette , Stephen Boyd , Fabien Parent , "Weiyi Lu" , Chun-Jie Chen , Ikjoon Jang , Miles Chen , "Enric Balletbo i Serra" , , , , , CC: John Crispin , Ryder Lee , "Sam Shih" Subject: [PATCH v4 5/5] arm64: dts: mediatek: add clock support for mt7986b Date: Thu, 14 Oct 2021 15:56:20 +0800 Message-ID: <20211014075620.17563-6-sam.shih@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20211014075620.17563-1-sam.shih@mediatek.com> References: <20211014075620.17563-1-sam.shih@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add clock controller nodes, include 40M clock source, topckgen, infracfg, apmixedsys and ethernet subsystem. Signed-off-by: Sam Shih --- arch/arm64/boot/dts/mediatek/mt7986b.dtsi | 68 +++++++++++++++++++++-- 1 file changed, 63 insertions(+), 5 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt7986b.dtsi b/arch/arm64/boot/dts/mediatek/mt7986b.dtsi index 2b8e0a382398..9cc27020901a 100644 --- a/arch/arm64/boot/dts/mediatek/mt7986b.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt7986b.dtsi @@ -6,6 +6,7 @@ #include #include +#include / { compatible = "mediatek,mt7986b"; @@ -13,9 +14,10 @@ / { #address-cells = <2>; #size-cells = <2>; - system_clk: dummy40m { + clk40m: oscillator@0 { compatible = "fixed-clock"; clock-frequency = <40000000>; + clock-output-names = "clkxtal"; #clock-cells = <0>; }; @@ -99,6 +101,18 @@ gic: interrupt-controller@c000000 { interrupts = ; }; + infracfg: infracfg@10001000 { + compatible = "mediatek,mt7986-infracfg", "syscon"; + reg = <0 0x10001000 0 0x1000>; + #clock-cells = <1>; + }; + + topckgen: topckgen@1001b000 { + compatible = "mediatek,mt7986-topckgen", "syscon"; + reg = <0 0x1001B000 0 0x1000>; + #clock-cells = <1>; + }; + watchdog: watchdog@1001c000 { compatible = "mediatek,mt7986-wdt", "mediatek,mt6589-wdt"; @@ -108,11 +122,31 @@ watchdog: watchdog@1001c000 { status = "disabled"; }; + apmixedsys: apmixedsys@1001e000 { + compatible = "mediatek,mt7986-apmixedsys"; + reg = <0 0x1001E000 0 0x1000>; + #clock-cells = <1>; + }; + + sgmiisys0: syscon@10060000 { + compatible = "mediatek,mt7986-sgmiisys_0", + "syscon"; + reg = <0 0x10060000 0 0x1000>; + #clock-cells = <1>; + }; + + sgmiisys1: syscon@10070000 { + compatible = "mediatek,mt7986-sgmiisys_1", + "syscon"; + reg = <0 0x10070000 0 0x1000>; + #clock-cells = <1>; + }; + trng: trng@1020f000 { compatible = "mediatek,mt7986-rng", "mediatek,mt7623-rng"; reg = <0 0x1020f000 0 0x100>; - clocks = <&system_clk>; + clocks = <&infracfg CLK_INFRA_TRNG_CK>; clock-names = "rng"; status = "disabled"; }; @@ -122,7 +156,13 @@ uart0: serial@11002000 { "mediatek,mt6577-uart"; reg = <0 0x11002000 0 0x400>; interrupts = ; - clocks = <&system_clk>; + clocks = <&infracfg CLK_INFRA_UART0_SEL>, + <&infracfg CLK_INFRA_UART0_CK>; + clock-names = "baud", "bus"; + assigned-clocks = <&topckgen CLK_TOP_UART_SEL>, + <&infracfg CLK_INFRA_UART0_SEL>; + assigned-clock-parents = <&topckgen CLK_TOP_XTAL>, + <&topckgen CLK_TOP_UART_SEL>; status = "disabled"; }; @@ -131,7 +171,11 @@ uart1: serial@11003000 { "mediatek,mt6577-uart"; reg = <0 0x11003000 0 0x400>; interrupts = ; - clocks = <&system_clk>; + clocks = <&infracfg CLK_INFRA_UART1_SEL>, + <&infracfg CLK_INFRA_UART1_CK>; + clock-names = "baud", "bus"; + assigned-clocks = <&infracfg CLK_INFRA_UART1_SEL>; + assigned-clock-parents = <&topckgen CLK_TOP_F26M_SEL>; status = "disabled"; }; @@ -140,10 +184,24 @@ uart2: serial@11004000 { "mediatek,mt6577-uart"; reg = <0 0x11004000 0 0x400>; interrupts = ; - clocks = <&system_clk>; + clocks = <&infracfg CLK_INFRA_UART2_SEL>, + <&infracfg CLK_INFRA_UART2_CK>; + clock-names = "baud", "bus"; + assigned-clocks = <&infracfg CLK_INFRA_UART2_SEL>; + assigned-clock-parents = <&topckgen CLK_TOP_F26M_SEL>; status = "disabled"; }; + ethsys: syscon@15000000 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "mediatek,mt7986-ethsys", + "syscon"; + reg = <0 0x15000000 0 0x1000>; + #clock-cells = <1>; + #reset-cells = <1>; + }; + }; }; -- 2.29.2