brcm63xx: use bcm6328 and bcm6358 LED drivers
[openwrt/staging/noltari.git] / target / linux / brcm63xx / dts / bcm6362.dtsi
1 / {
2 #address-cells = <1>;
3 #size-cells = <1>;
4 compatible = "brcm,bcm6362";
5
6 aliases {
7 pinctrl = &pinctrl;
8 };
9
10 cpus {
11 #address-cells = <1>;
12 #size-cells = <0>;
13
14 cpu@0 {
15 compatible = "brcm,bmips4350", "mips,mips4Kc";
16 device_type = "cpu";
17 reg = <0>;
18 };
19
20 cpu@1 {
21 compatible = "brcm,bmips4350", "mips,mips4Kc";
22 device_type = "cpu";
23 reg = <1>;
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
43 ext_intc: interrupt-controller@10000018 {
44 compatible = "brcm,bcm6345-ext-intc";
45 reg = <0x10000018 0x4>;
46
47 interrupt-controller;
48 #interrupt-cells = <2>;
49
50 interrupt-parent = <&periph_intc>;
51 interrupts = <40>, <41>, <42>, <43>;
52 };
53
54 periph_intc: interrupt-controller@10000020 {
55 compatible = "brcm,bcm6345-l1-intc";
56 reg = <0x10000020 0x10>,
57 <0x10000030 0x10>;
58
59 interrupt-controller;
60 #interrupt-cells = <1>;
61
62 interrupt-parent = <&cpu_intc>;
63 interrupts = <2>, <3>;
64 };
65
66 pinctrl: pin-controller@10000080 {
67 compatible = "brcm,bcm6362-pinctrl";
68 reg = <0x10000080 0x8>,
69 <0x10000088 0x8>,
70 <0x10000090 0x4>,
71 <0x10000098 0x4>,
72 <0x1000009c 0x4>,
73 <0x100000b8 0x4>;
74 reg-names = "dirout", "data", "led",
75 "mode", "ctrl", "basemode";
76
77 gpio-controller;
78 #gpio-cells = <2>;
79
80 pinctrl_usb_device_led: usb_device_led {
81 function = "usb_device_led";
82 pins = "gpio0";
83 };
84
85 pinctrl_sys_irq: sys_irq {
86 function = "sys_irq";
87 pins = "gpio1";
88 };
89
90 pinctrl_serial_led: serial_led {
91 pinctrl_serial_led_clk: serial_led_clk {
92 function = "serial_led_clk";
93 pins = "gpio2";
94 };
95
96 pinctrl_serial_led_data: serial_led_data {
97 function = "serial_led_data";
98 pins = "gpio3";
99 };
100 };
101
102 pinctrl_robosw_led_data: robosw_led_data {
103 function = "robosw_led_data";
104 pins = "gpio4";
105 };
106
107 pinctrl_robosw_led_clk: robosw_led_clk {
108 function = "robosw_led_clk";
109 pins = "gpio5";
110 };
111
112 pinctrl_robosw_led0: robosw_led0 {
113 function = "robosw_led0";
114 pins = "gpio6";
115 };
116
117 pinctrl_robosw_led1: robosw_led1 {
118 function = "robosw_led1";
119 pins = "gpio7";
120 };
121
122 pinctrl_inet_led: inet_led {
123 function = "inet_led";
124 pins = "gpio8";
125 };
126
127 pinctrl_spi_cs2: spi_cs2 {
128 function = "spi_cs2";
129 pins = "gpio9";
130 };
131
132 pinctrl_spi_cs3: spi_cs3 {
133 function = "spi_cs3";
134 pins = "gpio10";
135 };
136
137 pinctrl_ntr_pulse: ntr_pulse {
138 function = "ntr_pulse";
139 pins = "gpio11";
140 };
141
142 pinctrl_uart1_scts: uart1_scts {
143 function = "uart1_scts";
144 pins = "gpio12";
145 };
146
147 pinctrl_uart1_srts: uart1_srts {
148 function = "uart1_srts";
149 pins = "gpio13";
150 };
151
152
153 pinctrl_uart1: uart1 {
154 pinctrl_uart1_sdin: uart1_sdin {
155 function = "uart1_sdin";
156 pins = "gpio14";
157 };
158
159 pinctrl_uart1_sdout: uart1_sdout {
160 function = "uart1_sdout";
161 pins = "gpio15";
162 };
163 };
164
165 pinctrl_adsl_spi: adsl_spi {
166 pinctrl_adsl_spi_miso: adsl_spi_miso {
167 function = "adsl_spi_miso";
168 pins = "gpio16";
169 };
170
171 pinctrl_adsl_spi_mosi: adsl_spi_mosi {
172 function = "adsl_spi_mosi";
173 pins = "gpio17";
174 };
175
176 pinctrl_adsl_spi_clk: adsl_spi_clk {
177 function = "adsl_spi_clk";
178 pins = "gpio18";
179 };
180
181 pinctrl_adsl_spi_cs: adsl_spi_cs {
182 function = "adsl_spi_cs";
183 pins = "gpio19";
184 };
185 };
186
187 pinctrl_ephy0_led: ephy0_led {
188 function = "ephy0_led";
189 pins = "gpio20";
190 };
191
192 pinctrl_ephy1_led: ephy1_led {
193 function = "ephy1_led";
194 pins = "gpio21";
195 };
196
197 pinctrl_ephy2_led: ephy2_led {
198 function = "ephy2_led";
199 pins = "gpio22";
200 };
201
202 pinctrl_ephy3_led: ephy3_led {
203 function = "ephy3_led";
204 pins = "gpio23";
205 };
206
207 pinctrl_ext_irq0: ext_irq0 {
208 function = "ext_irq0";
209 pins = "gpio24";
210 };
211
212 pinctrl_ext_irq1: ext_irq1 {
213 function = "ext_irq1";
214 pins = "gpio25";
215 };
216
217 pinctrl_ext_irq2: ext_irq2 {
218 function = "ext_irq2";
219 pins = "gpio26";
220 };
221
222 pinctrl_ext_irq3: ext_irq3 {
223 function = "ext_irq3";
224 pins = "gpio27";
225 };
226
227 pinctrl_nand: nand {
228 function = "nand";
229 group = "nand_grp";
230 };
231 };
232
233 leds0: led-controller@10001904 {
234 compatible = "brcm,bcm6328-leds";
235 #address-cells = <1>;
236 #size-cells = <0>;
237 reg = <0x10001900 0x24>;
238
239 status = "disabled";
240 };
241 };
242 };