* [PATCH v2 1/3] dt-bindings: regulator: regulator-output: Multiple supplies
@ 2023-10-04 12:10 Naresh Solanki
2023-10-05 20:12 ` Krzysztof Kozlowski
2023-10-06 16:30 ` Rob Herring
0 siblings, 2 replies; 4+ messages in thread
From: Naresh Solanki @ 2023-10-04 12:10 UTC (permalink / raw)
To: broonie, zev, Liam Girdwood, Rob Herring, Krzysztof Kozlowski,
Conor Dooley
Cc: Naresh Solanki, linux-kernel, devicetree
Add support for multiple supplies.
Signed-off-by: Naresh Solanki <naresh.solanki@9elements.com>
---
.../devicetree/bindings/regulator/regulator-output.yaml | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/Documentation/devicetree/bindings/regulator/regulator-output.yaml b/Documentation/devicetree/bindings/regulator/regulator-output.yaml
index 078b37a1a71a..6d077f123729 100644
--- a/Documentation/devicetree/bindings/regulator/regulator-output.yaml
+++ b/Documentation/devicetree/bindings/regulator/regulator-output.yaml
@@ -21,13 +21,13 @@ properties:
compatible:
const: regulator-output
- vout-supply:
+patternProperties:
+ ".*-supply":
description:
Phandle of the regulator supplying the output.
required:
- compatible
- - vout-supply
additionalProperties: false
@@ -37,3 +37,8 @@ examples:
compatible = "regulator-output";
vout-supply = <&output_reg>;
};
+ output1 {
+ compatible = "regulator-output";
+ sw0-supply = <&output_reg0>;
+ sw1-supply = <&output_reg2>;
+ };
base-commit: f9a1d31874c383f58bb4f89bfe79b764682cd026
--
2.41.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH v2 1/3] dt-bindings: regulator: regulator-output: Multiple supplies
2023-10-04 12:10 [PATCH v2 1/3] dt-bindings: regulator: regulator-output: Multiple supplies Naresh Solanki
@ 2023-10-05 20:12 ` Krzysztof Kozlowski
2023-10-06 16:30 ` Rob Herring
1 sibling, 0 replies; 4+ messages in thread
From: Krzysztof Kozlowski @ 2023-10-05 20:12 UTC (permalink / raw)
To: Naresh Solanki, broonie, zev, Liam Girdwood, Rob Herring,
Krzysztof Kozlowski, Conor Dooley
Cc: linux-kernel, devicetree
On 04/10/2023 14:10, Naresh Solanki wrote:
> Add support for multiple supplies.
>
Nothing improved here. Why?
BTW, for regulator please use subject with reversed prefixes.
You can get them for example with `git log --oneline --
DIRECTORY_OR_FILE` on the directory your patch is touching.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v2 1/3] dt-bindings: regulator: regulator-output: Multiple supplies
2023-10-04 12:10 [PATCH v2 1/3] dt-bindings: regulator: regulator-output: Multiple supplies Naresh Solanki
2023-10-05 20:12 ` Krzysztof Kozlowski
@ 2023-10-06 16:30 ` Rob Herring
2023-10-10 17:30 ` Mark Brown
1 sibling, 1 reply; 4+ messages in thread
From: Rob Herring @ 2023-10-06 16:30 UTC (permalink / raw)
To: Naresh Solanki
Cc: broonie, zev, Liam Girdwood, Krzysztof Kozlowski, Conor Dooley,
linux-kernel, devicetree
On Wed, Oct 04, 2023 at 02:10:07PM +0200, Naresh Solanki wrote:
> Add support for multiple supplies.
Again, why?
>
> Signed-off-by: Naresh Solanki <naresh.solanki@9elements.com>
> ---
> .../devicetree/bindings/regulator/regulator-output.yaml | 9 +++++++--
> 1 file changed, 7 insertions(+), 2 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/regulator/regulator-output.yaml b/Documentation/devicetree/bindings/regulator/regulator-output.yaml
> index 078b37a1a71a..6d077f123729 100644
> --- a/Documentation/devicetree/bindings/regulator/regulator-output.yaml
> +++ b/Documentation/devicetree/bindings/regulator/regulator-output.yaml
> @@ -21,13 +21,13 @@ properties:
> compatible:
> const: regulator-output
>
> - vout-supply:
> +patternProperties:
> + ".*-supply":
> description:
> Phandle of the regulator supplying the output.
>
> required:
> - compatible
> - - vout-supply
>
> additionalProperties: false
>
> @@ -37,3 +37,8 @@ examples:
> compatible = "regulator-output";
> vout-supply = <&output_reg>;
> };
> + output1 {
> + compatible = "regulator-output";
> + sw0-supply = <&output_reg0>;
> + sw1-supply = <&output_reg2>;
> + };
>
> base-commit: f9a1d31874c383f58bb4f89bfe79b764682cd026
> --
> 2.41.0
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v2 1/3] dt-bindings: regulator: regulator-output: Multiple supplies
2023-10-06 16:30 ` Rob Herring
@ 2023-10-10 17:30 ` Mark Brown
0 siblings, 0 replies; 4+ messages in thread
From: Mark Brown @ 2023-10-10 17:30 UTC (permalink / raw)
To: Rob Herring
Cc: Naresh Solanki, zev, Liam Girdwood, Krzysztof Kozlowski,
Conor Dooley, linux-kernel, devicetree
[-- Attachment #1: Type: text/plain, Size: 534 bytes --]
On Fri, Oct 06, 2023 at 11:30:54AM -0500, Rob Herring wrote:
> On Wed, Oct 04, 2023 at 02:10:07PM +0200, Naresh Solanki wrote:
> > Add support for multiple supplies.
> Again, why?
FWIW I do tend to share the same question that Rob and other people have
asked a few times here - is this really one userspace consumer with
multiple supplies, if so what does that userspace consumer represent?
I'd be expecting that this was representing a single supply to an
external device which for the most part would have a single input
supply.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-10-10 17:30 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-04 12:10 [PATCH v2 1/3] dt-bindings: regulator: regulator-output: Multiple supplies Naresh Solanki
2023-10-05 20:12 ` Krzysztof Kozlowski
2023-10-06 16:30 ` Rob Herring
2023-10-10 17:30 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).