From 78f7bcedf8ba70027e0f9f94ec420998a273a95c Mon Sep 17 00:00:00 2001 From: Rhyland Klein Date: Tue, 12 Mar 2013 18:08:08 -0400 Subject: power_supply: Add OF bindings documentation for tps65090-charger This change adds the binding documentation for the tps65090-charger. Signed-off-by: Rhyland Klein Signed-off-by: Anton Vorontsov --- .../devicetree/bindings/power_supply/tps65090.txt | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Documentation/devicetree/bindings/power_supply/tps65090.txt (limited to 'Documentation') diff --git a/Documentation/devicetree/bindings/power_supply/tps65090.txt b/Documentation/devicetree/bindings/power_supply/tps65090.txt new file mode 100644 index 000000000000..56370c724e35 --- /dev/null +++ b/Documentation/devicetree/bindings/power_supply/tps65090.txt @@ -0,0 +1,23 @@ +TPS65090 Frontend PMU with Switchmode Charger + +Required Properties: +-compatible: "ti,tps65090" +-reg: I2C slave address +-interrupts: the interrupt output to which this device connects + +Optional Properties: +-ti,enable-low-current-chrg: Enables charging when a low current is detected + while the default logic is to stop charging. + +Example: + + tps65090@48 { + compatible = "ti,tps65090"; + reg = <0x48>; + interrupts = <0 88 0x4>; + + ti,enable-low-current-chrg; + + regulators { + ... + }; -- cgit v1.2.1 From 6b24c9cb7d57a41f2ff193bcfcc2e1976bb4bbac Mon Sep 17 00:00:00 2001 From: Rhyland Klein Date: Thu, 21 Mar 2013 16:33:04 -0400 Subject: tps65090: Update bindings for subnode This updates the DT documentation to reflect that the tps65090-charger should be represented as a child node of the tps65090 device itself. Signed-off-by: Rhyland Klein Signed-off-by: Anton Vorontsov --- .../devicetree/bindings/power_supply/tps65090.txt | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) (limited to 'Documentation') diff --git a/Documentation/devicetree/bindings/power_supply/tps65090.txt b/Documentation/devicetree/bindings/power_supply/tps65090.txt index 56370c724e35..8e5e0d3910df 100644 --- a/Documentation/devicetree/bindings/power_supply/tps65090.txt +++ b/Documentation/devicetree/bindings/power_supply/tps65090.txt @@ -1,23 +1,17 @@ TPS65090 Frontend PMU with Switchmode Charger Required Properties: --compatible: "ti,tps65090" --reg: I2C slave address --interrupts: the interrupt output to which this device connects +-compatible: "ti,tps65090-charger" Optional Properties: -ti,enable-low-current-chrg: Enables charging when a low current is detected while the default logic is to stop charging. -Example: +This node is a subnode of the tps65090 PMIC. - tps65090@48 { - compatible = "ti,tps65090"; - reg = <0x48>; - interrupts = <0 88 0x4>; +Example: + tps65090-charger { + compatible = "ti,tps65090-charger"; ti,enable-low-current-chrg; - - regulators { - ... - }; + }; -- cgit v1.2.1 From 0bbb06ed564d211d10eae12bdb423fce6178468f Mon Sep 17 00:00:00 2001 From: Hongbo Zhang Date: Wed, 3 Apr 2013 20:18:12 +0800 Subject: hwmon: Add ST-Ericsson ABX500 hwmon driver Each of ST-Ericsson X500 chip set series consists of both ABX500 and DBX500 chips. This is ABX500 hwmon driver, where the abx500.c is a common layer for all ABX500s, and the ab8500.c is specific for AB8500 chip. Under this designed structure, other chip specific files can be added simply using the same common layer abx500.c. Signed-off-by: Hongbo Zhang Reviewed-by: Guenter Roeck Acked-by: Guenter Roeck Signed-off-by: Anton Vorontsov --- Documentation/hwmon/ab8500 | 22 ++++++++++++++++++++++ Documentation/hwmon/abx500 | 28 ++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 Documentation/hwmon/ab8500 create mode 100644 Documentation/hwmon/abx500 (limited to 'Documentation') diff --git a/Documentation/hwmon/ab8500 b/Documentation/hwmon/ab8500 new file mode 100644 index 000000000000..cf169c8ef4e3 --- /dev/null +++ b/Documentation/hwmon/ab8500 @@ -0,0 +1,22 @@ +Kernel driver ab8500 +==================== + +Supported chips: + * ST-Ericsson AB8500 + Prefix: 'ab8500' + Addresses scanned: - + Datasheet: http://www.stericsson.com/developers/documentation.jsp + +Authors: + Martin Persson + Hongbo Zhang + +Description +----------- + +See also Documentation/hwmon/abx500. This is the ST-Ericsson AB8500 specific +driver. + +Currently only the AB8500 internal sensor and one external sensor for battery +temperature are monitored. Other GPADC channels can also be monitored if needed +in future. diff --git a/Documentation/hwmon/abx500 b/Documentation/hwmon/abx500 new file mode 100644 index 000000000000..319a058cec7c --- /dev/null +++ b/Documentation/hwmon/abx500 @@ -0,0 +1,28 @@ +Kernel driver abx500 +==================== + +Supported chips: + * ST-Ericsson ABx500 series + Prefix: 'abx500' + Addresses scanned: - + Datasheet: http://www.stericsson.com/developers/documentation.jsp + +Authors: + Martin Persson + Hongbo Zhang + +Description +----------- + +Every ST-Ericsson Ux500 SOC consists of both ABx500 and DBx500 physically, +this is kernel hwmon driver for ABx500. + +There are some GPADCs inside ABx500 which are designed for connecting to +thermal sensors, and there is also a thermal sensor inside ABx500 too, which +raises interrupt when critical temperature reached. + +This abx500 is a common layer which can monitor all of the sensors, every +specific abx500 chip has its special configurations in its own file, e.g. some +sensors can be configured invisible if they are not available on that chip, and +the corresponding gpadc_addr should be set to 0, thus this sensor won't be +polled. -- cgit v1.2.1 From da1233364d51947d8c84a33e200fcfb177ee9f20 Mon Sep 17 00:00:00 2001 From: Rhyland Klein Date: Mon, 1 Apr 2013 17:45:53 -0400 Subject: power_supply: Define Binding for power-supplies This property is meant to be used in device nodes which represent power_supply devices that wish to provide a list of supplies which provide them power, such as a battery listing its chargers. Signed-off-by: Rhyland Klein Signed-off-by: Anton Vorontsov --- .../bindings/power_supply/power_supply.txt | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Documentation/devicetree/bindings/power_supply/power_supply.txt (limited to 'Documentation') diff --git a/Documentation/devicetree/bindings/power_supply/power_supply.txt b/Documentation/devicetree/bindings/power_supply/power_supply.txt new file mode 100644 index 000000000000..8391bfa0edac --- /dev/null +++ b/Documentation/devicetree/bindings/power_supply/power_supply.txt @@ -0,0 +1,23 @@ +Power Supply Core Support + +Optional Properties: + - power-supplies : This property is added to a supply in order to list the + devices which supply it power, referenced by their phandles. + +Example: + + usb-charger: power@e { + compatible = "some,usb-charger"; + ... + }; + + ac-charger: power@c { + compatible = "some,ac-charger"; + ... + }; + + battery@b { + compatible = "some,battery"; + ... + power-supplies = <&usb-charger>, <&ac-charger>; + }; -- cgit v1.2.1