Path: blob/main/sys/contrib/device-tree/Bindings/ata/ahci-platform.txt
48375 views
* AHCI SATA Controller12SATA nodes are defined to describe on-chip Serial ATA controllers.3Each SATA controller should have its own node.45It is possible, but not required, to represent each port as a sub-node.6It allows to enable each port independently when dealing with multiple7PHYs.89Required properties:10- compatible : compatible string, one of:11- "brcm,iproc-ahci"12- "hisilicon,hisi-ahci"13- "cavium,octeon-7130-ahci"14- "ibm,476gtr-ahci"15- "marvell,armada-380-ahci"16- "marvell,armada-3700-ahci"17- "snps,dwc-ahci"18- "snps,spear-ahci"19- "generic-ahci"20- interrupts : <interrupt mapping for SATA IRQ>21- reg : <registers mapping>2223Please note that when using "generic-ahci" you must also specify a SoC specific24compatible:25compatible = "manufacturer,soc-model-ahci", "generic-ahci";2627Optional properties:28- dma-coherent : Present if dma operations are coherent29- clocks : a list of phandle + clock specifier pairs30- resets : a list of phandle + reset specifier pairs31- target-supply : regulator for SATA target power32- phy-supply : regulator for PHY power33- phys : reference to the SATA PHY node34- phy-names : must be "sata-phy"35- ahci-supply : regulator for AHCI controller36- ports-implemented : Mask that indicates which ports that the HBA supports37are available for software to use. Useful if PORTS_IMPL38is not programmed by the BIOS, which is true with39some embedded SOC's.4041Required properties when using sub-nodes:42- #address-cells : number of cells to encode an address43- #size-cells : number of cells representing the size of an address4445Sub-nodes required properties:46- reg : the port number47And at least one of the following properties:48- phys : reference to the SATA PHY node49- target-supply : regulator for SATA target power5051Examples:52sata@ffe08000 {53compatible = "snps,spear-ahci";54reg = <0xffe08000 0x1000>;55interrupts = <115>;56};5758With sub-nodes:59sata@f7e90000 {60compatible = "marvell,berlin2q-achi", "generic-ahci";61reg = <0xe90000 0x1000>;62interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;63clocks = <&chip CLKID_SATA>;64#address-cells = <1>;65#size-cells = <0>;6667sata0: sata-port@0 {68reg = <0>;69phys = <&sata_phy 0>;70target-supply = <®_sata0>;71};7273sata1: sata-port@1 {74reg = <1>;75phys = <&sata_phy 1>;76target-supply = <®_sata1>;;77};78};798081