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