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

Commit 3b9867c1 authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "pwm: qti-lpg: Specify LPG channel numbers with a property"

parents a657d754 f47a815f
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -11,9 +11,7 @@ device module in Qualcomm Technologies, Inc. PMIC chips.
- reg:
	Usage: required
	Value type: <prop-encoded-array>
	Definition: Register base and length for LPG and LUT modules. LPG size
		      or length available per channel varies depending on the
		      number of channels in PMIC.
	Definition: Register base for LPG and LUT modules.

- reg-names:
	Usage: required
@@ -30,6 +28,11 @@ device module in Qualcomm Technologies, Inc. PMIC chips.
		      the PWM channel ID indexed from 0, and the second
		      cell is the PWM default period in nanoseconds.

- qcom,num-lpg-channels:
	Usage: required
	Value type: <u32>
	Definition: The number of the consecutive LPG/PWM channels in the chip.

- qcom,lut-patterns:
	Usage: optional
	Value type: <prop-encoded-array>
@@ -122,6 +125,7 @@ Example:
		compatible = "qcom,pwm-lpg";
		reg = <0xb100 0x600>, <0xb000 0x100>;
		reg-names = "lpg-base", "lut-base";
		qcom,num-lpg-channels = <6>;
		#pwm-cells = <2>;
		qcom,lut-patterns = <0 14 28 42 56 70 84 100
					100 84 70 56 42 28 14 0>;
+1 −0
Original line number Diff line number Diff line
@@ -331,6 +331,7 @@
			reg = <0xb100 0x300>, <0xb000 0x100>;
			reg-names = "lpg-base", "lut-base";
			#pwm-cells = <2>;
			qcom,num-lpg-channels = <3>;
			qcom,lut-patterns = <0 10 20 30 40 50 60 70 80 90 100
						90 80 70 60 50 40 30 20 10 0>;
			lpg1 {
+1 −0
Original line number Diff line number Diff line
@@ -459,6 +459,7 @@
			reg = <0xb100 0x200>;
			reg-names = "lpg-base";
			#pwm-cells = <2>;
			qcom,num-lpg-channels = <2>;
		};

		pm8150b_hr_led: qcom,leds@d000 {
+1 −0
Original line number Diff line number Diff line
@@ -326,6 +326,7 @@
			reg = <0xb100 0x300>, <0xb000 0x100>;
			reg-names = "lpg-base", "lut-base";
			#pwm-cells = <2>;
			qcom,num-lpg-channels = <3>;
			qcom,lut-patterns = <0 10 20 30 40 50 60 70 80 90 100
						90 80 70 60 50 40 30 20 10 0>;
			lpg1 {
+1 −0
Original line number Diff line number Diff line
@@ -291,6 +291,7 @@
			reg = <0xb300 0x500>;
			reg-names = "lpg-base";
			#pwm-cells = <2>;
			qcom,num-lpg-channels = <5>;
			nvmem-names = "ppg_sdam";
			nvmem = <&pmi632_sdam7>;
			qcom,pbs-client = <&pmi632_pbs_client3>;
Loading