xref: /freebsd-src/sys/contrib/device-tree/src/arm/mediatek/mt6589.dtsi (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0+
2*f126890aSEmmanuel Vadot/*
3*f126890aSEmmanuel Vadot * Copyright (c) 2014 MundoReader S.L.
4*f126890aSEmmanuel Vadot * Author: Matthias Brugger <matthias.bgg@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,mt6589";
15*f126890aSEmmanuel Vadot	interrupt-parent = <&sysirq>;
16*f126890aSEmmanuel Vadot
17*f126890aSEmmanuel Vadot	cpus: cpus {
18*f126890aSEmmanuel Vadot		#address-cells = <1>;
19*f126890aSEmmanuel Vadot		#size-cells = <0>;
20*f126890aSEmmanuel Vadot		enable-method = "mediatek,mt6589-smp";
21*f126890aSEmmanuel Vadot
22*f126890aSEmmanuel Vadot		cpu@0 {
23*f126890aSEmmanuel Vadot			device_type = "cpu";
24*f126890aSEmmanuel Vadot			compatible = "arm,cortex-a7";
25*f126890aSEmmanuel Vadot			reg = <0x0>;
26*f126890aSEmmanuel Vadot		};
27*f126890aSEmmanuel Vadot		cpu@1 {
28*f126890aSEmmanuel Vadot			device_type = "cpu";
29*f126890aSEmmanuel Vadot			compatible = "arm,cortex-a7";
30*f126890aSEmmanuel Vadot			reg = <0x1>;
31*f126890aSEmmanuel Vadot		};
32*f126890aSEmmanuel Vadot		cpu@2 {
33*f126890aSEmmanuel Vadot			device_type = "cpu";
34*f126890aSEmmanuel Vadot			compatible = "arm,cortex-a7";
35*f126890aSEmmanuel Vadot			reg = <0x2>;
36*f126890aSEmmanuel Vadot		};
37*f126890aSEmmanuel Vadot		cpu@3 {
38*f126890aSEmmanuel Vadot			device_type = "cpu";
39*f126890aSEmmanuel Vadot			compatible = "arm,cortex-a7";
40*f126890aSEmmanuel Vadot			reg = <0x3>;
41*f126890aSEmmanuel Vadot		};
42*f126890aSEmmanuel Vadot
43*f126890aSEmmanuel Vadot	};
44*f126890aSEmmanuel Vadot
45*f126890aSEmmanuel Vadot	clocks {
46*f126890aSEmmanuel Vadot		#address-cells = <1>;
47*f126890aSEmmanuel Vadot		#size-cells = <1>;
48*f126890aSEmmanuel Vadot		compatible = "simple-bus";
49*f126890aSEmmanuel Vadot		ranges;
50*f126890aSEmmanuel Vadot
51*f126890aSEmmanuel Vadot		system_clk: dummy13m {
52*f126890aSEmmanuel Vadot			compatible = "fixed-clock";
53*f126890aSEmmanuel Vadot			clock-frequency = <13000000>;
54*f126890aSEmmanuel Vadot			#clock-cells = <0>;
55*f126890aSEmmanuel Vadot		};
56*f126890aSEmmanuel Vadot
57*f126890aSEmmanuel Vadot		rtc_clk: dummy32k {
58*f126890aSEmmanuel Vadot			compatible = "fixed-clock";
59*f126890aSEmmanuel Vadot			clock-frequency = <32000>;
60*f126890aSEmmanuel Vadot			#clock-cells = <0>;
61*f126890aSEmmanuel Vadot		};
62*f126890aSEmmanuel Vadot
63*f126890aSEmmanuel Vadot		uart_clk: dummy26m {
64*f126890aSEmmanuel Vadot			compatible = "fixed-clock";
65*f126890aSEmmanuel Vadot			clock-frequency = <26000000>;
66*f126890aSEmmanuel Vadot			#clock-cells = <0>;
67*f126890aSEmmanuel Vadot		};
68*f126890aSEmmanuel Vadot	};
69*f126890aSEmmanuel Vadot
70*f126890aSEmmanuel Vadot	soc {
71*f126890aSEmmanuel Vadot		#address-cells = <1>;
72*f126890aSEmmanuel Vadot		#size-cells = <1>;
73*f126890aSEmmanuel Vadot		compatible = "simple-bus";
74*f126890aSEmmanuel Vadot		ranges;
75*f126890aSEmmanuel Vadot
76*f126890aSEmmanuel Vadot		timer: timer@10008000 {
77*f126890aSEmmanuel Vadot			compatible = "mediatek,mt6577-timer";
78*f126890aSEmmanuel Vadot			reg = <0x10008000 0x80>;
79*f126890aSEmmanuel Vadot			interrupts = <GIC_SPI 113 IRQ_TYPE_LEVEL_LOW>;
80*f126890aSEmmanuel Vadot			clocks = <&system_clk>, <&rtc_clk>;
81*f126890aSEmmanuel Vadot			clock-names = "system-clk", "rtc-clk";
82*f126890aSEmmanuel Vadot		};
83*f126890aSEmmanuel Vadot
84*f126890aSEmmanuel Vadot		sysirq: interrupt-controller@10200100 {
85*f126890aSEmmanuel Vadot			compatible = "mediatek,mt6589-sysirq",
86*f126890aSEmmanuel Vadot				     "mediatek,mt6577-sysirq";
87*f126890aSEmmanuel Vadot			interrupt-controller;
88*f126890aSEmmanuel Vadot			#interrupt-cells = <3>;
89*f126890aSEmmanuel Vadot			interrupt-parent = <&gic>;
90*f126890aSEmmanuel Vadot			reg = <0x10200100 0x1c>;
91*f126890aSEmmanuel Vadot		};
92*f126890aSEmmanuel Vadot
93*f126890aSEmmanuel Vadot		gic: interrupt-controller@10211000 {
94*f126890aSEmmanuel Vadot			compatible = "arm,cortex-a7-gic";
95*f126890aSEmmanuel Vadot			interrupt-controller;
96*f126890aSEmmanuel Vadot			#interrupt-cells = <3>;
97*f126890aSEmmanuel Vadot			interrupt-parent = <&gic>;
98*f126890aSEmmanuel Vadot			reg = <0x10211000 0x1000>,
99*f126890aSEmmanuel Vadot			      <0x10212000 0x2000>,
100*f126890aSEmmanuel Vadot			      <0x10214000 0x2000>,
101*f126890aSEmmanuel Vadot			      <0x10216000 0x2000>;
102*f126890aSEmmanuel Vadot		};
103*f126890aSEmmanuel Vadot
104*f126890aSEmmanuel Vadot		uart0: serial@11006000 {
105*f126890aSEmmanuel Vadot			compatible = "mediatek,mt6577-uart";
106*f126890aSEmmanuel Vadot			reg = <0x11006000 0x400>;
107*f126890aSEmmanuel Vadot			interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_LOW>;
108*f126890aSEmmanuel Vadot			clocks = <&uart_clk>;
109*f126890aSEmmanuel Vadot			status = "disabled";
110*f126890aSEmmanuel Vadot		};
111*f126890aSEmmanuel Vadot
112*f126890aSEmmanuel Vadot		uart1: serial@11007000 {
113*f126890aSEmmanuel Vadot			compatible = "mediatek,mt6577-uart";
114*f126890aSEmmanuel Vadot			reg = <0x11007000 0x400>;
115*f126890aSEmmanuel Vadot			interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_LOW>;
116*f126890aSEmmanuel Vadot			clocks = <&uart_clk>;
117*f126890aSEmmanuel Vadot			status = "disabled";
118*f126890aSEmmanuel Vadot		};
119*f126890aSEmmanuel Vadot
120*f126890aSEmmanuel Vadot		uart2: serial@11008000 {
121*f126890aSEmmanuel Vadot			compatible = "mediatek,mt6577-uart";
122*f126890aSEmmanuel Vadot			reg = <0x11008000 0x400>;
123*f126890aSEmmanuel Vadot			interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_LOW>;
124*f126890aSEmmanuel Vadot			clocks = <&uart_clk>;
125*f126890aSEmmanuel Vadot			status = "disabled";
126*f126890aSEmmanuel Vadot		};
127*f126890aSEmmanuel Vadot
128*f126890aSEmmanuel Vadot		uart3: serial@11009000 {
129*f126890aSEmmanuel Vadot			compatible = "mediatek,mt6577-uart";
130*f126890aSEmmanuel Vadot			reg = <0x11009000 0x400>;
131*f126890aSEmmanuel Vadot			interrupts = <GIC_SPI 54 IRQ_TYPE_LEVEL_LOW>;
132*f126890aSEmmanuel Vadot			clocks = <&uart_clk>;
133*f126890aSEmmanuel Vadot			status = "disabled";
134*f126890aSEmmanuel Vadot		};
135*f126890aSEmmanuel Vadot
136*f126890aSEmmanuel Vadot		wdt: watchdog@10000000 {
137*f126890aSEmmanuel Vadot			compatible = "mediatek,mt6589-wdt";
138*f126890aSEmmanuel Vadot			reg = <0x10000000 0x44>;
139*f126890aSEmmanuel Vadot		};
140*f126890aSEmmanuel Vadot	};
141*f126890aSEmmanuel Vadot};
142