xref: /freebsd-src/sys/contrib/device-tree/src/arm64/mediatek/mt6755.dtsi (revision b97ee269eae3cbaf35c18f51a459aea581c2a7dc)
1*b97ee269SEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-only
2c66ec88fSEmmanuel Vadot/*
3c66ec88fSEmmanuel Vadot * Copyright (c) 2016 MediaTek Inc.
4c66ec88fSEmmanuel Vadot * Author: Mars.C <mars.cheng@mediatek.com>
5c66ec88fSEmmanuel Vadot */
6c66ec88fSEmmanuel Vadot
7c66ec88fSEmmanuel Vadot#include <dt-bindings/interrupt-controller/irq.h>
8c66ec88fSEmmanuel Vadot#include <dt-bindings/interrupt-controller/arm-gic.h>
9c66ec88fSEmmanuel Vadot
10c66ec88fSEmmanuel Vadot/ {
11c66ec88fSEmmanuel Vadot	compatible = "mediatek,mt6755";
12c66ec88fSEmmanuel Vadot	interrupt-parent = <&sysirq>;
13c66ec88fSEmmanuel Vadot	#address-cells = <2>;
14c66ec88fSEmmanuel Vadot	#size-cells = <2>;
15c66ec88fSEmmanuel Vadot
16c66ec88fSEmmanuel Vadot	psci {
17c66ec88fSEmmanuel Vadot		compatible = "arm,psci-0.2";
18c66ec88fSEmmanuel Vadot		method = "smc";
19c66ec88fSEmmanuel Vadot	};
20c66ec88fSEmmanuel Vadot
21c66ec88fSEmmanuel Vadot	cpus {
22c66ec88fSEmmanuel Vadot		#address-cells = <1>;
23c66ec88fSEmmanuel Vadot		#size-cells = <0>;
24c66ec88fSEmmanuel Vadot
25c66ec88fSEmmanuel Vadot		cpu0: cpu@0 {
26c66ec88fSEmmanuel Vadot			device_type = "cpu";
27c66ec88fSEmmanuel Vadot			compatible = "arm,cortex-a53";
28c66ec88fSEmmanuel Vadot			enable-method = "psci";
29c66ec88fSEmmanuel Vadot			reg = <0x000>;
30c66ec88fSEmmanuel Vadot		};
31c66ec88fSEmmanuel Vadot
32c66ec88fSEmmanuel Vadot		cpu1: cpu@1 {
33c66ec88fSEmmanuel Vadot			device_type = "cpu";
34c66ec88fSEmmanuel Vadot			compatible = "arm,cortex-a53";
35c66ec88fSEmmanuel Vadot			enable-method = "psci";
36c66ec88fSEmmanuel Vadot			reg = <0x001>;
37c66ec88fSEmmanuel Vadot		};
38c66ec88fSEmmanuel Vadot
39c66ec88fSEmmanuel Vadot		cpu2: cpu@2 {
40c66ec88fSEmmanuel Vadot			device_type = "cpu";
41c66ec88fSEmmanuel Vadot			compatible = "arm,cortex-a53";
42c66ec88fSEmmanuel Vadot			enable-method = "psci";
43c66ec88fSEmmanuel Vadot			reg = <0x002>;
44c66ec88fSEmmanuel Vadot		};
45c66ec88fSEmmanuel Vadot
46c66ec88fSEmmanuel Vadot		cpu3: cpu@3 {
47c66ec88fSEmmanuel Vadot			device_type = "cpu";
48c66ec88fSEmmanuel Vadot			compatible = "arm,cortex-a53";
49c66ec88fSEmmanuel Vadot			enable-method = "psci";
50c66ec88fSEmmanuel Vadot			reg = <0x003>;
51c66ec88fSEmmanuel Vadot		};
52c66ec88fSEmmanuel Vadot
53c66ec88fSEmmanuel Vadot		cpu4: cpu@100 {
54c66ec88fSEmmanuel Vadot			device_type = "cpu";
55c66ec88fSEmmanuel Vadot			compatible = "arm,cortex-a53";
56c66ec88fSEmmanuel Vadot			enable-method = "psci";
57c66ec88fSEmmanuel Vadot			reg = <0x100>;
58c66ec88fSEmmanuel Vadot		};
59c66ec88fSEmmanuel Vadot
60c66ec88fSEmmanuel Vadot		cpu5: cpu@101 {
61c66ec88fSEmmanuel Vadot			device_type = "cpu";
62c66ec88fSEmmanuel Vadot			compatible = "arm,cortex-a53";
63c66ec88fSEmmanuel Vadot			enable-method = "psci";
64c66ec88fSEmmanuel Vadot			reg = <0x101>;
65c66ec88fSEmmanuel Vadot		};
66c66ec88fSEmmanuel Vadot
67c66ec88fSEmmanuel Vadot		cpu6: cpu@102 {
68c66ec88fSEmmanuel Vadot			device_type = "cpu";
69c66ec88fSEmmanuel Vadot			compatible = "arm,cortex-a53";
70c66ec88fSEmmanuel Vadot			enable-method = "psci";
71c66ec88fSEmmanuel Vadot			reg = <0x102>;
72c66ec88fSEmmanuel Vadot		};
73c66ec88fSEmmanuel Vadot
74c66ec88fSEmmanuel Vadot		cpu7: cpu@103 {
75c66ec88fSEmmanuel Vadot			device_type = "cpu";
76c66ec88fSEmmanuel Vadot			compatible = "arm,cortex-a53";
77c66ec88fSEmmanuel Vadot			enable-method = "psci";
78c66ec88fSEmmanuel Vadot			reg = <0x103>;
79c66ec88fSEmmanuel Vadot		};
80c66ec88fSEmmanuel Vadot	};
81c66ec88fSEmmanuel Vadot
82c66ec88fSEmmanuel Vadot	uart_clk: dummy26m {
83c66ec88fSEmmanuel Vadot		compatible = "fixed-clock";
84c66ec88fSEmmanuel Vadot		clock-frequency = <26000000>;
85c66ec88fSEmmanuel Vadot		#clock-cells = <0>;
86c66ec88fSEmmanuel Vadot	};
87c66ec88fSEmmanuel Vadot
88c66ec88fSEmmanuel Vadot	timer {
89c66ec88fSEmmanuel Vadot		compatible = "arm,armv8-timer";
90c66ec88fSEmmanuel Vadot		interrupt-parent = <&gic>;
91c66ec88fSEmmanuel Vadot		interrupts = <GIC_PPI 13
92c66ec88fSEmmanuel Vadot			     (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>,
93c66ec88fSEmmanuel Vadot			     <GIC_PPI 14
94c66ec88fSEmmanuel Vadot			     (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>,
95c66ec88fSEmmanuel Vadot			     <GIC_PPI 11
96c66ec88fSEmmanuel Vadot			     (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>,
97c66ec88fSEmmanuel Vadot			     <GIC_PPI 10
98c66ec88fSEmmanuel Vadot			     (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>;
99c66ec88fSEmmanuel Vadot	};
100c66ec88fSEmmanuel Vadot
101c66ec88fSEmmanuel Vadot	sysirq: intpol-controller@10200620 {
102c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt6755-sysirq",
103c66ec88fSEmmanuel Vadot			     "mediatek,mt6577-sysirq";
104c66ec88fSEmmanuel Vadot		interrupt-controller;
105c66ec88fSEmmanuel Vadot		#interrupt-cells = <3>;
106c66ec88fSEmmanuel Vadot		interrupt-parent = <&gic>;
107c66ec88fSEmmanuel Vadot		reg = <0 0x10200620 0 0x20>;
108c66ec88fSEmmanuel Vadot	};
109c66ec88fSEmmanuel Vadot
110c66ec88fSEmmanuel Vadot	gic: interrupt-controller@10231000 {
111c66ec88fSEmmanuel Vadot		compatible = "arm,gic-400";
112c66ec88fSEmmanuel Vadot		#interrupt-cells = <3>;
113c66ec88fSEmmanuel Vadot		interrupt-parent = <&gic>;
114c66ec88fSEmmanuel Vadot		interrupt-controller;
115c66ec88fSEmmanuel Vadot		reg = <0 0x10231000 0 0x1000>,
116c66ec88fSEmmanuel Vadot		      <0 0x10232000 0 0x2000>,
117c66ec88fSEmmanuel Vadot		      <0 0x10234000 0 0x2000>,
118c66ec88fSEmmanuel Vadot		      <0 0x10236000 0 0x2000>;
119c66ec88fSEmmanuel Vadot	};
120c66ec88fSEmmanuel Vadot
121c66ec88fSEmmanuel Vadot	uart0: serial@11002000 {
122c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt6755-uart",
123c66ec88fSEmmanuel Vadot			     "mediatek,mt6577-uart";
124c66ec88fSEmmanuel Vadot		reg = <0 0x11002000 0 0x400>;
125c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_LOW>;
126c66ec88fSEmmanuel Vadot		clocks = <&uart_clk>;
127c66ec88fSEmmanuel Vadot		status = "disabled";
128c66ec88fSEmmanuel Vadot	};
129c66ec88fSEmmanuel Vadot
130c66ec88fSEmmanuel Vadot	uart1: serial@11003000 {
131c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt6755-uart",
132c66ec88fSEmmanuel Vadot			     "mediatek,mt6577-uart";
133c66ec88fSEmmanuel Vadot		reg = <0 0x11003000 0 0x400>;
134c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 92 IRQ_TYPE_LEVEL_LOW>;
135c66ec88fSEmmanuel Vadot		clocks = <&uart_clk>;
136c66ec88fSEmmanuel Vadot		status = "disabled";
137c66ec88fSEmmanuel Vadot	};
138c66ec88fSEmmanuel Vadot};
139