Update QCA Source

This commit is contained in:
VIKING 2025-03-30 13:31:39 +08:00
parent 9bfeccf087
commit 21d7d604c1
4 changed files with 45 additions and 54 deletions

View File

@ -35,14 +35,14 @@ xiaomi,ax1800|\
zn,m2|\ zn,m2|\
glinet,gl-ax1800|\ glinet,gl-ax1800|\
glinet,gl-axt1800|\ glinet,gl-axt1800|\
linksys,mr7350|\
linksys,mr7500)
ubootenv_add_mtd "u_env" "0x0" "0x40000" "0x20000"
;;
netgear,wax214|\ netgear,wax214|\
tplink,eap610-outdoor) tplink,eap610-outdoor)
ubootenv_add_mtd "0:appsblenv" "0x0" "0x40000" "0x20000" ubootenv_add_mtd "0:appsblenv" "0x0" "0x40000" "0x20000"
;; ;;
linksys,mr7350|\
linksys,mr7500)
ubootenv_add_mtd "u_env" "0x0" "0x40000" "0x20000"
;;
yuncore,fap650) yuncore,fap650)
ubootenv_add_mtd "0:appsblenv" "0x0" "0x10000" "0x10000" ubootenv_add_mtd "0:appsblenv" "0x0" "0x10000" "0x10000"
;; ;;

View File

@ -1,11 +1,13 @@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
// Copyright 2024 Weikai Kong (priv at pppig236.com)
/dts-v1/; /dts-v1/;
#include "ipq6018-512m.dtsi" #include "ipq6018.dtsi"
#include "ipq6018-cp-cpu.dtsi" #include "ipq6018-common.dtsi"
#include "ipq6018-ess.dtsi" #include "ipq6018-ess.dtsi"
#include "ipq6018-nss.dtsi"
#include "ipq6018-cp-cpu.dtsi"
#include <dt-bindings/gpio/gpio.h> #include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h> #include <dt-bindings/leds/common.h>
@ -13,7 +15,7 @@
/ { / {
model = "Linksys MR7500"; model = "Linksys MR7500";
compatible = "linksys,mr7500", "qcom,ipq6018"; compatible = "linksys,mr7500", "qcom,ipq6018";
aliases { aliases {
serial0 = &blsp1_uart3; serial0 = &blsp1_uart3;
serial1 = &blsp1_uart2; serial1 = &blsp1_uart2;
@ -25,24 +27,24 @@
label-mac-device = &dp5_syn; label-mac-device = &dp5_syn;
}; };
chosen { chosen {
stdout-path = "serial0:115200n8"; stdout-path = "serial0:115200n8";
bootargs-append = " root=/dev/ubiblock0_0"; bootargs-append = " root=/dev/ubiblock0_0";
}; };
extcon_usb { extcon_usb {
pinctrl-0 = <&extcon_usb_pins>; pinctrl-0 = <&extcon_usb_pins>;
pinctrl-names = "default"; pinctrl-names = "default";
id-gpio = <&tlmm 26 GPIO_ACTIVE_LOW>; id-gpio = <&tlmm 26 GPIO_ACTIVE_LOW>;
status = "okay"; status = "okay";
}; };
gpio_keys { gpio_keys {
compatible = "gpio-keys"; compatible = "gpio-keys";
pinctrl-0 = <&button_pins>; pinctrl-0 = <&button_pins>;
pinctrl-names = "default"; pinctrl-names = "default";
wps { wps {
label = "wps"; label = "wps";
linux,code = <KEY_WPS_BUTTON>; linux,code = <KEY_WPS_BUTTON>;
@ -55,10 +57,10 @@
gpios = <&tlmm 56 GPIO_ACTIVE_LOW>; gpios = <&tlmm 56 GPIO_ACTIVE_LOW>;
}; };
}; };
leds { leds {
compatible = "pwm-leds"; compatible = "pwm-leds";
usb { usb {
color = <LED_COLOR_ID_BLUE>; color = <LED_COLOR_ID_BLUE>;
function = LED_FUNCTION_USB; function = LED_FUNCTION_USB;
@ -68,7 +70,7 @@
trigger-sources = <&usb3_port1>, <&usb3_port2>; trigger-sources = <&usb3_port1>, <&usb3_port2>;
linux,default-trigger = "usbport"; linux,default-trigger = "usbport";
}; };
led_system_red: red { led_system_red: red {
color = <LED_COLOR_ID_RED>; color = <LED_COLOR_ID_RED>;
function = LED_FUNCTION_INDICATOR; function = LED_FUNCTION_INDICATOR;
@ -76,14 +78,14 @@
max-brightness = <255>; max-brightness = <255>;
panic-indicator; panic-indicator;
}; };
led_system_green: green { led_system_green: green {
color = <LED_COLOR_ID_GREEN>; color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_INDICATOR; function = LED_FUNCTION_INDICATOR;
pwms = <&pwm 3 1250000>; pwms = <&pwm 3 1250000>;
max-brightness = <255>; max-brightness = <255>;
}; };
led_system_blue: blue { led_system_blue: blue {
color = <LED_COLOR_ID_BLUE>; color = <LED_COLOR_ID_BLUE>;
function = LED_FUNCTION_POWER; function = LED_FUNCTION_POWER;
@ -91,7 +93,7 @@
max-brightness = <255>; max-brightness = <255>;
}; };
}; };
reg_usb_vbus: regulator-usb-vbus { reg_usb_vbus: regulator-usb-vbus {
compatible = "regulator-fixed"; compatible = "regulator-fixed";
regulator-name = "usb_vbus"; regulator-name = "usb_vbus";
@ -110,7 +112,7 @@
drive-strength = <8>; drive-strength = <8>;
bias-pull-up; bias-pull-up;
}; };
/*LED_USB*/ /*LED_USB*/
mux_1 { mux_1 {
pins = "gpio30"; pins = "gpio30";
@ -118,7 +120,7 @@
drive-strength = <8>; drive-strength = <8>;
bias-pull-down; bias-pull-down;
}; };
/*LED_R*/ /*LED_R*/
mux_2 { mux_2 {
pins = "gpio31"; pins = "gpio31";
@ -126,7 +128,7 @@
drive-strength = <8>; drive-strength = <8>;
bias-pull-down; bias-pull-down;
}; };
/*LED_G*/ /*LED_G*/
mux_3 { mux_3 {
pins = "gpio32"; pins = "gpio32";
@ -135,14 +137,14 @@
bias-pull-down; bias-pull-down;
}; };
}; };
extcon_usb_pins: extcon_usb_pins { extcon_usb_pins: extcon_usb_pins {
pins = "gpio26"; pins = "gpio26";
function = "gpio"; function = "gpio";
drive-strength = <2>; drive-strength = <2>;
bias-pull-down; bias-pull-down;
}; };
button_pins: button_pins { button_pins: button_pins {
wps_button { wps_button {
pins = "gpio37"; pins = "gpio37";
@ -214,7 +216,7 @@
pinctrl-names = "default"; pinctrl-names = "default";
reset-gpios = <&tlmm 75 GPIO_ACTIVE_LOW>; reset-gpios = <&tlmm 75 GPIO_ACTIVE_LOW>;
status = "okay"; status = "okay";
ethernet-phy-package { ethernet-phy-package {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
@ -222,7 +224,7 @@
reg = <0>; reg = <0>;
qcom,package-mode = "qsgmii"; qcom,package-mode = "qsgmii";
qca8075_0: ethernet-phy@0 { qca8075_0: ethernet-phy@0 {
compatible = "ethernet-phy-ieee802.3-c22"; compatible = "ethernet-phy-ieee802.3-c22";
reg = <0>; reg = <0>;
@ -230,14 +232,14 @@
leds { leds {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
led@0 { led@0 {
reg = <0>; reg = <0>;
color = <LED_COLOR_ID_ORANGE>; color = <LED_COLOR_ID_ORANGE>;
function = LED_FUNCTION_LAN; function = LED_FUNCTION_LAN;
default-state = "keep"; default-state = "keep";
}; };
led@1 { led@1 {
reg = <1>; reg = <1>;
color = <LED_COLOR_ID_GREEN>; color = <LED_COLOR_ID_GREEN>;
@ -254,14 +256,14 @@
leds { leds {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
led@0 { led@0 {
reg = <0>; reg = <0>;
color = <LED_COLOR_ID_ORANGE>; color = <LED_COLOR_ID_ORANGE>;
function = LED_FUNCTION_LAN; function = LED_FUNCTION_LAN;
default-state = "keep"; default-state = "keep";
}; };
led@1 { led@1 {
reg = <1>; reg = <1>;
color = <LED_COLOR_ID_GREEN>; color = <LED_COLOR_ID_GREEN>;
@ -278,14 +280,14 @@
leds { leds {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
led@0 { led@0 {
reg = <0>; reg = <0>;
color = <LED_COLOR_ID_ORANGE>; color = <LED_COLOR_ID_ORANGE>;
function = LED_FUNCTION_LAN; function = LED_FUNCTION_LAN;
default-state = "keep"; default-state = "keep";
}; };
led@1 { led@1 {
reg = <1>; reg = <1>;
color = <LED_COLOR_ID_GREEN>; color = <LED_COLOR_ID_GREEN>;
@ -302,14 +304,14 @@
leds { leds {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
led@0 { led@0 {
reg = <0>; reg = <0>;
color = <LED_COLOR_ID_ORANGE>; color = <LED_COLOR_ID_ORANGE>;
function = LED_FUNCTION_LAN; function = LED_FUNCTION_LAN;
default-state = "keep"; default-state = "keep";
}; };
led@1 { led@1 {
reg = <1>; reg = <1>;
color = <LED_COLOR_ID_GREEN>; color = <LED_COLOR_ID_GREEN>;
@ -329,14 +331,14 @@
leds { leds {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
led@0 { led@0 {
reg = <0>; reg = <0>;
color = <LED_COLOR_ID_ORANGE>; color = <LED_COLOR_ID_ORANGE>;
function = LED_FUNCTION_WAN; function = LED_FUNCTION_WAN;
default-state = "keep"; default-state = "keep";
}; };
led@1 { led@1 {
reg = <1>; reg = <1>;
color = <LED_COLOR_ID_GREEN>; color = <LED_COLOR_ID_GREEN>;
@ -402,7 +404,7 @@
switch_wan_bmp = <ESS_PORT5>; switch_wan_bmp = <ESS_PORT5>;
switch_mac_mode = <MAC_MODE_QSGMII>; switch_mac_mode = <MAC_MODE_QSGMII>;
switch_mac_mode1 = <MAC_MODE_USXGMII>; switch_mac_mode1 = <MAC_MODE_USXGMII>;
qcom,port_phyinfo { qcom,port_phyinfo {
port@1 { port@1 {
port_id = <1>; port_id = <1>;
@ -447,10 +449,6 @@
}; };
}; };
&qpic_bam {
status = "okay";
};
&qpic_nand { &qpic_nand {
status = "okay"; status = "okay";
@ -486,19 +484,15 @@
}; };
}; };
&ssphy_0 {
status = "okay";
};
&dwc_0 { &dwc_0 {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
usb3_port1: port@1 { usb3_port1: port@1 {
reg = <1>; reg = <1>;
#trigger-source-cells = <0>; #trigger-source-cells = <0>;
}; };
usb3_port2: port@2 { usb3_port2: port@2 {
reg = <2>; reg = <2>;
#trigger-source-cells = <0>; #trigger-source-cells = <0>;
@ -515,10 +509,6 @@
vbus-supply = <&reg_usb_vbus>; vbus-supply = <&reg_usb_vbus>;
}; };
&pcie_phy {
status = "okay";
};
&pcie0 { &pcie0 {
status = "okay"; status = "okay";
bridge@0,0 { bridge@0,0 {
@ -526,7 +516,7 @@
#address-cells = <3>; #address-cells = <3>;
#size-cells = <2>; #size-cells = <2>;
ranges; ranges;
wifi@1,0 { wifi@1,0 {
status = "okay"; status = "okay";
/* ath11k has no DT compatible for PCI cards */ /* ath11k has no DT compatible for PCI cards */
@ -539,6 +529,6 @@
&wifi { &wifi {
status = "okay"; status = "okay";
qcom,ath11k-calibration-variant = "Linksys-MR7500";
qcom,ath11k-fw-memory-mode = <1>; qcom,ath11k-fw-memory-mode = <1>;
qcom,ath11k-calibration-variant = "Linksys-MR7500";
}; };

View File

@ -160,7 +160,7 @@
"uniphy0_port_4_rst"; "uniphy0_port_4_rst";
mdio-bus = <&mdio>; mdio-bus = <&mdio>;
switch_cpu_bmp = <ESS_PORT0>; switch_cpu_bmp = <ESS_PORT0>;
switch_inner_bmp = <(ESS_PORT6 | ESS_PORT7)>; switch_inner_bmp = <(ESS_PORT6 | ESS_PORT7)>;
switch_mac_mode = <MAC_MODE_DISABLED>; switch_mac_mode = <MAC_MODE_DISABLED>;
switch_mac_mode1 = <MAC_MODE_DISABLED>; switch_mac_mode1 = <MAC_MODE_DISABLED>;

View File

@ -28,7 +28,8 @@ case "$board" in
[ "$PHYNBR" = "0" ] && macaddr_add $label_mac 1 > /sys${DEVPATH}/macaddress [ "$PHYNBR" = "0" ] && macaddr_add $label_mac 1 > /sys${DEVPATH}/macaddress
[ "$PHYNBR" = "1" ] && macaddr_add $label_mac 2 > /sys${DEVPATH}/macaddress [ "$PHYNBR" = "1" ] && macaddr_add $label_mac 2 > /sys${DEVPATH}/macaddress
;; ;;
linksys,mr7350) linksys,mr7350|\
linksys,mr7500)
label_mac=$(mtd_get_mac_ascii devinfo hw_mac_addr) label_mac=$(mtd_get_mac_ascii devinfo hw_mac_addr)
[ "$PHYNBR" = "0" ] && macaddr_add $label_mac 2 > /sys${DEVPATH}/macaddress [ "$PHYNBR" = "0" ] && macaddr_add $label_mac 2 > /sys${DEVPATH}/macaddress
[ "$PHYNBR" = "1" ] && macaddr_add $label_mac 3 > /sys${DEVPATH}/macaddress [ "$PHYNBR" = "1" ] && macaddr_add $label_mac 3 > /sys${DEVPATH}/macaddress