Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1655242pxb; Fri, 22 Oct 2021 05:22:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwGLdC7p+81xOXGKX1fmqCruL6+ToswTmxVYVJW7fT6ucUeepBqt4Fuq25WNc26GHWo7MPU X-Received: by 2002:a17:902:c104:b0:13f:59f9:db92 with SMTP id 4-20020a170902c10400b0013f59f9db92mr10853607pli.75.1634905325325; Fri, 22 Oct 2021 05:22:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634905325; cv=none; d=google.com; s=arc-20160816; b=OqxFGbvMpqS+CET6zMyM04zQg9eYblU4jvJHjPok4hMTOOkc6XTuMLfa71aMwPLzfs 9+RlEme3nBNhW6xhFRpl4kLd1OQ2ziKMC2LZNM6HxPbbvAa1k1bYDgTLJJ2T7ZFXX+ha FitzSvI6tTU5heO0v97zTuF08Qmi+ymhKmhYE/JR1kWX8jCumWMWhtKRuDpANC637iXx vJ0kSmG9Mby5jhJjhWLv7/wtN9TD8w95Uvr4i5wVCuQsGUU3BDiy4O7KGZlvz7zZXxMB ftQzzTv1eA4hAJR2ZUi4LV439R6URDjeAg030Cbn8S5P4GsMAcjS/vCT6EuXKfQN0qOT Gj3A== 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=3UGWLeomQqaIKUmze9tsdDvDGbywOz/5akRQKK6vs6E=; b=EuZs4igsSe/IpMSVlATkSEHlTlibSUeIbueFjVO0ctTZEoTLYb7Ytf+klDl2pMYDkD RCd/lNLjrZ+DTZLqbX7qb/sr2CeJg18co44hr0MFJTd/CMTREVCS36IRMLySMdVK+BxJ cxeSLqYVPJIRtPqcgYubXa2HaBGQahyIZkSOlWR8jUXBF+1bufeYefLYVhtIbjr6E3cj DTusUI2tBRdBPjiVq3an478hTTj7QtIAl1JQ7y10UIuylwnZuHV0dopOX6Dvgqt47y9R crfP2H/g31/uoDfpd82k2+f3LSnJ/JqROggZtPaqEXlIEPETpFsFN6M24E5mNgsTdtc4 m2wg== 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 mu2si16610406pjb.175.2021.10.22.05.21.52; Fri, 22 Oct 2021 05:22:05 -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 S230285AbhJVMWh (ORCPT + 99 others); Fri, 22 Oct 2021 08:22:37 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:59344 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S231967AbhJVMWd (ORCPT ); Fri, 22 Oct 2021 08:22:33 -0400 X-UUID: 4d33e353761c4e51b9d6dae719e1efd8-20211022 X-UUID: 4d33e353761c4e51b9d6dae719e1efd8-20211022 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 91488653; Fri, 22 Oct 2021 20:20:13 +0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkmbs07n1.mediatek.inc (172.21.101.16) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 22 Oct 2021 20:20:12 +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; Fri, 22 Oct 2021 20:20:12 +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 v6 5/5] arm64: dts: mediatek: add clock support for mt7986b Date: Fri, 22 Oct 2021 20:19:44 +0800 Message-ID: <20211022121944.25687-6-sam.shih@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20211022121944.25687-1-sam.shih@mediatek.com> References: <20211022121944.25687-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 --- v6: Used lowercase hex values in clock DT --- 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..c3e56ea18638 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,10 +14,11 @@ / { #address-cells = <2>; #size-cells = <2>; - system_clk: dummy40m { + clk40m: oscillator@0 { compatible = "fixed-clock"; clock-frequency = <40000000>; #clock-cells = <0>; + clock-output-names = "clkxtal"; }; cpus { @@ -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