M7350v7_en_gpl

This commit is contained in:
T
2024-09-09 08:59:52 +00:00
parent f75098198c
commit 46ba6f09ec
1372 changed files with 1231198 additions and 1184 deletions

View File

@ -1,21 +1,25 @@
# Packages installed to the root file system
IMAGE_INSTALL += "tp-domain"
IMAGE_INSTALL += "uci"
IMAGE_INSTALL += "data-manager"
IMAGE_INSTALL += "npd6"
IMAGE_INSTALL += "radvd"
IMAGE_INSTALL += "wide-dhcpv6"
IMAGE_INSTALL += "libcjson"
IMAGE_INSTALL += "cgic"
IMAGE_INSTALL += "libghttp"
IMAGE_INSTALL += "uci"
IMAGE_INSTALL += "npd6"
IMAGE_INSTALL += "radvd"
IMAGE_INSTALL += "wide-dhcpv6"
IMAGE_INSTALL += "samba"
IMAGE_INSTALL += "bftpd"
IMAGE_INSTALL += "ntfs-3g"
IMAGE_INSTALL += "lighttpd"
IMAGE_INSTALL += "tp-domain"
IMAGE_INSTALL += "cgic"
IMAGE_INSTALL += "libghttp"

View File

@ -2,13 +2,13 @@
# Product configuration for TP-Link
################################################################################
BOARD_TYPE="mdm9207"
PRODUCT_TYPE="m7350-eu-v5"
PRODUCT_ID="73500005"
PRODUCT_NAME="M7350(EU) 5.0"
PRODUCT_TYPE="m7350-eu-v6"
PRODUCT_ID="73502006"
PRODUCT_NAME="M7350(EU) 6.2"
PRODUCT_SERIES="M7350"
PRODUCT_VER="5.0.0"
PRODUCT_VER="6.2.0"
PRODUCT_REGION="EU"
PRODUCT_TPNAME="m7350v5"
PRODUCT_TPNAME="m7350v6"
################################################################################
@ -54,7 +54,7 @@ WIRELESS_WPS_DISABLE="n"
WIRELESS_5G_DISABLE="y"
WIRELESS_ADAPTIVITY_ENABLE="n"
TP_WIRELESS_PASSPHRASE_ON_OLED="y"
TP_FEATURE_RTL8192ES="n"
TP_FEATURE_RTL8192ES="y"
TP_FEATURE_QCACLD="n"
#-------------------------------------------------------------------------------

View File

@ -3,17 +3,18 @@
################################################################################
config product info
option board_type "mdm9207"
option product_type "m7350-eu-v5"
option product_id "73500005"
option product_type "m7350-eu-v6"
option product_id "73502006"
option product_name "M7350"
option hardware_ver "5.0"
option firmware_ver "1.0.5"
option hardware_ver "7.0"
option firmware_ver "7.0.4"
option firmware_ver_build "Build 000000 Rel.0000n"
option product_region "EU"
option product_series "M7350"
option vendor_name "TP-Link Technologies Co., Ltd."
option vendor_name "TP-Link Corporation Limited."
option ssid_prefix "TP-Link_"
################################################################################
# Feature configuration
#-------------------------------------------------------------------------------

View File

@ -5,7 +5,7 @@ index 698a935..ef0170b 100644
@@ -45,6 +45,10 @@
status = "ok";
};
+&spi_5 {
+ status = "ok";
+};
@ -38,12 +38,12 @@ index 6674491..4deed09 100644
+ status = "ok";
+};
diff --git a/arch/arm/boot/dts/qcom/mdm9607-mtp.dtsi b/arch/arm/boot/dts/qcom/mdm9607-mtp.dtsi
index 5e6d2f2..0301f63 100644
index 5e6d2f2..9498828 100644
--- a/arch/arm/boot/dts/qcom/mdm9607-mtp.dtsi
+++ b/arch/arm/boot/dts/qcom/mdm9607-mtp.dtsi
@@ -27,6 +27,17 @@
@@ -27,6 +27,18 @@
};
&soc {
+ mp2617 {
+ cell-index = <0>;
@ -55,18 +55,19 @@ index 5e6d2f2..0301f63 100644
+ mps,chg-m0-gpio = <&tlmm_pinmux 26 0>;
+ mps,ac-ok-gpio = <&tlmm_pinmux 4 0>;
+ qcom,client-vadc = <&pm8019_vadc>;
+ status = "disabled";
+ };
};
&blsp1_uart5 {
@@ -36,10 +47,14 @@
@@ -36,10 +48,14 @@
};
&i2c_4 {
- status = "ok";
+ status = "disabled";
};
&spi_1 {
+ status = "disabled";
+};
@ -74,11 +75,11 @@ index 5e6d2f2..0301f63 100644
+&spi_5 {
status = "ok";
};
@@ -55,14 +70,15 @@
@@ -55,14 +71,15 @@
status = "ok";
};
-/* MPP pin 2 configs for SMB358 interrupt line */
+/* MPP pin 2 configs for MP2617 interrupt line */
&pm8019_mpps {
@ -96,11 +97,11 @@ index 5e6d2f2..0301f63 100644
+ qcom,invert = <1>;
};
};
@@ -141,21 +157,21 @@
@@ -141,21 +158,21 @@
};
};
-&i2c_4 {
+/*&i2c_4 {
/* SMB358 charger configuration */
@ -120,26 +121,26 @@ index 5e6d2f2..0301f63 100644
};
-};
+};*/
&sdhc_2 {
vdd-supply = <&sdcard_ext_vreg>;
@@ -175,7 +191,7 @@
@@ -175,7 +192,7 @@
1 &intc 0 221 0
2 &tlmm_pinmux 26 0>;
interrupt-names = "hc_irq", "pwr_irq", "status_irq";
- cd-gpios = <&tlmm_pinmux 26 0x1>;
+ /*cd-gpios = <&tlmm_pinmux 26 0x1>;*/
pinctrl-names = "active", "sleep";
pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on &sdc2_cd_on>;
diff --git a/arch/arm/boot/dts/qcom/mdm9607-pinctrl.dtsi b/arch/arm/boot/dts/qcom/mdm9607-pinctrl.dtsi
index 6d4344b..7fce96d 100644
index 6d4344b..285c284 100644
--- a/arch/arm/boot/dts/qcom/mdm9607-pinctrl.dtsi
+++ b/arch/arm/boot/dts/qcom/mdm9607-pinctrl.dtsi
@@ -123,6 +123,68 @@
};
};
+ spi5 {
+
+ spi5_default: spi5_default {
@ -203,7 +204,7 @@ index 6d4344b..7fce96d 100644
+ };
+
/* SDC pin type */
pmx_sdc1_cmd {
@@ -166,7 +228,7 @@
config {
@ -213,7 +214,7 @@ index 6d4344b..7fce96d 100644
+ drive-strength = <16>;
};
};
@@ -182,11 +244,11 @@
sdc1_wlan_gpio {
sdc1_wlan_gpio_active: sdc1_wlan_gpio_active {
@ -229,7 +230,7 @@ index 6d4344b..7fce96d 100644
drive-strength = <8>;
bias-pull-up;
@@ -195,11 +257,11 @@
sdc1_wlan_gpio_sleep: sdc1_wlan_gpio_sleep {
mux {
- pins = "gpio38", "gpio25";
@ -256,7 +257,7 @@ index 6d4344b..7fce96d 100644
drive-strength = <2>;
bias-disable;
};
@@ -224,11 +286,11 @@
@@ -224,17 +286,43 @@
i2c_4_sleep: i2c_4_sleep {
/* suspended state */
mux {
@ -270,7 +271,39 @@ index 6d4344b..7fce96d 100644
drive-strength = <2>;
bias-pull-down;
};
@@ -1013,5 +1075,32 @@
};
};
+ i2c_2 {
+ i2c_2_active: i2c_2_active {
+ mux {
+ pins = "gpio6", "gpio7";
+ function = "blsp_i2c2";
+ };
+ config {
+ pins = "gpio6", "gpio7";
+ drive-strength = <2>;
+ bias-pull-up;
+ };
+ };
+
+ i2c_2_sleep: i2c_2_sleep {
+ mux {
+ pins = "gpio6", "gpio7";
+ function = "blsp_i2c2";
+ };
+ config {
+ pins = "gpio6", "gpio7";
+ drive-strength = <2>;
+ bias-pull-up;
+ };
+ };
+ };
+
codec_reset {
codec_reset_active: codec_reset_active {
mux {
@@ -1013,5 +1101,32 @@
output-low;
};
};
@ -304,7 +337,7 @@ index 6d4344b..7fce96d 100644
};
};
diff --git a/arch/arm/boot/dts/qcom/mdm9607.dtsi b/arch/arm/boot/dts/qcom/mdm9607.dtsi
index 1a9e273..ab5fdd1 100644
index 1a9e273..ac96a27 100644
--- a/arch/arm/boot/dts/qcom/mdm9607.dtsi
+++ b/arch/arm/boot/dts/qcom/mdm9607.dtsi
@@ -36,13 +36,14 @@
@ -314,14 +347,14 @@ index 1a9e273..ab5fdd1 100644
- reg = <0x82a00000 0x5000000>;
+ reg = <0x82a00000 0x3600000>;
};
cnss_debug_mem: cnss_debug_region@0 {
compatible = "removed-dma-pool";
no-map;
reg = <0x87a00000 0x200000>;
+ status = "disabled";
};
external_image_mem: external_image_region@0 {
@@ -56,6 +57,7 @@
reusable;
@ -330,33 +363,104 @@ index 1a9e273..ab5fdd1 100644
+ status = "disabled";
};
};
@@ -68,6 +70,7 @@
@@ -68,7 +70,9 @@
smd36 = &smdtty_loopback;
/* spi device */
spi1 = &spi_1;
+ spi5 = &spi_5;
i2c4 = &i2c_4;
+ i2c2 = &i2c_2; // new charge IC: BQ25601
sdhc2 = &sdhc_2; /* SDC2 SD card slot */
};
@@ -586,7 +589,7 @@
@@ -355,7 +359,7 @@
dma_blsp1: qcom,sps-dma@7884000 { /* BLSP1 */
#dma-cells = <4>;
compatible = "qcom,sps-dma";
- reg = <0x7884000 0x2b000>;
+ reg = <0x7884000 0x23000>;
interrupts = <0 238 0>;
qcom,summing-threshold = <10>;
};
@@ -519,6 +523,59 @@
};
};
+ /* refer to doc: 80-nu767-1 (qcom) & Documentation/devicetree/bindings/i2c/i2c-msm-v2.txt (kernel) */
+ i2c_2: i2c@78b6000 { /* BLSP1 QUP1 */
+ compatible = "qcom,i2c-msm-v2";
+ #address-cells = <1>;
+ #size-cells = <0>;
+ reg-names = "qup_phys_addr";
+ reg = <0x78b6000 0x1000>;
+
+ interrupt-names = "qup_irq";
+ interrupts = <0 96 0>;
+
+ dmas = <&dma_blsp1 14 32 0x20000020 0x20>,
+ <&dma_blsp1 15 64 0x20000020 0x20>;
+ dma-names = "tx", "rx";
+
+ qcom,clk-freq-out = <100000>; // 100 KHz
+ qcom,clk-freq-in = <19200000>;
+
+ clock-names = "iface_clk", "core_clk";
+ clocks = <&clock_gcc clk_gcc_blsp1_ahb_clk>,
+ <&clock_gcc clk_gcc_blsp1_qup2_i2c_apps_clk>;
+
+ pinctrl-names = "i2c_active", "i2c_sleep";
+ pinctrl-0 = <&i2c_2_active>;
+ pinctrl-1 = <&i2c_2_sleep>;
+
+ qcom,noise-rjct-scl = <0>;
+ qcom,noise-rjct-sda = <0>;
+ qcom,fs-clk-div = <96>;
+ qcom,high-time-clk-div = <90>;
+ qcom,master-id = <86>;
+
+ bq25601: bq25601-charger@6b {
+ compatible = "ti,bq25601-charger";
+ reg = <0x6b>;
+
+ ti,irq-gpio = <&tlmm_pinmux 28 0>;
+ ti,chg-en-gpio = <&tlmm_pinmux 27 0>;
+ ti,chg-vbat-div = <3>;
+ qcom,chg-vadc = <&pm8019_vadc>;
+ };
+
+ sgm41513-charger@1a {
+ compatible = "ti,sgm41513-charger";
+ reg = <0x1a>;
+
+ ti,irq-gpio = <&tlmm_pinmux 28 0>;
+ ti,chg-en-gpio = <&tlmm_pinmux 27 0>;
+ ti,chg-vbat-div = <3>;
+ qcom,chg-vadc = <&pm8019_vadc>;
+ };
+ };
+
blsp1_uart3: uart@78b1000 {
compatible = "qcom,msm-hsuart-v14";
reg = <0x78b1000 0x200>,
@@ -586,7 +643,7 @@
<0x44 0x80 0x38 0x81 0x24 0x82 0x13 0x83 0xffffffff>;
qcom,hsusb-otg-phy-type = <3>; /* SNPS Femto PHY */
- qcom,hsusb-otg-mode = <3>; /* OTG mode */
+ qcom,hsusb-otg-mode = <1>; /* PERIPHERAL mode */
qcom,hsusb-otg-otg-control = <2>; /* PMIC control */
qcom,usbid-gpio = <&pm8019_mpps 1 0>;
qcom,hsusb-log2-itc = <4>;
@@ -829,6 +832,7 @@
@@ -829,6 +886,7 @@
sound-9330 {
compatible = "qcom,mdm9607-audio-tomtom";
qcom,model = "mdm9607-tomtom-i2s-snd-card";
+ status = "disabled";
qcom,audio-routing =
"RX_BIAS", "MCLK",
@@ -1202,6 +1206,12 @@
@@ -1202,6 +1260,12 @@
qcom,sensor-type = "adc";
qcom,sensor-name = "xo_therm_amux";
};
@ -367,9 +471,9 @@ index 1a9e273..ab5fdd1 100644
+ qcom,scaling-factor = <100>;
+ };
};
mitigation_profile0: qcom,limit_info-0 {
@@ -1346,7 +1356,7 @@
@@ -1346,7 +1410,7 @@
reg = <0x4044000 0x19000>;
interrupts = <0 29 1>;
qcom,rx-ring-size = <32>;
@ -377,11 +481,11 @@ index 1a9e273..ab5fdd1 100644
+ qcom,max-rx-mtu = <2048>;
qcom,fast-shutdown;
};
@@ -1396,6 +1406,49 @@
@@ -1396,6 +1460,51 @@
status = "disabled";
};
+ spi_5: spi@78ba000 { /* BLSP1 QUP6 */
+ compatible = "qcom,spi-qup-v2";
+ #address-cells = <1>;
@ -415,20 +519,22 @@ index 1a9e273..ab5fdd1 100644
+ };
+ };
+
+ oled_s90319_pt {
+ oled_s90319_pt {
+ compatible = "qcom,oled_s90319_pt";
+ qcom,oled-cs-gpio = <&tlmm_pinmux 22 0>;
+ qcom,oled-rsx-gpio = <&tlmm_pinmux 25 0>;
+ qcom,oled-reset-gpio = <&tlmm_pinmux 24 0>;
+ qcom,oled-vdd0-gpio = <&tlmm_pinmux 18 0>;
+ qcom,oled-vdd1-gpio = <&tlmm_pinmux 19 0>;
+ qcom,oled-boost-en-gpio = <&tlmm_pinmux 6 0>;
+ qcom,oled-mosi-gpio = <&tlmm_pinmux 20 0>;
+ qcom,oled-clk-gpio = <&tlmm_pinmux 23 0>;
+ qcom,oled-boost-en-gpio = <&tlmm_pinmux 4 0>;
+ };
+
qcom,mss@4080000 {
compatible = "qcom,pil-q6v55-mss";
reg = <0x04080000 0x100>,
@@ -1525,6 +1578,35 @@
@@ -1525,6 +1634,35 @@
phy-addr = <0>;
status = "disable";
};
@ -462,24 +568,24 @@ index 1a9e273..ab5fdd1 100644
+ };
+ /* [yangjihong end] */
};
#include "mdm9607-rpm-regulator.dtsi"
@@ -1543,9 +1625,9 @@
@@ -1543,9 +1681,9 @@
};
};
-&usb_otg {
+/*&usb_otg {
vbus_otg-supply = <&smb358_otg_vreg>;
-};
+};*/
&pm8019_vadc {
chan@6 {
@@ -1570,6 +1652,17 @@
@@ -1570,6 +1708,17 @@
qcom,fast-avg-setup = <0>;
};
+ chan@11 {
+ label = "batt_voltage";
+ reg = <0x11>;
@ -520,7 +626,7 @@ index d385ae6..e87ef38 100644
+CONFIG_TIMER_STATS=y
+CONFIG_SUPPORT_RTL_SDIO3=y
diff --git a/arch/arm/configs/mdm9607_defconfig b/arch/arm/configs/mdm9607_defconfig
index 1e33537..267a303 100644
index 1e33537..2cbd806 100644
--- a/arch/arm/configs/mdm9607_defconfig
+++ b/arch/arm/configs/mdm9607_defconfig
@@ -1,21 +1,23 @@
@ -582,10 +688,10 @@ index 1e33537..267a303 100644
CONFIG_NF_CONNTRACK_NETBIOS_NS=y
CONFIG_NF_CONNTRACK_SNMP=y
-CONFIG_NF_CONNTRACK_PPTP=y
+CONFIG_NF_CONNTRACK_PPTP=m
-CONFIG_NF_CONNTRACK_SIP=y
+CONFIG_NF_CONNTRACK_SIP=m
-CONFIG_NF_CONNTRACK_TFTP=y
+CONFIG_NF_CONNTRACK_PPTP=m
+CONFIG_NF_CONNTRACK_SIP=m
+CONFIG_NF_CONNTRACK_TFTP=m
CONFIG_NF_CT_NETLINK=y
CONFIG_NF_CT_NETLINK_TIMEOUT=y
@ -679,17 +785,20 @@ index 1e33537..267a303 100644
CONFIG_SERIAL_MSM_SMD=y
CONFIG_DIAG_CHAR=y
CONFIG_HW_RANDOM=y
@@ -225,7 +229,8 @@ CONFIG_GPIO_SYSFS=y
@@ -224,8 +228,10 @@ CONFIG_DEBUG_GPIO=y
CONFIG_GPIO_SYSFS=y
CONFIG_GPIO_QPNP_PIN=y
CONFIG_POWER_SUPPLY=y
CONFIG_SMB1351_USB_CHARGER=y
-CONFIG_SMB1351_USB_CHARGER=y
-CONFIG_SMB358_CHARGER=y
+CONFIG_SMB1351_USB_CHARGER=n
+CONFIG_SMB358_CHARGER=n
+CONFIG_MP2617_CHARGER=y
+CONFIG_MP2617_CHARGER=n
+CONFIG_BQ25601_CHARGER=y
CONFIG_POWER_RESET=y
CONFIG_POWER_RESET_MSM=y
CONFIG_MSM_DLOAD_MODE=y
@@ -234,37 +239,37 @@ CONFIG_THERMAL=y
@@ -234,37 +240,37 @@ CONFIG_THERMAL=y
CONFIG_THERMAL_TSENS8974=y
CONFIG_THERMAL_MONITOR=y
CONFIG_THERMAL_QPNP_ADC_TM=y
@ -753,7 +862,7 @@ index 1e33537..267a303 100644
CONFIG_USB_EHSET_TEST_FIXTURE=y
CONFIG_USB_GADGET=y
CONFIG_USB_GADGET_DEBUG_FILES=y
@@ -274,7 +279,6 @@ CONFIG_USB_CI13XXX_MSM=y
@@ -274,7 +280,6 @@ CONFIG_USB_CI13XXX_MSM=y
CONFIG_USB_CI13XXX_MSM_HSIC=y
CONFIG_USB_G_ANDROID=y
CONFIG_MMC=y
@ -761,7 +870,7 @@ index 1e33537..267a303 100644
CONFIG_MMC_CLKGATE=y
CONFIG_MMC_PARANOID_SD_INIT=y
CONFIG_MMC_BLOCK_MINORS=32
@@ -299,16 +303,15 @@ CONFIG_QPNP_REVID=y
@@ -299,16 +304,15 @@ CONFIG_QPNP_REVID=y
CONFIG_SPS=y
CONFIG_USB_BAM=y
CONFIG_SPS_SUPPORT_NDP_BAM=y
@ -782,7 +891,7 @@ index 1e33537..267a303 100644
CONFIG_MSM_WATCHDOG_V2=y
CONFIG_MSM_RPM_RBCPR_STATS_V2_LOG=y
CONFIG_MSM_RPM_LOG=y
@@ -332,20 +335,20 @@ CONFIG_MSM_PIL_MSS_QDSP6V5=y
@@ -332,20 +336,20 @@ CONFIG_MSM_PIL_MSS_QDSP6V5=y
CONFIG_TRACER_PKT=y
CONFIG_MSM_BAM_DMUX=y
CONFIG_REMOTE_SPINLOCK_MSM=y
@ -817,7 +926,7 @@ index 1e33537..267a303 100644
CONFIG_VFAT_FS=y
CONFIG_TMPFS=y
CONFIG_UBIFS_FS=y
@@ -354,27 +357,37 @@ CONFIG_NLS_CODEPAGE_437=y
@@ -354,27 +358,52 @@ CONFIG_NLS_CODEPAGE_437=y
CONFIG_NLS_ASCII=y
CONFIG_NLS_ISO8859_1=y
CONFIG_PRINTK_TIME=y
@ -875,3 +984,18 @@ index 1e33537..267a303 100644
+CONFIG_SUPPORT_RTL_SDIO3=y
+#[wuchao add] modify pkt_threshold for rtl wifi
+CONFIG_TP_FEATURE_RTL8192ES=y
+#[zhangguosong add start]
+CONFIG_NET_SCH_HTB=y
+CONFIG_NET_SCH_SFQ=y
+CONFIG_NET_SCH_FIFO=y
+CONFIG_NET_CLS=y
+CONFIG_NET_CLS_FW=y
+CONFIG_NET_CLS_U32=y
+CONFIG_NET_CLS_ACT=y
+CONFIG_NET_ACT_MIRRED=y
+CONFIG_BRIDGE_EBT_MARK=y
+CONFIG_BRIDGE_EBT_VLAN=y
+CONFIG_BRIDGE_EBT_FTOS=y
+CONFIG_BRIDGE_EBT_MARK_T=y
+CONFIG_IFB=y
+#[zhangguosong add end]