[PATCH v3 1/2] dt-bindings: power: supply: qcom,pmi8998-charger: add SMB5 PMICs
Robin Snyders via B4 Relay <[email protected]>
| Newsgroups | org.kernel.vger.linux-arm-msm,org.kernel.feeds.b4-sent,org.kernel.vger.linux-devicetree,org.kernel.vger.linux-kernel,org.kernel.vger.linux-pm |
|---|---|
| Message-ID | <[email protected]> |
From: Casey Connolly <[email protected]> Add compatible strings for PM7250B and PM8150B, which contain the SMB5 generation of the Qualcomm switch-mode battery charger. PM7250B uses the same charger interface and parameters as PM8150B, so require the PM8150B compatible as its fallback. Clarify the IIO channel descriptions because SMB5 exposes a USB current- sense voltage while SMB2 exposes an already-converted current. Signed-off-by: Casey Connolly <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Robin Snyders <[email protected]> --- .../bindings/power/supply/qcom,pmi8998-charger.yaml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/Documentation/devicetree/bindings/power/supply/qcom,pmi8998-charger.yaml b/Documentation/devicetree/bindings/power/supply/qcom,pmi8998-charger.yaml index 70f5cd6eaeab..25511e2e3369 100644 --- a/Documentation/devicetree/bindings/power/supply/qcom,pmi8998-charger.yaml +++ b/Documentation/devicetree/bindings/power/supply/qcom,pmi8998-charger.yaml @@ -4,16 +4,21 @@ $id: http://devicetree.org/schemas/power/supply/qcom,pmi8998-charger.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# -title: Qualcomm PMI8998/PM660 Switch-Mode Battery Charger "2" +title: Qualcomm SMB2 and SMB5 Switch-Mode Battery Charger maintainers: - Casey Connolly <[email protected]> properties: compatible: - enum: - - qcom,pmi8998-charger - - qcom,pm660-charger + oneOf: + - enum: + - qcom,pmi8998-charger + - qcom,pm660-charger + - qcom,pm8150b-charger + - items: + - const: qcom,pm7250b-charger + - const: qcom,pm8150b-charger reg: maxItems: 1 @@ -30,8 +35,8 @@ properties: io-channels: items: - - description: USB in current in uA - - description: USB in voltage in uV + - description: USB input current or current-sense voltage measurement + - description: USB input voltage measurement io-channel-names: items: -- 2.54.0