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