Skip to content

Commit 7c6a978

Browse files
AnimeshAgarwal28damien-lemoal
authored andcommitted
dt-bindings: ata: imx-pata: Convert to dtschema
Convert the imx-pata bindings to DT schema. Add missing fsl,imx31-pata and fsl,imx51-pata compatibles during conversion, because they are already being used in existing DTS. Signed-off-by: Animesh Agarwal <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Damien Le Moal <[email protected]>
1 parent 4cece76 commit 7c6a978

File tree

2 files changed

+42
-16
lines changed

2 files changed

+42
-16
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/ata/fsl,imx-pata.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Freescale i.MX PATA Controller
8+
9+
maintainers:
10+
- Animesh Agarwal <[email protected]>
11+
12+
properties:
13+
compatible:
14+
oneOf:
15+
- items:
16+
- enum:
17+
- fsl,imx31-pata
18+
- fsl,imx51-pata
19+
- const: fsl,imx27-pata
20+
- const: fsl,imx27-pata
21+
22+
reg:
23+
maxItems: 1
24+
25+
interrupts:
26+
items:
27+
- description: PATA Controller interrupts
28+
29+
clocks:
30+
items:
31+
- description: PATA Controller clocks
32+
33+
additionalProperties: false
34+
35+
examples:
36+
- |
37+
pata: pata@83fe0000 {
38+
compatible = "fsl,imx51-pata", "fsl,imx27-pata";
39+
reg = <0x83fe0000 0x4000>;
40+
interrupts = <70>;
41+
clocks = <&clks 161>;
42+
};

Documentation/devicetree/bindings/ata/imx-pata.txt

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)