From cda98b947cf4a77c88dba98646c92610b6d47b8a Mon Sep 17 00:00:00 2001 From: Subbaraman Narayanamurthy Date: Tue, 21 Jun 2016 20:06:07 -0700 Subject: [PATCH] ARM: dts: msm: add FG GEN3 device on pmicobalt FG GEN3 peripheral is present on pmicobalt and it provides the battery parameters like current, voltage, resistance and temperature for the clients that depend on them. Add FG GEN3 device on pmicobalt to support that. Change-Id: I7ebb6a50564abc8e607f688d59690c55c10e2dc9 Signed-off-by: Subbaraman Narayanamurthy --- arch/arm/boot/dts/qcom/msm-pmicobalt.dtsi | 35 +++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/arch/arm/boot/dts/qcom/msm-pmicobalt.dtsi b/arch/arm/boot/dts/qcom/msm-pmicobalt.dtsi index fad834199be5..47ba50ab8270 100644 --- a/arch/arm/boot/dts/qcom/msm-pmicobalt.dtsi +++ b/arch/arm/boot/dts/qcom/msm-pmicobalt.dtsi @@ -339,6 +339,41 @@ channel = <0xc>; }; }; + + pmicobalt_fg: qpnp,fg { + compatible = "qcom,fg-gen3"; + #address-cells = <1>; + #size-cells = <1>; + qcom,pmic-revid = <&pmicobalt_revid>; + io-channels = <&pmicobalt_rradc 0>; + io-channel-names = "rradc_batt_id"; + status = "okay"; + + qcom,fg-batt-soc@4000 { + status = "okay"; + reg = <0x4000 0x100>; + interrupts = <0x2 0x40 0x0 IRQ_TYPE_EDGE_BOTH>, + <0x2 0x40 0x1 IRQ_TYPE_EDGE_BOTH>, + <0x2 0x40 0x2 IRQ_TYPE_EDGE_BOTH>, + <0x2 0x40 0x3 IRQ_TYPE_EDGE_BOTH>; + interrupt-names = "soc-update", + "soc-ready", + "bsoc-delta", + "msoc-delta"; + }; + + qcom,fg-batt-info@4100 { + status = "okay"; + reg = <0x4100 0x100>; + interrupts = <0x2 0x41 0x3 IRQ_TYPE_EDGE_BOTH>; + interrupt-names = "batt-missing"; + }; + + qcom,fg-memif@4400 { + status = "okay"; + reg = <0x4400 0x100>; + }; + }; }; qcom,pmicobalt@3 {