ipq806x: Add support for IPQ806x chip family
[openwrt/staging/wigyori.git] / target / linux / ipq806x / patches / 0146-ARM-dts-qcom-Add-SATA-support-for-IPQ8064-and-AP148-.patch
1 From 6992cf3e8900d042a845eafc11e7841f32fec0a6 Mon Sep 17 00:00:00 2001
2 From: Kumar Gala <galak@codeaurora.org>
3 Date: Thu, 12 Jun 2014 10:56:54 -0500
4 Subject: [PATCH 146/182] ARM: dts: qcom: Add SATA support for IPQ8064 and
5 AP148 board
6
7 ---
8 arch/arm/boot/dts/qcom-ipq8064-ap148.dts | 8 ++++++++
9 arch/arm/boot/dts/qcom-ipq8064.dtsi | 30 ++++++++++++++++++++++++++++++
10 2 files changed, 38 insertions(+)
11
12 diff --git a/arch/arm/boot/dts/qcom-ipq8064-ap148.dts b/arch/arm/boot/dts/qcom-ipq8064-ap148.dts
13 index 11f7a77..c752889 100644
14 --- a/arch/arm/boot/dts/qcom-ipq8064-ap148.dts
15 +++ b/arch/arm/boot/dts/qcom-ipq8064-ap148.dts
16 @@ -118,5 +118,13 @@
17 0x81000000 0 0 0x31e00000 0 0x00100000 /* downstream I/O */
18 0x82000000 0 0x00000000 0x2e000000 0 0x03e00000>; /* non-prefetchable memory */
19 };
20 +
21 + sata-phy@1b400000 {
22 + status = "ok";
23 + };
24 +
25 + sata@29000000 {
26 + status = "ok";
27 + };
28 };
29 };
30 diff --git a/arch/arm/boot/dts/qcom-ipq8064.dtsi b/arch/arm/boot/dts/qcom-ipq8064.dtsi
31 index 42a651f..93c0315 100644
32 --- a/arch/arm/boot/dts/qcom-ipq8064.dtsi
33 +++ b/arch/arm/boot/dts/qcom-ipq8064.dtsi
34 @@ -339,5 +339,35 @@
35 clock-names = "core", "iface", "phy";
36 status = "disabled";
37 };
38 +
39 + sata_phy: sata-phy@1b400000 {
40 + compatible = "qcom,ipq806x-sata-phy";
41 + reg = <0x1b400000 0x200>;
42 +
43 + clocks = <&gcc SATA_PHY_CFG_CLK>;
44 + clock-names = "cfg";
45 +
46 + #phy-cells = <0>;
47 + status = "disabled";
48 + };
49 +
50 + sata@29000000 {
51 + compatible = "qcom,ipq806x-ahci", "qcom,msm-ahci";
52 + reg = <0x29000000 0x180>;
53 +
54 + interrupts = <0 209 0x0>;
55 +
56 + clocks = <&gcc SFAB_SATA_S_H_CLK>,
57 + <&gcc SATA_H_CLK>,
58 + <&gcc SATA_A_CLK>,
59 + <&gcc SATA_RXOOB_CLK>,
60 + <&gcc SATA_PMALIVE_CLK>;
61 + clock-names = "slave_face", "iface", "core",
62 + "rxoob", "pmalive";
63 +
64 + phys = <&sata_phy>;
65 + phy-names = "sata-phy";
66 + status = "disabled";
67 + };
68 };
69 };
70 --
71 1.7.10.4
72