Loading Documentation/devicetree/bindings/power/supply/qcom/smb1390-charger-psy.txt 0 → 100644 +76 −0 Original line number Diff line number Diff line Qualcomm Technologies, Inc. SMB1390 Charger Specific Bindings SMB1390 charge pump is paired with QTI family of standalone chargers to enable a high current, high efficiency Li+ battery charging system. ======================= Required Node Structure ======================= SMB1390 Charger must be described in two levels of device nodes. ================================== First Level Node - SMB1390 Charger ================================== Charger specific properties: - compatible Usage: required Value type: <string> Definition: "qcom,smb1390-charger-psy". - qcom,pmic-revid Usage: required Value type: phandle Definition: Should specify the phandle of SMB's revid module. This is used to identify the SMB subtype. - io-channels - io-channel-names Usage: required Value type: <phandle> Definition: For details about IIO bindings see: Documentation/devicetree/bindings/iio/iio-bindings.txt ================================================ Second Level Nodes - SMB1390 Charger Peripherals ================================================ Peripheral specific properties: - interrupts Usage: required Value type: <prop-encoded-array> Definition: Peripheral interrupt specifier. - interrupt-names Usage: required Value type: <stringlist> Definition: Interrupt names. This list must match up 1-to-1 with the interrupts specified in the 'interrupts' property. ======= Example ======= smb1390_charger: qcom,charge_pump { compatible = "qcom,smb1390-charger-psy"; qcom,pmic-revid = <&smb1390_revid>; interrupt-parent = <&smb1390>; status = "disabled"; io-channels = <&pm8150b_vadc ADC_AMUX_THM2>; io-channel-names = "cp_die_temp"; qcom,core { interrupts = <0x10 0x0 IRQ_TYPE_EDGE_RISING>, <0x10 0x1 IRQ_TYPE_EDGE_RISING>, <0x10 0x2 IRQ_TYPE_EDGE_RISING>, <0x10 0x3 IRQ_TYPE_EDGE_RISING>, <0x10 0x4 IRQ_TYPE_EDGE_RISING>; interrupt-names = "switcher-off-window", "switcher-off-fault", "vph-ov-soft", "ilim", "temp-alarm"; }; }; arch/arm64/boot/dts/qcom/sm6150-idp.dtsi +2 −0 Original line number Diff line number Diff line Loading @@ -215,6 +215,8 @@ }; &smb1390_charger { /delete-property/ compatible; compatible = "qcom,smb1390-charger-psy"; io-channels = <&pm6150_vadc ADC_AMUX_THM3>; io-channel-names = "cp_die_temp"; status = "ok"; Loading arch/arm64/boot/dts/qcom/sm6150-qrd.dtsi +2 −0 Original line number Diff line number Diff line Loading @@ -135,6 +135,8 @@ }; &smb1390_charger { /delete-property/ compatible; compatible = "qcom,smb1390-charger-psy"; io-channels = <&pm6150_vadc ADC_AMUX_THM3>; io-channel-names = "cp_die_temp"; status = "ok"; Loading arch/arm64/configs/vendor/sdmsteppe-perf_defconfig +1 −1 Original line number Diff line number Diff line Loading @@ -355,7 +355,7 @@ CONFIG_POWER_RESET_SYSCON=y CONFIG_QPNP_QG=y CONFIG_SMB1355_SLAVE_CHARGER=y CONFIG_QPNP_SMB5=y CONFIG_SMB1390_CHARGE_PUMP=y CONFIG_SMB1390_CHARGE_PUMP_PSY=y CONFIG_THERMAL=y CONFIG_THERMAL_WRITABLE_TRIPS=y CONFIG_THERMAL_GOV_USER_SPACE=y Loading arch/arm64/configs/vendor/sdmsteppe_defconfig +1 −1 Original line number Diff line number Diff line Loading @@ -368,7 +368,7 @@ CONFIG_POWER_RESET_SYSCON=y CONFIG_QPNP_QG=y CONFIG_SMB1355_SLAVE_CHARGER=y CONFIG_QPNP_SMB5=y CONFIG_SMB1390_CHARGE_PUMP=y CONFIG_SMB1390_CHARGE_PUMP_PSY=y CONFIG_THERMAL=y CONFIG_THERMAL_WRITABLE_TRIPS=y CONFIG_THERMAL_GOV_USER_SPACE=y Loading Loading
Documentation/devicetree/bindings/power/supply/qcom/smb1390-charger-psy.txt 0 → 100644 +76 −0 Original line number Diff line number Diff line Qualcomm Technologies, Inc. SMB1390 Charger Specific Bindings SMB1390 charge pump is paired with QTI family of standalone chargers to enable a high current, high efficiency Li+ battery charging system. ======================= Required Node Structure ======================= SMB1390 Charger must be described in two levels of device nodes. ================================== First Level Node - SMB1390 Charger ================================== Charger specific properties: - compatible Usage: required Value type: <string> Definition: "qcom,smb1390-charger-psy". - qcom,pmic-revid Usage: required Value type: phandle Definition: Should specify the phandle of SMB's revid module. This is used to identify the SMB subtype. - io-channels - io-channel-names Usage: required Value type: <phandle> Definition: For details about IIO bindings see: Documentation/devicetree/bindings/iio/iio-bindings.txt ================================================ Second Level Nodes - SMB1390 Charger Peripherals ================================================ Peripheral specific properties: - interrupts Usage: required Value type: <prop-encoded-array> Definition: Peripheral interrupt specifier. - interrupt-names Usage: required Value type: <stringlist> Definition: Interrupt names. This list must match up 1-to-1 with the interrupts specified in the 'interrupts' property. ======= Example ======= smb1390_charger: qcom,charge_pump { compatible = "qcom,smb1390-charger-psy"; qcom,pmic-revid = <&smb1390_revid>; interrupt-parent = <&smb1390>; status = "disabled"; io-channels = <&pm8150b_vadc ADC_AMUX_THM2>; io-channel-names = "cp_die_temp"; qcom,core { interrupts = <0x10 0x0 IRQ_TYPE_EDGE_RISING>, <0x10 0x1 IRQ_TYPE_EDGE_RISING>, <0x10 0x2 IRQ_TYPE_EDGE_RISING>, <0x10 0x3 IRQ_TYPE_EDGE_RISING>, <0x10 0x4 IRQ_TYPE_EDGE_RISING>; interrupt-names = "switcher-off-window", "switcher-off-fault", "vph-ov-soft", "ilim", "temp-alarm"; }; };
arch/arm64/boot/dts/qcom/sm6150-idp.dtsi +2 −0 Original line number Diff line number Diff line Loading @@ -215,6 +215,8 @@ }; &smb1390_charger { /delete-property/ compatible; compatible = "qcom,smb1390-charger-psy"; io-channels = <&pm6150_vadc ADC_AMUX_THM3>; io-channel-names = "cp_die_temp"; status = "ok"; Loading
arch/arm64/boot/dts/qcom/sm6150-qrd.dtsi +2 −0 Original line number Diff line number Diff line Loading @@ -135,6 +135,8 @@ }; &smb1390_charger { /delete-property/ compatible; compatible = "qcom,smb1390-charger-psy"; io-channels = <&pm6150_vadc ADC_AMUX_THM3>; io-channel-names = "cp_die_temp"; status = "ok"; Loading
arch/arm64/configs/vendor/sdmsteppe-perf_defconfig +1 −1 Original line number Diff line number Diff line Loading @@ -355,7 +355,7 @@ CONFIG_POWER_RESET_SYSCON=y CONFIG_QPNP_QG=y CONFIG_SMB1355_SLAVE_CHARGER=y CONFIG_QPNP_SMB5=y CONFIG_SMB1390_CHARGE_PUMP=y CONFIG_SMB1390_CHARGE_PUMP_PSY=y CONFIG_THERMAL=y CONFIG_THERMAL_WRITABLE_TRIPS=y CONFIG_THERMAL_GOV_USER_SPACE=y Loading
arch/arm64/configs/vendor/sdmsteppe_defconfig +1 −1 Original line number Diff line number Diff line Loading @@ -368,7 +368,7 @@ CONFIG_POWER_RESET_SYSCON=y CONFIG_QPNP_QG=y CONFIG_SMB1355_SLAVE_CHARGER=y CONFIG_QPNP_SMB5=y CONFIG_SMB1390_CHARGE_PUMP=y CONFIG_SMB1390_CHARGE_PUMP_PSY=y CONFIG_THERMAL=y CONFIG_THERMAL_WRITABLE_TRIPS=y CONFIG_THERMAL_GOV_USER_SPACE=y Loading