Skip to content

Commit 08a04e2

Browse files
neuschaeferfloatious
authored andcommitted
dt-bindings: ata: Convert fsl,pq-sata to YAML
Convert the Freescale PowerQUICC SATA controller binding from text form to YAML. The list of compatible strings reflects current usage. To clarify the description, I changed it to mention "each SATA controller" instead of each port. Reviewed-by: Rob Herring (Arm) <[email protected]> Acked-by: Damien Le Moal <[email protected]> Signed-off-by: J. Neuschäfer <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Niklas Cassel <[email protected]>
1 parent 0ce4a0d commit 08a04e2

File tree

2 files changed

+60
-28
lines changed

2 files changed

+60
-28
lines changed
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
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,pq-sata.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Freescale 8xxx/3.0 Gb/s SATA nodes
8+
9+
maintainers:
10+
- J. Neuschäfer <[email protected]>
11+
12+
description:
13+
SATA nodes are defined to describe on-chip Serial ATA controllers.
14+
Each SATA controller should have its own node.
15+
16+
properties:
17+
compatible:
18+
oneOf:
19+
- items:
20+
- enum:
21+
- fsl,mpc8377-sata
22+
- fsl,mpc8536-sata
23+
- fsl,mpc8315-sata
24+
- fsl,mpc8379-sata
25+
- const: fsl,pq-sata
26+
- const: fsl,pq-sata-v2
27+
28+
reg:
29+
maxItems: 1
30+
31+
interrupts:
32+
maxItems: 1
33+
34+
cell-index:
35+
$ref: /schemas/types.yaml#/definitions/uint32
36+
enum: [1, 2, 3, 4]
37+
description: |
38+
1 for controller @ 0x18000
39+
2 for controller @ 0x19000
40+
3 for controller @ 0x1a000
41+
4 for controller @ 0x1b000
42+
43+
required:
44+
- compatible
45+
- interrupts
46+
- cell-index
47+
48+
additionalProperties: false
49+
50+
examples:
51+
- |
52+
#include <dt-bindings/interrupt-controller/irq.h>
53+
sata@18000 {
54+
compatible = "fsl,mpc8379-sata", "fsl,pq-sata";
55+
reg = <0x18000 0x1000>;
56+
cell-index = <1>;
57+
interrupts = <44 IRQ_TYPE_LEVEL_LOW>;
58+
};
59+
60+
...

Documentation/devicetree/bindings/ata/fsl-sata.txt

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

0 commit comments

Comments
 (0)