Skip to contentSkip to conversation

SATA for r8a7795, Salvator-X

PATCH New Ulrich Hecht 2 participants 4 messages Dec 16, 2015

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

v2 cover SATA for r8a7795, Salvator-X

Hi!

This is an adaptation of the patch set from the BSP, adjusted to the new PFC and MSTP clock models.

This revision drops the patches that have been picked up by Simon and Geert, incrementally fixes the incorrect clock assignment, and drops the unnecessary pin assignment from the DT.

CU
Uli

Changes since v1:
- drop picked up patches
- drop superfluous pin assignment
- fix SATA clock assignment (915 -> 815)

Ulrich Hecht (2):
clk: shmobile: r8a7795: Add SATA0 clock
arm64: dts: r8a7795: fix SATA clock assignment

 arch/arm64/boot/dts/renesas/r8a7795.dtsi | 2 +-
 drivers/clk/shmobile/r8a7795-cpg-mssr.c  | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)
Signature · 1 line
2.6.3
#1 lore raw

PATCH v2 1/2 clk: shmobile: r8a7795: Add SATA0 clock

---
 drivers/clk/shmobile/r8a7795-cpg-mssr.c | 1 +
 1 file changed, 1 insertion(+)
drivers/clk/shmobile/r8a7795-cpg-mssr.c +1 -0
index 05479e6..23e98fe 100644
@@ -151,6 +151,7 @@ static const struct mssr_mod_clk r8a7795_mod_clks[] __initconst = {
 	DEF_MOD("hdmi1",		 728,	R8A7795_CLK_HDMI),
 	DEF_MOD("hdmi0",		 729,	R8A7795_CLK_HDMI),
 	DEF_MOD("etheravb",		 812,	R8A7795_CLK_S3D2),
+	DEF_MOD("sata0",		 815,	R8A7795_CLK_S3D2),
 	DEF_MOD("gpio7",		 905,	R8A7795_CLK_CP),
 	DEF_MOD("gpio6",		 906,	R8A7795_CLK_CP),
 	DEF_MOD("gpio5",		 907,	R8A7795_CLK_CP),
Signature · 1 line
2.6.3
#2 lore raw

PATCH v2 2/2 arm64: dts: r8a7795: fix SATA clock assignment

In reply to Ulrich Hecht

SATA clock is 815, not 915.

---
 arch/arm64/boot/dts/renesas/r8a7795.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/renesas/r8a7795.dtsi +1 -1
index 7d4707e..7b02281 100644
@@ -977,7 +977,7 @@
 			compatible = "renesas,sata-r8a7795";
 			reg = <0 0xee300000 0 0x1fff>;
 			interrupts = <GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH>;
-			clocks = <&cpg CPG_MOD 915>;
+			clocks = <&cpg CPG_MOD 815>;
 			status = "disabled";
 		};
 	};
Signature · 1 line
2.6.3
#3 lore raw

PATCH v2 2/2 arm64: dts: r8a7795: fix SATA clock assignment

Quoted 1 line · Ulrich Hecht

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds