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

Commit 4b015e52 authored by Yue Ma's avatar Yue Ma
Browse files

ARM: dts: msm: Add device entry for CNSS platform driver for MSM8992



Add CNSS platform driver device entry for MSM8992 in order to enable
WLAN functionality. Also add the corresponding pinctrl items and reserve
0-4K physical memory which is required for WLAN hardware in MSM8992.

Change-Id: I8c8dcfb6f71b34b697297d9b1acd618d90aeb882
Signed-off-by: default avatarYue Ma <yuem@codeaurora.org>
parent dca34e2b
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -256,6 +256,17 @@
			};
		};

		cnss_pins {
			qcom,pins = <&gp 112>, <&gp 113>;
			qcom,num-grp-pins = <2>;
			qcom,pin-func = <0>;
			label = "cnss_pins";
			cnss_default: default {
				drive-strength = <16>;
				bias-pull-down;
			};
		};

		pmx_i2c_2 {
			qcom,pins = <&gp 6>, <&gp 7>; /* SDA, SCL */
			qcom,num-grp-pins = <2>;
+8 −0
Original line number Diff line number Diff line
@@ -599,6 +599,14 @@
		qcom,acc-sel-l1-bit-size = <1>;
	};

	wlan_vreg: wlan_vreg {
		compatible = "regulator-fixed";
		regulator-name = "wlan_vreg";
		startup-delay-us = <4000>;
		enable-active-high;
		gpio = <&pm8994_gpios 9 0>;
	};

	apc0_vreg_corner: regulator@f9019000 {
		compatible = "qcom,cpr-regulator";
		reg = <0xf9019000 0x1000>, <0xf900d064 4>, <0xfc4bc000 0x1000>;
+16 −0
Original line number Diff line number Diff line
@@ -10,6 +10,8 @@
 * GNU General Public License for more details.
 */

/memreserve/ 0x00000000 0x00001000;

#include "skeleton64.dtsi"
#include <dt-bindings/clock/msm-clocks-8992.h>

@@ -812,6 +814,20 @@
		max-clock-frequency-hz = <125000000>, <0>, <1011000>, <0>, <0>, <0>, <0>, <0>;
	};

	qcom,cnss {
		compatible = "qcom,cnss";
		wlan-bootstrap-gpio = <&msm_gpio 112 0>;
		wlan-en-gpio = <&msm_gpio 113 0>;
		vdd-wlan-supply = <&wlan_vreg>;
		vdd-wlan-io-supply = <&pm8994_s4>;
		vdd-wlan-xtal-supply = <&pm8994_l30>;
		qcom,notify-modem-status;
		pinctrl-names = "default";
		pinctrl-0 = <&cnss_default>;
		qcom,wlan-rc-num = <0>;
		qcom,wlan-ramdump-dynamic = <0x200000>;
	};

	ipa_hw: qcom,ipa@fd4c0000 {
		compatible = "qcom,ipa";
		reg = <0xfd4c0000 0x29000>,