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

Commit 0c5f4f4e authored by David Collins's avatar David Collins Committed by Stephen Boyd
Browse files

ARM: dts: msm: add PMIC PWM devices for PMA8084



Add device tree nodes to support the PWM/LPG devices found in
PMA8084 PMIC chips.

Also disable PMA8084 PWM devices for MSM8974Pro-AC targets which
utilize PM8941 chips so that the there are no duplicate PWM
channel ID values.

Change-Id: I7496277f3ee43cb723e75b8e898e7898cc1077ec
Signed-off-by: default avatarDavid Collins <collinsd@codeaurora.org>
parent 22f0e18d
Loading
Loading
Loading
Loading
+48 −0
Original line number Diff line number Diff line
@@ -837,5 +837,53 @@
				status = "disabled";
			};
		};

		pma8084_lpg1: pwm@b100 {
			compatible = "qcom,qpnp-pwm";
			reg = <0xb100 0x100>,
			      <0xb042 0x7e>;
			reg-names = "qpnp-lpg-channel-base", "qpnp-lpg-lut-base";
			qcom,channel-id = <0>;
		};

		pma8084_lpg2: pwm@b200 {
			compatible = "qcom,qpnp-pwm";
			reg = <0xb200 0x100>,
			      <0xb042 0x7e>;
			reg-names = "qpnp-lpg-channel-base", "qpnp-lpg-lut-base";
			qcom,channel-id = <1>;
		};

		pma8084_lpg3: pwm@b300 {
			compatible = "qcom,qpnp-pwm";
			reg = <0xb300 0x100>,
			      <0xb042 0x7e>;
			reg-names = "qpnp-lpg-channel-base", "qpnp-lpg-lut-base";
			qcom,channel-id = <2>;
		};

		pma8084_lpg4: pwm@b400 {
			compatible = "qcom,qpnp-pwm";
			reg = <0xb400 0x100>,
			      <0xb042 0x7e>;
			reg-names = "qpnp-lpg-channel-base", "qpnp-lpg-lut-base";
			qcom,channel-id = <3>;
		};

		pma8084_lpg5: pwm@b500 {
			compatible = "qcom,qpnp-pwm";
			reg = <0xb500 0x100>,
			      <0xb042 0x7e>;
			reg-names = "qpnp-lpg-channel-base", "qpnp-lpg-lut-base";
			qcom,channel-id = <4>;
		};

		pma8084_lpg6: pwm@b600 {
			compatible = "qcom,qpnp-pwm";
			reg = <0xb600 0x100>,
			      <0xb042 0x7e>;
			reg-names = "qpnp-lpg-channel-base", "qpnp-lpg-lut-base";
			qcom,channel-id = <5>;
		};
	};
};
+28 −0
Original line number Diff line number Diff line
@@ -250,3 +250,31 @@
					"low-thr-en-set";
	};
};

/*
 * Disable PMA8084 PWM/LPG devices in order to avoid a channel-id collision
 * with PM8941 PWM/LPG devices.
 */
&pma8084_lpg1 {
	status = "disabled";
};

&pma8084_lpg2 {
	status = "disabled";
};

&pma8084_lpg3 {
	status = "disabled";
};

&pma8084_lpg4 {
	status = "disabled";
};

&pma8084_lpg5 {
	status = "disabled";
};

&pma8084_lpg6 {
	status = "disabled";
};