Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+10 -7
+10 -7
Documentation/devicetree/bindings/nvme/apple,nvme-ans.yaml
··· 14 14 oneOf: 15 15 - const: apple,t8015-nvme-ans2 16 16 - items: 17 + - const: apple,t6020-nvme-ans2 18 + - const: apple,t8103-nvme-ans2 19 + - items: 17 20 - enum: 21 + # Do not add additional SoC to this list. 18 22 - apple,t8103-nvme-ans2 19 23 - apple,t8112-nvme-ans2 20 24 - apple,t6000-nvme-ans2 ··· 73 69 compatible: 74 70 contains: 75 71 enum: 76 - - apple,t8015-nvme-ans2 77 - - apple,t8103-nvme-ans2 78 - - apple,t8112-nvme-ans2 72 + - apple,t6000-nvme-ans2 73 + - apple,t6020-nvme-ans2 79 74 then: 80 75 properties: 81 76 power-domains: 82 - maxItems: 2 77 + minItems: 3 83 78 power-domain-names: 84 - maxItems: 2 79 + minItems: 3 85 80 else: 86 81 properties: 87 82 power-domains: 88 - minItems: 3 83 + maxItems: 2 89 84 power-domain-names: 90 - minItems: 3 85 + maxItems: 2 91 86 92 87 required: 93 88 - compatible