ipq806x: Add support for IPQ806x chip family
[openwrt/staging/lynxis/omap.git] / target / linux / ipq806x / patches / 0143-ata-qcom-Add-device-tree-bindings-information.patch
1 From dd280a4cf6b826144f74d3fc4285633f1c337a1d Mon Sep 17 00:00:00 2001
2 From: Kumar Gala <galak@codeaurora.org>
3 Date: Thu, 12 Jun 2014 11:28:47 -0500
4 Subject: [PATCH 143/182] ata: qcom: Add device tree bindings information
5
6 Add device tree binding for Qualcomm AHCI SATA controller and specifically
7 the sata controller on the IPQ806x family of SoCs.
8
9 Signed-off-by: Kumar Gala <galak@codeaurora.org>
10 ---
11 .../devicetree/bindings/ata/qcom-sata.txt | 40 ++++++++++++++++++++
12 1 file changed, 40 insertions(+)
13 create mode 100644 Documentation/devicetree/bindings/ata/qcom-sata.txt
14
15 diff --git a/Documentation/devicetree/bindings/ata/qcom-sata.txt b/Documentation/devicetree/bindings/ata/qcom-sata.txt
16 new file mode 100644
17 index 0000000..5e74e41
18 --- /dev/null
19 +++ b/Documentation/devicetree/bindings/ata/qcom-sata.txt
20 @@ -0,0 +1,40 @@
21 +* Qualcomm AHCI SATA Controller
22 +
23 +SATA nodes are defined to describe on-chip Serial ATA controllers.
24 +Each SATA controller should have its own node.
25 +
26 +Required properties:
27 +- compatible : compatible list, contains "qcom,msm-ahci"
28 +- interrupts : <interrupt mapping for SATA IRQ>
29 +- reg : <registers mapping>
30 +- phys : Must contain exactly one entry as specified
31 + in phy-bindings.txt
32 +- phy-names : Must be "sata-phy"
33 +
34 +Required properties for "qcom,ipq806x-ahci" compatible:
35 +- clocks : Must contain an entry for each entry in clock-names.
36 +- clock-names : Shall be:
37 + "slave_iface" - Fabric port AHB clock for SATA
38 + "iface" - AHB clock
39 + "core" - core clock
40 + "rxoob" - RX out-of-band clock
41 + "pmalive" - Power Module Alive clock
42 +
43 +Example:
44 + sata@29000000 {
45 + compatible = "qcom,ipq806x-ahci", "qcom,msm-ahci";
46 + reg = <0x29000000 0x180>;
47 +
48 + interrupts = <0 209 0x0>;
49 +
50 + clocks = <&gcc SFAB_SATA_S_H_CLK>,
51 + <&gcc SATA_H_CLK>,
52 + <&gcc SATA_A_CLK>,
53 + <&gcc SATA_RXOOB_CLK>,
54 + <&gcc SATA_PMALIVE_CLK>;
55 + clock-names = "slave_iface", "iface", "core",
56 + "rxoob", "pmalive";
57 +
58 + phys = <&sata_phy>;
59 + phy-names = "sata-phy";
60 + };
61 --
62 1.7.10.4
63