[LEDE-DEV] Linksys ea8500 switch configuration

Josh Bendavid joshbendavid at gmail.com
Sat Jun 18 03:38:26 PDT 2016


Hi Adrian,
Thinking a bit more about the discussion we were having in
https://github.com/lede-project/source/pull/6 about the ethernet and
switch configuration on the ea8500.

Given that the stock firmware apparently doesn't enable VLAN on the
switch, I suspect that this router actually has a different
configuration than AP148.

AP148:  gmac1 (eth0) -> rgmii -> switch port 0
              gmac2 (eth1) -> sgmii -> switch port 6
              switch ports 1-4-> PHYs on LAN ports
               switch port 5 -> PHY on WAN port

Suspected configuration of ea8500:
              gmac1 (eth0) -> rgmii -> switch port 0
              gmac2 (eth1) -> rmgii -> PHY on WAN port (bypassing the
switch but using the PHY normally connected to swich port 5)
              switch ports 1-4-> PHYs on LAN ports
              (switch port 5 is then unused)

In that case no vlans would be needed for the standard 1 WAN 1 LAN
configuration.

A bit of a guess on what would be needed in the device tree to handle
this is attached for the gmac and switch parts (but note the ??? in
pinctrl-0 for gmac2, since I'm not sure what to put here, and possibly
an additional block needs to be defined in the pinmux.)
-------------- next part --------------
		gmac1: ethernet at 37200000 {
			status = "ok";
			phy-mode = "rgmii";
			qcom,id = <1>;

			pinctrl-0 = <&rgmii2_pins>;
			pinctrl-names = "default";

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

		gmac2: ethernet at 37400000 {
			status = "ok";
			phy-mode = "rgmii";
			qcom,id = <2>;
			
			pinctrl-0 = ????
			pinctrl-names = "default";			

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


			phy0: ethernet-phy at 0 {
				device_type = "ethernet-phy";
				reg = <0>;
				qca,ar8327-initvals = <
					0x00004 0x7600000   /* PAD0_MODE */
					0x00008 0x7600000   /* PAD5_MODE */
					0x0000c 0x80        /* PAD6_MODE */
					0x000e4 0xea545     /* MAC_POWER_SEL */
					0x0007c 0x4e        /* PORT0_STATUS */
					0x00094 0x4e        /* PORT6_STATUS */
					>;
			};


More information about the Lede-dev mailing list