Add the label-mac-device alias to the device dts. Signed-off-by: Christoph Krapp <achterin@gmail.com> Link: https://github.com/openwrt/openwrt/pull/23134 Signed-off-by: Robert Marko <robimarko@gmail.com>
191 lines
3.3 KiB
Plaintext
191 lines
3.3 KiB
Plaintext
/dts-v1/;
|
|
|
|
#include "ipq5018.dtsi"
|
|
#include "ipq5018-mx-base.dtsi"
|
|
|
|
/ {
|
|
model = "Linksys MX5500";
|
|
compatible = "linksys,mx5500", "qcom,ipq5018";
|
|
|
|
chosen {
|
|
bootargs-append = " root=/dev/ubiblock0_0 coherent_pool=2M";
|
|
stdout-path = "serial0:115200n8";
|
|
};
|
|
|
|
aliases {
|
|
label-mac-device = &dp2;
|
|
};
|
|
};
|
|
|
|
/*
|
|
* ===============================================================
|
|
* _______________________ _______________________
|
|
* | IPQ5018 | | QCA8337 |
|
|
* | +------+ +--------+ | | +--------+ +------+ |
|
|
* | | MAC0 |---| GE Phy | | | | Phy0 |---| MAC1 | |
|
|
* | +------+ +--------+ | | +--------+ +------+ |
|
|
* | +------+ +--------+ | | +--------+ +------+ |
|
|
* | | MAC1 |---| Uniphy |-+-SGMII-+-| SerDes |---| MAC6 | |
|
|
* | +------+ +--------+ | | +--------+ +------+ |
|
|
* |_______________________| |_______________________|
|
|
*
|
|
* ===============================================================
|
|
*/
|
|
|
|
&switch {
|
|
status = "okay";
|
|
|
|
switch_mac_mode = <MAC_MODE_SGMII_CHANNEL0>;
|
|
|
|
qcom,port_phyinfo {
|
|
// MAC0 -> GE Phy -> QCA8337 Phy4
|
|
port@1 {
|
|
port_id = <1>;
|
|
mdiobus = <&mdio0>;
|
|
phy_address = <7>;
|
|
};
|
|
|
|
// MAC1 ---SGMII---> QCA8337 SerDes
|
|
port@2 {
|
|
port_id = <2>;
|
|
forced-speed = <1000>;
|
|
forced-duplex = <1>;
|
|
};
|
|
};
|
|
};
|
|
|
|
// MAC1 ---SGMII---> QCA8337 SerDes
|
|
&dp2 {
|
|
status = "okay";
|
|
|
|
nvmem-cells = <&hw_mac_addr 0>;
|
|
nvmem-cell-names = "mac-address";
|
|
|
|
fixed-link {
|
|
speed = <1000>;
|
|
full-duplex;
|
|
};
|
|
};
|
|
|
|
&mdio0 {
|
|
status = "okay";
|
|
};
|
|
|
|
&mdio1 {
|
|
status = "okay";
|
|
|
|
pinctrl-0 = <&mdio1_pins>;
|
|
pinctrl-names = "default";
|
|
reset-gpios = <&tlmm 39 GPIO_ACTIVE_LOW>;
|
|
|
|
// QCA8337 Phy0 not connected
|
|
qca8337_0: ethernet-phy@0 {
|
|
reg = <0>;
|
|
};
|
|
|
|
// QCA8337 Phy1 -> WAN
|
|
qca8337_1: ethernet-phy@1 {
|
|
reg = <1>;
|
|
};
|
|
|
|
// QCA8337 Phy2 -> LAN1
|
|
qca8337_2: ethernet-phy@2 {
|
|
reg = <2>;
|
|
};
|
|
|
|
// QCA8337 Phy3 -> LAN2
|
|
qca8337_3: ethernet-phy@3 {
|
|
reg = <3>;
|
|
};
|
|
|
|
// QCA8337 Phy4 -> LAN3
|
|
qca8337_4: ethernet-phy@4 {
|
|
reg = <4>;
|
|
};
|
|
|
|
// QCA8337 switch
|
|
switch1: ethernet-switch@17 {
|
|
compatible = "qca,qca8337";
|
|
reg = <17>;
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
ports {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
port@2 {
|
|
reg = <2>;
|
|
label = "wan";
|
|
phy-handle = <&qca8337_1>;
|
|
};
|
|
|
|
port@3 {
|
|
reg = <3>;
|
|
label = "lan3";
|
|
phy-handle = <&qca8337_2>;
|
|
};
|
|
|
|
port@4 {
|
|
reg = <4>;
|
|
label = "lan2";
|
|
phy-handle = <&qca8337_3>;
|
|
};
|
|
|
|
port@5 {
|
|
reg = <5>;
|
|
label = "lan1";
|
|
phy-handle = <&qca8337_4>;
|
|
};
|
|
|
|
port@6 {
|
|
reg = <6>;
|
|
label = "cpu";
|
|
phy-mode = "sgmii";
|
|
ethernet = <&dp2>;
|
|
qca,sgmii-enable-pll;
|
|
|
|
fixed-link {
|
|
speed = <1000>;
|
|
full-duplex;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
&pcie0_phy {
|
|
status = "okay";
|
|
};
|
|
|
|
&pcie0 {
|
|
status = "okay";
|
|
|
|
perst-gpios = <&tlmm 15 GPIO_ACTIVE_LOW>;
|
|
|
|
pcie@0 {
|
|
wifi@0,0 {
|
|
status = "okay";
|
|
|
|
/* QCN9074: ath11k lacks DT compatible for PCI cards */
|
|
compatible = "pci17cb,1104";
|
|
reg = <0x00010000 0 0 0 0>;
|
|
|
|
qcom,ath11k-calibration-variant = "Linksys-MX5500";
|
|
};
|
|
};
|
|
};
|
|
|
|
&q6v5_wcss {
|
|
firmware-name = "ath11k/IPQ5018/hw1.0/q6_fw.mdt",
|
|
"ath11k/IPQ5018/hw1.0/m3_fw.mdt";
|
|
};
|
|
|
|
&wifi {
|
|
qcom,rproc = <&q6v5_wcss>;
|
|
qcom,ath11k-calibration-variant = "Linksys-MX5500";
|
|
qcom,ath11k-fw-memory-mode = <1>;
|
|
|
|
status = "okay";
|
|
};
|