mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-08-31 22:23:05 +00:00

Convert the Marvell Orion SATA Controller to DT schema format. The clocks and clock-names properties were missing. The names for phy-names were incorrect. The maximum "nr-ports" was determined from the Linux driver. Signed-off-by: Rob Herring (Arm) <robh@kernel.org> Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
84 lines
1.4 KiB
YAML
84 lines
1.4 KiB
YAML
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/ata/marvell,orion-sata.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: Marvell Orion SATA
|
|
|
|
maintainers:
|
|
- Andrew Lunn <andrew@lunn.ch>
|
|
- Gregory Clement <gregory.clement@bootlin.com>
|
|
|
|
allOf:
|
|
- $ref: sata-common.yaml#
|
|
|
|
properties:
|
|
compatible:
|
|
enum:
|
|
- marvell,orion-sata
|
|
- marvell,armada-370-sata
|
|
|
|
reg:
|
|
maxItems: 1
|
|
|
|
clocks:
|
|
minItems: 1
|
|
maxItems: 8
|
|
|
|
clock-names:
|
|
minItems: 1
|
|
items:
|
|
- const: '0'
|
|
- const: '1'
|
|
- const: '2'
|
|
- const: '3'
|
|
- const: '4'
|
|
- const: '5'
|
|
- const: '6'
|
|
- const: '7'
|
|
|
|
interrupts:
|
|
maxItems: 1
|
|
|
|
nr-ports:
|
|
description:
|
|
Number of SATA ports in use.
|
|
$ref: /schemas/types.yaml#/definitions/uint32
|
|
maximum: 8
|
|
|
|
phys:
|
|
minItems: 1
|
|
maxItems: 8
|
|
|
|
phy-names:
|
|
minItems: 1
|
|
items:
|
|
- const: port0
|
|
- const: port1
|
|
- const: port2
|
|
- const: port3
|
|
- const: port4
|
|
- const: port5
|
|
- const: port6
|
|
- const: port7
|
|
|
|
required:
|
|
- compatible
|
|
- reg
|
|
- interrupts
|
|
- nr-ports
|
|
|
|
unevaluatedProperties: false
|
|
|
|
examples:
|
|
- |
|
|
sata@80000 {
|
|
compatible = "marvell,orion-sata";
|
|
reg = <0x80000 0x5000>;
|
|
interrupts = <21>;
|
|
phys = <&sata_phy0>, <&sata_phy1>;
|
|
phy-names = "port0", "port1";
|
|
nr-ports = <2>;
|
|
};
|