bmips: automatically detect RAM size
[openwrt/staging/rmilecki.git] / target / linux / bmips / dts / bcm6318-comtrend-ar-5315u.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later
2
3 #include "bcm6318.dtsi"
4
5 / {
6 model = "Comtrend AR-5315u";
7 compatible = "comtrend,ar-5315u", "brcm,bcm6318";
8
9 aliases {
10 led-boot = &led_power_green;
11 led-failsafe = &led_power_green;
12 led-running = &led_power_green;
13 led-upgrade = &led_power_green;
14 };
15
16 keys {
17 compatible = "gpio-keys-polled";
18 poll-interval = <20>;
19
20 wps {
21 label = "wps";
22 gpios = <&pinctrl 3 GPIO_ACTIVE_LOW>;
23 linux,code = <KEY_WPS_BUTTON>;
24 debounce-interval = <60>;
25 };
26
27 reset {
28 label = "reset";
29 gpios = <&pinctrl 33 GPIO_ACTIVE_LOW>;
30 linux,code = <KEY_RESTART>;
31 debounce-interval = <60>;
32 };
33 };
34 };
35
36 &ehci {
37 status = "okay";
38 };
39
40 &hsspi {
41 status = "okay";
42
43 flash@0 {
44 compatible = "jedec,spi-nor";
45 spi-max-frequency = <62500000>;
46 spi-tx-bus-width = <2>;
47 spi-rx-bus-width = <2>;
48 reg = <0>;
49
50 #address-cells = <1>;
51 #size-cells = <1>;
52
53 partitions {
54 compatible = "fixed-partitions";
55 #address-cells = <1>;
56 #size-cells = <1>;
57
58 cfe: partition@0 {
59 reg = <0x000000 0x010000>;
60 label = "cfe";
61 read-only;
62 };
63
64 partition@10000 {
65 compatible = "brcm,bcm963xx-imagetag";
66 reg = <0x010000 0xfe0000>;
67 label = "firmware";
68 };
69
70 partition@ff0000 {
71 reg = <0xff0000 0x010000>;
72 label = "nvram";
73 };
74 };
75 };
76 };
77
78 &leds {
79 status = "okay";
80
81 pinctrl-names = "default";
82 pinctrl-0 = <&pinctrl_leds
83 &pinctrl_ephy0_act_led &pinctrl_ephy1_act_led
84 &pinctrl_ephy2_act_led &pinctrl_ephy3_act_led>;
85
86 led@0 {
87 reg = <0>;
88 active-low;
89 label = "green:wps";
90 };
91
92 led_power_green: led@1 {
93 reg = <1>;
94 active-low;
95 label = "green:power";
96 };
97
98 led@2 {
99 reg = <2>;
100 active-low;
101 label = "green:usb";
102 };
103
104 led@4 {
105 reg = <4>;
106 brcm,hardware-controlled;
107 brcm,link-signal-sources = <4>;
108 /* EPHY0 Act */
109 };
110
111 led@5 {
112 reg = <5>;
113 brcm,hardware-controlled;
114 brcm,link-signal-sources = <5>;
115 /* EPHY1 Act */
116 };
117
118 led@6 {
119 reg = <6>;
120 brcm,hardware-controlled;
121 brcm,link-signal-sources = <6>;
122 /* EPHY2 Act */
123 };
124
125 led@7 {
126 reg = <7>;
127 brcm,hardware-controlled;
128 brcm,link-signal-sources = <7>;
129 /* EPHY3 Act */
130 };
131
132 led@8 {
133 reg = <8>;
134 active-low;
135 label = "green:internet";
136 };
137
138 led@9 {
139 reg = <9>;
140 active-low;
141 label = "red:internet";
142 };
143
144 led@10 {
145 reg = <10>;
146 active-low;
147 label = "green:dsl";
148 };
149
150 led@11 {
151 reg = <11>;
152 active-low;
153 label = "red:power";
154 };
155 };
156
157 &ohci {
158 status = "okay";
159 };
160
161 &pinctrl {
162 pinctrl_leds: leds {
163 function = "led";
164 pins = "gpio0", "gpio1",
165 "gpio2", "gpio8",
166 "gpio9", "gpio10",
167 "gpio11";
168 };
169 };
170
171 &uart0 {
172 status = "okay";
173 };
174
175 &usbh {
176 status = "okay";
177 };