USXGMII carries the line rate to the MAC in a Clause 37 code word, so the link needs in-band signalling. Without "managed" the port is PHY managed, phylink disables in-band on the PHY, and with the PCS now honouring neg_mode neither end runs autonegotiation, so nothing crosses the system interface. Every USXGMII port in this target was missing the property: ten ports across eight boards, all of them an Aquantia PHY on copper, none of them an SFP cage. ipq8074-rt-ax89x already carried "in-band-status" on its SGMII lan8, which is why a file-level search made it look covered. Only the two ports on ipq8072-301w have been tested on hardware. The remaining eight are the same PHY family behind the same PCS, are broken today for the same reason, and cannot regress from a state where they pass no traffic, but they have not been confirmed on a board. That test ran on the 6.18 testing kernel, where phylink switches the PHY side on through phy_config_inband(). On 6.12 the PHY has no such op and 0760-net-phy-aquantia-enable-USXGMII-MAC-autoneg.patch forces the same bit unconditionally, so the end state matches, but no board has confirmed it there. Tested-by: Rudy Andram <rmandrad@gmail.com> Assisted-by: Claude:claude-opus-5 Signed-off-by: Julius Bairaktaris <julius@bairaktaris.de> Link: https://github.com/openwrt/openwrt/pull/24420 Signed-off-by: Robert Marko <robimarko@gmail.com>
356 lines
6.4 KiB
Text
356 lines
6.4 KiB
Text
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
|
|
|
/dts-v1/;
|
|
|
|
#include "ipq8074.dtsi"
|
|
#include "ipq8074-hk-cpu.dtsi"
|
|
#include "ipq8074-ess.dtsi"
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
#include <dt-bindings/leds/common.h>
|
|
#include <dt-bindings/input/input.h>
|
|
|
|
/ {
|
|
model = "Buffalo WXR-5950AX12";
|
|
compatible = "buffalo,wxr-5950ax12", "qcom,ipq8074";
|
|
|
|
aliases {
|
|
serial0 = &blsp1_uart5;
|
|
led-boot = &led_power_white;
|
|
led-failsafe = &led_power_red;
|
|
led-running = &led_power_white;
|
|
led-upgrade = &led_power_white;
|
|
label-mac-device = &swport5;
|
|
};
|
|
|
|
chosen {
|
|
stdout-path = "serial0:115200n8";
|
|
bootargs-append = " ubi.mtd=user_property root=/dev/ubiblock1_0";
|
|
};
|
|
|
|
leds {
|
|
compatible = "gpio-leds";
|
|
|
|
led-0 {
|
|
gpios = <&tlmm 21 GPIO_ACTIVE_HIGH>;
|
|
color = <LED_COLOR_ID_WHITE>;
|
|
function = "router";
|
|
};
|
|
|
|
led-1 {
|
|
gpios = <&tlmm 22 GPIO_ACTIVE_HIGH>;
|
|
color = <LED_COLOR_ID_RED>;
|
|
function = "router";
|
|
};
|
|
|
|
led_power_red: led-2 {
|
|
gpios = <&tlmm 31 GPIO_ACTIVE_HIGH>;
|
|
color = <LED_COLOR_ID_RED>;
|
|
function = LED_FUNCTION_POWER;
|
|
};
|
|
|
|
led_power_white: led-3 {
|
|
gpios = <&tlmm 34 GPIO_ACTIVE_HIGH>;
|
|
color = <LED_COLOR_ID_WHITE>;
|
|
function = LED_FUNCTION_POWER;
|
|
};
|
|
|
|
led-4 {
|
|
gpios = <&tlmm 43 GPIO_ACTIVE_HIGH>;
|
|
color = <LED_COLOR_ID_WHITE>;
|
|
function = "internet";
|
|
};
|
|
|
|
led-5 {
|
|
gpios = <&tlmm 44 GPIO_ACTIVE_HIGH>;
|
|
color = <LED_COLOR_ID_RED>;
|
|
function = "internet";
|
|
};
|
|
|
|
led-6 {
|
|
gpios = <&tlmm 55 GPIO_ACTIVE_HIGH>;
|
|
color = <LED_COLOR_ID_RED>;
|
|
function = LED_FUNCTION_WLAN;
|
|
};
|
|
|
|
led-7 {
|
|
gpios = <&tlmm 56 GPIO_ACTIVE_HIGH>;
|
|
color = <LED_COLOR_ID_WHITE>;
|
|
function = LED_FUNCTION_WLAN;
|
|
};
|
|
};
|
|
|
|
keys {
|
|
compatible = "gpio-keys";
|
|
|
|
/*
|
|
* mode: 3x position switch
|
|
*
|
|
* - ROUTER
|
|
* - AP
|
|
* - WB (Wireless Bridge)
|
|
*/
|
|
ap {
|
|
label = "mode-ap";
|
|
gpios = <&tlmm 29 GPIO_ACTIVE_LOW>;
|
|
linux,code = <BTN_0>;
|
|
};
|
|
|
|
bridge {
|
|
label = "mode-wb";
|
|
gpios = <&tlmm 30 GPIO_ACTIVE_LOW>;
|
|
linux,code = <BTN_1>;
|
|
};
|
|
|
|
/*
|
|
* op: 2x position switch
|
|
*
|
|
* - AUTO
|
|
* - MANUAL (select Router/AP/WB manually)
|
|
*/
|
|
manual {
|
|
label = "op-manual";
|
|
gpios = <&tlmm 52 GPIO_ACTIVE_LOW>;
|
|
linux,code = <BTN_2>;
|
|
};
|
|
|
|
wps {
|
|
label = "wps";
|
|
gpios = <&tlmm 51 GPIO_ACTIVE_LOW>;
|
|
linux,code = <KEY_WPS_BUTTON>;
|
|
};
|
|
|
|
reset {
|
|
label = "reset";
|
|
gpios = <&tlmm 54 GPIO_ACTIVE_LOW>;
|
|
linux,code = <KEY_RESTART>;
|
|
};
|
|
};
|
|
|
|
reg_usb_vbus: regulator-5v-vbus {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "vbus";
|
|
regulator-min-microvolt = <5000000>;
|
|
regulator-max-microvolt = <5000000>;
|
|
gpios = <&tlmm 64 GPIO_ACTIVE_HIGH>;
|
|
enable-active-high;
|
|
regulator-always-on;
|
|
};
|
|
};
|
|
|
|
&tlmm {
|
|
mdio_pins: mdio-pins {
|
|
mdc {
|
|
pins = "gpio68";
|
|
function = "mdc";
|
|
drive-strength = <8>;
|
|
bias-pull-up;
|
|
};
|
|
|
|
mdio {
|
|
pins = "gpio69";
|
|
function = "mdio";
|
|
drive-strength = <8>;
|
|
bias-pull-up;
|
|
};
|
|
};
|
|
};
|
|
|
|
&blsp1_uart5 {
|
|
status = "okay";
|
|
};
|
|
|
|
&prng {
|
|
status = "okay";
|
|
};
|
|
|
|
&qpic_bam {
|
|
status = "okay";
|
|
};
|
|
|
|
&qpic_nand {
|
|
status = "okay";
|
|
|
|
nand@0 {
|
|
reg = <0>;
|
|
nand-ecc-strength = <4>;
|
|
nand-ecc-step-size = <512>;
|
|
nand-bus-width = <8>;
|
|
|
|
partitions {
|
|
compatible = "qcom,smem-part";
|
|
|
|
partition-0-appsblenv {
|
|
label = "0:appsblenv";
|
|
read-only;
|
|
|
|
nvmem-layout {
|
|
compatible = "u-boot,env";
|
|
env-size = <0x40000>;
|
|
|
|
macaddr_appsblenv_ethaddr: ethaddr {
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
&mdio {
|
|
status = "okay";
|
|
pinctrl-0 = <&mdio_pins>;
|
|
pinctrl-names = "default";
|
|
/*
|
|
* RESET pins of phy chips
|
|
*
|
|
* WXR-5950AX12 has 2x RESET pins for QCA8075 and AQR113C.
|
|
* The pin of QCA8075 is for the chip and not phys in the chip, the
|
|
* pin of AQR113C is for 2x chips. So both pins are not appropriate
|
|
* to declare them as reset-gpios in phy nodes.
|
|
* Multiple entries in reset-gpios of mdio may not be supported, but
|
|
* leave the following as-is to show that the those reset pin exists.
|
|
*/
|
|
reset-gpios = <&tlmm 37 GPIO_ACTIVE_LOW>, /* QCA8075 RESET */
|
|
<&tlmm 63 GPIO_ACTIVE_LOW>; /* AQR113C RESET (2x) */
|
|
|
|
aqr113c_1: ethernet-phy@0 {
|
|
compatible = "ethernet-phy-ieee802.3-c45";
|
|
reg = <0x0>;
|
|
};
|
|
|
|
aqr113c_2: ethernet-phy@8 {
|
|
compatible = "ethernet-phy-ieee802.3-c45";
|
|
reg = <0x8>;
|
|
};
|
|
|
|
ethernet-phy-package@17 {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
compatible = "qcom,qca8075-package";
|
|
reg = <0x18>;
|
|
|
|
qcom,package-mode = "qsgmii";
|
|
|
|
qca8075_1: ethernet-phy@19 {
|
|
compatible = "ethernet-phy-ieee802.3-c22";
|
|
reg = <0x19>;
|
|
};
|
|
|
|
qca8075_2: ethernet-phy@1a {
|
|
compatible = "ethernet-phy-ieee802.3-c22";
|
|
reg = <0x1a>;
|
|
};
|
|
|
|
qca8075_3: ethernet-phy@1b {
|
|
compatible = "ethernet-phy-ieee802.3-c22";
|
|
reg = <0x1b>;
|
|
};
|
|
};
|
|
};
|
|
|
|
&uniphy0 {
|
|
status = "okay";
|
|
};
|
|
|
|
&uniphy1 {
|
|
status = "okay";
|
|
};
|
|
|
|
&uniphy2 {
|
|
status = "okay";
|
|
};
|
|
|
|
&switch {
|
|
status = "okay";
|
|
|
|
ports {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
port@0 {
|
|
reg = <0>;
|
|
ethernet = <&edma>;
|
|
phy-mode = "internal";
|
|
|
|
fixed-link {
|
|
speed = <1000>;
|
|
full-duplex;
|
|
};
|
|
};
|
|
|
|
swport2: port@2 {
|
|
reg = <2>;
|
|
label = "lan4";
|
|
phy-handle = <&qca8075_1>;
|
|
phy-mode = "qsgmii";
|
|
pcs-handle = <&uniphy0 1>;
|
|
nvmem-cells = <&macaddr_appsblenv_ethaddr>;
|
|
nvmem-cell-names = "mac-address";
|
|
};
|
|
|
|
swport3: port@3 {
|
|
reg = <3>;
|
|
label = "lan3";
|
|
phy-handle = <&qca8075_2>;
|
|
phy-mode = "qsgmii";
|
|
pcs-handle = <&uniphy0 2>;
|
|
nvmem-cells = <&macaddr_appsblenv_ethaddr>;
|
|
nvmem-cell-names = "mac-address";
|
|
};
|
|
|
|
swport4: port@4 {
|
|
reg = <4>;
|
|
label = "lan2";
|
|
phy-handle = <&qca8075_3>;
|
|
phy-mode = "qsgmii";
|
|
pcs-handle = <&uniphy0 3>;
|
|
nvmem-cells = <&macaddr_appsblenv_ethaddr>;
|
|
nvmem-cell-names = "mac-address";
|
|
};
|
|
|
|
swport5: port@5 {
|
|
reg = <5>;
|
|
label = "wan";
|
|
phy-handle = <&aqr113c_1>;
|
|
phy-mode = "usxgmii";
|
|
managed = "in-band-status";
|
|
pcs-handle = <&uniphy1 0>;
|
|
nvmem-cells = <&macaddr_appsblenv_ethaddr>;
|
|
nvmem-cell-names = "mac-address";
|
|
};
|
|
|
|
swport6: port@6 {
|
|
reg = <6>;
|
|
label = "lan1";
|
|
phy-handle = <&aqr113c_2>;
|
|
phy-mode = "usxgmii";
|
|
managed = "in-band-status";
|
|
pcs-handle = <&uniphy2 0>;
|
|
nvmem-cells = <&macaddr_appsblenv_ethaddr>;
|
|
nvmem-cell-names = "mac-address";
|
|
};
|
|
};
|
|
};
|
|
|
|
&edma {
|
|
status = "okay";
|
|
};
|
|
|
|
&ssphy_0 {
|
|
status = "okay";
|
|
};
|
|
|
|
&qusb_phy_0 {
|
|
status = "okay";
|
|
};
|
|
|
|
&usb_0 {
|
|
status = "okay";
|
|
|
|
vbus-supply = <®_usb_vbus>;
|
|
};
|
|
|
|
&wifi {
|
|
status = "okay";
|
|
|
|
qcom,ath11k-calibration-variant = "Buffalo-WXR-5950AX12";
|
|
};
|