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

Commit 05c53de8 authored by Sarada Prasanna Garnayak's avatar Sarada Prasanna Garnayak Committed by Gerrit - the friendly Code Review server
Browse files

ARM: dts: msm: add fixed regulator support for wlan_en for msm8996



The QCA wlan chipset uses tlmm, msm and pmic gpio for the WLAN_EN
signal pin. The tlmm or msm gpio uses pinctrl or gpio library for
configuring the sleep/active state runtime.

The pmic gpio runtime configuration is not feasible using gpio
library or pinctrl framework. Convert the pmic gpio to fixed
regulator to runtime control(enable/disable) via regulator framework.

CRs-Fixed: 1040537
Change-Id: I4963c2753b463d5852a847a20fe280107abca337
Signed-off-by: default avatarSarada Prasanna Garnayak <sgarna@codeaurora.org>
parent 84920962
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -1614,6 +1614,13 @@
		gpio = <&pm8994_gpios 9 0>;
	};

	wlan_en_vreg: wlan_en_vreg {
		compatible = "regulator-fixed";
		regulator-name = "wlan_en_vreg";
		enable-active-high;
		gpio = <&pm8994_gpios 8 0>;
	};

	hl7509_en_vreg: hl7509_en_vreg {
		compatible = "regulator-fixed";
		regulator-name = "hl7509_en_vreg";
+2 −1
Original line number Diff line number Diff line
@@ -2227,12 +2227,13 @@
	qcom,cnss {
		compatible = "qcom,cnss";
		wlan-bootstrap-gpio = <&tlmm 46 0>;
		wlan-en-gpio = <&pm8994_gpios 8 0>;
		vdd-wlan-en-supply = <&wlan_en_vreg>;
		vdd-wlan-supply = <&rome_vreg>;
		vdd-wlan-io-supply = <&pm8994_s4>;
		vdd-wlan-xtal-supply = <&pm8994_l30>;
		vdd-wlan-core-supply = <&pm8994_s3>;
		wlan-ant-switch-supply = <&pm8994_l18_pin_ctrl>;
		qcom,wlan-en-vreg-support;
		qcom,notify-modem-status;
		pinctrl-names = "default";
		pinctrl-0 = <&cnss_default>;