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

Commit 1b4f0ef4 authored by Yue Ma's avatar Yue Ma
Browse files

ARM: dts: mdm: Add device entry for CNSS driver for mdmcalifornium



Add CNSS platform driver device entry for mdmcalifornium in order to
enable WLAN functionality. Also add corresponding GPIO entries for WLAN
hardware.

Change-Id: I969502b1e911a76bcf16956ebdee42c20eeca11b
Signed-off-by: default avatarYue Ma <yuem@codeaurora.org>
parent b8735c6c
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
@@ -157,6 +157,21 @@
			};
		};

		cnss_pins {
			cnss_default: cnss_default {
				mux {
					pins = "gpio95";
					function = "gpio";
				};

				config {
					pins = "gpio95";
					drive-strength = <16>;
					bias-pull-down;
				};
			};
		};

		/* SPI CONFIGURATION */
		spi_1 {
			spi_1_active: spi_1_active {
+25 −0
Original line number Diff line number Diff line
@@ -642,6 +642,31 @@
		qcom,sensor-id = <0 1 2 3 6>;
	};

	qcom,cnss {
		compatible = "qcom,cnss";
		wlan-en-gpio = <&tlmm_pinmux 95 0>;
		vdd-wlan-supply = <&rome_vreg>;
		vdd-wlan-xtal-supply = <&pmdcalifornium_l5>;
		vdd-wlan-io-supply = <&pmdcalifornium_l6>;
		qcom,notify-modem-status;
		pinctrl-names = "default";
		pinctrl-0 = <&cnss_default>;
		qcom,wlan-rc-num = <0>;
		qcom,wlan-ramdump-dynamic = <0x200000>;

		qcom,msm-bus,name = "msm-cnss";
		qcom,msm-bus,num-cases = <4>;
		qcom,msm-bus,num-paths = <2>;
		qcom,msm-bus,vectors-KBps =
				<45 512 0 0>, <1 512 0 0>,
				/* Upto 200 Mbps */
				<45 512 41421 655360>, <1 512 41421 655360>,
				/* Upto 400 Mbps */
				<45 512 98572 655360>, <1 512 98572 1600000>,
				/* Upto 800 Mbps */
				<45 512 207108 1146880>, <1 512 207108 3124992>;
	};

	qcom,msm-thermal {
		compatible = "qcom,msm-thermal";
		qcom,sensor-id = <3>;