Merge branch 'for-4.6-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj...
[deliverable/linux.git] / Documentation / devicetree / bindings / ata / ahci-platform.txt
CommitLineData
5f098a3e 1* AHCI SATA Controller
02aac316
RH
2
3SATA nodes are defined to describe on-chip Serial ATA controllers.
4Each SATA controller should have its own node.
5
724f24ee
AT
6It is possible, but not required, to represent each port as a sub-node.
7It allows to enable each port independently when dealing with multiple
8PHYs.
9
02aac316 10Required properties:
5799d6d4
TP
11- compatible : compatible string, one of:
12 - "allwinner,sun4i-a10-ahci"
a1a205df 13 - "hisilicon,hisi-ahci"
a2127e40 14 - "cavium,octeon-7130-ahci"
5799d6d4 15 - "ibm,476gtr-ahci"
a3464ed2 16 - "marvell,armada-380-ahci"
dfc44af9 17 - "marvell,armada-3700-ahci"
5799d6d4
TP
18 - "snps,dwc-ahci"
19 - "snps,exynos5440-ahci"
20 - "snps,spear-ahci"
724f24ee 21 - "generic-ahci"
02aac316
RH
22- interrupts : <interrupt mapping for SATA IRQ>
23- reg : <registers mapping>
24
724f24ee
AT
25Please note that when using "generic-ahci" you must also specify a SoC specific
26compatible:
27 compatible = "manufacturer,soc-model-ahci", "generic-ahci";
28
8996b89d 29Optional properties:
1dc737c4 30- dma-coherent : Present if dma operations are coherent
156c5887 31- clocks : a list of phandle + clock specifier pairs
4b3e603a 32- target-supply : regulator for SATA target power
724f24ee
AT
33- phys : reference to the SATA PHY node
34- phy-names : must be "sata-phy"
17dcc37e
SK
35- ports-implemented : Mask that indicates which ports that the HBA supports
36 are available for software to use. Useful if PORTS_IMPL
37 is not programmed by the BIOS, which is true with
38 some embedded SOC's.
724f24ee
AT
39
40Required properties when using sub-nodes:
41- #address-cells : number of cells to encode an address
42- #size-cells : number of cells representing the size of an address
43
44
45Sub-nodes required properties:
6bd15996
GC
46- reg : the port number
47And at least one of the following properties:
48- phys : reference to the SATA PHY node
49- target-supply : regulator for SATA target power
8996b89d 50
c5754b52 51Examples:
02aac316 52 sata@ffe08000 {
91c20950
ML
53 compatible = "snps,spear-ahci";
54 reg = <0xffe08000 0x1000>;
55 interrupts = <115>;
02aac316 56 };
c5754b52
OS
57
58 ahci: sata@01c18000 {
59 compatible = "allwinner,sun4i-a10-ahci";
60 reg = <0x01c18000 0x1000>;
61 interrupts = <56>;
62 clocks = <&pll6 0>, <&ahb_gates 25>;
63 target-supply = <&reg_ahci_5v>;
64 };
724f24ee
AT
65
66With sub-nodes:
67 sata@f7e90000 {
68 compatible = "marvell,berlin2q-achi", "generic-ahci";
69 reg = <0xe90000 0x1000>;
70 interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
71 clocks = <&chip CLKID_SATA>;
72 #address-cells = <1>;
73 #size-cells = <0>;
74
75 sata0: sata-port@0 {
76 reg = <0>;
77 phys = <&sata_phy 0>;
6bd15996 78 target-supply = <&reg_sata0>;
724f24ee
AT
79 };
80
81 sata1: sata-port@1 {
82 reg = <1>;
83 phys = <&sata_phy 1>;
6bd15996 84 target-supply = <&reg_sata1>;;
724f24ee
AT
85 };
86 };
This page took 0.185375 seconds and 5 git commands to generate.