xref: /linux/Documentation/devicetree/bindings/ata/snps,dwc-ahci-common.yaml (revision cdd5b5a9761fd66d17586e4f4ba6588c70e640ea)
15c640becSSerge Semin# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
25c640becSSerge Semin%YAML 1.2
35c640becSSerge Semin---
45c640becSSerge Semin$id: http://devicetree.org/schemas/ata/snps,dwc-ahci-common.yaml#
55c640becSSerge Semin$schema: http://devicetree.org/meta-schemas/core.yaml#
65c640becSSerge Semin
75c640becSSerge Semintitle: Synopsys DWC AHCI SATA controller properties
85c640becSSerge Semin
95c640becSSerge Seminmaintainers:
105c640becSSerge Semin  - Serge Semin <fancer.lancer@gmail.com>
115c640becSSerge Semin
125c640becSSerge Semindescription:
135c640becSSerge Semin  This document defines device tree schema for the generic Synopsys DWC
145c640becSSerge Semin  AHCI controller properties.
155c640becSSerge Semin
165c640becSSerge Seminselect: false
175c640becSSerge Semin
185c640becSSerge SeminallOf:
195c640becSSerge Semin  - $ref: ahci-common.yaml#
205c640becSSerge Semin
215c640becSSerge Seminproperties:
225c640becSSerge Semin  reg:
235c640becSSerge Semin    maxItems: 1
245c640becSSerge Semin
255c640becSSerge Semin  interrupts:
265c640becSSerge Semin    maxItems: 1
275c640becSSerge Semin
285c640becSSerge Semin  clocks:
295c640becSSerge Semin    description:
305c640becSSerge Semin      Basic DWC AHCI SATA clock sources like application AXI/AHB BIU clock,
315c640becSSerge Semin      PM-alive clock, RxOOB detection clock, embedded PHYs reference (Rx/Tx)
325c640becSSerge Semin      clock, etc.
335c640becSSerge Semin    minItems: 1
34*2b3665b2SSebastian Reichel    maxItems: 6
355c640becSSerge Semin
365c640becSSerge Semin  clock-names:
375c640becSSerge Semin    minItems: 1
38*2b3665b2SSebastian Reichel    maxItems: 6
395c640becSSerge Semin    items:
405c640becSSerge Semin      oneOf:
415c640becSSerge Semin        - description: Application APB/AHB/AXI BIU clock
425c640becSSerge Semin          enum:
435c640becSSerge Semin            - pclk
445c640becSSerge Semin            - aclk
455c640becSSerge Semin            - hclk
465c640becSSerge Semin            - sata
475c640becSSerge Semin        - description: Power Module keep-alive clock
485c640becSSerge Semin          const: pmalive
495c640becSSerge Semin        - description: RxOOB detection clock
505c640becSSerge Semin          const: rxoob
51*2b3665b2SSebastian Reichel        - description: PHY Transmit Clock
52*2b3665b2SSebastian Reichel          const: asic
53*2b3665b2SSebastian Reichel        - description: PHY Receive Clock
54*2b3665b2SSebastian Reichel          const: rbc
555c640becSSerge Semin        - description: SATA Ports reference clock
565c640becSSerge Semin          const: ref
575c640becSSerge Semin
585c640becSSerge Semin  resets:
595c640becSSerge Semin    description:
605c640becSSerge Semin      At least basic application and reference clock domains resets are
615c640becSSerge Semin      normally supported by the DWC AHCI SATA controller.
625c640becSSerge Semin    minItems: 1
635c640becSSerge Semin    maxItems: 4
645c640becSSerge Semin
655c640becSSerge Semin  reset-names:
665c640becSSerge Semin    minItems: 1
675c640becSSerge Semin    maxItems: 4
685c640becSSerge Semin    items:
695c640becSSerge Semin      oneOf:
705c640becSSerge Semin        - description: Application AHB/AXI BIU clock domain reset control
715c640becSSerge Semin          enum:
725c640becSSerge Semin            - arst
735c640becSSerge Semin            - hrst
745c640becSSerge Semin        - description: Power Module keep-alive clock domain reset control
755c640becSSerge Semin          const: pmalive
765c640becSSerge Semin        - description: RxOOB detection clock domain reset control
775c640becSSerge Semin          const: rxoob
785c640becSSerge Semin        - description: Reference clock domain reset control
795c640becSSerge Semin          const: ref
805c640becSSerge Semin
815c640becSSerge SeminpatternProperties:
825c640becSSerge Semin  "^sata-port@[0-9a-e]$":
835c640becSSerge Semin    $ref: '#/$defs/dwc-ahci-port'
845c640becSSerge Semin
855c640becSSerge SeminadditionalProperties: true
865c640becSSerge Semin
875c640becSSerge Semin$defs:
885c640becSSerge Semin  dwc-ahci-port:
895c640becSSerge Semin    $ref: /schemas/ata/ahci-common.yaml#/$defs/ahci-port
905c640becSSerge Semin
915c640becSSerge Semin    properties:
925c640becSSerge Semin      reg:
935c640becSSerge Semin        minimum: 0
945c640becSSerge Semin        maximum: 7
955c640becSSerge Semin
965c640becSSerge Semin      snps,tx-ts-max:
975c640becSSerge Semin        $ref: /schemas/types.yaml#/definitions/uint32
985c640becSSerge Semin        description: Maximal size of Tx DMA transactions in FIFO words
995c640becSSerge Semin        enum: [ 1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024 ]
1005c640becSSerge Semin
1015c640becSSerge Semin      snps,rx-ts-max:
1025c640becSSerge Semin        $ref: /schemas/types.yaml#/definitions/uint32
1035c640becSSerge Semin        description: Maximal size of Rx DMA transactions in FIFO words
1045c640becSSerge Semin        enum: [ 1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024 ]
1055c640becSSerge Semin
1065c640becSSerge Semin...
107