xref: /freebsd-src/sys/contrib/device-tree/src/arm/mediatek/mt6592.dtsi (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0
2*f126890aSEmmanuel Vadot/*
3*f126890aSEmmanuel Vadot * Copyright (c) 2014 MediaTek Inc.
4*f126890aSEmmanuel Vadot * Author: Howard Chen <ibanezchen@gmail.com>
5*f126890aSEmmanuel Vadot *
6*f126890aSEmmanuel Vadot */
7*f126890aSEmmanuel Vadot
8*f126890aSEmmanuel Vadot#include <dt-bindings/interrupt-controller/irq.h>
9*f126890aSEmmanuel Vadot#include <dt-bindings/interrupt-controller/arm-gic.h>
10*f126890aSEmmanuel Vadot
11*f126890aSEmmanuel Vadot/ {
12*f126890aSEmmanuel Vadot	#address-cells = <1>;
13*f126890aSEmmanuel Vadot	#size-cells = <1>;
14*f126890aSEmmanuel Vadot	compatible = "mediatek,mt6592";
15*f126890aSEmmanuel Vadot	interrupt-parent = <&sysirq>;
16*f126890aSEmmanuel Vadot
17*f126890aSEmmanuel Vadot	cpus {
18*f126890aSEmmanuel Vadot		#address-cells = <1>;
19*f126890aSEmmanuel Vadot		#size-cells = <0>;
20*f126890aSEmmanuel Vadot
21*f126890aSEmmanuel Vadot		cpu@0 {
22*f126890aSEmmanuel Vadot			device_type = "cpu";
23*f126890aSEmmanuel Vadot			compatible = "arm,cortex-a7";
24*f126890aSEmmanuel Vadot			reg = <0x0>;
25*f126890aSEmmanuel Vadot		};
26*f126890aSEmmanuel Vadot		cpu@1 {
27*f126890aSEmmanuel Vadot			device_type = "cpu";
28*f126890aSEmmanuel Vadot			compatible = "arm,cortex-a7";
29*f126890aSEmmanuel Vadot			reg = <0x1>;
30*f126890aSEmmanuel Vadot		};
31*f126890aSEmmanuel Vadot		cpu@2 {
32*f126890aSEmmanuel Vadot			device_type = "cpu";
33*f126890aSEmmanuel Vadot			compatible = "arm,cortex-a7";
34*f126890aSEmmanuel Vadot			reg = <0x2>;
35*f126890aSEmmanuel Vadot		};
36*f126890aSEmmanuel Vadot		cpu@3 {
37*f126890aSEmmanuel Vadot			device_type = "cpu";
38*f126890aSEmmanuel Vadot			compatible = "arm,cortex-a7";
39*f126890aSEmmanuel Vadot			reg = <0x3>;
40*f126890aSEmmanuel Vadot		};
41*f126890aSEmmanuel Vadot		cpu@4 {
42*f126890aSEmmanuel Vadot			device_type = "cpu";
43*f126890aSEmmanuel Vadot			compatible = "arm,cortex-a7";
44*f126890aSEmmanuel Vadot			reg = <0x4>;
45*f126890aSEmmanuel Vadot		};
46*f126890aSEmmanuel Vadot		cpu@5 {
47*f126890aSEmmanuel Vadot			device_type = "cpu";
48*f126890aSEmmanuel Vadot			compatible = "arm,cortex-a7";
49*f126890aSEmmanuel Vadot			reg = <0x5>;
50*f126890aSEmmanuel Vadot		};
51*f126890aSEmmanuel Vadot		cpu@6 {
52*f126890aSEmmanuel Vadot			device_type = "cpu";
53*f126890aSEmmanuel Vadot			compatible = "arm,cortex-a7";
54*f126890aSEmmanuel Vadot			reg = <0x6>;
55*f126890aSEmmanuel Vadot		};
56*f126890aSEmmanuel Vadot		cpu@7 {
57*f126890aSEmmanuel Vadot			device_type = "cpu";
58*f126890aSEmmanuel Vadot			compatible = "arm,cortex-a7";
59*f126890aSEmmanuel Vadot			reg = <0x7>;
60*f126890aSEmmanuel Vadot		};
61*f126890aSEmmanuel Vadot	};
62*f126890aSEmmanuel Vadot
63*f126890aSEmmanuel Vadot	system_clk: dummy13m {
64*f126890aSEmmanuel Vadot		compatible = "fixed-clock";
65*f126890aSEmmanuel Vadot		clock-frequency = <13000000>;
66*f126890aSEmmanuel Vadot		#clock-cells = <0>;
67*f126890aSEmmanuel Vadot	};
68*f126890aSEmmanuel Vadot
69*f126890aSEmmanuel Vadot	rtc_clk: dummy32k {
70*f126890aSEmmanuel Vadot		compatible = "fixed-clock";
71*f126890aSEmmanuel Vadot		clock-frequency = <32000>;
72*f126890aSEmmanuel Vadot		#clock-cells = <0>;
73*f126890aSEmmanuel Vadot	};
74*f126890aSEmmanuel Vadot
75*f126890aSEmmanuel Vadot	uart_clk: dummy26m {
76*f126890aSEmmanuel Vadot		compatible = "fixed-clock";
77*f126890aSEmmanuel Vadot		clock-frequency = <26000000>;
78*f126890aSEmmanuel Vadot		#clock-cells = <0>;
79*f126890aSEmmanuel Vadot	};
80*f126890aSEmmanuel Vadot
81*f126890aSEmmanuel Vadot	timer: timer@10008000 {
82*f126890aSEmmanuel Vadot		compatible = "mediatek,mt6577-timer";
83*f126890aSEmmanuel Vadot		reg = <0x10008000 0x80>;
84*f126890aSEmmanuel Vadot		interrupts = <GIC_SPI 144 IRQ_TYPE_LEVEL_LOW>;
85*f126890aSEmmanuel Vadot		clocks = <&system_clk>, <&rtc_clk>;
86*f126890aSEmmanuel Vadot		clock-names = "system-clk", "rtc-clk";
87*f126890aSEmmanuel Vadot	};
88*f126890aSEmmanuel Vadot
89*f126890aSEmmanuel Vadot	sysirq: interrupt-controller@10200220 {
90*f126890aSEmmanuel Vadot		compatible = "mediatek,mt6592-sysirq", "mediatek,mt6577-sysirq";
91*f126890aSEmmanuel Vadot		interrupt-controller;
92*f126890aSEmmanuel Vadot		#interrupt-cells = <3>;
93*f126890aSEmmanuel Vadot		interrupt-parent = <&gic>;
94*f126890aSEmmanuel Vadot		reg = <0x10200220 0x1c>;
95*f126890aSEmmanuel Vadot	};
96*f126890aSEmmanuel Vadot
97*f126890aSEmmanuel Vadot	gic: interrupt-controller@10211000 {
98*f126890aSEmmanuel Vadot		compatible = "arm,cortex-a7-gic";
99*f126890aSEmmanuel Vadot		interrupt-controller;
100*f126890aSEmmanuel Vadot		#interrupt-cells = <3>;
101*f126890aSEmmanuel Vadot		interrupt-parent = <&gic>;
102*f126890aSEmmanuel Vadot		reg = <0x10211000 0x1000>,
103*f126890aSEmmanuel Vadot		      <0x10212000 0x1000>;
104*f126890aSEmmanuel Vadot	};
105*f126890aSEmmanuel Vadot
106*f126890aSEmmanuel Vadot	uart0: serial@11002000 {
107*f126890aSEmmanuel Vadot		compatible = "mediatek,mt6577-uart";
108*f126890aSEmmanuel Vadot		reg = <0x11002000 0x400>;
109*f126890aSEmmanuel Vadot		interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_LOW>;
110*f126890aSEmmanuel Vadot		clocks = <&uart_clk>;
111*f126890aSEmmanuel Vadot		status = "disabled";
112*f126890aSEmmanuel Vadot	};
113*f126890aSEmmanuel Vadot
114*f126890aSEmmanuel Vadot	uart1: serial@11003000 {
115*f126890aSEmmanuel Vadot		compatible = "mediatek,mt6577-uart";
116*f126890aSEmmanuel Vadot		reg = <0x11003000 0x400>;
117*f126890aSEmmanuel Vadot		interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_LOW>;
118*f126890aSEmmanuel Vadot		clocks = <&uart_clk>;
119*f126890aSEmmanuel Vadot		status = "disabled";
120*f126890aSEmmanuel Vadot	};
121*f126890aSEmmanuel Vadot
122*f126890aSEmmanuel Vadot	uart2: serial@11004000 {
123*f126890aSEmmanuel Vadot		compatible = "mediatek,mt6577-uart";
124*f126890aSEmmanuel Vadot		reg = <0x11004000 0x400>;
125*f126890aSEmmanuel Vadot		interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_LOW>;
126*f126890aSEmmanuel Vadot		clocks = <&uart_clk>;
127*f126890aSEmmanuel Vadot		status = "disabled";
128*f126890aSEmmanuel Vadot	};
129*f126890aSEmmanuel Vadot
130*f126890aSEmmanuel Vadot	uart3: serial@11005000 {
131*f126890aSEmmanuel Vadot		compatible = "mediatek,mt6577-uart";
132*f126890aSEmmanuel Vadot		reg = <0x11005000 0x400>;
133*f126890aSEmmanuel Vadot		interrupts = <GIC_SPI 54 IRQ_TYPE_LEVEL_LOW>;
134*f126890aSEmmanuel Vadot		clocks = <&uart_clk>;
135*f126890aSEmmanuel Vadot		status = "disabled";
136*f126890aSEmmanuel Vadot	};
137*f126890aSEmmanuel Vadot};
138