Skip to contentSkip to conversation

ARM: dts: map SATA controller port to SATA PHY controller

PATCH Superseded Vasanth Ananthan 1 participant 2 messages Feb 5, 2013

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 ARM: dts: map SATA controller port to SATA PHY controller

Changes since v1:

Added a child node to sata-phy node for passing the sata phy PMU control registers base address and range.

Vasanth Ananthan (1):
ARM: dts: map SATA controller port to SATA PHY controller

 arch/arm/boot/dts/exynos5250-smdk5250.dts |   11 -----------
 arch/arm/boot/dts/exynos5250.dtsi         |   22 +++++++++++++++++++---
 arch/arm/mach-exynos/mach-exynos5-dt.c    |    4 ++--
 3 files changed, 21 insertions(+), 16 deletions(-)
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH v2 1/1 ARM: dts: map SATA controller port to SATA PHY controller

Adding port nodes to the sata controller node, thus mapping the ports in sata controller to the corresponding PHY controllers they are connected to.

---
 arch/arm/boot/dts/exynos5250-smdk5250.dts |   11 -----------
 arch/arm/boot/dts/exynos5250.dtsi         |   22 +++++++++++++++++++---
 arch/arm/mach-exynos/mach-exynos5-dt.c    |    4 ++--
 3 files changed, 21 insertions(+), 16 deletions(-)
arch/arm/boot/dts/exynos5250-smdk5250.dts +0 -11
index e05b18f..27cb264 100644
@@ -51,17 +51,6 @@
 		};
 	};
 
-	i2c@121D0000 {
-		samsung,i2c-sda-delay = <100>;
-		samsung,i2c-max-bus-freq = <40000>;
-		samsung,i2c-slave-addr = <0x38>;
-
-		sata-phy {
-			compatible = "samsung,sata-phy";
-			reg = <0x38>;
-		};
-	};
-
 	sata@122F0000 {
 		samsung,sata-freq = <66>;
 	};
arch/arm/boot/dts/exynos5250.dtsi +19 -3
index 30485de..f74c91d 100644
@@ -124,14 +124,22 @@
 	};
 
 	sata@122F0000 {
-		compatible = "samsung,exynos5-sata-ahci";
+		compatible = "samsung,exynos5250-ahci";
 		reg = <0x122F0000 0x1ff>;
 		interrupts = <0 115 0>;
+		samsung,exynos-sata-phy = <&phy0>;
 	};
 
-	sata-phy@12170000 {
-		compatible = "samsung,exynos5-sata-phy";
+	phy0: sata-phy@12170000 {
+		compatible = "samsung,exynos5250-sata-phy";
 		reg = <0x12170000 0x1ff>;
+		#address-cells = <1>;
+		#size-cells = <1>;
+		ranges;
+
+		sataphy-pmu {
+			reg = <0x10040724 0x4>;
+		};
 	};
 
 	i2c_0: i2c@12C60000 {
@@ -211,6 +219,14 @@
                 reg = <0x121D0000 0x100>;
                 #address-cells = <1>;
                 #size-cells = <0>;
+		samsung,i2c-sda-delay = <100>;
+		samsung,i2c-max-bus-freq = <40000>;
+		samsung,i2c-slave-addr = <0x38>;
+
+		sata-phy {
+			compatible = "samsung,exynos5250-sataphy";
+			reg = <0x38>;
+		};
 	};
 
 	spi_0: spi@12d20000 {
arch/arm/mach-exynos/mach-exynos5-dt.c +2 -2
index 4e074c6..932b1f7 100644
@@ -80,9 +80,9 @@ static const struct of_dev_auxdata exynos5250_auxdata_lookup[] __initconst = {
 				"exynos4210-spi.1", NULL),
 	OF_DEV_AUXDATA("samsung,exynos4210-spi", EXYNOS5_PA_SPI2,
 				"exynos4210-spi.2", NULL),
-	OF_DEV_AUXDATA("samsung,exynos5-sata-ahci", 0x122F0000,
+	OF_DEV_AUXDATA("samsung,exynos5250-ahci", 0x122F0000,
 				"exynos5-sata", NULL),
-	OF_DEV_AUXDATA("samsung,exynos5-sata-phy", 0x12170000,
+	OF_DEV_AUXDATA("samsung,exynos5250-sata-phy", 0x12170000,
 				"exynos5-sata-phy", NULL),
 	OF_DEV_AUXDATA("samsung,exynos5-sata-phy-i2c", 0x121D0000,
 				"exynos5-sata-phy-i2c", NULL),
Signature · 1 line
1.7.9.5