diff options
author | Rajanikanth H.V <rajanikanth.hv@stericsson.com> | 2012-11-18 21:45:41 -0500 |
---|---|---|
committer | Anton Vorontsov <anton.vorontsov@linaro.org> | 2012-11-18 22:37:04 -0500 |
commit | e0f1abeba5c2d8a2183566717d99294fd1a29c2e (patch) | |
tree | bf4b3582791d3e4baa298f4268cf2bbad8169b74 /arch/arm/boot/dts/dbx5x0.dtsi | |
parent | e9f14c18b83ccf3ab291b83a1d6c640113ecf545 (diff) |
ab8500: Add devicetree support for fuelgauge
- This patch adds device tree support for fuelgauge driver
- optimize bm devices platform_data usage and of_probe(...)
Note: of_probe() routine for battery managed devices is made
common across all bm drivers.
- test status:
- interrupt numbers assigned differs between legacy and FDT mode.
Signed-off-by: Rajanikanth H.V <rajanikanth.hv@stericsson.com>
Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>
Diffstat (limited to 'arch/arm/boot/dts/dbx5x0.dtsi')
-rw-r--r-- | arch/arm/boot/dts/dbx5x0.dtsi | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/arch/arm/boot/dts/dbx5x0.dtsi b/arch/arm/boot/dts/dbx5x0.dtsi index 4b0e0ca08f40..0c81986904c5 100644 --- a/arch/arm/boot/dts/dbx5x0.dtsi +++ b/arch/arm/boot/dts/dbx5x0.dtsi | |||
@@ -352,7 +352,17 @@ | |||
352 | vddadc-supply = <&ab8500_ldo_tvout_reg>; | 352 | vddadc-supply = <&ab8500_ldo_tvout_reg>; |
353 | }; | 353 | }; |
354 | 354 | ||
355 | ab8500-usb { | 355 | ab8500_battery: ab8500_battery { |
356 | stericsson,battery-type = "LIPO"; | ||
357 | thermistor-on-batctrl; | ||
358 | }; | ||
359 | |||
360 | ab8500_fg { | ||
361 | compatible = "stericsson,ab8500-fg"; | ||
362 | battery = <&ab8500_battery>; | ||
363 | }; | ||
364 | |||
365 | ab8500_usb { | ||
356 | compatible = "stericsson,ab8500-usb"; | 366 | compatible = "stericsson,ab8500-usb"; |
357 | interrupts = < 90 0x4 | 367 | interrupts = < 90 0x4 |
358 | 96 0x4 | 368 | 96 0x4 |