diff mbox series

[v2,2/2] dt-bindings: power: ingenic,battery: add new compatibles

Message ID 20200906144726.8852-2-contact@artur-rojek.eu (mailing list archive)
State Not Applicable, archived
Headers show
Series [v2,1/2] dt-bindings: power: Convert ingenic,battery.txt to YAML | expand

Commit Message

Artur Rojek Sept. 6, 2020, 2:47 p.m. UTC
This binding can support Ingenic JZ4725B and JZ4770 SoCs, as they are
compatible with Ingenic JZ4740 battery.

Introduce the following compatible property combinations:
 compatible = "ingenic,jz4725b-battery", "ingenic,jz4740-battery",
 compatible = "ingenic,jz4770-battery", "ingenic,jz4740-battery"

Signed-off-by: Artur Rojek <contact@artur-rojek.eu>
---

Changes:
    v2: new patch

 .../devicetree/bindings/power/supply/ingenic,battery.yaml | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

Comments

Rob Herring (Arm) Sept. 15, 2020, 1:09 a.m. UTC | #1
On Sun, 06 Sep 2020 16:47:26 +0200, Artur Rojek wrote:
> This binding can support Ingenic JZ4725B and JZ4770 SoCs, as they are
> compatible with Ingenic JZ4740 battery.
> 
> Introduce the following compatible property combinations:
>  compatible = "ingenic,jz4725b-battery", "ingenic,jz4740-battery",
>  compatible = "ingenic,jz4770-battery", "ingenic,jz4740-battery"
> 
> Signed-off-by: Artur Rojek <contact@artur-rojek.eu>
> ---
> 
> Changes:
>     v2: new patch
> 
>  .../devicetree/bindings/power/supply/ingenic,battery.yaml | 8 +++++++-
>  1 file changed, 7 insertions(+), 1 deletion(-)
> 

Reviewed-by: Rob Herring <robh@kernel.org>
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/power/supply/ingenic,battery.yaml b/Documentation/devicetree/bindings/power/supply/ingenic,battery.yaml
index b4e0275ac63a..b9e5458499bf 100644
--- a/Documentation/devicetree/bindings/power/supply/ingenic,battery.yaml
+++ b/Documentation/devicetree/bindings/power/supply/ingenic,battery.yaml
@@ -12,7 +12,13 @@  maintainers:
 
 properties:
   compatible:
-    const: ingenic,jz4740-battery
+    oneOf:
+      - const: ingenic,jz4740-battery
+      - items:
+        - enum:
+          - ingenic,jz4725b-battery
+          - ingenic,jz4770-battery
+        - const: ingenic,jz4740-battery
 
   io-channels:
     items: