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