Synopsys DWC AHCI SATA controller for Rockchip devices
Schema identifier ($id): "http://devicetree.org/schemas/ata/rockchip,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 Synopsys DWC implementation of the AHCI SATA controller found in Rockchip devices.
Automatic schema selection (select) #
Properties and child nodes (
properties) #
compatible— required here #Rule for matching array elements (
contains)Allowed values (
enum):"rockchip,rk3568-dwc-ahci","rockchip,rk3576-dwc-ahci","rockchip,rk3588-dwc-ahci"
Properties and child nodes (properties) #
compatible — required here #
Array item rules (items) #
Item 1
Allowed values (
enum):"rockchip,rk3568-dwc-ahci","rockchip,rk3576-dwc-ahci","rockchip,rk3588-dwc-ahci"
Item 2
Exact value (
const):"snps,dwc-ahci"
ports-implemented — required here #
Exact value (const): 1
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
sata-port@0 — not listed as required here #
Shared schema rule ($ref): /schemas/ata/snps,dwc-ahci-common.yaml#/$defs/dwc-ahci-port
Properties and child nodes (properties) #
reg — not listed as required here
Exact value (const): 0
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Properties matching a name pattern (patternProperties) #
^sata-port@[1-9a-e]$ — name matches this regular expression #
false — Not permitted by this property rule.
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names", "ports-implemented"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):snps,dwc-ahci-common.yaml#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMaximum number of items (
maxItems):5
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"sata"Item 2
Exact value (
const):"pmalive"Item 3
Exact value (
const):"rxoob"Item 4
Exact value (
const):"ref"Item 5
Exact value (
const):"asic"
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"rockchip,rk3568-dwc-ahci","rockchip,rk3576-dwc-ahci"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMaximum number of items (
maxItems):3
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"sata"Item 2
Exact value (
const):"pmalive"Item 3
Exact value (
const):"rxoob"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/rockchip,rk3588-cru.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/ata/ahci.h>
#include <dt-bindings/phy/phy.h>
sata@fe210000 {
compatible = "rockchip,rk3588-dwc-ahci", "snps,dwc-ahci";
reg = <0xfe210000 0x1000>;
clocks = <&cru ACLK_SATA0>, <&cru CLK_PMALIVE0>,
<&cru CLK_RXOOB0>, <&cru CLK_PIPEPHY0_REF>,
<&cru CLK_PIPEPHY0_PIPE_ASIC_G>;
clock-names = "sata", "pmalive", "rxoob", "ref", "asic";
interrupts = <GIC_SPI 273 IRQ_TYPE_LEVEL_HIGH 0>;
ports-implemented = <0x1>;
#address-cells = <1>;
#size-cells = <0>;
sata-port@0 {
reg = <0>;
hba-port-cap = <HBA_PORT_FBSCP>;
phys = <&combphy0_ps PHY_TYPE_SATA>;
phy-names = "sata-phy";
snps,rx-ts-max = <32>;
snps,tx-ts-max = <32>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)