Skip to content

Commit

Permalink
Add cpu ports
Browse files Browse the repository at this point in the history
  • Loading branch information
dissent1 committed Jul 7, 2017
1 parent cce1b84 commit e9a78dc
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion target/linux/ipq806x/Makefile
Expand Up @@ -20,7 +20,7 @@ DEFAULT_PACKAGES += \
kmod-ata-core kmod-ata-ahci kmod-ata-ahci-platform \
kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-usb-ledtrig-usbport \
kmod-usb3 kmod-usb-dwc3-of-simple kmod-usb-phy-qcom-dwc3 \
kmod-ath10k wpad \
kmod-ath10k wpad qca8k-offload \
uboot-envtools \
block-mount e2fsprogs openssl-util luci luci-app-minidlna \
luci-app-transmission transmission-daemon-openssl \
Expand Down
Expand Up @@ -427,7 +427,7 @@
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
switch_cpu0: port@0 {
reg = <0>;
label = "cpu";
ethernet = <&gmac1>;
Expand All @@ -443,48 +443,48 @@
reg = <1>;
label = "lan4";
phy-handle = <&phy_port1>;
cpu = <&switch_cpu6>;
};

port@2 {
reg = <2>;
label = "lan3";
phy-handle = <&phy_port2>;
cpu = <&switch_cpu6>;
};

port@3 {
reg = <3>;
label = "lan2";
phy-handle = <&phy_port3>;
cpu = <&switch_cpu6>;
};

port@4 {
reg = <4>;
label = "lan1";
phy-handle = <&phy_port4>;
cpu = <&switch_cpu6>;
};

port@5 {
reg = <5>;
label = "wan";
phy-handle = <&phy_port5>;
cpu = <&switch_cpu0>;
};

/*
* Disabled until DSA supports multiple CPUs,
* otherwise it causes undefined behavior.
*
* port@6 {
* reg = <6>;
* label = "cpu";
* ethernet = <&gmac2>;
* phy-mode = "sgmii";
*
* fixed-link {
* speed = <1000>;
* full-duplex;
* };
* };
*/
switch_cpu6: port@6 {
reg = <6>;
label = "cpu";
ethernet = <&gmac2>;
phy-mode = "sgmii";

fixed-link {
speed = <1000>;
full-duplex;
};
};
};
};
};
Expand Down

0 comments on commit e9a78dc

Please sign in to comment.