diff mbox series

[RFC,5/6] power: supply: Ettus Research E31x battery driver

Message ID 20190212010143.3729-6-virendra.kakade@ni.com
State Changes Requested, archived
Headers show
Series Add support for Ettus Research E31x devices PMU | expand

Checks

Context Check Description
robh/checkpatch success

Commit Message

Virendra Kakade Feb. 12, 2019, 1:01 a.m. UTC
Document bindings for the E31x devices battery.

Signed-off-by: Virendra Kakade <virendra.kakade@ni.com>
---
 Documentation/devicetree/bindings/mfd/e31x-pmu.txt |  8 +++++++-
 .../bindings/power/supply/e31x-battery.txt         | 14 ++++++++++++++
 2 files changed, 21 insertions(+), 1 deletion(-)
 create mode 100644 Documentation/devicetree/bindings/power/supply/e31x-battery.txt

Comments

Lee Jones Feb. 14, 2019, 9:39 a.m. UTC | #1
On Mon, 11 Feb 2019, Virendra Kakade wrote:

> Document bindings for the E31x devices battery.
> 
> Signed-off-by: Virendra Kakade <virendra.kakade@ni.com>
> ---
>  Documentation/devicetree/bindings/mfd/e31x-pmu.txt |  8 +++++++-
>  .../bindings/power/supply/e31x-battery.txt         | 14 ++++++++++++++
>  2 files changed, 21 insertions(+), 1 deletion(-)
>  create mode 100644 Documentation/devicetree/bindings/power/supply/e31x-battery.txt
> 
> diff --git a/Documentation/devicetree/bindings/mfd/e31x-pmu.txt b/Documentation/devicetree/bindings/mfd/e31x-pmu.txt
> index 3798886578ba..223ab9e0d680 100644
> --- a/Documentation/devicetree/bindings/mfd/e31x-pmu.txt
> +++ b/Documentation/devicetree/bindings/mfd/e31x-pmu.txt
> @@ -4,11 +4,14 @@ Required properties:
>  - compatible : Must be "ni,e31x-pmu"
>  - regmap     : Must be <&regmapnode>
>  
> -e31x-pmu has a sub-device called e31x-charger.
> +e31x-pmu consists of two sub-devices, e31x-charger and e31x-battery.
>  
>  For the e31x-charger properties please refer to:
>  Documentation/device-tree/bindings/power/supply/e31x-charger.txt
>  
> +For the e31x-battery properties please refer to:
> +Documentation/device-tree/bindings/power/supply/e31x-battery.txt

Same comment as I provided in the Charger patch.

>  Example:
>  
>  pmu {
> @@ -18,5 +21,8 @@ pmu {
>  	charger: charger@0{
>  		compatible = "ni,e31x-charger";
>  	};
> +	battery: battery@1{
> +		compatible = "ni,e31x-battery";
> +	};
>  };

Still seems kinda simple.

> diff --git a/Documentation/devicetree/bindings/power/supply/e31x-battery.txt b/Documentation/devicetree/bindings/power/supply/e31x-battery.txt
> new file mode 100644
> index 000000000000..e09cd92ef82e
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/power/supply/e31x-battery.txt
> @@ -0,0 +1,14 @@
> +Ettus Research/National Instruments E31x Devices Battery
> +
> +Some variants of the E31x devices have an in-built Li-ion
> +battery. This driver provides capability to monitor
> +the battery.
> +
> +Required properties:
> +- compatible: Must be "ni,e31x-battery"
> +
> +Example:
> +
> +battery: battery@0{
> +	compatible = "ni,e31x-battery";
> +};
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/mfd/e31x-pmu.txt b/Documentation/devicetree/bindings/mfd/e31x-pmu.txt
index 3798886578ba..223ab9e0d680 100644
--- a/Documentation/devicetree/bindings/mfd/e31x-pmu.txt
+++ b/Documentation/devicetree/bindings/mfd/e31x-pmu.txt
@@ -4,11 +4,14 @@  Required properties:
 - compatible : Must be "ni,e31x-pmu"
 - regmap     : Must be <&regmapnode>
 
-e31x-pmu has a sub-device called e31x-charger.
+e31x-pmu consists of two sub-devices, e31x-charger and e31x-battery.
 
 For the e31x-charger properties please refer to:
 Documentation/device-tree/bindings/power/supply/e31x-charger.txt
 
+For the e31x-battery properties please refer to:
+Documentation/device-tree/bindings/power/supply/e31x-battery.txt
+
 Example:
 
 pmu {
@@ -18,5 +21,8 @@  pmu {
 	charger: charger@0{
 		compatible = "ni,e31x-charger";
 	};
+	battery: battery@1{
+		compatible = "ni,e31x-battery";
+	};
 };
 
diff --git a/Documentation/devicetree/bindings/power/supply/e31x-battery.txt b/Documentation/devicetree/bindings/power/supply/e31x-battery.txt
new file mode 100644
index 000000000000..e09cd92ef82e
--- /dev/null
+++ b/Documentation/devicetree/bindings/power/supply/e31x-battery.txt
@@ -0,0 +1,14 @@ 
+Ettus Research/National Instruments E31x Devices Battery
+
+Some variants of the E31x devices have an in-built Li-ion
+battery. This driver provides capability to monitor
+the battery.
+
+Required properties:
+- compatible: Must be "ni,e31x-battery"
+
+Example:
+
+battery: battery@0{
+	compatible = "ni,e31x-battery";
+};