]> git.itanic.dy.fi Git - linux-stable/commit
dt-bindings: ata: ahci: Add platform capability properties
authorSerge Semin <Sergey.Semin@baikalelectronics.ru>
Fri, 9 Sep 2022 19:36:09 +0000 (22:36 +0300)
committerDamien Le Moal <damien.lemoal@opensource.wdc.com>
Fri, 16 Sep 2022 16:39:38 +0000 (01:39 +0900)
commit03f1076fbe9fd0edd92011f1c97bf6daad83d01b
tree374f2b8782276ec22e6cc166add0bbcb4d5a20f1
parentf67f12ff57bcfcd7d64280f748787793217faeaf
dt-bindings: ata: ahci: Add platform capability properties

In case if the platform doesn't have BIOS or a comprehensive firmware
installed then the HBA capability flags will be left uninitialized. As a
good alternative we suggest to define the DT-properties with the AHCI
platform capabilities describing all the HW-init flags of the
corresponding capability register. Luckily there aren't too many of them.
SSS - Staggered Spin-up support and MPS - Mechanical Presence Switch
support determine the corresponding feature availability for the whole HBA
by means of the "hba-cap" property. Each port can have the "hba-port-cap"
property initialized indicating that the port supports some of the next
functionalities: HPCP - HotPlug capable port, MPSP - Mechanical Presence
Switch attached to a port, CPD - Cold Plug detection, ESP - External SATA
Port (eSATA), FBSCP - FIS-based switching capable port.

Signed-off-by: Serge Semin <Sergey.Semin@baikalelectronics.ru>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Documentation/devicetree/bindings/ata/ahci-common.yaml
Documentation/devicetree/bindings/ata/ahci-platform.yaml
include/dt-bindings/ata/ahci.h [new file with mode: 0644]