<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">On 2018-06-21 00:35, Rob Herring wrote:
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">On Tue, Jun 19, 2018 at 04:43:38PM +0530, Kiran Gunda wrote:
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">Update the bindings with the new properties used for<br /> PMI8998.<br /> <br /> Signed-off-by: Kiran Gunda <<a href="mailto:kgunda@codeaurora.org">kgunda@codeaurora.org</a>><br /> ---<br /> .../bindings/leds/backlight/qcom-wled.txt | 84 ++++++++++++++++++++--<br /> 1 file changed, 77 insertions(+), 7 deletions(-)<br /> <br /> diff --git a/Documentation/devicetree/bindings/leds/backlight/qcom-wled.txt b/Documentation/devicetree/bindings/leds/backlight/qcom-wled.txt<br /> index 14f28f2..503ce87 100644<br /> --- a/Documentation/devicetree/bindings/leds/backlight/qcom-wled.txt<br /> +++ b/Documentation/devicetree/bindings/leds/backlight/qcom-wled.txt<br /> @@ -48,11 +48,15 @@ platforms. The PMIC is connected to the host processor via SPMI bus.<br /> - qcom,current-limit<br /> Usage: optional<br /> Value type: <u32><br /> - Definition: mA; per-string current limit<br /> - value: For pm8941: from 0 to 25 with 5 mA step<br /> - Default 20 mA.<br /> - For pmi8998: from 0 to 30 with 5 mA step<br /> - Default 25 mA.<br /> + Definition: mA; per-string current limit; value from 0 to 25 with<br /> + 1 mA step. Default 20 mA.<br /> + This property is supported only for pm8941.<br /> +<br /> +- qcom,current-limit-microamp<br /> + Usage: optional<br /> + Value type: <u32><br /> + Definition: uA; per-string current limit; value from 0 to 30000 with<br /> + 2500 uA step. Default 25000 uA.</blockquote>
<br /> This doesn't really seem worth adding just to add '-microamp'.<br />Thanks for reviewing it!. I added this because the step value for PM8941(WLED3) and PMI8998(WLED4)</blockquote>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">are different. for WLED3 the step is 5mA and for WLED4 the step is 2.5mA. To mantain</blockquote>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">the backward compatibility i have added the new property with out modifying the existing</blockquote>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">one (qcom,current-limit).<br /> <br />
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0"> - qcom,current-boost-limit<br /> Usage: optional<br /> @@ -79,12 +83,61 @@ platforms. The PMIC is connected to the host processor via SPMI bus.<br /> 27, 29, 32, 35. default: 29V<br /> This property is supported only for PM8941.<br /> <br /> +- qcom,ovp-millivolt</blockquote>
<br /> Is this the same as qcom,ovp? If so, same comment.</blockquote>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">Yes. It is same. WLED3 has the OVP values <span>27V, 29V, 32V, 35V, where as</span></blockquote>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">WELD4 has <span>18.1V, 19.6V, 29.6V, 31.1V.</span><br /> <br />
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">+ Usage: optional<br /> + Value type: <u32><br /> + Definition: mV; Over-voltage protection limit;<br /> + For pmi8998: one of 18100, 19600, 29600, 31100<br /> + Default: 29600 mV<br /> + If this property is not specified for PM8941, it<br /> + falls back to "qcom,ovp" property.<br /> +<br /> - qcom,num-strings<br /> Usage: optional<br /> Value type: <u32><br /> Definition: #; number of led strings attached;<br /> - value from 1 to 3. default: 2<br /> - This property is supported only for PM8941.<br /> + value: For PM8941 from 1 to 3. default: 2<br /> + For PMI8998 from 1 to 4. default: 4<br /> +<br /> +- interrupts<br /> + Usage: optional<br /> + Value type: <prop encoded array><br /> + Definition: Interrupts associated with WLED. This should be<br /> + "short" and "ovp" interrupts. Interrupts can be<br /> + specified as per the encoding listed under<br /> + Documentation/devicetree/bindings/spmi/<br /> + qcom,spmi-pmic-arb.txt.<br /> +<br /> +- interrupt-names<br /> + Usage: optional<br /> + Value type: <string><br /> + Definition: Interrupt names associated with the interrupts.<br /> + Must be "short" and "ovp". The short circuit detection<br /> + is not supported for PM8941.<br /> +<br /> +- qcom,enabled-strings<br /> + Usage: optional<br /> + Value tyoe: <u32 array><br /> + Definition: Array of the WLED strings numbered from 0 to 3. Each<br /> + string of leds are operated individually. Specify the<br /> + list of strings used by the device. Any combination of<br /> + led strings can be used.<br /> + for pm8941: Default values are [00 01].<br /> + for pmi8998: Default values are [00 01 02 03].</blockquote>
<br /> u32 or u8 because dts syntax for 8-bit array is [].</blockquote>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">It is u32. I will correct dts syntax in next series as <0x00 0x01 0x02 0x03>,</blockquote>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">which is mentioned in the example.</blockquote>
<br />+<br /> +- qcom,external-pfet<br /> + Usage: optional<br /> + Value type: <bool><br /> + Definition: Specify if external PFET control for short circuit<br /> + protection is used. This property is supported only<br /> + for PMI8998.<br /> +<br /> +- qcom,auto-string-detection<br /> + Usage: optional<br /> + Value type: <bool><br /> + Definition: Enables auto-detection of the WLED string configuration.<br /> + This feature is not supported for PM8941.<br /> +<br /> <br /> Example:<br /> <br /> @@ -99,4 +152,21 @@ <a href="mailto:pm8941-wled@d800">pm8941-wled@d800</a> {<br /> qcom,switching-freq = <1600>;<br /> qcom,ovp = <29>;<br /> qcom,num-strings = <2>;<br /> + qcom,enabled-strings = <0x00 0x01>;<br /> +};<br /> +<br /> <a href="mailto:+pmi8998-wled@d800">+pmi8998-wled@d800</a> {<br /> led-controller {<br /> <br /> And needs a unit-address.</div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">Ok. Will modify as per your suggestion in the next series.<br /> <br />+ compatible = "qcom,pmi8998-wled";<br /> + reg = <0xd800 0xd900>;<br /> + label = "backlight";<br /> +<br /> + interrupts = <3 0xd8 2 IRQ_TYPE_EDGE_RISING>,<br /> + <3 0xd8 1 IRQ_TYPE_EDGE_RISING>;<br /> + interrupt-names = "short", "ovp";<br /> + qcom,current-limit-microamp = <25000>;<br /> + qcom,current-boost-limit = <805>;<br /> + qcom,switching-freq = <1600>;<br /> + qcom,ovp-millivolt = <29600>;<br /> + qcom,num-strings = <4>;<br /> + qcom,enabled-strings = <0x00 0x01 0x02 0x03>;<br /> };<br /> --<br /> The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,<br /> a Linux Foundation Collaborative Project<br /> </div>
</body></html>