linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: sean.wang@mediatek.com (sean.wang at mediatek.com)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v3 02/15] arm64: dts: mt7622: add clock controller device nodes
Date: Sun, 18 Feb 2018 03:54:37 +0800	[thread overview]
Message-ID: <816b712599b2da8b13fb6f6baed98cd7da872610.1518895232.git.sean.wang@mediatek.com> (raw)
In-Reply-To: <cover.1518895232.git.sean.wang@mediatek.com>

From: Sean Wang <sean.wang@mediatek.com>

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 <sean.wang@mediatek.com>
Cc: Stephen Boyd <sboyd@codeaurora.org>
---
 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 <dt-bindings/interrupt-controller/irq.h>
 #include <dt-bindings/interrupt-controller/arm-gic.h>
+#include <dt-bindings/clock/mt7622-clk.h>
+#include <dt-bindings/reset/mt7622-reset.h>
 
 / {
 	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 at 10000000 {
+		compatible = "mediatek,mt7622-infracfg",
+			     "syscon";
+		reg = <0 0x10000000 0 0x1000>;
+		#clock-cells = <1>;
+		#reset-cells = <1>;
+	};
+
+	pericfg: pericfg at 10002000 {
+		compatible = "mediatek,mt7622-pericfg",
+			     "syscon";
+		reg = <0 0x10002000 0 0x1000>;
+		#clock-cells = <1>;
+		#reset-cells = <1>;
+	};
+
 	sysirq: interrupt-controller at 10200620 {
 		compatible = "mediatek,mt7622-sysirq",
 			     "mediatek,mt6577-sysirq";
@@ -87,6 +118,20 @@
 		reg = <0 0x10200620 0 0x20>;
 	};
 
+	apmixedsys: apmixedsys at 10209000 {
+		compatible = "mediatek,mt7622-apmixedsys",
+			     "syscon";
+		reg = <0 0x10209000 0 0x1000>;
+		#clock-cells = <1>;
+	};
+
+	topckgen: topckgen at 10210000 {
+		compatible = "mediatek,mt7622-topckgen",
+			     "syscon";
+		reg = <0 0x10210000 0 0x1000>;
+		#clock-cells = <1>;
+	};
+
 	gic: interrupt-controller at 10300000 {
 		compatible = "arm,gic-400";
 		interrupt-controller;
@@ -107,4 +152,35 @@
 		clock-names = "baud", "bus";
 		status = "disabled";
 	};
+
+	ssusbsys: ssusbsys at 1a000000 {
+		compatible = "mediatek,mt7622-ssusbsys",
+			     "syscon";
+		reg = <0 0x1a000000 0 0x1000>;
+		#clock-cells = <1>;
+		#reset-cells = <1>;
+	};
+
+	pciesys: pciesys at 1a100800 {
+		compatible = "mediatek,mt7622-pciesys",
+			     "syscon";
+		reg = <0 0x1a100800 0 0x1000>;
+		#clock-cells = <1>;
+		#reset-cells = <1>;
+	};
+
+	ethsys: syscon at 1b000000 {
+		compatible = "mediatek,mt7622-ethsys",
+			     "syscon";
+		reg = <0 0x1b000000 0 0x1000>;
+		#clock-cells = <1>;
+		#reset-cells = <1>;
+	};
+
+	sgmiisys: sgmiisys at 1b128000 {
+		compatible = "mediatek,mt7622-sgmiisys",
+			     "syscon";
+		reg = <0 0x1b128000 0 0x1000>;
+		#clock-cells = <1>;
+	};
 };
-- 
2.7.4

  parent reply	other threads:[~2018-02-17 19:54 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-17 19:54 [PATCH v3 00/15] add dts nodes to MT7622 SoC sean.wang at mediatek.com
2018-02-17 19:54 ` [PATCH v3 01/15] dt-bindings: clock: mediatek: add missing required #reset-cells sean.wang at mediatek.com
2018-03-11 19:07   ` Matthias Brugger
2018-03-16 20:36   ` Stephen Boyd
2018-03-18 20:34     ` Matthias Brugger
2018-02-17 19:54 ` sean.wang at mediatek.com [this message]
2018-02-17 19:54 ` [PATCH v3 03/15] arm64: dts: mt7622: add power domain controller device nodes sean.wang at mediatek.com
2018-02-17 19:54 ` [PATCH v3 04/15] arm64: dts: mt7622: add pinctrl related " sean.wang at mediatek.com
2018-02-17 19:54 ` [PATCH v3 05/15] arm64: dts: mt7622: add PMIC MT6380 related nodes sean.wang at mediatek.com
2018-02-17 19:54 ` [PATCH v3 06/15] arm64: dts: mt7622: add cpufreq related device nodes sean.wang at mediatek.com
2018-02-19  3:38   ` Viresh Kumar
2018-02-17 19:54 ` [PATCH v3 07/15] arm64: dts: mt7622: turn uart0 clock to real ones sean.wang at mediatek.com
2018-02-17 19:54 ` [PATCH v3 08/15] arm64: dts: mt7622: add SoC and peripheral related device nodes sean.wang at mediatek.com
2018-02-17 19:54 ` [PATCH v3 09/15] arm64: dts: mt7622: add flash " sean.wang at mediatek.com
2018-02-17 19:54 ` [PATCH v3 10/15] arm64: dts: mt7622: add ethernet " sean.wang at mediatek.com
2018-02-17 19:54 ` [PATCH v3 11/15] arm64: dts: mt7622: add PCIe " sean.wang at mediatek.com
2018-02-17 19:54 ` [PATCH v3 12/15] arm64: dts: mt7622: add SATA " sean.wang at mediatek.com
2018-02-17 19:54 ` [PATCH v3 13/15] arm64: dts: mt7622: add usb " sean.wang at mediatek.com
2018-02-17 19:54 ` [PATCH v3 14/15] arm64: dts: mt7622: add High-Speed DMA " sean.wang at mediatek.com
2018-03-11 19:39   ` Matthias Brugger
2018-02-17 19:54 ` [PATCH v3 15/15] arm64: dts: mt7622: add mmc related " sean.wang at mediatek.com
2018-03-11 22:04 ` [PATCH v3 00/15] add dts nodes to MT7622 SoC Matthias Brugger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=816b712599b2da8b13fb6f6baed98cd7da872610.1518895232.git.sean.wang@mediatek.com \
    --to=sean.wang@mediatek.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).