xref: /linux/Documentation/devicetree/bindings/ata/ata-generic.yaml (revision 3d0fe49454652117522f60bfbefb978ba0e5300b)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/ata/ata-generic.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Generic Parallel ATA Controller
8
9maintainers:
10  - Linus Walleij <linus.walleij@linaro.org>
11
12description:
13  Generic Parallel ATA controllers supporting PIO modes only.
14
15properties:
16  compatible:
17    items:
18      - enum:
19          - arm,vexpress-cf
20          - fsl,mpc8349emitx-pata
21      - const: ata-generic
22
23  reg:
24    items:
25      - description: Command interface registers
26      - description: Control interface registers
27
28  reg-shift:
29    enum: [ 1, 2 ]
30
31  interrupts:
32    maxItems: 1
33
34  ata-generic,use16bit:
35    type: boolean
36    description: Use 16-bit accesses instead of 32-bit for data transfers
37
38  pio-mode:
39    description: Maximum ATA PIO transfer mode
40    $ref: /schemas/types.yaml#/definitions/uint32
41    maximum: 6
42    default: 0
43
44required:
45  - compatible
46  - reg
47
48additionalProperties: false
49
50examples:
51  - |
52    compact-flash@1a000 {
53        compatible = "arm,vexpress-cf", "ata-generic";
54        reg = <0x1a000 0x100>,
55              <0x1a100 0xf00>;
56        reg-shift = <2>;
57    };
58...
59