Synopsys DWC AHCI SATA controller

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

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

Maintainers (maintainers): "Serge Semin <fancer.lancer@gmail.com>"

This document defines device tree bindings for the generic Synopsys DWC implementation of the AHCI SATA controller.

Automatic schema selection (select) #

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "snps,dwc-ahci", "snps,spear-ahci"

Required in this object (required): "compatible"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): snps,dwc-ahci-common.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Synopsys AHCI SATA-compatible devices

Exact value (const): "snps,dwc-ahci"

Rule 2

SPEAr1340 AHCI SATA device

Exact value (const): "snps,spear-ahci"

iommus — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 3

Properties matching a name pattern (patternProperties) #

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

Shared schema rule ($ref): /schemas/ata/snps,dwc-ahci-common.yaml#/$defs/dwc-ahci-port

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/ata/ahci.h>

sata@122f0000 {
  compatible = "snps,dwc-ahci";
  reg = <0x122F0000 0x1ff>;
  #address-cells = <1>;
  #size-cells = <0>;

  interrupts = <GIC_SPI 115 IRQ_TYPE_LEVEL_HIGH>;

  clocks = <&clock1>, <&clock2>;
  clock-names = "aclk", "ref";

  phys = <&sata_phy>;
  phy-names = "sata-phy";

  ports-implemented = <0x1>;

  sata-port@0 {
    reg = <0>;

    hba-port-cap = <HBA_PORT_FBSCP>;

    snps,tx-ts-max = <512>;
    snps,rx-ts-max = <512>;
  };
};

Source notes #

Annotations retained from the schema source

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

Edit this page