brcm63xx: add uart nodes
[openwrt/staging/lynxis.git] / target / linux / brcm63xx / dts / bcm6358.dtsi
1 / {
2 #address-cells = <1>;
3 #size-cells = <1>;
4 compatible = "brcm,bcm6358";
5
6 aliases {
7 pflash = &pflash;
8 pinctrl = &pinctrl;
9 serial0 = &uart0;
10 serial1 = &uart1;
11 spi0 = &lsspi;
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 cpu@1 {
25 compatible = "brcm,bmips4350", "mips,mips4Kc";
26 device_type = "cpu";
27 reg = <1>;
28 };
29 };
30
31 cpu_intc: interrupt-controller {
32 #address-cells = <0>;
33 compatible = "mti,cpu-interrupt-controller";
34
35 interrupt-controller;
36 #interrupt-cells = <1>;
37 };
38
39 memory { device_type = "memory"; reg = <0 0>; };
40
41 pflash: nor@1e000000 {
42 compatible = "cfi-flash";
43 reg = <0x1e000000 0x2000000>;
44 bank-width = <2>;
45 #address-cells = <1>;
46 #size-cells = <1>;
47
48 status = "disabled";
49 };
50
51 ubus@fff00000 {
52 #address-cells = <1>;
53 #size-cells = <1>;
54 ranges;
55 compatible = "simple-bus";
56 interrupt-parent = <&periph_intc>;
57
58 periph_intc: interrupt-controller@fffe000c {
59 compatible = "brcm,bcm6345-l1-intc";
60 reg = <0xfffe000c 0x8>,
61 <0xfffe0038 0x8>;
62
63 interrupt-controller;
64 #interrupt-cells = <1>;
65
66 interrupt-parent = <&cpu_intc>;
67 interrupts = <2>, <3>;
68 };
69
70 ext_intc0: interrupt-controller@fffe0014 {
71 compatible = "brcm,bcm6345-ext-intc";
72 reg = <0xfffe0014 0x4>;
73
74 interrupt-controller;
75 #interrupt-cells = <2>;
76
77 interrupts = <25>, <26>, <27>, <28>;
78 };
79
80 ext_intc1: interrupt-controller@fffe001c {
81 compatible = "brcm,bcm6345-ext-intc";
82 reg = <0xfffe001c 0x4>;
83
84 interrupt-controller;
85 #interrupt-cells = <2>;
86
87 interrupts = <20>, <21>;
88 };
89
90 pinctrl: pin-controller@fffe0080 {
91 compatible = "brcm,bcm6358-pinctrl";
92 reg = <0xfffe0080 0x8>,
93 <0xfffe0088 0x8>;
94 reg-names = "dirout", "dat", "mode";
95 brcm,gpiomode = <&gpiomode>;
96
97 gpio-controller;
98 #gpio-cells = <2>;
99
100 interrupts-extended = <&ext_intc1 0 0>,
101 <&ext_intc1 1 0>,
102 <&ext_intc0 0 0>,
103 <&ext_intc0 1 0>,
104 <&ext_intc0 2 0>,
105 <&ext_intc0 3 0>;
106 interrupt-names = "gpio32", "gpio33", "gpio34", "gpio35",
107 "gpio36", "gpio37";
108
109 pinctrl_ebi_cs: ebi_cs {
110 function = "ebi_cs";
111 groups = "ebi_cs_grp";
112 };
113
114 pinctrl_uart1: uart1 {
115 function = "uart1";
116 groups = "uart1_grp";
117 };
118
119 pinctrl_serial_led: serial_led {
120 function = "serial_led";
121 groups = "serial_led_grp";
122 };
123
124 pinctrl_legacy_led: legacy_led {
125 function = "legacy_led";
126 groups = "legacy_led_grp";
127 };
128
129 pinctrl_led: led {
130 function = "led";
131 groups = "led_grp";
132 };
133
134 pinctrl_spi_cs_23: spi_cs {
135 function = "spi_cs";
136 groups = "spi_cs_grp";
137 };
138
139 pinctrl_utopia: utopia {
140 function = "utopia";
141 groups = "utopia_grp";
142 };
143
144 pinctrl_pwm_syn_clk: pwm_syn_clk {
145 function = "pwm_syn_clk";
146 groups = "pwm_syn_clk_grp";
147 };
148
149 pinctrl_sys_irq: sys_irq {
150 function = "sys_irq";
151 groups = "sys_irq_grp";
152 };
153 };
154
155 gpiomode: gpiomode@fffe0098 {
156 compatible = "brcm,bcm6358-gpiomode", "syscon";
157 reg = <0xfffe0098 0x4>;
158 };
159
160 leds: led-controller@fffe00d0 {
161 #address-cells = <1>;
162 #size-cells = <0>;
163 compatible = "brcm,bcm6358-leds";
164 reg = <0xfffe00d0 0x8>;
165 status = "disabled";
166 };
167
168 uart0: serial@fffe0100 {
169 compatible = "brcm,bcm6345-uart";
170 reg = <0xfffe0100 0x18>;
171
172 interrupt-parent = <&periph_intc>;
173 interrupts = <2>;
174
175 /* clocks = <&periph_clk>; */
176 /* clock-names = "refclk"; */
177
178 status = "disabled";
179 };
180
181 uart1: serial@fffe0120 {
182 compatible = "brcm,bcm6345-uart";
183 reg = <0xfffe0120 0x18>;
184
185 interrupt-parent = <&periph_intc>;
186 interrupts = <3>;
187
188 /* clocks = <&periph_clk>; */
189 /* clock-names = "refclk"; */
190
191 status = "disabled";
192 };
193
194 lsspi: spi@fffe0800 {
195 #address-cells = <1>;
196 #size-cells = <0>;
197 compatible = "brcm,bcm6358-spi";
198 reg = <0xfffe0800 0x70c>;
199 interrupts = <1>;
200 /* clocks = <&clkctl 9>; */
201 };
202 };
203 };