Peios Learn
Documentation

Peios

Peios Peios Kernel Universal Directory Project

Developer Tools

Trail Acta Provium clackatoo CAF GCSL Pekit

Applications

Framewright

Standards and Conventions

Standards and Conventions Peios Specifications
Peios Kernel

Nvme bindings

Single-page view · as markdown

Apple ANS NVM Express host controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Nvme bindings

Schema identifier ($id): "http://devicetree.org/schemas/nvme/apple,nvme-ans.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Sven Peter <sven@svenpeter.dev>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "apple,t8015-nvme-ans2"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "apple,t6020-nvme-ans2"

Item 2

Exact value (const): "apple,t8103-nvme-ans2"

Rule 3

Array item rules (items)

Item 1

Allowed values (enum): "apple,t8103-nvme-ans2", "apple,t8112-nvme-ans2", "apple,t6000-nvme-ans2"

Item 2

Exact value (const): "apple,nvme-ans2"

reg — required here #

Array item rules (items) #

Item 1

NVMe and NVMMU registers

Item 2

ANS2 co-processor control registers

reg-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "nvme"

Item 2

Exact value (const): "ans"

resets — required here #

Maximum number of items (maxItems): 1

power-domains — required here #

Minimum number of items (minItems): 2

Array item rules (items) #

Item 1

power domain for the NVMe controller.

Item 2

power domain for the first PCIe bus connecting the NVMe controller to the storage modules.

Item 3

optional power domain for the second PCIe bus connecting the NVMe controller to the storage modules.

power-domain-names — required here #

Minimum number of items (minItems): 2

Array item rules (items) #

Item 1

Exact value (const): "ans"

Item 2

Exact value (const): "apcie0"

Item 3

Exact value (const): "apcie1"

mboxes — required here #

Maximum number of items (maxItems): 1

Mailbox of the ANS2 co-processor

interrupts — required here #

Maximum number of items (maxItems): 1

apple,sart — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

Reference to the SART address filter.

The SART address filter is documented in iommu/apple,sart.yaml.

Condition (if) #

Properties and child nodes (properties) #

compatible — not listed as required here #

Rule for matching array elements (contains)

Allowed values (enum): "apple,t6000-nvme-ans2", "apple,t6020-nvme-ans2"

When the condition matches (then) #

Properties and child nodes (properties) #

power-domains — not listed as required here #

Minimum number of items (minItems): 3

power-domain-names — not listed as required here #

Minimum number of items (minItems): 3

When the condition does not match (else) #

Properties and child nodes (properties) #

power-domains — not listed as required here #

Maximum number of items (maxItems): 2

power-domain-names — not listed as required here #

Maximum number of items (maxItems): 2

Required in this object (required): "compatible", "reg", "reg-names", "resets", "power-domains", "power-domain-names", "mboxes", "interrupts", "apple,sart"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (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>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause

Line 21: Do not add additional SoC to this list.

Line 41: two domains for t8103, three for t6000

Peios Learn — documentation for Peios software.

Built with Trail.