-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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) <robh@kernel.org> Acked-by: Damien Le Moal <dlemoal@kernel.org> Signed-off-by: J. Neuschäfer <j.ne@posteo.net> Link: https://lore.kernel.org/r/20250220-ppcyaml-ata-v3-1-5e727ab86247@posteo.net Signed-off-by: Niklas Cassel <cassel@kernel.org>
- Loading branch information
J. Neuschäfer
authored and
Niklas Cassel
committed
Feb 21, 2025
1 parent
0ce4a0d
commit 08a04e2
Showing
2 changed files
with
60 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/ata/fsl,pq-sata.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: Freescale 8xxx/3.0 Gb/s SATA nodes | ||
|
||
maintainers: | ||
- J. Neuschäfer <j.ne@posteo.net> | ||
|
||
description: | ||
SATA nodes are defined to describe on-chip Serial ATA controllers. | ||
Each SATA controller should have its own node. | ||
|
||
properties: | ||
compatible: | ||
oneOf: | ||
- items: | ||
- enum: | ||
- fsl,mpc8377-sata | ||
- fsl,mpc8536-sata | ||
- fsl,mpc8315-sata | ||
- fsl,mpc8379-sata | ||
- const: fsl,pq-sata | ||
- const: fsl,pq-sata-v2 | ||
|
||
reg: | ||
maxItems: 1 | ||
|
||
interrupts: | ||
maxItems: 1 | ||
|
||
cell-index: | ||
$ref: /schemas/types.yaml#/definitions/uint32 | ||
enum: [1, 2, 3, 4] | ||
description: | | ||
1 for controller @ 0x18000 | ||
2 for controller @ 0x19000 | ||
3 for controller @ 0x1a000 | ||
4 for controller @ 0x1b000 | ||
required: | ||
- compatible | ||
- interrupts | ||
- cell-index | ||
|
||
additionalProperties: false | ||
|
||
examples: | ||
- | | ||
#include <dt-bindings/interrupt-controller/irq.h> | ||
sata@18000 { | ||
compatible = "fsl,mpc8379-sata", "fsl,pq-sata"; | ||
reg = <0x18000 0x1000>; | ||
cell-index = <1>; | ||
interrupts = <44 IRQ_TYPE_LEVEL_LOW>; | ||
}; | ||
... |
This file was deleted.
Oops, something went wrong.