Skip to content

Commit e512448

Browse files
author
Kumar Gala
committed
ARM: dts: qcom: Add SATA support on IPQ8064/AP148
Add SATA PHY and SATA AHCI controller nodes to device tree to enable generic ahci support on the IPQ8064/AP148 board. Signed-off-by: Kumar Gala <galak@codeaurora.org>
1 parent aabff7b commit e512448

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed

arch/arm/boot/dts/qcom-ipq8064-ap148.dts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,5 +81,13 @@
8181
};
8282
};
8383
};
84+
85+
sata-phy@1b400000 {
86+
status = "ok";
87+
};
88+
89+
sata@29000000 {
90+
status = "ok";
91+
};
8492
};
8593
};

arch/arm/boot/dts/qcom-ipq8064.dtsi

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,39 @@
234234
};
235235
};
236236

237+
sata_phy: sata-phy@1b400000 {
238+
compatible = "qcom,ipq806x-sata-phy";
239+
reg = <0x1b400000 0x200>;
240+
241+
clocks = <&gcc SATA_PHY_CFG_CLK>;
242+
clock-names = "cfg";
243+
244+
#phy-cells = <0>;
245+
status = "disabled";
246+
};
247+
248+
sata@29000000 {
249+
compatible = "qcom,ipq806x-ahci", "generic-ahci";
250+
reg = <0x29000000 0x180>;
251+
252+
interrupts = <0 209 0x0>;
253+
254+
clocks = <&gcc SFAB_SATA_S_H_CLK>,
255+
<&gcc SATA_H_CLK>,
256+
<&gcc SATA_A_CLK>,
257+
<&gcc SATA_RXOOB_CLK>,
258+
<&gcc SATA_PMALIVE_CLK>;
259+
clock-names = "slave_face", "iface", "core",
260+
"rxoob", "pmalive";
261+
262+
assigned-clocks = <&gcc SATA_RXOOB_CLK>, <&gcc SATA_PMALIVE_CLK>;
263+
assigned-clock-rates = <100000000>, <100000000>;
264+
265+
phys = <&sata_phy>;
266+
phy-names = "sata-phy";
267+
status = "disabled";
268+
};
269+
237270
qcom,ssbi@500000 {
238271
compatible = "qcom,ssbi";
239272
reg = <0x00500000 0x1000>;

0 commit comments

Comments
 (0)