mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-10-30 18:07:52 +00:00
WIFI-14789 update WF672A configuration
*Reduce the i2c frequency to enable the encryption chip to be recognized *Add USB xr Serial driver and init gps uart param *Factory reset when switching wifi mode *SFP gpio should be input mode Signed-off-by: Justin.Guo <guoxijun@actiontec.com>
This commit is contained in:
29
feeds/qca-wifi-7/cig-platform-pkg/cig-device-boot/Makefile
Normal file
29
feeds/qca-wifi-7/cig-platform-pkg/cig-device-boot/Makefile
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
|
PKG_NAME:=cig-device-boot
|
||||||
|
PKG_RELEASE:=1
|
||||||
|
PKG_LICENSE:=GPL-2.0
|
||||||
|
|
||||||
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
|
define Package/cig-device-boot
|
||||||
|
SECTION:=utils
|
||||||
|
CATEGORY:=Utilities
|
||||||
|
DEPENDS:=+kmod-usb-serial-xr
|
||||||
|
TITLE:=CIG device init
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/cig-device-boot/description
|
||||||
|
Initialize particular functions of the CIG device
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Build/Compile
|
||||||
|
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/cig-device-boot/install
|
||||||
|
$(INSTALL_DIR) $(1)/etc/init.d
|
||||||
|
$(INSTALL_BIN) ./files/cig-device.init $(1)/etc/init.d/cig-device-boot
|
||||||
|
endef
|
||||||
|
|
||||||
|
$(eval $(call BuildPackage,cig-device-boot))
|
||||||
7
feeds/qca-wifi-7/cig-platform-pkg/cig-device-boot/files/cig-device.init
Executable file
7
feeds/qca-wifi-7/cig-platform-pkg/cig-device-boot/files/cig-device.init
Executable file
@@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/sh /etc/rc.common
|
||||||
|
|
||||||
|
START=99
|
||||||
|
|
||||||
|
boot(){
|
||||||
|
[ -e /dev/ttyUSB0 ] && stty -F /dev/ttyUSB0 115200 cs8 -cstopb -parenb -icrnl -onlcr
|
||||||
|
}
|
||||||
@@ -3,9 +3,9 @@
|
|||||||
band=$1
|
band=$1
|
||||||
if [ $band -eq 2 ] || [ $band -eq 3 ]; then
|
if [ $band -eq 2 ] || [ $band -eq 3 ]; then
|
||||||
echo $band > /proc/rf_switch
|
echo $band > /proc/rf_switch
|
||||||
echo "reboot for switch wifi mode 2/3 bands"
|
echo "firstboot for switch wifi mode 2/3 bands"
|
||||||
sleep 1
|
sleep 1
|
||||||
reboot
|
firstboot -y -r
|
||||||
else
|
else
|
||||||
echo "error band param"
|
echo "error band param"
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -1225,3 +1225,4 @@ CONFIG_PSTORE_PMSG=y
|
|||||||
CONFIG_PSTORE_RAM=y
|
CONFIG_PSTORE_RAM=y
|
||||||
# CONFIG_RTL8221D_PHY is not set
|
# CONFIG_RTL8221D_PHY is not set
|
||||||
# CONFIG_INPUT_LSM303AGR is not set
|
# CONFIG_INPUT_LSM303AGR is not set
|
||||||
|
# CONFIG_USB_SERIAL_XR is not set
|
||||||
|
|||||||
@@ -59,6 +59,8 @@
|
|||||||
num_devices = <0x1>;
|
num_devices = <0x1>;
|
||||||
|
|
||||||
ess-switch@3a000000 {
|
ess-switch@3a000000 {
|
||||||
|
pinctrl-0 = <&sfp_pins>;
|
||||||
|
pinctrl-names = "default";
|
||||||
switch_cpu_bmp = <0x1>; /* cpu port bitmap */
|
switch_cpu_bmp = <0x1>; /* cpu port bitmap */
|
||||||
switch_lan_bmp = <0x2>; /* lan port bitmap */
|
switch_lan_bmp = <0x2>; /* lan port bitmap */
|
||||||
switch_wan_bmp = <0x4>; /* wan port bitmap */
|
switch_wan_bmp = <0x4>; /* wan port bitmap */
|
||||||
@@ -284,7 +286,7 @@
|
|||||||
|
|
||||||
&blsp1_i2c1 {
|
&blsp1_i2c1 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
clock-frequency = <400000>;
|
clock-frequency = <100000>;
|
||||||
pinctrl-0 = <&i2c_1_pins>;
|
pinctrl-0 = <&i2c_1_pins>;
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
extgpio:pca9555@20{
|
extgpio:pca9555@20{
|
||||||
@@ -442,6 +444,13 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
sfp_pins: sfp-state {
|
||||||
|
pins = "gpio43";
|
||||||
|
function = "gpio";
|
||||||
|
bias-pull-up;
|
||||||
|
input-enable;
|
||||||
|
};
|
||||||
|
|
||||||
spi_0_data_clk_pins: spi-0-data-clk-state {
|
spi_0_data_clk_pins: spi-0-data-clk-state {
|
||||||
pins = "gpio14", "gpio15", "gpio16";
|
pins = "gpio14", "gpio15", "gpio16";
|
||||||
function = "blsp0_spi";
|
function = "blsp0_spi";
|
||||||
|
|||||||
@@ -475,6 +475,22 @@ endef
|
|||||||
|
|
||||||
$(eval $(call KernelPackage,usb-f-qdss))
|
$(eval $(call KernelPackage,usb-f-qdss))
|
||||||
|
|
||||||
|
define KernelPackage/usb-serial-xr
|
||||||
|
TITLE:=USB xr Serial driver support
|
||||||
|
KCONFIG:=CONFIG_USB_SERIAL_XR
|
||||||
|
FILES:=\
|
||||||
|
$(LINUX_DIR)/drivers/usb/serial/xr_serial.ko
|
||||||
|
AUTOLOAD:=$(call AutoLoad,60,xr_serial)
|
||||||
|
DEPENDS:=+kmod-usb-serial
|
||||||
|
$(call AddPlatformDepends/usb)
|
||||||
|
endef
|
||||||
|
|
||||||
|
define KernelPackage/usb-serial-xr/description
|
||||||
|
USB MaxLinear/Exar USB to Serial driver
|
||||||
|
endef
|
||||||
|
|
||||||
|
$(eval $(call KernelPackage,usb-serial-xr))
|
||||||
|
|
||||||
LEDS_MENU:=LED modules
|
LEDS_MENU:=LED modules
|
||||||
|
|
||||||
define KernelPackage/leds-tlc591xx
|
define KernelPackage/leds-tlc591xx
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ packages:
|
|||||||
- qca-ssdk-shell
|
- qca-ssdk-shell
|
||||||
- iperf3
|
- iperf3
|
||||||
- sysstat
|
- sysstat
|
||||||
|
- cig-device-boot
|
||||||
- kmod-cig-wifi-mode-sw
|
- kmod-cig-wifi-mode-sw
|
||||||
- kmod-input-lsm303agr
|
- kmod-input-lsm303agr
|
||||||
- kmod-rtl8221d-phy
|
- kmod-rtl8221d-phy
|
||||||
@@ -22,3 +23,6 @@ packages:
|
|||||||
- kmod-hwmon-tmp103
|
- kmod-hwmon-tmp103
|
||||||
- kmod-iio-ilps22qs
|
- kmod-iio-ilps22qs
|
||||||
- kmod-cig-poe-judgment
|
- kmod-cig-poe-judgment
|
||||||
|
diffconfig: |
|
||||||
|
CONFIG_BUSYBOX_CUSTOM=y
|
||||||
|
CONFIG_BUSYBOX_CONFIG_STTY=y
|
||||||
|
|||||||
Reference in New Issue
Block a user