* [PATCH] dt-bindings: power: supply: bq25890: use one fallback compatible
@ 2022-11-02 18:20 Krzysztof Kozlowski
2022-11-04 21:53 ` Rob Herring
0 siblings, 1 reply; 3+ messages in thread
From: Krzysztof Kozlowski @ 2022-11-02 18:20 UTC (permalink / raw)
To: Sebastian Reichel, Rob Herring, Krzysztof Kozlowski, linux-pm,
devicetree, linux-kernel
Cc: Krzysztof Kozlowski
BQ2589[0256] seem compatible between each other in major aspects and
remaining features are auto-detectable (by reading device revision ID
register). Existing DTS already uses the compatibles with a fallback,
so adjust the bindings to reflect this and fix dtbs_check warning:
arch/arm64/boot/dts/freescale/imx8mq-librem5-r2.dtb: charger@6a: compatible: ['ti,bq25895', 'ti,bq25890'] is too long
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
.../devicetree/bindings/power/supply/bq25890.yaml | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
diff --git a/Documentation/devicetree/bindings/power/supply/bq25890.yaml b/Documentation/devicetree/bindings/power/supply/bq25890.yaml
index fd01ff10b4e0..ee51b6335e72 100644
--- a/Documentation/devicetree/bindings/power/supply/bq25890.yaml
+++ b/Documentation/devicetree/bindings/power/supply/bq25890.yaml
@@ -15,11 +15,15 @@ allOf:
properties:
compatible:
- enum:
- - ti,bq25890
- - ti,bq25892
- - ti,bq25895
- - ti,bq25896
+ oneOf:
+ - enum:
+ - ti,bq25890
+ - items:
+ - enum:
+ - ti,bq25892
+ - ti,bq25895
+ - ti,bq25896
+ - const: ti,bq25890
reg:
maxItems: 1
--
2.34.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] dt-bindings: power: supply: bq25890: use one fallback compatible
2022-11-02 18:20 [PATCH] dt-bindings: power: supply: bq25890: use one fallback compatible Krzysztof Kozlowski
@ 2022-11-04 21:53 ` Rob Herring
2022-11-05 20:24 ` Sebastian Reichel
0 siblings, 1 reply; 3+ messages in thread
From: Rob Herring @ 2022-11-04 21:53 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: Rob Herring, Sebastian Reichel, devicetree, linux-kernel,
linux-pm, Krzysztof Kozlowski
On Wed, 02 Nov 2022 14:20:11 -0400, Krzysztof Kozlowski wrote:
> BQ2589[0256] seem compatible between each other in major aspects and
> remaining features are auto-detectable (by reading device revision ID
> register). Existing DTS already uses the compatibles with a fallback,
> so adjust the bindings to reflect this and fix dtbs_check warning:
>
> arch/arm64/boot/dts/freescale/imx8mq-librem5-r2.dtb: charger@6a: compatible: ['ti,bq25895', 'ti,bq25890'] is too long
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---
> .../devicetree/bindings/power/supply/bq25890.yaml | 14 +++++++++-----
> 1 file changed, 9 insertions(+), 5 deletions(-)
>
Reviewed-by: Rob Herring <robh@kernel.org>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] dt-bindings: power: supply: bq25890: use one fallback compatible
2022-11-04 21:53 ` Rob Herring
@ 2022-11-05 20:24 ` Sebastian Reichel
0 siblings, 0 replies; 3+ messages in thread
From: Sebastian Reichel @ 2022-11-05 20:24 UTC (permalink / raw)
To: Rob Herring
Cc: Krzysztof Kozlowski, Rob Herring, devicetree, linux-kernel,
linux-pm, Krzysztof Kozlowski
[-- Attachment #1: Type: text/plain, Size: 873 bytes --]
Hi,
On Fri, Nov 04, 2022 at 04:53:14PM -0500, Rob Herring wrote:
> On Wed, 02 Nov 2022 14:20:11 -0400, Krzysztof Kozlowski wrote:
> > BQ2589[0256] seem compatible between each other in major aspects and
> > remaining features are auto-detectable (by reading device revision ID
> > register). Existing DTS already uses the compatibles with a fallback,
> > so adjust the bindings to reflect this and fix dtbs_check warning:
> >
> > arch/arm64/boot/dts/freescale/imx8mq-librem5-r2.dtb: charger@6a: compatible: ['ti,bq25895', 'ti,bq25890'] is too long
> >
> > Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> > ---
> > .../devicetree/bindings/power/supply/bq25890.yaml | 14 +++++++++-----
> > 1 file changed, 9 insertions(+), 5 deletions(-)
> >
>
> Reviewed-by: Rob Herring <robh@kernel.org>
Thanks, queued.
-- Sebastian
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-11-05 20:24 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-02 18:20 [PATCH] dt-bindings: power: supply: bq25890: use one fallback compatible Krzysztof Kozlowski
2022-11-04 21:53 ` Rob Herring
2022-11-05 20:24 ` Sebastian Reichel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®