aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/ata/sata-common.yaml
diff options
context:
space:
mode:
authorSerge Semin <Sergey.Semin@baikalelectronics.ru>2022-09-09 22:36:00 +0300
committerDamien Le Moal <damien.lemoal@opensource.wdc.com>2022-09-17 01:39:00 +0900
commit0f3680ed1f4ca682e7a44aade35234632fe94505 (patch)
tree46d850911038a839d20c6326af738f08621a8c4f /Documentation/devicetree/bindings/ata/sata-common.yaml
parentdt-bindings: ata: ahci-platform: Move dma-coherent to sata-common.yaml (diff)
downloadlinux-dev-0f3680ed1f4ca682e7a44aade35234632fe94505.tar.xz
linux-dev-0f3680ed1f4ca682e7a44aade35234632fe94505.zip
dt-bindings: ata: ahci-platform: Detach common AHCI bindings
In order to create a more sophisticated AHCI controller DT bindings let's divide the already available generic AHCI platform YAML schema into the platform part and a set of the common AHCI properties. The former part will be used to evaluate the AHCI DT nodes mainly compatible with the generic AHCI controller while the later schema will be used for more thorough AHCI DT nodes description. For instance such YAML schemas design will be useful for our DW AHCI SATA controller derivative with four clock sources, two reset lines, one system controller reference and specific max Rx/Tx DMA xfers size constraints. Note the phys and target-supply property requirement is preserved in the generic AHCI platform bindings because some platforms can lack of the explicitly specified PHYs or target device power regulators. Also note the SATA/AHCI ports properties have been moved to the $defs-paragraph of the schemas. It's done in order to create the extendable properties hierarchy such that particular AHCI-controller could add vendor-specific port properties. Signed-off-by: Serge Semin <Sergey.Semin@baikalelectronics.ru> Reviewed-by: Rob Herring <robh@kernel.org> Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Diffstat (limited to 'Documentation/devicetree/bindings/ata/sata-common.yaml')
-rw-r--r--Documentation/devicetree/bindings/ata/sata-common.yaml8
1 files changed, 6 insertions, 2 deletions
diff --git a/Documentation/devicetree/bindings/ata/sata-common.yaml b/Documentation/devicetree/bindings/ata/sata-common.yaml
index cb88d3e25e73..5a31a902618d 100644
--- a/Documentation/devicetree/bindings/ata/sata-common.yaml
+++ b/Documentation/devicetree/bindings/ata/sata-common.yaml
@@ -35,9 +35,15 @@ properties:
patternProperties:
"^sata-port@[0-9a-e]$":
+ $ref: '#/$defs/sata-port'
description: |
DT nodes for ports connected on the SATA host. The SATA port
nodes will be named "sata-port".
+
+additionalProperties: true
+
+$defs:
+ sata-port:
type: object
properties:
@@ -49,6 +55,4 @@ patternProperties:
multiplier making it possible to connect up to 15 disks to a single
SATA port.
-additionalProperties: true
-
...