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

Commit b8a79f44 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

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

parents b9ece90b 55677a4a
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;
				};
			};
		};
	};
};