ipq40xx: convert GL.iNet GL-S1300 to DSA
Convert the router to DSA. Co-Developed-by: Matt Beaumont <github@beaum.xyz> Tested-by: Matt Beaumont <github@beaum.xyz> Link: https://github.com/openwrt/openwrt/pull/12478 Signed-off-by: Nick Hainke <vincent@systemli.org>
This commit is contained in:
parent
2b0c973895
commit
70586f574d
@ -84,6 +84,7 @@ ipq40xx_setup_interfaces()
|
||||
;;
|
||||
glinet,gl-a1300|\
|
||||
glinet,gl-b1300|\
|
||||
glinet,gl-s1300|\
|
||||
mobipromo,cm520-79f)
|
||||
ucidef_set_interfaces_lan_wan "lan1 lan2" "wan"
|
||||
;;
|
||||
|
@ -197,6 +197,14 @@
|
||||
precal_art_5000: precal@5000 {
|
||||
reg = <0x5000 0x2f20>;
|
||||
};
|
||||
|
||||
macaddr_art_0: macaddr@0 {
|
||||
reg = <0x0 0x6>;
|
||||
};
|
||||
|
||||
macaddr_art_6: macaddr@6 {
|
||||
reg = <0x6 0x6>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@ -348,6 +356,37 @@
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&gmac {
|
||||
status = "okay";
|
||||
|
||||
nvmem-cells = <&macaddr_art_0>;
|
||||
nvmem-cell-names = "mac-address";
|
||||
};
|
||||
|
||||
&switch {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&swport3 {
|
||||
status = "okay";
|
||||
|
||||
label = "lan2";
|
||||
};
|
||||
|
||||
&swport4 {
|
||||
status = "okay";
|
||||
|
||||
label = "lan1";
|
||||
};
|
||||
|
||||
&swport5 {
|
||||
status = "okay";
|
||||
|
||||
label = "wan";
|
||||
nvmem-cells = <&macaddr_art_6>;
|
||||
nvmem-cell-names = "mac-address";
|
||||
};
|
||||
|
||||
&wifi0 {
|
||||
status = "okay";
|
||||
nvmem-cell-names = "pre-calibration";
|
||||
|
@ -642,8 +642,7 @@ define Device/glinet_gl-s1300
|
||||
IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
|
||||
DEVICE_PACKAGES := kmod-fs-ext4 kmod-mmc kmod-spi-dev
|
||||
endef
|
||||
# Missing DSA Setup
|
||||
#TARGET_DEVICES += glinet_gl-s1300
|
||||
TARGET_DEVICES += glinet_gl-s1300
|
||||
|
||||
define Device/kernel-size-6350-8300
|
||||
DEVICE_COMPAT_VERSION := 2.0
|
||||
|
Loading…
x
Reference in New Issue
Block a user