Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d7b9eaff authored by Florian Fainelli's avatar Florian Fainelli Committed by Maxime Ripard
Browse files

ARM: dts: sun7i: Add BCM53125 switch nodes to the lamobo-r1 board



Now that we have a proper binding for Ethernet switches hanging off
different buses, and a driver for the BCM53125 switch, add its Device
Tree as a child MDIO node, at MDIO address 30 (Broadcom pseudo-PHY
address) and describe the ports layout of the Lamobo R1 board.

Signed-off-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Acked-by: default avatarChen-Yu Tsai <wens@csie.org>
Signed-off-by: default avatarMaxime Ripard <maxime.ripard@free-electrons.com>
parent 29bc9490
Loading
Loading
Loading
Loading
+57 −3
Original line number Original line Diff line number Diff line
@@ -110,13 +110,67 @@
&gmac {
&gmac {
	pinctrl-names = "default";
	pinctrl-names = "default";
	pinctrl-0 = <&gmac_pins_rgmii_a>;
	pinctrl-0 = <&gmac_pins_rgmii_a>;
	phy = <&phy1>;
	phy-mode = "rgmii";
	phy-mode = "rgmii";
	phy-supply = <&reg_gmac_3v3>;
	phy-supply = <&reg_gmac_3v3>;
	status = "okay";
	status = "okay";


	phy1: ethernet-phy@1 {
	fixed-link {
		speed = <1000>;
		full-duplex;
	};

	mdio {
		compatible = "snps,dwmac-mdio";
		#address-cells = <1>;
		#size-cells = <0>;

		switch: ethernet-switch@1e {
			compatible = "brcm,bcm53125";
			reg = <30>;
			#address-cells = <1>;
			#size-cells = <0>;

			ports {
				#address-cells = <1>;
				#size-cells = <0>;

				port0: port@0 {
					reg = <0>;
					label = "lan2";
				};

				port1: port@1 {
					reg = <1>;
					reg = <1>;
					label = "lan3";
				};

				port2: port@2 {
					reg = <2>;
					label = "lan4";
				};

				port3: port@3 {
					reg = <3>;
					label = "wan";
				};

				port4: port@4 {
					reg = <4>;
					label = "lan1";
				};

				port8: port@8 {
					reg = <8>;
					label = "cpu";
					ethernet = <&gmac>;
					phy-mode = "rgmii";
					fixed-link {
						speed = <1000>;
						full-duplex;
					};
				};
			};
		};
	};
	};
};
};