xref: /freebsd-src/sys/contrib/device-tree/src/arm/mediatek/mt6580.dtsi (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0
2*f126890aSEmmanuel Vadot/*
3*f126890aSEmmanuel Vadot * Copyright (c) 2015 MediaTek Inc.
4*f126890aSEmmanuel Vadot * Author: Mars.C <mars.cheng@mediatek.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	compatible = "mediatek,mt6580";
13*f126890aSEmmanuel Vadot	#address-cells = <1>;
14*f126890aSEmmanuel Vadot	#size-cells = <1>;
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
42*f126890aSEmmanuel Vadot	};
43*f126890aSEmmanuel Vadot
44*f126890aSEmmanuel Vadot	system_clk: dummy13m {
45*f126890aSEmmanuel Vadot		compatible = "fixed-clock";
46*f126890aSEmmanuel Vadot		clock-frequency = <13000000>;
47*f126890aSEmmanuel Vadot		#clock-cells = <0>;
48*f126890aSEmmanuel Vadot	};
49*f126890aSEmmanuel Vadot
50*f126890aSEmmanuel Vadot	rtc_clk: dummy32k {
51*f126890aSEmmanuel Vadot		compatible = "fixed-clock";
52*f126890aSEmmanuel Vadot		clock-frequency = <32000>;
53*f126890aSEmmanuel Vadot		#clock-cells = <0>;
54*f126890aSEmmanuel Vadot	};
55*f126890aSEmmanuel Vadot
56*f126890aSEmmanuel Vadot	uart_clk: dummy26m {
57*f126890aSEmmanuel Vadot		compatible = "fixed-clock";
58*f126890aSEmmanuel Vadot		clock-frequency = <26000000>;
59*f126890aSEmmanuel Vadot		#clock-cells = <0>;
60*f126890aSEmmanuel Vadot	};
61*f126890aSEmmanuel Vadot
62*f126890aSEmmanuel Vadot	timer: timer@10008000 {
63*f126890aSEmmanuel Vadot		compatible = "mediatek,mt6580-timer",
64*f126890aSEmmanuel Vadot			     "mediatek,mt6577-timer";
65*f126890aSEmmanuel Vadot		reg = <0x10008000 0x80>;
66*f126890aSEmmanuel Vadot		interrupts = <GIC_SPI 92 IRQ_TYPE_LEVEL_LOW>;
67*f126890aSEmmanuel Vadot		clocks = <&system_clk>, <&rtc_clk>;
68*f126890aSEmmanuel Vadot		clock-names = "system-clk", "rtc-clk";
69*f126890aSEmmanuel Vadot	};
70*f126890aSEmmanuel Vadot
71*f126890aSEmmanuel Vadot	sysirq: interrupt-controller@10200100 {
72*f126890aSEmmanuel Vadot		compatible = "mediatek,mt6580-sysirq",
73*f126890aSEmmanuel Vadot			     "mediatek,mt6577-sysirq";
74*f126890aSEmmanuel Vadot		interrupt-controller;
75*f126890aSEmmanuel Vadot		#interrupt-cells = <3>;
76*f126890aSEmmanuel Vadot		interrupt-parent = <&gic>;
77*f126890aSEmmanuel Vadot		reg = <0x10200100 0x1c>;
78*f126890aSEmmanuel Vadot	};
79*f126890aSEmmanuel Vadot
80*f126890aSEmmanuel Vadot	gic: interrupt-controller@10211000 {
81*f126890aSEmmanuel Vadot		compatible = "arm,cortex-a7-gic";
82*f126890aSEmmanuel Vadot		interrupt-controller;
83*f126890aSEmmanuel Vadot		#interrupt-cells = <3>;
84*f126890aSEmmanuel Vadot		interrupt-parent = <&gic>;
85*f126890aSEmmanuel Vadot		reg = <0x10211000 0x1000>,
86*f126890aSEmmanuel Vadot		      <0x10212000 0x2000>,
87*f126890aSEmmanuel Vadot		      <0x10214000 0x2000>,
88*f126890aSEmmanuel Vadot		      <0x10216000 0x2000>;
89*f126890aSEmmanuel Vadot	};
90*f126890aSEmmanuel Vadot
91*f126890aSEmmanuel Vadot	uart0: serial@11005000 {
92*f126890aSEmmanuel Vadot		compatible = "mediatek,mt6580-uart",
93*f126890aSEmmanuel Vadot			     "mediatek,mt6577-uart";
94*f126890aSEmmanuel Vadot		reg = <0x11005000 0x400>;
95*f126890aSEmmanuel Vadot		interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_LOW>;
96*f126890aSEmmanuel Vadot		clocks = <&uart_clk>;
97*f126890aSEmmanuel Vadot		status = "disabled";
98*f126890aSEmmanuel Vadot	};
99*f126890aSEmmanuel Vadot
100*f126890aSEmmanuel Vadot	uart1: serial@11006000 {
101*f126890aSEmmanuel Vadot		compatible = "mediatek,mt6580-uart",
102*f126890aSEmmanuel Vadot			     "mediatek,mt6577-uart";
103*f126890aSEmmanuel Vadot		reg = <0x11006000 0x400>;
104*f126890aSEmmanuel Vadot		interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_LOW>;
105*f126890aSEmmanuel Vadot		clocks = <&uart_clk>;
106*f126890aSEmmanuel Vadot		status = "disabled";
107*f126890aSEmmanuel Vadot	};
108*f126890aSEmmanuel Vadot};
109