Skip to content

Commit e4770f3

Browse files
committed
Add support for Hasivo s1100wp-8gt-se (excl PoE)
Signed-off-by: Bevan Weiss <[email protected]>
1 parent 501e54b commit e4770f3

File tree

2 files changed

+311
-0
lines changed

2 files changed

+311
-0
lines changed
Lines changed: 302 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,302 @@
1+
// SPDX-License-Identifier: GPL-2.0-or-later
2+
/dts-v1/;
3+
4+
#include "rtl930x.dtsi"
5+
6+
#include <dt-bindings/input/input.h>
7+
#include <dt-bindings/gpio/gpio.h>
8+
#include <dt-bindings/leds/common.h>
9+
10+
/ {
11+
compatible = "hasivo,s1100wp-8gt-se";
12+
model = "Hasivo S1100WP-8GT-SE";
13+
14+
memory@0 {
15+
device_type = "memory";
16+
reg = <0x00000000 0x10000000>; /* 256 MiB */
17+
};
18+
19+
aliases {
20+
led-boot = &led_sys;
21+
led-failsafe = &led_sys;
22+
led-running = &led_sys;
23+
led-upgrade = &led_sys;
24+
};
25+
26+
chosen {
27+
stdout-path = "serial0:115200n8";
28+
};
29+
30+
keys {
31+
compatible = "gpio-keys";
32+
33+
button-reset {
34+
label = "reset";
35+
gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
36+
linux,code = <KEY_RESTART>;
37+
};
38+
};
39+
40+
leds {
41+
compatible = "gpio-leds";
42+
43+
pinctrl-names = "default";
44+
pinctrl-0 = <&pinmux_disable_sys_led>;
45+
46+
led_sys: led-0 {
47+
label = "green:system";
48+
gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
49+
linux,default-trigger = "heartbeat";
50+
};
51+
};
52+
53+
led_set: led_set {
54+
compatible = "realtek,rtl9300-leds";
55+
realtek,rtl93xx-led-sync;
56+
57+
led_set0 = <
58+
( // GREEN LEFT RJ45
59+
RTL93XX_LED_SET_1G |
60+
RTL93XX_LED_SET_2P5G |
61+
RTL93XX_LED_SET_LINK
62+
)
63+
( // ORANGE LEFT RJ45
64+
RTL93XX_LED_SET_10M |
65+
RTL93XX_LED_SET_100M |
66+
RTL93XX_LED_SET_2P5G |
67+
RTL93XX_LED_SET_LINK
68+
)
69+
( // GREEN RIGHT RJ45
70+
RTL93XX_LED_SET_10M |
71+
RTL93XX_LED_SET_100M |
72+
RTL93XX_LED_SET_1G |
73+
RTL93XX_LED_SET_2P5G |
74+
RTL93XX_LED_SET_ACT
75+
)
76+
>;
77+
};
78+
};
79+
80+
&spi0 {
81+
status = "okay";
82+
83+
flash@0 {
84+
compatible = "fudan,fm25q128", "winbond,w25q256jv", "jedec,spi-nor";
85+
reg = <0>;
86+
spi-max-frequency = <10000000>;
87+
/*spi-tx-width = <4>;*/
88+
/*spi-rx-width = <4>;*/
89+
/*spi-max-frequency = <104000000>;*/
90+
91+
partitions {
92+
compatible = "fixed-partitions";
93+
#address-cells = <1>;
94+
#size-cells = <1>;
95+
96+
/* stock is LOADER */
97+
partition@0 {
98+
label = "u-boot";
99+
reg = <0x0000000 0x00e0000>;
100+
read-only;
101+
};
102+
103+
/* stock is BDINFO */
104+
partition@e0000 {
105+
label = "u-boot-env";
106+
reg = <0x00e0000 0x0010000>;
107+
};
108+
109+
/* stock is SYSINFO */
110+
partition@f0000 {
111+
label = "u-boot-env2";
112+
reg = <0x00f0000 0x0010000>;
113+
read-only;
114+
};
115+
116+
/* stock is JFFS2_CFG */
117+
partition@100000 {
118+
label = "jffs";
119+
reg = <0x0100000 0x0100000>;
120+
};
121+
122+
/* stock is JFFS2_LOG */
123+
partition@200000 {
124+
label = "jffs2";
125+
reg = <0x0200000 0x0100000>;
126+
};
127+
128+
/* stock is RUNTIME */
129+
partition@300000 {
130+
compatible = "openwrt,uimage", "denx,uimage";
131+
label = "firmware";
132+
reg = <0x0300000 0x0c00000>;
133+
openwrt,ih-magic = <0x93030000>;
134+
};
135+
136+
/* stock is OEMINFO */
137+
partition@f00000 {
138+
label = "oeminfo";
139+
reg = <0x0f00000 0x0100000>;
140+
read-only;
141+
};
142+
};
143+
};
144+
};
145+
146+
/*
147+
&crypto0 {
148+
status = "disabled";
149+
};
150+
*/
151+
152+
&mdio_bus0 {
153+
/* External RTL8221B PHY */
154+
phy0: ethernet-phy@0 {
155+
reg = <0>;
156+
compatible = "ethernet-phy-ieee802.3-c22";
157+
rtl9300,smi-address = <0 1>;
158+
};
159+
160+
/* External RTL8221B PHY */
161+
phy8: ethernet-phy@8 {
162+
reg = <8>;
163+
compatible = "ethernet-phy-ieee802.3-c22";
164+
rtl9300,smi-address = <0 2>;
165+
};
166+
167+
/* External RTL8221B PHY */
168+
phy16: ethernet-phy@16 {
169+
reg = <16>;
170+
compatible = "ethernet-phy-ieee802.3-c22";
171+
rtl9300,smi-address = <0 3>;
172+
};
173+
174+
/* External RTL8221B PHY */
175+
phy20: ethernet-phy@20 {
176+
reg = <20>;
177+
compatible = "ethernet-phy-ieee802.3-c22";
178+
rtl9300,smi-address = <0 4>;
179+
};
180+
181+
/* External RTL8221B PHY */
182+
phy24: ethernet-phy@24 {
183+
reg = <24>;
184+
compatible = "ethernet-phy-ieee802.3-c22";
185+
rtl9300,smi-address = <1 1>;
186+
};
187+
188+
/* External RTL8221B PHY */
189+
phy25: ethernet-phy@25 {
190+
reg = <25>;
191+
compatible = "ethernet-phy-ieee802.3-c22";
192+
rtl9300,smi-address = <1 2>;
193+
};
194+
195+
/* External RTL8221B PHY */
196+
phy26: ethernet-phy@26 {
197+
reg = <26>;
198+
compatible = "ethernet-phy-ieee802.3-c22";
199+
rtl9300,smi-address = <1 3>;
200+
};
201+
202+
/* External RTL8221B PHY */
203+
phy27: ethernet-phy@27 {
204+
reg = <27>;
205+
compatible = "ethernet-phy-ieee802.3-c22";
206+
rtl9300,smi-address = <1 4>;
207+
};
208+
};
209+
210+
&switch0 {
211+
pinctrl-names = "default";
212+
pinctrl-0 = <&pinmux_enable_led_sync>;
213+
214+
ports {
215+
#address-cells = <1>;
216+
#size-cells = <0>;
217+
218+
port@0 {
219+
reg = <0>;
220+
label = "lan1";
221+
pcs-handle = <&serdes2>;
222+
phy-handle = <&phy0>;
223+
phy-mode = "usxgmii";
224+
led-set = <0>;
225+
};
226+
227+
port@8 {
228+
reg = <8>;
229+
label = "lan2";
230+
pcs-handle = <&serdes3>;
231+
phy-handle = <&phy8>;
232+
phy-mode = "usxgmii";
233+
led-set = <0>;
234+
};
235+
236+
port@16 {
237+
reg = <16>;
238+
label = "lan3";
239+
pcs-handle = <&serdes4>;
240+
phy-handle = <&phy16>;
241+
phy-mode = "usxgmii";
242+
led-set = <0>;
243+
};
244+
245+
port@20 {
246+
reg = <20>;
247+
label = "lan4";
248+
pcs-handle = <&serdes5>;
249+
phy-handle = <&phy20>;
250+
phy-mode = "usxgmii";
251+
led-set = <0>;
252+
};
253+
254+
port@24 {
255+
reg = <24>;
256+
label = "lan5";
257+
pcs-handle = <&serdes6>;
258+
phy-handle = <&phy24>;
259+
phy-mode = "2500base-x";
260+
led-set = <0>;
261+
};
262+
263+
port@25 {
264+
reg = <25>;
265+
label = "lan6";
266+
pcs-handle = <&serdes7>;
267+
phy-handle = <&phy25>;
268+
phy-mode = "2500base-x";
269+
led-set = <0>;
270+
};
271+
272+
port@26 {
273+
reg = <26>;
274+
label = "lan7";
275+
pcs-handle = <&serdes8>;
276+
phy-handle = <&phy26>;
277+
phy-mode = "2500base-x";
278+
led-set = <0>;
279+
};
280+
281+
port@27 {
282+
reg = <27>;
283+
label = "lan8";
284+
pcs-handle = <&serdes9>;
285+
phy-handle = <&phy27>;
286+
phy-mode = "2500base-x";
287+
led-set = <0>;
288+
};
289+
290+
/* Internal SoC */
291+
port@28 {
292+
ethernet = <&ethernet0>;
293+
reg = <28>;
294+
phy-mode = "internal";
295+
296+
fixed-link {
297+
speed = <10000>;
298+
full-duplex;
299+
};
300+
};
301+
};
302+
};

target/linux/realtek/image/rtl930x.mk

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,15 @@ define Device/hasivo_s1100w-8xgt-se
1616
endef
1717
TARGET_DEVICES += hasivo_s1100w-8xgt-se
1818

19+
define Device/hasivo_s1100wp-8gt-se
20+
SOC := rtl9303
21+
DEVICE_VENDOR := Hasivo
22+
DEVICE_MODEL := S1100WP-8GT-SE
23+
IMAGE_SIZE := 8364k
24+
$(Device/kernel-lzma)
25+
endef
26+
TARGET_DEVICES += hasivo_s1100wp-8gt-se
27+
1928
define Device/plasmacloud-common
2029
SOC := rtl9302
2130
UIMAGE_MAGIC := 0x93000000

0 commit comments

Comments
 (0)