Skip to contentSkip to conversation

dt-bindings: power: supply: cpcap-battery: Add power-supplies property

PATCH In review Tony Lindgren 5 participants 5 messages Jun 12, 2017 – Jun 18, 2017 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dt-bindings: power: supply: cpcap-battery: Add power-supplies property

The binding for cpcap-battery is missing the standard power-supplies property as noted by Sebastian Reichel <[email protected]>.

---
 Documentation/devicetree/bindings/power/supply/cpcap-battery.txt | 2 ++
 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/power/supply/cpcap-battery.txt +2 -0
@@ -8,6 +8,7 @@ Required properties:
 - io-channels: IIO ADC channel specifier for each name in io-channel-names
 - io-channel-names: Should contain the following entries:
 		    "battdetb", "battp", "chg_isense", "batti"
+- power-supplies: List of devices that supply power, typically cpcap_charger
 
 Example:
 
@@ -24,4 +25,5 @@ cpcap_battery: battery {
 		       &cpcap_adc 5 &cpcap_adc 6>;
 	io-channel-names = "battdetb", "battp",
 			   "chg_isense", "batti";
+	power-supplies = <&cpcap_charger>;
 };
Signature · 1 line
2.13.0
#1 lore raw

Hi,

Quoted 15 lines · Tony Lindgren

The binding for cpcap-battery is missing the standard power-supplies property as noted by Sebastian Reichel <[email protected]>.

---
 Documentation/devicetree/bindings/power/supply/cpcap-battery.txt | 2 ++
 1 file changed, 2 insertions(+)

Documentation/devicetree/bindings/power/supply/cpcap-battery.txt Required properties: · line 11

Quoted 4 lines
Documentation/devicetree/bindings/power/supply/cpcap-battery.txt +1 -0
@@ -8,6 +8,7 @@ Required properties:
 - io-channels: IIO ADC channel specifier for each name in io-channel-names
 - io-channel-names: Should contain the following entries:
 		    "battdetb", "battp", "chg_isense", "batti"
+- power-supplies: List of devices that supply power, typically cpcap_charger

This is missing the info, that its about phandles. Maybe:

- power-supplies: List of phandles for power-supplying devices, as described in power_supply.txt. Typically a reference to cpcap_charger.

-- Sebastian

Quoted 11 lines
Documentation/devicetree/bindings/power/supply/cpcap-battery.txt +1 -0
 Example:
 
@@ -24,4 +25,5 @@ cpcap_battery: battery {
 		       &cpcap_adc 5 &cpcap_adc 6>;
 	io-channel-names = "battdetb", "battp",
 			   "chg_isense", "batti";
+	power-supplies = <&cpcap_charger>;
 };
Signature · 1 line
2.13.0
#2 lore raw
Quoted 8 lines · Sebastian Reichel
Quoted 1 line · Tony Lindgren

+- power-supplies: List of devices that supply power, typically cpcap_charger

This is missing the info, that its about phandles. Maybe:

- power-supplies: List of phandles for power-supplying devices, as described in power_supply.txt. Typically a reference to cpcap_charger.

Sure, updated patch below.

Regards,

Tony

8< ------

Quoted 1 line

From tony Mon Sep 17 00:00:00 2001

From: Tony Lindgren <[email protected]>
Date: Mon, 12 Jun 2017 00:13:45 -0700
Subject: [PATCH] dt-bindings: power: supply: cpcap-battery: Add
power-supplies property

The binding for cpcap-battery is missing the standard power-supplies
property as noted by Sebastian Reichel <sebastian.reichel-ZGY8ohtN/[email protected]>.

---
 Documentation/devicetree/bindings/power/supply/cpcap-battery.txt | 4 ++++
 1 file changed, 4 insertions(+)
Documentation/devicetree/bindings/power/supply/cpcap-battery.txt +4 -0
@@ -8,6 +8,9 @@ Required properties:
 - io-channels: IIO ADC channel specifier for each name in io-channel-names
 - io-channel-names: Should contain the following entries:
 		    "battdetb", "battp", "chg_isense", "batti"
+- power-supplies: List of phandles for power-supplying devices, as
+		  described in power_supply.txt. Typically a reference
+		  to cpcap_charger.
 
 Example:
 
@@ -24,4 +27,5 @@ cpcap_battery: battery {
 		       &cpcap_adc 5 &cpcap_adc 6>;
 	io-channel-names = "battdetb", "battp",
 			   "chg_isense", "batti";
+	power-supplies = <&cpcap_charger>;
 };
Signature · 5 lines
2.13.0
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#4 lore raw
In reply to a message not in the archive

Hi,

Quoted 11 lines · Tony Lindgren
Quoted 8 lines · Sebastian Reichel
Quoted 1 line · Tony Lindgren

+- power-supplies: List of devices that supply power, typically cpcap_charger

This is missing the info, that its about phandles. Maybe:

- power-supplies: List of phandles for power-supplying devices, as described in power_supply.txt. Typically a reference to cpcap_charger.

Sure, updated patch below.

I queued that one.

-- Sebastian

Quoted 43 lines

8< ------
From tony Mon Sep 17 00:00:00 2001
From: Tony Lindgren <[email protected]>
Date: Mon, 12 Jun 2017 00:13:45 -0700
Subject: [PATCH] dt-bindings: power: supply: cpcap-battery: Add
power-supplies property

The binding for cpcap-battery is missing the standard power-supplies
property as noted by Sebastian Reichel <sebastian.reichel-ZGY8ohtN/[email protected]>.

---
 Documentation/devicetree/bindings/power/supply/cpcap-battery.txt | 4 ++++
 1 file changed, 4 insertions(+)
Documentation/devicetree/bindings/power/supply/cpcap-battery.txt +4 -0
@@ -8,6 +8,9 @@ Required properties:
 - io-channels: IIO ADC channel specifier for each name in io-channel-names
 - io-channel-names: Should contain the following entries:
 		    "battdetb", "battp", "chg_isense", "batti"
+- power-supplies: List of phandles for power-supplying devices, as
+		  described in power_supply.txt. Typically a reference
+		  to cpcap_charger.
 
 Example:
 
@@ -24,4 +27,5 @@ cpcap_battery: battery {
 		       &cpcap_adc 5 &cpcap_adc 6>;
 	io-channel-names = "battdetb", "battp",
 			   "chg_isense", "batti";
+	power-supplies = <&cpcap_charger>;
 };
Signature · 5 lines
2.13.0
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Acked-by
#5 lore raw
In reply to a message not in the archive
Quoted 26 lines · Tony Lindgren
Quoted 8 lines · Sebastian Reichel
Quoted 1 line · Tony Lindgren

+- power-supplies: List of devices that supply power, typically cpcap_charger

This is missing the info, that its about phandles. Maybe:

- power-supplies: List of phandles for power-supplying devices, as described in power_supply.txt. Typically a reference to cpcap_charger.

Sure, updated patch below.

Regards,

Tony

8< ------
From tony Mon Sep 17 00:00:00 2001
From: Tony Lindgren <[email protected]>
Date: Mon, 12 Jun 2017 00:13:45 -0700
Subject: [PATCH] dt-bindings: power: supply: cpcap-battery: Add
power-supplies property

The binding for cpcap-battery is missing the standard power-supplies
property as noted by Sebastian Reichel <sebastian.reichel-ZGY8ohtN/[email protected]>.

Quoted 7 lines
---
 Documentation/devicetree/bindings/power/supply/cpcap-battery.txt | 4 ++++
 1 file changed, 4 insertions(+)

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html