xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/ata/pata-common.yaml (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*4882a593Smuzhiyun%YAML 1.2
3*4882a593Smuzhiyun---
4*4882a593Smuzhiyun$id: http://devicetree.org/schemas/ata/pata-common.yaml#
5*4882a593Smuzhiyun$schema: http://devicetree.org/meta-schemas/core.yaml#
6*4882a593Smuzhiyun
7*4882a593Smuzhiyuntitle: Common Properties for Parallel AT attachment (PATA) controllers
8*4882a593Smuzhiyun
9*4882a593Smuzhiyunmaintainers:
10*4882a593Smuzhiyun  - Linus Walleij <linus.walleij@linaro.org>
11*4882a593Smuzhiyun
12*4882a593Smuzhiyundescription: |
13*4882a593Smuzhiyun  This document defines device tree properties common to most Parallel
14*4882a593Smuzhiyun  ATA (PATA, also known as IDE) AT attachment storage devices.
15*4882a593Smuzhiyun  It doesn't constitue a device tree binding specification by itself but is
16*4882a593Smuzhiyun  meant to be referenced by device tree bindings.
17*4882a593Smuzhiyun
18*4882a593Smuzhiyun  The PATA (IDE) controller-specific device tree bindings are responsible for
19*4882a593Smuzhiyun  defining whether each property is required or optional.
20*4882a593Smuzhiyun
21*4882a593Smuzhiyunproperties:
22*4882a593Smuzhiyun  $nodename:
23*4882a593Smuzhiyun    pattern: "^ide(@.*)?$"
24*4882a593Smuzhiyun    description:
25*4882a593Smuzhiyun      Specifies the host controller node. PATA host controller nodes are named
26*4882a593Smuzhiyun      "ide".
27*4882a593Smuzhiyun
28*4882a593Smuzhiyun  "#address-cells":
29*4882a593Smuzhiyun    const: 1
30*4882a593Smuzhiyun
31*4882a593Smuzhiyun  "#size-cells":
32*4882a593Smuzhiyun    const: 0
33*4882a593Smuzhiyun
34*4882a593SmuzhiyunpatternProperties:
35*4882a593Smuzhiyun  "^ide-port@[0-1]$":
36*4882a593Smuzhiyun    description: |
37*4882a593Smuzhiyun      DT nodes for ports connected on the PATA host. The master drive will have
38*4882a593Smuzhiyun      ID number 0 and the slave drive will have ID number 1. The PATA port
39*4882a593Smuzhiyun      nodes will be named "ide-port".
40*4882a593Smuzhiyun    type: object
41*4882a593Smuzhiyun
42*4882a593Smuzhiyun    properties:
43*4882a593Smuzhiyun      reg:
44*4882a593Smuzhiyun        minimum: 0
45*4882a593Smuzhiyun        maximum: 1
46*4882a593Smuzhiyun        description:
47*4882a593Smuzhiyun          The ID number of the drive port, 0 for the master port and 1 for the
48*4882a593Smuzhiyun          slave port.
49*4882a593Smuzhiyun
50*4882a593SmuzhiyunadditionalProperties: true
51*4882a593Smuzhiyun
52*4882a593Smuzhiyun...
53