mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 23:03:57 -04:00
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>
120 lines
2.7 KiB
YAML
120 lines
2.7 KiB
YAML
# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/nvme/apple,nvme-ans.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: Apple ANS NVM Express host controller
|
|
|
|
maintainers:
|
|
- Sven Peter <sven@svenpeter.dev>
|
|
|
|
properties:
|
|
compatible:
|
|
oneOf:
|
|
- const: apple,t8015-nvme-ans2
|
|
- items:
|
|
- const: apple,t6020-nvme-ans2
|
|
- const: apple,t8103-nvme-ans2
|
|
- items:
|
|
- enum:
|
|
# Do not add additional SoC to this list.
|
|
- apple,t8103-nvme-ans2
|
|
- apple,t8112-nvme-ans2
|
|
- apple,t6000-nvme-ans2
|
|
- const: apple,nvme-ans2
|
|
|
|
reg:
|
|
items:
|
|
- description: NVMe and NVMMU registers
|
|
- description: ANS2 co-processor control registers
|
|
|
|
reg-names:
|
|
items:
|
|
- const: nvme
|
|
- const: ans
|
|
|
|
resets:
|
|
maxItems: 1
|
|
|
|
power-domains:
|
|
# two domains for t8103, three for t6000
|
|
minItems: 2
|
|
items:
|
|
- description: power domain for the NVMe controller.
|
|
- description: power domain for the first PCIe bus connecting the NVMe
|
|
controller to the storage modules.
|
|
- description: optional power domain for the second PCIe bus
|
|
connecting the NVMe controller to the storage modules.
|
|
|
|
power-domain-names:
|
|
minItems: 2
|
|
items:
|
|
- const: ans
|
|
- const: apcie0
|
|
- const: apcie1
|
|
|
|
mboxes:
|
|
maxItems: 1
|
|
description: Mailbox of the ANS2 co-processor
|
|
|
|
interrupts:
|
|
maxItems: 1
|
|
|
|
apple,sart:
|
|
$ref: /schemas/types.yaml#/definitions/phandle
|
|
description: |
|
|
Reference to the SART address filter.
|
|
|
|
The SART address filter is documented in iommu/apple,sart.yaml.
|
|
|
|
if:
|
|
properties:
|
|
compatible:
|
|
contains:
|
|
enum:
|
|
- apple,t6000-nvme-ans2
|
|
- apple,t6020-nvme-ans2
|
|
then:
|
|
properties:
|
|
power-domains:
|
|
minItems: 3
|
|
power-domain-names:
|
|
minItems: 3
|
|
else:
|
|
properties:
|
|
power-domains:
|
|
maxItems: 2
|
|
power-domain-names:
|
|
maxItems: 2
|
|
|
|
required:
|
|
- compatible
|
|
- reg
|
|
- reg-names
|
|
- resets
|
|
- power-domains
|
|
- power-domain-names
|
|
- mboxes
|
|
- interrupts
|
|
- apple,sart
|
|
|
|
additionalProperties: false
|
|
|
|
examples:
|
|
- |
|
|
#include <dt-bindings/interrupt-controller/apple-aic.h>
|
|
#include <dt-bindings/interrupt-controller/irq.h>
|
|
|
|
nvme@7bcc0000 {
|
|
compatible = "apple,t8103-nvme-ans2", "apple,nvme-ans2";
|
|
reg = <0x7bcc0000 0x40000>, <0x77400000 0x4000>;
|
|
reg-names = "nvme", "ans";
|
|
interrupts = <AIC_IRQ 590 IRQ_TYPE_LEVEL_HIGH>;
|
|
mboxes = <&ans>;
|
|
apple,sart = <&sart>;
|
|
power-domains = <&ps_ans2>, <&ps_apcie_st>;
|
|
power-domain-names = "ans", "apcie0";
|
|
resets = <&ps_ans2>;
|
|
};
|