base-files: sysupgrade: fix streaming backup archives to stdout
[openwrt/staging/mans0n.git] / target / linux / bcm63xx / dts / bcm6328-technicolor-tg582n.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "bcm6328.dtsi"
4
5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/leds/common.h>
7
8 / {
9 model = "Technicolor TG582n";
10 compatible = "technicolor,tg582n", "brcm,bcm6328";
11
12 aliases {
13 led-boot = &led_power_green;
14 led-failsafe = &led_power_green;
15 led-running = &led_power_green;
16 led-upgrade = &led_power_green;
17 };
18
19 chosen {
20 bootargs = "rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
21 stdout-path = "serial0:115200n8";
22 };
23
24 keys {
25 compatible = "gpio-keys-polled";
26 #address-cells = <1>;
27 #size-cells = <0>;
28 poll-interval = <20>;
29
30 wifi {
31 label = "wifi";
32 gpios = <&pinctrl 15 1>;
33 linux,code = <KEY_WLAN>;
34 debounce-interval = <60>;
35 };
36
37 reset {
38 label = "reset";
39 gpios = <&pinctrl 23 1>;
40 linux,code = <KEY_RESTART>;
41 debounce-interval = <60>;
42 };
43
44 wps {
45 label = "wps";
46 gpios = <&pinctrl 24 1>;
47 linux,code = <KEY_WPS_BUTTON>;
48 debounce-interval = <60>;
49 };
50 };
51 };
52
53 &leds {
54 status = "okay";
55
56 pinctrl-names = "default";
57 pinctrl-0 = <&pinctrl_leds>;
58
59 led@1 {
60 reg = <1>;
61 active-low;
62 label = "green:internet";
63 };
64
65 led@2 {
66 reg = <2>;
67 active-low;
68 label = "red:wifi";
69 };
70
71 led@3 {
72 reg = <3>;
73 active-low;
74 label = "green:wifi";
75 };
76
77 led_power_green: led@4 {
78 reg = <4>;
79 active-low;
80 function = LED_FUNCTION_POWER;
81 color = <LED_COLOR_ID_GREEN>;
82 default-state = "on";
83 };
84
85 led@5 {
86 reg = <5>;
87 active-low;
88 label = "green:ethernet";
89 };
90
91 led@7 {
92 reg = <7>;
93 active-low;
94 label = "red:internet";
95 };
96
97 led@8 {
98 reg = <8>;
99 active-low;
100 function = LED_FUNCTION_POWER;
101 color = <LED_COLOR_ID_RED>;
102 };
103
104 led@9 {
105 reg = <9>;
106 active-low;
107 function = LED_FUNCTION_WPS;
108 color = <LED_COLOR_ID_GREEN>;
109 };
110
111 led@10 {
112 reg = <10>;
113 active-low;
114 function = LED_FUNCTION_WPS;
115 color = <LED_COLOR_ID_RED>;
116 };
117
118 led@11 {
119 reg = <11>;
120 active-low;
121 label = "green:broadband";
122 };
123 };
124
125 &hsspi {
126 status = "okay";
127
128 flash@0 {
129 compatible = "jedec,spi-nor";
130 spi-max-frequency = <16666667>;
131 spi-tx-bus-width = <2>;
132 spi-rx-bus-width = <2>;
133 reg = <0>;
134
135 #address-cells = <1>;
136 #size-cells = <1>;
137
138 partitions {
139 compatible = "fixed-partitions";
140 #address-cells = <1>;
141 #size-cells = <1>;
142
143 partition@0 {
144 reg = <0x000000 0x010000>;
145 label = "cfe";
146 read-only;
147 };
148
149 partition@10000 {
150 reg = <0x010000 0xff0000>;
151 label = "linux";
152 compatible = "brcm,bcm963xx-imagetag";
153 };
154 };
155 };
156 };
157
158 &pinctrl {
159 pinctrl_leds: leds {
160 function = "led";
161 pins = "gpio1", "gpio2",
162 "gpio3", "gpio4",
163 "gpio5", "gpio7",
164 "gpio8", "gpio9",
165 "gpio10", "gpio11";
166 };
167 };
168
169 &uart0 {
170 status = "okay";
171 };