Simon Horman | 25 May 2013 08:45
Picon

[GIT PULL] Renesas ARM based SoC pinmux fix for v3.10 (repost)

[ Repost after hopefully resolving a local mail configuration problem ]

Hi Olof, Hi Arnd,

The following changes since commit c7788792a5e7b0d5d7f96d0766b4cb6112d47d75:

  Linux 3.10-rc2 (2013-05-20 14:37:38 -0700)

are available in the git repository at:

  git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-pinmux-fixes2-for-v3.10

for you to fetch changes up to 16a31ebde0763580ed6891094249e1bd4a329be1:

  sh-pfc: r8a7779: Don't group USB OVC and PENC pins (2013-05-22 22:01:59 +0900)

----------------------------------------------------------------
Correction to USB OVC and PENC pin groupings on r8a7779 SoC.
This avoids conflicts when the USB_OVCn pins are used by another function.
This has been observed to be a problem in v3.10-rc1.

----------------------------------------------------------------
Laurent Pinchart (1):
      sh-pfc: r8a7779: Don't group USB OVC and PENC pins

 drivers/pinctrl/sh-pfc/pfc-r8a7779.c |   45 +++++++++++++++++++++++++++-------
 1 file changed, 36 insertions(+), 9 deletions(-)
--
To unsubscribe from this list: send the line "unsubscribe linux-sh" in
the body of a message to majordomo <at> vger.kernel.org
(Continue reading)

Simon Horman | 25 May 2013 08:42
Picon

[GIT PULL] Renesas ARM sh73a0 SoC fix for v3.10 (repost)

[ Repost after hopefully resolving a local mail configuration problem ]

Hi Arnd, Hi Olof,

The following changes since commit c7788792a5e7b0d5d7f96d0766b4cb6112d47d75:

  Linux 3.10-rc2 (2013-05-20 14:37:38 -0700)

are available in the git repository at:

  git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-soc-sh73a0-fixes-for-v3.10

for you to fetch changes up to 5f17a516534924d40e6e0a24dcfd06e397a68485:

  ARM: shmobile: sh73a0: Update CMT clockevent rating to 80 (2013-05-22 23:47:48 +0900)

----------------------------------------------------------------
Update CMT clock rating for sh73a0 SoC to resolve boot failure
on kzm9g-reference. This resolves a regression between v3.9 and v3.10-rc1.

----------------------------------------------------------------
Simon Horman (1):
      ARM: shmobile: sh73a0: Update CMT clockevent rating to 80

 arch/arm/mach-shmobile/setup-sh73a0.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
--
To unsubscribe from this list: send the line "unsubscribe linux-sh" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
(Continue reading)

Simon Horman | 24 May 2013 04:06
Picon

[PATCH] ARM: mach-shmobile: r8a7790: add SATA support

Add SATA clock for r8a7790 SoC (for both device tree and usual cases).
Register SATA controller as a "late" platform device on r8a7790 SoC.

Based on "ARM: mach-shmobile: r8a7779: add SATA support" by
Vladimir Barinov.

Signed-off-by: Simon Horman <horms+renesas <at> verge.net.au>
---
 arch/arm/mach-shmobile/clock-r8a7790.c |  4 ++++
 arch/arm/mach-shmobile/setup-r8a7790.c | 21 +++++++++++++++++++++
 2 files changed, 25 insertions(+)

diff --git a/arch/arm/mach-shmobile/clock-r8a7790.c b/arch/arm/mach-shmobile/clock-r8a7790.c
index b393592..3619a52 100644
--- a/arch/arm/mach-shmobile/clock-r8a7790.c
+++ b/arch/arm/mach-shmobile/clock-r8a7790.c
 <at>  <at>  -50,6 +50,7  <at>  <at> 
 #define SMSTPCR2 0xe6150138
 #define SMSTPCR3 0xe615013c
 #define SMSTPCR7 0xe615014c
+#define SMSTPCR8 0xe6150990

 #define MODEMR		0xE6160060
 #define SDCKCR		0xE6150074
 <at>  <at>  -180,6 +181,7  <at>  <at>  static struct clk div6_clks[DIV6_NR] = {

 /* MSTP */
 enum {
+	MSTP814,
 	MSTP721, MSTP720,
(Continue reading)

Simon Horman | 24 May 2013 04:05
Picon

[PATCH] libata: do not limit R-Car SATA driver to shmobile

The motivation for this is to allow the driver to be
used with the r8a7790 SoC.

I believe that rather than adding another SoC to the list of allowed SoCs
it is better to simply remove the dependency of the driver on shmobile all
together.

Signed-off-by: Simon Horman <horms+renesas <at> verge.net.au>
---
 drivers/ata/Kconfig | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig
index a5a3ebc..aba6e93 100644
--- a/drivers/ata/Kconfig
+++ b/drivers/ata/Kconfig
 <at>  <at>  -263,7 +263,6  <at>  <at>  config SATA_PROMISE

 config SATA_RCAR
 	tristate "Renesas R-Car SATA support"
-	depends on ARCH_SHMOBILE && ARCH_R8A7779
 	help
 	  This option enables support for Renesas R-Car Serial ATA.

--

-- 
1.8.2.1

--
To unsubscribe from this list: send the line "unsubscribe linux-sh" in
the body of a message to majordomo <at> vger.kernel.org
(Continue reading)

Sergei Shtylyov | 24 May 2013 00:11
Favicon

[PATCH v6] V4L2: soc_camera: Renesas R-Car VIN driver

From: Vladimir Barinov <vladimir.barinov <at> cogentembedded.com>

Add Renesas R-Car VIN (Video In) V4L2 driver.

Based on the patch by Phil Edworthy <phil.edworthy <at> renesas.com>.

Signed-off-by: Vladimir Barinov <vladimir.barinov <at> cogentembedded.com>
[Sergei: removed deprecated IRQF_DISABLED flag, reordered/renamed 'enum chip_id'
values, reordered rcar_vin_id_table[] entries,  removed senseless parens from
to_buf_list() macro, used ALIGN() macro in rcar_vin_setup(), added {} to the
*if* statement  and  used 'bool' values instead of 0/1 where necessary, removed
unused macros, done some reformatting and clarified some comments.]
Signed-off-by: Sergei Shtylyov <sergei.shtylyov <at> cogentembedded.com>

---
This patch is against the 'media_tree.git' repo.
It requires two following patches from Guennadi Liakhovetski:

https://patchwork.linuxtv.org/patch/18209/
https://patchwork.linuxtv.org/patch/18210/

Changes since version 5:
- handled subdevice's inability to support cropping;
- set the field format depending on a video standard.

Changes since version 4:
- added "select SOC_CAMERA_SCALE_CROP" to Kconfig entry;
- added #include "soc_scale_crop.h", made use of the functions declared there
  instead of the analogous functions originally copied from the SH-Mobile CEU
  driver now that they have been placed in a module of their own, removing now
(Continue reading)

Sergei Shtylyov | 23 May 2013 22:07
Favicon

[PATCH v5] V4L2: I2C: ML86V7667 video decoder driver

From: Vladimir Barinov <vladimir.barinov <at> cogentembedded.com>

Add OKI Semiconductor ML86V7667 video decoder driver.

Signed-off-by: Vladimir Barinov <vladimir.barinov <at> cogentembedded.com>
[Sergei: added v4l2_device_unregister_subdev() call to the error cleanup path of
ml86v7667_probe(); some cleanup.]
Signed-off-by: Sergei Shtylyov <sergei.shtylyov <at> cogentembedded.com>

---
This patch is against the 'media_tree.git' repo.

Changes since version 4:
- set the field format independent of a video standard in try_mbus_fmt() method;
- removed ml86v7667_g_mbus_fmt(), ml86v7667_g_mbus_fmt(), and the 'fmt'  field
  from 'struct ml86v7667_priv', and so use ml86v7667_try_mbus_fmt() to implement
  both g_mbus_fmt() and s_mbus_fmt() methods;
- removed cropcap() method;
- removed permission check from g_register() and s_register() methods.

Changes since version 3:
- set the field format depending on video standard in try_mbus_fmt() method;
- refreshed the patch.

Changes since version 2:
- removed now unused #include;
- fixed querystd() method to return currently detected video standard;
- switched from using V4L2_STD_[PAL|NTSC] to using V4L2_STD_[625_50|525_60].

Changes since the original posting:
(Continue reading)

Simon Horman | 23 May 2013 03:40
Picon
Gravatar

[Announce] Renesas branches rebased on v3.10-rc2

Hi,

I have rebased all branches of the renesas tree that are targeted
at v3.11 on top of v3.10-rc2. I have also merged these into
a new next branch which I have pushed and tagged as renesas-next-20130523.
This should appear in linux-next in the not to distant future.

There are a few -fixes branches which resolve problems in v3.10-rc1. I will
get pull requests to arm-soc for those branches in the not to distant
future. The target for -fixes branches is v3.10.

As this took a while I am a little behind with picking up patches that
have been posted, but I hope to catch up over the next few days.

Moving forwards, assuming that nothing dramatic happens I will start
sending pull requests to arm-soc for the non-fixes branches so they
can be included in v3.11. At this stage I plan to start doing that
next week.

Known problems: Booting marzen-reference seems flakey and I'm entirely
unsure why.

--
To unsubscribe from this list: send the line "unsubscribe linux-sh" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Kuninori Morimoto | 23 May 2013 03:34
Gravatar

[PATCH] ARM: shmobile: kzm9g: tidyup FSI pinctrl

sh73a0 needs "sh_fsi2", not "sh_fsi2.0"

Tested-by: Hiep Cao Minh <cm-hiep <at> jinso.co.jp>
Acked-by: Laurent Pinchart <laurent.pinchart <at> ideasonboard.com>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx <at> renesas.com>
---
 arch/arm/mach-shmobile/board-kzm9g.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/arch/arm/mach-shmobile/board-kzm9g.c b/arch/arm/mach-shmobile/board-kzm9g.c
index ceabb44..ca95724 100644
--- a/arch/arm/mach-shmobile/board-kzm9g.c
+++ b/arch/arm/mach-shmobile/board-kzm9g.c
 <at>  <at>  -799,13 +799,13  <at>  <at>  static unsigned long pin_pullup_conf[] = {

 static const struct pinctrl_map kzm_pinctrl_map[] = {
 	/* FSIA (AK4648) */
-	PIN_MAP_MUX_GROUP_DEFAULT("sh_fsi2.0", "pfc-sh73a0",
+	PIN_MAP_MUX_GROUP_DEFAULT("sh_fsi2", "pfc-sh73a0",
 				  "fsia_mclk_in", "fsia"),
-	PIN_MAP_MUX_GROUP_DEFAULT("sh_fsi2.0", "pfc-sh73a0",
+	PIN_MAP_MUX_GROUP_DEFAULT("sh_fsi2", "pfc-sh73a0",
 				  "fsia_sclk_in", "fsia"),
-	PIN_MAP_MUX_GROUP_DEFAULT("sh_fsi2.0", "pfc-sh73a0",
+	PIN_MAP_MUX_GROUP_DEFAULT("sh_fsi2", "pfc-sh73a0",
 				  "fsia_data_in", "fsia"),
-	PIN_MAP_MUX_GROUP_DEFAULT("sh_fsi2.0", "pfc-sh73a0",
+	PIN_MAP_MUX_GROUP_DEFAULT("sh_fsi2", "pfc-sh73a0",
 				  "fsia_data_out", "fsia"),
 	/* I2C3 */
(Continue reading)

Guennadi Liakhovetski | 23 May 2013 00:09
Picon
Picon

[PATCH 1/2] ARM: shmobile: sh73a0: do not overwrite all div4 clock operations

An earlier commit "ARM: shmobile: sh73a0: add support for adjusting CPU
frequency" intended to replace some clock operations only for the Z-clock,
instead it replaced them for all div4 clocks, since all div4 clocks share
the same copy of clock operations. Fix this by using a separate clock
operations structure for Z-clock.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski+renesas <at> gmail.com>
---

Simon, this fixes a commit, currently in "next." Alternatively, it can be 
merged with the problematic commit, mentioned in the text above.

 arch/arm/mach-shmobile/clock-sh73a0.c |   28 +++++++++++++++-------------
 1 files changed, 15 insertions(+), 13 deletions(-)

diff --git a/arch/arm/mach-shmobile/clock-sh73a0.c b/arch/arm/mach-shmobile/clock-sh73a0.c
index 711ecf1..8cb6738 100644
--- a/arch/arm/mach-shmobile/clock-sh73a0.c
+++ b/arch/arm/mach-shmobile/clock-sh73a0.c
 <at>  <at>  -257,9 +257,8  <at>  <at>  static struct clk twd_clk = {
 	.ops = &twd_clk_ops,
 };

-static int (*div4_set_rate)(struct clk *clk, unsigned long rate);
-static unsigned long (*div4_recalc)(struct clk *clk);
-static long (*div4_round_rate)(struct clk *clk, unsigned long rate);
+static struct sh_clk_ops zclk_ops;
+static const struct sh_clk_ops *div4_clk_ops;

 static int zclk_set_rate(struct clk *clk, unsigned long rate)
(Continue reading)

Simon Horman | 22 May 2013 16:48
Picon

[PATCH v3] ARM: shmobile: sh73a0: Update CMT clockevent rating to 80

Update the CMT clockevent rating from 125 to 80.

This resolves a boot-failure regression for kzm9g-reference in v3.10-rc1
introduced by f7db706b132f11c79ae1d74b2382e0926cf31644 ("ARM: 7674/1: smp:
Avoid dummy clockevent being preferred over real").

The patch noted above reduces the rating of dummy clockevent from 400 to 100.
This patch reduces the rating of CMT so that it is once again less than that
of the dummy clockevent.

Signed-off-by: Simon Horman <horms+renesas <at> verge.net.au>
---
 arch/arm/mach-shmobile/setup-sh73a0.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

I also plan to reduce the rating of the STI clockevent to less than 100.
However, as I am not aware of any problems relating to STI in v3.10-rc
my plan is to update STI in the v3.11 timeframe.

v3
* s/kzm9g-reference/sh73a0/ in subject, as suggested by Sergei Shtylyov

v2
* Fix typos pointed out by Sergei Shtylyov

diff --git a/arch/arm/mach-shmobile/setup-sh73a0.c b/arch/arm/mach-shmobile/setup-sh73a0.c
index fdf3894..9696f36 100644
--- a/arch/arm/mach-shmobile/setup-sh73a0.c
+++ b/arch/arm/mach-shmobile/setup-sh73a0.c
 <at>  <at>  -252,7 +252,7  <at>  <at>  static struct sh_timer_config cmt10_platform_data = {
(Continue reading)

Simon Horman | 22 May 2013 16:13
Picon

[PATCH FOR v3.10 v2] ARM: shmobile: kzm9g-reference: Update CMT clocksource rating to 80

Update the CMT clocksource rating from 125 to 80.

This resolves a boot-failure regression for kzm9g-reference in v3.10-rc1
introduced by f7db706b132f11c79ae1d74b2382e0926cf31644 ("ARM: 7674/1: smp:
Avoid dummy clockevent being preferred over real").

The patch noted above reduces the rating of dummy clockevent from 400 to 100.
This patch reduces the rating of CMT so that it is once again less than that
of the dummy clockevent.

Signed-off-by: Simon Horman <horms+renesas <at> verge.net.au>

---

I also plan to reduce the rating of the STI clocksource to less than 100.
However, as I am not aware of any problems relating to STI in v3.10-rc
my plan is to update STI in the v3.11 timeframe.
---
 arch/arm/mach-shmobile/setup-sh73a0.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/mach-shmobile/setup-sh73a0.c b/arch/arm/mach-shmobile/setup-sh73a0.c
index fdf3894..9696f36 100644
--- a/arch/arm/mach-shmobile/setup-sh73a0.c
+++ b/arch/arm/mach-shmobile/setup-sh73a0.c
 <at>  <at>  -252,7 +252,7  <at>  <at>  static struct sh_timer_config cmt10_platform_data = {
 	.name = "CMT10",
 	.channel_offset = 0x10,
 	.timer_bit = 0,
-	.clockevent_rating = 125,
(Continue reading)


Gmane