Loading Documentation/devicetree/bindings/mfd/ab8500.txt +6 −0 Original line number Diff line number Diff line Loading @@ -30,6 +30,12 @@ ab8500-fg : : vddadc : Fuel Gauge : LOW_BAT_F : : LOW threshold battery voltage : CC_INT_CALIB : : Coulomb Counter Internal Calibration : CCEOC : : Coulomb Counter End of Conversion ab8500-btemp : : vtvout : Battery Temperature : BAT_CTRL_INDB : : Battery Removal Indicator : BTEMP_LOW : : Btemp < BtempLow, if battery temperature is lower than -10°C : BTEMP_LOW_MEDIUM : : BtempLow < Btemp < BtempMedium,if battery temperature is between -10 and 0°C : BTEMP_MEDIUM_HIGH : : BtempMedium < Btemp < BtempHigh,if battery temperature is between 0°C and“MaxTemp : BTEMP_HIGH : : Btemp > BtempHigh, if battery temperature is higher than “MaxTemp ab8500-gpadc : HW_CONV_END : vddadc : Analogue to Digital Converter SW_CONV_END : : ab8500-gpio : : : GPIO Controller Loading Documentation/devicetree/bindings/power_supply/ab8500/btemp.txt 0 → 100644 +16 −0 Original line number Diff line number Diff line === AB8500 Battery Temperature Monitor Driver === The properties below describes the node for btemp driver. Required Properties: - compatible = Shall be: "stericsson,ab8500-btemp" - battery = Shall be battery specific information Example: ab8500_btemp { compatible = "stericsson,ab8500-btemp"; battery = <&ab8500_battery>; }; For information on battery specific node, Ref: Documentation/devicetree/bindings/power_supply/ab8500/fg.txt arch/arm/boot/dts/dbx5x0.dtsi +5 −0 Original line number Diff line number Diff line Loading @@ -362,6 +362,11 @@ battery = <&ab8500_battery>; }; ab8500_btemp { compatible = "stericsson,ab8500-btemp"; battery = <&ab8500_battery>; }; ab8500_usb { compatible = "stericsson,ab8500-usb"; interrupts = < 90 0x4 Loading drivers/mfd/ab8500-core.c +5 −0 Original line number Diff line number Diff line Loading @@ -1046,8 +1046,13 @@ static struct mfd_cell __devinitdata ab8500_bm_devs[] = { }, { .name = "ab8500-btemp", .of_compatible = "stericsson,ab8500-btemp", .num_resources = ARRAY_SIZE(ab8500_btemp_resources), .resources = ab8500_btemp_resources, #ifndef CONFIG_OF .platform_data = &ab8500_bm_data, .pdata_size = sizeof(ab8500_bm_data), #endif }, { .name = "ab8500-fg", Loading drivers/power/Kconfig +0 −6 Original line number Diff line number Diff line Loading @@ -346,12 +346,6 @@ config AB8500_BM help Say Y to include support for AB8500 battery management. config AB8500_BATTERY_THERM_ON_BATCTRL bool "Thermistor connected on BATCTRL ADC" depends on AB8500_BM help Say Y to enable battery temperature measurements using thermistor connected on BATCTRL ADC. endif # POWER_SUPPLY source "drivers/power/avs/Kconfig" Loading
Documentation/devicetree/bindings/mfd/ab8500.txt +6 −0 Original line number Diff line number Diff line Loading @@ -30,6 +30,12 @@ ab8500-fg : : vddadc : Fuel Gauge : LOW_BAT_F : : LOW threshold battery voltage : CC_INT_CALIB : : Coulomb Counter Internal Calibration : CCEOC : : Coulomb Counter End of Conversion ab8500-btemp : : vtvout : Battery Temperature : BAT_CTRL_INDB : : Battery Removal Indicator : BTEMP_LOW : : Btemp < BtempLow, if battery temperature is lower than -10°C : BTEMP_LOW_MEDIUM : : BtempLow < Btemp < BtempMedium,if battery temperature is between -10 and 0°C : BTEMP_MEDIUM_HIGH : : BtempMedium < Btemp < BtempHigh,if battery temperature is between 0°C and“MaxTemp : BTEMP_HIGH : : Btemp > BtempHigh, if battery temperature is higher than “MaxTemp ab8500-gpadc : HW_CONV_END : vddadc : Analogue to Digital Converter SW_CONV_END : : ab8500-gpio : : : GPIO Controller Loading
Documentation/devicetree/bindings/power_supply/ab8500/btemp.txt 0 → 100644 +16 −0 Original line number Diff line number Diff line === AB8500 Battery Temperature Monitor Driver === The properties below describes the node for btemp driver. Required Properties: - compatible = Shall be: "stericsson,ab8500-btemp" - battery = Shall be battery specific information Example: ab8500_btemp { compatible = "stericsson,ab8500-btemp"; battery = <&ab8500_battery>; }; For information on battery specific node, Ref: Documentation/devicetree/bindings/power_supply/ab8500/fg.txt
arch/arm/boot/dts/dbx5x0.dtsi +5 −0 Original line number Diff line number Diff line Loading @@ -362,6 +362,11 @@ battery = <&ab8500_battery>; }; ab8500_btemp { compatible = "stericsson,ab8500-btemp"; battery = <&ab8500_battery>; }; ab8500_usb { compatible = "stericsson,ab8500-usb"; interrupts = < 90 0x4 Loading
drivers/mfd/ab8500-core.c +5 −0 Original line number Diff line number Diff line Loading @@ -1046,8 +1046,13 @@ static struct mfd_cell __devinitdata ab8500_bm_devs[] = { }, { .name = "ab8500-btemp", .of_compatible = "stericsson,ab8500-btemp", .num_resources = ARRAY_SIZE(ab8500_btemp_resources), .resources = ab8500_btemp_resources, #ifndef CONFIG_OF .platform_data = &ab8500_bm_data, .pdata_size = sizeof(ab8500_bm_data), #endif }, { .name = "ab8500-fg", Loading
drivers/power/Kconfig +0 −6 Original line number Diff line number Diff line Loading @@ -346,12 +346,6 @@ config AB8500_BM help Say Y to include support for AB8500 battery management. config AB8500_BATTERY_THERM_ON_BATCTRL bool "Thermistor connected on BATCTRL ADC" depends on AB8500_BM help Say Y to enable battery temperature measurements using thermistor connected on BATCTRL ADC. endif # POWER_SUPPLY source "drivers/power/avs/Kconfig"