These patches fix Ethernet and wireless on rt2880 boards. I have tested
on two systems with success.

The last patch is made against Roman Yeryomin's previously-submitted,
but not yet merged, pinctrl patch.

Note that the board DTS must define the port and PHY to connect to.
Here's an example for a board connecting to a IP175E 100mbit switch
at PHY 0:

        ethernet@400000 {
                status = "okay";
                mtd-mac-address = <&factory 0x4>;

                port@0 {
                        phy-handle = <&phy0>;
                        phy-mode = "mii";
                };

                mdio-bus {
                    status = "okay";
                    phy0: ethernet-phy@0 {
                        phy-mode = "mii";
                        reg = <0>;
                    };
                };
        };

If necessary, a fixed-link parameter can be specified instead of
phy-handle/phy-mode:
                port@0 {
                        ralink,fixed-link = <100 1 1 1>;
                };

Claudio Leite (4):
  ramips: enable port init function on RT2880 ethernet
  ramips: set wmac clock on rt2880
  ramips: squelch mdio debugging info on rt2880 ethernet
  ramips: add rt2880 ethernet port device type
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to