mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-25 00:11:13 +00:00
ipq806x: ubnt,unifi-ac-hd: use on-board PHYs
Unlike many ipq806x devices, Ubiquiti UniFi AC HD (UAP-AC-HD, UAP301) has no switch on board. Its two Ethernet ports are connected to Atheros AR8033 PHYs. It is not appropriate to use fixed-link in this configuration. Instead, configure the correct PHYs in the device tree configuration to allow the at803x driver to load. Signed-off-by: Mark Mentovai <mark@moxienet.com> Build-tested: ipq806x/ubnt,unifi-ac-hd Run-tested: ipq806x/ubnt,unifi-ac-hd
This commit is contained in:
parent
fa731838c5
commit
4f74966852
@ -16,6 +16,8 @@
|
|||||||
led-running = &led_dome_blue;
|
led-running = &led_dome_blue;
|
||||||
led-upgrade = &led_dome_blue;
|
led-upgrade = &led_dome_blue;
|
||||||
mdio-gpio0 = &mdio0;
|
mdio-gpio0 = &mdio0;
|
||||||
|
ethernet0 = &gmac1;
|
||||||
|
ethernet1 = &gmac2;
|
||||||
};
|
};
|
||||||
|
|
||||||
leds {
|
leds {
|
||||||
@ -229,38 +231,36 @@
|
|||||||
|
|
||||||
pinctrl-0 = <&mdio0_pins>;
|
pinctrl-0 = <&mdio0_pins>;
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
};
|
|
||||||
|
|
||||||
&gmac2 {
|
phy4: ethernet-phy@4 {
|
||||||
status = "okay";
|
reg = <4>;
|
||||||
|
};
|
||||||
|
|
||||||
phy-mode = "sgmii";
|
phy5: ethernet-phy@5 {
|
||||||
qcom,id = <2>;
|
reg = <5>;
|
||||||
qcom,emulation = <0>;
|
|
||||||
mdiobus = <&mdio0>;
|
|
||||||
|
|
||||||
mtd-mac-address = <&eeprom 0x0>;
|
|
||||||
|
|
||||||
fixed-link {
|
|
||||||
speed = <1000>;
|
|
||||||
full-duplex;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
&gmac1 {
|
&gmac1 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
|
|
||||||
|
mdiobus = <&mdio0>;
|
||||||
|
phy-handle = <&phy5>;
|
||||||
phy-mode = "sgmii";
|
phy-mode = "sgmii";
|
||||||
qcom,id = <1>;
|
qcom,id = <1>;
|
||||||
qcom,emulation = <0>;
|
|
||||||
mdiobus = <&mdio0>;
|
|
||||||
|
|
||||||
mtd-mac-address = <&eeprom 0x6>;
|
mtd-mac-address = <&eeprom 0x6>;
|
||||||
|
};
|
||||||
|
|
||||||
fixed-link {
|
&gmac2 {
|
||||||
speed = <1000>;
|
status = "okay";
|
||||||
full-duplex;
|
|
||||||
};
|
mdiobus = <&mdio0>;
|
||||||
|
phy-handle = <&phy4>;
|
||||||
|
phy-mode = "sgmii";
|
||||||
|
qcom,id = <2>;
|
||||||
|
|
||||||
|
mtd-mac-address = <&eeprom 0x0>;
|
||||||
};
|
};
|
||||||
|
|
||||||
&pcie0 {
|
&pcie0 {
|
||||||
|
Loading…
Reference in New Issue
Block a user