Common Properties for Serial ATA AHCI controllers

Schema identifier ($id): "http://devicetree.org/schemas/ata/ahci-common.yaml#"

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

Maintainers (maintainers): "Hans de Goede <hdegoede@redhat.com>", "Damien Le Moal <dlemoal@kernel.org>"

This document defines device tree properties for a common AHCI SATA controller implementation. It's hardware interface is supposed to conform to the technical standard defined by Intel (see Serial ATA Advanced Host Controller Interface specification for details). The document doesn't constitute a DT-node binding by itself but merely defines a set of common properties for the AHCI-compatible devices.

Automatic schema selection (select) #

false

Not selected automatically by this rule.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): sata-common.yaml#

Properties and child nodes (properties) #

reg — required here #

Generic AHCI registers space conforming to the Serial ATA AHCI specification.

reg-names — not listed as required here #

CSR space IDs

Rule for matching array elements (contains) #

Exact value (const): "ahci"

interrupts — required here #

Generic AHCI state change interrupt. Can be implemented either as a single line attached to the controller or as a set of the signals indicating the particular port events.

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 32

ahci-supply — not listed as required here #

Power regulator for AHCI controller

target-supply — not listed as required here #

Power regulator for SATA target device

phy-supply — not listed as required here #

Power regulator for SATA PHY

phys — not listed as required here #

Reference to the SATA PHY node

Maximum number of items (maxItems): 1

phy-names — not listed as required here #

Exact value (const): "sata-phy"

hba-cap — not listed as required here #

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

Bitfield of the HBA generic platform capabilities like Staggered Spin-up or Mechanical Presence Switch support. It can be used to appropriately initialize the HWinit fields of the HBA CAP register in case if the system firmware hasn't done it.

ports-implemented — not listed as required here #

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

Mask that indicates which ports the HBA supports. Useful if PI is not programmed by the BIOS, which is true for some embedded SoC's.

Properties matching a name pattern (patternProperties) #

^sata-port@[0-9a-f]+$ — name matches this regular expression #

Shared schema rule ($ref): #/$defs/ahci-port

It is optionally possible to describe the ports as sub-nodes so to enable each port independently when dealing with multiple PHYs.

Required in this object (required): "reg", "interrupts"

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

true

Allowed by this rule.

Reusable definitions ($defs) #

ahci-port #

Shared schema rule ($ref): /schemas/ata/sata-common.yaml#/$defs/sata-port

Properties and child nodes (properties) #

reg — required here

AHCI SATA port identifier. By design AHCI controller can't have more than 32 ports due to the CAP.NP fields and PI register size constraints.

Minimum value (minimum): 0

Maximum value (maximum): 31

phys — not listed as required here

Individual AHCI SATA port PHY

Maximum number of items (maxItems): 1

phy-names — not listed as required here

AHCI SATA port PHY ID

Exact value (const): "sata-phy"

target-supply — not listed as required here

Power regulator for SATA port target device

hba-port-cap — not listed as required here

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

Bitfield of the HBA port-specific platform capabilities like Hot plugging, eSATA, FIS-based Switching, etc (see AHCI specification for details). It can be used to initialize the HWinit fields of the PxCMD register in case if the system firmware hasn't done it.

Required in this object (required): "reg"

Source notes #

Annotations retained from the schema source

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

Edit this page