Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
79 changes: 55 additions & 24 deletions Documentation/devicetree/bindings/nvme/apple,nvme-ans.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ properties:
- apple,t6020-nvme-ans2
- apple,t8122-nvme-ans2
- const: apple,t8103-nvme-ans2
- const: apple,t8132-nvme-ans2
- items:
- const: apple,t8140-nvme-ans2
- const: apple,t8132-nvme-ans2
- items:
- enum:
# Do not add additional SoC to this list.
Expand All @@ -27,34 +31,41 @@ properties:
- const: apple,nvme-ans2

reg:
minItems: 2
items:
- description: NVMe and NVMMU registers
- description: NVMe registers, including NVMMU on older SoCs
- description: ANS2 co-processor control registers
- description: NVMMU registers on M4 and later SoCs

reg-names:
minItems: 2
items:
- const: nvme
- const: ans
- const: nvmmu

resets:
maxItems: 1

power-domains:
# two domains for t8103, three for t6000
# two domains for t8103, three for t6000 and t8140
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.
- description: optional power domain for either the second PCIe bus
connecting the NVMe controller to the storage modules or the ANS
PCIe PHY.

power-domain-names:
minItems: 2
items:
- const: ans
- const: apcie0
- const: apcie1
- enum:
- apcie1
- apcie_phy

mboxes:
maxItems: 1
Expand All @@ -70,25 +81,45 @@ properties:

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
allOf:
- if:
properties:
compatible:
contains:
enum:
- apple,t6000-nvme-ans2
- apple,t6020-nvme-ans2
- apple,t8140-nvme-ans2
then:
properties:
power-domains:
minItems: 3
power-domain-names:
minItems: 3
else:
properties:
power-domains:
maxItems: 2
power-domain-names:
maxItems: 2

- if:
properties:
compatible:
contains:
const: apple,t8132-nvme-ans2
then:
properties:
reg:
minItems: 3
reg-names:
minItems: 3
else:
properties:
reg:
maxItems: 2
reg-names:
maxItems: 2

required:
- compatible
Expand Down
1 change: 1 addition & 0 deletions drivers/nvme/host/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ config NVME_APPLE
depends on OF && BLOCK
depends on APPLE_RTKIT && APPLE_SART
depends on ARCH_APPLE || COMPILE_TEST
select BLK_INLINE_ENCRYPTION
select NVME_CORE
help
This provides support for the NVMe controller embedded in Apple SoCs
Expand Down
Loading