7c4505157e4e88e551c94adfb1192b37d7ec01c1
[openwrt/openwrt.git] / target / linux / brcm63xx / dts / bcm6318.dtsi
1 / {
2 #address-cells = <1>;
3 #size-cells = <1>;
4 compatible = "brcm,bcm6318";
5
6 aliases {
7 pinctrl = &pinctrl;
8 spi1 = &hsspi;
9 };
10
11 cpus {
12 #address-cells = <1>;
13 #size-cells = <0>;
14
15 cpu@0 {
16 compatible = "brcm,bmips3300", "mips,mips4Kc";
17 device_type = "cpu";
18 reg = <0>;
19 };
20 };
21
22 cpu_intc: interrupt-controller {
23 #address-cells = <0>;
24 compatible = "mti,cpu-interrupt-controller";
25
26 interrupt-controller;
27 #interrupt-cells = <1>;
28 };
29
30 memory { device_type = "memory"; reg = <0 0>; };
31
32 ubus@10000000 {
33 #address-cells = <1>;
34 #size-cells = <1>;
35 ranges;
36 compatible = "simple-bus";
37 interrupt-parent = <&periph_intc>;
38
39 ext_intc: interrupt-controller@10000018 {
40 compatible = "brcm,bcm6318-ext-intc";
41 reg = <0x10000018 0x4>;
42
43 interrupt-controller;
44 #interrupt-cells = <2>;
45
46 interrupts = <24>, <25>, <26>, <27>;
47 };
48
49 periph_intc: interrupt-controller@10000020 {
50 compatible = "brcm,bcm6345-l1-intc";
51 reg = <0x10000020 0x20>;
52
53 interrupt-controller;
54 #interrupt-cells = <1>;
55
56 interrupt-parent = <&cpu_intc>;
57 interrupts = <2>;
58 };
59
60 pinctrl: pin-controller@10000080 {
61 compatible = "brcm,bcm6318-pinctrl";
62 reg = <0x10000080 0x08>,
63 <0x10000088 0x08>,
64 <0x10000098 0x04>,
65 <0x1000009c 0x0c>,
66 <0x100000d4 0x18>;
67 reg-names = "dirout", "dat", "mode", "mux", "pad";
68
69 gpio-controller;
70 #gpio-cells = <2>;
71
72 interrupt-parent = <&ext_intc>;
73 interrupts = <0 0>, <1 0>;
74 interrupt-names = "gpio33", "gpio34";
75
76 pinctrl_ephy0_spd_led: ephy0_spd_led {
77 function = "ephy0_spd_led";
78 pins = "gpio0";
79 };
80
81 pinctrl_ephy1_spd_led: ephy1_spd_led {
82 function = "ephy1_spd_led";
83 pins = "gpio1";
84 };
85
86 pinctrl_ephy2_spd_led: ephy2_spd_led {
87 function = "ephy2_spd_led";
88 pins = "gpio2";
89 };
90
91 pinctrl_ephy3_spd_led: ephy3_spd_led {
92 function = "ephy3_spd_led";
93 pins = "gpio3";
94 };
95
96 pinctrl_ephy0_act_led: ephy0_act_led {
97 function = "ephy0_act_led";
98 pins = "gpio4";
99 };
100
101 pinctrl_ephy1_act_led: ephy1_act_led {
102 function = "ephy1_act_led";
103 pins = "gpio5";
104 };
105
106 pinctrl_ephy2_act_led: ephy2_act_led {
107 function = "ephy2_act_led";
108 pins = "gpio6";
109 };
110
111 pinctrl_ephy3_act_led: ephy3_act_led {
112 function = "ephy3_act_led";
113 pins = "gpio7";
114 };
115
116 pinctrl_serial_led: serial_led {
117 pinctrl_serial_led_data: serial_led_data {
118 function = "serial_led_data";
119 pins = "gpio6";
120 };
121
122 pinctrl_serial_led_clk: serial_led_clk {
123 function = "serial_led_clk";
124 pins = "gpio7";
125 };
126 };
127
128 pinctrl_inet_act_led: inet_act_led {
129 function = "inet_act_led";
130 pins = "gpio8";
131 };
132
133 pinctrl_inet_fail_led: inet_fail_led {
134 function = "inet_fail_led";
135 pins = "gpio9";
136 };
137
138 pinctrl_dsl_led: dsl_led {
139 function = "dsl_led";
140 pins = "gpio10";
141 };
142
143 pinctrl_post_fail_led: post_fail_led {
144 function = "post_fail_led";
145 pins = "gpio11";
146 };
147
148 pinctrl_wlan_wps_led: wlan_wps_led {
149 function = "wlan_wps_led";
150 pins = "gpio12";
151 };
152
153 pinctrl_usb_pwron: usb_pwron {
154 function = "usb_pwron";
155 pins = "gpio13";
156 };
157
158 pinctrl_usb_device_led: usb_device_led {
159 function = "usb_device_led";
160 pins = "gpio13";
161 };
162
163 pinctrl_usb_active: usb_active {
164 function = "usb_active";
165 pins = "gpio40";
166 };
167 };
168
169 leds: led-controller@10000200 {
170 #address-cells = <1>;
171 #size-cells = <0>;
172 compatible = "brcm,bcm6328-leds";
173 reg = <0x10000200 0x24>;
174 status = "disabled";
175 };
176
177 hsspi: spi@10003000 {
178 #address-cells = <1>;
179 #size-cells = <0>;
180 compatible = "brcm,bcm6328-hsspi";
181 reg = <0x10003000 0x600>;
182 interrupts = <29>;
183 /* clocks = <&clkctl 25>; */
184 };
185 };
186 };