Skip to contentSkip to conversation

armv8: dts: fsl-lx2160a: add sata node support

PATCH New Peng Ma 2 participants 3 messages Nov 30, 2018 – Feb 20, 2019 Arm (32-bit)

lore
Share & tools
lore

Peng Ma

author
#0 lore raw

PATCH 1/2 armv8: dts: fsl-lx2160a: add sata node support

One lx2160A, 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.

---
 arch/arm/dts/fsl-lx2160a-rdb.dts |   16 ++++++++++++++++
 arch/arm/dts/fsl-lx2160a.dtsi    |   37 +++++++++++++++++++++++++++++++++++++
 2 files changed, 53 insertions(+), 0 deletions(-)
arch/arm/dts/fsl-lx2160a-rdb.dts +16 -0
index c3b3a06..7c4f0e7 100644
@@ -53,3 +53,19 @@
 &esdhc1 {
 	status = "okay";
 };
+
+&sata0 {
+	status = "okay";
+};
+
+&sata1 {
+	status = "okay";
+};
+
+&sata2 {
+	status = "okay";
+};
+
+&sata3 {
+	status = "okay";
+};
arch/arm/dts/fsl-lx2160a.dtsi +37 -0
index c268bd9..c8cab6a 100644
@@ -238,4 +238,41 @@
 		bus-range = <0x0 0xff>;
 		ranges = <0x82000000 0x0 0x40000000 0xa8 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */
 	};
+
+	sata0: sata at 3200000 {
+			compatible = "fsl,ls2080a-ahci";
+			reg = <0x0 0x3200000 0x0 0x10000>;
+			interrupts = <0 133 4>;
+			clocks = <&clockgen 4 3>;
+			status = "disabled";
+
+	};
+
+	sata1: sata at 3210000 {
+			compatible = "fsl,ls2080a-ahci";
+			reg = <0x0 0x3210000 0x0 0x10000>;
+			interrupts = <0 136 4>;
+			clocks = <&clockgen 4 3>;
+			status = "disabled";
+
+	};
+
+	sata2: sata at 3220000 {
+			compatible = "fsl,ls2080a-ahci";
+			reg = <0x0 0x3220000 0x0 0x10000>;
+			interrupts = <0 97 4>;
+			clocks = <&clockgen 4 3>;
+			status = "disabled";
+
+	};
+
+	sata3: sata at 3230000 {
+			compatible = "fsl,ls2080a-ahci";
+			reg = <0x0 0x3230000 0x0 0x10000>;
+			interrupts = <0 100 4>;
+			clocks = <&clockgen 4 3>;
+			status = "disabled";
+
+	};
+
 };
Signature · 1 line
1.7.1
author
#1 lore raw

PATCH 2/2 arm64: lx2160ardb: enable DM support for sata

Enable related configs to support sata DM feature.

---
 configs/lx2160ardb_tfa_defconfig |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
configs/lx2160ardb_tfa_defconfig +3 -0
index b319cb6..f971d67 100644
@@ -81,3 +81,6 @@ CONFIG_PHY_INPHI=y
 CONFIG_INPHI_25G=y
 CONFIG_HUSH_PARSER=y
 CONFIG_EMC2305=y
+CONFIG_DM_SCSI=y
+CONFIG_SATA_CEVA=y
+CONFIG_AHCI=y
Signature · 1 line
1.7.1
#2 lore raw

PATCH 2/2 arm64: lx2160ardb: enable DM support for sata

Quoted 12 lines

-----Original Message-----
From: U-Boot <[email protected]> On Behalf Of Peng Ma
Sent: Friday, November 30, 2018 9:04 AM
To: York Sun <[email protected]>
Cc: Xiaowei Bao <[email protected]>; Priyanka Jain <[email protected]>; Z.q. Hou <[email protected]>; Peng Ma <[email protected]>; u-boot at lists.denx.de; Rajat Srivastava <[email protected]>; Yinbo Zhu <[email protected]>
Subject: [U-Boot] [PATCH 2/2] arm64: lx2160ardb: enable DM support for sata

Quoted 4 lines

Enable related configs to support sata DM feature.

---

Squashed with lx2rdb and applied to fsl-qoriq master, awaiting upstream.

--pk