xref: /linux/arch/arm/boot/dts/mediatek/mt8127.dtsi (revision cdd5b5a9761fd66d17586e4f4ba6588c70e640ea)
1*724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0
2*724ba675SRob Herring/*
3*724ba675SRob Herring * Copyright (c) 2014 MediaTek Inc.
4*724ba675SRob Herring * Author: Joe.C <yingjoe.chen@mediatek.com>
5*724ba675SRob Herring *
6*724ba675SRob Herring */
7*724ba675SRob Herring
8*724ba675SRob Herring#include <dt-bindings/interrupt-controller/irq.h>
9*724ba675SRob Herring#include <dt-bindings/interrupt-controller/arm-gic.h>
10*724ba675SRob Herring
11*724ba675SRob Herring/ {
12*724ba675SRob Herring	#address-cells = <2>;
13*724ba675SRob Herring	#size-cells = <2>;
14*724ba675SRob Herring	compatible = "mediatek,mt8127";
15*724ba675SRob Herring	interrupt-parent = <&sysirq>;
16*724ba675SRob Herring
17*724ba675SRob Herring	cpus {
18*724ba675SRob Herring		#address-cells = <1>;
19*724ba675SRob Herring		#size-cells = <0>;
20*724ba675SRob Herring		enable-method = "mediatek,mt81xx-tz-smp";
21*724ba675SRob Herring
22*724ba675SRob Herring		cpu@0 {
23*724ba675SRob Herring			device_type = "cpu";
24*724ba675SRob Herring			compatible = "arm,cortex-a7";
25*724ba675SRob Herring			reg = <0x0>;
26*724ba675SRob Herring		};
27*724ba675SRob Herring		cpu@1 {
28*724ba675SRob Herring			device_type = "cpu";
29*724ba675SRob Herring			compatible = "arm,cortex-a7";
30*724ba675SRob Herring			reg = <0x1>;
31*724ba675SRob Herring		};
32*724ba675SRob Herring		cpu@2 {
33*724ba675SRob Herring			device_type = "cpu";
34*724ba675SRob Herring			compatible = "arm,cortex-a7";
35*724ba675SRob Herring			reg = <0x2>;
36*724ba675SRob Herring		};
37*724ba675SRob Herring		cpu@3 {
38*724ba675SRob Herring			device_type = "cpu";
39*724ba675SRob Herring			compatible = "arm,cortex-a7";
40*724ba675SRob Herring			reg = <0x3>;
41*724ba675SRob Herring		};
42*724ba675SRob Herring
43*724ba675SRob Herring	};
44*724ba675SRob Herring
45*724ba675SRob Herring	reserved-memory {
46*724ba675SRob Herring		#address-cells = <2>;
47*724ba675SRob Herring		#size-cells = <2>;
48*724ba675SRob Herring		ranges;
49*724ba675SRob Herring
50*724ba675SRob Herring		trustzone-bootinfo@80002000 {
51*724ba675SRob Herring			compatible = "mediatek,trustzone-bootinfo";
52*724ba675SRob Herring			reg = <0 0x80002000 0 0x1000>;
53*724ba675SRob Herring		};
54*724ba675SRob Herring	};
55*724ba675SRob Herring
56*724ba675SRob Herring	clocks {
57*724ba675SRob Herring		#address-cells = <2>;
58*724ba675SRob Herring		#size-cells = <2>;
59*724ba675SRob Herring		compatible = "simple-bus";
60*724ba675SRob Herring		ranges;
61*724ba675SRob Herring
62*724ba675SRob Herring		system_clk: dummy13m {
63*724ba675SRob Herring			compatible = "fixed-clock";
64*724ba675SRob Herring			clock-frequency = <13000000>;
65*724ba675SRob Herring			#clock-cells = <0>;
66*724ba675SRob Herring		};
67*724ba675SRob Herring
68*724ba675SRob Herring		rtc_clk: dummy32k {
69*724ba675SRob Herring			compatible = "fixed-clock";
70*724ba675SRob Herring			clock-frequency = <32000>;
71*724ba675SRob Herring			#clock-cells = <0>;
72*724ba675SRob Herring		};
73*724ba675SRob Herring
74*724ba675SRob Herring		uart_clk: dummy26m {
75*724ba675SRob Herring			compatible = "fixed-clock";
76*724ba675SRob Herring			clock-frequency = <26000000>;
77*724ba675SRob Herring			#clock-cells = <0>;
78*724ba675SRob Herring                };
79*724ba675SRob Herring	};
80*724ba675SRob Herring
81*724ba675SRob Herring	timer {
82*724ba675SRob Herring		compatible = "arm,armv7-timer";
83*724ba675SRob Herring		interrupt-parent = <&gic>;
84*724ba675SRob Herring		interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) |
85*724ba675SRob Herring					  IRQ_TYPE_LEVEL_LOW)>,
86*724ba675SRob Herring			     <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) |
87*724ba675SRob Herring					  IRQ_TYPE_LEVEL_LOW)>,
88*724ba675SRob Herring			     <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) |
89*724ba675SRob Herring					  IRQ_TYPE_LEVEL_LOW)>,
90*724ba675SRob Herring			     <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) |
91*724ba675SRob Herring					  IRQ_TYPE_LEVEL_LOW)>;
92*724ba675SRob Herring		clock-frequency = <13000000>;
93*724ba675SRob Herring		arm,cpu-registers-not-fw-configured;
94*724ba675SRob Herring	};
95*724ba675SRob Herring
96*724ba675SRob Herring	soc {
97*724ba675SRob Herring		#address-cells = <2>;
98*724ba675SRob Herring		#size-cells = <2>;
99*724ba675SRob Herring		compatible = "simple-bus";
100*724ba675SRob Herring		ranges;
101*724ba675SRob Herring
102*724ba675SRob Herring		timer: timer@10008000 {
103*724ba675SRob Herring			compatible = "mediatek,mt8127-timer",
104*724ba675SRob Herring					"mediatek,mt6577-timer";
105*724ba675SRob Herring			reg = <0 0x10008000 0 0x80>;
106*724ba675SRob Herring			interrupts = <GIC_SPI 112 IRQ_TYPE_LEVEL_LOW>;
107*724ba675SRob Herring			clocks = <&system_clk>, <&rtc_clk>;
108*724ba675SRob Herring			clock-names = "system-clk", "rtc-clk";
109*724ba675SRob Herring		};
110*724ba675SRob Herring
111*724ba675SRob Herring		sysirq: interrupt-controller@10200100 {
112*724ba675SRob Herring			compatible = "mediatek,mt8127-sysirq",
113*724ba675SRob Herring				     "mediatek,mt6577-sysirq";
114*724ba675SRob Herring			interrupt-controller;
115*724ba675SRob Herring			#interrupt-cells = <3>;
116*724ba675SRob Herring			interrupt-parent = <&gic>;
117*724ba675SRob Herring			reg = <0 0x10200100 0 0x1c>;
118*724ba675SRob Herring		};
119*724ba675SRob Herring
120*724ba675SRob Herring		gic: interrupt-controller@10211000 {
121*724ba675SRob Herring			compatible = "arm,cortex-a7-gic";
122*724ba675SRob Herring			interrupt-controller;
123*724ba675SRob Herring			#interrupt-cells = <3>;
124*724ba675SRob Herring			interrupt-parent = <&gic>;
125*724ba675SRob Herring			reg = <0 0x10211000 0 0x1000>,
126*724ba675SRob Herring			      <0 0x10212000 0 0x2000>,
127*724ba675SRob Herring			      <0 0x10214000 0 0x2000>,
128*724ba675SRob Herring			      <0 0x10216000 0 0x2000>;
129*724ba675SRob Herring		};
130*724ba675SRob Herring
131*724ba675SRob Herring		uart0: serial@11002000 {
132*724ba675SRob Herring			compatible = "mediatek,mt8127-uart","mediatek,mt6577-uart";
133*724ba675SRob Herring			reg = <0 0x11002000 0 0x400>;
134*724ba675SRob Herring			interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_LOW>;
135*724ba675SRob Herring			clocks = <&uart_clk>;
136*724ba675SRob Herring			status = "disabled";
137*724ba675SRob Herring		};
138*724ba675SRob Herring
139*724ba675SRob Herring		uart1: serial@11003000 {
140*724ba675SRob Herring			compatible = "mediatek,mt8127-uart","mediatek,mt6577-uart";
141*724ba675SRob Herring			reg = <0 0x11003000 0 0x400>;
142*724ba675SRob Herring			interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_LOW>;
143*724ba675SRob Herring			clocks = <&uart_clk>;
144*724ba675SRob Herring			status = "disabled";
145*724ba675SRob Herring		};
146*724ba675SRob Herring
147*724ba675SRob Herring		uart2: serial@11004000 {
148*724ba675SRob Herring			compatible = "mediatek,mt8127-uart","mediatek,mt6577-uart";
149*724ba675SRob Herring			reg = <0 0x11004000 0 0x400>;
150*724ba675SRob Herring			interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_LOW>;
151*724ba675SRob Herring			clocks = <&uart_clk>;
152*724ba675SRob Herring			status = "disabled";
153*724ba675SRob Herring		};
154*724ba675SRob Herring
155*724ba675SRob Herring		uart3: serial@11005000 {
156*724ba675SRob Herring			compatible = "mediatek,mt8127-uart","mediatek,mt6577-uart";
157*724ba675SRob Herring			reg = <0 0x11005000 0 0x400>;
158*724ba675SRob Herring			interrupts = <GIC_SPI 54 IRQ_TYPE_LEVEL_LOW>;
159*724ba675SRob Herring			clocks = <&uart_clk>;
160*724ba675SRob Herring			status = "disabled";
161*724ba675SRob Herring		};
162*724ba675SRob Herring	};
163*724ba675SRob Herring};
164