blob: d525f019fe993c3804b9c59b635839bb2287f46a [file] [log] [blame]
Stefan Roese65da15e2018-09-05 15:12:35 +02001// SPDX-License-Identifier: GPL-2.0
2
3/ {
4 #address-cells = <1>;
5 #size-cells = <1>;
6 compatible = "ralink,mt7628a-soc";
7
8 cpus {
9 #address-cells = <1>;
10 #size-cells = <0>;
11
12 cpu@0 {
13 compatible = "mti,mips24KEc";
14 device_type = "cpu";
15 reg = <0>;
16 };
17 };
18
19 resetc: reset-controller {
20 compatible = "ralink,rt2880-reset";
21 #reset-cells = <1>;
22 };
23
24 cpuintc: interrupt-controller {
25 #address-cells = <0>;
26 #interrupt-cells = <1>;
27 interrupt-controller;
28 compatible = "mti,cpu-interrupt-controller";
29 };
30
31 palmbus@10000000 {
32 compatible = "palmbus", "simple-bus";
33 reg = <0x10000000 0x200000>;
34 ranges = <0x0 0x10000000 0x1FFFFF>;
35
36 #address-cells = <1>;
37 #size-cells = <1>;
38
39 sysc: system-controller@0 {
40 compatible = "ralink,mt7620a-sysc", "syscon";
41 reg = <0x0 0x100>;
42 };
43
Stefan Roese845e0fd2018-08-16 15:27:32 +020044 syscon-reboot {
45 compatible = "syscon-reboot";
46 regmap = <&sysc>;
47 offset = <0x34>;
48 mask = <0x1>;
49 };
50
Stefan Roese65da15e2018-09-05 15:12:35 +020051 intc: interrupt-controller@200 {
52 compatible = "ralink,rt2880-intc";
53 reg = <0x200 0x100>;
54
55 interrupt-controller;
56 #interrupt-cells = <1>;
57
58 resets = <&resetc 9>;
59 reset-names = "intc";
60
61 interrupt-parent = <&cpuintc>;
62 interrupts = <2>;
63
64 ralink,intc-registers = <0x9c 0xa0
65 0x6c 0xa4
66 0x80 0x78>;
67 };
68
69 memory-controller@300 {
70 compatible = "ralink,mt7620a-memc";
71 reg = <0x300 0x100>;
72 };
73
74 spi0: spi@b00 {
75 compatible = "ralink,mt7621-spi";
76 reg = <0xb00 0x40>;
77 #address-cells = <1>;
78 #size-cells = <0>;
79 };
80
81 uart0: uartlite@c00 {
82 compatible = "ns16550a";
83 reg = <0xc00 0x100>;
84
85 resets = <&resetc 12>;
86 reset-names = "uart0";
87
88 interrupt-parent = <&intc>;
89 interrupts = <20>;
90
91 reg-shift = <2>;
92 };
93
94 uart1: uart1@d00 {
95 compatible = "ns16550a";
96 reg = <0xd00 0x100>;
97
98 resets = <&resetc 19>;
99 reset-names = "uart1";
100
101 interrupt-parent = <&intc>;
102 interrupts = <21>;
103
104 reg-shift = <2>;
105 };
106
107 uart2: uart2@e00 {
108 compatible = "ns16550a";
109 reg = <0xe00 0x100>;
110
111 resets = <&resetc 20>;
112 reset-names = "uart2";
113
114 interrupt-parent = <&intc>;
115 interrupts = <22>;
116
117 reg-shift = <2>;
118 };
119 };
120
121 usb_phy: usb-phy@10120000 {
122 compatible = "mediatek,mt7628-usbphy";
123 reg = <0x10120000 0x1000>;
124
125 #phy-cells = <0>;
126
127 ralink,sysctl = <&sysc>;
128 resets = <&resetc 22 &resetc 25>;
129 reset-names = "host", "device";
130 };
131
132 ehci@101c0000 {
133 compatible = "generic-ehci";
134 reg = <0x101c0000 0x1000>;
135
136 phys = <&usb_phy>;
137 phy-names = "usb";
138
139 interrupt-parent = <&intc>;
140 interrupts = <18>;
141 };
142};