base-files: sysupgrade: fix streaming backup archives to stdout
[openwrt/staging/mans0n.git] / target / linux / bcm63xx / dts / bcm63167-sercomm-h500-s.dtsi
1 // SPDX-License-Identifier: (GPL-2.0-or-later OR MIT)
2 /*
3 * Device Tree file for Sercomm H500-s
4 *
5 * Copyright (C) 2020 Daniel González Cabanelas <dgcbueu@gmail.com>
6 */
7
8 #include "bcm63268.dtsi"
9
10 #include <dt-bindings/input/input.h>
11 #include <dt-bindings/leds/common.h>
12
13 / {
14 aliases {
15 led-boot = &led_power_green;
16 led-failsafe = &led_power_red;
17 led-running = &led_power_green;
18 led-upgrade = &led_power_green;
19 };
20
21 chosen {
22 bootargs = "rootfstype=squashfs,ubifs noinitrd console=ttyS0,115200";
23 stdout-path = "serial0:115200n8";
24 };
25
26 keys {
27 compatible = "gpio-keys-polled";
28 #address-cells = <1>;
29 #size-cells = <0>;
30 poll-interval = <20>;
31
32 wps {
33 label = "wps";
34 gpios = <&pinctrl 34 1>;
35 linux,code = <KEY_WPS_BUTTON>;
36 debounce-interval = <60>;
37 };
38
39 reset {
40 label = "reset";
41 gpios = <&pinctrl 35 1>;
42 linux,code = <KEY_RESTART>;
43 debounce-interval = <60>;
44 };
45 };
46 };
47
48 &leds {
49 status = "okay";
50
51 pinctrl-names = "default";
52 pinctrl-0 = <&pinctrl_leds>;
53
54 mobile_red {
55 reg = <0>;
56 label = "red:mobile";
57 };
58
59 mobile_green {
60 reg = <1>;
61 label = "green:mobile";
62 };
63
64 led_power_red: power_red {
65 reg = <8>;
66 function = LED_FUNCTION_POWER;
67 color = <LED_COLOR_ID_RED>;
68 };
69
70 wifi_green {
71 reg = <9>;
72 label = "green:wifi";
73 };
74
75 phone_red {
76 reg = <12>;
77 label = "red:phone";
78 };
79
80 wifi_red {
81 reg = <13>;
82 label = "red:wifi";
83 };
84
85 internet_red {
86 reg = <14>;
87 label = "red:internet";
88 };
89
90 internet_green {
91 reg = <15>;
92 label = "green:internet";
93 };
94
95 phone_green {
96 reg = <16>;
97 label = "green:phone";
98 };
99
100 led_power_green: power_green {
101 reg = <17>;
102 function = LED_FUNCTION_POWER;
103 color = <LED_COLOR_ID_GREEN>;
104 default-state = "on";
105 };
106
107 mobile_blue {
108 reg = <23>;
109 label = "blue:mobile";
110 };
111 };
112
113 &nflash {
114 status = "okay";
115
116 nandcs@0 {
117 compatible = "brcm,nandcs";
118 #size-cells = <1>;
119 #address-cells = <1>;
120 reg = <0>;
121 nand-ecc-step-size = <512>;
122 nand-ecc-strength = <4>;
123 nand-on-flash-bbt;
124 brcm,nand-oob-sector-size = <64>;
125
126 partitions {
127 compatible = "fixed-partitions";
128 #address-cells = <1>;
129 #size-cells = <1>;
130
131 partition@0 {
132 label = "cferom";
133 reg = <0x0000000 0x0020000>;
134 read-only;
135 };
136
137 partition@20000 {
138 label = "part_map";
139 reg = <0x0020000 0x00a0000>;
140 read-only;
141 };
142
143 partition@c0000 {
144 label = "cferam1";
145 reg = <0x00c0000 0x0140000>;
146 read-only;
147 };
148
149 partition@200000 {
150 label = "cferam2";
151 reg = <0x0200000 0x0140000>;
152 read-only;
153 };
154
155 partition@6920000 {
156 label = "bootflag1";
157 reg = <0x6920000 0x0140000>;
158 };
159
160 partition@6a60000 {
161 label = "bootflag2";
162 reg = <0x6a60000 0x0140000>;
163 };
164
165 partition@520000 {
166 compatible = "sercomm,wfi";
167 label = "wfi";
168 reg = <0x0520000 0x6400000>; /* 2 images, 97152 KiB */
169 };
170
171 partition@6ba0000 {
172 label = "xml_cfg";
173 reg = <0x6ba0000 0x0280000>;
174 read-only;
175 };
176
177 partition@6e20000 {
178 label = "app_data";
179 reg = <0x6e20000 0x0280000>;
180 read-only;
181 };
182 };
183 };
184 };
185
186 &pinctrl {
187 pinctrl_leds: leds {
188 function = "led";
189 pins = "gpio0", "gpio1", "gpio8", "gpio9",
190 "gpio12", "gpio13", "gpio14", "gpio15",
191 "gpio16", "gpio17", "gpio23";
192 };
193 };
194
195 &uart0 {
196 status = "okay";
197 };