mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-05 13:51:52 +00:00
arm64: dts: mt2712: Add clock controller device nodes
Add clock controller nodes for MT2712, include topckgen, infracfg, pericfg, mcucfg and apmixedsys. This patch also add six oscillators that provide clocks for MT2712. Signed-off-by: Weiyi Lu <weiyi.lu@mediatek.com> Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
This commit is contained in:
parent
da85a3afba
commit
5d4839709c
1 changed files with 115 additions and 0 deletions
|
@ -5,6 +5,7 @@
|
||||||
* SPDX-License-Identifier: (GPL-2.0 OR MIT)
|
* SPDX-License-Identifier: (GPL-2.0 OR MIT)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <dt-bindings/clock/mt2712-clk.h>
|
||||||
#include <dt-bindings/interrupt-controller/irq.h>
|
#include <dt-bindings/interrupt-controller/irq.h>
|
||||||
#include <dt-bindings/interrupt-controller/arm-gic.h>
|
#include <dt-bindings/interrupt-controller/arm-gic.h>
|
||||||
|
|
||||||
|
@ -98,6 +99,48 @@
|
||||||
#clock-cells = <0>;
|
#clock-cells = <0>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
clk26m: oscillator@0 {
|
||||||
|
compatible = "fixed-clock";
|
||||||
|
#clock-cells = <0>;
|
||||||
|
clock-frequency = <26000000>;
|
||||||
|
clock-output-names = "clk26m";
|
||||||
|
};
|
||||||
|
|
||||||
|
clk32k: oscillator@1 {
|
||||||
|
compatible = "fixed-clock";
|
||||||
|
#clock-cells = <0>;
|
||||||
|
clock-frequency = <32768>;
|
||||||
|
clock-output-names = "clk32k";
|
||||||
|
};
|
||||||
|
|
||||||
|
clkfpc: oscillator@2 {
|
||||||
|
compatible = "fixed-clock";
|
||||||
|
#clock-cells = <0>;
|
||||||
|
clock-frequency = <50000000>;
|
||||||
|
clock-output-names = "clkfpc";
|
||||||
|
};
|
||||||
|
|
||||||
|
clkaud_ext_i_0: oscillator@3 {
|
||||||
|
compatible = "fixed-clock";
|
||||||
|
#clock-cells = <0>;
|
||||||
|
clock-frequency = <6500000>;
|
||||||
|
clock-output-names = "clkaud_ext_i_0";
|
||||||
|
};
|
||||||
|
|
||||||
|
clkaud_ext_i_1: oscillator@4 {
|
||||||
|
compatible = "fixed-clock";
|
||||||
|
#clock-cells = <0>;
|
||||||
|
clock-frequency = <196608000>;
|
||||||
|
clock-output-names = "clkaud_ext_i_1";
|
||||||
|
};
|
||||||
|
|
||||||
|
clkaud_ext_i_2: oscillator@5 {
|
||||||
|
compatible = "fixed-clock";
|
||||||
|
#clock-cells = <0>;
|
||||||
|
clock-frequency = <180633600>;
|
||||||
|
clock-output-names = "clkaud_ext_i_2";
|
||||||
|
};
|
||||||
|
|
||||||
timer {
|
timer {
|
||||||
compatible = "arm,armv8-timer";
|
compatible = "arm,armv8-timer";
|
||||||
interrupt-parent = <&gic>;
|
interrupt-parent = <&gic>;
|
||||||
|
@ -111,6 +154,24 @@
|
||||||
(GIC_CPU_MASK_RAW(0x13) | IRQ_TYPE_LEVEL_LOW)>;
|
(GIC_CPU_MASK_RAW(0x13) | IRQ_TYPE_LEVEL_LOW)>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
topckgen: syscon@10000000 {
|
||||||
|
compatible = "mediatek,mt2712-topckgen", "syscon";
|
||||||
|
reg = <0 0x10000000 0 0x1000>;
|
||||||
|
#clock-cells = <1>;
|
||||||
|
};
|
||||||
|
|
||||||
|
infracfg: syscon@10001000 {
|
||||||
|
compatible = "mediatek,mt2712-infracfg", "syscon";
|
||||||
|
reg = <0 0x10001000 0 0x1000>;
|
||||||
|
#clock-cells = <1>;
|
||||||
|
};
|
||||||
|
|
||||||
|
pericfg: syscon@10003000 {
|
||||||
|
compatible = "mediatek,mt2712-pericfg", "syscon";
|
||||||
|
reg = <0 0x10003000 0 0x1000>;
|
||||||
|
#clock-cells = <1>;
|
||||||
|
};
|
||||||
|
|
||||||
uart5: serial@1000f000 {
|
uart5: serial@1000f000 {
|
||||||
compatible = "mediatek,mt2712-uart",
|
compatible = "mediatek,mt2712-uart",
|
||||||
"mediatek,mt6577-uart";
|
"mediatek,mt6577-uart";
|
||||||
|
@ -121,6 +182,18 @@
|
||||||
status = "disabled";
|
status = "disabled";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
apmixedsys: syscon@10209000 {
|
||||||
|
compatible = "mediatek,mt2712-apmixedsys", "syscon";
|
||||||
|
reg = <0 0x10209000 0 0x1000>;
|
||||||
|
#clock-cells = <1>;
|
||||||
|
};
|
||||||
|
|
||||||
|
mcucfg: syscon@10220000 {
|
||||||
|
compatible = "mediatek,mt2712-mcucfg", "syscon";
|
||||||
|
reg = <0 0x10220000 0 0x1000>;
|
||||||
|
#clock-cells = <1>;
|
||||||
|
};
|
||||||
|
|
||||||
sysirq: interrupt-controller@10220a80 {
|
sysirq: interrupt-controller@10220a80 {
|
||||||
compatible = "mediatek,mt2712-sysirq",
|
compatible = "mediatek,mt2712-sysirq",
|
||||||
"mediatek,mt6577-sysirq";
|
"mediatek,mt6577-sysirq";
|
||||||
|
@ -192,5 +265,47 @@
|
||||||
clock-names = "baud", "bus";
|
clock-names = "baud", "bus";
|
||||||
status = "disabled";
|
status = "disabled";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
mfgcfg: syscon@13000000 {
|
||||||
|
compatible = "mediatek,mt2712-mfgcfg", "syscon";
|
||||||
|
reg = <0 0x13000000 0 0x1000>;
|
||||||
|
#clock-cells = <1>;
|
||||||
|
};
|
||||||
|
|
||||||
|
mmsys: syscon@14000000 {
|
||||||
|
compatible = "mediatek,mt2712-mmsys", "syscon";
|
||||||
|
reg = <0 0x14000000 0 0x1000>;
|
||||||
|
#clock-cells = <1>;
|
||||||
|
};
|
||||||
|
|
||||||
|
imgsys: syscon@15000000 {
|
||||||
|
compatible = "mediatek,mt2712-imgsys", "syscon";
|
||||||
|
reg = <0 0x15000000 0 0x1000>;
|
||||||
|
#clock-cells = <1>;
|
||||||
|
};
|
||||||
|
|
||||||
|
bdpsys: syscon@15010000 {
|
||||||
|
compatible = "mediatek,mt2712-bdpsys", "syscon";
|
||||||
|
reg = <0 0x15010000 0 0x1000>;
|
||||||
|
#clock-cells = <1>;
|
||||||
|
};
|
||||||
|
|
||||||
|
vdecsys: syscon@16000000 {
|
||||||
|
compatible = "mediatek,mt2712-vdecsys", "syscon";
|
||||||
|
reg = <0 0x16000000 0 0x1000>;
|
||||||
|
#clock-cells = <1>;
|
||||||
|
};
|
||||||
|
|
||||||
|
vencsys: syscon@18000000 {
|
||||||
|
compatible = "mediatek,mt2712-vencsys", "syscon";
|
||||||
|
reg = <0 0x18000000 0 0x1000>;
|
||||||
|
#clock-cells = <1>;
|
||||||
|
};
|
||||||
|
|
||||||
|
jpgdecsys: syscon@19000000 {
|
||||||
|
compatible = "mediatek,mt2712-jpgdecsys", "syscon";
|
||||||
|
reg = <0 0x19000000 0 0x1000>;
|
||||||
|
#clock-cells = <1>;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue