AHCI SATA Controller
Schema identifier ($id): "http://devicetree.org/schemas/ata/ahci-platform.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
SATA nodes are defined to describe on-chip Serial ATA controllers. Each SATA controller should have its own node.
It is possible, but not required, to represent each port as a sub-node. It allows to enable each port independently when dealing with multiple PHYs.
Maintainers (maintainers): "Hans de Goede <hdegoede@redhat.com>", "Jens Axboe <axboe@kernel.dk>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Allowed values (
enum):"brcm,iproc-ahci","marvell,armada-8k-ahci","marvell,berlin2-ahci","marvell,berlin2q-ahci","qcom,apq8064-ahci","qcom,ipq806x-ahci","socionext,uniphier-pro4-ahci","socionext,uniphier-pxs2-ahci","socionext,uniphier-pxs3-ahci"Item 2
Exact value (
const):"generic-ahci"
Rule 2
Allowed values (
enum):"cavium,octeon-7130-ahci","hisilicon,hisi-ahci","ibm,476gtr-ahci","marvell,armada-3700-ahci"
reg — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
reg-names — not listed as required here #
Maximum number of items (maxItems): 1
clocks — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 5
clock-names — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 5
interrupts — required here #
Maximum number of items (maxItems): 1
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
resets — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 3
iommus — not listed as required here #
Maximum number of items (maxItems): 1
Properties matching a name pattern (patternProperties) #
^sata-port@[0-9a-f]+$ — name matches this regular expression #
Shared schema rule ($ref): /schemas/ata/ahci-common.yaml#/$defs/ahci-port
At least one of these rules must match (anyOf) #
Rule 1
Rule 2
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "interrupts"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):ahci-common.yaml#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"qcom,apq8064-ahci","qcom,ipq806x-ahci"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— required hereMinimum number of items (
minItems):5
clock-names— required hereArray item rules (
items)Item 1
Exact value (
const):"slave_iface"Item 2
Exact value (
const):"iface"Item 3
Exact value (
const):"core"Item 4
Exact value (
const):"rxoob"Item 5
Exact value (
const):"pmalive"Required in this object (
required):"phys","phy-names","clocks","clock-names"
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"socionext,uniphier-pro4-ahci"When the condition matches (
then) #Properties and child nodes (
properties)
resets— required hereArray item rules (
items)Item 1
reset line for the parent
Item 2
reset line for the glue logic
Item 3
reset line for the controller
When the condition does not match (
else) #Condition (
if)Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"socionext,uniphier-pxs2-ahci","socionext,uniphier-pxs3-ahci"When the condition matches (
then)Properties and child nodes (
properties)
resets— required hereArray item rules (
items)Item 1
reset for the glue logic
Item 2
reset for the controller
When the condition does not match (
else)Properties and child nodes (
properties)
resets— not listed as required hereMaximum number of items (
maxItems):1
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
sata@ffe08000 {
compatible = "snps,spear-ahci";
reg = <0xffe08000 0x1000>;
interrupts = <115>;
};
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/berlin2q.h>
#include <dt-bindings/ata/ahci.h>
sata@f7e90000 {
compatible = "marvell,berlin2q-ahci", "generic-ahci";
reg = <0xf7e90000 0x1000>;
interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&chip CLKID_SATA>;
#address-cells = <1>;
#size-cells = <0>;
hba-cap = <HBA_SMPS>;
sata0: sata-port@0 {
reg = <0>;
phys = <&sata_phy 0>;
target-supply = <®_sata0>;
hba-port-cap = <(HBA_PORT_FBSCP | HBA_PORT_ESP)>;
};
sata1: sata-port@1 {
reg = <1>;
phys = <&sata_phy 1>;
target-supply = <®_sata1>;
hba-port-cap = <(HBA_PORT_HPCP | HBA_PORT_MPSP | HBA_PORT_FBSCP)>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0