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