--- /dev/null
+#include "mt7620a_phicomm_k2x.dtsi"
+
+/ {
+ compatible = "phicomm,k2-v22.4", "ralink,mt7620a-soc";
+ model = "Phicomm K2 v22.4 or older";
+};
+
+&partitions {
+ partition@50000 {
+ compatible = "denx,uimage";
+ label = "firmware";
+ reg = <0x50000 0x7b0000>;
+ };
+};
+
+ðernet {
+ mediatek,portmap = "llllw";
+};
+
+&wmac {
+ pinctrl-names = "default";
+ pinctrl-0 = <&pa_pins>;
+};
--- /dev/null
+#include "mt7620a_phicomm_k2x.dtsi"
+
+/ {
+ compatible = "phicomm,k2-v22.5", "ralink,mt7620a-soc";
+ model = "Phicomm K2 v22.5 or newer";
+};
+
+&partitions {
+ partition@50000 {
+ label = "permanent_config";
+ reg = <0x50000 0x50000>;
+ read-only;
+ };
+
+ partition@a0000 {
+ compatible = "denx,uimage";
+ label = "firmware";
+ reg = <0xa0000 0x760000>;
+ };
+};
+
+ðernet {
+ mediatek,portmap = "llllw";
+};
+
+&wmac {
+ pinctrl-names = "default";
+ pinctrl-0 = <&pa_pins>;
+};
+++ /dev/null
-#include "mt7620a_phicomm_k2x.dtsi"
-
-/ {
- compatible = "phicomm,psg1218a", "phicomm,psg1218", "ralink,mt7620a-soc";
- model = "Phicomm PSG1218 rev.A";
-};
-
-&partitions {
- partition@50000 {
- compatible = "denx,uimage";
- label = "firmware";
- reg = <0x50000 0x7b0000>;
- };
-};
-
-ðernet {
- mediatek,portmap = "llllw";
-};
-
-&wmac {
- pinctrl-names = "default";
- pinctrl-0 = <&pa_pins>;
-};
endef
TARGET_DEVICES += ohyeah_oy-0001
+define Device/phicomm_k2-v22.4
+ SOC := mt7620a
+ IMAGE_SIZE := 7872k
+ DEVICE_VENDOR := Phicomm
+ DEVICE_MODEL := K2
+ DEVICE_VARIANT:= v22.4 or older
+ DEVICE_PACKAGES := kmod-mt76x2
+ SUPPORTED_DEVICES += psg1218 psg1218a phicomm,psg1218a
+endef
+TARGET_DEVICES += phicomm_k2-v22.4
+
+define Device/phicomm_k2-v22.5
+ SOC := mt7620a
+ IMAGE_SIZE := 7552k
+ DEVICE_VENDOR := Phicomm
+ DEVICE_MODEL := K2
+ DEVICE_VARIANT:= v22.5 or newer
+ DEVICE_PACKAGES := kmod-mt76x2
+endef
+TARGET_DEVICES += phicomm_k2-v22.5
+
define Device/phicomm_k2g
SOC := mt7620a
IMAGE_SIZE := 7552k
endef
TARGET_DEVICES += phicomm_psg1208
-define Device/phicomm_psg1218a
- SOC := mt7620a
- IMAGE_SIZE := 7872k
- DEVICE_VENDOR := Phicomm
- DEVICE_MODEL := PSG1218
- DEVICE_VARIANT:= Ax
- DEVICE_PACKAGES := kmod-mt76x2
- SUPPORTED_DEVICES += psg1218 psg1218a
-endef
-TARGET_DEVICES += phicomm_psg1218a
-
define Device/phicomm_psg1218b
SOC := mt7620a
IMAGE_SIZE := 7872k
;;
dlink,dir-810l|\
netgear,jwnr2010-v5|\
- phicomm,psg1218a|\
+ phicomm,k2-v22.4|\
+ phicomm,k2-v22.5|\
trendnet,tew-810dr|\
zbtlink,zbt-we2026)
ucidef_add_switch "switch0" \
wan_mac=$(macaddr_add "$(mtd_get_mac_binary u-boot 0x1fc20)" 2)
;;
lb-link,bl-w1200|\
+ phicomm,k2-v22.4|\
+ phicomm,k2-v22.5|\
phicomm,k2g|\
- phicomm,psg1218a|\
phicomm,psg1218b)
wan_mac=$(mtd_get_mac_binary factory 0x2e)
label_mac=$wan_mac