Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1165821pxb; Fri, 21 Jan 2022 11:14:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJwGCzKmmh80FIoCGXjDfNKE1exSNt7itLz9ZRCqRpTTGz6nHho6qmZ1yCtZlTZ7nf+GKUux X-Received: by 2002:a17:90b:1d0d:: with SMTP id on13mr2109832pjb.200.1642792494378; Fri, 21 Jan 2022 11:14:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642792494; cv=none; d=google.com; s=arc-20160816; b=s3t+3kZzYprvueYtFTkhWvMrgctFaLr1IHGqaIDQcHyC2wKkc0BG8w6b8sHs8Ub9RV 3NwQqxBp74sw/232QlxByYgVQEhfCgUW2pypfqbh/5A1L1YeDJA0tHiAJ1CfPPaY27cM WmHydJIC2x3mAs1EDQDF0PBRFt42cSlugc+KrZE79IkiZs9oRLqauDEg7fziGPkbBGQz M9AZXVQFW+9rFIcouOgZaxtTU5mwW7vwPaYW8Up7RsSslzaY8qcA5S6J770yPAUYbNNU MWkET4JR4ILsDq28yBKva1yva64+Md/USgAIAMjCxJYZH3eCF+Z2TMjjoMPk3K0Mt4qj Ec+w== 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=p3rPnIj+wDxacYHS8o/Wmo6zupP9QAjsugHm7mBEBMc=; b=nWB8nQS2qWQ1XoIeW2tpc0rT5VJsgvNH7Xui+lSh8D8RacdM66uysXjHa1YsZ6Zr8G M+AloxFQnDtfy+/9x3SFjdUVyEqNz+oavAe+0BRC8mwIaWbOp3X+oird+6zJQGPACzqC JkkpeVE+lFIc7Qri+EUgeQ6I9FH2R0d40t04Ztv+y7vdI/L6hnO8ZrxM7kxgr+B7Gs11 J0qZer80uYO6fe1mfZKMimRWy4P/njKk/MuYLE/fuOFGgi7QJgSjAwU2w/xLTCRC5oBS wiqIq52VT/8dZzOQ8GX+3iPJ4l2JIYbvNRlIf4X5ymfl54XPEFtyk2C1mGy2FBnJZUNu JtfQ== 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 be11si6876431plb.94.2022.01.21.11.14.42; Fri, 21 Jan 2022 11:14:54 -0800 (PST) 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 S1354666AbiASMhN (ORCPT + 99 others); Wed, 19 Jan 2022 07:37:13 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:52260 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1354780AbiASMgt (ORCPT ); Wed, 19 Jan 2022 07:36:49 -0500 X-UUID: c16ece47013748989a5bd767ee54ecf8-20220119 X-UUID: c16ece47013748989a5bd767ee54ecf8-20220119 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 1926431416; Wed, 19 Jan 2022 20:36:45 +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; Wed, 19 Jan 2022 20:36:44 +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; Wed, 19 Jan 2022 20:36:44 +0800 From: Sam Shih To: Rob Herring , Matthias Brugger , , , , CC: John Crispin , Ryder Lee , Sam Shih Subject: [PATCH 1/1] arm64: dts: mediatek: add clock support for mt7986a Date: Wed, 19 Jan 2022 20:36:24 +0800 Message-ID: <20220119123624.10043-2-sam.shih@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20220119123624.10043-1-sam.shih@mediatek.com> References: <20220119123624.10043-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/mt7986a.dtsi | 68 +++++++++++++++++++++-- 1 file changed, 63 insertions(+), 5 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt7986a.dtsi b/arch/arm64/boot/dts/mediatek/mt7986a.dtsi index b8da76b6ba47..694acf8f5b70 100644 --- a/arch/arm64/boot/dts/mediatek/mt7986a.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt7986a.dtsi @@ -6,16 +6,18 @@ #include #include +#include / { interrupt-parent = <&gic>; #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 { @@ -98,6 +100,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"; @@ -107,6 +121,12 @@ watchdog: watchdog@1001c000 { status = "disabled"; }; + apmixedsys: apmixedsys@1001e000 { + compatible = "mediatek,mt7986-apmixedsys"; + reg = <0 0x1001E000 0 0x1000>; + #clock-cells = <1>; + }; + pio: pinctrl@1001f000 { compatible = "mediatek,mt7986a-pinctrl"; reg = <0 0x1001f000 0 0x1000>, @@ -128,11 +148,25 @@ pio: pinctrl@1001f000 { #interrupt-cells = <2>; }; + 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"; }; @@ -142,7 +176,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"; }; @@ -151,7 +191,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"; }; @@ -160,10 +204,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