From 15950989abb01dfedd6882a824e6a1d2338830f7 Mon Sep 17 00:00:00 2001 From: Jishnu Prakash Date: Fri, 4 Sep 2020 19:12:40 +0530 Subject: [PATCH] bindings: smb1398: Update SMB1398 DT bindings Update IIO properties io-channels and io-channel-names, which may be used for SMB1398 to read ADC, SMB5 and CP_SLAVE channels. Change-Id: I52eda2fbd366f8d128011ff0e365e5319d9189d7 --- .../power/supply/qcom/smb1398-charger.txt | 21 ++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/bindings/power/supply/qcom/smb1398-charger.txt b/bindings/power/supply/qcom/smb1398-charger.txt index 5f1588f6a647..869af88da4c5 100644 --- a/bindings/power/supply/qcom/smb1398-charger.txt +++ b/bindings/power/supply/qcom/smb1398-charger.txt @@ -43,16 +43,19 @@ Charger specific properties: required when SMB1396 working as a DIV2 CP master. - io-channels -- io-channel-names Usage: optional - Value type: - Definition: The IIO channel for measuring SMB1398 die temperature, - io-channel-names should be "die-temp". For other details about - IIO bindings see: + Value type: + Definition: IIO channel specifiers for each name in io-channel-names. + For other details about IIO bindings see: Documentation/devicetree/bindings/iio/iio-bindings.txt These properties are required when SMB1396 working as a DIV2 CP master. +- io-channel-names + Usage: optional + Value type: + Definition: Names of the IIO channels that are used by CP master. + - qcom,div2-cp-min-ilim-ua Usage: optional Value type: @@ -86,8 +89,12 @@ smb1398_charger: qcom,combo_charger { interrupt-parent = <&smb1398>; status = "disabled"; - io-channels = <&pm8150b_vadc ADC_AMUX_THM2>; - io-channel-names = "die_temp"; + io-channels = <&smb1396_div2_cp_slave PSY_IIO_CURRENT_CAPABILITY>, + <&pm7250b_charger PSY_IIO_USB_REAL_TYPE>, + <&pm7250b_vadc ADC5_AMUX_THM2>; + io-channel-names = "current_capability", + "real_type", + "die_temp"; interrupts = <0x26 0x1 IRQ_TYPE_EDGE_RISING>, <0x26 0x3 IRQ_TYPE_EDGE_RISING>,