Re: [linux-sunxi] [PATCH 28/54] dt-bindings: power: supply: axp20x: Add AXP803 compatible

2021-08-01 Thread Chen-Yu Tsai
On Wed, Jul 21, 2021 at 10:05 PM Maxime Ripard  wrote:
>
> The AXP803 compatible was introduced recently with a fallback to the
> AXP813, but it was never documented.
>
> Cc: Chen-Yu Tsai 
> Cc: linux...@vger.kernel.org
> Cc: Sebastian Reichel 
> Signed-off-by: Maxime Ripard 

Reviewed-by: Chen-Yu Tsai 

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linux-sunxi+unsubscr...@googlegroups.com.
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/linux-sunxi/CAGb2v67QnD%2BnFG6QtLy332k_0W6kELTJEqtui_sf7Qf5nMxCmQ%40mail.gmail.com.


[linux-sunxi] [PATCH 28/54] dt-bindings: power: supply: axp20x: Add AXP803 compatible

2021-07-21 Thread Maxime Ripard
The AXP803 compatible was introduced recently with a fallback to the
AXP813, but it was never documented.

Cc: Chen-Yu Tsai 
Cc: linux...@vger.kernel.org
Cc: Sebastian Reichel 
Signed-off-by: Maxime Ripard 
---
 .../supply/x-powers,axp20x-ac-power-supply.yaml| 11 +++
 .../x-powers,axp20x-battery-power-supply.yaml  | 11 +++
 .../supply/x-powers,axp20x-usb-power-supply.yaml   | 14 +-
 3 files changed, 23 insertions(+), 13 deletions(-)

diff --git 
a/Documentation/devicetree/bindings/power/supply/x-powers,axp20x-ac-power-supply.yaml
 
b/Documentation/devicetree/bindings/power/supply/x-powers,axp20x-ac-power-supply.yaml
index dcda6660b8ed..de6a23aee977 100644
--- 
a/Documentation/devicetree/bindings/power/supply/x-powers,axp20x-ac-power-supply.yaml
+++ 
b/Documentation/devicetree/bindings/power/supply/x-powers,axp20x-ac-power-supply.yaml
@@ -21,10 +21,13 @@ allOf:
 
 properties:
   compatible:
-enum:
-  - x-powers,axp202-ac-power-supply
-  - x-powers,axp221-ac-power-supply
-  - x-powers,axp813-ac-power-supply
+oneOf:
+  - const: x-powers,axp202-ac-power-supply
+  - const: x-powers,axp221-ac-power-supply
+  - items:
+  - const: x-powers,axp803-ac-power-supply
+  - const: x-powers,axp813-ac-power-supply
+  - const: x-powers,axp813-ac-power-supply
 
 required:
   - compatible
diff --git 
a/Documentation/devicetree/bindings/power/supply/x-powers,axp20x-battery-power-supply.yaml
 
b/Documentation/devicetree/bindings/power/supply/x-powers,axp20x-battery-power-supply.yaml
index 86e8a713d4e2..d1f0df123a5a 100644
--- 
a/Documentation/devicetree/bindings/power/supply/x-powers,axp20x-battery-power-supply.yaml
+++ 
b/Documentation/devicetree/bindings/power/supply/x-powers,axp20x-battery-power-supply.yaml
@@ -19,10 +19,13 @@ allOf:
 
 properties:
   compatible:
-enum:
-  - x-powers,axp209-battery-power-supply
-  - x-powers,axp221-battery-power-supply
-  - x-powers,axp813-battery-power-supply
+oneOf:
+  - const: x-powers,axp202-battery-power-supply
+  - const: x-powers,axp221-battery-power-supply
+  - items:
+  - const: x-powers,axp803-battery-power-supply
+  - const: x-powers,axp813-battery-power-supply
+  - const: x-powers,axp813-battery-power-supply
 
 required:
   - compatible
diff --git 
a/Documentation/devicetree/bindings/power/supply/x-powers,axp20x-usb-power-supply.yaml
 
b/Documentation/devicetree/bindings/power/supply/x-powers,axp20x-usb-power-supply.yaml
index 61f1b320c157..0c371b55c9e1 100644
--- 
a/Documentation/devicetree/bindings/power/supply/x-powers,axp20x-usb-power-supply.yaml
+++ 
b/Documentation/devicetree/bindings/power/supply/x-powers,axp20x-usb-power-supply.yaml
@@ -20,11 +20,15 @@ allOf:
 
 properties:
   compatible:
-enum:
-  - x-powers,axp202-usb-power-supply
-  - x-powers,axp221-usb-power-supply
-  - x-powers,axp223-usb-power-supply
-  - x-powers,axp813-usb-power-supply
+oneOf:
+  - enum:
+  - x-powers,axp202-usb-power-supply
+  - x-powers,axp221-usb-power-supply
+  - x-powers,axp223-usb-power-supply
+  - x-powers,axp813-usb-power-supply
+  - items:
+  - const: x-powers,axp803-usb-power-supply
+  - const: x-powers,axp813-usb-power-supply
 
 
 required:
-- 
2.31.1

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linux-sunxi+unsubscr...@googlegroups.com.
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/linux-sunxi/20210721140424.725744-29-maxime%40cerno.tech.