diff mbox series

[U-Boot,2/4,v3] armv8: dts: fsl-ls1012a: add sata node support

Message ID 20180713092531.18414-2-andy.tang@nxp.com
State Awaiting Upstream
Delegated to: York Sun
Headers show
Series [U-Boot,1/4,v3] armv8: fsl: remove sata support | expand

Commit Message

Andy Tang July 13, 2018, 9:25 a.m. UTC
From: Yuantian Tang <andy.tang@nxp.com>

One ls1012a, there is one SATA 3.0 advanced host controller interface
which is a high-performance SATA solution that delivers comprehensive
and fully-compliant generation 3 (1.5 Gb/s - 6.0 Gb/s) serial ATA
capabilities, in accordance with the serial ATA revision 3.0 of Serial
ATA International Organization.
Add sata node to support this feature.

Signed-off-by: Tang Yuantian <andy.tang@nxp.com>
---
v3:
    - no changes
v2:
    - add qds and 2g5rdb board support

 arch/arm/dts/fsl-ls1012a-2g5rdb.dts |    4 ++++
 arch/arm/dts/fsl-ls1012a-qds.dtsi   |    4 ++++
 arch/arm/dts/fsl-ls1012a-rdb.dtsi   |    4 ++++
 arch/arm/dts/fsl-ls1012a.dtsi       |    8 ++++++++
 4 files changed, 20 insertions(+), 0 deletions(-)

Comments

Simon Glass July 16, 2018, 5:19 a.m. UTC | #1
On 13 July 2018 at 03:25,  <andy.tang@nxp.com> wrote:
> From: Yuantian Tang <andy.tang@nxp.com>
>
> One ls1012a, there is one SATA 3.0 advanced host controller interface
> which is a high-performance SATA solution that delivers comprehensive
> and fully-compliant generation 3 (1.5 Gb/s - 6.0 Gb/s) serial ATA
> capabilities, in accordance with the serial ATA revision 3.0 of Serial
> ATA International Organization.
> Add sata node to support this feature.
>
> Signed-off-by: Tang Yuantian <andy.tang@nxp.com>
> ---
> v3:
>     - no changes
> v2:
>     - add qds and 2g5rdb board support
>
>  arch/arm/dts/fsl-ls1012a-2g5rdb.dts |    4 ++++
>  arch/arm/dts/fsl-ls1012a-qds.dtsi   |    4 ++++
>  arch/arm/dts/fsl-ls1012a-rdb.dtsi   |    4 ++++
>  arch/arm/dts/fsl-ls1012a.dtsi       |    8 ++++++++
>  4 files changed, 20 insertions(+), 0 deletions(-)

Reviewed-by: Simon Glass <sjg@chromium.org>
diff mbox series

Patch

diff --git a/arch/arm/dts/fsl-ls1012a-2g5rdb.dts b/arch/arm/dts/fsl-ls1012a-2g5rdb.dts
index db23cf8..cdd4ce4 100644
--- a/arch/arm/dts/fsl-ls1012a-2g5rdb.dts
+++ b/arch/arm/dts/fsl-ls1012a-2g5rdb.dts
@@ -40,3 +40,7 @@ 
 &duart0 {
 	status = "okay";
 };
+
+&sata {
+	status = "okay";
+};
diff --git a/arch/arm/dts/fsl-ls1012a-qds.dtsi b/arch/arm/dts/fsl-ls1012a-qds.dtsi
index d069b60..661af0e 100644
--- a/arch/arm/dts/fsl-ls1012a-qds.dtsi
+++ b/arch/arm/dts/fsl-ls1012a-qds.dtsi
@@ -125,3 +125,7 @@ 
 	status = "okay";
 	phy_type = "ulpi";
 };
+
+&sata {
+	status = "okay";
+};
diff --git a/arch/arm/dts/fsl-ls1012a-rdb.dtsi b/arch/arm/dts/fsl-ls1012a-rdb.dtsi
index 201e5fa..757e2eb 100644
--- a/arch/arm/dts/fsl-ls1012a-rdb.dtsi
+++ b/arch/arm/dts/fsl-ls1012a-rdb.dtsi
@@ -34,3 +34,7 @@ 
 &duart0 {
 	status = "okay";
 };
+
+&sata {
+	status = "okay";
+};
diff --git a/arch/arm/dts/fsl-ls1012a.dtsi b/arch/arm/dts/fsl-ls1012a.dtsi
index be99076..f22cbf4 100644
--- a/arch/arm/dts/fsl-ls1012a.dtsi
+++ b/arch/arm/dts/fsl-ls1012a.dtsi
@@ -134,6 +134,14 @@ 
 				  0x82000000 0x0 0x40000000 0x40 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */
 		};
 
+		sata: sata@3200000 {
+			compatible = "fsl,ls1012a-ahci";
+			reg = <0x0 0x3200000 0x0 0x10000>;
+			interrupts = <0 69 4>;
+			clocks = <&clockgen 4 0>;
+			status = "disabled";
+		};
+
 		usb0: usb2@8600000 {
 			compatible = "fsl-usb2-dr-v2.5", "fsl-usb2-dr";
 			reg = <0x0 0x8600000 0x0 0x1000>;