ipq40xx: convert to DSA and enable Sony NCP-HG100/Cellular
This patch converts networking on Sony NCP-HG100/Cellular to DSA and re-enables support for the device. Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
This commit is contained in:
parent
579ea6b970
commit
32e41ba18a
4 changed files with 23 additions and 19 deletions
|
@ -95,8 +95,8 @@ qxwlan,e2600ac-c2)
|
||||||
ucidef_set_led_wlan "wlan5g" "WLAN1" "green:wlan1" "phy1tpt"
|
ucidef_set_led_wlan "wlan5g" "WLAN1" "green:wlan1" "phy1tpt"
|
||||||
;;
|
;;
|
||||||
sony,ncp-hg100-cellular)
|
sony,ncp-hg100-cellular)
|
||||||
ucidef_set_led_netdev "lan" "LAN" "green:lan" "eth0"
|
ucidef_set_led_netdev "lan" "LAN" "green:lan" "lan"
|
||||||
ucidef_set_led_netdev "wan" "WAN" "green:wan" "eth1"
|
ucidef_set_led_netdev "wan" "WAN" "green:wan" "wan"
|
||||||
ucidef_set_led_netdev "wwan" "WWAN" "green:wan-4" "wwan0"
|
ucidef_set_led_netdev "wwan" "WWAN" "green:wan-4" "wwan0"
|
||||||
;;
|
;;
|
||||||
zyxel,nbg6617 |\
|
zyxel,nbg6617 |\
|
||||||
|
|
|
@ -34,6 +34,7 @@ ipq40xx_setup_interfaces()
|
||||||
luma,wrtq-329acn|\
|
luma,wrtq-329acn|\
|
||||||
mikrotik,cap-ac|\
|
mikrotik,cap-ac|\
|
||||||
netgear,wac510|\
|
netgear,wac510|\
|
||||||
|
sony,ncp-hg100-cellular|\
|
||||||
zte,mf289f)
|
zte,mf289f)
|
||||||
ucidef_set_interfaces_lan_wan "lan" "wan"
|
ucidef_set_interfaces_lan_wan "lan" "wan"
|
||||||
;;
|
;;
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
led-failsafe = &led_cloud_red;
|
led-failsafe = &led_cloud_red;
|
||||||
led-running = &led_cloud_green;
|
led-running = &led_cloud_green;
|
||||||
led-upgrade = &led_cloud_green;
|
led-upgrade = &led_cloud_green;
|
||||||
label-mac-device = &gmac0;
|
label-mac-device = &gmac;
|
||||||
};
|
};
|
||||||
|
|
||||||
chosen {
|
chosen {
|
||||||
|
@ -57,23 +57,9 @@
|
||||||
qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
|
qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
|
||||||
};
|
};
|
||||||
|
|
||||||
ess-psgmii@98000 {
|
|
||||||
status = "okay";
|
|
||||||
};
|
|
||||||
|
|
||||||
dma@7984000 {
|
dma@7984000 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
ess-switch@c000000 {
|
|
||||||
status = "okay";
|
|
||||||
switch_mac_mode = <0x0>; /* mac mode for RGMII RMII */
|
|
||||||
switch_initvlas = <0x0007c 0x54>; /* PORT0_STATUS */
|
|
||||||
};
|
|
||||||
|
|
||||||
edma@c080000 {
|
|
||||||
status = "okay";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
keys-repeat {
|
keys-repeat {
|
||||||
|
@ -616,6 +602,24 @@
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&gmac {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&switch {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&swport4 {
|
||||||
|
status = "okay";
|
||||||
|
label = "lan";
|
||||||
|
};
|
||||||
|
|
||||||
|
&swport5 {
|
||||||
|
status = "okay";
|
||||||
|
label = "wan";
|
||||||
|
};
|
||||||
|
|
||||||
&wifi0 {
|
&wifi0 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
qcom,ath10k-calibration-variant = "Sony-NCP-HG100-Cellular";
|
qcom,ath10k-calibration-variant = "Sony-NCP-HG100-Cellular";
|
||||||
|
|
|
@ -1048,8 +1048,7 @@ define Device/sony_ncp-hg100-cellular
|
||||||
DEVICE_PACKAGES := e2fsprogs ipq-wifi-sony_ncp-hg100-cellular \
|
DEVICE_PACKAGES := e2fsprogs ipq-wifi-sony_ncp-hg100-cellular \
|
||||||
kmod-fs-ext4 uqmi
|
kmod-fs-ext4 uqmi
|
||||||
endef
|
endef
|
||||||
# Missing DSA Setup
|
TARGET_DEVICES += sony_ncp-hg100-cellular
|
||||||
#TARGET_DEVICES += sony_ncp-hg100-cellular
|
|
||||||
|
|
||||||
define Device/teltonika_rutx10
|
define Device/teltonika_rutx10
|
||||||
$(call Device/FitImage)
|
$(call Device/FitImage)
|
||||||
|
|
Loading…
Reference in a new issue