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

Commit 55677a4a authored by Sachin Prakash Gejji's avatar Sachin Prakash Gejji Committed by Gerrit - the friendly Code Review server
Browse files

ARM: dts: qcom: Add device tree entry for switch driver



Add device tree entry for ethernet switch driver needed
for mac-to-mac communication between NAD and APQ.

Change-Id: I104eb3a2d3e904ae2352da742adbd6d8ca775148
Signed-off-by: default avatarSachin Prakash Gejji <sgejji@codeaurora.org>
parent 48476141
Loading
Loading
Loading
Loading
+45 −0
Original line number Diff line number Diff line
@@ -87,3 +87,48 @@
	mac2mac;
	mac2mac-rgmii-speed = <1000>;
};

&spi_1 {
	status = "okay";

	sja1105: ethernet-switch@0{
		compatible = "qcom,nxp,sja1105p-switch";
		reg = <0>;
		spi-max-frequency = <12000000>;
		spi-cpha;
		switch-speed = <1000>;
		pinctrl-names = "default";
		pinctrl-0 = <&sja1105_default>;
		qcom,reset-gpio = <&tlmm 91 0x1>;

		port-0 {
			null-phy = <0x1>;
			phy-ref = < 0 >;
			logical-port-num = < 0 >;
		};

		port-1 {
			null-phy = <0x1>;
			phy-ref = < 0 >;
			logical-port-num = < 1 >;
		};

		port-2 {
			null-phy = <0x1>;
			phy-ref = < 0 >;
			logical-port-num = < 2 >;
		};

		port-3 {
			null-phy = <0x1>;
			phy-ref = < 0 >;
			logical-port-num = < 3 >;
		};

		port-4 {
			null-phy = <0x1>;
			phy-ref = < 0 >;
			logical-port-num = < 4 >;
		};
	};
};
+15 −0
Original line number Diff line number Diff line
@@ -1685,5 +1685,20 @@
				bias-pull-down;
			};
		};
		sja1105_pin {
			sja1105_default: sja1105_default {
				mux {
					pins =  "gpio89", "gpio91", "gpio102";
					function = "gpio";
				};

				config {
					pins = "gpio89", "gpio91", "gpio102";
					drive-strength = <4>;
					bias-pull-up;
					output-high;
				};
			};
		};
	};
};