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