base-files: sysupgrade: fix streaming backup archives to stdout
[openwrt/staging/mans0n.git] / target / linux / bcm63xx / dts / bcm6318-comtrend-ar-5315u.dts
1 #include "bcm6318.dtsi"
2
3 #include <dt-bindings/input/input.h>
4 #include <dt-bindings/leds/common.h>
5
6 / {
7 model = "Comtrend AR-5315u";
8 compatible = "comtrend,ar-5315u", "brcm,bcm6318";
9
10 aliases {
11 led-boot = &led_power_green;
12 led-failsafe = &led_power_green;
13 led-running = &led_power_green;
14 led-upgrade = &led_power_green;
15 };
16
17 chosen {
18 bootargs = "rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
19 stdout-path = "serial0:115200n8";
20 };
21
22 keys {
23 compatible = "gpio-keys-polled";
24 #address-cells = <1>;
25 #size-cells = <0>;
26 poll-interval = <20>;
27
28 wps {
29 label = "wps";
30 gpios = <&pinctrl 3 1>;
31 linux,code = <KEY_WPS_BUTTON>;
32 debounce-interval = <60>;
33 };
34
35 reset {
36 label = "reset";
37 gpios = <&pinctrl 33 1>;
38 linux,code = <KEY_RESTART>;
39 debounce-interval = <60>;
40 };
41 };
42 };
43
44 &hsspi {
45 status = "okay";
46
47 flash@0 {
48 compatible = "jedec,spi-nor";
49 spi-max-frequency = <62500000>;
50 spi-tx-bus-width = <2>;
51 spi-rx-bus-width = <2>;
52 reg = <0>;
53
54 #address-cells = <1>;
55 #size-cells = <1>;
56
57 partitions {
58 compatible = "fixed-partitions";
59 #address-cells = <1>;
60 #size-cells = <1>;
61
62 cfe@0 {
63 reg = <0x000000 0x010000>;
64 label = "cfe";
65 read-only;
66 };
67
68 linux@10000 {
69 reg = <0x010000 0xfe0000>;
70 label = "linux";
71 compatible = "brcm,bcm963xx-imagetag";
72 };
73
74 nvram@ff0000 {
75 reg = <0xff0000 0x010000>;
76 label = "nvram";
77 };
78 };
79 };
80 };
81
82 &leds {
83 status = "okay";
84
85 pinctrl-names = "default";
86 pinctrl-0 = <&pinctrl_leds
87 &pinctrl_ephy0_act_led &pinctrl_ephy1_act_led
88 &pinctrl_ephy2_act_led &pinctrl_ephy3_act_led>;
89
90 led@0 {
91 reg = <0>;
92 active-low;
93 function = LED_FUNCTION_WPS;
94 color = <LED_COLOR_ID_GREEN>;
95 };
96
97 led_power_green: led@1 {
98 reg = <1>;
99 active-low;
100 function = LED_FUNCTION_POWER;
101 color = <LED_COLOR_ID_GREEN>;
102 default-state = "on";
103 };
104
105 led@2 {
106 reg = <2>;
107 active-low;
108 function = LED_FUNCTION_USB;
109 color = <LED_COLOR_ID_GREEN>;
110 };
111
112 led@4 {
113 reg = <4>;
114 brcm,hardware-controlled;
115 brcm,link-signal-sources = <4>;
116 /* EPHY0 Act */
117 };
118
119 led@5 {
120 reg = <5>;
121 brcm,hardware-controlled;
122 brcm,link-signal-sources = <5>;
123 /* EPHY1 Act */
124 };
125
126 led@6 {
127 reg = <6>;
128 brcm,hardware-controlled;
129 brcm,link-signal-sources = <6>;
130 /* EPHY2 Act */
131 };
132
133 led@7 {
134 reg = <7>;
135 brcm,hardware-controlled;
136 brcm,link-signal-sources = <7>;
137 /* EPHY3 Act */
138 };
139
140 led@8 {
141 reg = <8>;
142 active-low;
143 label = "green:inet";
144 };
145
146 led@9 {
147 reg = <9>;
148 active-low;
149 label = "red:inet";
150 };
151
152 led@10 {
153 reg = <10>;
154 active-low;
155 label = "green:dsl";
156 };
157
158 led@11 {
159 reg = <11>;
160 active-low;
161 function = LED_FUNCTION_POWER;
162 color = <LED_COLOR_ID_RED>;
163 };
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 };