* [GIT PULL 0/5] Renesas ARM-based SoC board updates for v3.11 #2
@ 2013-06-19 13:22 ` Simon Horman
0 siblings, 0 replies; 14+ messages in thread
From: Simon Horman @ 2013-06-19 13:22 UTC (permalink / raw)
To: linux-arm-kernel
Hi Olof, Hi Arnd,
please consider the following updates to the Bock-W board for v3.11.
This pull request is based on a merge of renesas-boards2-for-v3.11 and
renesas-soc2-for-v3.11, both of which you have previously pulled, in order
to satisfy dependencies.
The following changes since commit 2e9a222e271b7fd16e62a0861ad5e42996d17815:
Merge branch 'soc2' into boards-base (2013-06-13 14:41:53 +0900)
are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-boards2-for-v3.11
for you to fetch changes up to 2c83322ce820bcf2d5e8265de831489076ee211e:
ARM: shmobile: BOCK-W: change Ether device name (2013-06-18 16:22:45 +0900)
----------------------------------------------------------------
Second Round of Renesas ARM-based SoC board updates for v3.11
* Extended hardware coverage for the Bock-W board
by Goda-san and Morimoto-san
* Correction to Ether device name for the Bock-W board
from Sergei Shtylyov
----------------------------------------------------------------
Kuninori Morimoto (3):
ARM: shmobile: bockw: add I2C device support
ARM: shmobile: bockw: add SPI FLASH support
ARM: shmobile: bockw: add MMCIF support
Sergei Shtylyov (2):
ARM: shmobile: BOCK-W: add Ether support
ARM: shmobile: BOCK-W: change Ether device name
arch/arm/mach-shmobile/board-bockw.c | 98 +++++++++++++++++++++++++++++++++++-
1 file changed, 97 insertions(+), 1 deletion(-)
^ permalink raw reply [flat|nested] 14+ messages in thread
* [GIT PULL 0/5] Renesas ARM-based SoC board updates for v3.11 #2
@ 2013-06-19 13:22 ` Simon Horman
0 siblings, 0 replies; 14+ messages in thread
From: Simon Horman @ 2013-06-19 13:22 UTC (permalink / raw)
To: linux-arm-kernel
Hi Olof, Hi Arnd,
please consider the following updates to the Bock-W board for v3.11.
This pull request is based on a merge of renesas-boards2-for-v3.11 and
renesas-soc2-for-v3.11, both of which you have previously pulled, in order
to satisfy dependencies.
The following changes since commit 2e9a222e271b7fd16e62a0861ad5e42996d17815:
Merge branch 'soc2' into boards-base (2013-06-13 14:41:53 +0900)
are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-boards2-for-v3.11
for you to fetch changes up to 2c83322ce820bcf2d5e8265de831489076ee211e:
ARM: shmobile: BOCK-W: change Ether device name (2013-06-18 16:22:45 +0900)
----------------------------------------------------------------
Second Round of Renesas ARM-based SoC board updates for v3.11
* Extended hardware coverage for the Bock-W board
by Goda-san and Morimoto-san
* Correction to Ether device name for the Bock-W board
from Sergei Shtylyov
----------------------------------------------------------------
Kuninori Morimoto (3):
ARM: shmobile: bockw: add I2C device support
ARM: shmobile: bockw: add SPI FLASH support
ARM: shmobile: bockw: add MMCIF support
Sergei Shtylyov (2):
ARM: shmobile: BOCK-W: add Ether support
ARM: shmobile: BOCK-W: change Ether device name
arch/arm/mach-shmobile/board-bockw.c | 98 +++++++++++++++++++++++++++++++++++-
1 file changed, 97 insertions(+), 1 deletion(-)
^ permalink raw reply [flat|nested] 14+ messages in thread
* [PATCH 1/5] ARM: shmobile: BOCK-W: add Ether support
2013-06-19 13:22 ` Simon Horman
@ 2013-06-19 13:22 ` Simon Horman
-1 siblings, 0 replies; 14+ messages in thread
From: Simon Horman @ 2013-06-19 13:22 UTC (permalink / raw)
To: linux-arm-kernel
From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Register Ether device from bockw_init(), passing the platform data to it, adding
only the RMII pin group to bockw_pinctrl_map[]. Although the LINK signal exists
on the board, it's connected to the link/activity LED output of the PHY, thus
the link disappears and reappears after each packet. We'd be better off ignoring
such signal and getting the link state from the PHY indirectly.
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
[horms+renesas@verge.net.au: manually applied]
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
---
arch/arm/mach-shmobile/board-bockw.c | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/arch/arm/mach-shmobile/board-bockw.c b/arch/arm/mach-shmobile/board-bockw.c
index 2b6103e..bfe8f67 100644
--- a/arch/arm/mach-shmobile/board-bockw.c
+++ b/arch/arm/mach-shmobile/board-bockw.c
@@ -63,7 +63,24 @@ static struct sh_mobile_sdhi_info sdhi0_info = {
.tmio_flags = TMIO_MMC_HAS_IDLE_WAIT,
};
+static struct sh_eth_plat_data ether_platform_data __initdata = {
+ .phy = 0x01,
+ .edmac_endian = EDMAC_LITTLE_ENDIAN,
+ .register_type = SH_ETH_REG_FAST_RCAR,
+ .phy_interface = PHY_INTERFACE_MODE_RMII,
+ /*
+ * Although the LINK signal is available on the board, it's connected to
+ * the link/activity LED output of the PHY, thus the link disappears and
+ * reappears after each packet. We'd be better off ignoring such signal
+ * and getting the link state from the PHY indirectly.
+ */
+ .no_ether_link = 1,
+};
+
static const struct pinctrl_map bockw_pinctrl_map[] = {
+ /* Ether */
+ PIN_MAP_MUX_GROUP_DEFAULT("sh-eth", "pfc-r8a7778",
+ "ether_rmii", "ether"),
/* SCIF0 */
PIN_MAP_MUX_GROUP_DEFAULT("sh-sci.0", "pfc-r8a7778",
"scif0_data_a", "scif0"),
@@ -85,6 +102,7 @@ static void __init bockw_init(void)
r8a7778_clock_init();
r8a7778_init_irq_extpin(1);
r8a7778_add_standard_devices();
+ r8a7778_add_ether_device(ðer_platform_data);
pinctrl_register_mappings(bockw_pinctrl_map,
ARRAY_SIZE(bockw_pinctrl_map));
--
1.8.2.1
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [PATCH 1/5] ARM: shmobile: BOCK-W: add Ether support
@ 2013-06-19 13:22 ` Simon Horman
0 siblings, 0 replies; 14+ messages in thread
From: Simon Horman @ 2013-06-19 13:22 UTC (permalink / raw)
To: linux-arm-kernel
From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Register Ether device from bockw_init(), passing the platform data to it, adding
only the RMII pin group to bockw_pinctrl_map[]. Although the LINK signal exists
on the board, it's connected to the link/activity LED output of the PHY, thus
the link disappears and reappears after each packet. We'd be better off ignoring
such signal and getting the link state from the PHY indirectly.
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
[horms+renesas at verge.net.au: manually applied]
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
---
arch/arm/mach-shmobile/board-bockw.c | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/arch/arm/mach-shmobile/board-bockw.c b/arch/arm/mach-shmobile/board-bockw.c
index 2b6103e..bfe8f67 100644
--- a/arch/arm/mach-shmobile/board-bockw.c
+++ b/arch/arm/mach-shmobile/board-bockw.c
@@ -63,7 +63,24 @@ static struct sh_mobile_sdhi_info sdhi0_info = {
.tmio_flags = TMIO_MMC_HAS_IDLE_WAIT,
};
+static struct sh_eth_plat_data ether_platform_data __initdata = {
+ .phy = 0x01,
+ .edmac_endian = EDMAC_LITTLE_ENDIAN,
+ .register_type = SH_ETH_REG_FAST_RCAR,
+ .phy_interface = PHY_INTERFACE_MODE_RMII,
+ /*
+ * Although the LINK signal is available on the board, it's connected to
+ * the link/activity LED output of the PHY, thus the link disappears and
+ * reappears after each packet. We'd be better off ignoring such signal
+ * and getting the link state from the PHY indirectly.
+ */
+ .no_ether_link = 1,
+};
+
static const struct pinctrl_map bockw_pinctrl_map[] = {
+ /* Ether */
+ PIN_MAP_MUX_GROUP_DEFAULT("sh-eth", "pfc-r8a7778",
+ "ether_rmii", "ether"),
/* SCIF0 */
PIN_MAP_MUX_GROUP_DEFAULT("sh-sci.0", "pfc-r8a7778",
"scif0_data_a", "scif0"),
@@ -85,6 +102,7 @@ static void __init bockw_init(void)
r8a7778_clock_init();
r8a7778_init_irq_extpin(1);
r8a7778_add_standard_devices();
+ r8a7778_add_ether_device(ðer_platform_data);
pinctrl_register_mappings(bockw_pinctrl_map,
ARRAY_SIZE(bockw_pinctrl_map));
--
1.8.2.1
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [PATCH 2/5] ARM: shmobile: bockw: add I2C device support
2013-06-19 13:22 ` Simon Horman
@ 2013-06-19 13:22 ` Simon Horman
-1 siblings, 0 replies; 14+ messages in thread
From: Simon Horman @ 2013-06-19 13:22 UTC (permalink / raw)
To: linux-arm-kernel
From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
This patch enables rx8581 on I2C0
Signed-off-by: Yusuke Goda <yusuke.goda.sx@renesas.com>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
---
arch/arm/mach-shmobile/board-bockw.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/arch/arm/mach-shmobile/board-bockw.c b/arch/arm/mach-shmobile/board-bockw.c
index bfe8f67..a4251cc 100644
--- a/arch/arm/mach-shmobile/board-bockw.c
+++ b/arch/arm/mach-shmobile/board-bockw.c
@@ -77,6 +77,13 @@ static struct sh_eth_plat_data ether_platform_data __initdata = {
.no_ether_link = 1,
};
+/* I2C */
+static struct i2c_board_info i2c0_devices[] = {
+ {
+ I2C_BOARD_INFO("rx8581", 0x51),
+ },
+};
+
static const struct pinctrl_map bockw_pinctrl_map[] = {
/* Ether */
PIN_MAP_MUX_GROUP_DEFAULT("sh-eth", "pfc-r8a7778",
@@ -103,7 +110,10 @@ static void __init bockw_init(void)
r8a7778_init_irq_extpin(1);
r8a7778_add_standard_devices();
r8a7778_add_ether_device(ðer_platform_data);
+ r8a7778_add_i2c_device(0);
+ i2c_register_board_info(0, i2c0_devices,
+ ARRAY_SIZE(i2c0_devices));
pinctrl_register_mappings(bockw_pinctrl_map,
ARRAY_SIZE(bockw_pinctrl_map));
r8a7778_pinmux_init();
--
1.8.2.1
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [PATCH 2/5] ARM: shmobile: bockw: add I2C device support
@ 2013-06-19 13:22 ` Simon Horman
0 siblings, 0 replies; 14+ messages in thread
From: Simon Horman @ 2013-06-19 13:22 UTC (permalink / raw)
To: linux-arm-kernel
From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
This patch enables rx8581 on I2C0
Signed-off-by: Yusuke Goda <yusuke.goda.sx@renesas.com>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
---
arch/arm/mach-shmobile/board-bockw.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/arch/arm/mach-shmobile/board-bockw.c b/arch/arm/mach-shmobile/board-bockw.c
index bfe8f67..a4251cc 100644
--- a/arch/arm/mach-shmobile/board-bockw.c
+++ b/arch/arm/mach-shmobile/board-bockw.c
@@ -77,6 +77,13 @@ static struct sh_eth_plat_data ether_platform_data __initdata = {
.no_ether_link = 1,
};
+/* I2C */
+static struct i2c_board_info i2c0_devices[] = {
+ {
+ I2C_BOARD_INFO("rx8581", 0x51),
+ },
+};
+
static const struct pinctrl_map bockw_pinctrl_map[] = {
/* Ether */
PIN_MAP_MUX_GROUP_DEFAULT("sh-eth", "pfc-r8a7778",
@@ -103,7 +110,10 @@ static void __init bockw_init(void)
r8a7778_init_irq_extpin(1);
r8a7778_add_standard_devices();
r8a7778_add_ether_device(ðer_platform_data);
+ r8a7778_add_i2c_device(0);
+ i2c_register_board_info(0, i2c0_devices,
+ ARRAY_SIZE(i2c0_devices));
pinctrl_register_mappings(bockw_pinctrl_map,
ARRAY_SIZE(bockw_pinctrl_map));
r8a7778_pinmux_init();
--
1.8.2.1
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [PATCH 3/5] ARM: shmobile: bockw: add SPI FLASH support
2013-06-19 13:22 ` Simon Horman
@ 2013-06-19 13:22 ` Simon Horman
-1 siblings, 0 replies; 14+ messages in thread
From: Simon Horman @ 2013-06-19 13:22 UTC (permalink / raw)
To: linux-arm-kernel
From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
This patch enables Spansion S25FL008K chip on HSPI0
Signed-off-by: Yusuke Goda <yusuke.goda.sx@renesas.com>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
---
arch/arm/mach-shmobile/board-bockw.c | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
diff --git a/arch/arm/mach-shmobile/board-bockw.c b/arch/arm/mach-shmobile/board-bockw.c
index a4251cc..7d42f12 100644
--- a/arch/arm/mach-shmobile/board-bockw.c
+++ b/arch/arm/mach-shmobile/board-bockw.c
@@ -20,11 +20,14 @@
#include <linux/mfd/tmio.h>
#include <linux/mmc/host.h>
+#include <linux/mtd/partitions.h>
#include <linux/pinctrl/machine.h>
#include <linux/platform_device.h>
#include <linux/regulator/fixed.h>
#include <linux/regulator/machine.h>
#include <linux/smsc911x.h>
+#include <linux/spi/spi.h>
+#include <linux/spi/flash.h>
#include <mach/common.h>
#include <mach/irqs.h>
#include <mach/r8a7778.h>
@@ -84,10 +87,40 @@ static struct i2c_board_info i2c0_devices[] = {
},
};
+/* HSPI*/
+static struct mtd_partition m25p80_spi_flash_partitions[] = {
+ {
+ .name = "data(spi)",
+ .size = 0x0100000,
+ .offset = 0,
+ },
+};
+
+static struct flash_platform_data spi_flash_data = {
+ .name = "m25p80",
+ .type = "s25fl008k",
+ .parts = m25p80_spi_flash_partitions,
+ .nr_parts = ARRAY_SIZE(m25p80_spi_flash_partitions),
+};
+
+static struct spi_board_info spi_board_info[] __initdata = {
+ {
+ .modalias = "m25p80",
+ .max_speed_hz = 104000000,
+ .chip_select = 0,
+ .bus_num = 0,
+ .mode = SPI_MODE_0,
+ .platform_data = &spi_flash_data,
+ },
+};
+
static const struct pinctrl_map bockw_pinctrl_map[] = {
/* Ether */
PIN_MAP_MUX_GROUP_DEFAULT("sh-eth", "pfc-r8a7778",
"ether_rmii", "ether"),
+ /* HSPI0 */
+ PIN_MAP_MUX_GROUP_DEFAULT("sh-hspi.0", "pfc-r8a7778",
+ "hspi0_a", "hspi0"),
/* SCIF0 */
PIN_MAP_MUX_GROUP_DEFAULT("sh-sci.0", "pfc-r8a7778",
"scif0_data_a", "scif0"),
@@ -111,9 +144,12 @@ static void __init bockw_init(void)
r8a7778_add_standard_devices();
r8a7778_add_ether_device(ðer_platform_data);
r8a7778_add_i2c_device(0);
+ r8a7778_add_hspi_device(0);
i2c_register_board_info(0, i2c0_devices,
ARRAY_SIZE(i2c0_devices));
+ spi_register_board_info(spi_board_info,
+ ARRAY_SIZE(spi_board_info));
pinctrl_register_mappings(bockw_pinctrl_map,
ARRAY_SIZE(bockw_pinctrl_map));
r8a7778_pinmux_init();
--
1.8.2.1
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [PATCH 3/5] ARM: shmobile: bockw: add SPI FLASH support
@ 2013-06-19 13:22 ` Simon Horman
0 siblings, 0 replies; 14+ messages in thread
From: Simon Horman @ 2013-06-19 13:22 UTC (permalink / raw)
To: linux-arm-kernel
From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
This patch enables Spansion S25FL008K chip on HSPI0
Signed-off-by: Yusuke Goda <yusuke.goda.sx@renesas.com>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
---
arch/arm/mach-shmobile/board-bockw.c | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
diff --git a/arch/arm/mach-shmobile/board-bockw.c b/arch/arm/mach-shmobile/board-bockw.c
index a4251cc..7d42f12 100644
--- a/arch/arm/mach-shmobile/board-bockw.c
+++ b/arch/arm/mach-shmobile/board-bockw.c
@@ -20,11 +20,14 @@
#include <linux/mfd/tmio.h>
#include <linux/mmc/host.h>
+#include <linux/mtd/partitions.h>
#include <linux/pinctrl/machine.h>
#include <linux/platform_device.h>
#include <linux/regulator/fixed.h>
#include <linux/regulator/machine.h>
#include <linux/smsc911x.h>
+#include <linux/spi/spi.h>
+#include <linux/spi/flash.h>
#include <mach/common.h>
#include <mach/irqs.h>
#include <mach/r8a7778.h>
@@ -84,10 +87,40 @@ static struct i2c_board_info i2c0_devices[] = {
},
};
+/* HSPI*/
+static struct mtd_partition m25p80_spi_flash_partitions[] = {
+ {
+ .name = "data(spi)",
+ .size = 0x0100000,
+ .offset = 0,
+ },
+};
+
+static struct flash_platform_data spi_flash_data = {
+ .name = "m25p80",
+ .type = "s25fl008k",
+ .parts = m25p80_spi_flash_partitions,
+ .nr_parts = ARRAY_SIZE(m25p80_spi_flash_partitions),
+};
+
+static struct spi_board_info spi_board_info[] __initdata = {
+ {
+ .modalias = "m25p80",
+ .max_speed_hz = 104000000,
+ .chip_select = 0,
+ .bus_num = 0,
+ .mode = SPI_MODE_0,
+ .platform_data = &spi_flash_data,
+ },
+};
+
static const struct pinctrl_map bockw_pinctrl_map[] = {
/* Ether */
PIN_MAP_MUX_GROUP_DEFAULT("sh-eth", "pfc-r8a7778",
"ether_rmii", "ether"),
+ /* HSPI0 */
+ PIN_MAP_MUX_GROUP_DEFAULT("sh-hspi.0", "pfc-r8a7778",
+ "hspi0_a", "hspi0"),
/* SCIF0 */
PIN_MAP_MUX_GROUP_DEFAULT("sh-sci.0", "pfc-r8a7778",
"scif0_data_a", "scif0"),
@@ -111,9 +144,12 @@ static void __init bockw_init(void)
r8a7778_add_standard_devices();
r8a7778_add_ether_device(ðer_platform_data);
r8a7778_add_i2c_device(0);
+ r8a7778_add_hspi_device(0);
i2c_register_board_info(0, i2c0_devices,
ARRAY_SIZE(i2c0_devices));
+ spi_register_board_info(spi_board_info,
+ ARRAY_SIZE(spi_board_info));
pinctrl_register_mappings(bockw_pinctrl_map,
ARRAY_SIZE(bockw_pinctrl_map));
r8a7778_pinmux_init();
--
1.8.2.1
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [PATCH 4/5] ARM: shmobile: bockw: add MMCIF support
2013-06-19 13:22 ` Simon Horman
@ 2013-06-19 13:22 ` Simon Horman
-1 siblings, 0 replies; 14+ messages in thread
From: Simon Horman @ 2013-06-19 13:22 UTC (permalink / raw)
To: linux-arm-kernel
From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
This patch enables CN26 MMCIF
Signed-off-by: Yusuke Goda <yusuke.goda.sx@renesas.com>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
---
arch/arm/mach-shmobile/board-bockw.c | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
diff --git a/arch/arm/mach-shmobile/board-bockw.c b/arch/arm/mach-shmobile/board-bockw.c
index 7d42f12..7d48461 100644
--- a/arch/arm/mach-shmobile/board-bockw.c
+++ b/arch/arm/mach-shmobile/board-bockw.c
@@ -41,6 +41,23 @@
* SW41 SCIF RCAN
*/
+/*
+ * MMC (CN26) pin
+ *
+ * SW6 (D2) 3 pin
+ * SW7 (D5) ON
+ * SW8 (D3) 3 pin
+ * SW10 (D4) 1 pin
+ * SW12 (CLK) 1 pin
+ * SW13 (D6) 3 pin
+ * SW14 (CMD) ON
+ * SW15 (D6) 1 pin
+ * SW16 (D0) ON
+ * SW17 (D1) ON
+ * SW18 (D7) 3 pin
+ * SW19 (MMC) 1 pin
+ */
+
/* Dummy supplies, where voltage doesn't matter */
static struct regulator_consumer_supply dummy_supplies[] = {
REGULATOR_SUPPLY("vddvario", "smsc911x"),
@@ -114,6 +131,15 @@ static struct spi_board_info spi_board_info[] __initdata = {
},
};
+/* MMC */
+static struct sh_mmcif_plat_data sh_mmcif_plat = {
+ .sup_pclk = 0,
+ .ocr = MMC_VDD_165_195 | MMC_VDD_32_33 | MMC_VDD_33_34,
+ .caps = MMC_CAP_4_BIT_DATA |
+ MMC_CAP_8_BIT_DATA |
+ MMC_CAP_NEEDS_POLL,
+};
+
static const struct pinctrl_map bockw_pinctrl_map[] = {
/* Ether */
PIN_MAP_MUX_GROUP_DEFAULT("sh-eth", "pfc-r8a7778",
@@ -121,6 +147,11 @@ static const struct pinctrl_map bockw_pinctrl_map[] = {
/* HSPI0 */
PIN_MAP_MUX_GROUP_DEFAULT("sh-hspi.0", "pfc-r8a7778",
"hspi0_a", "hspi0"),
+ /* MMC */
+ PIN_MAP_MUX_GROUP_DEFAULT("sh_mmcif", "pfc-r8a7778",
+ "mmc_data8", "mmc"),
+ PIN_MAP_MUX_GROUP_DEFAULT("sh_mmcif", "pfc-r8a7778",
+ "mmc_ctrl", "mmc"),
/* SCIF0 */
PIN_MAP_MUX_GROUP_DEFAULT("sh-sci.0", "pfc-r8a7778",
"scif0_data_a", "scif0"),
@@ -145,6 +176,7 @@ static void __init bockw_init(void)
r8a7778_add_ether_device(ðer_platform_data);
r8a7778_add_i2c_device(0);
r8a7778_add_hspi_device(0);
+ r8a7778_add_mmc_device(&sh_mmcif_plat);
i2c_register_board_info(0, i2c0_devices,
ARRAY_SIZE(i2c0_devices));
--
1.8.2.1
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [PATCH 4/5] ARM: shmobile: bockw: add MMCIF support
@ 2013-06-19 13:22 ` Simon Horman
0 siblings, 0 replies; 14+ messages in thread
From: Simon Horman @ 2013-06-19 13:22 UTC (permalink / raw)
To: linux-arm-kernel
From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
This patch enables CN26 MMCIF
Signed-off-by: Yusuke Goda <yusuke.goda.sx@renesas.com>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
---
arch/arm/mach-shmobile/board-bockw.c | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
diff --git a/arch/arm/mach-shmobile/board-bockw.c b/arch/arm/mach-shmobile/board-bockw.c
index 7d42f12..7d48461 100644
--- a/arch/arm/mach-shmobile/board-bockw.c
+++ b/arch/arm/mach-shmobile/board-bockw.c
@@ -41,6 +41,23 @@
* SW41 SCIF RCAN
*/
+/*
+ * MMC (CN26) pin
+ *
+ * SW6 (D2) 3 pin
+ * SW7 (D5) ON
+ * SW8 (D3) 3 pin
+ * SW10 (D4) 1 pin
+ * SW12 (CLK) 1 pin
+ * SW13 (D6) 3 pin
+ * SW14 (CMD) ON
+ * SW15 (D6) 1 pin
+ * SW16 (D0) ON
+ * SW17 (D1) ON
+ * SW18 (D7) 3 pin
+ * SW19 (MMC) 1 pin
+ */
+
/* Dummy supplies, where voltage doesn't matter */
static struct regulator_consumer_supply dummy_supplies[] = {
REGULATOR_SUPPLY("vddvario", "smsc911x"),
@@ -114,6 +131,15 @@ static struct spi_board_info spi_board_info[] __initdata = {
},
};
+/* MMC */
+static struct sh_mmcif_plat_data sh_mmcif_plat = {
+ .sup_pclk = 0,
+ .ocr = MMC_VDD_165_195 | MMC_VDD_32_33 | MMC_VDD_33_34,
+ .caps = MMC_CAP_4_BIT_DATA |
+ MMC_CAP_8_BIT_DATA |
+ MMC_CAP_NEEDS_POLL,
+};
+
static const struct pinctrl_map bockw_pinctrl_map[] = {
/* Ether */
PIN_MAP_MUX_GROUP_DEFAULT("sh-eth", "pfc-r8a7778",
@@ -121,6 +147,11 @@ static const struct pinctrl_map bockw_pinctrl_map[] = {
/* HSPI0 */
PIN_MAP_MUX_GROUP_DEFAULT("sh-hspi.0", "pfc-r8a7778",
"hspi0_a", "hspi0"),
+ /* MMC */
+ PIN_MAP_MUX_GROUP_DEFAULT("sh_mmcif", "pfc-r8a7778",
+ "mmc_data8", "mmc"),
+ PIN_MAP_MUX_GROUP_DEFAULT("sh_mmcif", "pfc-r8a7778",
+ "mmc_ctrl", "mmc"),
/* SCIF0 */
PIN_MAP_MUX_GROUP_DEFAULT("sh-sci.0", "pfc-r8a7778",
"scif0_data_a", "scif0"),
@@ -145,6 +176,7 @@ static void __init bockw_init(void)
r8a7778_add_ether_device(ðer_platform_data);
r8a7778_add_i2c_device(0);
r8a7778_add_hspi_device(0);
+ r8a7778_add_mmc_device(&sh_mmcif_plat);
i2c_register_board_info(0, i2c0_devices,
ARRAY_SIZE(i2c0_devices));
--
1.8.2.1
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [PATCH 5/5] ARM: shmobile: BOCK-W: change Ether device name
2013-06-19 13:22 ` Simon Horman
@ 2013-06-19 13:22 ` Simon Horman
-1 siblings, 0 replies; 14+ messages in thread
From: Simon Horman @ 2013-06-19 13:22 UTC (permalink / raw)
To: linux-arm-kernel
From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
When changing the name of Ether platform device in the commit c02f846938fe (ARM:
shmobile: r8a7778: fix Ether device name), I completely forgot that there's also
platform device name used in bockw_pinctrl_map[], so the commit "ARM: shmobile:
BOCK-W: add Ether support" went in with the old "sh-eth" device name. Now change
it to "r8a777x-ether" in accordance with the commits that are now in the 'net-
next.git' repository, otherwise BOCK-W Ether support won't work in 3.11.
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
---
arch/arm/mach-shmobile/board-bockw.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/mach-shmobile/board-bockw.c b/arch/arm/mach-shmobile/board-bockw.c
index 7d48461..ce56381 100644
--- a/arch/arm/mach-shmobile/board-bockw.c
+++ b/arch/arm/mach-shmobile/board-bockw.c
@@ -142,7 +142,7 @@ static struct sh_mmcif_plat_data sh_mmcif_plat = {
static const struct pinctrl_map bockw_pinctrl_map[] = {
/* Ether */
- PIN_MAP_MUX_GROUP_DEFAULT("sh-eth", "pfc-r8a7778",
+ PIN_MAP_MUX_GROUP_DEFAULT("r8a777x-ether", "pfc-r8a7778",
"ether_rmii", "ether"),
/* HSPI0 */
PIN_MAP_MUX_GROUP_DEFAULT("sh-hspi.0", "pfc-r8a7778",
--
1.8.2.1
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [PATCH 5/5] ARM: shmobile: BOCK-W: change Ether device name
@ 2013-06-19 13:22 ` Simon Horman
0 siblings, 0 replies; 14+ messages in thread
From: Simon Horman @ 2013-06-19 13:22 UTC (permalink / raw)
To: linux-arm-kernel
From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
When changing the name of Ether platform device in the commit c02f846938fe (ARM:
shmobile: r8a7778: fix Ether device name), I completely forgot that there's also
platform device name used in bockw_pinctrl_map[], so the commit "ARM: shmobile:
BOCK-W: add Ether support" went in with the old "sh-eth" device name. Now change
it to "r8a777x-ether" in accordance with the commits that are now in the 'net-
next.git' repository, otherwise BOCK-W Ether support won't work in 3.11.
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
---
arch/arm/mach-shmobile/board-bockw.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/mach-shmobile/board-bockw.c b/arch/arm/mach-shmobile/board-bockw.c
index 7d48461..ce56381 100644
--- a/arch/arm/mach-shmobile/board-bockw.c
+++ b/arch/arm/mach-shmobile/board-bockw.c
@@ -142,7 +142,7 @@ static struct sh_mmcif_plat_data sh_mmcif_plat = {
static const struct pinctrl_map bockw_pinctrl_map[] = {
/* Ether */
- PIN_MAP_MUX_GROUP_DEFAULT("sh-eth", "pfc-r8a7778",
+ PIN_MAP_MUX_GROUP_DEFAULT("r8a777x-ether", "pfc-r8a7778",
"ether_rmii", "ether"),
/* HSPI0 */
PIN_MAP_MUX_GROUP_DEFAULT("sh-hspi.0", "pfc-r8a7778",
--
1.8.2.1
^ permalink raw reply related [flat|nested] 14+ messages in thread
* Re: [GIT PULL 0/5] Renesas ARM-based SoC board updates for v3.11 #2
2013-06-19 13:22 ` Simon Horman
@ 2013-06-21 13:05 ` Arnd Bergmann
-1 siblings, 0 replies; 14+ messages in thread
From: Arnd Bergmann @ 2013-06-21 13:05 UTC (permalink / raw)
To: linux-arm-kernel
On Wednesday 19 June 2013, Simon Horman wrote:
> Hi Olof, Hi Arnd,
>
> please consider the following updates to the Bock-W board for v3.11.
>
> This pull request is based on a merge of renesas-boards2-for-v3.11 and
> renesas-soc2-for-v3.11, both of which you have previously pulled, in order
> to satisfy dependencies.
>
>
> The following changes since commit 2e9a222e271b7fd16e62a0861ad5e42996d17815:
>
> Merge branch 'soc2' into boards-base (2013-06-13 14:41:53 +0900)
>
> are available in the git repository at:
>
>
> git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-boards2-for-v3.11
>
> for you to fetch changes up to 2c83322ce820bcf2d5e8265de831489076ee211e:
>
> ARM: shmobile: BOCK-W: change Ether device name (2013-06-18 16:22:45 +0900)
>
> ----------------------------------------------------------------
> Second Round of Renesas ARM-based SoC board updates for v3.11
>
> * Extended hardware coverage for the Bock-W board
> by Goda-san and Morimoto-san
> * Correction to Ether device name for the Bock-W board
> from Sergei Shtylyov
>
> ----------------------------------------------------------------
> Kuninori Morimoto (3):
> ARM: shmobile: bockw: add I2C device support
> ARM: shmobile: bockw: add SPI FLASH support
> ARM: shmobile: bockw: add MMCIF support
>
> Sergei Shtylyov (2):
> ARM: shmobile: BOCK-W: add Ether support
> ARM: shmobile: BOCK-W: change Ether device name
>
> arch/arm/mach-shmobile/board-bockw.c | 98 +++++++++++++++++++++++++++++++++++-
> 1 file changed, 97 insertions(+), 1 deletion(-)
>
Pulled into next/boards, thanks!
Arnd
^ permalink raw reply [flat|nested] 14+ messages in thread
* [GIT PULL 0/5] Renesas ARM-based SoC board updates for v3.11 #2
@ 2013-06-21 13:05 ` Arnd Bergmann
0 siblings, 0 replies; 14+ messages in thread
From: Arnd Bergmann @ 2013-06-21 13:05 UTC (permalink / raw)
To: linux-arm-kernel
On Wednesday 19 June 2013, Simon Horman wrote:
> Hi Olof, Hi Arnd,
>
> please consider the following updates to the Bock-W board for v3.11.
>
> This pull request is based on a merge of renesas-boards2-for-v3.11 and
> renesas-soc2-for-v3.11, both of which you have previously pulled, in order
> to satisfy dependencies.
>
>
> The following changes since commit 2e9a222e271b7fd16e62a0861ad5e42996d17815:
>
> Merge branch 'soc2' into boards-base (2013-06-13 14:41:53 +0900)
>
> are available in the git repository at:
>
>
> git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-boards2-for-v3.11
>
> for you to fetch changes up to 2c83322ce820bcf2d5e8265de831489076ee211e:
>
> ARM: shmobile: BOCK-W: change Ether device name (2013-06-18 16:22:45 +0900)
>
> ----------------------------------------------------------------
> Second Round of Renesas ARM-based SoC board updates for v3.11
>
> * Extended hardware coverage for the Bock-W board
> by Goda-san and Morimoto-san
> * Correction to Ether device name for the Bock-W board
> from Sergei Shtylyov
>
> ----------------------------------------------------------------
> Kuninori Morimoto (3):
> ARM: shmobile: bockw: add I2C device support
> ARM: shmobile: bockw: add SPI FLASH support
> ARM: shmobile: bockw: add MMCIF support
>
> Sergei Shtylyov (2):
> ARM: shmobile: BOCK-W: add Ether support
> ARM: shmobile: BOCK-W: change Ether device name
>
> arch/arm/mach-shmobile/board-bockw.c | 98 +++++++++++++++++++++++++++++++++++-
> 1 file changed, 97 insertions(+), 1 deletion(-)
>
Pulled into next/boards, thanks!
Arnd
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2013-06-21 13:05 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-19 13:22 [GIT PULL 0/5] Renesas ARM-based SoC board updates for v3.11 #2 Simon Horman
2013-06-19 13:22 ` Simon Horman
2013-06-19 13:22 ` [PATCH 1/5] ARM: shmobile: BOCK-W: add Ether support Simon Horman
2013-06-19 13:22 ` Simon Horman
2013-06-19 13:22 ` [PATCH 2/5] ARM: shmobile: bockw: add I2C device support Simon Horman
2013-06-19 13:22 ` Simon Horman
2013-06-19 13:22 ` [PATCH 3/5] ARM: shmobile: bockw: add SPI FLASH support Simon Horman
2013-06-19 13:22 ` Simon Horman
2013-06-19 13:22 ` [PATCH 4/5] ARM: shmobile: bockw: add MMCIF support Simon Horman
2013-06-19 13:22 ` Simon Horman
2013-06-19 13:22 ` [PATCH 5/5] ARM: shmobile: BOCK-W: change Ether device name Simon Horman
2013-06-19 13:22 ` Simon Horman
2013-06-21 13:05 ` [GIT PULL 0/5] Renesas ARM-based SoC board updates for v3.11 #2 Arnd Bergmann
2013-06-21 13:05 ` Arnd Bergmann
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.