Patchwork [5/6] ARM: berlin: add the AHCI node for the BG2

login
register
mail settings
Submitter Antoine Ténart
Date April 22, 2014, 3:38 p.m.
Message ID <1398181105-19714-6-git-send-email-antoine.tenart@free-electrons.com>
Download mbox | patch
Permalink /patch/341390/
State New
Headers show

Comments

Antoine Ténart - April 22, 2014, 3:38 p.m.
The BG2 has an AHCI SATA controller. Add the corresponding node
in its device tree.

Signed-off-by: Antoine Ténart <antoine.tenart@free-electrons.com>
---
 arch/arm/boot/dts/berlin2.dtsi | 7 +++++++
 1 file changed, 7 insertions(+)
Jisheng Zhang - April 23, 2014, 2:45 a.m.
Hi Antoine

On Tue, 22 Apr 2014 08:38:24 -0700
Antoine Ténart <antoine.tenart@free-electrons.com> wrote:

> The BG2 has an AHCI SATA controller. Add the corresponding node
> in its device tree.

The AHCI IP of BG2 is different with BG2Q, so the driver in the series of patch
doesn't work on BG2.

Thanks
Antoine Ténart - April 23, 2014, 8:58 a.m.
Jisheng,

On Wed, Apr 23, 2014 at 10:45:39AM +0800, Jisheng Zhang wrote:
> On Tue, 22 Apr 2014 08:38:24 -0700
> Antoine Ténart <antoine.tenart@free-electrons.com> wrote:
> 
> > The BG2 has an AHCI SATA controller. Add the corresponding node
> > in its device tree.
> 
> The AHCI IP of BG2 is different with BG2Q, so the driver in the series of patch
> doesn't work on BG2.

Thanks for the info! I'll drop BG2 and BG2CD nodes in the v2.

Antoine

Patch

diff --git a/arch/arm/boot/dts/berlin2.dtsi b/arch/arm/boot/dts/berlin2.dtsi
index 56a1af2f1052..3e98d9fa9ec7 100644
--- a/arch/arm/boot/dts/berlin2.dtsi
+++ b/arch/arm/boot/dts/berlin2.dtsi
@@ -176,6 +176,13 @@ 
 			};
 		};
 
+		ahci: sata@e90000 {
+			compatible = "marvell,berlin-ahci";
+			reg = <0xe90000 0x10000>;
+			interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
+			status = "disable";
+		};
+
 		apb@fc0000 {
 			compatible = "simple-bus";
 			#address-cells = <1>;