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

Commit 88ac1ac9 authored by Stepan Moskovchenko's avatar Stepan Moskovchenko
Browse files

ARM: dts: msm: Support KS8851 SPI Ethernet on 8996 CDP



Add the device and pinctrl definitions needed to support
the KS8851 SPI Ethernet controller found on MSM8996 CDPs.

Change-Id: Id926f4c82ad5d0af1451cc208b61b0e5a768f819
Signed-off-by: default avatarStepan Moskovchenko <stepanm@codeaurora.org>
parent 49d189cc
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -787,3 +787,15 @@
		interrupt-names = "silabs_fm_int", "silabs_fm_status_int";
	};
};

&spi_0 {
	ethernet@2 {
		compatible = "micrel,ks8851";
		reg = <2>;
		interrupt-parent = <&tlmm>;
		interrupts = <11 0>;
		spi-max-frequency = <960000>;
		vdd-supply = <&spi_eth_vreg>;
		reset-gpios = <&tlmm 79 0>;
	};
};
+28 −0
Original line number Diff line number Diff line
@@ -604,6 +604,34 @@
			};
		};

		spi_0_cs {
			spi_0_cs_active: spi_0_cs_active {
				mux {
					pins = "gpio24", "gpio90";
					function = "blsp1_spi";
				};

				config {
					pins = "gpio24", "gpio90";
					drive-strength = <6>;
					bias-pull-up;
				};
			};

			spi_0_cs_sleep: spi_0_cs_sleep {
				mux {
					pins = "gpio24", "gpio90";
					function = "blsp1_spi";
				};

				config {
					pins = "gpio24", "gpio90";
					drive-strength = <6>;
					bias-pull-up;
				};
			};
		};

		pcie0 {
			pcie0_clkreq_default: pcie0_clkreq_default {
				mux {
+2 −2
Original line number Diff line number Diff line
@@ -2584,8 +2584,8 @@
		qcom,master-id = <86>;
		qcom,use-pinctrl;
		pinctrl-names = "spi_default", "spi_sleep";
		pinctrl-0 = <&spi_0_active>;
		pinctrl-1 = <&spi_0_sleep>;
		pinctrl-0 = <&spi_0_active &spi_0_cs_active>;
		pinctrl-1 = <&spi_0_sleep &spi_0_cs_sleep>;

		clock-names = "iface_clk", "core_clk";