dt-bindings: nvme: apple: Add apple,t6020-nvme-ans2 compatible

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

Invert the condition for the 2 or 3 power-domains check to allow using
"apple,t8103-nvme-ans2" as base compatible.

"apple,t6020-nvme-ans2" on Apple M2 Pro/Max/Ultra SoCs is compatible
with "apple,t8103-nvme-ans2" so add its per-SoC compatible.

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

Reviewed-by: Neal Gompa <neal@gompa.dev>
Acked-by: Rob Herring (Arm) <robh@kernel.org>
Signed-off-by: Janne Grunau <j@jannau.net>
This commit is contained in:
Janne Grunau 2025-08-28 16:01:34 +02:00
parent 9d7b6d117d
commit a3ee333346
1 changed files with 10 additions and 7 deletions

View File

@ -13,8 +13,12 @@ properties:
compatible: compatible:
oneOf: oneOf:
- const: apple,t8015-nvme-ans2 - const: apple,t8015-nvme-ans2
- items:
- const: apple,t6020-nvme-ans2
- const: apple,t8103-nvme-ans2
- items: - items:
- enum: - enum:
# Do not add additional SoC to this list.
- apple,t8103-nvme-ans2 - apple,t8103-nvme-ans2
- apple,t8112-nvme-ans2 - apple,t8112-nvme-ans2
- apple,t6000-nvme-ans2 - apple,t6000-nvme-ans2
@ -69,21 +73,20 @@ if:
compatible: compatible:
contains: contains:
enum: enum:
- apple,t8015-nvme-ans2 - apple,t6000-nvme-ans2
- apple,t8103-nvme-ans2 - apple,t6020-nvme-ans2
- apple,t8112-nvme-ans2
then: then:
properties: properties:
power-domains: power-domains:
maxItems: 2 minItems: 3
power-domain-names: power-domain-names:
maxItems: 2 minItems: 3
else: else:
properties: properties:
power-domains: power-domains:
minItems: 3 maxItems: 2
power-domain-names: power-domain-names:
minItems: 3 maxItems: 2
required: required:
- compatible - compatible