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