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

Commit d361be98 authored by Banajit Goswami's avatar Banajit Goswami
Browse files

ARM: dts: msm: Configure spkdrv supply for APQ8084



The APQ8084 CDP and MTP has Codec speaker driver which requires power
supply. Configure speaker driver supply as an on demand so that codec
driver can turn it on only when it's required.
Liquid has external supply which should be controlled by its ASoC machine
driver. Configure Liquid's speaker driver supply with 0V and 0Amp to make
codec driver doesn't complain about lack of spkdrv supply.

Change-Id: I681b86330b8766c6b7fa4b44e191965fd91c1ca1
Signed-off-by: default avatarBanajit Goswami <bgoswami@codeaurora.org>
parent 0cabfa0f
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -445,6 +445,12 @@
		qcom,cdc-micbias1-ext-cap;
		qcom,cdc-micbias3-ext-cap;
		qcom,cdc-micbias4-ext-cap;

		cdc-vdd-spkdrv-supply = <&hdmi_vreg>;
		qcom,cdc-vdd-spkdrv-voltage = <5000000 5000000>;
		qcom,cdc-vdd-spkdrv-current = <1250000>;

		qcom,cdc-on-demand-supplies = "cdc-vdd-spkdrv";
	};
};

+14 −0
Original line number Diff line number Diff line
@@ -236,12 +236,26 @@
	status = "ok";
};

&vph_pwr_vreg {
	status = "ok";
};

&slim_msm {
	taiko_codec {
		qcom,cdc-micbias1-ext-cap;
		qcom,cdc-micbias2-ext-cap;
		qcom,cdc-micbias3-ext-cap;
		qcom,cdc-micbias4-ext-cap;

		/*
		 * Liquid has external spkrdrv supply. Give a dummy supply
		 * to make codec driver happy.
		 */
		cdc-vdd-spkdrv-supply = <&vph_pwr_vreg>;
		qcom,cdc-vdd-spkdrv-voltage = <0 0>;
		qcom,cdc-vdd-spkdrv-current = <0>;

		qcom,cdc-on-demand-supplies = "cdc-vdd-spkdrv";
	};
};

+14 −0
Original line number Diff line number Diff line
@@ -253,11 +253,25 @@
	status = "ok";
};

&vph_pwr_vreg {
	status = "ok";
};

&slim_msm {
	taiko_codec {
		qcom,cdc-micbias1-ext-cap;
		qcom,cdc-micbias2-ext-cap;
		qcom,cdc-micbias3-ext-cap;

		/*
		 * spkrdrv supply in MTP device is from VPH_PWR which is
		 * always ON. Give a dummy supply to make codec driver happy.
		 */
		cdc-vdd-spkdrv-supply = <&vph_pwr_vreg>;
		qcom,cdc-vdd-spkdrv-voltage = <0 0>;
		qcom,cdc-vdd-spkdrv-current = <0>;

		qcom,cdc-on-demand-supplies = "cdc-vdd-spkdrv";
	};
};

+11 −0
Original line number Diff line number Diff line
@@ -533,4 +533,15 @@
		enable-active-high;
		gpio = <&pma8084_gpios 9 0>;
	};

	/*
	 * vph_pwr_vreg represents the unregulated battery voltage supply
	 * VPH_PWR that is present whenever the device is powered on.
	 */
	vph_pwr_vreg: vph_pwr_vreg {
		compatible = "regulator-fixed";
		regulator-name = "vph_pwr";
		status = "disabled";
		regulator-always-on;
	};
};