bcm63xx: move dts-v1 statement to top-level DTSI files
[openwrt/staging/mkresin.git] / target / linux / bcm63xx / dts / bcm6328.dtsi
1 /dts-v1/;
2
3 / {
4 #address-cells = <1>;
5 #size-cells = <1>;
6 compatible = "brcm,bcm6328";
7
8 aliases {
9 nflash = &nflash;
10 pinctrl = &pinctrl;
11 serial0 = &uart0;
12 serial1 = &uart1;
13 spi1 = &hsspi;
14 };
15
16 cpus {
17 #address-cells = <1>;
18 #size-cells = <0>;
19
20 cpu@0 {
21 compatible = "brcm,bmips4350", "mips,mips4Kc";
22 device_type = "cpu";
23 reg = <0>;
24 };
25 };
26
27 cpu_intc: interrupt-controller {
28 #address-cells = <0>;
29 compatible = "mti,cpu-interrupt-controller";
30
31 interrupt-controller;
32 #interrupt-cells = <1>;
33 };
34
35 memory { device_type = "memory"; reg = <0 0>; };
36
37 ubus@10000000 {
38 #address-cells = <1>;
39 #size-cells = <1>;
40 ranges;
41 compatible = "simple-bus";
42 interrupt-parent = <&periph_intc>;
43
44 ext_intc: interrupt-controller@10000018 {
45 compatible = "brcm,bcm6345-ext-intc";
46 reg = <0x10000018 0x4>;
47
48 interrupt-controller;
49 #interrupt-cells = <2>;
50
51 interrupts = <24>, <25>, <26>, <27>;
52 };
53
54 periph_intc: interrupt-controller@10000020 {
55 compatible = "brcm,bcm6345-l1-intc";
56 reg = <0x10000020 0x10>;
57
58 interrupt-controller;
59 #interrupt-cells = <1>;
60
61 interrupt-parent = <&cpu_intc>;
62 interrupts = <2>;
63 };
64
65 pinctrl: pin-controller@10000080 {
66 compatible = "brcm,bcm6328-pinctrl";
67 reg = <0x10000080 0x8>,
68 <0x10000088 0x8>,
69 <0x10000098 0x4>,
70 <0x1000009c 0xc>;
71 reg-names = "dirout", "dat", "mode", "mux";
72
73 gpio-controller;
74 #gpio-cells = <2>;
75
76 interrupt-parent = <&ext_intc>;
77 interrupts = <3 0>, <2 0>, <0 0>, <1 0>;
78 interrupt-names = "gpio12", "gpio15",
79 "gpio23", "gpio24";
80
81 pinctrl_serial_led: serial_led {
82 pinctrl_serial_led_data: serial_led_data {
83 function = "serial_led_data";
84 pins = "gpio6";
85 };
86
87 pinctrl_serial_led_clk: serial_led_clk {
88 function = "serial_led_clk";
89 pins = "gpio7";
90 };
91 };
92
93 pinctrl_inet_act_led: inet_act_led {
94 function = "inet_act_led";
95 pins = "gpio11";
96 };
97
98 pinctrl_pcie_clkreq: pcie_clkreq {
99 function = "pcie_clkreq";
100 pins = "gpio16";
101 };
102
103 pinctrl_ephy0_spd_led: ephy0_spd_led {
104 function = "led";
105 pins = "gpio17";
106 };
107
108 pinctrl_ephy1_spd_led: ephy1_spd_led {
109 function = "led";
110 pins = "gpio18";
111 };
112
113 pinctrl_ephy2_spd_led: ephy2_spd_led {
114 function = "led";
115 pins = "gpio19";
116 };
117
118 pinctrl_ephy3_spd_led: ephy3_spd_led {
119 function = "led";
120 pins = "gpio20";
121 };
122
123 pinctrl_ephy0_act_led: ephy0_act_led {
124 function = "ephy0_act_led";
125 pins = "gpio25";
126 };
127
128 pinctrl_ephy1_act_led: ephy1_act_led {
129 function = "ephy1_act_led";
130 pins = "gpio26";
131 };
132
133 pinctrl_ephy2_act_led: ephy2_act_led {
134 function = "ephy2_act_led";
135 pins = "gpio27";
136 };
137
138 pinctrl_ephy3_act_led: ephy3_act_led {
139 function = "ephy3_act_led";
140 pins = "gpio28";
141 };
142
143 pinctrl_hsspi_cs1: hsspi_cs1 {
144 function = "hsspi_cs1";
145 pins = "hsspi_cs1";
146 };
147
148 pinctrl_usb_port1_device: usb_port1_device {
149 function = "usb_device_port";
150 pins = "usb_port1";
151 };
152
153 pinctrl_usb_port1_host: usb_port1_host {
154 function = "usb_host_port";
155 pins = "usb_port1";
156 };
157 };
158
159 uart0: serial@10000100 {
160 compatible = "brcm,bcm6345-uart";
161 reg = <0x10000100 0x18>;
162
163 interrupt-parent = <&periph_intc>;
164 interrupts = <28>;
165
166 /* clocks = <&periph_clk>; */
167 /* clock-names = "refclk"; */
168
169 status = "disabled";
170 };
171
172 uart1: serial@10000120 {
173 compatible = "brcm,bcm6345-uart";
174 reg = <0x10000120 0x18>;
175
176 interrupt-parent = <&periph_intc>;
177 interrupts = <39>;
178
179 /* clocks = <&periph_clk>; */
180 /* clock-names = "refclk"; */
181
182 status = "disabled";
183 };
184
185 nflash: nand@10000200 {
186 #address-cells = <1>;
187 #size-cells = <0>;
188 compatible = "brcm,nand-bcm6368",
189 "brcm,brcmnand-v2.2",
190 "brcm,brcmnand";
191 reg = <0x10000200 0x180>,
192 <0x10000400 0x200>,
193 <0x10000070 0x10>;
194 reg-names = "nand",
195 "nand-cache",
196 "nand-int-base";
197
198 interrupt-parent = <&periph_intc>;
199 interrupts = <0>;
200
201 status = "disabled";
202 };
203
204 leds: led-controller@10000800 {
205 #address-cells = <1>;
206 #size-cells = <0>;
207 compatible = "brcm,bcm6328-leds";
208 reg = <0x10000800 0x24>;
209 status = "disabled";
210 };
211
212 hsspi: spi@10001000 {
213 #address-cells = <1>;
214 #size-cells = <0>;
215 compatible = "brcm,bcm6328-hsspi";
216 reg = <0x10001000 0x600>;
217 interrupts = <29>;
218 /* clocks = <&clkctl 9>; */
219 };
220 };
221 };