openwrt-pf/target/linux/qualcommax/dts/ipq8072-haze.dts
Julius Bairaktaris f4a7ae107e qualcommax: enable in-band signalling on the USXGMII ports
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>
2026-08-06 12:45:27 +02:00

341 lines
5.3 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/input/input.h>
#include <dt-bindings/leds/common.h>
/ {
model = "prpl Foundation Haze";
compatible = "prpl,haze", "qcom,ipq8074";
aliases {
serial0 = &blsp1_uart5;
/* Aliases are required by U-Boot to patch MAC addresses */
ethernet0 = &swport6;
ethernet1 = &swport4;
ethernet2 = &swport3;
ethernet3 = &swport2;
label-mac-device = &swport6;
led-boot = &led_system_blue;
led-failsafe = &led_system_red;
led-running = &led_system_green;
led-upgrade = &led_system_blue;
};
chosen {
stdout-path = "serial0:115200n8";
};
keys {
compatible = "gpio-keys";
pinctrl-0 = <&button_pins>;
pinctrl-names = "default";
wps-button {
label = "wps";
gpios = <&tlmm 42 GPIO_ACTIVE_LOW>;
linux,code = <KEY_WPS_BUTTON>;
};
reset-button {
label = "reset";
gpios = <&tlmm 44 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>;
};
};
};
&tlmm {
mdio_pins: mdio-state {
mdc-pins {
pins = "gpio68";
function = "mdc";
drive-strength = <8>;
bias-pull-up;
};
mdio-pins {
pins = "gpio69";
function = "mdio";
drive-strength = <8>;
bias-pull-up;
};
};
button_pins: button-state {
wps-pins {
pins = "gpio42";
function = "gpio";
drive-strength = <8>;
bias-pull-up;
};
rst-pins {
pins = "gpio44";
function = "gpio";
drive-strength = <8>;
bias-pull-up;
};
};
i2c_3_pins: i2c-3-state {
pins = "gpio46", "gpio47";
function = "blsp2_i2c";
drive-strength = <8>;
bias-disable;
};
};
&blsp1_uart5 {
status = "okay";
};
&prng {
status = "okay";
};
&ssphy_0 {
status = "okay";
};
&qusb_phy_0 {
status = "okay";
};
&ssphy_1 {
status = "okay";
};
&qusb_phy_1 {
status = "okay";
};
&usb_0 {
status = "okay";
};
&usb_1 {
status = "okay";
};
&qpic_bam {
status = "okay";
};
&blsp1_spi1 { /* BLSP1 QUP1 */
pinctrl-0 = <&spi_0_pins>;
pinctrl-names = "default";
status = "okay";
flash@0 {
reg = <0>;
compatible = "jedec,spi-nor";
spi-max-frequency = <50000000>;
partitions {
compatible = "qcom,smem-part";
};
};
};
&mdio {
status = "okay";
pinctrl-0 = <&mdio_pins>;
pinctrl-names = "default";
reset-gpios = <&tlmm 22 GPIO_ACTIVE_LOW>;
ethernet-phy-package@0 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "qcom,qca8075-package";
reg = <0>;
qca8075_0: ethernet-phy@0 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <0>;
};
qca8075_1: ethernet-phy@1 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <1>;
};
qca8075_2: ethernet-phy@2 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <2>;
};
qca8075_3: ethernet-phy@3 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <3>;
};
};
aqr113c: ethernet-phy@5 {
compatible ="ethernet-phy-ieee802.3-c45";
reg = <8>;
reset-gpios = <&tlmm 43 GPIO_ACTIVE_LOW>;
};
};
&sdhc_1 {
status = "okay";
vqmmc-supply = <&l11>;
};
&uniphy0 {
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;
};
};
swport1: port@1 {
reg = <1>;
label = "lan4";
phy-handle = <&qca8075_0>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 0>;
status = "disabled";
};
swport2: port@2 {
reg = <2>;
label = "lan3";
phy-handle = <&qca8075_1>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 1>;
};
swport3: port@3 {
reg = <3>;
label = "lan2";
phy-handle = <&qca8075_2>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 2>;
};
swport4: port@4 {
reg = <4>;
label = "lan1";
phy-handle = <&qca8075_3>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 3>;
};
swport6: port@6 {
reg = <6>;
label = "wan";
phy-handle = <&aqr113c>;
phy-mode = "usxgmii";
managed = "in-band-status";
pcs-handle = <&uniphy2 0>;
};
};
};
&edma {
status = "okay";
};
&pcie_qmp0 {
status = "okay";
};
&pcie0 {
status = "okay";
perst-gpios = <&tlmm 58 GPIO_ACTIVE_LOW>;
};
&pcie_qmp1 {
status = "okay";
};
&pcie1 {
status = "okay";
perst-gpios = <&tlmm 61 GPIO_ACTIVE_LOW>;
pcie@0 {
wifi@0,0 {
status = "okay";
/* ath11k has no DT compatible for PCI cards */
compatible = "pci17cb,1104";
reg = <0x00010000 0 0 0 0>;
qcom,ath11k-calibration-variant = "prpl-Haze";
};
};
};
&wifi {
status = "okay";
qcom,ath11k-calibration-variant = "prpl-Haze";
};
&blsp1_i2c3{
pinctrl-0 = <&i2c_3_pins>;
pinctrl-names = "default";
status = "okay";
led-controller@30 {
compatible = "ti,lp5562";
reg = <0x30>;
clock-mode = /bits/ 8 <2>;
#address-cells = <1>;
#size-cells = <0>;
led_system_red: chan@0 {
chan-name = "red";
led-cur = /bits/ 8 <0x20>;
max-cur = /bits/ 8 <0x60>;
color = <LED_COLOR_ID_RED>;
reg = <0>;
};
led_system_green: chan@1 {
chan-name = "green";
led-cur = /bits/ 8 <0x20>;
max-cur = /bits/ 8 <0x60>;
color = <LED_COLOR_ID_GREEN>;
reg = <1>;
};
led_system_blue: chan@2 {
chan-name = "blue";
led-cur = /bits/ 8 <0x20>;
max-cur = /bits/ 8 <0x60>;
color = <LED_COLOR_ID_BLUE>;
reg = <2>;
};
};
};