Received: by 10.223.185.116 with SMTP id b49csp2099089wrg; Sat, 17 Feb 2018 12:11:35 -0800 (PST) X-Google-Smtp-Source: AH8x227ByfBXSdmVtFARWjvrmKoJZmSUxuzvX49sEbUgpT36CXZ9xxgjem/wBgGE1npOtr6V1cVW X-Received: by 2002:a17:902:5ac5:: with SMTP id g5-v6mr9851726plm.334.1518898295683; Sat, 17 Feb 2018 12:11:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518898295; cv=none; d=google.com; s=arc-20160816; b=UBjlM7Lpu/CGvr9Z7ut2rTUlLeW6MxvoBTMBpfbKI7m4YF0zYycV2lgk+58BEWDAPO M1N6TCgVjBlN1QKKFOZLwX9tv3vYs5LPf6gexP4B89Rgfz0uiGbNlplTZJuUl6GfL1Yi CX5ie/xqu/8yJpupPi5g6jVhVZCnFOvOuZWLS0twHMSzyayJdLiN1uvrgOhv52vXYlxu euFW2SEx8Ls+ppBrrWE+RrMpxC97biRW9LhBe9ul7qQIiDk649n8aUKtU5rYd3Siy+/T +zuShl85HROAeiv/C2dp/JiCO/X0x7GR8uoFZtvINDcCKcYR9uo3Ad6ueyfKdid2Q8Px QRdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=ifySfuwozcoEzn656q+tOtsT0EaWmpF89cs7FuXjCYk=; b=xWVUayGOQQrFY0uJ1YrzPo4oZOtwkT6PAg0rS5A0F7Il6jxJ8q4B0zYTb7MKwmSTPb WOipAoVIaDJKN9sxGg/Gny6TvaGVgGTXX5hrVqIDwqaWvbikJCBILN0isWFz7DSGUXLU 0N2wLlCU3Jgc0BLQ62Yr3iBIgDeoVtnZ42Qfr+XC36Y/1czOHv6Jps3O+WGm7oAOXO+f 3jFXKYylJnzJROpGyqXyq7u+OogEfIQpEAsbz4mNEDX/04Wv3E2nUxLHD7rmR5fTl/LV 232yBuvOIeGDo/dQt2uk/qfoKU+O60p43azn+WHjLSh26muLWuBzgo4wnUAHP6L94XiK PJzg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b1si1526526pgc.807.2018.02.17.12.11.21; Sat, 17 Feb 2018 12:11:35 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751513AbeBQT5J (ORCPT + 99 others); Sat, 17 Feb 2018 14:57:09 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:59914 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1751277AbeBQTzJ (ORCPT ); Sat, 17 Feb 2018 14:55:09 -0500 X-UUID: 74bfa21476b4414aac8dafe53b60880f-20180218 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 130801364; Sun, 18 Feb 2018 03:55:02 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Sun, 18 Feb 2018 03:55:01 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Sun, 18 Feb 2018 03:55:01 +0800 From: To: , , , , CC: , , Sean Wang , Stephen Boyd Subject: [PATCH v3 02/15] arm64: dts: mt7622: add clock controller device nodes Date: Sun, 18 Feb 2018 03:54:37 +0800 Message-ID: <816b712599b2da8b13fb6f6baed98cd7da872610.1518895232.git.sean.wang@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sean Wang Add clock controller nodes for MT7622 and include header for topckgen, infracfg, pericfg, apmixedsys, ethsys, sgmiisys, pciesys and ssusbsys for those devices nodes to be added afterwards. In addition, provides an oscillator node for the source of PLLs and dummy clock for PWARP to complement missing support of clock gate for the wrapper circuit in the driver. Signed-off-by: Sean Wang Cc: Stephen Boyd --- arch/arm64/boot/dts/mediatek/mt7622.dtsi | 76 ++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt7622.dtsi b/arch/arm64/boot/dts/mediatek/mt7622.dtsi index b111fec..73e5d62 100644 --- a/arch/arm64/boot/dts/mediatek/mt7622.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt7622.dtsi @@ -8,6 +8,8 @@ #include #include +#include +#include / { compatible = "mediatek,mt7622"; @@ -48,6 +50,19 @@ clock-frequency = <280000000>; }; + pwrap_clk: dummy40m { + compatible = "fixed-clock"; + clock-frequency = <40000000>; + #clock-cells = <0>; + }; + + clk25m: oscillator { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <25000000>; + clock-output-names = "clkxtal"; + }; + psci { compatible = "arm,psci-0.2"; method = "smc"; @@ -78,6 +93,22 @@ IRQ_TYPE_LEVEL_HIGH)>; }; + infracfg: infracfg@10000000 { + compatible = "mediatek,mt7622-infracfg", + "syscon"; + reg = <0 0x10000000 0 0x1000>; + #clock-cells = <1>; + #reset-cells = <1>; + }; + + pericfg: pericfg@10002000 { + compatible = "mediatek,mt7622-pericfg", + "syscon"; + reg = <0 0x10002000 0 0x1000>; + #clock-cells = <1>; + #reset-cells = <1>; + }; + sysirq: interrupt-controller@10200620 { compatible = "mediatek,mt7622-sysirq", "mediatek,mt6577-sysirq"; @@ -87,6 +118,20 @@ reg = <0 0x10200620 0 0x20>; }; + apmixedsys: apmixedsys@10209000 { + compatible = "mediatek,mt7622-apmixedsys", + "syscon"; + reg = <0 0x10209000 0 0x1000>; + #clock-cells = <1>; + }; + + topckgen: topckgen@10210000 { + compatible = "mediatek,mt7622-topckgen", + "syscon"; + reg = <0 0x10210000 0 0x1000>; + #clock-cells = <1>; + }; + gic: interrupt-controller@10300000 { compatible = "arm,gic-400"; interrupt-controller; @@ -107,4 +152,35 @@ clock-names = "baud", "bus"; status = "disabled"; }; + + ssusbsys: ssusbsys@1a000000 { + compatible = "mediatek,mt7622-ssusbsys", + "syscon"; + reg = <0 0x1a000000 0 0x1000>; + #clock-cells = <1>; + #reset-cells = <1>; + }; + + pciesys: pciesys@1a100800 { + compatible = "mediatek,mt7622-pciesys", + "syscon"; + reg = <0 0x1a100800 0 0x1000>; + #clock-cells = <1>; + #reset-cells = <1>; + }; + + ethsys: syscon@1b000000 { + compatible = "mediatek,mt7622-ethsys", + "syscon"; + reg = <0 0x1b000000 0 0x1000>; + #clock-cells = <1>; + #reset-cells = <1>; + }; + + sgmiisys: sgmiisys@1b128000 { + compatible = "mediatek,mt7622-sgmiisys", + "syscon"; + reg = <0 0x1b128000 0 0x1000>; + #clock-cells = <1>; + }; }; -- 2.7.4