MediaTek Serial ATA controller

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

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

Maintainers (maintainers): "Ryder Lee <ryder.lee@mediatek.com>"

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — not listed as required here #

Array item rules (items) #

Item 1

Allowed values (enum): "mediatek,mt7622-ahci"

Item 2

Exact value (const): "mediatek,mtk-ahci"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

interrupt-names — required here #

Exact value (const): "hostc"

clocks — required here #

Maximum number of items (maxItems): 5

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "ahb"

Item 2

Exact value (const): "axi"

Item 3

Exact value (const): "asic"

Item 4

Exact value (const): "rbc"

Item 5

Exact value (const): "pm"

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

resets — not listed as required here #

Maximum number of items (maxItems): 3

reset-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "axi"

Item 2

Exact value (const): "sw"

Item 3

Exact value (const): "reg"

mediatek,phy-mode — not listed as required here #

System controller phandle, used to enable SATA function

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

Required in this object (required): "reg", "interrupts", "interrupt-names", "clocks", "clock-names", "phys", "phy-names", "ports-implemented"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/mt7622-clk.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/phy/phy.h>
#include <dt-bindings/power/mt7622-power.h>
#include <dt-bindings/reset/mt7622-reset.h>

sata@1a200000 {
    compatible = "mediatek,mt7622-ahci", "mediatek,mtk-ahci";
    reg = <0x1a200000 0x1100>;
    interrupts = <GIC_SPI 233 IRQ_TYPE_LEVEL_HIGH>;
    interrupt-names = "hostc";
    clocks = <&pciesys CLK_SATA_AHB_EN>,
             <&pciesys CLK_SATA_AXI_EN>,
             <&pciesys CLK_SATA_ASIC_EN>,
             <&pciesys CLK_SATA_RBC_EN>,
             <&pciesys CLK_SATA_PM_EN>;
    clock-names = "ahb", "axi", "asic", "rbc", "pm";
    phys = <&u3port1 PHY_TYPE_SATA>;
    phy-names = "sata-phy";
    ports-implemented = <0x1>;
    power-domains = <&scpsys MT7622_POWER_DOMAIN_HIF0>;
    resets = <&pciesys MT7622_SATA_AXI_BUS_RST>,
             <&pciesys MT7622_SATA_PHY_SW_RST>,
             <&pciesys MT7622_SATA_PHY_REG_RST>;
    reset-names = "axi", "sw", "reg";
    mediatek,phy-mode = <&pciesys>;
};

Source notes #

Annotations retained from the schema source

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

Edit this page