diff mbox

[v7,6/7] power: da9150: Add DT binding documentation for charger

Message ID f6c1bb16817176c5f253aec7cb5a912219bd814a.1424267009.git.Adam.Thomson.Opensource@diasemi.com (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Adam Thomson Feb. 18, 2015, 2:08 p.m. UTC
Signed-off-by: Adam Thomson <Adam.Thomson.Opensource@diasemi.com>
---
 .../devicetree/bindings/power/da9150-charger.txt   | 26 ++++++++++++++++++++++
 1 file changed, 26 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/power/da9150-charger.txt

--
1.9.3

--
To unsubscribe from this list: send the line "unsubscribe linux-pm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Comments

Jonathan Cameron Feb. 25, 2015, 12:11 p.m. UTC | #1
On 18/02/15 14:08, Adam Thomson wrote:
> Signed-off-by: Adam Thomson <Adam.Thomson.Opensource@diasemi.com>
Acked-by: Jonathan Cameron <jic23@kernel.org>
> ---
>  .../devicetree/bindings/power/da9150-charger.txt   | 26 ++++++++++++++++++++++
>  1 file changed, 26 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/power/da9150-charger.txt
> 
> diff --git a/Documentation/devicetree/bindings/power/da9150-charger.txt b/Documentation/devicetree/bindings/power/da9150-charger.txt
> new file mode 100644
> index 0000000..f390666
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/power/da9150-charger.txt
> @@ -0,0 +1,26 @@
> +Dialog Semiconductor DA9150 Charger Power Supply bindings
> +
> +Required properties:
> +- compatible: "dlg,da9150-charger" for DA9150 Charger Power Supply
> +
> +Optional properties:
> +- io-channels: List of phandle and IIO specifier pairs
> +- io-channel-names: List of channel names used by charger
> +      ["CHAN_IBUS", "CHAN_VBUS", "CHAN_TJUNC", "CHAN_VBAT"]
> +  (See Documentation/devicetree/bindings/iio/iio-bindings.txt for further info)
> +
> +
> +Example:
> +
> +	da9150-charger {
> +		compatible = "dlg,da9150-charger";
> +
> +		io-channels = <&gpadc 0>,
> +			      <&gpadc 2>,
> +			      <&gpadc 8>,
> +			      <&gpadc 5>;
> +		io-channel-names = "CHAN_IBUS",
> +				   "CHAN_VBUS",
> +				   "CHAN_TJUNC",
> +				   "CHAN_VBAT";
> +	};
> --
> 1.9.3
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-iio" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

--
To unsubscribe from this list: send the line "unsubscribe linux-pm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/Documentation/devicetree/bindings/power/da9150-charger.txt b/Documentation/devicetree/bindings/power/da9150-charger.txt
new file mode 100644
index 0000000..f390666
--- /dev/null
+++ b/Documentation/devicetree/bindings/power/da9150-charger.txt
@@ -0,0 +1,26 @@ 
+Dialog Semiconductor DA9150 Charger Power Supply bindings
+
+Required properties:
+- compatible: "dlg,da9150-charger" for DA9150 Charger Power Supply
+
+Optional properties:
+- io-channels: List of phandle and IIO specifier pairs
+- io-channel-names: List of channel names used by charger
+      ["CHAN_IBUS", "CHAN_VBUS", "CHAN_TJUNC", "CHAN_VBAT"]
+  (See Documentation/devicetree/bindings/iio/iio-bindings.txt for further info)
+
+
+Example:
+
+	da9150-charger {
+		compatible = "dlg,da9150-charger";
+
+		io-channels = <&gpadc 0>,
+			      <&gpadc 2>,
+			      <&gpadc 8>,
+			      <&gpadc 5>;
+		io-channel-names = "CHAN_IBUS",
+				   "CHAN_VBUS",
+				   "CHAN_TJUNC",
+				   "CHAN_VBAT";
+	};