Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings: Create DT bindings for SATA controllers

I need to create subnodes for drives connected to SATA
host controllers, and this needs to be supported
generally, so create a common YAML binding for
"sata" that will support subnodes with ports.

This has been designed as a subset of
ata/ahci-platform.txt with the bare essentials and
should be possible to extend or superset to cover the
common bindings.

Cc: Rob Herring <robh+dt@kernel.org>
Cc: devicetree@vger.kernel.org
Cc: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
[robh: fixup sata-port unit-address pattern]
Signed-off-by: Rob Herring <robh@kernel.org>

authored by

Linus Walleij and committed by
Rob Herring
2b966a9d 832a9fc9

+50
+50
Documentation/devicetree/bindings/ata/sata-common.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/ata/sata-common.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Common Properties for Serial AT attachment (SATA) controllers 8 + 9 + maintainers: 10 + - Linus Walleij <linus.walleij@linaro.org> 11 + 12 + description: | 13 + This document defines device tree properties common to most Serial 14 + AT attachment (SATA) storage devices. It doesn't constitute a device tree 15 + binding specification by itself but is meant to be referenced by device 16 + tree bindings. 17 + 18 + The SATA controller-specific device tree bindings are responsible for 19 + defining whether each property is required or optional. 20 + 21 + properties: 22 + $nodename: 23 + pattern: "^sata(@.*)?$" 24 + description: 25 + Specifies the host controller node. SATA host controller nodes are named 26 + "sata" 27 + 28 + "#address-cells": 29 + const: 1 30 + 31 + "#size-cells": 32 + const: 0 33 + 34 + patternProperties: 35 + "^sata-port@[0-9a-e]$": 36 + description: | 37 + DT nodes for ports connected on the SATA host. The SATA port 38 + nodes will be named "sata-port". 39 + type: object 40 + 41 + properties: 42 + reg: 43 + minimum: 0 44 + maximum: 14 45 + description: 46 + The ID number of the drive port SATA can potentially use a port 47 + multiplier making it possible to connect up to 15 disks to a single 48 + SATA port. 49 + 50 + ...