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