Thread (57 messages) 57 messages, 15 authors, 2025-09-21
STALE293d

[PATCH 04/37] dt-bindings: power: apple,pmgr-pwrstate: Add t6020 compatible

From: Janne Grunau <j@jannau.net>
Date: 2025-08-28 14:01:53
Also in: asahi, dmaengine, dri-devel, linux-bluetooth, linux-clk, linux-devicetree, linux-gpio, linux-i2c, linux-iommu, linux-nvme, linux-pm, linux-pwm, linux-sound, linux-spi, linux-watchdog, lkml
Subsystem: arm/apple machine support, open firmware and flattened device tree bindings, the rest · Maintainers: Sven Peter, Janne Grunau, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Linus Torvalds

After discussion with the devicetree maintainers we agreed to not extend
lists with the generic compatible "apple,pmgr-pwrstate" anymore [1]. Use
"apple,t8103-pmgr-pwrstate" as base compatible as it is the SoC the
driver and bindings were written for.

The implementation on Apple M2 Pro/Max/Ultra SoCs is compatible so add
its per-SoC compatible with the new base.

[1]: https://lore.kernel.org/asahi/12ab93b7-1fc2-4ce0-926e-c8141cfe81bf@kernel.org/ (local)

Signed-off-by: Janne Grunau <j@jannau.net>
---
 .../bindings/power/apple,pmgr-pwrstate.yaml        | 27 +++++++++++++---------
 1 file changed, 16 insertions(+), 11 deletions(-)
diff --git a/Documentation/devicetree/bindings/power/apple,pmgr-pwrstate.yaml b/Documentation/devicetree/bindings/power/apple,pmgr-pwrstate.yaml
index 6e9a670eaf56c8a03d28a83fb0b7f7f8d6aaf1f1..caf15188099921d2b92a20a616945627f34fb869 100644
--- a/Documentation/devicetree/bindings/power/apple,pmgr-pwrstate.yaml
+++ b/Documentation/devicetree/bindings/power/apple,pmgr-pwrstate.yaml
@@ -29,17 +29,22 @@ description: |
 
 properties:
   compatible:
-    items:
-      - enum:
-          - apple,s5l8960x-pmgr-pwrstate
-          - apple,t7000-pmgr-pwrstate
-          - apple,s8000-pmgr-pwrstate
-          - apple,t8010-pmgr-pwrstate
-          - apple,t8015-pmgr-pwrstate
-          - apple,t8103-pmgr-pwrstate
-          - apple,t8112-pmgr-pwrstate
-          - apple,t6000-pmgr-pwrstate
-      - const: apple,pmgr-pwrstate
+    oneOf:
+      - items:
+          - enum:
+              # Do not add additional SoC to this list.
+              - apple,s5l8960x-pmgr-pwrstate
+              - apple,t7000-pmgr-pwrstate
+              - apple,s8000-pmgr-pwrstate
+              - apple,t8010-pmgr-pwrstate
+              - apple,t8015-pmgr-pwrstate
+              - apple,t8103-pmgr-pwrstate
+              - apple,t8112-pmgr-pwrstate
+              - apple,t6000-pmgr-pwrstate
+          - const: apple,pmgr-pwrstate
+      - items:
+          - const: apple,t6020-pmgr-pwrstate
+          - const: apple,t8103-pmgr-pwrstate
 
   reg:
     maxItems: 1
-- 
2.51.0
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help