* [GIT PULL] Second round of Renesas ARM based SoC cleanups for v3.13 @ 2013-10-08 9:05 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-10-08 9:05 UTC (permalink / raw) To: linux-arm-kernel Hi Kevin, Olof and Arnd, please consider this Second round of Renesas ARM based SoC cleanups for v3.13. It is based on renesas-cleanup-for-v3.13 which you have previously pulled. The following changes since commit cde214a890f81797a5eee94fffc89c1de21ed991: ARM: shmobile: r8a7790: Constify platform data and resources (2013-09-19 14:33:44 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-cleanup2-for-v3.13 for you to fetch changes up to 27113d63daac0aacaa26b1fabfc23391de4284f4: ARM: shmobile: lager: Constify platform data and resources (2013-09-30 16:33:17 +0900) ---------------------------------------------------------------- Second round of Renesas ARM based SoC cleanups for v3.13 * Constify platform data and resources in lager board code * Clean up registration of VIN and sh_eth in r8a7778 SoC and bockw board code * Make r8a7778_register_hspi() static in r8a7778 SoC code ---------------------------------------------------------------- Kuninori Morimoto (3): ARM: shmobile: r8a7778: cleanup registration of vin ARM: shmobile: r8a7778: cleanup registration of sh_eth ARM: shmobile: r8a7778: r8a7778_register_hspi() become static Laurent Pinchart (1): ARM: shmobile: lager: Constify platform data and resources arch/arm/mach-shmobile/board-bockw.c | 46 ++++++++++++++++++++---- arch/arm/mach-shmobile/board-lager.c | 14 ++++---- arch/arm/mach-shmobile/include/mach/r8a7778.h | 3 -- arch/arm/mach-shmobile/setup-r8a7778.c | 50 +-------------------------- 4 files changed, 47 insertions(+), 66 deletions(-) ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second round of Renesas ARM based SoC cleanups for v3.13 @ 2013-10-08 9:05 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-10-08 9:05 UTC (permalink / raw) To: linux-arm-kernel Hi Kevin, Olof and Arnd, please consider this Second round of Renesas ARM based SoC cleanups for v3.13. It is based on renesas-cleanup-for-v3.13 which you have previously pulled. The following changes since commit cde214a890f81797a5eee94fffc89c1de21ed991: ARM: shmobile: r8a7790: Constify platform data and resources (2013-09-19 14:33:44 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-cleanup2-for-v3.13 for you to fetch changes up to 27113d63daac0aacaa26b1fabfc23391de4284f4: ARM: shmobile: lager: Constify platform data and resources (2013-09-30 16:33:17 +0900) ---------------------------------------------------------------- Second round of Renesas ARM based SoC cleanups for v3.13 * Constify platform data and resources in lager board code * Clean up registration of VIN and sh_eth in r8a7778 SoC and bockw board code * Make r8a7778_register_hspi() static in r8a7778 SoC code ---------------------------------------------------------------- Kuninori Morimoto (3): ARM: shmobile: r8a7778: cleanup registration of vin ARM: shmobile: r8a7778: cleanup registration of sh_eth ARM: shmobile: r8a7778: r8a7778_register_hspi() become static Laurent Pinchart (1): ARM: shmobile: lager: Constify platform data and resources arch/arm/mach-shmobile/board-bockw.c | 46 ++++++++++++++++++++---- arch/arm/mach-shmobile/board-lager.c | 14 ++++---- arch/arm/mach-shmobile/include/mach/r8a7778.h | 3 -- arch/arm/mach-shmobile/setup-r8a7778.c | 50 +-------------------------- 4 files changed, 47 insertions(+), 66 deletions(-) ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH 1/4] ARM: shmobile: r8a7778: cleanup registration of vin 2013-10-08 9:05 ` Simon Horman @ 2013-10-08 9:05 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-10-08 9:05 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> vin driver which needs platform data at the time of registration is used from BockW only. Now, ARM/shmobile aims to support DT, and the C code base board support will be removed if DT support is completed. Current driver registration method which needs platform data and which is not shared complicates codes. This means legacy C code cleanup after DT supporting will be more complicated This patch registers it on board code as cleanup C code 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 ++++++++++++++++++++----- arch/arm/mach-shmobile/include/mach/r8a7778.h | 2 -- arch/arm/mach-shmobile/setup-r8a7778.c | 34 --------------------------- 3 files changed, 26 insertions(+), 42 deletions(-) diff --git a/arch/arm/mach-shmobile/board-bockw.c b/arch/arm/mach-shmobile/board-bockw.c index 6b9faf3..4b696ce 100644 --- a/arch/arm/mach-shmobile/board-bockw.c +++ b/arch/arm/mach-shmobile/board-bockw.c @@ -162,10 +162,6 @@ static struct sh_mmcif_plat_data sh_mmcif_plat __initdata = { MMC_CAP_NEEDS_POLL, }; -static struct rcar_vin_platform_data vin_platform_data __initdata = { - .flags = RCAR_VIN_BT656, -}; - /* In the default configuration both decoders reside on I2C bus 0 */ #define BOCKW_CAMERA(idx) \ static struct i2c_board_info camera##idx##_info = { \ @@ -181,6 +177,30 @@ static struct soc_camera_link iclink##idx##_ml86v7667 __initdata = { \ BOCKW_CAMERA(0); BOCKW_CAMERA(1); +/* VIN */ +static struct rcar_vin_platform_data vin_platform_data __initdata = { + .flags = RCAR_VIN_BT656, +}; + +#define R8A7778_VIN(idx) \ +static struct resource vin##idx##_resources[] __initdata = { \ + DEFINE_RES_MEM(0xffc50000 + 0x1000 * (idx), 0x1000), \ + DEFINE_RES_IRQ(gic_iid(0x5a)), \ +}; \ + \ +static struct platform_device_info vin##idx##_info __initdata = { \ + .parent = &platform_bus, \ + .name = "r8a7778-vin", \ + .id = idx, \ + .res = vin##idx##_resources, \ + .num_res = ARRAY_SIZE(vin##idx##_resources), \ + .dma_mask = DMA_BIT_MASK(32), \ + .data = &vin_platform_data, \ + .size_data = sizeof(vin_platform_data), \ +} +R8A7778_VIN(0); +R8A7778_VIN(1); + static const struct pinctrl_map bockw_pinctrl_map[] = { /* Ether */ PIN_MAP_MUX_GROUP_DEFAULT("r8a777x-ether", "pfc-r8a7778", @@ -236,10 +256,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_vin_device(0, &vin_platform_data); + platform_device_register_full(&vin0_info); /* VIN1 has a pin conflict with Ether */ if (!IS_ENABLED(CONFIG_SH_ETH)) - r8a7778_add_vin_device(1, &vin_platform_data); + platform_device_register_full(&vin1_info); platform_device_register_data(&platform_bus, "soc-camera-pdrv", 0, &iclink0_ml86v7667, sizeof(iclink0_ml86v7667)); diff --git a/arch/arm/mach-shmobile/include/mach/r8a7778.h b/arch/arm/mach-shmobile/include/mach/r8a7778.h index adfcf51..9838608 100644 --- a/arch/arm/mach-shmobile/include/mach/r8a7778.h +++ b/arch/arm/mach-shmobile/include/mach/r8a7778.h @@ -24,8 +24,6 @@ extern void r8a7778_add_standard_devices(void); extern void r8a7778_add_standard_devices_dt(void); extern void r8a7778_add_ether_device(struct sh_eth_plat_data *pdata); -extern void r8a7778_add_vin_device(int id, - struct rcar_vin_platform_data *pdata); extern void r8a7778_add_dt_devices(void); extern void r8a7778_init_late(void); diff --git a/arch/arm/mach-shmobile/setup-r8a7778.c b/arch/arm/mach-shmobile/setup-r8a7778.c index 6a2657e..604cf36 100644 --- a/arch/arm/mach-shmobile/setup-r8a7778.c +++ b/arch/arm/mach-shmobile/setup-r8a7778.c @@ -281,40 +281,6 @@ void __init r8a7778_register_hspi(int id) hspi_resources + (2 * id), 2); } -/* VIN */ -#define R8A7778_VIN(idx) \ -static struct resource vin##idx##_resources[] __initdata = { \ - DEFINE_RES_MEM(0xffc50000 + 0x1000 * (idx), 0x1000), \ - DEFINE_RES_IRQ(gic_iid(0x5a)), \ -}; \ - \ -static struct platform_device_info vin##idx##_info __initdata = { \ - .parent = &platform_bus, \ - .name = "r8a7778-vin", \ - .id = idx, \ - .res = vin##idx##_resources, \ - .num_res = ARRAY_SIZE(vin##idx##_resources), \ - .dma_mask = DMA_BIT_MASK(32), \ -} - -R8A7778_VIN(0); -R8A7778_VIN(1); - -static struct platform_device_info *vin_info_table[] __initdata = { - &vin0_info, - &vin1_info, -}; - -void __init r8a7778_add_vin_device(int id, struct rcar_vin_platform_data *pdata) -{ - BUG_ON(id < 0 || id > 1); - - vin_info_table[id]->data = pdata; - vin_info_table[id]->size_data = sizeof(*pdata); - - platform_device_register_full(vin_info_table[id]); -} - void __init r8a7778_add_dt_devices(void) { int i; -- 1.8.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 1/4] ARM: shmobile: r8a7778: cleanup registration of vin @ 2013-10-08 9:05 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-10-08 9:05 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> vin driver which needs platform data at the time of registration is used from BockW only. Now, ARM/shmobile aims to support DT, and the C code base board support will be removed if DT support is completed. Current driver registration method which needs platform data and which is not shared complicates codes. This means legacy C code cleanup after DT supporting will be more complicated This patch registers it on board code as cleanup C code 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 ++++++++++++++++++++----- arch/arm/mach-shmobile/include/mach/r8a7778.h | 2 -- arch/arm/mach-shmobile/setup-r8a7778.c | 34 --------------------------- 3 files changed, 26 insertions(+), 42 deletions(-) diff --git a/arch/arm/mach-shmobile/board-bockw.c b/arch/arm/mach-shmobile/board-bockw.c index 6b9faf3..4b696ce 100644 --- a/arch/arm/mach-shmobile/board-bockw.c +++ b/arch/arm/mach-shmobile/board-bockw.c @@ -162,10 +162,6 @@ static struct sh_mmcif_plat_data sh_mmcif_plat __initdata = { MMC_CAP_NEEDS_POLL, }; -static struct rcar_vin_platform_data vin_platform_data __initdata = { - .flags = RCAR_VIN_BT656, -}; - /* In the default configuration both decoders reside on I2C bus 0 */ #define BOCKW_CAMERA(idx) \ static struct i2c_board_info camera##idx##_info = { \ @@ -181,6 +177,30 @@ static struct soc_camera_link iclink##idx##_ml86v7667 __initdata = { \ BOCKW_CAMERA(0); BOCKW_CAMERA(1); +/* VIN */ +static struct rcar_vin_platform_data vin_platform_data __initdata = { + .flags = RCAR_VIN_BT656, +}; + +#define R8A7778_VIN(idx) \ +static struct resource vin##idx##_resources[] __initdata = { \ + DEFINE_RES_MEM(0xffc50000 + 0x1000 * (idx), 0x1000), \ + DEFINE_RES_IRQ(gic_iid(0x5a)), \ +}; \ + \ +static struct platform_device_info vin##idx##_info __initdata = { \ + .parent = &platform_bus, \ + .name = "r8a7778-vin", \ + .id = idx, \ + .res = vin##idx##_resources, \ + .num_res = ARRAY_SIZE(vin##idx##_resources), \ + .dma_mask = DMA_BIT_MASK(32), \ + .data = &vin_platform_data, \ + .size_data = sizeof(vin_platform_data), \ +} +R8A7778_VIN(0); +R8A7778_VIN(1); + static const struct pinctrl_map bockw_pinctrl_map[] = { /* Ether */ PIN_MAP_MUX_GROUP_DEFAULT("r8a777x-ether", "pfc-r8a7778", @@ -236,10 +256,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_vin_device(0, &vin_platform_data); + platform_device_register_full(&vin0_info); /* VIN1 has a pin conflict with Ether */ if (!IS_ENABLED(CONFIG_SH_ETH)) - r8a7778_add_vin_device(1, &vin_platform_data); + platform_device_register_full(&vin1_info); platform_device_register_data(&platform_bus, "soc-camera-pdrv", 0, &iclink0_ml86v7667, sizeof(iclink0_ml86v7667)); diff --git a/arch/arm/mach-shmobile/include/mach/r8a7778.h b/arch/arm/mach-shmobile/include/mach/r8a7778.h index adfcf51..9838608 100644 --- a/arch/arm/mach-shmobile/include/mach/r8a7778.h +++ b/arch/arm/mach-shmobile/include/mach/r8a7778.h @@ -24,8 +24,6 @@ extern void r8a7778_add_standard_devices(void); extern void r8a7778_add_standard_devices_dt(void); extern void r8a7778_add_ether_device(struct sh_eth_plat_data *pdata); -extern void r8a7778_add_vin_device(int id, - struct rcar_vin_platform_data *pdata); extern void r8a7778_add_dt_devices(void); extern void r8a7778_init_late(void); diff --git a/arch/arm/mach-shmobile/setup-r8a7778.c b/arch/arm/mach-shmobile/setup-r8a7778.c index 6a2657e..604cf36 100644 --- a/arch/arm/mach-shmobile/setup-r8a7778.c +++ b/arch/arm/mach-shmobile/setup-r8a7778.c @@ -281,40 +281,6 @@ void __init r8a7778_register_hspi(int id) hspi_resources + (2 * id), 2); } -/* VIN */ -#define R8A7778_VIN(idx) \ -static struct resource vin##idx##_resources[] __initdata = { \ - DEFINE_RES_MEM(0xffc50000 + 0x1000 * (idx), 0x1000), \ - DEFINE_RES_IRQ(gic_iid(0x5a)), \ -}; \ - \ -static struct platform_device_info vin##idx##_info __initdata = { \ - .parent = &platform_bus, \ - .name = "r8a7778-vin", \ - .id = idx, \ - .res = vin##idx##_resources, \ - .num_res = ARRAY_SIZE(vin##idx##_resources), \ - .dma_mask = DMA_BIT_MASK(32), \ -} - -R8A7778_VIN(0); -R8A7778_VIN(1); - -static struct platform_device_info *vin_info_table[] __initdata = { - &vin0_info, - &vin1_info, -}; - -void __init r8a7778_add_vin_device(int id, struct rcar_vin_platform_data *pdata) -{ - BUG_ON(id < 0 || id > 1); - - vin_info_table[id]->data = pdata; - vin_info_table[id]->size_data = sizeof(*pdata); - - platform_device_register_full(vin_info_table[id]); -} - void __init r8a7778_add_dt_devices(void) { int i; -- 1.8.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 2/4] ARM: shmobile: r8a7778: cleanup registration of sh_eth 2013-10-08 9:05 ` Simon Horman @ 2013-10-08 9:05 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-10-08 9:05 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> sh_eth driver which needs platform data at the time of registration is used from BockW only. Now, ARM/shmobile aims to support DT, and the C code base board support will be removed if DT support is completed. Current driver registration method which needs platform data and which is not shared complicates codes. This means legacy C code cleanup after DT supporting will be more complicated This patch registers it on board code as cleanup C code 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 | 14 +++++++++++++- arch/arm/mach-shmobile/include/mach/r8a7778.h | 1 - arch/arm/mach-shmobile/setup-r8a7778.c | 14 -------------- 3 files changed, 13 insertions(+), 16 deletions(-) diff --git a/arch/arm/mach-shmobile/board-bockw.c b/arch/arm/mach-shmobile/board-bockw.c index 4b696ce..f2bf61b 100644 --- a/arch/arm/mach-shmobile/board-bockw.c +++ b/arch/arm/mach-shmobile/board-bockw.c @@ -101,6 +101,12 @@ static struct resource sdhi0_resources[] __initdata = { DEFINE_RES_IRQ(gic_iid(0x77)), }; +/* Ether */ +static struct resource ether_resources[] __initdata = { + DEFINE_RES_MEM(0xfde00000, 0x400), + DEFINE_RES_IRQ(gic_iid(0x89)), +}; + static struct sh_eth_plat_data ether_platform_data __initdata = { .phy = 0x01, .edmac_endian = EDMAC_LITTLE_ENDIAN, @@ -255,7 +261,13 @@ 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); + + platform_device_register_resndata(&platform_bus, "r8a777x-ether", -1, + ether_resources, + ARRAY_SIZE(ether_resources), + ðer_platform_data, + sizeof(ether_platform_data)); + platform_device_register_full(&vin0_info); /* VIN1 has a pin conflict with Ether */ if (!IS_ENABLED(CONFIG_SH_ETH)) diff --git a/arch/arm/mach-shmobile/include/mach/r8a7778.h b/arch/arm/mach-shmobile/include/mach/r8a7778.h index 9838608..48933def 100644 --- a/arch/arm/mach-shmobile/include/mach/r8a7778.h +++ b/arch/arm/mach-shmobile/include/mach/r8a7778.h @@ -23,7 +23,6 @@ extern void r8a7778_add_standard_devices(void); extern void r8a7778_add_standard_devices_dt(void); -extern void r8a7778_add_ether_device(struct sh_eth_plat_data *pdata); extern void r8a7778_add_dt_devices(void); extern void r8a7778_init_late(void); diff --git a/arch/arm/mach-shmobile/setup-r8a7778.c b/arch/arm/mach-shmobile/setup-r8a7778.c index 604cf36..f5e15c9 100644 --- a/arch/arm/mach-shmobile/setup-r8a7778.c +++ b/arch/arm/mach-shmobile/setup-r8a7778.c @@ -174,20 +174,6 @@ static struct platform_device_info hci##_info __initdata = { \ USB_PLATFORM_INFO(ehci); USB_PLATFORM_INFO(ohci); -/* Ether */ -static struct resource ether_resources[] __initdata = { - DEFINE_RES_MEM(0xfde00000, 0x400), - DEFINE_RES_IRQ(gic_iid(0x89)), -}; - -void __init r8a7778_add_ether_device(struct sh_eth_plat_data *pdata) -{ - platform_device_register_resndata(&platform_bus, "r8a777x-ether", -1, - ether_resources, - ARRAY_SIZE(ether_resources), - pdata, sizeof(*pdata)); -} - /* PFC/GPIO */ static struct resource pfc_resources[] __initdata = { DEFINE_RES_MEM(0xfffc0000, 0x118), -- 1.8.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 2/4] ARM: shmobile: r8a7778: cleanup registration of sh_eth @ 2013-10-08 9:05 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-10-08 9:05 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> sh_eth driver which needs platform data at the time of registration is used from BockW only. Now, ARM/shmobile aims to support DT, and the C code base board support will be removed if DT support is completed. Current driver registration method which needs platform data and which is not shared complicates codes. This means legacy C code cleanup after DT supporting will be more complicated This patch registers it on board code as cleanup C code 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 | 14 +++++++++++++- arch/arm/mach-shmobile/include/mach/r8a7778.h | 1 - arch/arm/mach-shmobile/setup-r8a7778.c | 14 -------------- 3 files changed, 13 insertions(+), 16 deletions(-) diff --git a/arch/arm/mach-shmobile/board-bockw.c b/arch/arm/mach-shmobile/board-bockw.c index 4b696ce..f2bf61b 100644 --- a/arch/arm/mach-shmobile/board-bockw.c +++ b/arch/arm/mach-shmobile/board-bockw.c @@ -101,6 +101,12 @@ static struct resource sdhi0_resources[] __initdata = { DEFINE_RES_IRQ(gic_iid(0x77)), }; +/* Ether */ +static struct resource ether_resources[] __initdata = { + DEFINE_RES_MEM(0xfde00000, 0x400), + DEFINE_RES_IRQ(gic_iid(0x89)), +}; + static struct sh_eth_plat_data ether_platform_data __initdata = { .phy = 0x01, .edmac_endian = EDMAC_LITTLE_ENDIAN, @@ -255,7 +261,13 @@ 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); + + platform_device_register_resndata(&platform_bus, "r8a777x-ether", -1, + ether_resources, + ARRAY_SIZE(ether_resources), + ðer_platform_data, + sizeof(ether_platform_data)); + platform_device_register_full(&vin0_info); /* VIN1 has a pin conflict with Ether */ if (!IS_ENABLED(CONFIG_SH_ETH)) diff --git a/arch/arm/mach-shmobile/include/mach/r8a7778.h b/arch/arm/mach-shmobile/include/mach/r8a7778.h index 9838608..48933def 100644 --- a/arch/arm/mach-shmobile/include/mach/r8a7778.h +++ b/arch/arm/mach-shmobile/include/mach/r8a7778.h @@ -23,7 +23,6 @@ extern void r8a7778_add_standard_devices(void); extern void r8a7778_add_standard_devices_dt(void); -extern void r8a7778_add_ether_device(struct sh_eth_plat_data *pdata); extern void r8a7778_add_dt_devices(void); extern void r8a7778_init_late(void); diff --git a/arch/arm/mach-shmobile/setup-r8a7778.c b/arch/arm/mach-shmobile/setup-r8a7778.c index 604cf36..f5e15c9 100644 --- a/arch/arm/mach-shmobile/setup-r8a7778.c +++ b/arch/arm/mach-shmobile/setup-r8a7778.c @@ -174,20 +174,6 @@ static struct platform_device_info hci##_info __initdata = { \ USB_PLATFORM_INFO(ehci); USB_PLATFORM_INFO(ohci); -/* Ether */ -static struct resource ether_resources[] __initdata = { - DEFINE_RES_MEM(0xfde00000, 0x400), - DEFINE_RES_IRQ(gic_iid(0x89)), -}; - -void __init r8a7778_add_ether_device(struct sh_eth_plat_data *pdata) -{ - platform_device_register_resndata(&platform_bus, "r8a777x-ether", -1, - ether_resources, - ARRAY_SIZE(ether_resources), - pdata, sizeof(*pdata)); -} - /* PFC/GPIO */ static struct resource pfc_resources[] __initdata = { DEFINE_RES_MEM(0xfffc0000, 0x118), -- 1.8.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 3/4] ARM: shmobile: r8a7778: r8a7778_register_hspi() become static 2013-10-08 9:05 ` Simon Horman @ 2013-10-08 9:05 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-10-08 9:05 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> r8a7778_register_hspi() used only from setup-r8a7778.c it can be static Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/setup-r8a7778.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-shmobile/setup-r8a7778.c b/arch/arm/mach-shmobile/setup-r8a7778.c index f5e15c9..468ee65 100644 --- a/arch/arm/mach-shmobile/setup-r8a7778.c +++ b/arch/arm/mach-shmobile/setup-r8a7778.c @@ -258,7 +258,7 @@ static struct resource hspi_resources[] __initdata = { DEFINE_RES_IRQ(gic_iid(0x75)), }; -void __init r8a7778_register_hspi(int id) +static void __init r8a7778_register_hspi(int id) { BUG_ON(id < 0 || id > 2); -- 1.8.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 3/4] ARM: shmobile: r8a7778: r8a7778_register_hspi() become static @ 2013-10-08 9:05 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-10-08 9:05 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> r8a7778_register_hspi() used only from setup-r8a7778.c it can be static Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/setup-r8a7778.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-shmobile/setup-r8a7778.c b/arch/arm/mach-shmobile/setup-r8a7778.c index f5e15c9..468ee65 100644 --- a/arch/arm/mach-shmobile/setup-r8a7778.c +++ b/arch/arm/mach-shmobile/setup-r8a7778.c @@ -258,7 +258,7 @@ static struct resource hspi_resources[] __initdata = { DEFINE_RES_IRQ(gic_iid(0x75)), }; -void __init r8a7778_register_hspi(int id) +static void __init r8a7778_register_hspi(int id) { BUG_ON(id < 0 || id > 2); -- 1.8.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 4/4] ARM: shmobile: lager: Constify platform data and resources 2013-10-08 9:05 ` Simon Horman @ 2013-10-08 9:05 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-10-08 9:05 UTC (permalink / raw) To: linux-arm-kernel From: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Platform data and resources for Lager devices are kmemdup()ed when the corresponding devices are registered and can thus be declared as const. Do so. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/board-lager.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/arch/arm/mach-shmobile/board-lager.c b/arch/arm/mach-shmobile/board-lager.c index 4047fac..afd5137 100644 --- a/arch/arm/mach-shmobile/board-lager.c +++ b/arch/arm/mach-shmobile/board-lager.c @@ -55,7 +55,7 @@ static struct gpio_led lager_leds[] = { }, }; -static __initdata struct gpio_led_platform_data lager_leds_pdata = { +static const struct gpio_led_platform_data lager_leds_pdata __initconst = { .leds = lager_leds, .num_leds = ARRAY_SIZE(lager_leds), }; @@ -71,7 +71,7 @@ static struct gpio_keys_button gpio_buttons[] = { GPIO_KEY(KEY_1, RCAR_GP_PIN(1, 14), "SW2-pin1"), }; -static __initdata struct gpio_keys_platform_data lager_keys_pdata = { +static const struct gpio_keys_platform_data lager_keys_pdata __initconst = { .buttons = gpio_buttons, .nbuttons = ARRAY_SIZE(gpio_buttons), }; @@ -83,24 +83,24 @@ static struct regulator_consumer_supply fixed3v3_power_consumers[] }; /* MMCIF */ -static struct sh_mmcif_plat_data mmcif1_pdata __initdata = { +static const struct sh_mmcif_plat_data mmcif1_pdata __initconst = { .caps = MMC_CAP_8_BIT_DATA | MMC_CAP_NONREMOVABLE, }; -static struct resource mmcif1_resources[] __initdata = { +static const struct resource mmcif1_resources[] __initconst = { DEFINE_RES_MEM_NAMED(0xee220000, 0x80, "MMCIF1"), DEFINE_RES_IRQ(gic_spi(170)), }; /* Ether */ -static struct sh_eth_plat_data ether_pdata __initdata = { +static const struct sh_eth_plat_data ether_pdata __initconst = { .phy = 0x1, .edmac_endian = EDMAC_LITTLE_ENDIAN, .phy_interface = PHY_INTERFACE_MODE_RMII, .ether_link_active_low = 1, }; -static struct resource ether_resources[] __initdata = { +static const struct resource ether_resources[] __initconst = { DEFINE_RES_MEM(0xee700000, 0x400), DEFINE_RES_IRQ(gic_spi(162)), }; @@ -155,7 +155,7 @@ static void __init lager_add_standard_devices(void) ðer_pdata, sizeof(ether_pdata)); } -static const char *lager_boards_compat_dt[] __initdata = { +static const char * const lager_boards_compat_dt[] __initconst = { "renesas,lager", NULL, }; -- 1.8.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 4/4] ARM: shmobile: lager: Constify platform data and resources @ 2013-10-08 9:05 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-10-08 9:05 UTC (permalink / raw) To: linux-arm-kernel From: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Platform data and resources for Lager devices are kmemdup()ed when the corresponding devices are registered and can thus be declared as const. Do so. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/board-lager.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/arch/arm/mach-shmobile/board-lager.c b/arch/arm/mach-shmobile/board-lager.c index 4047fac..afd5137 100644 --- a/arch/arm/mach-shmobile/board-lager.c +++ b/arch/arm/mach-shmobile/board-lager.c @@ -55,7 +55,7 @@ static struct gpio_led lager_leds[] = { }, }; -static __initdata struct gpio_led_platform_data lager_leds_pdata = { +static const struct gpio_led_platform_data lager_leds_pdata __initconst = { .leds = lager_leds, .num_leds = ARRAY_SIZE(lager_leds), }; @@ -71,7 +71,7 @@ static struct gpio_keys_button gpio_buttons[] = { GPIO_KEY(KEY_1, RCAR_GP_PIN(1, 14), "SW2-pin1"), }; -static __initdata struct gpio_keys_platform_data lager_keys_pdata = { +static const struct gpio_keys_platform_data lager_keys_pdata __initconst = { .buttons = gpio_buttons, .nbuttons = ARRAY_SIZE(gpio_buttons), }; @@ -83,24 +83,24 @@ static struct regulator_consumer_supply fixed3v3_power_consumers[] = }; /* MMCIF */ -static struct sh_mmcif_plat_data mmcif1_pdata __initdata = { +static const struct sh_mmcif_plat_data mmcif1_pdata __initconst = { .caps = MMC_CAP_8_BIT_DATA | MMC_CAP_NONREMOVABLE, }; -static struct resource mmcif1_resources[] __initdata = { +static const struct resource mmcif1_resources[] __initconst = { DEFINE_RES_MEM_NAMED(0xee220000, 0x80, "MMCIF1"), DEFINE_RES_IRQ(gic_spi(170)), }; /* Ether */ -static struct sh_eth_plat_data ether_pdata __initdata = { +static const struct sh_eth_plat_data ether_pdata __initconst = { .phy = 0x1, .edmac_endian = EDMAC_LITTLE_ENDIAN, .phy_interface = PHY_INTERFACE_MODE_RMII, .ether_link_active_low = 1, }; -static struct resource ether_resources[] __initdata = { +static const struct resource ether_resources[] __initconst = { DEFINE_RES_MEM(0xee700000, 0x400), DEFINE_RES_IRQ(gic_spi(162)), }; @@ -155,7 +155,7 @@ static void __init lager_add_standard_devices(void) ðer_pdata, sizeof(ether_pdata)); } -static const char *lager_boards_compat_dt[] __initdata = { +static const char * const lager_boards_compat_dt[] __initconst = { "renesas,lager", NULL, }; -- 1.8.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* Re: [GIT PULL] Second round of Renesas ARM based SoC cleanups for v3.13 2013-10-08 9:05 ` Simon Horman @ 2013-10-09 4:53 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-10-09 4:53 UTC (permalink / raw) To: linux-arm-kernel On Tue, Oct 08, 2013 at 06:05:24PM +0900, Simon Horman wrote: > Hi Kevin, Olof and Arnd, > > please consider this Second round of Renesas ARM based SoC cleanups for v3.13. > It is based on renesas-cleanup-for-v3.13 which you have previously pulled. This pull-request causes some conflicts in arch/arm/mach-shmobile/board-bockw.c. In general the resolution strategy should be to take everything. A sample merge is provided in the renesas-next-20131008 tag of my renesas tree. > > > The following changes since commit cde214a890f81797a5eee94fffc89c1de21ed991: > > ARM: shmobile: r8a7790: Constify platform data and resources (2013-09-19 14:33:44 -0700) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-cleanup2-for-v3.13 > > for you to fetch changes up to 27113d63daac0aacaa26b1fabfc23391de4284f4: > > ARM: shmobile: lager: Constify platform data and resources (2013-09-30 16:33:17 +0900) > > ---------------------------------------------------------------- > Second round of Renesas ARM based SoC cleanups for v3.13 > > * Constify platform data and resources in lager board code > * Clean up registration of VIN and sh_eth in r8a7778 SoC and > bockw board code > * Make r8a7778_register_hspi() static in r8a7778 SoC code > > ---------------------------------------------------------------- > Kuninori Morimoto (3): > ARM: shmobile: r8a7778: cleanup registration of vin > ARM: shmobile: r8a7778: cleanup registration of sh_eth > ARM: shmobile: r8a7778: r8a7778_register_hspi() become static > > Laurent Pinchart (1): > ARM: shmobile: lager: Constify platform data and resources > > arch/arm/mach-shmobile/board-bockw.c | 46 ++++++++++++++++++++---- > arch/arm/mach-shmobile/board-lager.c | 14 ++++---- > arch/arm/mach-shmobile/include/mach/r8a7778.h | 3 -- > arch/arm/mach-shmobile/setup-r8a7778.c | 50 +-------------------------- > 4 files changed, 47 insertions(+), 66 deletions(-) > ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second round of Renesas ARM based SoC cleanups for v3.13 @ 2013-10-09 4:53 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-10-09 4:53 UTC (permalink / raw) To: linux-arm-kernel On Tue, Oct 08, 2013 at 06:05:24PM +0900, Simon Horman wrote: > Hi Kevin, Olof and Arnd, > > please consider this Second round of Renesas ARM based SoC cleanups for v3.13. > It is based on renesas-cleanup-for-v3.13 which you have previously pulled. This pull-request causes some conflicts in arch/arm/mach-shmobile/board-bockw.c. In general the resolution strategy should be to take everything. A sample merge is provided in the renesas-next-20131008 tag of my renesas tree. > > > The following changes since commit cde214a890f81797a5eee94fffc89c1de21ed991: > > ARM: shmobile: r8a7790: Constify platform data and resources (2013-09-19 14:33:44 -0700) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-cleanup2-for-v3.13 > > for you to fetch changes up to 27113d63daac0aacaa26b1fabfc23391de4284f4: > > ARM: shmobile: lager: Constify platform data and resources (2013-09-30 16:33:17 +0900) > > ---------------------------------------------------------------- > Second round of Renesas ARM based SoC cleanups for v3.13 > > * Constify platform data and resources in lager board code > * Clean up registration of VIN and sh_eth in r8a7778 SoC and > bockw board code > * Make r8a7778_register_hspi() static in r8a7778 SoC code > > ---------------------------------------------------------------- > Kuninori Morimoto (3): > ARM: shmobile: r8a7778: cleanup registration of vin > ARM: shmobile: r8a7778: cleanup registration of sh_eth > ARM: shmobile: r8a7778: r8a7778_register_hspi() become static > > Laurent Pinchart (1): > ARM: shmobile: lager: Constify platform data and resources > > arch/arm/mach-shmobile/board-bockw.c | 46 ++++++++++++++++++++---- > arch/arm/mach-shmobile/board-lager.c | 14 ++++---- > arch/arm/mach-shmobile/include/mach/r8a7778.h | 3 -- > arch/arm/mach-shmobile/setup-r8a7778.c | 50 +-------------------------- > 4 files changed, 47 insertions(+), 66 deletions(-) > ^ permalink raw reply [flat|nested] 776+ messages in thread
* Re: [GIT PULL] Second round of Renesas ARM based SoC cleanups for v3.13 2013-10-09 4:53 ` Simon Horman @ 2013-10-10 22:02 ` Kevin Hilman -1 siblings, 0 replies; 776+ messages in thread From: Kevin Hilman @ 2013-10-10 22:02 UTC (permalink / raw) To: linux-arm-kernel Simon Horman <horms@verge.net.au> writes: > On Tue, Oct 08, 2013 at 06:05:24PM +0900, Simon Horman wrote: >> Hi Kevin, Olof and Arnd, >> >> please consider this Second round of Renesas ARM based SoC cleanups for v3.13. >> It is based on renesas-cleanup-for-v3.13 which you have previously pulled. > > This pull-request causes some conflicts in > arch/arm/mach-shmobile/board-bockw.c. In general the resolution > strategy should be to take everything. Thanks for the heads up. I assume you meant board-lager.c though, right? That's where I saw the conflict. Kevin ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second round of Renesas ARM based SoC cleanups for v3.13 @ 2013-10-10 22:02 ` Kevin Hilman 0 siblings, 0 replies; 776+ messages in thread From: Kevin Hilman @ 2013-10-10 22:02 UTC (permalink / raw) To: linux-arm-kernel Simon Horman <horms@verge.net.au> writes: > On Tue, Oct 08, 2013 at 06:05:24PM +0900, Simon Horman wrote: >> Hi Kevin, Olof and Arnd, >> >> please consider this Second round of Renesas ARM based SoC cleanups for v3.13. >> It is based on renesas-cleanup-for-v3.13 which you have previously pulled. > > This pull-request causes some conflicts in > arch/arm/mach-shmobile/board-bockw.c. In general the resolution > strategy should be to take everything. Thanks for the heads up. I assume you meant board-lager.c though, right? That's where I saw the conflict. Kevin ^ permalink raw reply [flat|nested] 776+ messages in thread
* Re: [GIT PULL] Second round of Renesas ARM based SoC cleanups for v3.13 2013-10-10 22:02 ` Kevin Hilman @ 2013-10-10 22:14 ` Kevin Hilman -1 siblings, 0 replies; 776+ messages in thread From: Kevin Hilman @ 2013-10-10 22:14 UTC (permalink / raw) To: linux-arm-kernel On Thu, Oct 10, 2013 at 3:02 PM, Kevin Hilman <khilman@linaro.org> wrote: > Simon Horman <horms@verge.net.au> writes: > >> On Tue, Oct 08, 2013 at 06:05:24PM +0900, Simon Horman wrote: >>> Hi Kevin, Olof and Arnd, >>> >>> please consider this Second round of Renesas ARM based SoC cleanups for v3.13. >>> It is based on renesas-cleanup-for-v3.13 which you have previously pulled. >> >> This pull-request causes some conflicts in >> arch/arm/mach-shmobile/board-bockw.c. In general the resolution >> strategy should be to take everything. > > Thanks for the heads up. I assume you meant board-lager.c though, > right? That's where I saw the conflict. Nevermind, I see the conflict you were referring to now. The one I found was a conflict between your first cleanup tag and this one. Feel free to base subsequent cleanup branches on the previous ones if there are dependencies/conflicts like this. Kevin ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second round of Renesas ARM based SoC cleanups for v3.13 @ 2013-10-10 22:14 ` Kevin Hilman 0 siblings, 0 replies; 776+ messages in thread From: Kevin Hilman @ 2013-10-10 22:14 UTC (permalink / raw) To: linux-arm-kernel On Thu, Oct 10, 2013 at 3:02 PM, Kevin Hilman <khilman@linaro.org> wrote: > Simon Horman <horms@verge.net.au> writes: > >> On Tue, Oct 08, 2013 at 06:05:24PM +0900, Simon Horman wrote: >>> Hi Kevin, Olof and Arnd, >>> >>> please consider this Second round of Renesas ARM based SoC cleanups for v3.13. >>> It is based on renesas-cleanup-for-v3.13 which you have previously pulled. >> >> This pull-request causes some conflicts in >> arch/arm/mach-shmobile/board-bockw.c. In general the resolution >> strategy should be to take everything. > > Thanks for the heads up. I assume you meant board-lager.c though, > right? That's where I saw the conflict. Nevermind, I see the conflict you were referring to now. The one I found was a conflict between your first cleanup tag and this one. Feel free to base subsequent cleanup branches on the previous ones if there are dependencies/conflicts like this. Kevin ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second round of Renesas ARM based SoC updates for v3.13 @ 2013-10-09 6:49 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-10-09 6:49 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Kevin and Arnd, please consider this second round of Renesas ARM based SoC updates for v3.13. This pull-request is based on a merge of the following, each of which you have already pulled. The reason for the merge is to eliminate conflicts. * renesas-soc-for-v3.13 * renesas-smp-for-v3.13 * renesas-fixes4-for-v3.13 The following changes since commit 243b6db0588b1425cb020e764475e8e1c4eb40d9: Merge tag 'renesas-fixes4-for-v3.12' into soc2-base (2013-10-08 09:44:08 +0900) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-soc2-for-v3.13 for you to fetch changes up to 687c27b07050c21a62c4c975777c89e698649a6b: ARM: shmobile: r8a7791 SMP support (2013-10-08 09:53:02 +0900) ---------------------------------------------------------------- Second Round of Renesas ARM based SoC updates for v3.13 * SMP support for r8a7791 SoC * r8a7779_init_irq_extpin() for DT for r8a7779 and r8a7778 SoCs * Add HPB-DMAC to r8a7779 and r8a7778 SoCs * Add r7s72100 SoC * Make use of ARCH timer workaround on r8a7791 SoC * Add IRQC platform device support to r8a7791 SoC * Add I2C clocks and aliases for the DT mode for r8a7790 SoC * Add MAC platform device to r8a73a4 SoC ---------------------------------------------------------------- Guennadi Liakhovetski (3): ARM: shmobile: r8a73a4: add a DMAC platform device and clock for it ARM: shmobile: r8a7790: add I2C clocks and aliases for the DT mode ARM: shmobile: r8a73a4: add a clock alias for the DMAC in DT mode Kuninori Morimoto (2): ARM: shmobile: r8a7778: split r8a7778_init_irq_extpin() for DT ARM: shmobile: r8a7779: split r8a7779_init_irq_extpin() for DT Magnus Damm (7): ARM: shmobile: Break out R-Car Gen2 setup code ARM: shmobile: Introduce r8a7791_add_standard_devices() ARM: shmobile: r8a7791 IRQC platform device support ARM: shmobile: r8a7791 Arch timer workaround ARM: shmobile: Initial r7s72100 SoC support ARM: shmobile: r7s72100 SCIF support ARM: shmobile: r8a7791 SMP support Max Filippov (2): ARM: shmobile: r8a7778: add HPB-DMAC support ARM: shmobile: r8a7779: add HPB-DMAC support arch/arm/boot/dts/r7s72100.dtsi | 36 +++++ arch/arm/mach-shmobile/Kconfig | 6 + arch/arm/mach-shmobile/Makefile | 6 +- arch/arm/mach-shmobile/board-lager-reference.c | 2 +- arch/arm/mach-shmobile/board-lager.c | 2 +- arch/arm/mach-shmobile/clock-r7s72100.c | 202 ++++++++++++++++++++++++ arch/arm/mach-shmobile/clock-r8a73a4.c | 5 +- arch/arm/mach-shmobile/clock-r8a7790.c | 12 +- arch/arm/mach-shmobile/include/mach/r7s72100.h | 8 + arch/arm/mach-shmobile/include/mach/r8a73a4.h | 9 ++ arch/arm/mach-shmobile/include/mach/r8a7778.h | 9 ++ arch/arm/mach-shmobile/include/mach/r8a7779.h | 8 + arch/arm/mach-shmobile/include/mach/r8a7790.h | 6 +- arch/arm/mach-shmobile/include/mach/r8a7791.h | 2 + arch/arm/mach-shmobile/include/mach/rcar-gen2.h | 8 + arch/arm/mach-shmobile/setup-r7s72100.c | 88 +++++++++++ arch/arm/mach-shmobile/setup-r8a73a4.c | 91 +++++++++++ arch/arm/mach-shmobile/setup-r8a7778.c | 91 ++++++++++- arch/arm/mach-shmobile/setup-r8a7779.c | 160 ++++++++++++++++++- arch/arm/mach-shmobile/setup-r8a7790.c | 68 +------- arch/arm/mach-shmobile/setup-r8a7791.c | 35 ++++ arch/arm/mach-shmobile/setup-rcar-gen2.c | 91 +++++++++++ arch/arm/mach-shmobile/smp-r8a7791.c | 62 ++++++++ 23 files changed, 929 insertions(+), 78 deletions(-) create mode 100644 arch/arm/boot/dts/r7s72100.dtsi create mode 100644 arch/arm/mach-shmobile/clock-r7s72100.c create mode 100644 arch/arm/mach-shmobile/include/mach/r7s72100.h create mode 100644 arch/arm/mach-shmobile/include/mach/rcar-gen2.h create mode 100644 arch/arm/mach-shmobile/setup-r7s72100.c create mode 100644 arch/arm/mach-shmobile/setup-rcar-gen2.c create mode 100644 arch/arm/mach-shmobile/smp-r8a7791.c ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second round of Renesas ARM based SoC updates for v3.13 @ 2013-10-09 6:49 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-10-09 6:49 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Kevin and Arnd, please consider this second round of Renesas ARM based SoC updates for v3.13. This pull-request is based on a merge of the following, each of which you have already pulled. The reason for the merge is to eliminate conflicts. * renesas-soc-for-v3.13 * renesas-smp-for-v3.13 * renesas-fixes4-for-v3.13 The following changes since commit 243b6db0588b1425cb020e764475e8e1c4eb40d9: Merge tag 'renesas-fixes4-for-v3.12' into soc2-base (2013-10-08 09:44:08 +0900) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-soc2-for-v3.13 for you to fetch changes up to 687c27b07050c21a62c4c975777c89e698649a6b: ARM: shmobile: r8a7791 SMP support (2013-10-08 09:53:02 +0900) ---------------------------------------------------------------- Second Round of Renesas ARM based SoC updates for v3.13 * SMP support for r8a7791 SoC * r8a7779_init_irq_extpin() for DT for r8a7779 and r8a7778 SoCs * Add HPB-DMAC to r8a7779 and r8a7778 SoCs * Add r7s72100 SoC * Make use of ARCH timer workaround on r8a7791 SoC * Add IRQC platform device support to r8a7791 SoC * Add I2C clocks and aliases for the DT mode for r8a7790 SoC * Add MAC platform device to r8a73a4 SoC ---------------------------------------------------------------- Guennadi Liakhovetski (3): ARM: shmobile: r8a73a4: add a DMAC platform device and clock for it ARM: shmobile: r8a7790: add I2C clocks and aliases for the DT mode ARM: shmobile: r8a73a4: add a clock alias for the DMAC in DT mode Kuninori Morimoto (2): ARM: shmobile: r8a7778: split r8a7778_init_irq_extpin() for DT ARM: shmobile: r8a7779: split r8a7779_init_irq_extpin() for DT Magnus Damm (7): ARM: shmobile: Break out R-Car Gen2 setup code ARM: shmobile: Introduce r8a7791_add_standard_devices() ARM: shmobile: r8a7791 IRQC platform device support ARM: shmobile: r8a7791 Arch timer workaround ARM: shmobile: Initial r7s72100 SoC support ARM: shmobile: r7s72100 SCIF support ARM: shmobile: r8a7791 SMP support Max Filippov (2): ARM: shmobile: r8a7778: add HPB-DMAC support ARM: shmobile: r8a7779: add HPB-DMAC support arch/arm/boot/dts/r7s72100.dtsi | 36 +++++ arch/arm/mach-shmobile/Kconfig | 6 + arch/arm/mach-shmobile/Makefile | 6 +- arch/arm/mach-shmobile/board-lager-reference.c | 2 +- arch/arm/mach-shmobile/board-lager.c | 2 +- arch/arm/mach-shmobile/clock-r7s72100.c | 202 ++++++++++++++++++++++++ arch/arm/mach-shmobile/clock-r8a73a4.c | 5 +- arch/arm/mach-shmobile/clock-r8a7790.c | 12 +- arch/arm/mach-shmobile/include/mach/r7s72100.h | 8 + arch/arm/mach-shmobile/include/mach/r8a73a4.h | 9 ++ arch/arm/mach-shmobile/include/mach/r8a7778.h | 9 ++ arch/arm/mach-shmobile/include/mach/r8a7779.h | 8 + arch/arm/mach-shmobile/include/mach/r8a7790.h | 6 +- arch/arm/mach-shmobile/include/mach/r8a7791.h | 2 + arch/arm/mach-shmobile/include/mach/rcar-gen2.h | 8 + arch/arm/mach-shmobile/setup-r7s72100.c | 88 +++++++++++ arch/arm/mach-shmobile/setup-r8a73a4.c | 91 +++++++++++ arch/arm/mach-shmobile/setup-r8a7778.c | 91 ++++++++++- arch/arm/mach-shmobile/setup-r8a7779.c | 160 ++++++++++++++++++- arch/arm/mach-shmobile/setup-r8a7790.c | 68 +------- arch/arm/mach-shmobile/setup-r8a7791.c | 35 ++++ arch/arm/mach-shmobile/setup-rcar-gen2.c | 91 +++++++++++ arch/arm/mach-shmobile/smp-r8a7791.c | 62 ++++++++ 23 files changed, 929 insertions(+), 78 deletions(-) create mode 100644 arch/arm/boot/dts/r7s72100.dtsi create mode 100644 arch/arm/mach-shmobile/clock-r7s72100.c create mode 100644 arch/arm/mach-shmobile/include/mach/r7s72100.h create mode 100644 arch/arm/mach-shmobile/include/mach/rcar-gen2.h create mode 100644 arch/arm/mach-shmobile/setup-r7s72100.c create mode 100644 arch/arm/mach-shmobile/setup-rcar-gen2.c create mode 100644 arch/arm/mach-shmobile/smp-r8a7791.c ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH 01/14] ARM: shmobile: r8a73a4: add a DMAC platform device and clock for it 2013-10-09 6:49 ` Simon Horman @ 2013-10-09 6:49 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-10-09 6:49 UTC (permalink / raw) To: linux-arm-kernel From: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Add a DMAC platform device and clock definitions for it on r8a73a4. Signed-off-by: Guennadi Liakhovetski <g.liakhovetski+renesas@gmail.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/clock-r8a73a4.c | 4 +- arch/arm/mach-shmobile/include/mach/r8a73a4.h | 9 +++ arch/arm/mach-shmobile/setup-r8a73a4.c | 91 +++++++++++++++++++++++++++ 3 files changed, 103 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-shmobile/clock-r8a73a4.c b/arch/arm/mach-shmobile/clock-r8a73a4.c index 8ea5ef6..357b9bc 100644 --- a/arch/arm/mach-shmobile/clock-r8a73a4.c +++ b/arch/arm/mach-shmobile/clock-r8a73a4.c @@ -504,7 +504,7 @@ static struct clk div6_clks[DIV6_NR] = { /* MSTP */ enum { - MSTP217, MSTP216, MSTP207, MSTP206, MSTP204, MSTP203, + MSTP218, MSTP217, MSTP216, MSTP207, MSTP206, MSTP204, MSTP203, MSTP329, MSTP323, MSTP318, MSTP317, MSTP316, MSTP315, MSTP314, MSTP313, MSTP312, MSTP305, MSTP300, MSTP411, MSTP410, MSTP409, @@ -519,6 +519,7 @@ static struct clk mstp_clks[MSTP_NR] = { [MSTP207] = SH_CLK_MSTP32(&div6_clks[DIV6_MP], SMSTPCR2, 7, 0), /* SCIFB1 */ [MSTP216] = SH_CLK_MSTP32(&div6_clks[DIV6_MP], SMSTPCR2, 16, 0), /* SCIFB2 */ [MSTP217] = SH_CLK_MSTP32(&div6_clks[DIV6_MP], SMSTPCR2, 17, 0), /* SCIFB3 */ + [MSTP218] = SH_CLK_MSTP32(&div4_clks[DIV4_HP], SMSTPCR2, 18, 0), /* DMAC */ [MSTP300] = SH_CLK_MSTP32(&div4_clks[DIV4_HP], SMSTPCR3, 0, 0), /* IIC2 */ [MSTP305] = SH_CLK_MSTP32(&div6_clks[DIV6_MMC1],SMSTPCR3, 5, 0), /* MMCIF1 */ [MSTP312] = SH_CLK_MSTP32(&div6_clks[DIV6_SDHI2],SMSTPCR3, 12, 0), /* SDHI2 */ @@ -578,6 +579,7 @@ static struct clk_lookup lookups[] = { CLKDEV_DEV_ID("sh-sci.3", &mstp_clks[MSTP207]), CLKDEV_DEV_ID("sh-sci.4", &mstp_clks[MSTP216]), CLKDEV_DEV_ID("sh-sci.5", &mstp_clks[MSTP217]), + CLKDEV_DEV_ID("sh-dma-engine.0", &mstp_clks[MSTP218]), CLKDEV_DEV_ID("rcar_thermal", &mstp_clks[MSTP522]), CLKDEV_DEV_ID("e6520000.i2c", &mstp_clks[MSTP300]), CLKDEV_DEV_ID("sh_mmcif.1", &mstp_clks[MSTP305]), diff --git a/arch/arm/mach-shmobile/include/mach/r8a73a4.h b/arch/arm/mach-shmobile/include/mach/r8a73a4.h index 5214338..ce8bdd1 100644 --- a/arch/arm/mach-shmobile/include/mach/r8a73a4.h +++ b/arch/arm/mach-shmobile/include/mach/r8a73a4.h @@ -1,6 +1,15 @@ #ifndef __ASM_R8A73A4_H__ #define __ASM_R8A73A4_H__ +/* DMA slave IDs */ +enum { + SHDMA_SLAVE_INVALID, + SHDMA_SLAVE_MMCIF0_TX, + SHDMA_SLAVE_MMCIF0_RX, + SHDMA_SLAVE_MMCIF1_TX, + SHDMA_SLAVE_MMCIF1_RX, +}; + void r8a73a4_add_standard_devices(void); void r8a73a4_add_dt_devices(void); void r8a73a4_clock_init(void); diff --git a/arch/arm/mach-shmobile/setup-r8a73a4.c b/arch/arm/mach-shmobile/setup-r8a73a4.c index 53a8962..b0f2749 100644 --- a/arch/arm/mach-shmobile/setup-r8a73a4.c +++ b/arch/arm/mach-shmobile/setup-r8a73a4.c @@ -22,8 +22,10 @@ #include <linux/of_platform.h> #include <linux/platform_data/irq-renesas-irqc.h> #include <linux/serial_sci.h> +#include <linux/sh_dma.h> #include <linux/sh_timer.h> #include <mach/common.h> +#include <mach/dma-register.h> #include <mach/irqs.h> #include <mach/r8a73a4.h> #include <asm/mach/arch.h> @@ -199,12 +201,101 @@ void __init r8a73a4_add_dt_devices(void) r8a7790_register_cmt(10); } +/* DMA */ +static const struct sh_dmae_slave_config dma_slaves[] = { + { + .slave_id = SHDMA_SLAVE_MMCIF0_TX, + .addr = 0xee200034, + .chcr = CHCR_TX(XMIT_SZ_32BIT), + .mid_rid = 0xd1, + }, { + .slave_id = SHDMA_SLAVE_MMCIF0_RX, + .addr = 0xee200034, + .chcr = CHCR_RX(XMIT_SZ_32BIT), + .mid_rid = 0xd2, + }, { + .slave_id = SHDMA_SLAVE_MMCIF1_TX, + .addr = 0xee220034, + .chcr = CHCR_TX(XMIT_SZ_32BIT), + .mid_rid = 0xe1, + }, { + .slave_id = SHDMA_SLAVE_MMCIF1_RX, + .addr = 0xee220034, + .chcr = CHCR_RX(XMIT_SZ_32BIT), + .mid_rid = 0xe2, + }, +}; + +#define DMAE_CHANNEL(a, b) \ + { \ + .offset = (a) - 0x20, \ + .dmars = (a) - 0x20 + 0x40, \ + .chclr_bit = (b), \ + .chclr_offset = 0x80 - 0x20, \ + } + +static const struct sh_dmae_channel dma_channels[] = { + DMAE_CHANNEL(0x8000, 0), + DMAE_CHANNEL(0x8080, 1), + DMAE_CHANNEL(0x8100, 2), + DMAE_CHANNEL(0x8180, 3), + DMAE_CHANNEL(0x8200, 4), + DMAE_CHANNEL(0x8280, 5), + DMAE_CHANNEL(0x8300, 6), + DMAE_CHANNEL(0x8380, 7), + DMAE_CHANNEL(0x8400, 8), + DMAE_CHANNEL(0x8480, 9), + DMAE_CHANNEL(0x8500, 10), + DMAE_CHANNEL(0x8580, 11), + DMAE_CHANNEL(0x8600, 12), + DMAE_CHANNEL(0x8680, 13), + DMAE_CHANNEL(0x8700, 14), + DMAE_CHANNEL(0x8780, 15), + DMAE_CHANNEL(0x8800, 16), + DMAE_CHANNEL(0x8880, 17), + DMAE_CHANNEL(0x8900, 18), + DMAE_CHANNEL(0x8980, 19), +}; + +static const struct sh_dmae_pdata dma_pdata = { + .slave = dma_slaves, + .slave_num = ARRAY_SIZE(dma_slaves), + .channel = dma_channels, + .channel_num = ARRAY_SIZE(dma_channels), + .ts_low_shift = TS_LOW_SHIFT, + .ts_low_mask = TS_LOW_BIT << TS_LOW_SHIFT, + .ts_high_shift = TS_HI_SHIFT, + .ts_high_mask = TS_HI_BIT << TS_HI_SHIFT, + .ts_shift = dma_ts_shift, + .ts_shift_num = ARRAY_SIZE(dma_ts_shift), + .dmaor_init = DMAOR_DME, + .chclr_present = 1, + .chclr_bitwise = 1, +}; + +static struct resource dma_resources[] = { + DEFINE_RES_MEM(0xe6700020, 0x89e0), + DEFINE_RES_IRQ_NAMED(gic_spi(220), "error_irq"), + { + /* IRQ for channels 0-19 */ + .start = gic_spi(200), + .end = gic_spi(219), + .flags = IORESOURCE_IRQ, + }, +}; + +#define r8a73a4_register_dmac() \ + platform_device_register_resndata(&platform_bus, "sh-dma-engine", 0, \ + dma_resources, ARRAY_SIZE(dma_resources), \ + &dma_pdata, sizeof(dma_pdata)) + void __init r8a73a4_add_standard_devices(void) { r8a73a4_add_dt_devices(); r8a73a4_register_irqc(0); r8a73a4_register_irqc(1); r8a73a4_register_thermal(); + r8a73a4_register_dmac(); } void __init r8a73a4_init_early(void) -- 1.8.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 01/14] ARM: shmobile: r8a73a4: add a DMAC platform device and clock for it @ 2013-10-09 6:49 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-10-09 6:49 UTC (permalink / raw) To: linux-arm-kernel From: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Add a DMAC platform device and clock definitions for it on r8a73a4. Signed-off-by: Guennadi Liakhovetski <g.liakhovetski+renesas@gmail.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/clock-r8a73a4.c | 4 +- arch/arm/mach-shmobile/include/mach/r8a73a4.h | 9 +++ arch/arm/mach-shmobile/setup-r8a73a4.c | 91 +++++++++++++++++++++++++++ 3 files changed, 103 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-shmobile/clock-r8a73a4.c b/arch/arm/mach-shmobile/clock-r8a73a4.c index 8ea5ef6..357b9bc 100644 --- a/arch/arm/mach-shmobile/clock-r8a73a4.c +++ b/arch/arm/mach-shmobile/clock-r8a73a4.c @@ -504,7 +504,7 @@ static struct clk div6_clks[DIV6_NR] = { /* MSTP */ enum { - MSTP217, MSTP216, MSTP207, MSTP206, MSTP204, MSTP203, + MSTP218, MSTP217, MSTP216, MSTP207, MSTP206, MSTP204, MSTP203, MSTP329, MSTP323, MSTP318, MSTP317, MSTP316, MSTP315, MSTP314, MSTP313, MSTP312, MSTP305, MSTP300, MSTP411, MSTP410, MSTP409, @@ -519,6 +519,7 @@ static struct clk mstp_clks[MSTP_NR] = { [MSTP207] = SH_CLK_MSTP32(&div6_clks[DIV6_MP], SMSTPCR2, 7, 0), /* SCIFB1 */ [MSTP216] = SH_CLK_MSTP32(&div6_clks[DIV6_MP], SMSTPCR2, 16, 0), /* SCIFB2 */ [MSTP217] = SH_CLK_MSTP32(&div6_clks[DIV6_MP], SMSTPCR2, 17, 0), /* SCIFB3 */ + [MSTP218] = SH_CLK_MSTP32(&div4_clks[DIV4_HP], SMSTPCR2, 18, 0), /* DMAC */ [MSTP300] = SH_CLK_MSTP32(&div4_clks[DIV4_HP], SMSTPCR3, 0, 0), /* IIC2 */ [MSTP305] = SH_CLK_MSTP32(&div6_clks[DIV6_MMC1],SMSTPCR3, 5, 0), /* MMCIF1 */ [MSTP312] = SH_CLK_MSTP32(&div6_clks[DIV6_SDHI2],SMSTPCR3, 12, 0), /* SDHI2 */ @@ -578,6 +579,7 @@ static struct clk_lookup lookups[] = { CLKDEV_DEV_ID("sh-sci.3", &mstp_clks[MSTP207]), CLKDEV_DEV_ID("sh-sci.4", &mstp_clks[MSTP216]), CLKDEV_DEV_ID("sh-sci.5", &mstp_clks[MSTP217]), + CLKDEV_DEV_ID("sh-dma-engine.0", &mstp_clks[MSTP218]), CLKDEV_DEV_ID("rcar_thermal", &mstp_clks[MSTP522]), CLKDEV_DEV_ID("e6520000.i2c", &mstp_clks[MSTP300]), CLKDEV_DEV_ID("sh_mmcif.1", &mstp_clks[MSTP305]), diff --git a/arch/arm/mach-shmobile/include/mach/r8a73a4.h b/arch/arm/mach-shmobile/include/mach/r8a73a4.h index 5214338..ce8bdd1 100644 --- a/arch/arm/mach-shmobile/include/mach/r8a73a4.h +++ b/arch/arm/mach-shmobile/include/mach/r8a73a4.h @@ -1,6 +1,15 @@ #ifndef __ASM_R8A73A4_H__ #define __ASM_R8A73A4_H__ +/* DMA slave IDs */ +enum { + SHDMA_SLAVE_INVALID, + SHDMA_SLAVE_MMCIF0_TX, + SHDMA_SLAVE_MMCIF0_RX, + SHDMA_SLAVE_MMCIF1_TX, + SHDMA_SLAVE_MMCIF1_RX, +}; + void r8a73a4_add_standard_devices(void); void r8a73a4_add_dt_devices(void); void r8a73a4_clock_init(void); diff --git a/arch/arm/mach-shmobile/setup-r8a73a4.c b/arch/arm/mach-shmobile/setup-r8a73a4.c index 53a8962..b0f2749 100644 --- a/arch/arm/mach-shmobile/setup-r8a73a4.c +++ b/arch/arm/mach-shmobile/setup-r8a73a4.c @@ -22,8 +22,10 @@ #include <linux/of_platform.h> #include <linux/platform_data/irq-renesas-irqc.h> #include <linux/serial_sci.h> +#include <linux/sh_dma.h> #include <linux/sh_timer.h> #include <mach/common.h> +#include <mach/dma-register.h> #include <mach/irqs.h> #include <mach/r8a73a4.h> #include <asm/mach/arch.h> @@ -199,12 +201,101 @@ void __init r8a73a4_add_dt_devices(void) r8a7790_register_cmt(10); } +/* DMA */ +static const struct sh_dmae_slave_config dma_slaves[] = { + { + .slave_id = SHDMA_SLAVE_MMCIF0_TX, + .addr = 0xee200034, + .chcr = CHCR_TX(XMIT_SZ_32BIT), + .mid_rid = 0xd1, + }, { + .slave_id = SHDMA_SLAVE_MMCIF0_RX, + .addr = 0xee200034, + .chcr = CHCR_RX(XMIT_SZ_32BIT), + .mid_rid = 0xd2, + }, { + .slave_id = SHDMA_SLAVE_MMCIF1_TX, + .addr = 0xee220034, + .chcr = CHCR_TX(XMIT_SZ_32BIT), + .mid_rid = 0xe1, + }, { + .slave_id = SHDMA_SLAVE_MMCIF1_RX, + .addr = 0xee220034, + .chcr = CHCR_RX(XMIT_SZ_32BIT), + .mid_rid = 0xe2, + }, +}; + +#define DMAE_CHANNEL(a, b) \ + { \ + .offset = (a) - 0x20, \ + .dmars = (a) - 0x20 + 0x40, \ + .chclr_bit = (b), \ + .chclr_offset = 0x80 - 0x20, \ + } + +static const struct sh_dmae_channel dma_channels[] = { + DMAE_CHANNEL(0x8000, 0), + DMAE_CHANNEL(0x8080, 1), + DMAE_CHANNEL(0x8100, 2), + DMAE_CHANNEL(0x8180, 3), + DMAE_CHANNEL(0x8200, 4), + DMAE_CHANNEL(0x8280, 5), + DMAE_CHANNEL(0x8300, 6), + DMAE_CHANNEL(0x8380, 7), + DMAE_CHANNEL(0x8400, 8), + DMAE_CHANNEL(0x8480, 9), + DMAE_CHANNEL(0x8500, 10), + DMAE_CHANNEL(0x8580, 11), + DMAE_CHANNEL(0x8600, 12), + DMAE_CHANNEL(0x8680, 13), + DMAE_CHANNEL(0x8700, 14), + DMAE_CHANNEL(0x8780, 15), + DMAE_CHANNEL(0x8800, 16), + DMAE_CHANNEL(0x8880, 17), + DMAE_CHANNEL(0x8900, 18), + DMAE_CHANNEL(0x8980, 19), +}; + +static const struct sh_dmae_pdata dma_pdata = { + .slave = dma_slaves, + .slave_num = ARRAY_SIZE(dma_slaves), + .channel = dma_channels, + .channel_num = ARRAY_SIZE(dma_channels), + .ts_low_shift = TS_LOW_SHIFT, + .ts_low_mask = TS_LOW_BIT << TS_LOW_SHIFT, + .ts_high_shift = TS_HI_SHIFT, + .ts_high_mask = TS_HI_BIT << TS_HI_SHIFT, + .ts_shift = dma_ts_shift, + .ts_shift_num = ARRAY_SIZE(dma_ts_shift), + .dmaor_init = DMAOR_DME, + .chclr_present = 1, + .chclr_bitwise = 1, +}; + +static struct resource dma_resources[] = { + DEFINE_RES_MEM(0xe6700020, 0x89e0), + DEFINE_RES_IRQ_NAMED(gic_spi(220), "error_irq"), + { + /* IRQ for channels 0-19 */ + .start = gic_spi(200), + .end = gic_spi(219), + .flags = IORESOURCE_IRQ, + }, +}; + +#define r8a73a4_register_dmac() \ + platform_device_register_resndata(&platform_bus, "sh-dma-engine", 0, \ + dma_resources, ARRAY_SIZE(dma_resources), \ + &dma_pdata, sizeof(dma_pdata)) + void __init r8a73a4_add_standard_devices(void) { r8a73a4_add_dt_devices(); r8a73a4_register_irqc(0); r8a73a4_register_irqc(1); r8a73a4_register_thermal(); + r8a73a4_register_dmac(); } void __init r8a73a4_init_early(void) -- 1.8.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 02/14] ARM: shmobile: r8a7778: add HPB-DMAC support 2013-10-09 6:49 ` Simon Horman @ 2013-10-09 6:49 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-10-09 6:49 UTC (permalink / raw) To: linux-arm-kernel From: Max Filippov <max.filippov@cogentembedded.com> Add HPB-DMAC platform device on R8A7778 SoC along with its slave and channel configurations (only for SDHI0 so far). Signed-off-by: Max Filippov <max.filippov@cogentembedded.com> [Sergei: moved *enum* declaring HPB-DMAC slave IDs from now removed <mach/dma.h> to <mach/r8a7778.h>, removed #include <mach/dma.h> from setup-r8a7778.c, removed SSI-related *enum* values and SSI-related data from hpb_dmae_slaves[] and hpb_dmae_channels[], moved the comments after the element initializers of hpb_dmae_channels[].] Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/include/mach/r8a7778.h | 8 +++ arch/arm/mach-shmobile/setup-r8a7778.c | 85 +++++++++++++++++++++++++++ 2 files changed, 93 insertions(+) diff --git a/arch/arm/mach-shmobile/include/mach/r8a7778.h b/arch/arm/mach-shmobile/include/mach/r8a7778.h index ea1dca6..1d6fe97 100644 --- a/arch/arm/mach-shmobile/include/mach/r8a7778.h +++ b/arch/arm/mach-shmobile/include/mach/r8a7778.h @@ -1,6 +1,7 @@ /* * Copyright (C) 2013 Renesas Solutions Corp. * Copyright (C) 2013 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> + * Copyright (C) 2013 Cogent Embedded, Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -21,6 +22,13 @@ #include <linux/sh_eth.h> #include <linux/platform_data/camera-rcar.h> +/* HPB-DMA slave IDs */ +enum { + HPBDMA_SLAVE_DUMMY, + HPBDMA_SLAVE_SDHI0_TX, + HPBDMA_SLAVE_SDHI0_RX, +}; + extern void r8a7778_add_standard_devices(void); extern void r8a7778_add_standard_devices_dt(void); extern void r8a7778_add_ether_device(struct sh_eth_plat_data *pdata); diff --git a/arch/arm/mach-shmobile/setup-r8a7778.c b/arch/arm/mach-shmobile/setup-r8a7778.c index e484d14..fa1b7e4 100644 --- a/arch/arm/mach-shmobile/setup-r8a7778.c +++ b/arch/arm/mach-shmobile/setup-r8a7778.c @@ -24,6 +24,7 @@ #include <linux/irqchip/arm-gic.h> #include <linux/of.h> #include <linux/of_platform.h> +#include <linux/platform_data/dma-rcar-hpbdma.h> #include <linux/platform_data/gpio-rcar.h> #include <linux/platform_data/irq-renesas-intc-irqpin.h> #include <linux/platform_device.h> @@ -356,6 +357,88 @@ void __init r8a7778_add_dt_devices(void) r8a7778_register_tmu(1); } +/* HPB-DMA */ + +/* Asynchronous mode register (ASYNCMDR) bits */ +#define HPB_DMAE_ASYNCMDR_ASMD22_MASK BIT(2) /* SDHI0 */ +#define HPB_DMAE_ASYNCMDR_ASMD22_SINGLE BIT(2) /* SDHI0 */ +#define HPB_DMAE_ASYNCMDR_ASMD22_MULTI 0 /* SDHI0 */ +#define HPB_DMAE_ASYNCMDR_ASMD21_MASK BIT(1) /* SDHI0 */ +#define HPB_DMAE_ASYNCMDR_ASMD21_SINGLE BIT(1) /* SDHI0 */ +#define HPB_DMAE_ASYNCMDR_ASMD21_MULTI 0 /* SDHI0 */ + +static const struct hpb_dmae_slave_config hpb_dmae_slaves[] = { + { + .id = HPBDMA_SLAVE_SDHI0_TX, + .addr = 0xffe4c000 + 0x30, + .dcr = HPB_DMAE_DCR_SPDS_16BIT | + HPB_DMAE_DCR_DMDL | + HPB_DMAE_DCR_DPDS_16BIT, + .rstr = HPB_DMAE_ASYNCRSTR_ASRST21 | + HPB_DMAE_ASYNCRSTR_ASRST22 | + HPB_DMAE_ASYNCRSTR_ASRST23, + .mdr = HPB_DMAE_ASYNCMDR_ASMD21_MULTI, + .mdm = HPB_DMAE_ASYNCMDR_ASMD21_MASK, + .port = 0x0D0C, + .flags = HPB_DMAE_SET_ASYNC_RESET | HPB_DMAE_SET_ASYNC_MODE, + .dma_ch = 21, + }, { + .id = HPBDMA_SLAVE_SDHI0_RX, + .addr = 0xffe4c000 + 0x30, + .dcr = HPB_DMAE_DCR_SMDL | + HPB_DMAE_DCR_SPDS_16BIT | + HPB_DMAE_DCR_DPDS_16BIT, + .rstr = HPB_DMAE_ASYNCRSTR_ASRST21 | + HPB_DMAE_ASYNCRSTR_ASRST22 | + HPB_DMAE_ASYNCRSTR_ASRST23, + .mdr = HPB_DMAE_ASYNCMDR_ASMD22_MULTI, + .mdm = HPB_DMAE_ASYNCMDR_ASMD22_MASK, + .port = 0x0D0C, + .flags = HPB_DMAE_SET_ASYNC_RESET | HPB_DMAE_SET_ASYNC_MODE, + .dma_ch = 22, + }, +}; + +static const struct hpb_dmae_channel hpb_dmae_channels[] = { + HPB_DMAE_CHANNEL(0x7e, HPBDMA_SLAVE_SDHI0_TX), /* ch. 21 */ + HPB_DMAE_CHANNEL(0x7e, HPBDMA_SLAVE_SDHI0_RX), /* ch. 22 */ +}; + +static struct hpb_dmae_pdata dma_platform_data __initdata = { + .slaves = hpb_dmae_slaves, + .num_slaves = ARRAY_SIZE(hpb_dmae_slaves), + .channels = hpb_dmae_channels, + .num_channels = ARRAY_SIZE(hpb_dmae_channels), + .ts_shift = { + [XMIT_SZ_8BIT] = 0, + [XMIT_SZ_16BIT] = 1, + [XMIT_SZ_32BIT] = 2, + }, + .num_hw_channels = 39, +}; + +static struct resource hpb_dmae_resources[] __initdata = { + /* Channel registers */ + DEFINE_RES_MEM(0xffc08000, 0x1000), + /* Common registers */ + DEFINE_RES_MEM(0xffc09000, 0x170), + /* Asynchronous reset registers */ + DEFINE_RES_MEM(0xffc00300, 4), + /* Asynchronous mode registers */ + DEFINE_RES_MEM(0xffc00400, 4), + /* IRQ for DMA channels */ + DEFINE_RES_NAMED(gic_iid(0x7b), 5, NULL, IORESOURCE_IRQ), +}; + +static void __init r8a7778_register_hpb_dmae(void) +{ + platform_device_register_resndata(&platform_bus, "hpb-dma-engine", -1, + hpb_dmae_resources, + ARRAY_SIZE(hpb_dmae_resources), + &dma_platform_data, + sizeof(dma_platform_data)); +} + void __init r8a7778_add_standard_devices(void) { r8a7778_add_dt_devices(); @@ -366,6 +449,8 @@ void __init r8a7778_add_standard_devices(void) r8a7778_register_hspi(0); r8a7778_register_hspi(1); r8a7778_register_hspi(2); + + r8a7778_register_hpb_dmae(); } void __init r8a7778_init_late(void) -- 1.8.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 02/14] ARM: shmobile: r8a7778: add HPB-DMAC support @ 2013-10-09 6:49 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-10-09 6:49 UTC (permalink / raw) To: linux-arm-kernel From: Max Filippov <max.filippov@cogentembedded.com> Add HPB-DMAC platform device on R8A7778 SoC along with its slave and channel configurations (only for SDHI0 so far). Signed-off-by: Max Filippov <max.filippov@cogentembedded.com> [Sergei: moved *enum* declaring HPB-DMAC slave IDs from now removed <mach/dma.h> to <mach/r8a7778.h>, removed #include <mach/dma.h> from setup-r8a7778.c, removed SSI-related *enum* values and SSI-related data from hpb_dmae_slaves[] and hpb_dmae_channels[], moved the comments after the element initializers of hpb_dmae_channels[].] Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/include/mach/r8a7778.h | 8 +++ arch/arm/mach-shmobile/setup-r8a7778.c | 85 +++++++++++++++++++++++++++ 2 files changed, 93 insertions(+) diff --git a/arch/arm/mach-shmobile/include/mach/r8a7778.h b/arch/arm/mach-shmobile/include/mach/r8a7778.h index ea1dca6..1d6fe97 100644 --- a/arch/arm/mach-shmobile/include/mach/r8a7778.h +++ b/arch/arm/mach-shmobile/include/mach/r8a7778.h @@ -1,6 +1,7 @@ /* * Copyright (C) 2013 Renesas Solutions Corp. * Copyright (C) 2013 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> + * Copyright (C) 2013 Cogent Embedded, Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -21,6 +22,13 @@ #include <linux/sh_eth.h> #include <linux/platform_data/camera-rcar.h> +/* HPB-DMA slave IDs */ +enum { + HPBDMA_SLAVE_DUMMY, + HPBDMA_SLAVE_SDHI0_TX, + HPBDMA_SLAVE_SDHI0_RX, +}; + extern void r8a7778_add_standard_devices(void); extern void r8a7778_add_standard_devices_dt(void); extern void r8a7778_add_ether_device(struct sh_eth_plat_data *pdata); diff --git a/arch/arm/mach-shmobile/setup-r8a7778.c b/arch/arm/mach-shmobile/setup-r8a7778.c index e484d14..fa1b7e4 100644 --- a/arch/arm/mach-shmobile/setup-r8a7778.c +++ b/arch/arm/mach-shmobile/setup-r8a7778.c @@ -24,6 +24,7 @@ #include <linux/irqchip/arm-gic.h> #include <linux/of.h> #include <linux/of_platform.h> +#include <linux/platform_data/dma-rcar-hpbdma.h> #include <linux/platform_data/gpio-rcar.h> #include <linux/platform_data/irq-renesas-intc-irqpin.h> #include <linux/platform_device.h> @@ -356,6 +357,88 @@ void __init r8a7778_add_dt_devices(void) r8a7778_register_tmu(1); } +/* HPB-DMA */ + +/* Asynchronous mode register (ASYNCMDR) bits */ +#define HPB_DMAE_ASYNCMDR_ASMD22_MASK BIT(2) /* SDHI0 */ +#define HPB_DMAE_ASYNCMDR_ASMD22_SINGLE BIT(2) /* SDHI0 */ +#define HPB_DMAE_ASYNCMDR_ASMD22_MULTI 0 /* SDHI0 */ +#define HPB_DMAE_ASYNCMDR_ASMD21_MASK BIT(1) /* SDHI0 */ +#define HPB_DMAE_ASYNCMDR_ASMD21_SINGLE BIT(1) /* SDHI0 */ +#define HPB_DMAE_ASYNCMDR_ASMD21_MULTI 0 /* SDHI0 */ + +static const struct hpb_dmae_slave_config hpb_dmae_slaves[] = { + { + .id = HPBDMA_SLAVE_SDHI0_TX, + .addr = 0xffe4c000 + 0x30, + .dcr = HPB_DMAE_DCR_SPDS_16BIT | + HPB_DMAE_DCR_DMDL | + HPB_DMAE_DCR_DPDS_16BIT, + .rstr = HPB_DMAE_ASYNCRSTR_ASRST21 | + HPB_DMAE_ASYNCRSTR_ASRST22 | + HPB_DMAE_ASYNCRSTR_ASRST23, + .mdr = HPB_DMAE_ASYNCMDR_ASMD21_MULTI, + .mdm = HPB_DMAE_ASYNCMDR_ASMD21_MASK, + .port = 0x0D0C, + .flags = HPB_DMAE_SET_ASYNC_RESET | HPB_DMAE_SET_ASYNC_MODE, + .dma_ch = 21, + }, { + .id = HPBDMA_SLAVE_SDHI0_RX, + .addr = 0xffe4c000 + 0x30, + .dcr = HPB_DMAE_DCR_SMDL | + HPB_DMAE_DCR_SPDS_16BIT | + HPB_DMAE_DCR_DPDS_16BIT, + .rstr = HPB_DMAE_ASYNCRSTR_ASRST21 | + HPB_DMAE_ASYNCRSTR_ASRST22 | + HPB_DMAE_ASYNCRSTR_ASRST23, + .mdr = HPB_DMAE_ASYNCMDR_ASMD22_MULTI, + .mdm = HPB_DMAE_ASYNCMDR_ASMD22_MASK, + .port = 0x0D0C, + .flags = HPB_DMAE_SET_ASYNC_RESET | HPB_DMAE_SET_ASYNC_MODE, + .dma_ch = 22, + }, +}; + +static const struct hpb_dmae_channel hpb_dmae_channels[] = { + HPB_DMAE_CHANNEL(0x7e, HPBDMA_SLAVE_SDHI0_TX), /* ch. 21 */ + HPB_DMAE_CHANNEL(0x7e, HPBDMA_SLAVE_SDHI0_RX), /* ch. 22 */ +}; + +static struct hpb_dmae_pdata dma_platform_data __initdata = { + .slaves = hpb_dmae_slaves, + .num_slaves = ARRAY_SIZE(hpb_dmae_slaves), + .channels = hpb_dmae_channels, + .num_channels = ARRAY_SIZE(hpb_dmae_channels), + .ts_shift = { + [XMIT_SZ_8BIT] = 0, + [XMIT_SZ_16BIT] = 1, + [XMIT_SZ_32BIT] = 2, + }, + .num_hw_channels = 39, +}; + +static struct resource hpb_dmae_resources[] __initdata = { + /* Channel registers */ + DEFINE_RES_MEM(0xffc08000, 0x1000), + /* Common registers */ + DEFINE_RES_MEM(0xffc09000, 0x170), + /* Asynchronous reset registers */ + DEFINE_RES_MEM(0xffc00300, 4), + /* Asynchronous mode registers */ + DEFINE_RES_MEM(0xffc00400, 4), + /* IRQ for DMA channels */ + DEFINE_RES_NAMED(gic_iid(0x7b), 5, NULL, IORESOURCE_IRQ), +}; + +static void __init r8a7778_register_hpb_dmae(void) +{ + platform_device_register_resndata(&platform_bus, "hpb-dma-engine", -1, + hpb_dmae_resources, + ARRAY_SIZE(hpb_dmae_resources), + &dma_platform_data, + sizeof(dma_platform_data)); +} + void __init r8a7778_add_standard_devices(void) { r8a7778_add_dt_devices(); @@ -366,6 +449,8 @@ void __init r8a7778_add_standard_devices(void) r8a7778_register_hspi(0); r8a7778_register_hspi(1); r8a7778_register_hspi(2); + + r8a7778_register_hpb_dmae(); } void __init r8a7778_init_late(void) -- 1.8.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 03/14] ARM: shmobile: r8a7779: add HPB-DMAC support 2013-10-09 6:49 ` Simon Horman @ 2013-10-09 6:49 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-10-09 6:49 UTC (permalink / raw) To: linux-arm-kernel From: Max Filippov <max.filippov@cogentembedded.com> Add HPB-DMAC platform device on R8A7779 SoC along with its slave and channel configurations (only for SDHI0 so far). Signed-off-by: Max Filippov <max.filippov@cogentembedded.com> [Sergei: moved *enum* declaring HPB-DMAC slave IDs from now removed <mach/dma.h> to <mach/r8a7779.h>, removed #include <mach/dma.h> from setup-r8a7779.c, removed SSI-related *enum* values and SSI-related data from hpb_dmae_slaves[] and hpb_dmae_channels[], added ASYNCMDR.ASBTMD{20|24|43} and ASYNCMDR.ASMD{20|24|43} fields/values, fixed comments to ASYNCMDR.ASBTMD2[123] and ASYNCMDR.ASMD2[123] fields/values, renamed all the bit/field/value #define's to include 'HBP_DMAE_' prefix to match the driver, moved comments after the element initializers of hpb_dmae_channels[].] Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/include/mach/r8a7779.h | 7 ++ arch/arm/mach-shmobile/setup-r8a7779.c | 154 ++++++++++++++++++++++++++ 2 files changed, 161 insertions(+) diff --git a/arch/arm/mach-shmobile/include/mach/r8a7779.h b/arch/arm/mach-shmobile/include/mach/r8a7779.h index 11c7400..31e87b9 100644 --- a/arch/arm/mach-shmobile/include/mach/r8a7779.h +++ b/arch/arm/mach-shmobile/include/mach/r8a7779.h @@ -6,6 +6,13 @@ #include <linux/sh_eth.h> #include <linux/platform_data/camera-rcar.h> +/* HPB-DMA slave IDs */ +enum { + HPBDMA_SLAVE_DUMMY, + HPBDMA_SLAVE_SDHI0_TX, + HPBDMA_SLAVE_SDHI0_RX, +}; + struct platform_device; struct r8a7779_pm_ch { diff --git a/arch/arm/mach-shmobile/setup-r8a7779.c b/arch/arm/mach-shmobile/setup-r8a7779.c index ecd0148..eacb2f7 100644 --- a/arch/arm/mach-shmobile/setup-r8a7779.c +++ b/arch/arm/mach-shmobile/setup-r8a7779.c @@ -25,6 +25,7 @@ #include <linux/irqchip.h> #include <linux/irqchip/arm-gic.h> #include <linux/of_platform.h> +#include <linux/platform_data/dma-rcar-hpbdma.h> #include <linux/platform_data/gpio-rcar.h> #include <linux/platform_data/irq-renesas-intc-irqpin.h> #include <linux/platform_device.h> @@ -632,6 +633,158 @@ static struct platform_device_info *vin_info_table[] __initdata = { &vin3_info, }; +/* HPB-DMA */ + +/* Asynchronous mode register bits */ +#define HPB_DMAE_ASYNCMDR_ASMD43_MASK BIT(23) /* MMC1 */ +#define HPB_DMAE_ASYNCMDR_ASMD43_SINGLE BIT(23) /* MMC1 */ +#define HPB_DMAE_ASYNCMDR_ASMD43_MULTI 0 /* MMC1 */ +#define HPB_DMAE_ASYNCMDR_ASBTMD43_MASK BIT(22) /* MMC1 */ +#define HPB_DMAE_ASYNCMDR_ASBTMD43_BURST BIT(22) /* MMC1 */ +#define HPB_DMAE_ASYNCMDR_ASBTMD43_NBURST 0 /* MMC1 */ +#define HPB_DMAE_ASYNCMDR_ASMD24_MASK BIT(21) /* MMC0 */ +#define HPB_DMAE_ASYNCMDR_ASMD24_SINGLE BIT(21) /* MMC0 */ +#define HPB_DMAE_ASYNCMDR_ASMD24_MULTI 0 /* MMC0 */ +#define HPB_DMAE_ASYNCMDR_ASBTMD24_MASK BIT(20) /* MMC0 */ +#define HPB_DMAE_ASYNCMDR_ASBTMD24_BURST BIT(20) /* MMC0 */ +#define HPB_DMAE_ASYNCMDR_ASBTMD24_NBURST 0 /* MMC0 */ +#define HPB_DMAE_ASYNCMDR_ASMD41_MASK BIT(19) /* SDHI3 */ +#define HPB_DMAE_ASYNCMDR_ASMD41_SINGLE BIT(19) /* SDHI3 */ +#define HPB_DMAE_ASYNCMDR_ASMD41_MULTI 0 /* SDHI3 */ +#define HPB_DMAE_ASYNCMDR_ASBTMD41_MASK BIT(18) /* SDHI3 */ +#define HPB_DMAE_ASYNCMDR_ASBTMD41_BURST BIT(18) /* SDHI3 */ +#define HPB_DMAE_ASYNCMDR_ASBTMD41_NBURST 0 /* SDHI3 */ +#define HPB_DMAE_ASYNCMDR_ASMD40_MASK BIT(17) /* SDHI3 */ +#define HPB_DMAE_ASYNCMDR_ASMD40_SINGLE BIT(17) /* SDHI3 */ +#define HPB_DMAE_ASYNCMDR_ASMD40_MULTI 0 /* SDHI3 */ +#define HPB_DMAE_ASYNCMDR_ASBTMD40_MASK BIT(16) /* SDHI3 */ +#define HPB_DMAE_ASYNCMDR_ASBTMD40_BURST BIT(16) /* SDHI3 */ +#define HPB_DMAE_ASYNCMDR_ASBTMD40_NBURST 0 /* SDHI3 */ +#define HPB_DMAE_ASYNCMDR_ASMD39_MASK BIT(15) /* SDHI3 */ +#define HPB_DMAE_ASYNCMDR_ASMD39_SINGLE BIT(15) /* SDHI3 */ +#define HPB_DMAE_ASYNCMDR_ASMD39_MULTI 0 /* SDHI3 */ +#define HPB_DMAE_ASYNCMDR_ASBTMD39_MASK BIT(14) /* SDHI3 */ +#define HPB_DMAE_ASYNCMDR_ASBTMD39_BURST BIT(14) /* SDHI3 */ +#define HPB_DMAE_ASYNCMDR_ASBTMD39_NBURST 0 /* SDHI3 */ +#define HPB_DMAE_ASYNCMDR_ASMD27_MASK BIT(13) /* SDHI2 */ +#define HPB_DMAE_ASYNCMDR_ASMD27_SINGLE BIT(13) /* SDHI2 */ +#define HPB_DMAE_ASYNCMDR_ASMD27_MULTI 0 /* SDHI2 */ +#define HPB_DMAE_ASYNCMDR_ASBTMD27_MASK BIT(12) /* SDHI2 */ +#define HPB_DMAE_ASYNCMDR_ASBTMD27_BURST BIT(12) /* SDHI2 */ +#define HPB_DMAE_ASYNCMDR_ASBTMD27_NBURST 0 /* SDHI2 */ +#define HPB_DMAE_ASYNCMDR_ASMD26_MASK BIT(11) /* SDHI2 */ +#define HPB_DMAE_ASYNCMDR_ASMD26_SINGLE BIT(11) /* SDHI2 */ +#define HPB_DMAE_ASYNCMDR_ASMD26_MULTI 0 /* SDHI2 */ +#define HPB_DMAE_ASYNCMDR_ASBTMD26_MASK BIT(10) /* SDHI2 */ +#define HPB_DMAE_ASYNCMDR_ASBTMD26_BURST BIT(10) /* SDHI2 */ +#define HPB_DMAE_ASYNCMDR_ASBTMD26_NBURST 0 /* SDHI2 */ +#define HPB_DMAE_ASYNCMDR_ASMD25_MASK BIT(9) /* SDHI2 */ +#define HPB_DMAE_ASYNCMDR_ASMD25_SINGLE BIT(9) /* SDHI2 */ +#define HPB_DMAE_ASYNCMDR_ASMD25_MULTI 0 /* SDHI2 */ +#define HPB_DMAE_ASYNCMDR_ASBTMD25_MASK BIT(8) /* SDHI2 */ +#define HPB_DMAE_ASYNCMDR_ASBTMD25_BURST BIT(8) /* SDHI2 */ +#define HPB_DMAE_ASYNCMDR_ASBTMD25_NBURST 0 /* SDHI2 */ +#define HPB_DMAE_ASYNCMDR_ASMD23_MASK BIT(7) /* SDHI0 */ +#define HPB_DMAE_ASYNCMDR_ASMD23_SINGLE BIT(7) /* SDHI0 */ +#define HPB_DMAE_ASYNCMDR_ASMD23_MULTI 0 /* SDHI0 */ +#define HPB_DMAE_ASYNCMDR_ASBTMD23_MASK BIT(6) /* SDHI0 */ +#define HPB_DMAE_ASYNCMDR_ASBTMD23_BURST BIT(6) /* SDHI0 */ +#define HPB_DMAE_ASYNCMDR_ASBTMD23_NBURST 0 /* SDHI0 */ +#define HPB_DMAE_ASYNCMDR_ASMD22_MASK BIT(5) /* SDHI0 */ +#define HPB_DMAE_ASYNCMDR_ASMD22_SINGLE BIT(5) /* SDHI0 */ +#define HPB_DMAE_ASYNCMDR_ASMD22_MULTI 0 /* SDHI0 */ +#define HPB_DMAE_ASYNCMDR_ASBTMD22_MASK BIT(4) /* SDHI0 */ +#define HPB_DMAE_ASYNCMDR_ASBTMD22_BURST BIT(4) /* SDHI0 */ +#define HPB_DMAE_ASYNCMDR_ASBTMD22_NBURST 0 /* SDHI0 */ +#define HPB_DMAE_ASYNCMDR_ASMD21_MASK BIT(3) /* SDHI0 */ +#define HPB_DMAE_ASYNCMDR_ASMD21_SINGLE BIT(3) /* SDHI0 */ +#define HPB_DMAE_ASYNCMDR_ASMD21_MULTI 0 /* SDHI0 */ +#define HPB_DMAE_ASYNCMDR_ASBTMD21_MASK BIT(2) /* SDHI0 */ +#define HPB_DMAE_ASYNCMDR_ASBTMD21_BURST BIT(2) /* SDHI0 */ +#define HPB_DMAE_ASYNCMDR_ASBTMD21_NBURST 0 /* SDHI0 */ +#define HPB_DMAE_ASYNCMDR_ASMD20_MASK BIT(1) /* SDHI1 */ +#define HPB_DMAE_ASYNCMDR_ASMD20_SINGLE BIT(1) /* SDHI1 */ +#define HPB_DMAE_ASYNCMDR_ASMD20_MULTI 0 /* SDHI1 */ +#define HPB_DMAE_ASYNCMDR_ASBTMD20_MASK BIT(0) /* SDHI1 */ +#define HPB_DMAE_ASYNCMDR_ASBTMD20_BURST BIT(0) /* SDHI1 */ +#define HPB_DMAE_ASYNCMDR_ASBTMD20_NBURST 0 /* SDHI1 */ + +static const struct hpb_dmae_slave_config hpb_dmae_slaves[] = { + { + .id = HPBDMA_SLAVE_SDHI0_TX, + .addr = 0xffe4c000 + 0x30, + .dcr = HPB_DMAE_DCR_SPDS_16BIT | + HPB_DMAE_DCR_DMDL | + HPB_DMAE_DCR_DPDS_16BIT, + .rstr = HPB_DMAE_ASYNCRSTR_ASRST21 | + HPB_DMAE_ASYNCRSTR_ASRST22 | + HPB_DMAE_ASYNCRSTR_ASRST23, + .mdr = HPB_DMAE_ASYNCMDR_ASMD21_SINGLE | + HPB_DMAE_ASYNCMDR_ASBTMD21_NBURST, + .mdm = HPB_DMAE_ASYNCMDR_ASMD21_MASK | + HPB_DMAE_ASYNCMDR_ASBTMD21_MASK, + .port = 0x0D0C, + .flags = HPB_DMAE_SET_ASYNC_RESET | HPB_DMAE_SET_ASYNC_MODE, + .dma_ch = 21, + }, { + .id = HPBDMA_SLAVE_SDHI0_RX, + .addr = 0xffe4c000 + 0x30, + .dcr = HPB_DMAE_DCR_SMDL | + HPB_DMAE_DCR_SPDS_16BIT | + HPB_DMAE_DCR_DPDS_16BIT, + .rstr = HPB_DMAE_ASYNCRSTR_ASRST21 | + HPB_DMAE_ASYNCRSTR_ASRST22 | + HPB_DMAE_ASYNCRSTR_ASRST23, + .mdr = HPB_DMAE_ASYNCMDR_ASMD22_SINGLE | + HPB_DMAE_ASYNCMDR_ASBTMD22_NBURST, + .mdm = HPB_DMAE_ASYNCMDR_ASMD22_MASK | + HPB_DMAE_ASYNCMDR_ASBTMD22_MASK, + .port = 0x0D0C, + .flags = HPB_DMAE_SET_ASYNC_RESET | HPB_DMAE_SET_ASYNC_MODE, + .dma_ch = 22, + }, +}; + +static const struct hpb_dmae_channel hpb_dmae_channels[] = { + HPB_DMAE_CHANNEL(0x93, HPBDMA_SLAVE_SDHI0_TX), /* ch. 21 */ + HPB_DMAE_CHANNEL(0x93, HPBDMA_SLAVE_SDHI0_RX), /* ch. 22 */ +}; + +static struct hpb_dmae_pdata dma_platform_data __initdata = { + .slaves = hpb_dmae_slaves, + .num_slaves = ARRAY_SIZE(hpb_dmae_slaves), + .channels = hpb_dmae_channels, + .num_channels = ARRAY_SIZE(hpb_dmae_channels), + .ts_shift = { + [XMIT_SZ_8BIT] = 0, + [XMIT_SZ_16BIT] = 1, + [XMIT_SZ_32BIT] = 2, + }, + .num_hw_channels = 44, +}; + +static struct resource hpb_dmae_resources[] __initdata = { + /* Channel registers */ + DEFINE_RES_MEM(0xffc08000, 0x1000), + /* Common registers */ + DEFINE_RES_MEM(0xffc09000, 0x170), + /* Asynchronous reset registers */ + DEFINE_RES_MEM(0xffc00300, 4), + /* Asynchronous mode registers */ + DEFINE_RES_MEM(0xffc00400, 4), + /* IRQ for DMA channels */ + DEFINE_RES_NAMED(gic_iid(0x8e), 12, NULL, IORESOURCE_IRQ), +}; + +static void __init r8a7779_register_hpb_dmae(void) +{ + platform_device_register_resndata(&platform_bus, "hpb-dma-engine", -1, + hpb_dmae_resources, + ARRAY_SIZE(hpb_dmae_resources), + &dma_platform_data, + sizeof(dma_platform_data)); +} + static struct platform_device *r8a7779_devices_dt[] __initdata = { &scif0_device, &scif1_device, @@ -665,6 +818,7 @@ void __init r8a7779_add_standard_devices(void) ARRAY_SIZE(r8a7779_devices_dt)); platform_add_devices(r8a7779_standard_devices, ARRAY_SIZE(r8a7779_standard_devices)); + r8a7779_register_hpb_dmae(); } void __init r8a7779_add_ether_device(struct sh_eth_plat_data *pdata) -- 1.8.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 03/14] ARM: shmobile: r8a7779: add HPB-DMAC support @ 2013-10-09 6:49 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-10-09 6:49 UTC (permalink / raw) To: linux-arm-kernel From: Max Filippov <max.filippov@cogentembedded.com> Add HPB-DMAC platform device on R8A7779 SoC along with its slave and channel configurations (only for SDHI0 so far). Signed-off-by: Max Filippov <max.filippov@cogentembedded.com> [Sergei: moved *enum* declaring HPB-DMAC slave IDs from now removed <mach/dma.h> to <mach/r8a7779.h>, removed #include <mach/dma.h> from setup-r8a7779.c, removed SSI-related *enum* values and SSI-related data from hpb_dmae_slaves[] and hpb_dmae_channels[], added ASYNCMDR.ASBTMD{20|24|43} and ASYNCMDR.ASMD{20|24|43} fields/values, fixed comments to ASYNCMDR.ASBTMD2[123] and ASYNCMDR.ASMD2[123] fields/values, renamed all the bit/field/value #define's to include 'HBP_DMAE_' prefix to match the driver, moved comments after the element initializers of hpb_dmae_channels[].] Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/include/mach/r8a7779.h | 7 ++ arch/arm/mach-shmobile/setup-r8a7779.c | 154 ++++++++++++++++++++++++++ 2 files changed, 161 insertions(+) diff --git a/arch/arm/mach-shmobile/include/mach/r8a7779.h b/arch/arm/mach-shmobile/include/mach/r8a7779.h index 11c7400..31e87b9 100644 --- a/arch/arm/mach-shmobile/include/mach/r8a7779.h +++ b/arch/arm/mach-shmobile/include/mach/r8a7779.h @@ -6,6 +6,13 @@ #include <linux/sh_eth.h> #include <linux/platform_data/camera-rcar.h> +/* HPB-DMA slave IDs */ +enum { + HPBDMA_SLAVE_DUMMY, + HPBDMA_SLAVE_SDHI0_TX, + HPBDMA_SLAVE_SDHI0_RX, +}; + struct platform_device; struct r8a7779_pm_ch { diff --git a/arch/arm/mach-shmobile/setup-r8a7779.c b/arch/arm/mach-shmobile/setup-r8a7779.c index ecd0148..eacb2f7 100644 --- a/arch/arm/mach-shmobile/setup-r8a7779.c +++ b/arch/arm/mach-shmobile/setup-r8a7779.c @@ -25,6 +25,7 @@ #include <linux/irqchip.h> #include <linux/irqchip/arm-gic.h> #include <linux/of_platform.h> +#include <linux/platform_data/dma-rcar-hpbdma.h> #include <linux/platform_data/gpio-rcar.h> #include <linux/platform_data/irq-renesas-intc-irqpin.h> #include <linux/platform_device.h> @@ -632,6 +633,158 @@ static struct platform_device_info *vin_info_table[] __initdata = { &vin3_info, }; +/* HPB-DMA */ + +/* Asynchronous mode register bits */ +#define HPB_DMAE_ASYNCMDR_ASMD43_MASK BIT(23) /* MMC1 */ +#define HPB_DMAE_ASYNCMDR_ASMD43_SINGLE BIT(23) /* MMC1 */ +#define HPB_DMAE_ASYNCMDR_ASMD43_MULTI 0 /* MMC1 */ +#define HPB_DMAE_ASYNCMDR_ASBTMD43_MASK BIT(22) /* MMC1 */ +#define HPB_DMAE_ASYNCMDR_ASBTMD43_BURST BIT(22) /* MMC1 */ +#define HPB_DMAE_ASYNCMDR_ASBTMD43_NBURST 0 /* MMC1 */ +#define HPB_DMAE_ASYNCMDR_ASMD24_MASK BIT(21) /* MMC0 */ +#define HPB_DMAE_ASYNCMDR_ASMD24_SINGLE BIT(21) /* MMC0 */ +#define HPB_DMAE_ASYNCMDR_ASMD24_MULTI 0 /* MMC0 */ +#define HPB_DMAE_ASYNCMDR_ASBTMD24_MASK BIT(20) /* MMC0 */ +#define HPB_DMAE_ASYNCMDR_ASBTMD24_BURST BIT(20) /* MMC0 */ +#define HPB_DMAE_ASYNCMDR_ASBTMD24_NBURST 0 /* MMC0 */ +#define HPB_DMAE_ASYNCMDR_ASMD41_MASK BIT(19) /* SDHI3 */ +#define HPB_DMAE_ASYNCMDR_ASMD41_SINGLE BIT(19) /* SDHI3 */ +#define HPB_DMAE_ASYNCMDR_ASMD41_MULTI 0 /* SDHI3 */ +#define HPB_DMAE_ASYNCMDR_ASBTMD41_MASK BIT(18) /* SDHI3 */ +#define HPB_DMAE_ASYNCMDR_ASBTMD41_BURST BIT(18) /* SDHI3 */ +#define HPB_DMAE_ASYNCMDR_ASBTMD41_NBURST 0 /* SDHI3 */ +#define HPB_DMAE_ASYNCMDR_ASMD40_MASK BIT(17) /* SDHI3 */ +#define HPB_DMAE_ASYNCMDR_ASMD40_SINGLE BIT(17) /* SDHI3 */ +#define HPB_DMAE_ASYNCMDR_ASMD40_MULTI 0 /* SDHI3 */ +#define HPB_DMAE_ASYNCMDR_ASBTMD40_MASK BIT(16) /* SDHI3 */ +#define HPB_DMAE_ASYNCMDR_ASBTMD40_BURST BIT(16) /* SDHI3 */ +#define HPB_DMAE_ASYNCMDR_ASBTMD40_NBURST 0 /* SDHI3 */ +#define HPB_DMAE_ASYNCMDR_ASMD39_MASK BIT(15) /* SDHI3 */ +#define HPB_DMAE_ASYNCMDR_ASMD39_SINGLE BIT(15) /* SDHI3 */ +#define HPB_DMAE_ASYNCMDR_ASMD39_MULTI 0 /* SDHI3 */ +#define HPB_DMAE_ASYNCMDR_ASBTMD39_MASK BIT(14) /* SDHI3 */ +#define HPB_DMAE_ASYNCMDR_ASBTMD39_BURST BIT(14) /* SDHI3 */ +#define HPB_DMAE_ASYNCMDR_ASBTMD39_NBURST 0 /* SDHI3 */ +#define HPB_DMAE_ASYNCMDR_ASMD27_MASK BIT(13) /* SDHI2 */ +#define HPB_DMAE_ASYNCMDR_ASMD27_SINGLE BIT(13) /* SDHI2 */ +#define HPB_DMAE_ASYNCMDR_ASMD27_MULTI 0 /* SDHI2 */ +#define HPB_DMAE_ASYNCMDR_ASBTMD27_MASK BIT(12) /* SDHI2 */ +#define HPB_DMAE_ASYNCMDR_ASBTMD27_BURST BIT(12) /* SDHI2 */ +#define HPB_DMAE_ASYNCMDR_ASBTMD27_NBURST 0 /* SDHI2 */ +#define HPB_DMAE_ASYNCMDR_ASMD26_MASK BIT(11) /* SDHI2 */ +#define HPB_DMAE_ASYNCMDR_ASMD26_SINGLE BIT(11) /* SDHI2 */ +#define HPB_DMAE_ASYNCMDR_ASMD26_MULTI 0 /* SDHI2 */ +#define HPB_DMAE_ASYNCMDR_ASBTMD26_MASK BIT(10) /* SDHI2 */ +#define HPB_DMAE_ASYNCMDR_ASBTMD26_BURST BIT(10) /* SDHI2 */ +#define HPB_DMAE_ASYNCMDR_ASBTMD26_NBURST 0 /* SDHI2 */ +#define HPB_DMAE_ASYNCMDR_ASMD25_MASK BIT(9) /* SDHI2 */ +#define HPB_DMAE_ASYNCMDR_ASMD25_SINGLE BIT(9) /* SDHI2 */ +#define HPB_DMAE_ASYNCMDR_ASMD25_MULTI 0 /* SDHI2 */ +#define HPB_DMAE_ASYNCMDR_ASBTMD25_MASK BIT(8) /* SDHI2 */ +#define HPB_DMAE_ASYNCMDR_ASBTMD25_BURST BIT(8) /* SDHI2 */ +#define HPB_DMAE_ASYNCMDR_ASBTMD25_NBURST 0 /* SDHI2 */ +#define HPB_DMAE_ASYNCMDR_ASMD23_MASK BIT(7) /* SDHI0 */ +#define HPB_DMAE_ASYNCMDR_ASMD23_SINGLE BIT(7) /* SDHI0 */ +#define HPB_DMAE_ASYNCMDR_ASMD23_MULTI 0 /* SDHI0 */ +#define HPB_DMAE_ASYNCMDR_ASBTMD23_MASK BIT(6) /* SDHI0 */ +#define HPB_DMAE_ASYNCMDR_ASBTMD23_BURST BIT(6) /* SDHI0 */ +#define HPB_DMAE_ASYNCMDR_ASBTMD23_NBURST 0 /* SDHI0 */ +#define HPB_DMAE_ASYNCMDR_ASMD22_MASK BIT(5) /* SDHI0 */ +#define HPB_DMAE_ASYNCMDR_ASMD22_SINGLE BIT(5) /* SDHI0 */ +#define HPB_DMAE_ASYNCMDR_ASMD22_MULTI 0 /* SDHI0 */ +#define HPB_DMAE_ASYNCMDR_ASBTMD22_MASK BIT(4) /* SDHI0 */ +#define HPB_DMAE_ASYNCMDR_ASBTMD22_BURST BIT(4) /* SDHI0 */ +#define HPB_DMAE_ASYNCMDR_ASBTMD22_NBURST 0 /* SDHI0 */ +#define HPB_DMAE_ASYNCMDR_ASMD21_MASK BIT(3) /* SDHI0 */ +#define HPB_DMAE_ASYNCMDR_ASMD21_SINGLE BIT(3) /* SDHI0 */ +#define HPB_DMAE_ASYNCMDR_ASMD21_MULTI 0 /* SDHI0 */ +#define HPB_DMAE_ASYNCMDR_ASBTMD21_MASK BIT(2) /* SDHI0 */ +#define HPB_DMAE_ASYNCMDR_ASBTMD21_BURST BIT(2) /* SDHI0 */ +#define HPB_DMAE_ASYNCMDR_ASBTMD21_NBURST 0 /* SDHI0 */ +#define HPB_DMAE_ASYNCMDR_ASMD20_MASK BIT(1) /* SDHI1 */ +#define HPB_DMAE_ASYNCMDR_ASMD20_SINGLE BIT(1) /* SDHI1 */ +#define HPB_DMAE_ASYNCMDR_ASMD20_MULTI 0 /* SDHI1 */ +#define HPB_DMAE_ASYNCMDR_ASBTMD20_MASK BIT(0) /* SDHI1 */ +#define HPB_DMAE_ASYNCMDR_ASBTMD20_BURST BIT(0) /* SDHI1 */ +#define HPB_DMAE_ASYNCMDR_ASBTMD20_NBURST 0 /* SDHI1 */ + +static const struct hpb_dmae_slave_config hpb_dmae_slaves[] = { + { + .id = HPBDMA_SLAVE_SDHI0_TX, + .addr = 0xffe4c000 + 0x30, + .dcr = HPB_DMAE_DCR_SPDS_16BIT | + HPB_DMAE_DCR_DMDL | + HPB_DMAE_DCR_DPDS_16BIT, + .rstr = HPB_DMAE_ASYNCRSTR_ASRST21 | + HPB_DMAE_ASYNCRSTR_ASRST22 | + HPB_DMAE_ASYNCRSTR_ASRST23, + .mdr = HPB_DMAE_ASYNCMDR_ASMD21_SINGLE | + HPB_DMAE_ASYNCMDR_ASBTMD21_NBURST, + .mdm = HPB_DMAE_ASYNCMDR_ASMD21_MASK | + HPB_DMAE_ASYNCMDR_ASBTMD21_MASK, + .port = 0x0D0C, + .flags = HPB_DMAE_SET_ASYNC_RESET | HPB_DMAE_SET_ASYNC_MODE, + .dma_ch = 21, + }, { + .id = HPBDMA_SLAVE_SDHI0_RX, + .addr = 0xffe4c000 + 0x30, + .dcr = HPB_DMAE_DCR_SMDL | + HPB_DMAE_DCR_SPDS_16BIT | + HPB_DMAE_DCR_DPDS_16BIT, + .rstr = HPB_DMAE_ASYNCRSTR_ASRST21 | + HPB_DMAE_ASYNCRSTR_ASRST22 | + HPB_DMAE_ASYNCRSTR_ASRST23, + .mdr = HPB_DMAE_ASYNCMDR_ASMD22_SINGLE | + HPB_DMAE_ASYNCMDR_ASBTMD22_NBURST, + .mdm = HPB_DMAE_ASYNCMDR_ASMD22_MASK | + HPB_DMAE_ASYNCMDR_ASBTMD22_MASK, + .port = 0x0D0C, + .flags = HPB_DMAE_SET_ASYNC_RESET | HPB_DMAE_SET_ASYNC_MODE, + .dma_ch = 22, + }, +}; + +static const struct hpb_dmae_channel hpb_dmae_channels[] = { + HPB_DMAE_CHANNEL(0x93, HPBDMA_SLAVE_SDHI0_TX), /* ch. 21 */ + HPB_DMAE_CHANNEL(0x93, HPBDMA_SLAVE_SDHI0_RX), /* ch. 22 */ +}; + +static struct hpb_dmae_pdata dma_platform_data __initdata = { + .slaves = hpb_dmae_slaves, + .num_slaves = ARRAY_SIZE(hpb_dmae_slaves), + .channels = hpb_dmae_channels, + .num_channels = ARRAY_SIZE(hpb_dmae_channels), + .ts_shift = { + [XMIT_SZ_8BIT] = 0, + [XMIT_SZ_16BIT] = 1, + [XMIT_SZ_32BIT] = 2, + }, + .num_hw_channels = 44, +}; + +static struct resource hpb_dmae_resources[] __initdata = { + /* Channel registers */ + DEFINE_RES_MEM(0xffc08000, 0x1000), + /* Common registers */ + DEFINE_RES_MEM(0xffc09000, 0x170), + /* Asynchronous reset registers */ + DEFINE_RES_MEM(0xffc00300, 4), + /* Asynchronous mode registers */ + DEFINE_RES_MEM(0xffc00400, 4), + /* IRQ for DMA channels */ + DEFINE_RES_NAMED(gic_iid(0x8e), 12, NULL, IORESOURCE_IRQ), +}; + +static void __init r8a7779_register_hpb_dmae(void) +{ + platform_device_register_resndata(&platform_bus, "hpb-dma-engine", -1, + hpb_dmae_resources, + ARRAY_SIZE(hpb_dmae_resources), + &dma_platform_data, + sizeof(dma_platform_data)); +} + static struct platform_device *r8a7779_devices_dt[] __initdata = { &scif0_device, &scif1_device, @@ -665,6 +818,7 @@ void __init r8a7779_add_standard_devices(void) ARRAY_SIZE(r8a7779_devices_dt)); platform_add_devices(r8a7779_standard_devices, ARRAY_SIZE(r8a7779_standard_devices)); + r8a7779_register_hpb_dmae(); } void __init r8a7779_add_ether_device(struct sh_eth_plat_data *pdata) -- 1.8.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* Re: [PATCH 03/14] ARM: shmobile: r8a7779: add HPB-DMAC support 2013-10-09 6:49 ` Simon Horman @ 2013-11-11 21:43 ` Sergei Shtylyov -1 siblings, 0 replies; 776+ messages in thread From: Sergei Shtylyov @ 2013-11-11 20:43 UTC (permalink / raw) To: linux-arm-kernel Hello. On 10/09/2013 10:49 AM, Simon Horman wrote: > From: Max Filippov <max.filippov@cogentembedded.com> > Add HPB-DMAC platform device on R8A7779 SoC along with its slave and channel > configurations (only for SDHI0 so far). > Signed-off-by: Max Filippov <max.filippov@cogentembedded.com> > [Sergei: moved *enum* declaring HPB-DMAC slave IDs from now removed <mach/dma.h> > to <mach/r8a7779.h>, removed #include <mach/dma.h> from setup-r8a7779.c, removed > SSI-related *enum* values and SSI-related data from hpb_dmae_slaves[] and > hpb_dmae_channels[], added ASYNCMDR.ASBTMD{20|24|43} and ASYNCMDR.ASMD{20|24|43} > fields/values, fixed comments to ASYNCMDR.ASBTMD2[123] and ASYNCMDR.ASMD2[123] > fields/values, renamed all the bit/field/value #define's to include 'HBP_DMAE_' > prefix to match the driver, moved comments after the element initializers of > hpb_dmae_channels[].] > Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> > Signed-off-by: Simon Horman <horms+renesas@verge.net.au> > --- > arch/arm/mach-shmobile/include/mach/r8a7779.h | 7 ++ > arch/arm/mach-shmobile/setup-r8a7779.c | 154 ++++++++++++++++++++++++++ > 2 files changed, 161 insertions(+) Hm, Simon, do you know how this patch and the next one ended up being merged twice into Linus' tree? https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id\x1eb6b5a0e55bfcfb0852b7d0f9442841ff807345 https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id38c4991ed350abd7c5b3cb807fe022cb712a8ba WBR, Sergei ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH 03/14] ARM: shmobile: r8a7779: add HPB-DMAC support @ 2013-11-11 21:43 ` Sergei Shtylyov 0 siblings, 0 replies; 776+ messages in thread From: Sergei Shtylyov @ 2013-11-11 21:43 UTC (permalink / raw) To: linux-arm-kernel Hello. On 10/09/2013 10:49 AM, Simon Horman wrote: > From: Max Filippov <max.filippov@cogentembedded.com> > Add HPB-DMAC platform device on R8A7779 SoC along with its slave and channel > configurations (only for SDHI0 so far). > Signed-off-by: Max Filippov <max.filippov@cogentembedded.com> > [Sergei: moved *enum* declaring HPB-DMAC slave IDs from now removed <mach/dma.h> > to <mach/r8a7779.h>, removed #include <mach/dma.h> from setup-r8a7779.c, removed > SSI-related *enum* values and SSI-related data from hpb_dmae_slaves[] and > hpb_dmae_channels[], added ASYNCMDR.ASBTMD{20|24|43} and ASYNCMDR.ASMD{20|24|43} > fields/values, fixed comments to ASYNCMDR.ASBTMD2[123] and ASYNCMDR.ASMD2[123] > fields/values, renamed all the bit/field/value #define's to include 'HBP_DMAE_' > prefix to match the driver, moved comments after the element initializers of > hpb_dmae_channels[].] > Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> > Signed-off-by: Simon Horman <horms+renesas@verge.net.au> > --- > arch/arm/mach-shmobile/include/mach/r8a7779.h | 7 ++ > arch/arm/mach-shmobile/setup-r8a7779.c | 154 ++++++++++++++++++++++++++ > 2 files changed, 161 insertions(+) Hm, Simon, do you know how this patch and the next one ended up being merged twice into Linus' tree? https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=1eb6b5a0e55bfcfb0852b7d0f9442841ff807345 https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=338c4991ed350abd7c5b3cb807fe022cb712a8ba WBR, Sergei ^ permalink raw reply [flat|nested] 776+ messages in thread
* Re: [PATCH 03/14] ARM: shmobile: r8a7779: add HPB-DMAC support 2013-11-11 21:43 ` Sergei Shtylyov @ 2013-11-11 21:46 ` Sergei Shtylyov -1 siblings, 0 replies; 776+ messages in thread From: Sergei Shtylyov @ 2013-11-11 20:45 UTC (permalink / raw) To: linux-arm-kernel On 11/12/2013 12:43 AM, Sergei Shtylyov wrote: >> From: Max Filippov <max.filippov@cogentembedded.com> >> Add HPB-DMAC platform device on R8A7779 SoC along with its slave and channel >> configurations (only for SDHI0 so far). >> Signed-off-by: Max Filippov <max.filippov@cogentembedded.com> >> [Sergei: moved *enum* declaring HPB-DMAC slave IDs from now removed >> <mach/dma.h> >> to <mach/r8a7779.h>, removed #include <mach/dma.h> from setup-r8a7779.c, >> removed >> SSI-related *enum* values and SSI-related data from hpb_dmae_slaves[] and >> hpb_dmae_channels[], added ASYNCMDR.ASBTMD{20|24|43} and >> ASYNCMDR.ASMD{20|24|43} >> fields/values, fixed comments to ASYNCMDR.ASBTMD2[123] and ASYNCMDR.ASMD2[123] >> fields/values, renamed all the bit/field/value #define's to include 'HBP_DMAE_' >> prefix to match the driver, moved comments after the element initializers of >> hpb_dmae_channels[].] >> Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> >> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> >> --- >> arch/arm/mach-shmobile/include/mach/r8a7779.h | 7 ++ >> arch/arm/mach-shmobile/setup-r8a7779.c | 154 >> ++++++++++++++++++++++++++ >> 2 files changed, 161 insertions(+) > Hm, Simon, do you know how this patch and the next one ended up being > merged twice into Linus' tree? Sorry, I followed up to the wrong patch. So, the question was about this patch and the previous one. > https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id\x1eb6b5a0e55bfcfb0852b7d0f9442841ff807345 > https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id38c4991ed350abd7c5b3cb807fe022cb712a8ba https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id¤3e5bd76a4a3df58167d85e8020a1c9e566ad75 https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?idD1f750236f3d3d435a1e89ad885ec896832b9c6 WBR, Sergei ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH 03/14] ARM: shmobile: r8a7779: add HPB-DMAC support @ 2013-11-11 21:46 ` Sergei Shtylyov 0 siblings, 0 replies; 776+ messages in thread From: Sergei Shtylyov @ 2013-11-11 21:46 UTC (permalink / raw) To: linux-arm-kernel On 11/12/2013 12:43 AM, Sergei Shtylyov wrote: >> From: Max Filippov <max.filippov@cogentembedded.com> >> Add HPB-DMAC platform device on R8A7779 SoC along with its slave and channel >> configurations (only for SDHI0 so far). >> Signed-off-by: Max Filippov <max.filippov@cogentembedded.com> >> [Sergei: moved *enum* declaring HPB-DMAC slave IDs from now removed >> <mach/dma.h> >> to <mach/r8a7779.h>, removed #include <mach/dma.h> from setup-r8a7779.c, >> removed >> SSI-related *enum* values and SSI-related data from hpb_dmae_slaves[] and >> hpb_dmae_channels[], added ASYNCMDR.ASBTMD{20|24|43} and >> ASYNCMDR.ASMD{20|24|43} >> fields/values, fixed comments to ASYNCMDR.ASBTMD2[123] and ASYNCMDR.ASMD2[123] >> fields/values, renamed all the bit/field/value #define's to include 'HBP_DMAE_' >> prefix to match the driver, moved comments after the element initializers of >> hpb_dmae_channels[].] >> Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> >> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> >> --- >> arch/arm/mach-shmobile/include/mach/r8a7779.h | 7 ++ >> arch/arm/mach-shmobile/setup-r8a7779.c | 154 >> ++++++++++++++++++++++++++ >> 2 files changed, 161 insertions(+) > Hm, Simon, do you know how this patch and the next one ended up being > merged twice into Linus' tree? Sorry, I followed up to the wrong patch. So, the question was about this patch and the previous one. > https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=1eb6b5a0e55bfcfb0852b7d0f9442841ff807345 > https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=338c4991ed350abd7c5b3cb807fe022cb712a8ba https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=a43e5bd76a4a3df58167d85e8020a1c9e566ad75 https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=441f750236f3d3d435a1e89ad885ec896832b9c6 WBR, Sergei ^ permalink raw reply [flat|nested] 776+ messages in thread
* Re: [PATCH 03/14] ARM: shmobile: r8a7779: add HPB-DMAC support 2013-11-11 21:46 ` Sergei Shtylyov @ 2013-11-12 1:58 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-11-12 1:58 UTC (permalink / raw) To: linux-arm-kernel On Tue, Nov 12, 2013 at 12:46:02AM +0300, Sergei Shtylyov wrote: > On 11/12/2013 12:43 AM, Sergei Shtylyov wrote: > > >>From: Max Filippov <max.filippov@cogentembedded.com> > > >>Add HPB-DMAC platform device on R8A7779 SoC along with its slave and channel > >>configurations (only for SDHI0 so far). > > >>Signed-off-by: Max Filippov <max.filippov@cogentembedded.com> > >>[Sergei: moved *enum* declaring HPB-DMAC slave IDs from now removed > >><mach/dma.h> > >>to <mach/r8a7779.h>, removed #include <mach/dma.h> from setup-r8a7779.c, > >>removed > >>SSI-related *enum* values and SSI-related data from hpb_dmae_slaves[] and > >>hpb_dmae_channels[], added ASYNCMDR.ASBTMD{20|24|43} and > >>ASYNCMDR.ASMD{20|24|43} > >>fields/values, fixed comments to ASYNCMDR.ASBTMD2[123] and ASYNCMDR.ASMD2[123] > >>fields/values, renamed all the bit/field/value #define's to include 'HBP_DMAE_' > >>prefix to match the driver, moved comments after the element initializers of > >>hpb_dmae_channels[].] > >>Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> > >>Signed-off-by: Simon Horman <horms+renesas@verge.net.au> > >>--- > >> arch/arm/mach-shmobile/include/mach/r8a7779.h | 7 ++ > >> arch/arm/mach-shmobile/setup-r8a7779.c | 154 > >>++++++++++++++++++++++++++ > >> 2 files changed, 161 insertions(+) > > > Hm, Simon, do you know how this patch and the next one ended up being > >merged twice into Linus' tree? > > Sorry, I followed up to the wrong patch. So, the question was > about this patch and the previous one. > > >https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id\x1eb6b5a0e55bfcfb0852b7d0f9442841ff807345 > >https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id38c4991ed350abd7c5b3cb807fe022cb712a8ba > > https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id¤3e5bd76a4a3df58167d85e8020a1c9e566ad75 > https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?idD1f750236f3d3d435a1e89ad885ec896832b9c6 I assume that the reference to above git IDs implies that the answer to your question is yes. ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH 03/14] ARM: shmobile: r8a7779: add HPB-DMAC support @ 2013-11-12 1:58 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-11-12 1:58 UTC (permalink / raw) To: linux-arm-kernel On Tue, Nov 12, 2013 at 12:46:02AM +0300, Sergei Shtylyov wrote: > On 11/12/2013 12:43 AM, Sergei Shtylyov wrote: > > >>From: Max Filippov <max.filippov@cogentembedded.com> > > >>Add HPB-DMAC platform device on R8A7779 SoC along with its slave and channel > >>configurations (only for SDHI0 so far). > > >>Signed-off-by: Max Filippov <max.filippov@cogentembedded.com> > >>[Sergei: moved *enum* declaring HPB-DMAC slave IDs from now removed > >><mach/dma.h> > >>to <mach/r8a7779.h>, removed #include <mach/dma.h> from setup-r8a7779.c, > >>removed > >>SSI-related *enum* values and SSI-related data from hpb_dmae_slaves[] and > >>hpb_dmae_channels[], added ASYNCMDR.ASBTMD{20|24|43} and > >>ASYNCMDR.ASMD{20|24|43} > >>fields/values, fixed comments to ASYNCMDR.ASBTMD2[123] and ASYNCMDR.ASMD2[123] > >>fields/values, renamed all the bit/field/value #define's to include 'HBP_DMAE_' > >>prefix to match the driver, moved comments after the element initializers of > >>hpb_dmae_channels[].] > >>Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> > >>Signed-off-by: Simon Horman <horms+renesas@verge.net.au> > >>--- > >> arch/arm/mach-shmobile/include/mach/r8a7779.h | 7 ++ > >> arch/arm/mach-shmobile/setup-r8a7779.c | 154 > >>++++++++++++++++++++++++++ > >> 2 files changed, 161 insertions(+) > > > Hm, Simon, do you know how this patch and the next one ended up being > >merged twice into Linus' tree? > > Sorry, I followed up to the wrong patch. So, the question was > about this patch and the previous one. > > >https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=1eb6b5a0e55bfcfb0852b7d0f9442841ff807345 > >https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=338c4991ed350abd7c5b3cb807fe022cb712a8ba > > https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=a43e5bd76a4a3df58167d85e8020a1c9e566ad75 > https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=441f750236f3d3d435a1e89ad885ec896832b9c6 I assume that the reference to above git IDs implies that the answer to your question is yes. ^ permalink raw reply [flat|nested] 776+ messages in thread
* Re: [PATCH 03/14] ARM: shmobile: r8a7779: add HPB-DMAC support 2013-11-12 1:58 ` Simon Horman @ 2013-11-12 16:13 ` Sergei Shtylyov -1 siblings, 0 replies; 776+ messages in thread From: Sergei Shtylyov @ 2013-11-12 16:13 UTC (permalink / raw) To: linux-arm-kernel Hello. On 12-11-2013 5:58, Simon Horman wrote: >>>> From: Max Filippov <max.filippov@cogentembedded.com> >>>> Add HPB-DMAC platform device on R8A7779 SoC along with its slave and channel >>>> configurations (only for SDHI0 so far). >>>> Signed-off-by: Max Filippov <max.filippov@cogentembedded.com> >>>> [Sergei: moved *enum* declaring HPB-DMAC slave IDs from now removed >>>> <mach/dma.h> >>>> to <mach/r8a7779.h>, removed #include <mach/dma.h> from setup-r8a7779.c, >>>> removed >>>> SSI-related *enum* values and SSI-related data from hpb_dmae_slaves[] and >>>> hpb_dmae_channels[], added ASYNCMDR.ASBTMD{20|24|43} and >>>> ASYNCMDR.ASMD{20|24|43} >>>> fields/values, fixed comments to ASYNCMDR.ASBTMD2[123] and ASYNCMDR.ASMD2[123] >>>> fields/values, renamed all the bit/field/value #define's to include 'HBP_DMAE_' >>>> prefix to match the driver, moved comments after the element initializers of >>>> hpb_dmae_channels[].] >>>> Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> >>>> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> >>>> --- >>>> arch/arm/mach-shmobile/include/mach/r8a7779.h | 7 ++ >>>> arch/arm/mach-shmobile/setup-r8a7779.c | 154 >>>> ++++++++++++++++++++++++++ >>>> 2 files changed, 161 insertions(+) >>> Hm, Simon, do you know how this patch and the next one ended up being >>> merged twice into Linus' tree? >> Sorry, I followed up to the wrong patch. So, the question was >> about this patch and the previous one. >>> https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id\x1eb6b5a0e55bfcfb0852b7d0f9442841ff807345 >>> https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id38c4991ed350abd7c5b3cb807fe022cb712a8ba >> https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id¤3e5bd76a4a3df58167d85e8020a1c9e566ad75 >> https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?idD1f750236f3d3d435a1e89ad885ec896832b9c6 > I assume that the reference to above git IDs implies that the answer > to your question is yes. And answer to the question "how" is? :-) WBR, Sergei ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH 03/14] ARM: shmobile: r8a7779: add HPB-DMAC support @ 2013-11-12 16:13 ` Sergei Shtylyov 0 siblings, 0 replies; 776+ messages in thread From: Sergei Shtylyov @ 2013-11-12 16:13 UTC (permalink / raw) To: linux-arm-kernel Hello. On 12-11-2013 5:58, Simon Horman wrote: >>>> From: Max Filippov <max.filippov@cogentembedded.com> >>>> Add HPB-DMAC platform device on R8A7779 SoC along with its slave and channel >>>> configurations (only for SDHI0 so far). >>>> Signed-off-by: Max Filippov <max.filippov@cogentembedded.com> >>>> [Sergei: moved *enum* declaring HPB-DMAC slave IDs from now removed >>>> <mach/dma.h> >>>> to <mach/r8a7779.h>, removed #include <mach/dma.h> from setup-r8a7779.c, >>>> removed >>>> SSI-related *enum* values and SSI-related data from hpb_dmae_slaves[] and >>>> hpb_dmae_channels[], added ASYNCMDR.ASBTMD{20|24|43} and >>>> ASYNCMDR.ASMD{20|24|43} >>>> fields/values, fixed comments to ASYNCMDR.ASBTMD2[123] and ASYNCMDR.ASMD2[123] >>>> fields/values, renamed all the bit/field/value #define's to include 'HBP_DMAE_' >>>> prefix to match the driver, moved comments after the element initializers of >>>> hpb_dmae_channels[].] >>>> Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> >>>> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> >>>> --- >>>> arch/arm/mach-shmobile/include/mach/r8a7779.h | 7 ++ >>>> arch/arm/mach-shmobile/setup-r8a7779.c | 154 >>>> ++++++++++++++++++++++++++ >>>> 2 files changed, 161 insertions(+) >>> Hm, Simon, do you know how this patch and the next one ended up being >>> merged twice into Linus' tree? >> Sorry, I followed up to the wrong patch. So, the question was >> about this patch and the previous one. >>> https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=1eb6b5a0e55bfcfb0852b7d0f9442841ff807345 >>> https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=338c4991ed350abd7c5b3cb807fe022cb712a8ba >> https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=a43e5bd76a4a3df58167d85e8020a1c9e566ad75 >> https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=441f750236f3d3d435a1e89ad885ec896832b9c6 > I assume that the reference to above git IDs implies that the answer > to your question is yes. And answer to the question "how" is? :-) WBR, Sergei ^ permalink raw reply [flat|nested] 776+ messages in thread
* Re: [PATCH 03/14] ARM: shmobile: r8a7779: add HPB-DMAC support 2013-11-12 16:13 ` Sergei Shtylyov @ 2013-11-13 2:41 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-11-13 2:41 UTC (permalink / raw) To: linux-arm-kernel On Tue, Nov 12, 2013 at 08:13:34PM +0400, Sergei Shtylyov wrote: > Hello. > > On 12-11-2013 5:58, Simon Horman wrote: > > >>>>From: Max Filippov <max.filippov@cogentembedded.com> > > >>>>Add HPB-DMAC platform device on R8A7779 SoC along with its slave and channel > >>>>configurations (only for SDHI0 so far). > > >>>>Signed-off-by: Max Filippov <max.filippov@cogentembedded.com> > >>>>[Sergei: moved *enum* declaring HPB-DMAC slave IDs from now removed > >>>><mach/dma.h> > >>>>to <mach/r8a7779.h>, removed #include <mach/dma.h> from setup-r8a7779.c, > >>>>removed > >>>>SSI-related *enum* values and SSI-related data from hpb_dmae_slaves[] and > >>>>hpb_dmae_channels[], added ASYNCMDR.ASBTMD{20|24|43} and > >>>>ASYNCMDR.ASMD{20|24|43} > >>>>fields/values, fixed comments to ASYNCMDR.ASBTMD2[123] and ASYNCMDR.ASMD2[123] > >>>>fields/values, renamed all the bit/field/value #define's to include 'HBP_DMAE_' > >>>>prefix to match the driver, moved comments after the element initializers of > >>>>hpb_dmae_channels[].] > >>>>Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> > >>>>Signed-off-by: Simon Horman <horms+renesas@verge.net.au> > >>>>--- > >>>> arch/arm/mach-shmobile/include/mach/r8a7779.h | 7 ++ > >>>> arch/arm/mach-shmobile/setup-r8a7779.c | 154 > >>>>++++++++++++++++++++++++++ > >>>> 2 files changed, 161 insertions(+) > > >>> Hm, Simon, do you know how this patch and the next one ended up being > >>>merged twice into Linus' tree? > > >> Sorry, I followed up to the wrong patch. So, the question was > >>about this patch and the previous one. > > >>>https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id\x1eb6b5a0e55bfcfb0852b7d0f9442841ff807345 > >>>https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id38c4991ed350abd7c5b3cb807fe022cb712a8ba > > >>https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id¤3e5bd76a4a3df58167d85e8020a1c9e566ad75 > >>https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?idD1f750236f3d3d435a1e89ad885ec896832b9c6 > > >I assume that the reference to above git IDs implies that the answer > >to your question is yes. > > And answer to the question "how" is? :-) Due to a rebasing error on my part two versions of a branch containing these patches and several others were merged. I checked and it looks like the code-changes made by both versions of the branch are the same. So at this stage I think the only problem is that this causes some confusion as there are duplicates of some patches in git, permanently. ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH 03/14] ARM: shmobile: r8a7779: add HPB-DMAC support @ 2013-11-13 2:41 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-11-13 2:41 UTC (permalink / raw) To: linux-arm-kernel On Tue, Nov 12, 2013 at 08:13:34PM +0400, Sergei Shtylyov wrote: > Hello. > > On 12-11-2013 5:58, Simon Horman wrote: > > >>>>From: Max Filippov <max.filippov@cogentembedded.com> > > >>>>Add HPB-DMAC platform device on R8A7779 SoC along with its slave and channel > >>>>configurations (only for SDHI0 so far). > > >>>>Signed-off-by: Max Filippov <max.filippov@cogentembedded.com> > >>>>[Sergei: moved *enum* declaring HPB-DMAC slave IDs from now removed > >>>><mach/dma.h> > >>>>to <mach/r8a7779.h>, removed #include <mach/dma.h> from setup-r8a7779.c, > >>>>removed > >>>>SSI-related *enum* values and SSI-related data from hpb_dmae_slaves[] and > >>>>hpb_dmae_channels[], added ASYNCMDR.ASBTMD{20|24|43} and > >>>>ASYNCMDR.ASMD{20|24|43} > >>>>fields/values, fixed comments to ASYNCMDR.ASBTMD2[123] and ASYNCMDR.ASMD2[123] > >>>>fields/values, renamed all the bit/field/value #define's to include 'HBP_DMAE_' > >>>>prefix to match the driver, moved comments after the element initializers of > >>>>hpb_dmae_channels[].] > >>>>Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> > >>>>Signed-off-by: Simon Horman <horms+renesas@verge.net.au> > >>>>--- > >>>> arch/arm/mach-shmobile/include/mach/r8a7779.h | 7 ++ > >>>> arch/arm/mach-shmobile/setup-r8a7779.c | 154 > >>>>++++++++++++++++++++++++++ > >>>> 2 files changed, 161 insertions(+) > > >>> Hm, Simon, do you know how this patch and the next one ended up being > >>>merged twice into Linus' tree? > > >> Sorry, I followed up to the wrong patch. So, the question was > >>about this patch and the previous one. > > >>>https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=1eb6b5a0e55bfcfb0852b7d0f9442841ff807345 > >>>https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=338c4991ed350abd7c5b3cb807fe022cb712a8ba > > >>https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=a43e5bd76a4a3df58167d85e8020a1c9e566ad75 > >>https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=441f750236f3d3d435a1e89ad885ec896832b9c6 > > >I assume that the reference to above git IDs implies that the answer > >to your question is yes. > > And answer to the question "how" is? :-) Due to a rebasing error on my part two versions of a branch containing these patches and several others were merged. I checked and it looks like the code-changes made by both versions of the branch are the same. So at this stage I think the only problem is that this causes some confusion as there are duplicates of some patches in git, permanently. ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH 04/14] ARM: shmobile: r8a7790: add I2C clocks and aliases for the DT mode 2013-10-09 6:49 ` Simon Horman @ 2013-10-09 6:49 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-10-09 6:49 UTC (permalink / raw) To: linux-arm-kernel From: Guennadi Liakhovetski <g.liakhovetski@gmx.de> This patch adds clock definitions for the 4 I2C interfaces on r8a7790 and clock aliases, suitable for the DT mode. Signed-off-by: Guennadi Liakhovetski <g.liakhovetski+renesas@gmail.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/clock-r8a7790.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/mach-shmobile/clock-r8a7790.c b/arch/arm/mach-shmobile/clock-r8a7790.c index d99b87b..7661e89 100644 --- a/arch/arm/mach-shmobile/clock-r8a7790.c +++ b/arch/arm/mach-shmobile/clock-r8a7790.c @@ -52,6 +52,7 @@ #define SMSTPCR5 0xe6150144 #define SMSTPCR7 0xe615014c #define SMSTPCR8 0xe6150990 +#define SMSTPCR9 0xe6150994 #define SDCKCR 0xE6150074 #define SD2CKCR 0xE6150078 @@ -181,6 +182,7 @@ static struct clk div6_clks[DIV6_NR] = { /* MSTP */ enum { + MSTP931, MSTP930, MSTP929, MSTP928, MSTP813, MSTP726, MSTP725, MSTP724, MSTP723, MSTP722, MSTP721, MSTP720, MSTP717, MSTP716, @@ -192,6 +194,10 @@ enum { }; static struct clk mstp_clks[MSTP_NR] = { + [MSTP931] = SH_CLK_MSTP32(&hp_clk, SMSTPCR9, 31, 0), /* I2C0 */ + [MSTP930] = SH_CLK_MSTP32(&hp_clk, SMSTPCR9, 30, 0), /* I2C1 */ + [MSTP929] = SH_CLK_MSTP32(&hp_clk, SMSTPCR9, 29, 0), /* I2C2 */ + [MSTP928] = SH_CLK_MSTP32(&hp_clk, SMSTPCR9, 28, 0), /* I2C3 */ [MSTP813] = SH_CLK_MSTP32(&p_clk, SMSTPCR8, 13, 0), /* Ether */ [MSTP726] = SH_CLK_MSTP32(&zx_clk, SMSTPCR7, 26, 0), /* LVDS0 */ [MSTP725] = SH_CLK_MSTP32(&zx_clk, SMSTPCR7, 25, 0), /* LVDS1 */ @@ -271,6 +277,10 @@ static struct clk_lookup lookups[] = { CLKDEV_DEV_ID("sh-sci.7", &mstp_clks[MSTP720]), CLKDEV_DEV_ID("sh-sci.8", &mstp_clks[MSTP717]), CLKDEV_DEV_ID("sh-sci.9", &mstp_clks[MSTP716]), + CLKDEV_DEV_ID("e6508000.i2c", &mstp_clks[MSTP931]), + CLKDEV_DEV_ID("e6518000.i2c", &mstp_clks[MSTP930]), + CLKDEV_DEV_ID("e6530000.i2c", &mstp_clks[MSTP929]), + CLKDEV_DEV_ID("e6540000.i2c", &mstp_clks[MSTP928]), CLKDEV_DEV_ID("r8a7790-ether", &mstp_clks[MSTP813]), CLKDEV_DEV_ID("rcar_thermal", &mstp_clks[MSTP522]), CLKDEV_DEV_ID("ee200000.mmcif", &mstp_clks[MSTP315]), -- 1.8.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 04/14] ARM: shmobile: r8a7790: add I2C clocks and aliases for the DT mode @ 2013-10-09 6:49 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-10-09 6:49 UTC (permalink / raw) To: linux-arm-kernel From: Guennadi Liakhovetski <g.liakhovetski@gmx.de> This patch adds clock definitions for the 4 I2C interfaces on r8a7790 and clock aliases, suitable for the DT mode. Signed-off-by: Guennadi Liakhovetski <g.liakhovetski+renesas@gmail.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/clock-r8a7790.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/mach-shmobile/clock-r8a7790.c b/arch/arm/mach-shmobile/clock-r8a7790.c index d99b87b..7661e89 100644 --- a/arch/arm/mach-shmobile/clock-r8a7790.c +++ b/arch/arm/mach-shmobile/clock-r8a7790.c @@ -52,6 +52,7 @@ #define SMSTPCR5 0xe6150144 #define SMSTPCR7 0xe615014c #define SMSTPCR8 0xe6150990 +#define SMSTPCR9 0xe6150994 #define SDCKCR 0xE6150074 #define SD2CKCR 0xE6150078 @@ -181,6 +182,7 @@ static struct clk div6_clks[DIV6_NR] = { /* MSTP */ enum { + MSTP931, MSTP930, MSTP929, MSTP928, MSTP813, MSTP726, MSTP725, MSTP724, MSTP723, MSTP722, MSTP721, MSTP720, MSTP717, MSTP716, @@ -192,6 +194,10 @@ enum { }; static struct clk mstp_clks[MSTP_NR] = { + [MSTP931] = SH_CLK_MSTP32(&hp_clk, SMSTPCR9, 31, 0), /* I2C0 */ + [MSTP930] = SH_CLK_MSTP32(&hp_clk, SMSTPCR9, 30, 0), /* I2C1 */ + [MSTP929] = SH_CLK_MSTP32(&hp_clk, SMSTPCR9, 29, 0), /* I2C2 */ + [MSTP928] = SH_CLK_MSTP32(&hp_clk, SMSTPCR9, 28, 0), /* I2C3 */ [MSTP813] = SH_CLK_MSTP32(&p_clk, SMSTPCR8, 13, 0), /* Ether */ [MSTP726] = SH_CLK_MSTP32(&zx_clk, SMSTPCR7, 26, 0), /* LVDS0 */ [MSTP725] = SH_CLK_MSTP32(&zx_clk, SMSTPCR7, 25, 0), /* LVDS1 */ @@ -271,6 +277,10 @@ static struct clk_lookup lookups[] = { CLKDEV_DEV_ID("sh-sci.7", &mstp_clks[MSTP720]), CLKDEV_DEV_ID("sh-sci.8", &mstp_clks[MSTP717]), CLKDEV_DEV_ID("sh-sci.9", &mstp_clks[MSTP716]), + CLKDEV_DEV_ID("e6508000.i2c", &mstp_clks[MSTP931]), + CLKDEV_DEV_ID("e6518000.i2c", &mstp_clks[MSTP930]), + CLKDEV_DEV_ID("e6530000.i2c", &mstp_clks[MSTP929]), + CLKDEV_DEV_ID("e6540000.i2c", &mstp_clks[MSTP928]), CLKDEV_DEV_ID("r8a7790-ether", &mstp_clks[MSTP813]), CLKDEV_DEV_ID("rcar_thermal", &mstp_clks[MSTP522]), CLKDEV_DEV_ID("ee200000.mmcif", &mstp_clks[MSTP315]), -- 1.8.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 05/14] ARM: shmobile: r8a73a4: add a clock alias for the DMAC in DT mode 2013-10-09 6:49 ` Simon Horman @ 2013-10-09 6:49 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-10-09 6:49 UTC (permalink / raw) To: linux-arm-kernel From: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Devices, initialised from the Device Tree and from platform code usually have different names. This patch adds a clock alias for DMAC on r8a73a4 in DT mode. Signed-off-by: Guennadi Liakhovetski <g.liakhovetski+renesas@gmail.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/clock-r8a73a4.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-shmobile/clock-r8a73a4.c b/arch/arm/mach-shmobile/clock-r8a73a4.c index 357b9bc..74841ed 100644 --- a/arch/arm/mach-shmobile/clock-r8a73a4.c +++ b/arch/arm/mach-shmobile/clock-r8a73a4.c @@ -580,6 +580,7 @@ static struct clk_lookup lookups[] = { CLKDEV_DEV_ID("sh-sci.4", &mstp_clks[MSTP216]), CLKDEV_DEV_ID("sh-sci.5", &mstp_clks[MSTP217]), CLKDEV_DEV_ID("sh-dma-engine.0", &mstp_clks[MSTP218]), + CLKDEV_DEV_ID("e6700020.dma-controller", &mstp_clks[MSTP218]), CLKDEV_DEV_ID("rcar_thermal", &mstp_clks[MSTP522]), CLKDEV_DEV_ID("e6520000.i2c", &mstp_clks[MSTP300]), CLKDEV_DEV_ID("sh_mmcif.1", &mstp_clks[MSTP305]), -- 1.8.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 05/14] ARM: shmobile: r8a73a4: add a clock alias for the DMAC in DT mode @ 2013-10-09 6:49 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-10-09 6:49 UTC (permalink / raw) To: linux-arm-kernel From: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Devices, initialised from the Device Tree and from platform code usually have different names. This patch adds a clock alias for DMAC on r8a73a4 in DT mode. Signed-off-by: Guennadi Liakhovetski <g.liakhovetski+renesas@gmail.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/clock-r8a73a4.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-shmobile/clock-r8a73a4.c b/arch/arm/mach-shmobile/clock-r8a73a4.c index 357b9bc..74841ed 100644 --- a/arch/arm/mach-shmobile/clock-r8a73a4.c +++ b/arch/arm/mach-shmobile/clock-r8a73a4.c @@ -580,6 +580,7 @@ static struct clk_lookup lookups[] = { CLKDEV_DEV_ID("sh-sci.4", &mstp_clks[MSTP216]), CLKDEV_DEV_ID("sh-sci.5", &mstp_clks[MSTP217]), CLKDEV_DEV_ID("sh-dma-engine.0", &mstp_clks[MSTP218]), + CLKDEV_DEV_ID("e6700020.dma-controller", &mstp_clks[MSTP218]), CLKDEV_DEV_ID("rcar_thermal", &mstp_clks[MSTP522]), CLKDEV_DEV_ID("e6520000.i2c", &mstp_clks[MSTP300]), CLKDEV_DEV_ID("sh_mmcif.1", &mstp_clks[MSTP305]), -- 1.8.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 06/14] ARM: shmobile: Break out R-Car Gen2 setup code 2013-10-09 6:49 ` Simon Horman @ 2013-10-09 6:49 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-10-09 6:49 UTC (permalink / raw) To: linux-arm-kernel From: Magnus Damm <damm@opensource.se> Move arch timer workaround code and boot mode pin handling from setup-r8a7790.c to setup-rcar-gen2.c. With this in place the same code can be used on other R-Car Generation 2 devices such as r8a7791. Signed-off-by: Magnus Damm <damm@opensource.se> [horms+renesas@verge.net.au trivial rebase of board-lager.c for introduction of lager_add_standard_devices()] Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/Makefile | 1 + arch/arm/mach-shmobile/board-lager-reference.c | 2 +- arch/arm/mach-shmobile/board-lager.c | 2 +- arch/arm/mach-shmobile/clock-r8a7790.c | 2 +- arch/arm/mach-shmobile/include/mach/r8a7790.h | 6 +- arch/arm/mach-shmobile/include/mach/rcar-gen2.h | 8 +++ arch/arm/mach-shmobile/setup-r8a7790.c | 68 +----------------- arch/arm/mach-shmobile/setup-rcar-gen2.c | 91 +++++++++++++++++++++++++ 8 files changed, 106 insertions(+), 74 deletions(-) create mode 100644 arch/arm/mach-shmobile/include/mach/rcar-gen2.h create mode 100644 arch/arm/mach-shmobile/setup-rcar-gen2.c diff --git a/arch/arm/mach-shmobile/Makefile b/arch/arm/mach-shmobile/Makefile index d30ec1a..6b7a02e 100644 --- a/arch/arm/mach-shmobile/Makefile +++ b/arch/arm/mach-shmobile/Makefile @@ -15,6 +15,7 @@ obj-$(CONFIG_ARCH_R8A7740) += setup-r8a7740.o obj-$(CONFIG_ARCH_R8A7778) += setup-r8a7778.o obj-$(CONFIG_ARCH_R8A7779) += setup-r8a7779.o obj-$(CONFIG_ARCH_R8A7790) += setup-r8a7790.o +obj-$(CONFIG_ARCH_R8A7790) += setup-r8a7790.o setup-rcar-gen2.o obj-$(CONFIG_ARCH_R8A7791) += setup-r8a7791.o obj-$(CONFIG_ARCH_EMEV2) += setup-emev2.o diff --git a/arch/arm/mach-shmobile/board-lager-reference.c b/arch/arm/mach-shmobile/board-lager-reference.c index d39a91b..1a1a4a8 100644 --- a/arch/arm/mach-shmobile/board-lager-reference.c +++ b/arch/arm/mach-shmobile/board-lager-reference.c @@ -40,7 +40,7 @@ static const char *lager_boards_compat_dt[] __initdata = { DT_MACHINE_START(LAGER_DT, "lager") .smp = smp_ops(r8a7790_smp_ops), .init_early = r8a7790_init_early, + .init_time = rcar_gen2_timer_init, .init_machine = lager_add_standard_devices, - .init_time = r8a7790_timer_init, .dt_compat = lager_boards_compat_dt, MACHINE_END diff --git a/arch/arm/mach-shmobile/board-lager.c b/arch/arm/mach-shmobile/board-lager.c index 6d1026e..4e040e4 100644 --- a/arch/arm/mach-shmobile/board-lager.c +++ b/arch/arm/mach-shmobile/board-lager.c @@ -188,7 +188,7 @@ static const char *lager_boards_compat_dt[] __initdata = { DT_MACHINE_START(LAGER_DT, "lager") .smp = smp_ops(r8a7790_smp_ops), .init_early = r8a7790_init_early, - .init_time = r8a7790_timer_init, + .init_time = rcar_gen2_timer_init, .init_machine = lager_init, .dt_compat = lager_boards_compat_dt, MACHINE_END diff --git a/arch/arm/mach-shmobile/clock-r8a7790.c b/arch/arm/mach-shmobile/clock-r8a7790.c index 7661e89..a64f965 100644 --- a/arch/arm/mach-shmobile/clock-r8a7790.c +++ b/arch/arm/mach-shmobile/clock-r8a7790.c @@ -310,7 +310,7 @@ static struct clk_lookup lookups[] = { void __init r8a7790_clock_init(void) { - u32 mode = r8a7790_read_mode_pins(); + u32 mode = rcar_gen2_read_mode_pins(); int k, ret = 0; switch (mode & (MD(14) | MD(13))) { diff --git a/arch/arm/mach-shmobile/include/mach/r8a7790.h b/arch/arm/mach-shmobile/include/mach/r8a7790.h index 79e731c..5fbfa28 100644 --- a/arch/arm/mach-shmobile/include/mach/r8a7790.h +++ b/arch/arm/mach-shmobile/include/mach/r8a7790.h @@ -1,15 +1,13 @@ #ifndef __ASM_R8A7790_H__ #define __ASM_R8A7790_H__ +#include <mach/rcar-gen2.h> + void r8a7790_add_standard_devices(void); void r8a7790_add_dt_devices(void); void r8a7790_clock_init(void); void r8a7790_pinmux_init(void); void r8a7790_init_early(void); -void r8a7790_timer_init(void); extern struct smp_operations r8a7790_smp_ops; -#define MD(nr) BIT(nr) -u32 r8a7790_read_mode_pins(void); - #endif /* __ASM_R8A7790_H__ */ diff --git a/arch/arm/mach-shmobile/include/mach/rcar-gen2.h b/arch/arm/mach-shmobile/include/mach/rcar-gen2.h new file mode 100644 index 0000000..43f606e --- /dev/null +++ b/arch/arm/mach-shmobile/include/mach/rcar-gen2.h @@ -0,0 +1,8 @@ +#ifndef __ASM_RCAR_GEN2_H__ +#define __ASM_RCAR_GEN2_H__ + +void rcar_gen2_timer_init(void); +#define MD(nr) BIT(nr) +u32 rcar_gen2_read_mode_pins(void); + +#endif /* __ASM_RCAR_GEN2_H__ */ diff --git a/arch/arm/mach-shmobile/setup-r8a7790.c b/arch/arm/mach-shmobile/setup-r8a7790.c index c7e24ef..c47bceb 100644 --- a/arch/arm/mach-shmobile/setup-r8a7790.c +++ b/arch/arm/mach-shmobile/setup-r8a7790.c @@ -18,7 +18,6 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include <linux/clocksource.h> #include <linux/irq.h> #include <linux/kernel.h> #include <linux/of_platform.h> @@ -203,71 +202,6 @@ void __init r8a7790_add_standard_devices(void) r8a7790_register_thermal(); } -#define MODEMR 0xe6160060 - -u32 __init r8a7790_read_mode_pins(void) -{ - void __iomem *modemr = ioremap_nocache(MODEMR, 4); - u32 mode; - - BUG_ON(!modemr); - mode = ioread32(modemr); - iounmap(modemr); - - return mode; -} - -#define CNTCR 0 -#define CNTFID0 0x20 - -void __init r8a7790_timer_init(void) -{ -#ifdef CONFIG_ARM_ARCH_TIMER - u32 mode = r8a7790_read_mode_pins(); - void __iomem *base; - int extal_mhz = 0; - u32 freq; - - /* At Linux boot time the r8a7790 arch timer comes up - * with the counter disabled. Moreover, it may also report - * a potentially incorrect fixed 13 MHz frequency. To be - * correct these registers need to be updated to use the - * frequency EXTAL / 2 which can be determined by the MD pins. - */ - - switch (mode & (MD(14) | MD(13))) { - case 0: - extal_mhz = 15; - break; - case MD(13): - extal_mhz = 20; - break; - case MD(14): - extal_mhz = 26; - break; - case MD(13) | MD(14): - extal_mhz = 30; - break; - } - - /* The arch timer frequency equals EXTAL / 2 */ - freq = extal_mhz * (1000000 / 2); - - /* Remap "armgcnt address map" space */ - base = ioremap(0xe6080000, PAGE_SIZE); - - /* Update registers with correct frequency */ - iowrite32(freq, base + CNTFID0); - asm volatile("mcr p15, 0, %0, c14, c0, 0" : : "r" (freq)); - - /* make sure arch timer is started by setting bit 0 of CNTCR */ - iowrite32(1, base + CNTCR); - iounmap(base); -#endif /* CONFIG_ARM_ARCH_TIMER */ - - clocksource_of_init(); -} - void __init r8a7790_init_early(void) { #ifndef CONFIG_ARM_ARCH_TIMER @@ -285,7 +219,7 @@ static const char * const r8a7790_boards_compat_dt[] __initconst = { DT_MACHINE_START(R8A7790_DT, "Generic R8A7790 (Flattened Device Tree)") .smp = smp_ops(r8a7790_smp_ops), .init_early = r8a7790_init_early, - .init_time = r8a7790_timer_init, + .init_time = rcar_gen2_timer_init, .dt_compat = r8a7790_boards_compat_dt, MACHINE_END #endif /* CONFIG_USE_OF */ diff --git a/arch/arm/mach-shmobile/setup-rcar-gen2.c b/arch/arm/mach-shmobile/setup-rcar-gen2.c new file mode 100644 index 0000000..5734c24 --- /dev/null +++ b/arch/arm/mach-shmobile/setup-rcar-gen2.c @@ -0,0 +1,91 @@ +/* + * R-Car Generation 2 support + * + * Copyright (C) 2013 Renesas Solutions Corp. + * Copyright (C) 2013 Magnus Damm + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#include <linux/clocksource.h> +#include <linux/io.h> +#include <linux/kernel.h> +#include <mach/common.h> +#include <mach/rcar-gen2.h> +#include <asm/mach/arch.h> + +#define MODEMR 0xe6160060 + +u32 __init rcar_gen2_read_mode_pins(void) +{ + void __iomem *modemr = ioremap_nocache(MODEMR, 4); + u32 mode; + + BUG_ON(!modemr); + mode = ioread32(modemr); + iounmap(modemr); + + return mode; +} + +#define CNTCR 0 +#define CNTFID0 0x20 + +void __init rcar_gen2_timer_init(void) +{ +#ifdef CONFIG_ARM_ARCH_TIMER + u32 mode = rcar_gen2_read_mode_pins(); + void __iomem *base; + int extal_mhz = 0; + u32 freq; + + /* At Linux boot time the r8a7790 arch timer comes up + * with the counter disabled. Moreover, it may also report + * a potentially incorrect fixed 13 MHz frequency. To be + * correct these registers need to be updated to use the + * frequency EXTAL / 2 which can be determined by the MD pins. + */ + + switch (mode & (MD(14) | MD(13))) { + case 0: + extal_mhz = 15; + break; + case MD(13): + extal_mhz = 20; + break; + case MD(14): + extal_mhz = 26; + break; + case MD(13) | MD(14): + extal_mhz = 30; + break; + } + + /* The arch timer frequency equals EXTAL / 2 */ + freq = extal_mhz * (1000000 / 2); + + /* Remap "armgcnt address map" space */ + base = ioremap(0xe6080000, PAGE_SIZE); + + /* Update registers with correct frequency */ + iowrite32(freq, base + CNTFID0); + asm volatile("mcr p15, 0, %0, c14, c0, 0" : : "r" (freq)); + + /* make sure arch timer is started by setting bit 0 of CNTCR */ + iowrite32(1, base + CNTCR); + iounmap(base); +#endif /* CONFIG_ARM_ARCH_TIMER */ + + clocksource_of_init(); +} -- 1.8.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 06/14] ARM: shmobile: Break out R-Car Gen2 setup code @ 2013-10-09 6:49 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-10-09 6:49 UTC (permalink / raw) To: linux-arm-kernel From: Magnus Damm <damm@opensource.se> Move arch timer workaround code and boot mode pin handling from setup-r8a7790.c to setup-rcar-gen2.c. With this in place the same code can be used on other R-Car Generation 2 devices such as r8a7791. Signed-off-by: Magnus Damm <damm@opensource.se> [horms+renesas at verge.net.au trivial rebase of board-lager.c for introduction of lager_add_standard_devices()] Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/Makefile | 1 + arch/arm/mach-shmobile/board-lager-reference.c | 2 +- arch/arm/mach-shmobile/board-lager.c | 2 +- arch/arm/mach-shmobile/clock-r8a7790.c | 2 +- arch/arm/mach-shmobile/include/mach/r8a7790.h | 6 +- arch/arm/mach-shmobile/include/mach/rcar-gen2.h | 8 +++ arch/arm/mach-shmobile/setup-r8a7790.c | 68 +----------------- arch/arm/mach-shmobile/setup-rcar-gen2.c | 91 +++++++++++++++++++++++++ 8 files changed, 106 insertions(+), 74 deletions(-) create mode 100644 arch/arm/mach-shmobile/include/mach/rcar-gen2.h create mode 100644 arch/arm/mach-shmobile/setup-rcar-gen2.c diff --git a/arch/arm/mach-shmobile/Makefile b/arch/arm/mach-shmobile/Makefile index d30ec1a..6b7a02e 100644 --- a/arch/arm/mach-shmobile/Makefile +++ b/arch/arm/mach-shmobile/Makefile @@ -15,6 +15,7 @@ obj-$(CONFIG_ARCH_R8A7740) += setup-r8a7740.o obj-$(CONFIG_ARCH_R8A7778) += setup-r8a7778.o obj-$(CONFIG_ARCH_R8A7779) += setup-r8a7779.o obj-$(CONFIG_ARCH_R8A7790) += setup-r8a7790.o +obj-$(CONFIG_ARCH_R8A7790) += setup-r8a7790.o setup-rcar-gen2.o obj-$(CONFIG_ARCH_R8A7791) += setup-r8a7791.o obj-$(CONFIG_ARCH_EMEV2) += setup-emev2.o diff --git a/arch/arm/mach-shmobile/board-lager-reference.c b/arch/arm/mach-shmobile/board-lager-reference.c index d39a91b..1a1a4a8 100644 --- a/arch/arm/mach-shmobile/board-lager-reference.c +++ b/arch/arm/mach-shmobile/board-lager-reference.c @@ -40,7 +40,7 @@ static const char *lager_boards_compat_dt[] __initdata = { DT_MACHINE_START(LAGER_DT, "lager") .smp = smp_ops(r8a7790_smp_ops), .init_early = r8a7790_init_early, + .init_time = rcar_gen2_timer_init, .init_machine = lager_add_standard_devices, - .init_time = r8a7790_timer_init, .dt_compat = lager_boards_compat_dt, MACHINE_END diff --git a/arch/arm/mach-shmobile/board-lager.c b/arch/arm/mach-shmobile/board-lager.c index 6d1026e..4e040e4 100644 --- a/arch/arm/mach-shmobile/board-lager.c +++ b/arch/arm/mach-shmobile/board-lager.c @@ -188,7 +188,7 @@ static const char *lager_boards_compat_dt[] __initdata = { DT_MACHINE_START(LAGER_DT, "lager") .smp = smp_ops(r8a7790_smp_ops), .init_early = r8a7790_init_early, - .init_time = r8a7790_timer_init, + .init_time = rcar_gen2_timer_init, .init_machine = lager_init, .dt_compat = lager_boards_compat_dt, MACHINE_END diff --git a/arch/arm/mach-shmobile/clock-r8a7790.c b/arch/arm/mach-shmobile/clock-r8a7790.c index 7661e89..a64f965 100644 --- a/arch/arm/mach-shmobile/clock-r8a7790.c +++ b/arch/arm/mach-shmobile/clock-r8a7790.c @@ -310,7 +310,7 @@ static struct clk_lookup lookups[] = { void __init r8a7790_clock_init(void) { - u32 mode = r8a7790_read_mode_pins(); + u32 mode = rcar_gen2_read_mode_pins(); int k, ret = 0; switch (mode & (MD(14) | MD(13))) { diff --git a/arch/arm/mach-shmobile/include/mach/r8a7790.h b/arch/arm/mach-shmobile/include/mach/r8a7790.h index 79e731c..5fbfa28 100644 --- a/arch/arm/mach-shmobile/include/mach/r8a7790.h +++ b/arch/arm/mach-shmobile/include/mach/r8a7790.h @@ -1,15 +1,13 @@ #ifndef __ASM_R8A7790_H__ #define __ASM_R8A7790_H__ +#include <mach/rcar-gen2.h> + void r8a7790_add_standard_devices(void); void r8a7790_add_dt_devices(void); void r8a7790_clock_init(void); void r8a7790_pinmux_init(void); void r8a7790_init_early(void); -void r8a7790_timer_init(void); extern struct smp_operations r8a7790_smp_ops; -#define MD(nr) BIT(nr) -u32 r8a7790_read_mode_pins(void); - #endif /* __ASM_R8A7790_H__ */ diff --git a/arch/arm/mach-shmobile/include/mach/rcar-gen2.h b/arch/arm/mach-shmobile/include/mach/rcar-gen2.h new file mode 100644 index 0000000..43f606e --- /dev/null +++ b/arch/arm/mach-shmobile/include/mach/rcar-gen2.h @@ -0,0 +1,8 @@ +#ifndef __ASM_RCAR_GEN2_H__ +#define __ASM_RCAR_GEN2_H__ + +void rcar_gen2_timer_init(void); +#define MD(nr) BIT(nr) +u32 rcar_gen2_read_mode_pins(void); + +#endif /* __ASM_RCAR_GEN2_H__ */ diff --git a/arch/arm/mach-shmobile/setup-r8a7790.c b/arch/arm/mach-shmobile/setup-r8a7790.c index c7e24ef..c47bceb 100644 --- a/arch/arm/mach-shmobile/setup-r8a7790.c +++ b/arch/arm/mach-shmobile/setup-r8a7790.c @@ -18,7 +18,6 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include <linux/clocksource.h> #include <linux/irq.h> #include <linux/kernel.h> #include <linux/of_platform.h> @@ -203,71 +202,6 @@ void __init r8a7790_add_standard_devices(void) r8a7790_register_thermal(); } -#define MODEMR 0xe6160060 - -u32 __init r8a7790_read_mode_pins(void) -{ - void __iomem *modemr = ioremap_nocache(MODEMR, 4); - u32 mode; - - BUG_ON(!modemr); - mode = ioread32(modemr); - iounmap(modemr); - - return mode; -} - -#define CNTCR 0 -#define CNTFID0 0x20 - -void __init r8a7790_timer_init(void) -{ -#ifdef CONFIG_ARM_ARCH_TIMER - u32 mode = r8a7790_read_mode_pins(); - void __iomem *base; - int extal_mhz = 0; - u32 freq; - - /* At Linux boot time the r8a7790 arch timer comes up - * with the counter disabled. Moreover, it may also report - * a potentially incorrect fixed 13 MHz frequency. To be - * correct these registers need to be updated to use the - * frequency EXTAL / 2 which can be determined by the MD pins. - */ - - switch (mode & (MD(14) | MD(13))) { - case 0: - extal_mhz = 15; - break; - case MD(13): - extal_mhz = 20; - break; - case MD(14): - extal_mhz = 26; - break; - case MD(13) | MD(14): - extal_mhz = 30; - break; - } - - /* The arch timer frequency equals EXTAL / 2 */ - freq = extal_mhz * (1000000 / 2); - - /* Remap "armgcnt address map" space */ - base = ioremap(0xe6080000, PAGE_SIZE); - - /* Update registers with correct frequency */ - iowrite32(freq, base + CNTFID0); - asm volatile("mcr p15, 0, %0, c14, c0, 0" : : "r" (freq)); - - /* make sure arch timer is started by setting bit 0 of CNTCR */ - iowrite32(1, base + CNTCR); - iounmap(base); -#endif /* CONFIG_ARM_ARCH_TIMER */ - - clocksource_of_init(); -} - void __init r8a7790_init_early(void) { #ifndef CONFIG_ARM_ARCH_TIMER @@ -285,7 +219,7 @@ static const char * const r8a7790_boards_compat_dt[] __initconst = { DT_MACHINE_START(R8A7790_DT, "Generic R8A7790 (Flattened Device Tree)") .smp = smp_ops(r8a7790_smp_ops), .init_early = r8a7790_init_early, - .init_time = r8a7790_timer_init, + .init_time = rcar_gen2_timer_init, .dt_compat = r8a7790_boards_compat_dt, MACHINE_END #endif /* CONFIG_USE_OF */ diff --git a/arch/arm/mach-shmobile/setup-rcar-gen2.c b/arch/arm/mach-shmobile/setup-rcar-gen2.c new file mode 100644 index 0000000..5734c24 --- /dev/null +++ b/arch/arm/mach-shmobile/setup-rcar-gen2.c @@ -0,0 +1,91 @@ +/* + * R-Car Generation 2 support + * + * Copyright (C) 2013 Renesas Solutions Corp. + * Copyright (C) 2013 Magnus Damm + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#include <linux/clocksource.h> +#include <linux/io.h> +#include <linux/kernel.h> +#include <mach/common.h> +#include <mach/rcar-gen2.h> +#include <asm/mach/arch.h> + +#define MODEMR 0xe6160060 + +u32 __init rcar_gen2_read_mode_pins(void) +{ + void __iomem *modemr = ioremap_nocache(MODEMR, 4); + u32 mode; + + BUG_ON(!modemr); + mode = ioread32(modemr); + iounmap(modemr); + + return mode; +} + +#define CNTCR 0 +#define CNTFID0 0x20 + +void __init rcar_gen2_timer_init(void) +{ +#ifdef CONFIG_ARM_ARCH_TIMER + u32 mode = rcar_gen2_read_mode_pins(); + void __iomem *base; + int extal_mhz = 0; + u32 freq; + + /* At Linux boot time the r8a7790 arch timer comes up + * with the counter disabled. Moreover, it may also report + * a potentially incorrect fixed 13 MHz frequency. To be + * correct these registers need to be updated to use the + * frequency EXTAL / 2 which can be determined by the MD pins. + */ + + switch (mode & (MD(14) | MD(13))) { + case 0: + extal_mhz = 15; + break; + case MD(13): + extal_mhz = 20; + break; + case MD(14): + extal_mhz = 26; + break; + case MD(13) | MD(14): + extal_mhz = 30; + break; + } + + /* The arch timer frequency equals EXTAL / 2 */ + freq = extal_mhz * (1000000 / 2); + + /* Remap "armgcnt address map" space */ + base = ioremap(0xe6080000, PAGE_SIZE); + + /* Update registers with correct frequency */ + iowrite32(freq, base + CNTFID0); + asm volatile("mcr p15, 0, %0, c14, c0, 0" : : "r" (freq)); + + /* make sure arch timer is started by setting bit 0 of CNTCR */ + iowrite32(1, base + CNTCR); + iounmap(base); +#endif /* CONFIG_ARM_ARCH_TIMER */ + + clocksource_of_init(); +} -- 1.8.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 07/14] ARM: shmobile: Introduce r8a7791_add_standard_devices() 2013-10-09 6:49 ` Simon Horman @ 2013-10-09 6:49 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-10-09 6:49 UTC (permalink / raw) To: linux-arm-kernel From: Magnus Damm <damm@opensource.se> Introduce the function r8a7791_add_standard_devices() that follows the same style as other mach-shmobile SoC code and allows C version of board code to add on-chip devices. Signed-off-by: Magnus Damm <damm@opensource.se> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/include/mach/r8a7791.h | 1 + arch/arm/mach-shmobile/setup-r8a7791.c | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/arch/arm/mach-shmobile/include/mach/r8a7791.h b/arch/arm/mach-shmobile/include/mach/r8a7791.h index 2e6d661..2a86a53 100644 --- a/arch/arm/mach-shmobile/include/mach/r8a7791.h +++ b/arch/arm/mach-shmobile/include/mach/r8a7791.h @@ -1,6 +1,7 @@ #ifndef __ASM_R8A7791_H__ #define __ASM_R8A7791_H__ +void r8a7791_add_standard_devices(void); void r8a7791_add_dt_devices(void); void r8a7791_clock_init(void); void r8a7791_init_early(void); diff --git a/arch/arm/mach-shmobile/setup-r8a7791.c b/arch/arm/mach-shmobile/setup-r8a7791.c index b56399d..350dfc4 100644 --- a/arch/arm/mach-shmobile/setup-r8a7791.c +++ b/arch/arm/mach-shmobile/setup-r8a7791.c @@ -129,6 +129,11 @@ void __init r8a7791_add_dt_devices(void) r8a7791_register_cmt(00); } +void __init r8a7791_add_standard_devices(void) +{ + r8a7791_add_dt_devices(); +} + void __init r8a7791_init_early(void) { #ifndef CONFIG_ARM_ARCH_TIMER -- 1.8.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 07/14] ARM: shmobile: Introduce r8a7791_add_standard_devices() @ 2013-10-09 6:49 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-10-09 6:49 UTC (permalink / raw) To: linux-arm-kernel From: Magnus Damm <damm@opensource.se> Introduce the function r8a7791_add_standard_devices() that follows the same style as other mach-shmobile SoC code and allows C version of board code to add on-chip devices. Signed-off-by: Magnus Damm <damm@opensource.se> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/include/mach/r8a7791.h | 1 + arch/arm/mach-shmobile/setup-r8a7791.c | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/arch/arm/mach-shmobile/include/mach/r8a7791.h b/arch/arm/mach-shmobile/include/mach/r8a7791.h index 2e6d661..2a86a53 100644 --- a/arch/arm/mach-shmobile/include/mach/r8a7791.h +++ b/arch/arm/mach-shmobile/include/mach/r8a7791.h @@ -1,6 +1,7 @@ #ifndef __ASM_R8A7791_H__ #define __ASM_R8A7791_H__ +void r8a7791_add_standard_devices(void); void r8a7791_add_dt_devices(void); void r8a7791_clock_init(void); void r8a7791_init_early(void); diff --git a/arch/arm/mach-shmobile/setup-r8a7791.c b/arch/arm/mach-shmobile/setup-r8a7791.c index b56399d..350dfc4 100644 --- a/arch/arm/mach-shmobile/setup-r8a7791.c +++ b/arch/arm/mach-shmobile/setup-r8a7791.c @@ -129,6 +129,11 @@ void __init r8a7791_add_dt_devices(void) r8a7791_register_cmt(00); } +void __init r8a7791_add_standard_devices(void) +{ + r8a7791_add_dt_devices(); +} + void __init r8a7791_init_early(void) { #ifndef CONFIG_ARM_ARCH_TIMER -- 1.8.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 08/14] ARM: shmobile: r8a7791 IRQC platform device support 2013-10-09 6:49 ` Simon Horman @ 2013-10-09 6:49 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-10-09 6:49 UTC (permalink / raw) To: linux-arm-kernel From: Magnus Damm <damm@opensource.se> Add a platform device for the r8a7791 IRQC hardware driving IRQ pins IRQ0 to IRQ9. The Linux interrupt number is statically assigned to allow board code written in C to make use of static interrupt numbers. Signed-off-by: Magnus Damm <damm@opensource.se> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/setup-r8a7791.c | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/arch/arm/mach-shmobile/setup-r8a7791.c b/arch/arm/mach-shmobile/setup-r8a7791.c index 350dfc4..ba4fa3e 100644 --- a/arch/arm/mach-shmobile/setup-r8a7791.c +++ b/arch/arm/mach-shmobile/setup-r8a7791.c @@ -22,6 +22,7 @@ #include <linux/irq.h> #include <linux/kernel.h> #include <linux/of_platform.h> +#include <linux/platform_data/irq-renesas-irqc.h> #include <linux/serial_sci.h> #include <linux/sh_timer.h> #include <mach/common.h> @@ -109,6 +110,31 @@ static const struct resource cmt00_resources[] __initconst = { &cmt##idx##_platform_data, \ sizeof(struct sh_timer_config)) +static struct renesas_irqc_config irqc0_data = { + .irq_base = irq_pin(0), /* IRQ0 -> IRQ9 */ +}; + +static struct resource irqc0_resources[] = { + DEFINE_RES_MEM(0xe61c0000, 0x200), /* IRQC Event Detector Block_0 */ + DEFINE_RES_IRQ(gic_spi(0)), /* IRQ0 */ + DEFINE_RES_IRQ(gic_spi(1)), /* IRQ1 */ + DEFINE_RES_IRQ(gic_spi(2)), /* IRQ2 */ + DEFINE_RES_IRQ(gic_spi(3)), /* IRQ3 */ + DEFINE_RES_IRQ(gic_spi(12)), /* IRQ4 */ + DEFINE_RES_IRQ(gic_spi(13)), /* IRQ5 */ + DEFINE_RES_IRQ(gic_spi(14)), /* IRQ6 */ + DEFINE_RES_IRQ(gic_spi(15)), /* IRQ7 */ + DEFINE_RES_IRQ(gic_spi(16)), /* IRQ8 */ + DEFINE_RES_IRQ(gic_spi(17)), /* IRQ9 */ +}; + +#define r8a7791_register_irqc(idx) \ + platform_device_register_resndata(&platform_bus, "renesas_irqc", \ + idx, irqc##idx##_resources, \ + ARRAY_SIZE(irqc##idx##_resources), \ + &irqc##idx##_data, \ + sizeof(struct renesas_irqc_config)) + void __init r8a7791_add_dt_devices(void) { r8a7791_register_scif(SCIFA0); @@ -132,6 +158,7 @@ void __init r8a7791_add_dt_devices(void) void __init r8a7791_add_standard_devices(void) { r8a7791_add_dt_devices(); + r8a7791_register_irqc(0); } void __init r8a7791_init_early(void) -- 1.8.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 08/14] ARM: shmobile: r8a7791 IRQC platform device support @ 2013-10-09 6:49 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-10-09 6:49 UTC (permalink / raw) To: linux-arm-kernel From: Magnus Damm <damm@opensource.se> Add a platform device for the r8a7791 IRQC hardware driving IRQ pins IRQ0 to IRQ9. The Linux interrupt number is statically assigned to allow board code written in C to make use of static interrupt numbers. Signed-off-by: Magnus Damm <damm@opensource.se> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/setup-r8a7791.c | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/arch/arm/mach-shmobile/setup-r8a7791.c b/arch/arm/mach-shmobile/setup-r8a7791.c index 350dfc4..ba4fa3e 100644 --- a/arch/arm/mach-shmobile/setup-r8a7791.c +++ b/arch/arm/mach-shmobile/setup-r8a7791.c @@ -22,6 +22,7 @@ #include <linux/irq.h> #include <linux/kernel.h> #include <linux/of_platform.h> +#include <linux/platform_data/irq-renesas-irqc.h> #include <linux/serial_sci.h> #include <linux/sh_timer.h> #include <mach/common.h> @@ -109,6 +110,31 @@ static const struct resource cmt00_resources[] __initconst = { &cmt##idx##_platform_data, \ sizeof(struct sh_timer_config)) +static struct renesas_irqc_config irqc0_data = { + .irq_base = irq_pin(0), /* IRQ0 -> IRQ9 */ +}; + +static struct resource irqc0_resources[] = { + DEFINE_RES_MEM(0xe61c0000, 0x200), /* IRQC Event Detector Block_0 */ + DEFINE_RES_IRQ(gic_spi(0)), /* IRQ0 */ + DEFINE_RES_IRQ(gic_spi(1)), /* IRQ1 */ + DEFINE_RES_IRQ(gic_spi(2)), /* IRQ2 */ + DEFINE_RES_IRQ(gic_spi(3)), /* IRQ3 */ + DEFINE_RES_IRQ(gic_spi(12)), /* IRQ4 */ + DEFINE_RES_IRQ(gic_spi(13)), /* IRQ5 */ + DEFINE_RES_IRQ(gic_spi(14)), /* IRQ6 */ + DEFINE_RES_IRQ(gic_spi(15)), /* IRQ7 */ + DEFINE_RES_IRQ(gic_spi(16)), /* IRQ8 */ + DEFINE_RES_IRQ(gic_spi(17)), /* IRQ9 */ +}; + +#define r8a7791_register_irqc(idx) \ + platform_device_register_resndata(&platform_bus, "renesas_irqc", \ + idx, irqc##idx##_resources, \ + ARRAY_SIZE(irqc##idx##_resources), \ + &irqc##idx##_data, \ + sizeof(struct renesas_irqc_config)) + void __init r8a7791_add_dt_devices(void) { r8a7791_register_scif(SCIFA0); @@ -132,6 +158,7 @@ void __init r8a7791_add_dt_devices(void) void __init r8a7791_add_standard_devices(void) { r8a7791_add_dt_devices(); + r8a7791_register_irqc(0); } void __init r8a7791_init_early(void) -- 1.8.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 09/14] ARM: shmobile: r8a7791 Arch timer workaround 2013-10-09 6:49 ` Simon Horman @ 2013-10-09 6:49 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-10-09 6:49 UTC (permalink / raw) To: linux-arm-kernel From: Magnus Damm <damm@opensource.se> Make use of the R-Car Gen2 arch timer workaround on r8a7791. Signed-off-by: Magnus Damm <damm@opensource.se> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/Makefile | 2 +- arch/arm/mach-shmobile/setup-r8a7791.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-shmobile/Makefile b/arch/arm/mach-shmobile/Makefile index 6b7a02e..3c37e82 100644 --- a/arch/arm/mach-shmobile/Makefile +++ b/arch/arm/mach-shmobile/Makefile @@ -16,7 +16,7 @@ obj-$(CONFIG_ARCH_R8A7778) += setup-r8a7778.o obj-$(CONFIG_ARCH_R8A7779) += setup-r8a7779.o obj-$(CONFIG_ARCH_R8A7790) += setup-r8a7790.o obj-$(CONFIG_ARCH_R8A7790) += setup-r8a7790.o setup-rcar-gen2.o -obj-$(CONFIG_ARCH_R8A7791) += setup-r8a7791.o +obj-$(CONFIG_ARCH_R8A7791) += setup-r8a7791.o setup-rcar-gen2.o obj-$(CONFIG_ARCH_EMEV2) += setup-emev2.o # Clock objects diff --git a/arch/arm/mach-shmobile/setup-r8a7791.c b/arch/arm/mach-shmobile/setup-r8a7791.c index ba4fa3e..cb3859b 100644 --- a/arch/arm/mach-shmobile/setup-r8a7791.c +++ b/arch/arm/mach-shmobile/setup-r8a7791.c @@ -28,6 +28,7 @@ #include <mach/common.h> #include <mach/irqs.h> #include <mach/r8a7791.h> +#include <mach/rcar-gen2.h> #include <asm/mach/arch.h> #define SCIF_COMMON(scif_type, baseaddr, irq) \ @@ -176,6 +177,7 @@ static const char *r8a7791_boards_compat_dt[] __initdata = { DT_MACHINE_START(R8A7791_DT, "Generic R8A7791 (Flattened Device Tree)") .init_early = r8a7791_init_early, + .init_time = rcar_gen2_timer_init, .dt_compat = r8a7791_boards_compat_dt, MACHINE_END #endif /* CONFIG_USE_OF */ -- 1.8.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 09/14] ARM: shmobile: r8a7791 Arch timer workaround @ 2013-10-09 6:49 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-10-09 6:49 UTC (permalink / raw) To: linux-arm-kernel From: Magnus Damm <damm@opensource.se> Make use of the R-Car Gen2 arch timer workaround on r8a7791. Signed-off-by: Magnus Damm <damm@opensource.se> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/Makefile | 2 +- arch/arm/mach-shmobile/setup-r8a7791.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-shmobile/Makefile b/arch/arm/mach-shmobile/Makefile index 6b7a02e..3c37e82 100644 --- a/arch/arm/mach-shmobile/Makefile +++ b/arch/arm/mach-shmobile/Makefile @@ -16,7 +16,7 @@ obj-$(CONFIG_ARCH_R8A7778) += setup-r8a7778.o obj-$(CONFIG_ARCH_R8A7779) += setup-r8a7779.o obj-$(CONFIG_ARCH_R8A7790) += setup-r8a7790.o obj-$(CONFIG_ARCH_R8A7790) += setup-r8a7790.o setup-rcar-gen2.o -obj-$(CONFIG_ARCH_R8A7791) += setup-r8a7791.o +obj-$(CONFIG_ARCH_R8A7791) += setup-r8a7791.o setup-rcar-gen2.o obj-$(CONFIG_ARCH_EMEV2) += setup-emev2.o # Clock objects diff --git a/arch/arm/mach-shmobile/setup-r8a7791.c b/arch/arm/mach-shmobile/setup-r8a7791.c index ba4fa3e..cb3859b 100644 --- a/arch/arm/mach-shmobile/setup-r8a7791.c +++ b/arch/arm/mach-shmobile/setup-r8a7791.c @@ -28,6 +28,7 @@ #include <mach/common.h> #include <mach/irqs.h> #include <mach/r8a7791.h> +#include <mach/rcar-gen2.h> #include <asm/mach/arch.h> #define SCIF_COMMON(scif_type, baseaddr, irq) \ @@ -176,6 +177,7 @@ static const char *r8a7791_boards_compat_dt[] __initdata = { DT_MACHINE_START(R8A7791_DT, "Generic R8A7791 (Flattened Device Tree)") .init_early = r8a7791_init_early, + .init_time = rcar_gen2_timer_init, .dt_compat = r8a7791_boards_compat_dt, MACHINE_END #endif /* CONFIG_USE_OF */ -- 1.8.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 10/14] ARM: shmobile: Initial r7s72100 SoC support 2013-10-09 6:49 ` Simon Horman @ 2013-10-09 6:49 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-10-09 6:49 UTC (permalink / raw) To: linux-arm-kernel From: Magnus Damm <damm@opensource.se> Add initial support for the r7272100 SoC including: - Single Cortex-A9 CPU Core - GIC No static virtual mappings are used, all the components make use of ioremap(). DT_MACHINE_START is still wrapped in CONFIG_USE_OF to match other mach-shmobile code. Signed-off-by: Magnus Damm <damm@opensource.se> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r7s72100.dtsi | 36 +++++ arch/arm/mach-shmobile/Kconfig | 6 + arch/arm/mach-shmobile/Makefile | 2 + arch/arm/mach-shmobile/clock-r7s72100.c | 194 +++++++++++++++++++++++++ arch/arm/mach-shmobile/include/mach/r7s72100.h | 7 + arch/arm/mach-shmobile/setup-r7s72100.c | 43 ++++++ 6 files changed, 288 insertions(+) create mode 100644 arch/arm/boot/dts/r7s72100.dtsi create mode 100644 arch/arm/mach-shmobile/clock-r7s72100.c create mode 100644 arch/arm/mach-shmobile/include/mach/r7s72100.h create mode 100644 arch/arm/mach-shmobile/setup-r7s72100.c diff --git a/arch/arm/boot/dts/r7s72100.dtsi b/arch/arm/boot/dts/r7s72100.dtsi new file mode 100644 index 0000000..46b82aa --- /dev/null +++ b/arch/arm/boot/dts/r7s72100.dtsi @@ -0,0 +1,36 @@ +/* + * Device Tree Source for the r7s72100 SoC + * + * Copyright (C) 2013 Renesas Solutions Corp. + * + * This file is licensed under the terms of the GNU General Public License + * version 2. This program is licensed "as is" without any warranty of any + * kind, whether express or implied. + */ + +/ { + compatible = "renesas,r7s72100"; + interrupt-parent = <&gic>; + #address-cells = <1>; + #size-cells = <1>; + + cpus { + #address-cells = <1>; + #size-cells = <0>; + + cpu@0 { + device_type = "cpu"; + compatible = "arm,cortex-a9"; + reg = <0>; + }; + }; + + gic: interrupt-controller@e8201000 { + compatible = "arm,cortex-a9-gic"; + #interrupt-cells = <3>; + #address-cells = <0>; + interrupt-controller; + reg = <0xe8201000 0x1000>, + <0xe8202000 0x1000>; + }; +}; diff --git a/arch/arm/mach-shmobile/Kconfig b/arch/arm/mach-shmobile/Kconfig index b452405..5dd5f9f 100644 --- a/arch/arm/mach-shmobile/Kconfig +++ b/arch/arm/mach-shmobile/Kconfig @@ -113,6 +113,12 @@ config ARCH_EMEV2 select ARM_GIC select CPU_V7 +config ARCH_R7S72100 + bool "RZ/A1H (R7S72100)" + select ARM_GIC + select CPU_V7 + select SH_CLK_CPG + comment "SH-Mobile Board Type" config MACH_APE6EVM diff --git a/arch/arm/mach-shmobile/Makefile b/arch/arm/mach-shmobile/Makefile index 3c37e82..95e48d1 100644 --- a/arch/arm/mach-shmobile/Makefile +++ b/arch/arm/mach-shmobile/Makefile @@ -18,6 +18,7 @@ obj-$(CONFIG_ARCH_R8A7790) += setup-r8a7790.o obj-$(CONFIG_ARCH_R8A7790) += setup-r8a7790.o setup-rcar-gen2.o obj-$(CONFIG_ARCH_R8A7791) += setup-r8a7791.o setup-rcar-gen2.o obj-$(CONFIG_ARCH_EMEV2) += setup-emev2.o +obj-$(CONFIG_ARCH_R7S72100) += setup-r7s72100.o # Clock objects ifndef CONFIG_COMMON_CLK @@ -31,6 +32,7 @@ obj-$(CONFIG_ARCH_R8A7779) += clock-r8a7779.o obj-$(CONFIG_ARCH_R8A7790) += clock-r8a7790.o obj-$(CONFIG_ARCH_R8A7791) += clock-r8a7791.o obj-$(CONFIG_ARCH_EMEV2) += clock-emev2.o +obj-$(CONFIG_ARCH_R7S72100) += clock-r7s72100.o endif # SMP objects diff --git a/arch/arm/mach-shmobile/clock-r7s72100.c b/arch/arm/mach-shmobile/clock-r7s72100.c new file mode 100644 index 0000000..1e71094 --- /dev/null +++ b/arch/arm/mach-shmobile/clock-r7s72100.c @@ -0,0 +1,194 @@ +/* + * r7a72100 clock framework support + * + * Copyright (C) 2013 Renesas Solutions Corp. + * Copyright (C) 2012 Phil Edworthy + * Copyright (C) 2011 Magnus Damm + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ +#include <linux/init.h> +#include <linux/kernel.h> +#include <linux/io.h> +#include <linux/sh_clk.h> +#include <linux/clkdev.h> +#include <mach/common.h> +#include <mach/r7s72100.h> + +/* registers */ +#define FRQCR 0xfcfe0010 +#define FRQCR2 0xfcfe0014 +#define STBCR3 0xfcfe0420 +#define STBCR4 0xfcfe0424 + +#define PLL_RATE 30 + +static struct clk_mapping cpg_mapping = { + .phys = 0xfcfe0000, + .len = 0x1000, +}; + +/* Fixed 32 KHz root clock for RTC */ +static struct clk r_clk = { + .rate = 32768, +}; + +/* + * Default rate for the root input clock, reset this with clk_set_rate() + * from the platform code. + */ +static struct clk extal_clk = { + .rate = 13330000, + .mapping = &cpg_mapping, +}; + +static unsigned long pll_recalc(struct clk *clk) +{ + return clk->parent->rate * PLL_RATE; +} + +static struct sh_clk_ops pll_clk_ops = { + .recalc = pll_recalc, +}; + +static struct clk pll_clk = { + .ops = &pll_clk_ops, + .parent = &extal_clk, + .flags = CLK_ENABLE_ON_INIT, +}; + +static unsigned long bus_recalc(struct clk *clk) +{ + return clk->parent->rate * 2 / 3; +} + +static struct sh_clk_ops bus_clk_ops = { + .recalc = bus_recalc, +}; + +static struct clk bus_clk = { + .ops = &bus_clk_ops, + .parent = &pll_clk, + .flags = CLK_ENABLE_ON_INIT, +}; + +static unsigned long peripheral0_recalc(struct clk *clk) +{ + return clk->parent->rate / 12; +} + +static struct sh_clk_ops peripheral0_clk_ops = { + .recalc = peripheral0_recalc, +}; + +static struct clk peripheral0_clk = { + .ops = &peripheral0_clk_ops, + .parent = &pll_clk, + .flags = CLK_ENABLE_ON_INIT, +}; + +static unsigned long peripheral1_recalc(struct clk *clk) +{ + return clk->parent->rate / 6; +} + +static struct sh_clk_ops peripheral1_clk_ops = { + .recalc = peripheral1_recalc, +}; + +static struct clk peripheral1_clk = { + .ops = &peripheral1_clk_ops, + .parent = &pll_clk, + .flags = CLK_ENABLE_ON_INIT, +}; + +struct clk *main_clks[] = { + &r_clk, + &extal_clk, + &pll_clk, + &bus_clk, + &peripheral0_clk, + &peripheral1_clk, +}; + +static int div2[] = { 1, 3, 0, 3 }; /* 1, 2/3, reserve, 1/3 */ +static int multipliers[] = { 1, 2, 1, 1 }; + +static struct clk_div_mult_table div4_div_mult_table = { + .divisors = div2, + .nr_divisors = ARRAY_SIZE(div2), + .multipliers = multipliers, + .nr_multipliers = ARRAY_SIZE(multipliers), +}; + +static struct clk_div4_table div4_table = { + .div_mult_table = &div4_div_mult_table, +}; + +enum { DIV4_I, + DIV4_NR }; + +#define DIV4(_reg, _bit, _mask, _flags) \ + SH_CLK_DIV4(&pll_clk, _reg, _bit, _mask, _flags) + +/* The mask field specifies the div2 entries that are valid */ +struct clk div4_clks[DIV4_NR] = { + [DIV4_I] = DIV4(FRQCR, 8, 0xB, CLK_ENABLE_REG_16BIT + | CLK_ENABLE_ON_INIT), +}; + +enum { MSTP47, MSTP46, MSTP45, MSTP44, MSTP43, MSTP42, MSTP41, MSTP40, + MSTP33, MSTP_NR }; + +static struct clk mstp_clks[MSTP_NR] = { + [MSTP47] = SH_CLK_MSTP8(&peripheral1_clk, STBCR4, 7, 0), /* SCIF0 */ + [MSTP46] = SH_CLK_MSTP8(&peripheral1_clk, STBCR4, 6, 0), /* SCIF1 */ + [MSTP45] = SH_CLK_MSTP8(&peripheral1_clk, STBCR4, 5, 0), /* SCIF2 */ + [MSTP44] = SH_CLK_MSTP8(&peripheral1_clk, STBCR4, 4, 0), /* SCIF3 */ + [MSTP43] = SH_CLK_MSTP8(&peripheral1_clk, STBCR4, 3, 0), /* SCIF4 */ + [MSTP42] = SH_CLK_MSTP8(&peripheral1_clk, STBCR4, 2, 0), /* SCIF5 */ + [MSTP41] = SH_CLK_MSTP8(&peripheral1_clk, STBCR4, 1, 0), /* SCIF6 */ + [MSTP40] = SH_CLK_MSTP8(&peripheral1_clk, STBCR4, 0, 0), /* SCIF7 */ + [MSTP33] = SH_CLK_MSTP8(&peripheral0_clk, STBCR3, 3, 0), /* MTU2 */ +}; + +static struct clk_lookup lookups[] = { + /* main clocks */ + CLKDEV_CON_ID("rclk", &r_clk), + CLKDEV_CON_ID("extal", &extal_clk), + CLKDEV_CON_ID("pll_clk", &pll_clk), + CLKDEV_CON_ID("peripheral_clk", &peripheral1_clk), + + /* DIV4 clocks */ + CLKDEV_CON_ID("cpu_clk", &div4_clks[DIV4_I]), + + /* MSTP clocks */ +}; + +void __init r7s72100_clock_init(void) +{ + int k, ret = 0; + + for (k = 0; !ret && (k < ARRAY_SIZE(main_clks)); k++) + ret = clk_register(main_clks[k]); + + clkdev_add_table(lookups, ARRAY_SIZE(lookups)); + + if (!ret) + ret = sh_clk_div4_register(div4_clks, DIV4_NR, &div4_table); + + if (!ret) + ret = sh_clk_mstp_register(mstp_clks, MSTP_NR); + + if (!ret) + shmobile_clk_init(); + else + panic("failed to setup rza1 clocks\n"); +} diff --git a/arch/arm/mach-shmobile/include/mach/r7s72100.h b/arch/arm/mach-shmobile/include/mach/r7s72100.h new file mode 100644 index 0000000..f78062e --- /dev/null +++ b/arch/arm/mach-shmobile/include/mach/r7s72100.h @@ -0,0 +1,7 @@ +#ifndef __ASM_R7S72100_H__ +#define __ASM_R7S72100_H__ + +void r7s72100_clock_init(void); +void r7s72100_init_early(void); + +#endif /* __ASM_R7S72100_H__ */ diff --git a/arch/arm/mach-shmobile/setup-r7s72100.c b/arch/arm/mach-shmobile/setup-r7s72100.c new file mode 100644 index 0000000..c1aded0 --- /dev/null +++ b/arch/arm/mach-shmobile/setup-r7s72100.c @@ -0,0 +1,43 @@ +/* + * r7s72100 processor support + * + * Copyright (C) 2013 Renesas Solutions Corp. + * Copyright (C) 2013 Magnus Damm + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#include <linux/irq.h> +#include <linux/kernel.h> +#include <linux/of_platform.h> +#include <mach/common.h> +#include <mach/r7s72100.h> +#include <asm/mach/arch.h> + +void __init r7s72100_init_early(void) +{ + shmobile_setup_delay(400, 1, 3); /* Cortex-A9 @ 400MHz */ +} + +#ifdef CONFIG_USE_OF +static const char *r7s72100_boards_compat_dt[] __initdata = { + "renesas,r7s72100", + NULL, +}; + +DT_MACHINE_START(R7S72100_DT, "Generic R7S72100 (Flattened Device Tree)") + .init_early = r7s72100_init_early, + .dt_compat = r7s72100_boards_compat_dt, +MACHINE_END +#endif /* CONFIG_USE_OF */ -- 1.8.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 10/14] ARM: shmobile: Initial r7s72100 SoC support @ 2013-10-09 6:49 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-10-09 6:49 UTC (permalink / raw) To: linux-arm-kernel From: Magnus Damm <damm@opensource.se> Add initial support for the r7272100 SoC including: - Single Cortex-A9 CPU Core - GIC No static virtual mappings are used, all the components make use of ioremap(). DT_MACHINE_START is still wrapped in CONFIG_USE_OF to match other mach-shmobile code. Signed-off-by: Magnus Damm <damm@opensource.se> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r7s72100.dtsi | 36 +++++ arch/arm/mach-shmobile/Kconfig | 6 + arch/arm/mach-shmobile/Makefile | 2 + arch/arm/mach-shmobile/clock-r7s72100.c | 194 +++++++++++++++++++++++++ arch/arm/mach-shmobile/include/mach/r7s72100.h | 7 + arch/arm/mach-shmobile/setup-r7s72100.c | 43 ++++++ 6 files changed, 288 insertions(+) create mode 100644 arch/arm/boot/dts/r7s72100.dtsi create mode 100644 arch/arm/mach-shmobile/clock-r7s72100.c create mode 100644 arch/arm/mach-shmobile/include/mach/r7s72100.h create mode 100644 arch/arm/mach-shmobile/setup-r7s72100.c diff --git a/arch/arm/boot/dts/r7s72100.dtsi b/arch/arm/boot/dts/r7s72100.dtsi new file mode 100644 index 0000000..46b82aa --- /dev/null +++ b/arch/arm/boot/dts/r7s72100.dtsi @@ -0,0 +1,36 @@ +/* + * Device Tree Source for the r7s72100 SoC + * + * Copyright (C) 2013 Renesas Solutions Corp. + * + * This file is licensed under the terms of the GNU General Public License + * version 2. This program is licensed "as is" without any warranty of any + * kind, whether express or implied. + */ + +/ { + compatible = "renesas,r7s72100"; + interrupt-parent = <&gic>; + #address-cells = <1>; + #size-cells = <1>; + + cpus { + #address-cells = <1>; + #size-cells = <0>; + + cpu at 0 { + device_type = "cpu"; + compatible = "arm,cortex-a9"; + reg = <0>; + }; + }; + + gic: interrupt-controller at e8201000 { + compatible = "arm,cortex-a9-gic"; + #interrupt-cells = <3>; + #address-cells = <0>; + interrupt-controller; + reg = <0xe8201000 0x1000>, + <0xe8202000 0x1000>; + }; +}; diff --git a/arch/arm/mach-shmobile/Kconfig b/arch/arm/mach-shmobile/Kconfig index b452405..5dd5f9f 100644 --- a/arch/arm/mach-shmobile/Kconfig +++ b/arch/arm/mach-shmobile/Kconfig @@ -113,6 +113,12 @@ config ARCH_EMEV2 select ARM_GIC select CPU_V7 +config ARCH_R7S72100 + bool "RZ/A1H (R7S72100)" + select ARM_GIC + select CPU_V7 + select SH_CLK_CPG + comment "SH-Mobile Board Type" config MACH_APE6EVM diff --git a/arch/arm/mach-shmobile/Makefile b/arch/arm/mach-shmobile/Makefile index 3c37e82..95e48d1 100644 --- a/arch/arm/mach-shmobile/Makefile +++ b/arch/arm/mach-shmobile/Makefile @@ -18,6 +18,7 @@ obj-$(CONFIG_ARCH_R8A7790) += setup-r8a7790.o obj-$(CONFIG_ARCH_R8A7790) += setup-r8a7790.o setup-rcar-gen2.o obj-$(CONFIG_ARCH_R8A7791) += setup-r8a7791.o setup-rcar-gen2.o obj-$(CONFIG_ARCH_EMEV2) += setup-emev2.o +obj-$(CONFIG_ARCH_R7S72100) += setup-r7s72100.o # Clock objects ifndef CONFIG_COMMON_CLK @@ -31,6 +32,7 @@ obj-$(CONFIG_ARCH_R8A7779) += clock-r8a7779.o obj-$(CONFIG_ARCH_R8A7790) += clock-r8a7790.o obj-$(CONFIG_ARCH_R8A7791) += clock-r8a7791.o obj-$(CONFIG_ARCH_EMEV2) += clock-emev2.o +obj-$(CONFIG_ARCH_R7S72100) += clock-r7s72100.o endif # SMP objects diff --git a/arch/arm/mach-shmobile/clock-r7s72100.c b/arch/arm/mach-shmobile/clock-r7s72100.c new file mode 100644 index 0000000..1e71094 --- /dev/null +++ b/arch/arm/mach-shmobile/clock-r7s72100.c @@ -0,0 +1,194 @@ +/* + * r7a72100 clock framework support + * + * Copyright (C) 2013 Renesas Solutions Corp. + * Copyright (C) 2012 Phil Edworthy + * Copyright (C) 2011 Magnus Damm + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ +#include <linux/init.h> +#include <linux/kernel.h> +#include <linux/io.h> +#include <linux/sh_clk.h> +#include <linux/clkdev.h> +#include <mach/common.h> +#include <mach/r7s72100.h> + +/* registers */ +#define FRQCR 0xfcfe0010 +#define FRQCR2 0xfcfe0014 +#define STBCR3 0xfcfe0420 +#define STBCR4 0xfcfe0424 + +#define PLL_RATE 30 + +static struct clk_mapping cpg_mapping = { + .phys = 0xfcfe0000, + .len = 0x1000, +}; + +/* Fixed 32 KHz root clock for RTC */ +static struct clk r_clk = { + .rate = 32768, +}; + +/* + * Default rate for the root input clock, reset this with clk_set_rate() + * from the platform code. + */ +static struct clk extal_clk = { + .rate = 13330000, + .mapping = &cpg_mapping, +}; + +static unsigned long pll_recalc(struct clk *clk) +{ + return clk->parent->rate * PLL_RATE; +} + +static struct sh_clk_ops pll_clk_ops = { + .recalc = pll_recalc, +}; + +static struct clk pll_clk = { + .ops = &pll_clk_ops, + .parent = &extal_clk, + .flags = CLK_ENABLE_ON_INIT, +}; + +static unsigned long bus_recalc(struct clk *clk) +{ + return clk->parent->rate * 2 / 3; +} + +static struct sh_clk_ops bus_clk_ops = { + .recalc = bus_recalc, +}; + +static struct clk bus_clk = { + .ops = &bus_clk_ops, + .parent = &pll_clk, + .flags = CLK_ENABLE_ON_INIT, +}; + +static unsigned long peripheral0_recalc(struct clk *clk) +{ + return clk->parent->rate / 12; +} + +static struct sh_clk_ops peripheral0_clk_ops = { + .recalc = peripheral0_recalc, +}; + +static struct clk peripheral0_clk = { + .ops = &peripheral0_clk_ops, + .parent = &pll_clk, + .flags = CLK_ENABLE_ON_INIT, +}; + +static unsigned long peripheral1_recalc(struct clk *clk) +{ + return clk->parent->rate / 6; +} + +static struct sh_clk_ops peripheral1_clk_ops = { + .recalc = peripheral1_recalc, +}; + +static struct clk peripheral1_clk = { + .ops = &peripheral1_clk_ops, + .parent = &pll_clk, + .flags = CLK_ENABLE_ON_INIT, +}; + +struct clk *main_clks[] = { + &r_clk, + &extal_clk, + &pll_clk, + &bus_clk, + &peripheral0_clk, + &peripheral1_clk, +}; + +static int div2[] = { 1, 3, 0, 3 }; /* 1, 2/3, reserve, 1/3 */ +static int multipliers[] = { 1, 2, 1, 1 }; + +static struct clk_div_mult_table div4_div_mult_table = { + .divisors = div2, + .nr_divisors = ARRAY_SIZE(div2), + .multipliers = multipliers, + .nr_multipliers = ARRAY_SIZE(multipliers), +}; + +static struct clk_div4_table div4_table = { + .div_mult_table = &div4_div_mult_table, +}; + +enum { DIV4_I, + DIV4_NR }; + +#define DIV4(_reg, _bit, _mask, _flags) \ + SH_CLK_DIV4(&pll_clk, _reg, _bit, _mask, _flags) + +/* The mask field specifies the div2 entries that are valid */ +struct clk div4_clks[DIV4_NR] = { + [DIV4_I] = DIV4(FRQCR, 8, 0xB, CLK_ENABLE_REG_16BIT + | CLK_ENABLE_ON_INIT), +}; + +enum { MSTP47, MSTP46, MSTP45, MSTP44, MSTP43, MSTP42, MSTP41, MSTP40, + MSTP33, MSTP_NR }; + +static struct clk mstp_clks[MSTP_NR] = { + [MSTP47] = SH_CLK_MSTP8(&peripheral1_clk, STBCR4, 7, 0), /* SCIF0 */ + [MSTP46] = SH_CLK_MSTP8(&peripheral1_clk, STBCR4, 6, 0), /* SCIF1 */ + [MSTP45] = SH_CLK_MSTP8(&peripheral1_clk, STBCR4, 5, 0), /* SCIF2 */ + [MSTP44] = SH_CLK_MSTP8(&peripheral1_clk, STBCR4, 4, 0), /* SCIF3 */ + [MSTP43] = SH_CLK_MSTP8(&peripheral1_clk, STBCR4, 3, 0), /* SCIF4 */ + [MSTP42] = SH_CLK_MSTP8(&peripheral1_clk, STBCR4, 2, 0), /* SCIF5 */ + [MSTP41] = SH_CLK_MSTP8(&peripheral1_clk, STBCR4, 1, 0), /* SCIF6 */ + [MSTP40] = SH_CLK_MSTP8(&peripheral1_clk, STBCR4, 0, 0), /* SCIF7 */ + [MSTP33] = SH_CLK_MSTP8(&peripheral0_clk, STBCR3, 3, 0), /* MTU2 */ +}; + +static struct clk_lookup lookups[] = { + /* main clocks */ + CLKDEV_CON_ID("rclk", &r_clk), + CLKDEV_CON_ID("extal", &extal_clk), + CLKDEV_CON_ID("pll_clk", &pll_clk), + CLKDEV_CON_ID("peripheral_clk", &peripheral1_clk), + + /* DIV4 clocks */ + CLKDEV_CON_ID("cpu_clk", &div4_clks[DIV4_I]), + + /* MSTP clocks */ +}; + +void __init r7s72100_clock_init(void) +{ + int k, ret = 0; + + for (k = 0; !ret && (k < ARRAY_SIZE(main_clks)); k++) + ret = clk_register(main_clks[k]); + + clkdev_add_table(lookups, ARRAY_SIZE(lookups)); + + if (!ret) + ret = sh_clk_div4_register(div4_clks, DIV4_NR, &div4_table); + + if (!ret) + ret = sh_clk_mstp_register(mstp_clks, MSTP_NR); + + if (!ret) + shmobile_clk_init(); + else + panic("failed to setup rza1 clocks\n"); +} diff --git a/arch/arm/mach-shmobile/include/mach/r7s72100.h b/arch/arm/mach-shmobile/include/mach/r7s72100.h new file mode 100644 index 0000000..f78062e --- /dev/null +++ b/arch/arm/mach-shmobile/include/mach/r7s72100.h @@ -0,0 +1,7 @@ +#ifndef __ASM_R7S72100_H__ +#define __ASM_R7S72100_H__ + +void r7s72100_clock_init(void); +void r7s72100_init_early(void); + +#endif /* __ASM_R7S72100_H__ */ diff --git a/arch/arm/mach-shmobile/setup-r7s72100.c b/arch/arm/mach-shmobile/setup-r7s72100.c new file mode 100644 index 0000000..c1aded0 --- /dev/null +++ b/arch/arm/mach-shmobile/setup-r7s72100.c @@ -0,0 +1,43 @@ +/* + * r7s72100 processor support + * + * Copyright (C) 2013 Renesas Solutions Corp. + * Copyright (C) 2013 Magnus Damm + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#include <linux/irq.h> +#include <linux/kernel.h> +#include <linux/of_platform.h> +#include <mach/common.h> +#include <mach/r7s72100.h> +#include <asm/mach/arch.h> + +void __init r7s72100_init_early(void) +{ + shmobile_setup_delay(400, 1, 3); /* Cortex-A9 @ 400MHz */ +} + +#ifdef CONFIG_USE_OF +static const char *r7s72100_boards_compat_dt[] __initdata = { + "renesas,r7s72100", + NULL, +}; + +DT_MACHINE_START(R7S72100_DT, "Generic R7S72100 (Flattened Device Tree)") + .init_early = r7s72100_init_early, + .dt_compat = r7s72100_boards_compat_dt, +MACHINE_END +#endif /* CONFIG_USE_OF */ -- 1.8.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 11/14] ARM: shmobile: r7s72100 SCIF support 2013-10-09 6:49 ` Simon Horman @ 2013-10-09 6:49 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-10-09 6:49 UTC (permalink / raw) To: linux-arm-kernel From: Magnus Damm <damm@opensource.se> Add SCIF serial port support to the r7s72100 SoC by adding platform devices for SCIF0 -> SCIF7 together with clock bindings. DT device description is excluded at this point since such bindings are still under development. Signed-off-by: Magnus Damm <damm@opensource.se> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/clock-r7s72100.c | 8 +++++ arch/arm/mach-shmobile/include/mach/r7s72100.h | 1 + arch/arm/mach-shmobile/setup-r7s72100.c | 45 ++++++++++++++++++++++++++ 3 files changed, 54 insertions(+) diff --git a/arch/arm/mach-shmobile/clock-r7s72100.c b/arch/arm/mach-shmobile/clock-r7s72100.c index 1e71094..4aba20c 100644 --- a/arch/arm/mach-shmobile/clock-r7s72100.c +++ b/arch/arm/mach-shmobile/clock-r7s72100.c @@ -170,6 +170,14 @@ static struct clk_lookup lookups[] = { CLKDEV_CON_ID("cpu_clk", &div4_clks[DIV4_I]), /* MSTP clocks */ + CLKDEV_ICK_ID("sci_fck", "sh-sci.0", &mstp_clks[MSTP47]), + CLKDEV_ICK_ID("sci_fck", "sh-sci.1", &mstp_clks[MSTP46]), + CLKDEV_ICK_ID("sci_fck", "sh-sci.2", &mstp_clks[MSTP45]), + CLKDEV_ICK_ID("sci_fck", "sh-sci.3", &mstp_clks[MSTP44]), + CLKDEV_ICK_ID("sci_fck", "sh-sci.4", &mstp_clks[MSTP43]), + CLKDEV_ICK_ID("sci_fck", "sh-sci.5", &mstp_clks[MSTP42]), + CLKDEV_ICK_ID("sci_fck", "sh-sci.6", &mstp_clks[MSTP41]), + CLKDEV_ICK_ID("sci_fck", "sh-sci.7", &mstp_clks[MSTP40]), }; void __init r7s72100_clock_init(void) diff --git a/arch/arm/mach-shmobile/include/mach/r7s72100.h b/arch/arm/mach-shmobile/include/mach/r7s72100.h index f78062e..5f34b20 100644 --- a/arch/arm/mach-shmobile/include/mach/r7s72100.h +++ b/arch/arm/mach-shmobile/include/mach/r7s72100.h @@ -1,6 +1,7 @@ #ifndef __ASM_R7S72100_H__ #define __ASM_R7S72100_H__ +void r7s72100_add_dt_devices(void); void r7s72100_clock_init(void); void r7s72100_init_early(void); diff --git a/arch/arm/mach-shmobile/setup-r7s72100.c b/arch/arm/mach-shmobile/setup-r7s72100.c index c1aded0..d4eb509 100644 --- a/arch/arm/mach-shmobile/setup-r7s72100.c +++ b/arch/arm/mach-shmobile/setup-r7s72100.c @@ -21,10 +21,55 @@ #include <linux/irq.h> #include <linux/kernel.h> #include <linux/of_platform.h> +#include <linux/serial_sci.h> #include <mach/common.h> +#include <mach/irqs.h> #include <mach/r7s72100.h> #include <asm/mach/arch.h> +#define SCIF_DATA(index, baseaddr, irq) \ +[index] = { \ + .type = PORT_SCIF, \ + .regtype = SCIx_SH2_SCIF_FIFODATA_REGTYPE, \ + .flags = UPF_BOOT_AUTOCONF | UPF_IOREMAP, \ + .scbrr_algo_id = SCBRR_ALGO_2, \ + .scscr = SCSCR_RIE | SCSCR_TIE | SCSCR_RE | SCSCR_TE | \ + SCSCR_REIE, \ + .mapbase = baseaddr, \ + .irqs = { irq + 1, irq + 2, irq + 3, irq }, \ +} + +enum { SCIF0, SCIF1, SCIF2, SCIF3, SCIF4, SCIF5, SCIF6, SCIF7 }; + +static const struct plat_sci_port scif[] __initconst = { + SCIF_DATA(SCIF0, 0xe8007000, gic_iid(221)), /* SCIF0 */ + SCIF_DATA(SCIF1, 0xe8007800, gic_iid(225)), /* SCIF1 */ + SCIF_DATA(SCIF2, 0xe8008000, gic_iid(229)), /* SCIF2 */ + SCIF_DATA(SCIF3, 0xe8008800, gic_iid(233)), /* SCIF3 */ + SCIF_DATA(SCIF4, 0xe8009000, gic_iid(237)), /* SCIF4 */ + SCIF_DATA(SCIF5, 0xe8009800, gic_iid(241)), /* SCIF5 */ + SCIF_DATA(SCIF6, 0xe800a000, gic_iid(245)), /* SCIF6 */ + SCIF_DATA(SCIF7, 0xe800a800, gic_iid(249)), /* SCIF7 */ +}; + +static inline void r7s72100_register_scif(int idx) +{ + platform_device_register_data(&platform_bus, "sh-sci", idx, &scif[idx], + sizeof(struct plat_sci_port)); +} + +void __init r7s72100_add_dt_devices(void) +{ + r7s72100_register_scif(SCIF0); + r7s72100_register_scif(SCIF1); + r7s72100_register_scif(SCIF2); + r7s72100_register_scif(SCIF3); + r7s72100_register_scif(SCIF4); + r7s72100_register_scif(SCIF5); + r7s72100_register_scif(SCIF6); + r7s72100_register_scif(SCIF7); +} + void __init r7s72100_init_early(void) { shmobile_setup_delay(400, 1, 3); /* Cortex-A9 @ 400MHz */ -- 1.8.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 11/14] ARM: shmobile: r7s72100 SCIF support @ 2013-10-09 6:49 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-10-09 6:49 UTC (permalink / raw) To: linux-arm-kernel From: Magnus Damm <damm@opensource.se> Add SCIF serial port support to the r7s72100 SoC by adding platform devices for SCIF0 -> SCIF7 together with clock bindings. DT device description is excluded at this point since such bindings are still under development. Signed-off-by: Magnus Damm <damm@opensource.se> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/clock-r7s72100.c | 8 +++++ arch/arm/mach-shmobile/include/mach/r7s72100.h | 1 + arch/arm/mach-shmobile/setup-r7s72100.c | 45 ++++++++++++++++++++++++++ 3 files changed, 54 insertions(+) diff --git a/arch/arm/mach-shmobile/clock-r7s72100.c b/arch/arm/mach-shmobile/clock-r7s72100.c index 1e71094..4aba20c 100644 --- a/arch/arm/mach-shmobile/clock-r7s72100.c +++ b/arch/arm/mach-shmobile/clock-r7s72100.c @@ -170,6 +170,14 @@ static struct clk_lookup lookups[] = { CLKDEV_CON_ID("cpu_clk", &div4_clks[DIV4_I]), /* MSTP clocks */ + CLKDEV_ICK_ID("sci_fck", "sh-sci.0", &mstp_clks[MSTP47]), + CLKDEV_ICK_ID("sci_fck", "sh-sci.1", &mstp_clks[MSTP46]), + CLKDEV_ICK_ID("sci_fck", "sh-sci.2", &mstp_clks[MSTP45]), + CLKDEV_ICK_ID("sci_fck", "sh-sci.3", &mstp_clks[MSTP44]), + CLKDEV_ICK_ID("sci_fck", "sh-sci.4", &mstp_clks[MSTP43]), + CLKDEV_ICK_ID("sci_fck", "sh-sci.5", &mstp_clks[MSTP42]), + CLKDEV_ICK_ID("sci_fck", "sh-sci.6", &mstp_clks[MSTP41]), + CLKDEV_ICK_ID("sci_fck", "sh-sci.7", &mstp_clks[MSTP40]), }; void __init r7s72100_clock_init(void) diff --git a/arch/arm/mach-shmobile/include/mach/r7s72100.h b/arch/arm/mach-shmobile/include/mach/r7s72100.h index f78062e..5f34b20 100644 --- a/arch/arm/mach-shmobile/include/mach/r7s72100.h +++ b/arch/arm/mach-shmobile/include/mach/r7s72100.h @@ -1,6 +1,7 @@ #ifndef __ASM_R7S72100_H__ #define __ASM_R7S72100_H__ +void r7s72100_add_dt_devices(void); void r7s72100_clock_init(void); void r7s72100_init_early(void); diff --git a/arch/arm/mach-shmobile/setup-r7s72100.c b/arch/arm/mach-shmobile/setup-r7s72100.c index c1aded0..d4eb509 100644 --- a/arch/arm/mach-shmobile/setup-r7s72100.c +++ b/arch/arm/mach-shmobile/setup-r7s72100.c @@ -21,10 +21,55 @@ #include <linux/irq.h> #include <linux/kernel.h> #include <linux/of_platform.h> +#include <linux/serial_sci.h> #include <mach/common.h> +#include <mach/irqs.h> #include <mach/r7s72100.h> #include <asm/mach/arch.h> +#define SCIF_DATA(index, baseaddr, irq) \ +[index] = { \ + .type = PORT_SCIF, \ + .regtype = SCIx_SH2_SCIF_FIFODATA_REGTYPE, \ + .flags = UPF_BOOT_AUTOCONF | UPF_IOREMAP, \ + .scbrr_algo_id = SCBRR_ALGO_2, \ + .scscr = SCSCR_RIE | SCSCR_TIE | SCSCR_RE | SCSCR_TE | \ + SCSCR_REIE, \ + .mapbase = baseaddr, \ + .irqs = { irq + 1, irq + 2, irq + 3, irq }, \ +} + +enum { SCIF0, SCIF1, SCIF2, SCIF3, SCIF4, SCIF5, SCIF6, SCIF7 }; + +static const struct plat_sci_port scif[] __initconst = { + SCIF_DATA(SCIF0, 0xe8007000, gic_iid(221)), /* SCIF0 */ + SCIF_DATA(SCIF1, 0xe8007800, gic_iid(225)), /* SCIF1 */ + SCIF_DATA(SCIF2, 0xe8008000, gic_iid(229)), /* SCIF2 */ + SCIF_DATA(SCIF3, 0xe8008800, gic_iid(233)), /* SCIF3 */ + SCIF_DATA(SCIF4, 0xe8009000, gic_iid(237)), /* SCIF4 */ + SCIF_DATA(SCIF5, 0xe8009800, gic_iid(241)), /* SCIF5 */ + SCIF_DATA(SCIF6, 0xe800a000, gic_iid(245)), /* SCIF6 */ + SCIF_DATA(SCIF7, 0xe800a800, gic_iid(249)), /* SCIF7 */ +}; + +static inline void r7s72100_register_scif(int idx) +{ + platform_device_register_data(&platform_bus, "sh-sci", idx, &scif[idx], + sizeof(struct plat_sci_port)); +} + +void __init r7s72100_add_dt_devices(void) +{ + r7s72100_register_scif(SCIF0); + r7s72100_register_scif(SCIF1); + r7s72100_register_scif(SCIF2); + r7s72100_register_scif(SCIF3); + r7s72100_register_scif(SCIF4); + r7s72100_register_scif(SCIF5); + r7s72100_register_scif(SCIF6); + r7s72100_register_scif(SCIF7); +} + void __init r7s72100_init_early(void) { shmobile_setup_delay(400, 1, 3); /* Cortex-A9 @ 400MHz */ -- 1.8.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 12/14] ARM: shmobile: r8a7778: split r8a7778_init_irq_extpin() for DT 2013-10-09 6:49 ` Simon Horman @ 2013-10-09 6:49 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-10-09 6:49 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> r8a7778 INTC needs IRL pin mode settings to determine behavior of IRQ0 - IRQ3, and r8a7778_init_irq_extpin() is controlling it via irlm parameter. But this function registers renesas_intc_irqpin driver if irlm was set, and this value depends on platform. This is not good for DT. This patch splits r8a7778_init_irq_extpin() function into "mode settings" and "funtion register" parts. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/include/mach/r8a7778.h | 1 + arch/arm/mach-shmobile/setup-r8a7778.c | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-shmobile/include/mach/r8a7778.h b/arch/arm/mach-shmobile/include/mach/r8a7778.h index 1d6fe97..dbe221a 100644 --- a/arch/arm/mach-shmobile/include/mach/r8a7778.h +++ b/arch/arm/mach-shmobile/include/mach/r8a7778.h @@ -41,6 +41,7 @@ extern void r8a7778_init_delay(void); extern void r8a7778_init_irq_dt(void); extern void r8a7778_clock_init(void); extern void r8a7778_init_irq_extpin(int irlm); +extern void r8a7778_init_irq_extpin_dt(int irlm); extern void r8a7778_pinmux_init(void); extern int r8a7778_usb_phy_power(bool enable); diff --git a/arch/arm/mach-shmobile/setup-r8a7778.c b/arch/arm/mach-shmobile/setup-r8a7778.c index fa1b7e4..16d49aa 100644 --- a/arch/arm/mach-shmobile/setup-r8a7778.c +++ b/arch/arm/mach-shmobile/setup-r8a7778.c @@ -476,7 +476,7 @@ static struct resource irqpin_resources[] __initdata = { DEFINE_RES_IRQ(gic_iid(0x3e)), /* IRQ3 */ }; -void __init r8a7778_init_irq_extpin(int irlm) +void __init r8a7778_init_irq_extpin_dt(int irlm) { void __iomem *icr0 = ioremap_nocache(0xfe780000, PAGE_SIZE); unsigned long tmp; @@ -494,7 +494,11 @@ void __init r8a7778_init_irq_extpin(int irlm) tmp |= (1 << 21); /* LVLMODE = 1 */ iowrite32(tmp, icr0); iounmap(icr0); +} +void __init r8a7778_init_irq_extpin(int irlm) +{ + r8a7778_init_irq_extpin_dt(irlm); if (irlm) platform_device_register_resndata( &platform_bus, "renesas_intc_irqpin", -1, -- 1.8.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 12/14] ARM: shmobile: r8a7778: split r8a7778_init_irq_extpin() for DT @ 2013-10-09 6:49 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-10-09 6:49 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> r8a7778 INTC needs IRL pin mode settings to determine behavior of IRQ0 - IRQ3, and r8a7778_init_irq_extpin() is controlling it via irlm parameter. But this function registers renesas_intc_irqpin driver if irlm was set, and this value depends on platform. This is not good for DT. This patch splits r8a7778_init_irq_extpin() function into "mode settings" and "funtion register" parts. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/include/mach/r8a7778.h | 1 + arch/arm/mach-shmobile/setup-r8a7778.c | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-shmobile/include/mach/r8a7778.h b/arch/arm/mach-shmobile/include/mach/r8a7778.h index 1d6fe97..dbe221a 100644 --- a/arch/arm/mach-shmobile/include/mach/r8a7778.h +++ b/arch/arm/mach-shmobile/include/mach/r8a7778.h @@ -41,6 +41,7 @@ extern void r8a7778_init_delay(void); extern void r8a7778_init_irq_dt(void); extern void r8a7778_clock_init(void); extern void r8a7778_init_irq_extpin(int irlm); +extern void r8a7778_init_irq_extpin_dt(int irlm); extern void r8a7778_pinmux_init(void); extern int r8a7778_usb_phy_power(bool enable); diff --git a/arch/arm/mach-shmobile/setup-r8a7778.c b/arch/arm/mach-shmobile/setup-r8a7778.c index fa1b7e4..16d49aa 100644 --- a/arch/arm/mach-shmobile/setup-r8a7778.c +++ b/arch/arm/mach-shmobile/setup-r8a7778.c @@ -476,7 +476,7 @@ static struct resource irqpin_resources[] __initdata = { DEFINE_RES_IRQ(gic_iid(0x3e)), /* IRQ3 */ }; -void __init r8a7778_init_irq_extpin(int irlm) +void __init r8a7778_init_irq_extpin_dt(int irlm) { void __iomem *icr0 = ioremap_nocache(0xfe780000, PAGE_SIZE); unsigned long tmp; @@ -494,7 +494,11 @@ void __init r8a7778_init_irq_extpin(int irlm) tmp |= (1 << 21); /* LVLMODE = 1 */ iowrite32(tmp, icr0); iounmap(icr0); +} +void __init r8a7778_init_irq_extpin(int irlm) +{ + r8a7778_init_irq_extpin_dt(irlm); if (irlm) platform_device_register_resndata( &platform_bus, "renesas_intc_irqpin", -1, -- 1.8.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 13/14] ARM: shmobile: r8a7779: split r8a7779_init_irq_extpin() for DT 2013-10-09 6:49 ` Simon Horman @ 2013-10-09 6:49 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-10-09 6:49 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> r8a7779 INTC needs IRL pin mode settings to determine behavior of IRQ0 - IRQ3, and r8a7779_init_irq_extpin() is controlling it via irlm parameter. But this function registers renesas_intc_irqpin driver if irlm was set, and this value depends on platform. This is not good for DT. This patch splits r8a7779_init_irq_extpin() function into "mode settings" and "funtion register" parts Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/include/mach/r8a7779.h | 1 + arch/arm/mach-shmobile/setup-r8a7779.c | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-shmobile/include/mach/r8a7779.h b/arch/arm/mach-shmobile/include/mach/r8a7779.h index 31e87b9..17af34e 100644 --- a/arch/arm/mach-shmobile/include/mach/r8a7779.h +++ b/arch/arm/mach-shmobile/include/mach/r8a7779.h @@ -33,6 +33,7 @@ static inline struct r8a7779_pm_ch *to_r8a7779_ch(struct generic_pm_domain *d) extern void r8a7779_init_delay(void); extern void r8a7779_init_irq_extpin(int irlm); +extern void r8a7779_init_irq_extpin_dt(int irlm); extern void r8a7779_init_irq_dt(void); extern void r8a7779_map_io(void); extern void r8a7779_earlytimer_init(void); diff --git a/arch/arm/mach-shmobile/setup-r8a7779.c b/arch/arm/mach-shmobile/setup-r8a7779.c index eacb2f7..13049e9 100644 --- a/arch/arm/mach-shmobile/setup-r8a7779.c +++ b/arch/arm/mach-shmobile/setup-r8a7779.c @@ -98,7 +98,7 @@ static struct resource irqpin0_resources[] __initdata = { DEFINE_RES_IRQ(gic_spi(30)), /* IRQ3 */ }; -void __init r8a7779_init_irq_extpin(int irlm) +void __init r8a7779_init_irq_extpin_dt(int irlm) { void __iomem *icr0 = ioremap_nocache(0xfe780000, PAGE_SIZE); u32 tmp; @@ -116,7 +116,11 @@ void __init r8a7779_init_irq_extpin(int irlm) tmp |= (1 << 21); /* LVLMODE = 1 */ iowrite32(tmp, icr0); iounmap(icr0); +} +void __init r8a7779_init_irq_extpin(int irlm) +{ + r8a7779_init_irq_extpin_dt(irlm); if (irlm) platform_device_register_resndata( &platform_bus, "renesas_intc_irqpin", -1, -- 1.8.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 13/14] ARM: shmobile: r8a7779: split r8a7779_init_irq_extpin() for DT @ 2013-10-09 6:49 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-10-09 6:49 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> r8a7779 INTC needs IRL pin mode settings to determine behavior of IRQ0 - IRQ3, and r8a7779_init_irq_extpin() is controlling it via irlm parameter. But this function registers renesas_intc_irqpin driver if irlm was set, and this value depends on platform. This is not good for DT. This patch splits r8a7779_init_irq_extpin() function into "mode settings" and "funtion register" parts Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/include/mach/r8a7779.h | 1 + arch/arm/mach-shmobile/setup-r8a7779.c | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-shmobile/include/mach/r8a7779.h b/arch/arm/mach-shmobile/include/mach/r8a7779.h index 31e87b9..17af34e 100644 --- a/arch/arm/mach-shmobile/include/mach/r8a7779.h +++ b/arch/arm/mach-shmobile/include/mach/r8a7779.h @@ -33,6 +33,7 @@ static inline struct r8a7779_pm_ch *to_r8a7779_ch(struct generic_pm_domain *d) extern void r8a7779_init_delay(void); extern void r8a7779_init_irq_extpin(int irlm); +extern void r8a7779_init_irq_extpin_dt(int irlm); extern void r8a7779_init_irq_dt(void); extern void r8a7779_map_io(void); extern void r8a7779_earlytimer_init(void); diff --git a/arch/arm/mach-shmobile/setup-r8a7779.c b/arch/arm/mach-shmobile/setup-r8a7779.c index eacb2f7..13049e9 100644 --- a/arch/arm/mach-shmobile/setup-r8a7779.c +++ b/arch/arm/mach-shmobile/setup-r8a7779.c @@ -98,7 +98,7 @@ static struct resource irqpin0_resources[] __initdata = { DEFINE_RES_IRQ(gic_spi(30)), /* IRQ3 */ }; -void __init r8a7779_init_irq_extpin(int irlm) +void __init r8a7779_init_irq_extpin_dt(int irlm) { void __iomem *icr0 = ioremap_nocache(0xfe780000, PAGE_SIZE); u32 tmp; @@ -116,7 +116,11 @@ void __init r8a7779_init_irq_extpin(int irlm) tmp |= (1 << 21); /* LVLMODE = 1 */ iowrite32(tmp, icr0); iounmap(icr0); +} +void __init r8a7779_init_irq_extpin(int irlm) +{ + r8a7779_init_irq_extpin_dt(irlm); if (irlm) platform_device_register_resndata( &platform_bus, "renesas_intc_irqpin", -1, -- 1.8.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 14/14] ARM: shmobile: r8a7791 SMP support 2013-10-09 6:49 ` Simon Horman @ 2013-10-09 6:49 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-10-09 6:49 UTC (permalink / raw) To: linux-arm-kernel From: Magnus Damm <damm@opensource.se> Tie in the APMU SMP code on r8a7791. When used together with the secondary CPU device node and smp_ops in the board specific code then this will allow use of the two Cortex-A15 cores in the r8a7791 SoC. Signed-off-by: Magnus Damm <damm@opensource.se> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/Makefile | 1 + arch/arm/mach-shmobile/include/mach/r8a7791.h | 1 + arch/arm/mach-shmobile/setup-r8a7791.c | 1 + arch/arm/mach-shmobile/smp-r8a7791.c | 62 +++++++++++++++++++++++++++ 4 files changed, 65 insertions(+) create mode 100644 arch/arm/mach-shmobile/smp-r8a7791.c diff --git a/arch/arm/mach-shmobile/Makefile b/arch/arm/mach-shmobile/Makefile index 95e48d1..f2d40ed 100644 --- a/arch/arm/mach-shmobile/Makefile +++ b/arch/arm/mach-shmobile/Makefile @@ -40,6 +40,7 @@ smp-y := platsmp.o headsmp.o smp-$(CONFIG_ARCH_SH73A0) += smp-sh73a0.o headsmp-scu.o platsmp-scu.o smp-$(CONFIG_ARCH_R8A7779) += smp-r8a7779.o headsmp-scu.o platsmp-scu.o smp-$(CONFIG_ARCH_R8A7790) += smp-r8a7790.o platsmp-apmu.o +smp-$(CONFIG_ARCH_R8A7791) += smp-r8a7791.o platsmp-apmu.o smp-$(CONFIG_ARCH_EMEV2) += smp-emev2.o headsmp-scu.o platsmp-scu.o # IRQ objects diff --git a/arch/arm/mach-shmobile/include/mach/r8a7791.h b/arch/arm/mach-shmobile/include/mach/r8a7791.h index 2a86a53..051ead3 100644 --- a/arch/arm/mach-shmobile/include/mach/r8a7791.h +++ b/arch/arm/mach-shmobile/include/mach/r8a7791.h @@ -5,5 +5,6 @@ void r8a7791_add_standard_devices(void); void r8a7791_add_dt_devices(void); void r8a7791_clock_init(void); void r8a7791_init_early(void); +extern struct smp_operations r8a7791_smp_ops; #endif /* __ASM_R8A7791_H__ */ diff --git a/arch/arm/mach-shmobile/setup-r8a7791.c b/arch/arm/mach-shmobile/setup-r8a7791.c index cb3859b..d9393d6 100644 --- a/arch/arm/mach-shmobile/setup-r8a7791.c +++ b/arch/arm/mach-shmobile/setup-r8a7791.c @@ -176,6 +176,7 @@ static const char *r8a7791_boards_compat_dt[] __initdata = { }; DT_MACHINE_START(R8A7791_DT, "Generic R8A7791 (Flattened Device Tree)") + .smp = smp_ops(r8a7791_smp_ops), .init_early = r8a7791_init_early, .init_time = rcar_gen2_timer_init, .dt_compat = r8a7791_boards_compat_dt, diff --git a/arch/arm/mach-shmobile/smp-r8a7791.c b/arch/arm/mach-shmobile/smp-r8a7791.c new file mode 100644 index 0000000..2df5bd1 --- /dev/null +++ b/arch/arm/mach-shmobile/smp-r8a7791.c @@ -0,0 +1,62 @@ +/* + * SMP support for r8a7791 + * + * Copyright (C) 2013 Renesas Solutions Corp. + * Copyright (C) 2013 Magnus Damm + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ +#include <linux/kernel.h> +#include <linux/init.h> +#include <linux/smp.h> +#include <linux/io.h> +#include <asm/smp_plat.h> +#include <mach/common.h> +#include <mach/r8a7791.h> + +#define RST 0xe6160000 +#define CA15BAR 0x0020 +#define CA15RESCNT 0x0040 +#define RAM 0xe6300000 + +static void __init r8a7791_smp_prepare_cpus(unsigned int max_cpus) +{ + void __iomem *p; + u32 bar; + + /* let APMU code install data related to shmobile_boot_vector */ + shmobile_smp_apmu_prepare_cpus(max_cpus); + + /* RAM for jump stub, because BAR requires 256KB aligned address */ + p = ioremap_nocache(RAM, shmobile_boot_size); + memcpy_toio(p, shmobile_boot_vector, shmobile_boot_size); + iounmap(p); + + /* setup reset vectors */ + p = ioremap_nocache(RST, 0x63); + bar = (RAM >> 8) & 0xfffffc00; + writel_relaxed(bar, p + CA15BAR); + writel_relaxed(bar | 0x10, p + CA15BAR); + + /* enable clocks to all CPUs */ + writel_relaxed((readl_relaxed(p + CA15RESCNT) & ~0x0f) | 0xa5a50000, + p + CA15RESCNT); + iounmap(p); +} + +struct smp_operations r8a7791_smp_ops __initdata = { + .smp_prepare_cpus = r8a7791_smp_prepare_cpus, + .smp_boot_secondary = shmobile_smp_apmu_boot_secondary, +#ifdef CONFIG_HOTPLUG_CPU + .cpu_disable = shmobile_smp_cpu_disable, + .cpu_die = shmobile_smp_apmu_cpu_die, + .cpu_kill = shmobile_smp_apmu_cpu_kill, +#endif +}; -- 1.8.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 14/14] ARM: shmobile: r8a7791 SMP support @ 2013-10-09 6:49 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-10-09 6:49 UTC (permalink / raw) To: linux-arm-kernel From: Magnus Damm <damm@opensource.se> Tie in the APMU SMP code on r8a7791. When used together with the secondary CPU device node and smp_ops in the board specific code then this will allow use of the two Cortex-A15 cores in the r8a7791 SoC. Signed-off-by: Magnus Damm <damm@opensource.se> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/Makefile | 1 + arch/arm/mach-shmobile/include/mach/r8a7791.h | 1 + arch/arm/mach-shmobile/setup-r8a7791.c | 1 + arch/arm/mach-shmobile/smp-r8a7791.c | 62 +++++++++++++++++++++++++++ 4 files changed, 65 insertions(+) create mode 100644 arch/arm/mach-shmobile/smp-r8a7791.c diff --git a/arch/arm/mach-shmobile/Makefile b/arch/arm/mach-shmobile/Makefile index 95e48d1..f2d40ed 100644 --- a/arch/arm/mach-shmobile/Makefile +++ b/arch/arm/mach-shmobile/Makefile @@ -40,6 +40,7 @@ smp-y := platsmp.o headsmp.o smp-$(CONFIG_ARCH_SH73A0) += smp-sh73a0.o headsmp-scu.o platsmp-scu.o smp-$(CONFIG_ARCH_R8A7779) += smp-r8a7779.o headsmp-scu.o platsmp-scu.o smp-$(CONFIG_ARCH_R8A7790) += smp-r8a7790.o platsmp-apmu.o +smp-$(CONFIG_ARCH_R8A7791) += smp-r8a7791.o platsmp-apmu.o smp-$(CONFIG_ARCH_EMEV2) += smp-emev2.o headsmp-scu.o platsmp-scu.o # IRQ objects diff --git a/arch/arm/mach-shmobile/include/mach/r8a7791.h b/arch/arm/mach-shmobile/include/mach/r8a7791.h index 2a86a53..051ead3 100644 --- a/arch/arm/mach-shmobile/include/mach/r8a7791.h +++ b/arch/arm/mach-shmobile/include/mach/r8a7791.h @@ -5,5 +5,6 @@ void r8a7791_add_standard_devices(void); void r8a7791_add_dt_devices(void); void r8a7791_clock_init(void); void r8a7791_init_early(void); +extern struct smp_operations r8a7791_smp_ops; #endif /* __ASM_R8A7791_H__ */ diff --git a/arch/arm/mach-shmobile/setup-r8a7791.c b/arch/arm/mach-shmobile/setup-r8a7791.c index cb3859b..d9393d6 100644 --- a/arch/arm/mach-shmobile/setup-r8a7791.c +++ b/arch/arm/mach-shmobile/setup-r8a7791.c @@ -176,6 +176,7 @@ static const char *r8a7791_boards_compat_dt[] __initdata = { }; DT_MACHINE_START(R8A7791_DT, "Generic R8A7791 (Flattened Device Tree)") + .smp = smp_ops(r8a7791_smp_ops), .init_early = r8a7791_init_early, .init_time = rcar_gen2_timer_init, .dt_compat = r8a7791_boards_compat_dt, diff --git a/arch/arm/mach-shmobile/smp-r8a7791.c b/arch/arm/mach-shmobile/smp-r8a7791.c new file mode 100644 index 0000000..2df5bd1 --- /dev/null +++ b/arch/arm/mach-shmobile/smp-r8a7791.c @@ -0,0 +1,62 @@ +/* + * SMP support for r8a7791 + * + * Copyright (C) 2013 Renesas Solutions Corp. + * Copyright (C) 2013 Magnus Damm + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ +#include <linux/kernel.h> +#include <linux/init.h> +#include <linux/smp.h> +#include <linux/io.h> +#include <asm/smp_plat.h> +#include <mach/common.h> +#include <mach/r8a7791.h> + +#define RST 0xe6160000 +#define CA15BAR 0x0020 +#define CA15RESCNT 0x0040 +#define RAM 0xe6300000 + +static void __init r8a7791_smp_prepare_cpus(unsigned int max_cpus) +{ + void __iomem *p; + u32 bar; + + /* let APMU code install data related to shmobile_boot_vector */ + shmobile_smp_apmu_prepare_cpus(max_cpus); + + /* RAM for jump stub, because BAR requires 256KB aligned address */ + p = ioremap_nocache(RAM, shmobile_boot_size); + memcpy_toio(p, shmobile_boot_vector, shmobile_boot_size); + iounmap(p); + + /* setup reset vectors */ + p = ioremap_nocache(RST, 0x63); + bar = (RAM >> 8) & 0xfffffc00; + writel_relaxed(bar, p + CA15BAR); + writel_relaxed(bar | 0x10, p + CA15BAR); + + /* enable clocks to all CPUs */ + writel_relaxed((readl_relaxed(p + CA15RESCNT) & ~0x0f) | 0xa5a50000, + p + CA15RESCNT); + iounmap(p); +} + +struct smp_operations r8a7791_smp_ops __initdata = { + .smp_prepare_cpus = r8a7791_smp_prepare_cpus, + .smp_boot_secondary = shmobile_smp_apmu_boot_secondary, +#ifdef CONFIG_HOTPLUG_CPU + .cpu_disable = shmobile_smp_cpu_disable, + .cpu_die = shmobile_smp_apmu_cpu_die, + .cpu_kill = shmobile_smp_apmu_cpu_kill, +#endif +}; -- 1.8.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* Re: [GIT PULL] Second round of Renesas ARM based SoC updates for v3.13 2013-10-09 6:49 ` Simon Horman @ 2013-10-10 23:04 ` Kevin Hilman -1 siblings, 0 replies; 776+ messages in thread From: Kevin Hilman @ 2013-10-10 23:04 UTC (permalink / raw) To: linux-arm-kernel Simon Horman <horms+renesas@verge.net.au> writes: > Hi Olof, Kevin and Arnd, > > please consider this second round of Renesas ARM based SoC updates for v3.13. > > This pull-request is based on a merge of the following, each of which > you have already pulled. The reason for the merge is to eliminate conflicts. > * renesas-soc-for-v3.13 > * renesas-smp-for-v3.13 > * renesas-fixes4-for-v3.13 > > The following changes since commit 243b6db0588b1425cb020e764475e8e1c4eb40d9: > > Merge tag 'renesas-fixes4-for-v3.12' into soc2-base (2013-10-08 09:44:08 +0900) > > are available in the git repository at: > > > git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-soc2-for-v3.13 > > for you to fetch changes up to 687c27b07050c21a62c4c975777c89e698649a6b: > > ARM: shmobile: r8a7791 SMP support (2013-10-08 09:53:02 +0900) > > ---------------------------------------------------------------- > Second Round of Renesas ARM based SoC updates for v3.13 > > * SMP support for r8a7791 SoC > * r8a7779_init_irq_extpin() for DT for r8a7779 and r8a7778 SoCs > * Add HPB-DMAC to r8a7779 and r8a7778 SoCs > * Add r7s72100 SoC > * Make use of ARCH timer workaround on r8a7791 SoC > * Add IRQC platform device support to r8a7791 SoC > * Add I2C clocks and aliases for the DT mode for r8a7790 SoC > * Add MAC platform device to r8a73a4 SoC Pulled into next/soc, Thanks, Kevin ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second round of Renesas ARM based SoC updates for v3.13 @ 2013-10-10 23:04 ` Kevin Hilman 0 siblings, 0 replies; 776+ messages in thread From: Kevin Hilman @ 2013-10-10 23:04 UTC (permalink / raw) To: linux-arm-kernel Simon Horman <horms+renesas@verge.net.au> writes: > Hi Olof, Kevin and Arnd, > > please consider this second round of Renesas ARM based SoC updates for v3.13. > > This pull-request is based on a merge of the following, each of which > you have already pulled. The reason for the merge is to eliminate conflicts. > * renesas-soc-for-v3.13 > * renesas-smp-for-v3.13 > * renesas-fixes4-for-v3.13 > > The following changes since commit 243b6db0588b1425cb020e764475e8e1c4eb40d9: > > Merge tag 'renesas-fixes4-for-v3.12' into soc2-base (2013-10-08 09:44:08 +0900) > > are available in the git repository at: > > > git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-soc2-for-v3.13 > > for you to fetch changes up to 687c27b07050c21a62c4c975777c89e698649a6b: > > ARM: shmobile: r8a7791 SMP support (2013-10-08 09:53:02 +0900) > > ---------------------------------------------------------------- > Second Round of Renesas ARM based SoC updates for v3.13 > > * SMP support for r8a7791 SoC > * r8a7779_init_irq_extpin() for DT for r8a7779 and r8a7778 SoCs > * Add HPB-DMAC to r8a7779 and r8a7778 SoCs > * Add r7s72100 SoC > * Make use of ARCH timer workaround on r8a7791 SoC > * Add IRQC platform device support to r8a7791 SoC > * Add I2C clocks and aliases for the DT mode for r8a7790 SoC > * Add MAC platform device to r8a73a4 SoC Pulled into next/soc, Thanks, Kevin ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM based SoC board updates for v3.13 @ 2013-10-09 6:50 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-10-09 6:50 UTC (permalink / raw) To: linux-arm-kernel Hi Kevin, Olof and Arnd, please consider this second round of Renesas ARM based SoC board updates for v3.13. This pull request is based on a merge of renesas-soc2-for-v3.13 into renesas-boards-for-v3.13. You have already pulled renesas-boards-for-v3.13 and I am sending a pull request for renesas-soc2-for-v3.13 today. The reason for this merge is to supply SoC code that is needed by board code in this series. In particular the r7s72100 SoC code for the Genmai board. The following changes since commit 661a7335c4e47726df1e7264580209847509569a: Merge branch 'heads/soc2' into boards2-base (2013-10-08 10:01:47 +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.13 for you to fetch changes up to 7d4bde88e1135c4a3106b79650d3b85335f35717: ARM: shmobile: marzen: enable INTC IRQ (2013-10-08 10:02:22 +0900) ---------------------------------------------------------------- Second Round of Renesas ARM based SoC board updates for v3.13 * Enable INTC IRQ on marzen board * Enable SMSC ethernet on reference board code for bockw * Enable DMA for SDHI0 on marzen and bockw boards * Enable DMA for MMCIF on ape6evm board * Enable SMP and arch timers on Koelsh board * Rework kzm9d make reference board code multiplatform * Use a common DTB for kzm9d reference and non-reference * Add Genmai board ---------------------------------------------------------------- Guennadi Liakhovetski (1): ARM: shmobile: ape6evm: add DMA support to MMCIF Kuninori Morimoto (2): ARM: shmobile: bockw: add SMSC support on reference ARM: shmobile: marzen: enable INTC IRQ Magnus Damm (9): ARM: shmobile: Genmai support ARM: shmobile: Use r8a7791_add_standard_devices() on Koelsch ARM: shmobile: Use arch timer on Koelsch ARM: shmobile: Sync KZM9D DTS with KZM9D reference DTS ARM: shmobile: Use KZM9D without reference for multiplatform ARM: shmobile: Remove non-multiplatform KZM9D reference support ARM: shmobile: Let KZM9D multiplatform boot with KZM9D DTB ARM: shmobile: Remove KZM9D reference DTS ARM: shmobile: Use SMP on Koelsch Max Filippov (2): ARM: shmobile: bockw: enable DMA for SDHI0 ARM: shmobile: marzen: enable DMA for SDHI0 arch/arm/boot/dts/Makefile | 4 +- arch/arm/boot/dts/emev2-kzm9d-reference.dts | 57 ------------------------- arch/arm/boot/dts/emev2-kzm9d.dts | 33 +++++++++++++- arch/arm/boot/dts/r7s72100-genmai.dts | 31 ++++++++++++++ arch/arm/mach-shmobile/Kconfig | 27 +++--------- arch/arm/mach-shmobile/Makefile | 6 ++- arch/arm/mach-shmobile/Makefile.boot | 2 +- arch/arm/mach-shmobile/board-ape6evm.c | 2 + arch/arm/mach-shmobile/board-bockw-reference.c | 20 +++++++++ arch/arm/mach-shmobile/board-bockw.c | 2 + arch/arm/mach-shmobile/board-genmai.c | 43 +++++++++++++++++++ arch/arm/mach-shmobile/board-koelsch.c | 5 ++- arch/arm/mach-shmobile/board-kzm9d-reference.c | 1 + arch/arm/mach-shmobile/board-marzen-reference.c | 1 + arch/arm/mach-shmobile/board-marzen.c | 2 + 15 files changed, 153 insertions(+), 83 deletions(-) delete mode 100644 arch/arm/boot/dts/emev2-kzm9d-reference.dts create mode 100644 arch/arm/boot/dts/r7s72100-genmai.dts create mode 100644 arch/arm/mach-shmobile/board-genmai.c ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM based SoC board updates for v3.13 @ 2013-10-09 6:50 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-10-09 6:50 UTC (permalink / raw) To: linux-arm-kernel Hi Kevin, Olof and Arnd, please consider this second round of Renesas ARM based SoC board updates for v3.13. This pull request is based on a merge of renesas-soc2-for-v3.13 into renesas-boards-for-v3.13. You have already pulled renesas-boards-for-v3.13 and I am sending a pull request for renesas-soc2-for-v3.13 today. The reason for this merge is to supply SoC code that is needed by board code in this series. In particular the r7s72100 SoC code for the Genmai board. The following changes since commit 661a7335c4e47726df1e7264580209847509569a: Merge branch 'heads/soc2' into boards2-base (2013-10-08 10:01:47 +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.13 for you to fetch changes up to 7d4bde88e1135c4a3106b79650d3b85335f35717: ARM: shmobile: marzen: enable INTC IRQ (2013-10-08 10:02:22 +0900) ---------------------------------------------------------------- Second Round of Renesas ARM based SoC board updates for v3.13 * Enable INTC IRQ on marzen board * Enable SMSC ethernet on reference board code for bockw * Enable DMA for SDHI0 on marzen and bockw boards * Enable DMA for MMCIF on ape6evm board * Enable SMP and arch timers on Koelsh board * Rework kzm9d make reference board code multiplatform * Use a common DTB for kzm9d reference and non-reference * Add Genmai board ---------------------------------------------------------------- Guennadi Liakhovetski (1): ARM: shmobile: ape6evm: add DMA support to MMCIF Kuninori Morimoto (2): ARM: shmobile: bockw: add SMSC support on reference ARM: shmobile: marzen: enable INTC IRQ Magnus Damm (9): ARM: shmobile: Genmai support ARM: shmobile: Use r8a7791_add_standard_devices() on Koelsch ARM: shmobile: Use arch timer on Koelsch ARM: shmobile: Sync KZM9D DTS with KZM9D reference DTS ARM: shmobile: Use KZM9D without reference for multiplatform ARM: shmobile: Remove non-multiplatform KZM9D reference support ARM: shmobile: Let KZM9D multiplatform boot with KZM9D DTB ARM: shmobile: Remove KZM9D reference DTS ARM: shmobile: Use SMP on Koelsch Max Filippov (2): ARM: shmobile: bockw: enable DMA for SDHI0 ARM: shmobile: marzen: enable DMA for SDHI0 arch/arm/boot/dts/Makefile | 4 +- arch/arm/boot/dts/emev2-kzm9d-reference.dts | 57 ------------------------- arch/arm/boot/dts/emev2-kzm9d.dts | 33 +++++++++++++- arch/arm/boot/dts/r7s72100-genmai.dts | 31 ++++++++++++++ arch/arm/mach-shmobile/Kconfig | 27 +++--------- arch/arm/mach-shmobile/Makefile | 6 ++- arch/arm/mach-shmobile/Makefile.boot | 2 +- arch/arm/mach-shmobile/board-ape6evm.c | 2 + arch/arm/mach-shmobile/board-bockw-reference.c | 20 +++++++++ arch/arm/mach-shmobile/board-bockw.c | 2 + arch/arm/mach-shmobile/board-genmai.c | 43 +++++++++++++++++++ arch/arm/mach-shmobile/board-koelsch.c | 5 ++- arch/arm/mach-shmobile/board-kzm9d-reference.c | 1 + arch/arm/mach-shmobile/board-marzen-reference.c | 1 + arch/arm/mach-shmobile/board-marzen.c | 2 + 15 files changed, 153 insertions(+), 83 deletions(-) delete mode 100644 arch/arm/boot/dts/emev2-kzm9d-reference.dts create mode 100644 arch/arm/boot/dts/r7s72100-genmai.dts create mode 100644 arch/arm/mach-shmobile/board-genmai.c ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH 01/14] ARM: shmobile: ape6evm: add DMA support to MMCIF 2013-10-09 6:50 ` Simon Horman @ 2013-10-09 6:50 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-10-09 6:50 UTC (permalink / raw) To: linux-arm-kernel From: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Add DMA support for MMCIF on APE6EVM, using the shdma dmaengine driver. Signed-off-by: Guennadi Liakhovetski <g.liakhovetski+renesas@gmail.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/board-ape6evm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-shmobile/board-ape6evm.c b/arch/arm/mach-shmobile/board-ape6evm.c index 7627385..2de4b09 100644 --- a/arch/arm/mach-shmobile/board-ape6evm.c +++ b/arch/arm/mach-shmobile/board-ape6evm.c @@ -162,6 +162,8 @@ static struct regulator_consumer_supply vcc_sdhi1_consumers[] /* MMCIF */ static const struct sh_mmcif_plat_data mmcif0_pdata __initconst = { .caps = MMC_CAP_8_BIT_DATA | MMC_CAP_NONREMOVABLE, + .slave_id_tx = SHDMA_SLAVE_MMCIF0_TX, + .slave_id_rx = SHDMA_SLAVE_MMCIF0_RX, .ccs_unsupported = true, }; -- 1.8.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 01/14] ARM: shmobile: ape6evm: add DMA support to MMCIF @ 2013-10-09 6:50 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-10-09 6:50 UTC (permalink / raw) To: linux-arm-kernel From: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Add DMA support for MMCIF on APE6EVM, using the shdma dmaengine driver. Signed-off-by: Guennadi Liakhovetski <g.liakhovetski+renesas@gmail.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/board-ape6evm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-shmobile/board-ape6evm.c b/arch/arm/mach-shmobile/board-ape6evm.c index 7627385..2de4b09 100644 --- a/arch/arm/mach-shmobile/board-ape6evm.c +++ b/arch/arm/mach-shmobile/board-ape6evm.c @@ -162,6 +162,8 @@ static struct regulator_consumer_supply vcc_sdhi1_consumers[] = /* MMCIF */ static const struct sh_mmcif_plat_data mmcif0_pdata __initconst = { .caps = MMC_CAP_8_BIT_DATA | MMC_CAP_NONREMOVABLE, + .slave_id_tx = SHDMA_SLAVE_MMCIF0_TX, + .slave_id_rx = SHDMA_SLAVE_MMCIF0_RX, .ccs_unsupported = true, }; -- 1.8.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 02/14] ARM: shmobile: bockw: enable DMA for SDHI0 2013-10-09 6:50 ` Simon Horman @ 2013-10-09 6:50 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-10-09 6:50 UTC (permalink / raw) To: linux-arm-kernel From: Max Filippov <max.filippov@cogentembedded.com> Pass HPB-DMA slave IDs in the SDHI0 platform data to enable DMA in the SDHI driver. Signed-off-by: Max Filippov <max.filippov@cogentembedded.com> [Sergei: removed #include <mach/dma.h>] 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, 2 insertions(+) diff --git a/arch/arm/mach-shmobile/board-bockw.c b/arch/arm/mach-shmobile/board-bockw.c index 330e84c..421cf1c 100644 --- a/arch/arm/mach-shmobile/board-bockw.c +++ b/arch/arm/mach-shmobile/board-bockw.c @@ -196,6 +196,8 @@ static struct rcar_phy_platform_data usb_phy_platform_data __initdata /* SDHI */ static struct sh_mobile_sdhi_info sdhi0_info __initdata = { + .dma_slave_tx = HPBDMA_SLAVE_SDHI0_TX, + .dma_slave_rx = HPBDMA_SLAVE_SDHI0_RX, .tmio_caps = MMC_CAP_SD_HIGHSPEED, .tmio_ocr_mask = MMC_VDD_165_195 | MMC_VDD_32_33 | MMC_VDD_33_34, .tmio_flags = TMIO_MMC_HAS_IDLE_WAIT, -- 1.8.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 02/14] ARM: shmobile: bockw: enable DMA for SDHI0 @ 2013-10-09 6:50 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-10-09 6:50 UTC (permalink / raw) To: linux-arm-kernel From: Max Filippov <max.filippov@cogentembedded.com> Pass HPB-DMA slave IDs in the SDHI0 platform data to enable DMA in the SDHI driver. Signed-off-by: Max Filippov <max.filippov@cogentembedded.com> [Sergei: removed #include <mach/dma.h>] 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, 2 insertions(+) diff --git a/arch/arm/mach-shmobile/board-bockw.c b/arch/arm/mach-shmobile/board-bockw.c index 330e84c..421cf1c 100644 --- a/arch/arm/mach-shmobile/board-bockw.c +++ b/arch/arm/mach-shmobile/board-bockw.c @@ -196,6 +196,8 @@ static struct rcar_phy_platform_data usb_phy_platform_data __initdata = /* SDHI */ static struct sh_mobile_sdhi_info sdhi0_info __initdata = { + .dma_slave_tx = HPBDMA_SLAVE_SDHI0_TX, + .dma_slave_rx = HPBDMA_SLAVE_SDHI0_RX, .tmio_caps = MMC_CAP_SD_HIGHSPEED, .tmio_ocr_mask = MMC_VDD_165_195 | MMC_VDD_32_33 | MMC_VDD_33_34, .tmio_flags = TMIO_MMC_HAS_IDLE_WAIT, -- 1.8.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 03/14] ARM: shmobile: marzen: enable DMA for SDHI0 2013-10-09 6:50 ` Simon Horman @ 2013-10-09 6:50 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-10-09 6:50 UTC (permalink / raw) To: linux-arm-kernel From: Max Filippov <max.filippov@cogentembedded.com> Pass HPB-DMA slave IDs in the SDHI0 platform data to enable DMA in the SDHI driver. Signed-off-by: Max Filippov <max.filippov@cogentembedded.com> [Sergei: removed #include <mach/dma.h>] Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/board-marzen.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-shmobile/board-marzen.c b/arch/arm/mach-shmobile/board-marzen.c index 434b213..da1352f 100644 --- a/arch/arm/mach-shmobile/board-marzen.c +++ b/arch/arm/mach-shmobile/board-marzen.c @@ -125,6 +125,8 @@ static struct resource sdhi0_resources[] = { }; static struct sh_mobile_sdhi_info sdhi0_platform_data = { + .dma_slave_tx = HPBDMA_SLAVE_SDHI0_TX, + .dma_slave_rx = HPBDMA_SLAVE_SDHI0_RX, .tmio_flags = TMIO_MMC_WRPROTECT_DISABLE | TMIO_MMC_HAS_IDLE_WAIT, .tmio_caps = MMC_CAP_SD_HIGHSPEED, }; -- 1.8.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 03/14] ARM: shmobile: marzen: enable DMA for SDHI0 @ 2013-10-09 6:50 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-10-09 6:50 UTC (permalink / raw) To: linux-arm-kernel From: Max Filippov <max.filippov@cogentembedded.com> Pass HPB-DMA slave IDs in the SDHI0 platform data to enable DMA in the SDHI driver. Signed-off-by: Max Filippov <max.filippov@cogentembedded.com> [Sergei: removed #include <mach/dma.h>] Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/board-marzen.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-shmobile/board-marzen.c b/arch/arm/mach-shmobile/board-marzen.c index 434b213..da1352f 100644 --- a/arch/arm/mach-shmobile/board-marzen.c +++ b/arch/arm/mach-shmobile/board-marzen.c @@ -125,6 +125,8 @@ static struct resource sdhi0_resources[] = { }; static struct sh_mobile_sdhi_info sdhi0_platform_data = { + .dma_slave_tx = HPBDMA_SLAVE_SDHI0_TX, + .dma_slave_rx = HPBDMA_SLAVE_SDHI0_RX, .tmio_flags = TMIO_MMC_WRPROTECT_DISABLE | TMIO_MMC_HAS_IDLE_WAIT, .tmio_caps = MMC_CAP_SD_HIGHSPEED, }; -- 1.8.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 04/14] ARM: shmobile: Genmai support 2013-10-09 6:50 ` Simon Horman @ 2013-10-09 6:50 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-10-09 6:50 UTC (permalink / raw) To: linux-arm-kernel From: Magnus Damm <damm@opensource.se> Genmai base board support making use of 128 MiB of memory, the r7s7211 SoC with the SCIF2 serial port and CA9 core. Signed-off-by: Magnus Damm <damm@opensource.se> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/r7s72100-genmai.dts | 31 +++++++++++++++++++++++++ arch/arm/mach-shmobile/Kconfig | 5 ++++ arch/arm/mach-shmobile/Makefile | 1 + arch/arm/mach-shmobile/Makefile.boot | 1 + arch/arm/mach-shmobile/board-genmai.c | 43 +++++++++++++++++++++++++++++++++++ 6 files changed, 82 insertions(+) create mode 100644 arch/arm/boot/dts/r7s72100-genmai.dts create mode 100644 arch/arm/mach-shmobile/board-genmai.c diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 3b1c462..295824d 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -196,6 +196,7 @@ dtb-$(CONFIG_ARCH_U8500) += ste-snowball.dtb \ dtb-$(CONFIG_ARCH_S3C24XX) += s3c2416-smdk2416.dtb dtb-$(CONFIG_ARCH_SHMOBILE) += emev2-kzm9d.dtb \ emev2-kzm9d-reference.dtb \ + r7s72100-genmai.dtb \ r8a7740-armadillo800eva.dtb \ r8a7778-bockw.dtb \ r8a7778-bockw-reference.dtb \ diff --git a/arch/arm/boot/dts/r7s72100-genmai.dts b/arch/arm/boot/dts/r7s72100-genmai.dts new file mode 100644 index 0000000..1fb20f2 --- /dev/null +++ b/arch/arm/boot/dts/r7s72100-genmai.dts @@ -0,0 +1,31 @@ +/* + * Device Tree Source for the Genmai board + * + * Copyright (C) 2013 Renesas Solutions Corp. + * + * This file is licensed under the terms of the GNU General Public License + * version 2. This program is licensed "as is" without any warranty of any + * kind, whether express or implied. + */ + +/dts-v1/; +/include/ "r7s72100.dtsi" + +/ { + model = "Genmai"; + compatible = "renesas,genmai", "renesas,r7s72100"; + + chosen { + bootargs = "console=ttySC2,115200 ignore_loglevel rw root=/dev/nfs ip=dhcp"; + }; + + memory { + device_type = "memory"; + reg = <0x08000000 0x08000000>; + }; + + lbsc { + #address-cells = <1>; + #size-cells = <1>; + }; +}; diff --git a/arch/arm/mach-shmobile/Kconfig b/arch/arm/mach-shmobile/Kconfig index 6e7d0a9..6a684ff 100644 --- a/arch/arm/mach-shmobile/Kconfig +++ b/arch/arm/mach-shmobile/Kconfig @@ -191,6 +191,11 @@ config MACH_BOCKW_REFERENCE This is intended to aid developers +config MACH_GENMAI + bool "Genmai board" + depends on ARCH_R7S72100 + select USE_OF + config MACH_MARZEN bool "MARZEN board" depends on ARCH_R8A7779 diff --git a/arch/arm/mach-shmobile/Makefile b/arch/arm/mach-shmobile/Makefile index 663f894..b3840ba 100644 --- a/arch/arm/mach-shmobile/Makefile +++ b/arch/arm/mach-shmobile/Makefile @@ -60,6 +60,7 @@ obj-$(CONFIG_MACH_APE6EVM_REFERENCE) += board-ape6evm-reference.o obj-$(CONFIG_MACH_MACKEREL) += board-mackerel.o obj-$(CONFIG_MACH_BOCKW) += board-bockw.o obj-$(CONFIG_MACH_BOCKW_REFERENCE) += board-bockw-reference.o +obj-$(CONFIG_MACH_GENMAI) += board-genmai.o obj-$(CONFIG_MACH_MARZEN) += board-marzen.o obj-$(CONFIG_MACH_MARZEN_REFERENCE) += board-marzen-reference.o obj-$(CONFIG_MACH_LAGER) += board-lager.o diff --git a/arch/arm/mach-shmobile/Makefile.boot b/arch/arm/mach-shmobile/Makefile.boot index 60e29e6..c690b50 100644 --- a/arch/arm/mach-shmobile/Makefile.boot +++ b/arch/arm/mach-shmobile/Makefile.boot @@ -6,6 +6,7 @@ loadaddr-$(CONFIG_MACH_ARMADILLO800EVA) += 0x40008000 loadaddr-$(CONFIG_MACH_ARMADILLO800EVA_REFERENCE) += 0x40008000 loadaddr-$(CONFIG_MACH_BOCKW) += 0x60008000 loadaddr-$(CONFIG_MACH_BOCKW_REFERENCE) += 0x60008000 +loadaddr-$(CONFIG_MACH_GENMAI) += 0x8008000 loadaddr-$(CONFIG_MACH_KOELSCH) += 0x40008000 loadaddr-$(CONFIG_MACH_KZM9D) += 0x40008000 loadaddr-$(CONFIG_MACH_KZM9D_REFERENCE) += 0x40008000 diff --git a/arch/arm/mach-shmobile/board-genmai.c b/arch/arm/mach-shmobile/board-genmai.c new file mode 100644 index 0000000..3e92e3c --- /dev/null +++ b/arch/arm/mach-shmobile/board-genmai.c @@ -0,0 +1,43 @@ +/* + * Genmai board support + * + * Copyright (C) 2013 Renesas Solutions Corp. + * Copyright (C) 2013 Magnus Damm + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#include <linux/kernel.h> +#include <linux/platform_device.h> +#include <mach/common.h> +#include <mach/r7s72100.h> +#include <asm/mach-types.h> +#include <asm/mach/arch.h> + +static void __init genmai_add_standard_devices(void) +{ + r7s72100_clock_init(); + r7s72100_add_dt_devices(); +} + +static const char * const genmai_boards_compat_dt[] __initconst = { + "renesas,genmai", + NULL, +}; + +DT_MACHINE_START(GENMAI_DT, "genmai") + .init_early = r7s72100_init_early, + .init_machine = genmai_add_standard_devices, + .dt_compat = genmai_boards_compat_dt, +MACHINE_END -- 1.8.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 04/14] ARM: shmobile: Genmai support @ 2013-10-09 6:50 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-10-09 6:50 UTC (permalink / raw) To: linux-arm-kernel From: Magnus Damm <damm@opensource.se> Genmai base board support making use of 128 MiB of memory, the r7s7211 SoC with the SCIF2 serial port and CA9 core. Signed-off-by: Magnus Damm <damm@opensource.se> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/r7s72100-genmai.dts | 31 +++++++++++++++++++++++++ arch/arm/mach-shmobile/Kconfig | 5 ++++ arch/arm/mach-shmobile/Makefile | 1 + arch/arm/mach-shmobile/Makefile.boot | 1 + arch/arm/mach-shmobile/board-genmai.c | 43 +++++++++++++++++++++++++++++++++++ 6 files changed, 82 insertions(+) create mode 100644 arch/arm/boot/dts/r7s72100-genmai.dts create mode 100644 arch/arm/mach-shmobile/board-genmai.c diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 3b1c462..295824d 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -196,6 +196,7 @@ dtb-$(CONFIG_ARCH_U8500) += ste-snowball.dtb \ dtb-$(CONFIG_ARCH_S3C24XX) += s3c2416-smdk2416.dtb dtb-$(CONFIG_ARCH_SHMOBILE) += emev2-kzm9d.dtb \ emev2-kzm9d-reference.dtb \ + r7s72100-genmai.dtb \ r8a7740-armadillo800eva.dtb \ r8a7778-bockw.dtb \ r8a7778-bockw-reference.dtb \ diff --git a/arch/arm/boot/dts/r7s72100-genmai.dts b/arch/arm/boot/dts/r7s72100-genmai.dts new file mode 100644 index 0000000..1fb20f2 --- /dev/null +++ b/arch/arm/boot/dts/r7s72100-genmai.dts @@ -0,0 +1,31 @@ +/* + * Device Tree Source for the Genmai board + * + * Copyright (C) 2013 Renesas Solutions Corp. + * + * This file is licensed under the terms of the GNU General Public License + * version 2. This program is licensed "as is" without any warranty of any + * kind, whether express or implied. + */ + +/dts-v1/; +/include/ "r7s72100.dtsi" + +/ { + model = "Genmai"; + compatible = "renesas,genmai", "renesas,r7s72100"; + + chosen { + bootargs = "console=ttySC2,115200 ignore_loglevel rw root=/dev/nfs ip=dhcp"; + }; + + memory { + device_type = "memory"; + reg = <0x08000000 0x08000000>; + }; + + lbsc { + #address-cells = <1>; + #size-cells = <1>; + }; +}; diff --git a/arch/arm/mach-shmobile/Kconfig b/arch/arm/mach-shmobile/Kconfig index 6e7d0a9..6a684ff 100644 --- a/arch/arm/mach-shmobile/Kconfig +++ b/arch/arm/mach-shmobile/Kconfig @@ -191,6 +191,11 @@ config MACH_BOCKW_REFERENCE This is intended to aid developers +config MACH_GENMAI + bool "Genmai board" + depends on ARCH_R7S72100 + select USE_OF + config MACH_MARZEN bool "MARZEN board" depends on ARCH_R8A7779 diff --git a/arch/arm/mach-shmobile/Makefile b/arch/arm/mach-shmobile/Makefile index 663f894..b3840ba 100644 --- a/arch/arm/mach-shmobile/Makefile +++ b/arch/arm/mach-shmobile/Makefile @@ -60,6 +60,7 @@ obj-$(CONFIG_MACH_APE6EVM_REFERENCE) += board-ape6evm-reference.o obj-$(CONFIG_MACH_MACKEREL) += board-mackerel.o obj-$(CONFIG_MACH_BOCKW) += board-bockw.o obj-$(CONFIG_MACH_BOCKW_REFERENCE) += board-bockw-reference.o +obj-$(CONFIG_MACH_GENMAI) += board-genmai.o obj-$(CONFIG_MACH_MARZEN) += board-marzen.o obj-$(CONFIG_MACH_MARZEN_REFERENCE) += board-marzen-reference.o obj-$(CONFIG_MACH_LAGER) += board-lager.o diff --git a/arch/arm/mach-shmobile/Makefile.boot b/arch/arm/mach-shmobile/Makefile.boot index 60e29e6..c690b50 100644 --- a/arch/arm/mach-shmobile/Makefile.boot +++ b/arch/arm/mach-shmobile/Makefile.boot @@ -6,6 +6,7 @@ loadaddr-$(CONFIG_MACH_ARMADILLO800EVA) += 0x40008000 loadaddr-$(CONFIG_MACH_ARMADILLO800EVA_REFERENCE) += 0x40008000 loadaddr-$(CONFIG_MACH_BOCKW) += 0x60008000 loadaddr-$(CONFIG_MACH_BOCKW_REFERENCE) += 0x60008000 +loadaddr-$(CONFIG_MACH_GENMAI) += 0x8008000 loadaddr-$(CONFIG_MACH_KOELSCH) += 0x40008000 loadaddr-$(CONFIG_MACH_KZM9D) += 0x40008000 loadaddr-$(CONFIG_MACH_KZM9D_REFERENCE) += 0x40008000 diff --git a/arch/arm/mach-shmobile/board-genmai.c b/arch/arm/mach-shmobile/board-genmai.c new file mode 100644 index 0000000..3e92e3c --- /dev/null +++ b/arch/arm/mach-shmobile/board-genmai.c @@ -0,0 +1,43 @@ +/* + * Genmai board support + * + * Copyright (C) 2013 Renesas Solutions Corp. + * Copyright (C) 2013 Magnus Damm + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#include <linux/kernel.h> +#include <linux/platform_device.h> +#include <mach/common.h> +#include <mach/r7s72100.h> +#include <asm/mach-types.h> +#include <asm/mach/arch.h> + +static void __init genmai_add_standard_devices(void) +{ + r7s72100_clock_init(); + r7s72100_add_dt_devices(); +} + +static const char * const genmai_boards_compat_dt[] __initconst = { + "renesas,genmai", + NULL, +}; + +DT_MACHINE_START(GENMAI_DT, "genmai") + .init_early = r7s72100_init_early, + .init_machine = genmai_add_standard_devices, + .dt_compat = genmai_boards_compat_dt, +MACHINE_END -- 1.8.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 05/14] ARM: shmobile: Use r8a7791_add_standard_devices() on Koelsch 2013-10-09 6:50 ` Simon Horman @ 2013-10-09 6:50 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-10-09 6:50 UTC (permalink / raw) To: linux-arm-kernel From: Magnus Damm <damm@opensource.se> Use r8a7791_add_standard_devices() on Koelsch to let the C version of the board code add on-chip devices. Signed-off-by: Magnus Damm <damm@opensource.se> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/board-koelsch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-shmobile/board-koelsch.c b/arch/arm/mach-shmobile/board-koelsch.c index cc2d5e8..278f12e 100644 --- a/arch/arm/mach-shmobile/board-koelsch.c +++ b/arch/arm/mach-shmobile/board-koelsch.c @@ -29,7 +29,7 @@ static void __init koelsch_add_standard_devices(void) { r8a7791_clock_init(); - r8a7791_add_dt_devices(); + r8a7791_add_standard_devices(); } static const char * const koelsch_boards_compat_dt[] __initconst = { -- 1.8.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 05/14] ARM: shmobile: Use r8a7791_add_standard_devices() on Koelsch @ 2013-10-09 6:50 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-10-09 6:50 UTC (permalink / raw) To: linux-arm-kernel From: Magnus Damm <damm@opensource.se> Use r8a7791_add_standard_devices() on Koelsch to let the C version of the board code add on-chip devices. Signed-off-by: Magnus Damm <damm@opensource.se> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/board-koelsch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-shmobile/board-koelsch.c b/arch/arm/mach-shmobile/board-koelsch.c index cc2d5e8..278f12e 100644 --- a/arch/arm/mach-shmobile/board-koelsch.c +++ b/arch/arm/mach-shmobile/board-koelsch.c @@ -29,7 +29,7 @@ static void __init koelsch_add_standard_devices(void) { r8a7791_clock_init(); - r8a7791_add_dt_devices(); + r8a7791_add_standard_devices(); } static const char * const koelsch_boards_compat_dt[] __initconst = { -- 1.8.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 06/14] ARM: shmobile: Use arch timer on Koelsch 2013-10-09 6:50 ` Simon Horman @ 2013-10-09 6:50 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-10-09 6:50 UTC (permalink / raw) To: linux-arm-kernel From: Magnus Damm <damm@opensource.se> Make use of the R-Car Gen2 arch timer workaround on Koelsch. Signed-off-by: Magnus Damm <damm@opensource.se> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/board-koelsch.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-shmobile/board-koelsch.c b/arch/arm/mach-shmobile/board-koelsch.c index 278f12e..ea5846e 100644 --- a/arch/arm/mach-shmobile/board-koelsch.c +++ b/arch/arm/mach-shmobile/board-koelsch.c @@ -23,6 +23,7 @@ #include <linux/platform_device.h> #include <mach/common.h> #include <mach/r8a7791.h> +#include <mach/rcar-gen2.h> #include <asm/mach-types.h> #include <asm/mach/arch.h> @@ -40,5 +41,6 @@ static const char * const koelsch_boards_compat_dt[] __initconst = { DT_MACHINE_START(KOELSCH_DT, "koelsch") .init_early = r8a7791_init_early, .init_machine = koelsch_add_standard_devices, + .init_time = rcar_gen2_timer_init, .dt_compat = koelsch_boards_compat_dt, MACHINE_END -- 1.8.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 06/14] ARM: shmobile: Use arch timer on Koelsch @ 2013-10-09 6:50 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-10-09 6:50 UTC (permalink / raw) To: linux-arm-kernel From: Magnus Damm <damm@opensource.se> Make use of the R-Car Gen2 arch timer workaround on Koelsch. Signed-off-by: Magnus Damm <damm@opensource.se> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/board-koelsch.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-shmobile/board-koelsch.c b/arch/arm/mach-shmobile/board-koelsch.c index 278f12e..ea5846e 100644 --- a/arch/arm/mach-shmobile/board-koelsch.c +++ b/arch/arm/mach-shmobile/board-koelsch.c @@ -23,6 +23,7 @@ #include <linux/platform_device.h> #include <mach/common.h> #include <mach/r8a7791.h> +#include <mach/rcar-gen2.h> #include <asm/mach-types.h> #include <asm/mach/arch.h> @@ -40,5 +41,6 @@ static const char * const koelsch_boards_compat_dt[] __initconst = { DT_MACHINE_START(KOELSCH_DT, "koelsch") .init_early = r8a7791_init_early, .init_machine = koelsch_add_standard_devices, + .init_time = rcar_gen2_timer_init, .dt_compat = koelsch_boards_compat_dt, MACHINE_END -- 1.8.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 07/14] ARM: shmobile: Sync KZM9D DTS with KZM9D reference DTS 2013-10-09 6:50 ` Simon Horman @ 2013-10-09 6:50 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-10-09 6:50 UTC (permalink / raw) To: linux-arm-kernel From: Magnus Damm <damm@opensource.se> Copy the device nodes from KZM9D reference into the KZM9D device tree file. This will allow us to use a single DTS file regarless of kernel configuration. In case of legacy C board code the device nodes may or may not be used, but in the multiplatform case all the DT device nodes are used. Signed-off-by: Magnus Damm <damm@opensource.se> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/emev2-kzm9d.dts | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/emev2-kzm9d.dts b/arch/arm/boot/dts/emev2-kzm9d.dts index f92e812..861aa7d 100644 --- a/arch/arm/boot/dts/emev2-kzm9d.dts +++ b/arch/arm/boot/dts/emev2-kzm9d.dts @@ -1,7 +1,7 @@ /* * Device Tree Source for the KZM9D board * - * Copyright (C) 2012 Renesas Solutions Corp. + * Copyright (C) 2013 Renesas Solutions Corp. * * This file is licensed under the terms of the GNU General Public License * version 2. This program is licensed "as is" without any warranty of any @@ -23,4 +23,35 @@ chosen { bootargs = "console=ttyS1,115200n81 ignore_loglevel root=/dev/nfs ip=dhcp"; }; + + reg_1p8v: regulator@0 { + compatible = "regulator-fixed"; + regulator-name = "fixed-1.8V"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; + regulator-boot-on; + }; + + reg_3p3v: regulator@1 { + compatible = "regulator-fixed"; + regulator-name = "fixed-3.3V"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + regulator-boot-on; + }; + + lan9220@20000000 { + compatible = "smsc,lan9220", "smsc,lan9115"; + reg = <0x20000000 0x10000>; + phy-mode = "mii"; + interrupt-parent = <&gpio0>; + interrupts = <1 1>; /* active high */ + reg-io-width = <4>; + smsc,irq-active-high; + smsc,irq-push-pull; + vddvario-supply = <®_1p8v>; + vdd33a-supply = <®_3p3v>; + }; }; -- 1.8.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 07/14] ARM: shmobile: Sync KZM9D DTS with KZM9D reference DTS @ 2013-10-09 6:50 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-10-09 6:50 UTC (permalink / raw) To: linux-arm-kernel From: Magnus Damm <damm@opensource.se> Copy the device nodes from KZM9D reference into the KZM9D device tree file. This will allow us to use a single DTS file regarless of kernel configuration. In case of legacy C board code the device nodes may or may not be used, but in the multiplatform case all the DT device nodes are used. Signed-off-by: Magnus Damm <damm@opensource.se> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/emev2-kzm9d.dts | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/emev2-kzm9d.dts b/arch/arm/boot/dts/emev2-kzm9d.dts index f92e812..861aa7d 100644 --- a/arch/arm/boot/dts/emev2-kzm9d.dts +++ b/arch/arm/boot/dts/emev2-kzm9d.dts @@ -1,7 +1,7 @@ /* * Device Tree Source for the KZM9D board * - * Copyright (C) 2012 Renesas Solutions Corp. + * Copyright (C) 2013 Renesas Solutions Corp. * * This file is licensed under the terms of the GNU General Public License * version 2. This program is licensed "as is" without any warranty of any @@ -23,4 +23,35 @@ chosen { bootargs = "console=ttyS1,115200n81 ignore_loglevel root=/dev/nfs ip=dhcp"; }; + + reg_1p8v: regulator at 0 { + compatible = "regulator-fixed"; + regulator-name = "fixed-1.8V"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; + regulator-boot-on; + }; + + reg_3p3v: regulator at 1 { + compatible = "regulator-fixed"; + regulator-name = "fixed-3.3V"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + regulator-boot-on; + }; + + lan9220 at 20000000 { + compatible = "smsc,lan9220", "smsc,lan9115"; + reg = <0x20000000 0x10000>; + phy-mode = "mii"; + interrupt-parent = <&gpio0>; + interrupts = <1 1>; /* active high */ + reg-io-width = <4>; + smsc,irq-active-high; + smsc,irq-push-pull; + vddvario-supply = <®_1p8v>; + vdd33a-supply = <®_3p3v>; + }; }; -- 1.8.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 08/14] ARM: shmobile: Use KZM9D without reference for multiplatform 2013-10-09 6:50 ` Simon Horman @ 2013-10-09 6:50 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-10-09 6:50 UTC (permalink / raw) To: linux-arm-kernel From: Magnus Damm <damm@opensource.se> Change the multiplatform kconfig bits for KZM9D from CONFIG_MACH_KZM9D_REFERENCE into CONFIG_MACH_KZM9D to match the non-multiplatform case. Signed-off-by: Magnus Damm <damm@opensource.se> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/Kconfig | 10 ++-------- arch/arm/mach-shmobile/Makefile | 4 ++++ 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/arch/arm/mach-shmobile/Kconfig b/arch/arm/mach-shmobile/Kconfig index 6a684ff..c9c4f15 100644 --- a/arch/arm/mach-shmobile/Kconfig +++ b/arch/arm/mach-shmobile/Kconfig @@ -22,16 +22,10 @@ config ARCH_EMEV2 comment "SH-Mobile Board Type" -config MACH_KZM9D_REFERENCE - bool "KZM9D board - Reference Device Tree Implementation" +config MACH_KZM9D + bool "KZM9D board" depends on ARCH_EMEV2 select REGULATOR_FIXED_VOLTAGE if REGULATOR - ---help--- - Use reference implementation of KZM9D board support - which makes a greater use of device tree at the expense - of not supporting a number of devices. - - This is intended to aid developers comment "SH-Mobile System Configuration" endif diff --git a/arch/arm/mach-shmobile/Makefile b/arch/arm/mach-shmobile/Makefile index b3840ba..b11466d 100644 --- a/arch/arm/mach-shmobile/Makefile +++ b/arch/arm/mach-shmobile/Makefile @@ -55,6 +55,9 @@ obj-$(CONFIG_ARCH_R8A7740) += pm-r8a7740.o pm-rmobile.o obj-$(CONFIG_ARCH_R8A7779) += pm-r8a7779.o # Board objects +ifdef CONFIG_ARCH_SHMOBILE_MULTI +obj-$(CONFIG_MACH_KZM9D) += board-kzm9d-reference.o +else obj-$(CONFIG_MACH_APE6EVM) += board-ape6evm.o obj-$(CONFIG_MACH_APE6EVM_REFERENCE) += board-ape6evm-reference.o obj-$(CONFIG_MACH_MACKEREL) += board-mackerel.o @@ -72,6 +75,7 @@ obj-$(CONFIG_MACH_KZM9D) += board-kzm9d.o obj-$(CONFIG_MACH_KZM9D_REFERENCE) += board-kzm9d-reference.o obj-$(CONFIG_MACH_KZM9G) += board-kzm9g.o obj-$(CONFIG_MACH_KZM9G_REFERENCE) += board-kzm9g-reference.o +endif # Framework support obj-$(CONFIG_SMP) += $(smp-y) -- 1.8.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 08/14] ARM: shmobile: Use KZM9D without reference for multiplatform @ 2013-10-09 6:50 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-10-09 6:50 UTC (permalink / raw) To: linux-arm-kernel From: Magnus Damm <damm@opensource.se> Change the multiplatform kconfig bits for KZM9D from CONFIG_MACH_KZM9D_REFERENCE into CONFIG_MACH_KZM9D to match the non-multiplatform case. Signed-off-by: Magnus Damm <damm@opensource.se> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/Kconfig | 10 ++-------- arch/arm/mach-shmobile/Makefile | 4 ++++ 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/arch/arm/mach-shmobile/Kconfig b/arch/arm/mach-shmobile/Kconfig index 6a684ff..c9c4f15 100644 --- a/arch/arm/mach-shmobile/Kconfig +++ b/arch/arm/mach-shmobile/Kconfig @@ -22,16 +22,10 @@ config ARCH_EMEV2 comment "SH-Mobile Board Type" -config MACH_KZM9D_REFERENCE - bool "KZM9D board - Reference Device Tree Implementation" +config MACH_KZM9D + bool "KZM9D board" depends on ARCH_EMEV2 select REGULATOR_FIXED_VOLTAGE if REGULATOR - ---help--- - Use reference implementation of KZM9D board support - which makes a greater use of device tree at the expense - of not supporting a number of devices. - - This is intended to aid developers comment "SH-Mobile System Configuration" endif diff --git a/arch/arm/mach-shmobile/Makefile b/arch/arm/mach-shmobile/Makefile index b3840ba..b11466d 100644 --- a/arch/arm/mach-shmobile/Makefile +++ b/arch/arm/mach-shmobile/Makefile @@ -55,6 +55,9 @@ obj-$(CONFIG_ARCH_R8A7740) += pm-r8a7740.o pm-rmobile.o obj-$(CONFIG_ARCH_R8A7779) += pm-r8a7779.o # Board objects +ifdef CONFIG_ARCH_SHMOBILE_MULTI +obj-$(CONFIG_MACH_KZM9D) += board-kzm9d-reference.o +else obj-$(CONFIG_MACH_APE6EVM) += board-ape6evm.o obj-$(CONFIG_MACH_APE6EVM_REFERENCE) += board-ape6evm-reference.o obj-$(CONFIG_MACH_MACKEREL) += board-mackerel.o @@ -72,6 +75,7 @@ obj-$(CONFIG_MACH_KZM9D) += board-kzm9d.o obj-$(CONFIG_MACH_KZM9D_REFERENCE) += board-kzm9d-reference.o obj-$(CONFIG_MACH_KZM9G) += board-kzm9g.o obj-$(CONFIG_MACH_KZM9G_REFERENCE) += board-kzm9g-reference.o +endif # Framework support obj-$(CONFIG_SMP) += $(smp-y) -- 1.8.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 09/14] ARM: shmobile: Remove non-multiplatform KZM9D reference support 2013-10-09 6:50 ` Simon Horman @ 2013-10-09 6:50 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-10-09 6:50 UTC (permalink / raw) To: linux-arm-kernel From: Magnus Damm <damm@opensource.se> Now when CCF is supported remove the legacy KZM9D reference Kconfig bits CONFIG_MACH_KZM9D_REFERENCE for the non-multiplatform case. Starting from this commit KZM9D board support is always enabled via CONFIG_MACH_KZM9D, and CONFIG_ARCH_MULTIPLATFORM is used to select between board-kzm9d.c and board-kzm9d-reference.c The file board-kzm9d-reference.c can no longer be used together with the legacy sh-clk clock framework, instead CCF is used. Signed-off-by: Magnus Damm <damm@opensource.se> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/Kconfig | 12 ------------ arch/arm/mach-shmobile/Makefile | 1 - arch/arm/mach-shmobile/Makefile.boot | 1 - 3 files changed, 14 deletions(-) diff --git a/arch/arm/mach-shmobile/Kconfig b/arch/arm/mach-shmobile/Kconfig index c9c4f15..a4a4b75 100644 --- a/arch/arm/mach-shmobile/Kconfig +++ b/arch/arm/mach-shmobile/Kconfig @@ -237,18 +237,6 @@ config MACH_KZM9D select REGULATOR_FIXED_VOLTAGE if REGULATOR select USE_OF -config MACH_KZM9D_REFERENCE - bool "KZM9D board - Reference Device Tree Implementation" - depends on ARCH_EMEV2 - select REGULATOR_FIXED_VOLTAGE if REGULATOR - select USE_OF - ---help--- - Use reference implementation of KZM9D board support - which makes a greater use of device tree at the expense - of not supporting a number of devices. - - This is intended to aid developers - config MACH_KZM9G bool "KZM-A9-GT board" depends on ARCH_SH73A0 diff --git a/arch/arm/mach-shmobile/Makefile b/arch/arm/mach-shmobile/Makefile index b11466d..51db2bc 100644 --- a/arch/arm/mach-shmobile/Makefile +++ b/arch/arm/mach-shmobile/Makefile @@ -72,7 +72,6 @@ obj-$(CONFIG_MACH_ARMADILLO800EVA) += board-armadillo800eva.o obj-$(CONFIG_MACH_ARMADILLO800EVA_REFERENCE) += board-armadillo800eva-reference.o obj-$(CONFIG_MACH_KOELSCH) += board-koelsch.o obj-$(CONFIG_MACH_KZM9D) += board-kzm9d.o -obj-$(CONFIG_MACH_KZM9D_REFERENCE) += board-kzm9d-reference.o obj-$(CONFIG_MACH_KZM9G) += board-kzm9g.o obj-$(CONFIG_MACH_KZM9G_REFERENCE) += board-kzm9g-reference.o endif diff --git a/arch/arm/mach-shmobile/Makefile.boot b/arch/arm/mach-shmobile/Makefile.boot index c690b50..391d72a 100644 --- a/arch/arm/mach-shmobile/Makefile.boot +++ b/arch/arm/mach-shmobile/Makefile.boot @@ -9,7 +9,6 @@ loadaddr-$(CONFIG_MACH_BOCKW_REFERENCE) += 0x60008000 loadaddr-$(CONFIG_MACH_GENMAI) += 0x8008000 loadaddr-$(CONFIG_MACH_KOELSCH) += 0x40008000 loadaddr-$(CONFIG_MACH_KZM9D) += 0x40008000 -loadaddr-$(CONFIG_MACH_KZM9D_REFERENCE) += 0x40008000 loadaddr-$(CONFIG_MACH_KZM9G) += 0x41008000 loadaddr-$(CONFIG_MACH_KZM9G_REFERENCE) += 0x41008000 loadaddr-$(CONFIG_MACH_LAGER) += 0x40008000 -- 1.8.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 09/14] ARM: shmobile: Remove non-multiplatform KZM9D reference support @ 2013-10-09 6:50 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-10-09 6:50 UTC (permalink / raw) To: linux-arm-kernel From: Magnus Damm <damm@opensource.se> Now when CCF is supported remove the legacy KZM9D reference Kconfig bits CONFIG_MACH_KZM9D_REFERENCE for the non-multiplatform case. Starting from this commit KZM9D board support is always enabled via CONFIG_MACH_KZM9D, and CONFIG_ARCH_MULTIPLATFORM is used to select between board-kzm9d.c and board-kzm9d-reference.c The file board-kzm9d-reference.c can no longer be used together with the legacy sh-clk clock framework, instead CCF is used. Signed-off-by: Magnus Damm <damm@opensource.se> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/Kconfig | 12 ------------ arch/arm/mach-shmobile/Makefile | 1 - arch/arm/mach-shmobile/Makefile.boot | 1 - 3 files changed, 14 deletions(-) diff --git a/arch/arm/mach-shmobile/Kconfig b/arch/arm/mach-shmobile/Kconfig index c9c4f15..a4a4b75 100644 --- a/arch/arm/mach-shmobile/Kconfig +++ b/arch/arm/mach-shmobile/Kconfig @@ -237,18 +237,6 @@ config MACH_KZM9D select REGULATOR_FIXED_VOLTAGE if REGULATOR select USE_OF -config MACH_KZM9D_REFERENCE - bool "KZM9D board - Reference Device Tree Implementation" - depends on ARCH_EMEV2 - select REGULATOR_FIXED_VOLTAGE if REGULATOR - select USE_OF - ---help--- - Use reference implementation of KZM9D board support - which makes a greater use of device tree at the expense - of not supporting a number of devices. - - This is intended to aid developers - config MACH_KZM9G bool "KZM-A9-GT board" depends on ARCH_SH73A0 diff --git a/arch/arm/mach-shmobile/Makefile b/arch/arm/mach-shmobile/Makefile index b11466d..51db2bc 100644 --- a/arch/arm/mach-shmobile/Makefile +++ b/arch/arm/mach-shmobile/Makefile @@ -72,7 +72,6 @@ obj-$(CONFIG_MACH_ARMADILLO800EVA) += board-armadillo800eva.o obj-$(CONFIG_MACH_ARMADILLO800EVA_REFERENCE) += board-armadillo800eva-reference.o obj-$(CONFIG_MACH_KOELSCH) += board-koelsch.o obj-$(CONFIG_MACH_KZM9D) += board-kzm9d.o -obj-$(CONFIG_MACH_KZM9D_REFERENCE) += board-kzm9d-reference.o obj-$(CONFIG_MACH_KZM9G) += board-kzm9g.o obj-$(CONFIG_MACH_KZM9G_REFERENCE) += board-kzm9g-reference.o endif diff --git a/arch/arm/mach-shmobile/Makefile.boot b/arch/arm/mach-shmobile/Makefile.boot index c690b50..391d72a 100644 --- a/arch/arm/mach-shmobile/Makefile.boot +++ b/arch/arm/mach-shmobile/Makefile.boot @@ -9,7 +9,6 @@ loadaddr-$(CONFIG_MACH_BOCKW_REFERENCE) += 0x60008000 loadaddr-$(CONFIG_MACH_GENMAI) += 0x8008000 loadaddr-$(CONFIG_MACH_KOELSCH) += 0x40008000 loadaddr-$(CONFIG_MACH_KZM9D) += 0x40008000 -loadaddr-$(CONFIG_MACH_KZM9D_REFERENCE) += 0x40008000 loadaddr-$(CONFIG_MACH_KZM9G) += 0x41008000 loadaddr-$(CONFIG_MACH_KZM9G_REFERENCE) += 0x41008000 loadaddr-$(CONFIG_MACH_LAGER) += 0x40008000 -- 1.8.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 10/14] ARM: shmobile: Let KZM9D multiplatform boot with KZM9D DTB 2013-10-09 6:50 ` Simon Horman @ 2013-10-09 6:51 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-10-09 6:51 UTC (permalink / raw) To: linux-arm-kernel From: Magnus Damm <damm@opensource.se> Let the multiplatform KZM9D support boot with the legacy DTS for KZM9D as well as the KZM9D reference DTS. Signed-off-by: Magnus Damm <damm@opensource.se> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/board-kzm9d-reference.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-shmobile/board-kzm9d-reference.c b/arch/arm/mach-shmobile/board-kzm9d-reference.c index 8f8bb2f..054d8d5 100644 --- a/arch/arm/mach-shmobile/board-kzm9d-reference.c +++ b/arch/arm/mach-shmobile/board-kzm9d-reference.c @@ -33,6 +33,7 @@ static void __init kzm9d_add_standard_devices(void) } static const char *kzm9d_boards_compat_dt[] __initdata = { + "renesas,kzm9d", "renesas,kzm9d-reference", NULL, }; -- 1.8.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 10/14] ARM: shmobile: Let KZM9D multiplatform boot with KZM9D DTB @ 2013-10-09 6:51 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-10-09 6:51 UTC (permalink / raw) To: linux-arm-kernel From: Magnus Damm <damm@opensource.se> Let the multiplatform KZM9D support boot with the legacy DTS for KZM9D as well as the KZM9D reference DTS. Signed-off-by: Magnus Damm <damm@opensource.se> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/board-kzm9d-reference.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-shmobile/board-kzm9d-reference.c b/arch/arm/mach-shmobile/board-kzm9d-reference.c index 8f8bb2f..054d8d5 100644 --- a/arch/arm/mach-shmobile/board-kzm9d-reference.c +++ b/arch/arm/mach-shmobile/board-kzm9d-reference.c @@ -33,6 +33,7 @@ static void __init kzm9d_add_standard_devices(void) } static const char *kzm9d_boards_compat_dt[] __initdata = { + "renesas,kzm9d", "renesas,kzm9d-reference", NULL, }; -- 1.8.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 11/14] ARM: shmobile: Remove KZM9D reference DTS 2013-10-09 6:50 ` Simon Horman @ 2013-10-09 6:51 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-10-09 6:51 UTC (permalink / raw) To: linux-arm-kernel From: Magnus Damm <damm@opensource.se> Now when the legacy DTS file emev2-kzm9d.dts can be used with board-kzm9d.c and board-kzm9d-reference.c proceed with removing emev-kzm9d-reference.dts. Signed-off-by: Magnus Damm <damm@opensource.se> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/Makefile | 3 +- arch/arm/boot/dts/emev2-kzm9d-reference.dts | 57 ----------------------------- 2 files changed, 1 insertion(+), 59 deletions(-) delete mode 100644 arch/arm/boot/dts/emev2-kzm9d-reference.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 295824d..a72a9f4 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -195,7 +195,6 @@ dtb-$(CONFIG_ARCH_U8500) += ste-snowball.dtb \ ste-ccu9540.dtb dtb-$(CONFIG_ARCH_S3C24XX) += s3c2416-smdk2416.dtb dtb-$(CONFIG_ARCH_SHMOBILE) += emev2-kzm9d.dtb \ - emev2-kzm9d-reference.dtb \ r7s72100-genmai.dtb \ r8a7740-armadillo800eva.dtb \ r8a7778-bockw.dtb \ @@ -211,7 +210,7 @@ dtb-$(CONFIG_ARCH_SHMOBILE) += emev2-kzm9d.dtb \ r8a73a4-ape6evm.dtb \ r8a73a4-ape6evm-reference.dtb \ sh7372-mackerel.dtb -dtb-$(CONFIG_ARCH_SHMOBILE_MULTI) += emev2-kzm9d-reference.dtb +dtb-$(CONFIG_ARCH_SHMOBILE_MULTI) += emev2-kzm9d.dtb dtb-$(CONFIG_ARCH_SOCFPGA) += socfpga_cyclone5.dtb \ socfpga_vt.dtb dtb-$(CONFIG_ARCH_SPEAR13XX) += spear1310-evb.dtb \ diff --git a/arch/arm/boot/dts/emev2-kzm9d-reference.dts b/arch/arm/boot/dts/emev2-kzm9d-reference.dts deleted file mode 100644 index cceefda..0000000 --- a/arch/arm/boot/dts/emev2-kzm9d-reference.dts +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Device Tree Source for the KZM9D board - * - * Copyright (C) 2013 Renesas Solutions Corp. - * - * This file is licensed under the terms of the GNU General Public License - * version 2. This program is licensed "as is" without any warranty of any - * kind, whether express or implied. - */ -/dts-v1/; - -/include/ "emev2.dtsi" - -/ { - model = "EMEV2 KZM9D Board"; - compatible = "renesas,kzm9d-reference", "renesas,emev2"; - - memory { - device_type = "memory"; - reg = <0x40000000 0x8000000>; - }; - - chosen { - bootargs = "console=ttyS1,115200n81 ignore_loglevel root=/dev/nfs ip=dhcp"; - }; - - reg_1p8v: regulator@0 { - compatible = "regulator-fixed"; - regulator-name = "fixed-1.8V"; - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <1800000>; - regulator-always-on; - regulator-boot-on; - }; - - reg_3p3v: regulator@1 { - compatible = "regulator-fixed"; - regulator-name = "fixed-3.3V"; - regulator-min-microvolt = <3300000>; - regulator-max-microvolt = <3300000>; - regulator-always-on; - regulator-boot-on; - }; - - lan9220@20000000 { - compatible = "smsc,lan9220", "smsc,lan9115"; - reg = <0x20000000 0x10000>; - phy-mode = "mii"; - interrupt-parent = <&gpio0>; - interrupts = <1 1>; /* active high */ - reg-io-width = <4>; - smsc,irq-active-high; - smsc,irq-push-pull; - vddvario-supply = <®_1p8v>; - vdd33a-supply = <®_3p3v>; - }; -}; -- 1.8.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 11/14] ARM: shmobile: Remove KZM9D reference DTS @ 2013-10-09 6:51 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-10-09 6:51 UTC (permalink / raw) To: linux-arm-kernel From: Magnus Damm <damm@opensource.se> Now when the legacy DTS file emev2-kzm9d.dts can be used with board-kzm9d.c and board-kzm9d-reference.c proceed with removing emev-kzm9d-reference.dts. Signed-off-by: Magnus Damm <damm@opensource.se> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/Makefile | 3 +- arch/arm/boot/dts/emev2-kzm9d-reference.dts | 57 ----------------------------- 2 files changed, 1 insertion(+), 59 deletions(-) delete mode 100644 arch/arm/boot/dts/emev2-kzm9d-reference.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 295824d..a72a9f4 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -195,7 +195,6 @@ dtb-$(CONFIG_ARCH_U8500) += ste-snowball.dtb \ ste-ccu9540.dtb dtb-$(CONFIG_ARCH_S3C24XX) += s3c2416-smdk2416.dtb dtb-$(CONFIG_ARCH_SHMOBILE) += emev2-kzm9d.dtb \ - emev2-kzm9d-reference.dtb \ r7s72100-genmai.dtb \ r8a7740-armadillo800eva.dtb \ r8a7778-bockw.dtb \ @@ -211,7 +210,7 @@ dtb-$(CONFIG_ARCH_SHMOBILE) += emev2-kzm9d.dtb \ r8a73a4-ape6evm.dtb \ r8a73a4-ape6evm-reference.dtb \ sh7372-mackerel.dtb -dtb-$(CONFIG_ARCH_SHMOBILE_MULTI) += emev2-kzm9d-reference.dtb +dtb-$(CONFIG_ARCH_SHMOBILE_MULTI) += emev2-kzm9d.dtb dtb-$(CONFIG_ARCH_SOCFPGA) += socfpga_cyclone5.dtb \ socfpga_vt.dtb dtb-$(CONFIG_ARCH_SPEAR13XX) += spear1310-evb.dtb \ diff --git a/arch/arm/boot/dts/emev2-kzm9d-reference.dts b/arch/arm/boot/dts/emev2-kzm9d-reference.dts deleted file mode 100644 index cceefda..0000000 --- a/arch/arm/boot/dts/emev2-kzm9d-reference.dts +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Device Tree Source for the KZM9D board - * - * Copyright (C) 2013 Renesas Solutions Corp. - * - * This file is licensed under the terms of the GNU General Public License - * version 2. This program is licensed "as is" without any warranty of any - * kind, whether express or implied. - */ -/dts-v1/; - -/include/ "emev2.dtsi" - -/ { - model = "EMEV2 KZM9D Board"; - compatible = "renesas,kzm9d-reference", "renesas,emev2"; - - memory { - device_type = "memory"; - reg = <0x40000000 0x8000000>; - }; - - chosen { - bootargs = "console=ttyS1,115200n81 ignore_loglevel root=/dev/nfs ip=dhcp"; - }; - - reg_1p8v: regulator at 0 { - compatible = "regulator-fixed"; - regulator-name = "fixed-1.8V"; - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <1800000>; - regulator-always-on; - regulator-boot-on; - }; - - reg_3p3v: regulator at 1 { - compatible = "regulator-fixed"; - regulator-name = "fixed-3.3V"; - regulator-min-microvolt = <3300000>; - regulator-max-microvolt = <3300000>; - regulator-always-on; - regulator-boot-on; - }; - - lan9220 at 20000000 { - compatible = "smsc,lan9220", "smsc,lan9115"; - reg = <0x20000000 0x10000>; - phy-mode = "mii"; - interrupt-parent = <&gpio0>; - interrupts = <1 1>; /* active high */ - reg-io-width = <4>; - smsc,irq-active-high; - smsc,irq-push-pull; - vddvario-supply = <®_1p8v>; - vdd33a-supply = <®_3p3v>; - }; -}; -- 1.8.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 12/14] ARM: shmobile: Use SMP on Koelsch 2013-10-09 6:50 ` Simon Horman @ 2013-10-09 6:51 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-10-09 6:51 UTC (permalink / raw) To: linux-arm-kernel From: Magnus Damm <damm@opensource.se> Enable r8a7791 SMP support code on the Koelsch board. Signed-off-by: Magnus Damm <damm@opensource.se> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/board-koelsch.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-shmobile/board-koelsch.c b/arch/arm/mach-shmobile/board-koelsch.c index ea5846e..ace1711 100644 --- a/arch/arm/mach-shmobile/board-koelsch.c +++ b/arch/arm/mach-shmobile/board-koelsch.c @@ -39,6 +39,7 @@ static const char * const koelsch_boards_compat_dt[] __initconst = { }; DT_MACHINE_START(KOELSCH_DT, "koelsch") + .smp = smp_ops(r8a7791_smp_ops), .init_early = r8a7791_init_early, .init_machine = koelsch_add_standard_devices, .init_time = rcar_gen2_timer_init, -- 1.8.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 12/14] ARM: shmobile: Use SMP on Koelsch @ 2013-10-09 6:51 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-10-09 6:51 UTC (permalink / raw) To: linux-arm-kernel From: Magnus Damm <damm@opensource.se> Enable r8a7791 SMP support code on the Koelsch board. Signed-off-by: Magnus Damm <damm@opensource.se> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/board-koelsch.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-shmobile/board-koelsch.c b/arch/arm/mach-shmobile/board-koelsch.c index ea5846e..ace1711 100644 --- a/arch/arm/mach-shmobile/board-koelsch.c +++ b/arch/arm/mach-shmobile/board-koelsch.c @@ -39,6 +39,7 @@ static const char * const koelsch_boards_compat_dt[] __initconst = { }; DT_MACHINE_START(KOELSCH_DT, "koelsch") + .smp = smp_ops(r8a7791_smp_ops), .init_early = r8a7791_init_early, .init_machine = koelsch_add_standard_devices, .init_time = rcar_gen2_timer_init, -- 1.8.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 13/14] ARM: shmobile: bockw: add SMSC support on reference 2013-10-09 6:50 ` Simon Horman @ 2013-10-09 6:51 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-10-09 6:51 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> This patch enables INTC IRQ, and SMSC IRQ. 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-reference.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/arch/arm/mach-shmobile/board-bockw-reference.c b/arch/arm/mach-shmobile/board-bockw-reference.c index 1a7c893..ae88fda 100644 --- a/arch/arm/mach-shmobile/board-bockw-reference.c +++ b/arch/arm/mach-shmobile/board-bockw-reference.c @@ -36,15 +36,35 @@ static const struct pinctrl_map bockw_pinctrl_map[] = { "scif0_ctrl", "scif0"), }; +#define FPGA 0x18200000 +#define IRQ0MR 0x30 +#define COMCTLR 0x101c static void __init bockw_init(void) { + static void __iomem *fpga; + r8a7778_clock_init(); + r8a7778_init_irq_extpin_dt(1); pinctrl_register_mappings(bockw_pinctrl_map, ARRAY_SIZE(bockw_pinctrl_map)); r8a7778_pinmux_init(); r8a7778_add_dt_devices(); + fpga = ioremap_nocache(FPGA, SZ_1M); + if (fpga) { + /* + * CAUTION + * + * IRQ0/1 is cascaded interrupt from FPGA. + * it should be cared in the future + * Now, it is assuming IRQ0 was used only from SMSC. + */ + u16 val = ioread16(fpga + IRQ0MR); + val &= ~(1 << 4); /* enable SMSC911x */ + iowrite16(val, fpga + IRQ0MR); + } + of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); } -- 1.8.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 13/14] ARM: shmobile: bockw: add SMSC support on reference @ 2013-10-09 6:51 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-10-09 6:51 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> This patch enables INTC IRQ, and SMSC IRQ. 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-reference.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/arch/arm/mach-shmobile/board-bockw-reference.c b/arch/arm/mach-shmobile/board-bockw-reference.c index 1a7c893..ae88fda 100644 --- a/arch/arm/mach-shmobile/board-bockw-reference.c +++ b/arch/arm/mach-shmobile/board-bockw-reference.c @@ -36,15 +36,35 @@ static const struct pinctrl_map bockw_pinctrl_map[] = { "scif0_ctrl", "scif0"), }; +#define FPGA 0x18200000 +#define IRQ0MR 0x30 +#define COMCTLR 0x101c static void __init bockw_init(void) { + static void __iomem *fpga; + r8a7778_clock_init(); + r8a7778_init_irq_extpin_dt(1); pinctrl_register_mappings(bockw_pinctrl_map, ARRAY_SIZE(bockw_pinctrl_map)); r8a7778_pinmux_init(); r8a7778_add_dt_devices(); + fpga = ioremap_nocache(FPGA, SZ_1M); + if (fpga) { + /* + * CAUTION + * + * IRQ0/1 is cascaded interrupt from FPGA. + * it should be cared in the future + * Now, it is assuming IRQ0 was used only from SMSC. + */ + u16 val = ioread16(fpga + IRQ0MR); + val &= ~(1 << 4); /* enable SMSC911x */ + iowrite16(val, fpga + IRQ0MR); + } + of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); } -- 1.8.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 14/14] ARM: shmobile: marzen: enable INTC IRQ 2013-10-09 6:50 ` Simon Horman @ 2013-10-09 6:51 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-10-09 6:51 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> This patch adds missing INTC IRQ settings which is required from SMSC. 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-marzen-reference.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-shmobile/board-marzen-reference.c b/arch/arm/mach-shmobile/board-marzen-reference.c index 3f4250a..2773936 100644 --- a/arch/arm/mach-shmobile/board-marzen-reference.c +++ b/arch/arm/mach-shmobile/board-marzen-reference.c @@ -28,6 +28,7 @@ static void __init marzen_init(void) { r8a7779_add_standard_devices_dt(); + r8a7779_init_irq_extpin_dt(1); /* IRQ1 as individual interrupt */ } static const char *marzen_boards_compat_dt[] __initdata = { -- 1.8.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 14/14] ARM: shmobile: marzen: enable INTC IRQ @ 2013-10-09 6:51 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-10-09 6:51 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> This patch adds missing INTC IRQ settings which is required from SMSC. 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-marzen-reference.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-shmobile/board-marzen-reference.c b/arch/arm/mach-shmobile/board-marzen-reference.c index 3f4250a..2773936 100644 --- a/arch/arm/mach-shmobile/board-marzen-reference.c +++ b/arch/arm/mach-shmobile/board-marzen-reference.c @@ -28,6 +28,7 @@ static void __init marzen_init(void) { r8a7779_add_standard_devices_dt(); + r8a7779_init_irq_extpin_dt(1); /* IRQ1 as individual interrupt */ } static const char *marzen_boards_compat_dt[] __initdata = { -- 1.8.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* Re: [GIT PULL] Second Round of Renesas ARM based SoC board updates for v3.13 2013-10-09 6:50 ` Simon Horman @ 2013-10-14 22:02 ` Kevin Hilman -1 siblings, 0 replies; 776+ messages in thread From: Kevin Hilman @ 2013-10-14 22:02 UTC (permalink / raw) To: linux-arm-kernel Simon Horman <horms+renesas@verge.net.au> writes: > Hi Kevin, Olof and Arnd, > > please consider this second round of Renesas ARM based SoC board updates > for v3.13. > > This pull request is based on a merge of renesas-soc2-for-v3.13 into > renesas-boards-for-v3.13. You have already pulled renesas-boards-for-v3.13 > and I am sending a pull request for renesas-soc2-for-v3.13 today. The > reason for this merge is to supply SoC code that is needed by board code in > this series. In particular the r7s72100 SoC code for the Genmai board. > > > The following changes since commit 661a7335c4e47726df1e7264580209847509569a: > > Merge branch 'heads/soc2' into boards2-base (2013-10-08 10:01:47 +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.13 > > for you to fetch changes up to 7d4bde88e1135c4a3106b79650d3b85335f35717: > > ARM: shmobile: marzen: enable INTC IRQ (2013-10-08 10:02:22 +0900) > > ---------------------------------------------------------------- > Second Round of Renesas ARM based SoC board updates for v3.13 > > * Enable INTC IRQ on marzen board > * Enable SMSC ethernet on reference board code for bockw > * Enable DMA for SDHI0 on marzen and bockw boards > * Enable DMA for MMCIF on ape6evm board > * Enable SMP and arch timers on Koelsh board > * Rework kzm9d make reference board code multiplatform > * Use a common DTB for kzm9d reference and non-reference > * Add Genmai board Thanks, pulled into next/boards. Kevin ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM based SoC board updates for v3.13 @ 2013-10-14 22:02 ` Kevin Hilman 0 siblings, 0 replies; 776+ messages in thread From: Kevin Hilman @ 2013-10-14 22:02 UTC (permalink / raw) To: linux-arm-kernel Simon Horman <horms+renesas@verge.net.au> writes: > Hi Kevin, Olof and Arnd, > > please consider this second round of Renesas ARM based SoC board updates > for v3.13. > > This pull request is based on a merge of renesas-soc2-for-v3.13 into > renesas-boards-for-v3.13. You have already pulled renesas-boards-for-v3.13 > and I am sending a pull request for renesas-soc2-for-v3.13 today. The > reason for this merge is to supply SoC code that is needed by board code in > this series. In particular the r7s72100 SoC code for the Genmai board. > > > The following changes since commit 661a7335c4e47726df1e7264580209847509569a: > > Merge branch 'heads/soc2' into boards2-base (2013-10-08 10:01:47 +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.13 > > for you to fetch changes up to 7d4bde88e1135c4a3106b79650d3b85335f35717: > > ARM: shmobile: marzen: enable INTC IRQ (2013-10-08 10:02:22 +0900) > > ---------------------------------------------------------------- > Second Round of Renesas ARM based SoC board updates for v3.13 > > * Enable INTC IRQ on marzen board > * Enable SMSC ethernet on reference board code for bockw > * Enable DMA for SDHI0 on marzen and bockw boards > * Enable DMA for MMCIF on ape6evm board > * Enable SMP and arch timers on Koelsh board > * Rework kzm9d make reference board code multiplatform > * Use a common DTB for kzm9d reference and non-reference > * Add Genmai board Thanks, pulled into next/boards. Kevin ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM based SoC defconfig updates for v3.13 @ 2013-10-09 6:51 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-10-09 6:51 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Hi Arnd, Hi Kevin, please consider this second round of Renesas ARM based SoC defconfig updates for v3.13. The following changes since commit 6bb2e347899b297eea26f2658eac8fdcd633fba5: ARM: shmobile: Add koelsch defconfig (2013-09-20 17:46:15 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-defconfig2-for-v3.13 for you to fetch changes up to bb416e1d7416861bece0335f543c590d9af09c79: ARM: shmobile: Genmai defconfig (2013-10-03 13:01:30 +0900) ---------------------------------------------------------------- Second Round of Renesas ARM based SoC defconfig updates for v3.13 * Add defconfig for Genmai board ---------------------------------------------------------------- Magnus Damm (1): ARM: shmobile: Genmai defconfig arch/arm/configs/genmai_defconfig | 116 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 116 insertions(+) create mode 100644 arch/arm/configs/genmai_defconfig ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM based SoC defconfig updates for v3.13 @ 2013-10-09 6:51 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-10-09 6:51 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Hi Arnd, Hi Kevin, please consider this second round of Renesas ARM based SoC defconfig updates for v3.13. The following changes since commit 6bb2e347899b297eea26f2658eac8fdcd633fba5: ARM: shmobile: Add koelsch defconfig (2013-09-20 17:46:15 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-defconfig2-for-v3.13 for you to fetch changes up to bb416e1d7416861bece0335f543c590d9af09c79: ARM: shmobile: Genmai defconfig (2013-10-03 13:01:30 +0900) ---------------------------------------------------------------- Second Round of Renesas ARM based SoC defconfig updates for v3.13 * Add defconfig for Genmai board ---------------------------------------------------------------- Magnus Damm (1): ARM: shmobile: Genmai defconfig arch/arm/configs/genmai_defconfig | 116 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 116 insertions(+) create mode 100644 arch/arm/configs/genmai_defconfig ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH] ARM: shmobile: Genmai defconfig 2013-10-09 6:51 ` Simon Horman @ 2013-10-09 6:51 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-10-09 6:51 UTC (permalink / raw) To: linux-arm-kernel From: Magnus Damm <damm@opensource.se> Add a defconfig for the Genmai board. In the future this board will use a shared defconfig for multiplatform, but until CCF is implemented this will be used. Signed-off-by: Magnus Damm <damm@opensource.se> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/configs/genmai_defconfig | 116 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 116 insertions(+) create mode 100644 arch/arm/configs/genmai_defconfig diff --git a/arch/arm/configs/genmai_defconfig b/arch/arm/configs/genmai_defconfig new file mode 100644 index 0000000..69b1531 --- /dev/null +++ b/arch/arm/configs/genmai_defconfig @@ -0,0 +1,116 @@ +CONFIG_SYSVIPC=y +CONFIG_NO_HZ=y +CONFIG_IKCONFIG=y +CONFIG_IKCONFIG_PROC=y +CONFIG_LOG_BUF_SHIFT\x16 +CONFIG_CC_OPTIMIZE_FOR_SIZE=y +CONFIG_SYSCTL_SYSCALL=y +CONFIG_EMBEDDED=y +CONFIG_PERF_EVENTS=y +CONFIG_SLAB=y +# CONFIG_LBDAF is not set +# CONFIG_BLK_DEV_BSG is not set +# CONFIG_IOSCHED_DEADLINE is not set +# CONFIG_IOSCHED_CFQ is not set +CONFIG_ARCH_SHMOBILE=y +CONFIG_ARCH_R7S72100=y +CONFIG_MACH_GENMAI=y +# CONFIG_SH_TIMER_CMT is not set +# CONFIG_SH_TIMER_MTU2 is not set +# CONFIG_SH_TIMER_TMU is not set +# CONFIG_EM_TIMER_STI is not set +CONFIG_ARM_ERRATA_430973=y +CONFIG_ARM_ERRATA_458693=y +CONFIG_ARM_ERRATA_460075=y +CONFIG_ARM_ERRATA_743622=y +CONFIG_ARM_ERRATA_754322=y +CONFIG_AEABI=y +# CONFIG_OABI_COMPAT is not set +CONFIG_FORCE_MAX_ZONEORDER\x13 +CONFIG_ZBOOT_ROM_TEXT=0x0 +CONFIG_ZBOOT_ROM_BSS=0x0 +CONFIG_ARM_APPENDED_DTB=y +CONFIG_KEXEC=y +CONFIG_AUTO_ZRELADDR=y +CONFIG_VFP=y +CONFIG_NEON=y +# CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS is not set +CONFIG_PM_RUNTIME=y +CONFIG_NET=y +CONFIG_PACKET=y +CONFIG_UNIX=y +CONFIG_INET=y +CONFIG_IP_PNP=y +CONFIG_IP_PNP_DHCP=y +# CONFIG_INET_XFRM_MODE_TRANSPORT is not set +# CONFIG_INET_XFRM_MODE_TUNNEL is not set +# CONFIG_INET_XFRM_MODE_BEET is not set +# CONFIG_INET_LRO is not set +# CONFIG_INET_DIAG is not set +# CONFIG_IPV6 is not set +# CONFIG_WIRELESS is not set +CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug" +CONFIG_NETDEVICES=y +# CONFIG_NET_CORE is not set +# CONFIG_NET_VENDOR_ARC is not set +# CONFIG_NET_CADENCE is not set +# CONFIG_NET_VENDOR_BROADCOM is not set +# CONFIG_NET_VENDOR_CIRRUS is not set +# CONFIG_NET_VENDOR_FARADAY is not set +# CONFIG_NET_VENDOR_INTEL is not set +# CONFIG_NET_VENDOR_MARVELL is not set +# CONFIG_NET_VENDOR_MICREL is not set +# CONFIG_NET_VENDOR_NATSEMI is not set +CONFIG_SH_ETH=y +# CONFIG_NET_VENDOR_SEEQ is not set +# CONFIG_NET_VENDOR_SMSC is not set +# CONFIG_NET_VENDOR_STMICRO is not set +# CONFIG_NET_VENDOR_VIA is not set +# CONFIG_NET_VENDOR_WIZNET is not set +# CONFIG_WLAN is not set +# CONFIG_INPUT_MOUSEDEV_PSAUX is not set +CONFIG_INPUT_EVDEV=y +# CONFIG_KEYBOARD_ATKBD is not set +# CONFIG_INPUT_MOUSE is not set +# CONFIG_SERIO is not set +# CONFIG_LEGACY_PTYS is not set +CONFIG_SERIAL_SH_SCI=y +CONFIG_SERIAL_SH_SCI_NR_UARTS\x10 +CONFIG_SERIAL_SH_SCI_CONSOLE=y +# CONFIG_HW_RANDOM is not set +CONFIG_I2C_SH_MOBILE=y +# CONFIG_HWMON is not set +CONFIG_THERMAL=y +CONFIG_RCAR_THERMAL=y +CONFIG_REGULATOR=y +CONFIG_REGULATOR_FIXED_VOLTAGE=y +CONFIG_DRM=y +CONFIG_DRM_RCAR_DU=y +# CONFIG_USB_SUPPORT is not set +CONFIG_MMC=y +CONFIG_MMC_SDHI=y +CONFIG_MMC_SH_MMCIF=y +CONFIG_NEW_LEDS=y +CONFIG_LEDS_CLASS=y +CONFIG_RTC_CLASS=y +CONFIG_DMADEVICES=y +CONFIG_SH_DMAE=y +# CONFIG_IOMMU_SUPPORT is not set +# CONFIG_DNOTIFY is not set +CONFIG_MSDOS_FS=y +CONFIG_VFAT_FS=y +CONFIG_TMPFS=y +CONFIG_CONFIGFS_FS=y +# CONFIG_MISC_FILESYSTEMS is not set +CONFIG_NFS_FS=y +CONFIG_NFS_V3_ACL=y +CONFIG_NFS_V4=y +CONFIG_NFS_V4_1=y +CONFIG_ROOT_NFS=y +CONFIG_NLS_CODEPAGE_437=y +CONFIG_NLS_ISO8859_1=y +# CONFIG_ENABLE_WARN_DEPRECATED is not set +# CONFIG_ENABLE_MUST_CHECK is not set +# CONFIG_ARM_UNWIND is not set +# CONFIG_CRYPTO_ANSI_CPRNG is not set +# CONFIG_CRYPTO_HW is not set -- 1.8.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH] ARM: shmobile: Genmai defconfig @ 2013-10-09 6:51 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-10-09 6:51 UTC (permalink / raw) To: linux-arm-kernel From: Magnus Damm <damm@opensource.se> Add a defconfig for the Genmai board. In the future this board will use a shared defconfig for multiplatform, but until CCF is implemented this will be used. Signed-off-by: Magnus Damm <damm@opensource.se> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/configs/genmai_defconfig | 116 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 116 insertions(+) create mode 100644 arch/arm/configs/genmai_defconfig diff --git a/arch/arm/configs/genmai_defconfig b/arch/arm/configs/genmai_defconfig new file mode 100644 index 0000000..69b1531 --- /dev/null +++ b/arch/arm/configs/genmai_defconfig @@ -0,0 +1,116 @@ +CONFIG_SYSVIPC=y +CONFIG_NO_HZ=y +CONFIG_IKCONFIG=y +CONFIG_IKCONFIG_PROC=y +CONFIG_LOG_BUF_SHIFT=16 +CONFIG_CC_OPTIMIZE_FOR_SIZE=y +CONFIG_SYSCTL_SYSCALL=y +CONFIG_EMBEDDED=y +CONFIG_PERF_EVENTS=y +CONFIG_SLAB=y +# CONFIG_LBDAF is not set +# CONFIG_BLK_DEV_BSG is not set +# CONFIG_IOSCHED_DEADLINE is not set +# CONFIG_IOSCHED_CFQ is not set +CONFIG_ARCH_SHMOBILE=y +CONFIG_ARCH_R7S72100=y +CONFIG_MACH_GENMAI=y +# CONFIG_SH_TIMER_CMT is not set +# CONFIG_SH_TIMER_MTU2 is not set +# CONFIG_SH_TIMER_TMU is not set +# CONFIG_EM_TIMER_STI is not set +CONFIG_ARM_ERRATA_430973=y +CONFIG_ARM_ERRATA_458693=y +CONFIG_ARM_ERRATA_460075=y +CONFIG_ARM_ERRATA_743622=y +CONFIG_ARM_ERRATA_754322=y +CONFIG_AEABI=y +# CONFIG_OABI_COMPAT is not set +CONFIG_FORCE_MAX_ZONEORDER=13 +CONFIG_ZBOOT_ROM_TEXT=0x0 +CONFIG_ZBOOT_ROM_BSS=0x0 +CONFIG_ARM_APPENDED_DTB=y +CONFIG_KEXEC=y +CONFIG_AUTO_ZRELADDR=y +CONFIG_VFP=y +CONFIG_NEON=y +# CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS is not set +CONFIG_PM_RUNTIME=y +CONFIG_NET=y +CONFIG_PACKET=y +CONFIG_UNIX=y +CONFIG_INET=y +CONFIG_IP_PNP=y +CONFIG_IP_PNP_DHCP=y +# CONFIG_INET_XFRM_MODE_TRANSPORT is not set +# CONFIG_INET_XFRM_MODE_TUNNEL is not set +# CONFIG_INET_XFRM_MODE_BEET is not set +# CONFIG_INET_LRO is not set +# CONFIG_INET_DIAG is not set +# CONFIG_IPV6 is not set +# CONFIG_WIRELESS is not set +CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug" +CONFIG_NETDEVICES=y +# CONFIG_NET_CORE is not set +# CONFIG_NET_VENDOR_ARC is not set +# CONFIG_NET_CADENCE is not set +# CONFIG_NET_VENDOR_BROADCOM is not set +# CONFIG_NET_VENDOR_CIRRUS is not set +# CONFIG_NET_VENDOR_FARADAY is not set +# CONFIG_NET_VENDOR_INTEL is not set +# CONFIG_NET_VENDOR_MARVELL is not set +# CONFIG_NET_VENDOR_MICREL is not set +# CONFIG_NET_VENDOR_NATSEMI is not set +CONFIG_SH_ETH=y +# CONFIG_NET_VENDOR_SEEQ is not set +# CONFIG_NET_VENDOR_SMSC is not set +# CONFIG_NET_VENDOR_STMICRO is not set +# CONFIG_NET_VENDOR_VIA is not set +# CONFIG_NET_VENDOR_WIZNET is not set +# CONFIG_WLAN is not set +# CONFIG_INPUT_MOUSEDEV_PSAUX is not set +CONFIG_INPUT_EVDEV=y +# CONFIG_KEYBOARD_ATKBD is not set +# CONFIG_INPUT_MOUSE is not set +# CONFIG_SERIO is not set +# CONFIG_LEGACY_PTYS is not set +CONFIG_SERIAL_SH_SCI=y +CONFIG_SERIAL_SH_SCI_NR_UARTS=10 +CONFIG_SERIAL_SH_SCI_CONSOLE=y +# CONFIG_HW_RANDOM is not set +CONFIG_I2C_SH_MOBILE=y +# CONFIG_HWMON is not set +CONFIG_THERMAL=y +CONFIG_RCAR_THERMAL=y +CONFIG_REGULATOR=y +CONFIG_REGULATOR_FIXED_VOLTAGE=y +CONFIG_DRM=y +CONFIG_DRM_RCAR_DU=y +# CONFIG_USB_SUPPORT is not set +CONFIG_MMC=y +CONFIG_MMC_SDHI=y +CONFIG_MMC_SH_MMCIF=y +CONFIG_NEW_LEDS=y +CONFIG_LEDS_CLASS=y +CONFIG_RTC_CLASS=y +CONFIG_DMADEVICES=y +CONFIG_SH_DMAE=y +# CONFIG_IOMMU_SUPPORT is not set +# CONFIG_DNOTIFY is not set +CONFIG_MSDOS_FS=y +CONFIG_VFAT_FS=y +CONFIG_TMPFS=y +CONFIG_CONFIGFS_FS=y +# CONFIG_MISC_FILESYSTEMS is not set +CONFIG_NFS_FS=y +CONFIG_NFS_V3_ACL=y +CONFIG_NFS_V4=y +CONFIG_NFS_V4_1=y +CONFIG_ROOT_NFS=y +CONFIG_NLS_CODEPAGE_437=y +CONFIG_NLS_ISO8859_1=y +# CONFIG_ENABLE_WARN_DEPRECATED is not set +# CONFIG_ENABLE_MUST_CHECK is not set +# CONFIG_ARM_UNWIND is not set +# CONFIG_CRYPTO_ANSI_CPRNG is not set +# CONFIG_CRYPTO_HW is not set -- 1.8.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* Re: [PATCH] ARM: shmobile: Genmai defconfig 2013-10-09 6:51 ` Simon Horman @ 2013-10-14 22:09 ` Kevin Hilman -1 siblings, 0 replies; 776+ messages in thread From: Kevin Hilman @ 2013-10-14 22:09 UTC (permalink / raw) To: linux-arm-kernel Simon Horman <horms+renesas@verge.net.au> writes: > From: Magnus Damm <damm@opensource.se> > > Add a defconfig for the Genmai board. In the future this board will > use a shared defconfig for multiplatform, but until CCF is implemented > this will be used. How far in the future are we talking about? There's already 9 defconfigs for SH-mobile. Is this *really* the last one before multi-platform support? Kevin ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH] ARM: shmobile: Genmai defconfig @ 2013-10-14 22:09 ` Kevin Hilman 0 siblings, 0 replies; 776+ messages in thread From: Kevin Hilman @ 2013-10-14 22:09 UTC (permalink / raw) To: linux-arm-kernel Simon Horman <horms+renesas@verge.net.au> writes: > From: Magnus Damm <damm@opensource.se> > > Add a defconfig for the Genmai board. In the future this board will > use a shared defconfig for multiplatform, but until CCF is implemented > this will be used. How far in the future are we talking about? There's already 9 defconfigs for SH-mobile. Is this *really* the last one before multi-platform support? Kevin ^ permalink raw reply [flat|nested] 776+ messages in thread
* Re: [PATCH] ARM: shmobile: Genmai defconfig 2013-10-14 22:09 ` Kevin Hilman @ 2013-10-15 0:27 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-10-15 0:27 UTC (permalink / raw) To: linux-arm-kernel On Mon, Oct 14, 2013 at 03:09:48PM -0700, Kevin Hilman wrote: > Simon Horman <horms+renesas@verge.net.au> writes: > > > From: Magnus Damm <damm@opensource.se> > > > > Add a defconfig for the Genmai board. In the future this board will > > use a shared defconfig for multiplatform, but until CCF is implemented > > this will be used. > > How far in the future are we talking about? I believe we are talking about one or two release cycles. > There's already 9 defconfigs for SH-mobile. Is this *really* the last > one before multi-platform support? Yes, I believe it is. ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH] ARM: shmobile: Genmai defconfig @ 2013-10-15 0:27 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-10-15 0:27 UTC (permalink / raw) To: linux-arm-kernel On Mon, Oct 14, 2013 at 03:09:48PM -0700, Kevin Hilman wrote: > Simon Horman <horms+renesas@verge.net.au> writes: > > > From: Magnus Damm <damm@opensource.se> > > > > Add a defconfig for the Genmai board. In the future this board will > > use a shared defconfig for multiplatform, but until CCF is implemented > > this will be used. > > How far in the future are we talking about? I believe we are talking about one or two release cycles. > There's already 9 defconfigs for SH-mobile. Is this *really* the last > one before multi-platform support? Yes, I believe it is. ^ permalink raw reply [flat|nested] 776+ messages in thread
* Re: [PATCH] ARM: shmobile: Genmai defconfig 2013-10-14 22:09 ` Kevin Hilman @ 2013-10-15 2:00 ` Magnus Damm -1 siblings, 0 replies; 776+ messages in thread From: Magnus Damm @ 2013-10-15 2:00 UTC (permalink / raw) To: linux-arm-kernel On Tue, Oct 15, 2013 at 7:09 AM, Kevin Hilman <khilman@linaro.org> wrote: > Simon Horman <horms+renesas@verge.net.au> writes: > >> From: Magnus Damm <damm@opensource.se> >> >> Add a defconfig for the Genmai board. In the future this board will >> use a shared defconfig for multiplatform, but until CCF is implemented >> this will be used. > > How far in the future are we talking about? My plan is to implement and upstream CCF for r7s72100 now in Q4 of 2013. > There's already 9 defconfigs for SH-mobile. Is this *really* the last > one before multi-platform support? Yes, it is! From this time all the mach-shmobile boards have to be multi-platform from the start. Thanks, / magnus ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH] ARM: shmobile: Genmai defconfig @ 2013-10-15 2:00 ` Magnus Damm 0 siblings, 0 replies; 776+ messages in thread From: Magnus Damm @ 2013-10-15 2:00 UTC (permalink / raw) To: linux-arm-kernel On Tue, Oct 15, 2013 at 7:09 AM, Kevin Hilman <khilman@linaro.org> wrote: > Simon Horman <horms+renesas@verge.net.au> writes: > >> From: Magnus Damm <damm@opensource.se> >> >> Add a defconfig for the Genmai board. In the future this board will >> use a shared defconfig for multiplatform, but until CCF is implemented >> this will be used. > > How far in the future are we talking about? My plan is to implement and upstream CCF for r7s72100 now in Q4 of 2013. > There's already 9 defconfigs for SH-mobile. Is this *really* the last > one before multi-platform support? Yes, it is! From this time all the mach-shmobile boards have to be multi-platform from the start. Thanks, / magnus ^ permalink raw reply [flat|nested] 776+ messages in thread
* Re: [PATCH] ARM: shmobile: Genmai defconfig 2013-10-15 2:00 ` Magnus Damm @ 2013-10-15 14:13 ` Kevin Hilman -1 siblings, 0 replies; 776+ messages in thread From: Kevin Hilman @ 2013-10-15 14:13 UTC (permalink / raw) To: linux-arm-kernel Magnus Damm <magnus.damm@gmail.com> writes: > On Tue, Oct 15, 2013 at 7:09 AM, Kevin Hilman <khilman@linaro.org> wrote: >> Simon Horman <horms+renesas@verge.net.au> writes: >> >>> From: Magnus Damm <damm@opensource.se> >>> >>> Add a defconfig for the Genmai board. In the future this board will >>> use a shared defconfig for multiplatform, but until CCF is implemented >>> this will be used. >> >> How far in the future are we talking about? > > My plan is to implement and upstream CCF for r7s72100 now in Q4 of 2013. Great, thanks for the update. >> There's already 9 defconfigs for SH-mobile. Is this *really* the last >> one before multi-platform support? > > Yes, it is! From this time all the mach-shmobile boards have to be > multi-platform from the start. OK, then we'll take this as the last one. Thanks, Kevin ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH] ARM: shmobile: Genmai defconfig @ 2013-10-15 14:13 ` Kevin Hilman 0 siblings, 0 replies; 776+ messages in thread From: Kevin Hilman @ 2013-10-15 14:13 UTC (permalink / raw) To: linux-arm-kernel Magnus Damm <magnus.damm@gmail.com> writes: > On Tue, Oct 15, 2013 at 7:09 AM, Kevin Hilman <khilman@linaro.org> wrote: >> Simon Horman <horms+renesas@verge.net.au> writes: >> >>> From: Magnus Damm <damm@opensource.se> >>> >>> Add a defconfig for the Genmai board. In the future this board will >>> use a shared defconfig for multiplatform, but until CCF is implemented >>> this will be used. >> >> How far in the future are we talking about? > > My plan is to implement and upstream CCF for r7s72100 now in Q4 of 2013. Great, thanks for the update. >> There's already 9 defconfigs for SH-mobile. Is this *really* the last >> one before multi-platform support? > > Yes, it is! From this time all the mach-shmobile boards have to be > multi-platform from the start. OK, then we'll take this as the last one. Thanks, Kevin ^ permalink raw reply [flat|nested] 776+ messages in thread
* Re: [GIT PULL] Second round of Renesas ARM based SoC cleanups for v3.13 2013-10-08 9:05 ` Simon Horman @ 2013-10-10 22:19 ` Kevin Hilman -1 siblings, 0 replies; 776+ messages in thread From: Kevin Hilman @ 2013-10-10 22:19 UTC (permalink / raw) To: linux-arm-kernel Simon Horman <horms+renesas@verge.net.au> writes: > Hi Kevin, Olof and Arnd, > > please consider this Second round of Renesas ARM based SoC cleanups for v3.13. > It is based on renesas-cleanup-for-v3.13 which you have previously pulled. > > > The following changes since commit cde214a890f81797a5eee94fffc89c1de21ed991: > > ARM: shmobile: r8a7790: Constify platform data and resources (2013-09-19 14:33:44 -0700) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-cleanup2-for-v3.13 > > for you to fetch changes up to 27113d63daac0aacaa26b1fabfc23391de4284f4: > > ARM: shmobile: lager: Constify platform data and resources (2013-09-30 16:33:17 +0900) > > ---------------------------------------------------------------- > Second round of Renesas ARM based SoC cleanups for v3.13 > > * Constify platform data and resources in lager board code > * Clean up registration of VIN and sh_eth in r8a7778 SoC and > bockw board code > * Make r8a7778_register_hspi() static in r8a7778 SoC code Pulled into next/cleanup. Thanks, Kevin ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second round of Renesas ARM based SoC cleanups for v3.13 @ 2013-10-10 22:19 ` Kevin Hilman 0 siblings, 0 replies; 776+ messages in thread From: Kevin Hilman @ 2013-10-10 22:19 UTC (permalink / raw) To: linux-arm-kernel Simon Horman <horms+renesas@verge.net.au> writes: > Hi Kevin, Olof and Arnd, > > please consider this Second round of Renesas ARM based SoC cleanups for v3.13. > It is based on renesas-cleanup-for-v3.13 which you have previously pulled. > > > The following changes since commit cde214a890f81797a5eee94fffc89c1de21ed991: > > ARM: shmobile: r8a7790: Constify platform data and resources (2013-09-19 14:33:44 -0700) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-cleanup2-for-v3.13 > > for you to fetch changes up to 27113d63daac0aacaa26b1fabfc23391de4284f4: > > ARM: shmobile: lager: Constify platform data and resources (2013-09-30 16:33:17 +0900) > > ---------------------------------------------------------------- > Second round of Renesas ARM based SoC cleanups for v3.13 > > * Constify platform data and resources in lager board code > * Clean up registration of VIN and sh_eth in r8a7778 SoC and > bockw board code > * Make r8a7778_register_hspi() static in r8a7778 SoC code Pulled into next/cleanup. Thanks, Kevin ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM based SoC cleanups for v3.14 @ 2013-12-23 2:07 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-12-23 2:07 UTC (permalink / raw) To: linux-arm-kernel Hi Kevin, Hi Olof, Hi Arnd, please consider this second round of Renesas ARM based SoC cleanups for v3.14. It is based on the first round of cleanups, tagged as renesas-cleanup-for-v3.14, which you have already pulled. The following changes since commit 8af3f18b7b42e32387b54d2e2f8300589b0198e9: ARM: shmobile: sh7372: tidyup clock table order (2013-11-24 15:14:32 +0900) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-cleanup2-for-v3.14 for you to fetch changes up to 2eb7a8146f5ab5be7cde42438e32461f313d0d0b: ARM: shmobile: remove unnecessary platform_device as header cleanup (2013-12-12 21:52:43 +0900) ---------------------------------------------------------------- Second Round of Renesas ARM based SoC cleanups for v3.14 * r8a7779 SoC (R-Car H1) - Remove unnecessary platform device from header file ---------------------------------------------------------------- Kuninori Morimoto (1): ARM: shmobile: remove unnecessary platform_device as header cleanup arch/arm/mach-shmobile/include/mach/r8a7779.h | 2 -- 1 file changed, 2 deletions(-) ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM based SoC cleanups for v3.14 @ 2013-12-23 2:07 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-12-23 2:07 UTC (permalink / raw) To: linux-arm-kernel Hi Kevin, Hi Olof, Hi Arnd, please consider this second round of Renesas ARM based SoC cleanups for v3.14. It is based on the first round of cleanups, tagged as renesas-cleanup-for-v3.14, which you have already pulled. The following changes since commit 8af3f18b7b42e32387b54d2e2f8300589b0198e9: ARM: shmobile: sh7372: tidyup clock table order (2013-11-24 15:14:32 +0900) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-cleanup2-for-v3.14 for you to fetch changes up to 2eb7a8146f5ab5be7cde42438e32461f313d0d0b: ARM: shmobile: remove unnecessary platform_device as header cleanup (2013-12-12 21:52:43 +0900) ---------------------------------------------------------------- Second Round of Renesas ARM based SoC cleanups for v3.14 * r8a7779 SoC (R-Car H1) - Remove unnecessary platform device from header file ---------------------------------------------------------------- Kuninori Morimoto (1): ARM: shmobile: remove unnecessary platform_device as header cleanup arch/arm/mach-shmobile/include/mach/r8a7779.h | 2 -- 1 file changed, 2 deletions(-) ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH] ARM: shmobile: remove unnecessary platform_device as header cleanup 2013-12-23 2:07 ` Simon Horman @ 2013-12-23 2:07 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-12-23 2:07 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> 8e0e7aaef3c98c52e85f5640b73ffa82058abcfd (ARM: shmobile: Drop r8a7779_add_device_to_domain()) removed last user of struct platform_device on this header. It is no longer needed Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/include/mach/r8a7779.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/arm/mach-shmobile/include/mach/r8a7779.h b/arch/arm/mach-shmobile/include/mach/r8a7779.h index 5014145..b40e136 100644 --- a/arch/arm/mach-shmobile/include/mach/r8a7779.h +++ b/arch/arm/mach-shmobile/include/mach/r8a7779.h @@ -11,8 +11,6 @@ enum { HPBDMA_SLAVE_SDHI0_RX, }; -struct platform_device; - struct r8a7779_pm_ch { unsigned long chan_offs; unsigned int chan_bit; -- 1.8.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH] ARM: shmobile: remove unnecessary platform_device as header cleanup @ 2013-12-23 2:07 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-12-23 2:07 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> 8e0e7aaef3c98c52e85f5640b73ffa82058abcfd (ARM: shmobile: Drop r8a7779_add_device_to_domain()) removed last user of struct platform_device on this header. It is no longer needed Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/include/mach/r8a7779.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/arm/mach-shmobile/include/mach/r8a7779.h b/arch/arm/mach-shmobile/include/mach/r8a7779.h index 5014145..b40e136 100644 --- a/arch/arm/mach-shmobile/include/mach/r8a7779.h +++ b/arch/arm/mach-shmobile/include/mach/r8a7779.h @@ -11,8 +11,6 @@ enum { HPBDMA_SLAVE_SDHI0_RX, }; -struct platform_device; - struct r8a7779_pm_ch { unsigned long chan_offs; unsigned int chan_bit; -- 1.8.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* Re: [GIT PULL] Second Round of Renesas ARM based SoC cleanups for v3.14 2013-12-23 2:07 ` Simon Horman @ 2013-12-29 21:19 ` Olof Johansson -1 siblings, 0 replies; 776+ messages in thread From: Olof Johansson @ 2013-12-29 21:19 UTC (permalink / raw) To: linux-arm-kernel On Mon, Dec 23, 2013 at 11:07:37AM +0900, Simon Horman wrote: > Hi Kevin, Hi Olof, Hi Arnd, > > please consider this second round of Renesas ARM based SoC cleanups for v3.14. > > It is based on the first round of cleanups, tagged as > renesas-cleanup-for-v3.14, which you have already pulled. > > > The following changes since commit 8af3f18b7b42e32387b54d2e2f8300589b0198e9: > > ARM: shmobile: sh7372: tidyup clock table order (2013-11-24 15:14:32 +0900) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-cleanup2-for-v3.14 Pulled. -Olof ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM based SoC cleanups for v3.14 @ 2013-12-29 21:19 ` Olof Johansson 0 siblings, 0 replies; 776+ messages in thread From: Olof Johansson @ 2013-12-29 21:19 UTC (permalink / raw) To: linux-arm-kernel On Mon, Dec 23, 2013 at 11:07:37AM +0900, Simon Horman wrote: > Hi Kevin, Hi Olof, Hi Arnd, > > please consider this second round of Renesas ARM based SoC cleanups for v3.14. > > It is based on the first round of cleanups, tagged as > renesas-cleanup-for-v3.14, which you have already pulled. > > > The following changes since commit 8af3f18b7b42e32387b54d2e2f8300589b0198e9: > > ARM: shmobile: sh7372: tidyup clock table order (2013-11-24 15:14:32 +0900) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-cleanup2-for-v3.14 Pulled. -Olof ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC DT Fixes for v3.14 @ 2014-01-24 1:14 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-01-24 1:14 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Hi Kevin, Hi Arnd, please consider this second round of renesas ARM Based SoC DT fixes for v3.14. This pull-request is based on the first round of such fixes, tagged as renesas-dt-fixes-for-v3.14, which you have previously pulled. The following changes since commit 3effae8c26f451a9d572255c08dfbe342dd1dc98: Revert "ARM: shmobile: r8a7791: Add SSI clocks in device tree" (2013-12-26 14:16:54 +0900) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-dt-fixes2-for-v3.14 for you to fetch changes up to 2450badfc19b67340d3570665cc02a22df03dfab: ARM: shmobile: r8a7790.dtsi: ficx i2c[0-3] clock reference (2014-01-21 09:45:50 +0900) ---------------------------------------------------------------- Second Round of Renesas ARM Based SoC DT Fixes for v3.14 Correct i2c clock references for r8a7790 (R-Car H2) SoC The error was introduced in 72197ca7a1cb1cea5 ("ARM: shmobile: r8a7790: Reference clocks") which is queued up for v3.14. ---------------------------------------------------------------- Ben Dooks (1): ARM: shmobile: r8a7790.dtsi: ficx i2c[0-3] clock reference arch/arm/boot/dts/r8a7790.dtsi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC DT Fixes for v3.14 @ 2014-01-24 1:14 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-01-24 1:14 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Hi Kevin, Hi Arnd, please consider this second round of renesas ARM Based SoC DT fixes for v3.14. This pull-request is based on the first round of such fixes, tagged as renesas-dt-fixes-for-v3.14, which you have previously pulled. The following changes since commit 3effae8c26f451a9d572255c08dfbe342dd1dc98: Revert "ARM: shmobile: r8a7791: Add SSI clocks in device tree" (2013-12-26 14:16:54 +0900) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-dt-fixes2-for-v3.14 for you to fetch changes up to 2450badfc19b67340d3570665cc02a22df03dfab: ARM: shmobile: r8a7790.dtsi: ficx i2c[0-3] clock reference (2014-01-21 09:45:50 +0900) ---------------------------------------------------------------- Second Round of Renesas ARM Based SoC DT Fixes for v3.14 Correct i2c clock references for r8a7790 (R-Car H2) SoC The error was introduced in 72197ca7a1cb1cea5 ("ARM: shmobile: r8a7790: Reference clocks") which is queued up for v3.14. ---------------------------------------------------------------- Ben Dooks (1): ARM: shmobile: r8a7790.dtsi: ficx i2c[0-3] clock reference arch/arm/boot/dts/r8a7790.dtsi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH] ARM: shmobile: r8a7790.dtsi: ficx i2c[0-3] clock reference 2014-01-24 1:14 ` Simon Horman @ 2014-01-24 1:14 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-01-24 1:14 UTC (permalink / raw) To: linux-arm-kernel From: Ben Dooks <ben.dooks@codethink.co.uk> The R8A7790's dtsi file i2c0, i2c1, i2c2, and i2c3 nodes have clock references to the mstp3_clks clock node, however these clocks are in the mstp9_clks node. The error was introducted in 72197ca7a1cb1cea5 ("ARM: shmobile: r8a7790: Reference clocks") which is in Simon's current development tree. This patch fixes the following error: of_clk_src_onecell_get: invalid clock index 31 i2c-rcar e6508000.i2c: cannot get clock i2c-rcar: probe of e6508000.i2c failed with error -2 Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7790.dtsi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/r8a7790.dtsi b/arch/arm/boot/dts/r8a7790.dtsi index a179125..46ac214 100644 --- a/arch/arm/boot/dts/r8a7790.dtsi +++ b/arch/arm/boot/dts/r8a7790.dtsi @@ -197,7 +197,7 @@ reg = <0 0xe6508000 0 0x40>; interrupt-parent = <&gic>; interrupts = <0 287 IRQ_TYPE_LEVEL_HIGH>; - clocks = <&mstp3_clks R8A7790_CLK_I2C0>; + clocks = <&mstp9_clks R8A7790_CLK_I2C0>; status = "disabled"; }; @@ -208,7 +208,7 @@ reg = <0 0xe6518000 0 0x40>; interrupt-parent = <&gic>; interrupts = <0 288 IRQ_TYPE_LEVEL_HIGH>; - clocks = <&mstp3_clks R8A7790_CLK_I2C1>; + clocks = <&mstp9_clks R8A7790_CLK_I2C1>; status = "disabled"; }; @@ -219,7 +219,7 @@ reg = <0 0xe6530000 0 0x40>; interrupt-parent = <&gic>; interrupts = <0 286 IRQ_TYPE_LEVEL_HIGH>; - clocks = <&mstp3_clks R8A7790_CLK_I2C2>; + clocks = <&mstp9_clks R8A7790_CLK_I2C2>; status = "disabled"; }; @@ -230,7 +230,7 @@ reg = <0 0xe6540000 0 0x40>; interrupt-parent = <&gic>; interrupts = <0 290 IRQ_TYPE_LEVEL_HIGH>; - clocks = <&mstp3_clks R8A7790_CLK_I2C3>; + clocks = <&mstp9_clks R8A7790_CLK_I2C3>; status = "disabled"; }; -- 1.8.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH] ARM: shmobile: r8a7790.dtsi: ficx i2c[0-3] clock reference @ 2014-01-24 1:14 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-01-24 1:14 UTC (permalink / raw) To: linux-arm-kernel From: Ben Dooks <ben.dooks@codethink.co.uk> The R8A7790's dtsi file i2c0, i2c1, i2c2, and i2c3 nodes have clock references to the mstp3_clks clock node, however these clocks are in the mstp9_clks node. The error was introducted in 72197ca7a1cb1cea5 ("ARM: shmobile: r8a7790: Reference clocks") which is in Simon's current development tree. This patch fixes the following error: of_clk_src_onecell_get: invalid clock index 31 i2c-rcar e6508000.i2c: cannot get clock i2c-rcar: probe of e6508000.i2c failed with error -2 Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7790.dtsi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/r8a7790.dtsi b/arch/arm/boot/dts/r8a7790.dtsi index a179125..46ac214 100644 --- a/arch/arm/boot/dts/r8a7790.dtsi +++ b/arch/arm/boot/dts/r8a7790.dtsi @@ -197,7 +197,7 @@ reg = <0 0xe6508000 0 0x40>; interrupt-parent = <&gic>; interrupts = <0 287 IRQ_TYPE_LEVEL_HIGH>; - clocks = <&mstp3_clks R8A7790_CLK_I2C0>; + clocks = <&mstp9_clks R8A7790_CLK_I2C0>; status = "disabled"; }; @@ -208,7 +208,7 @@ reg = <0 0xe6518000 0 0x40>; interrupt-parent = <&gic>; interrupts = <0 288 IRQ_TYPE_LEVEL_HIGH>; - clocks = <&mstp3_clks R8A7790_CLK_I2C1>; + clocks = <&mstp9_clks R8A7790_CLK_I2C1>; status = "disabled"; }; @@ -219,7 +219,7 @@ reg = <0 0xe6530000 0 0x40>; interrupt-parent = <&gic>; interrupts = <0 286 IRQ_TYPE_LEVEL_HIGH>; - clocks = <&mstp3_clks R8A7790_CLK_I2C2>; + clocks = <&mstp9_clks R8A7790_CLK_I2C2>; status = "disabled"; }; @@ -230,7 +230,7 @@ reg = <0 0xe6540000 0 0x40>; interrupt-parent = <&gic>; interrupts = <0 290 IRQ_TYPE_LEVEL_HIGH>; - clocks = <&mstp3_clks R8A7790_CLK_I2C3>; + clocks = <&mstp9_clks R8A7790_CLK_I2C3>; status = "disabled"; }; -- 1.8.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC Clock Updates for v3.15 @ 2014-03-06 5:05 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-03-06 5:05 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Hi Kevin, Hi Arnd, Please consider this second round of Renesas ARM based SoC clock updates for v3.15. This pull request is based on the previous round of such requests, tagged as renesas-clock-for-v3.15, which I have already sent a pull-request for. The following changes since commit df55f6685a04a259cf59cd3fde02212b294461cc: ARM: shmobile: Remove legacy r8a7790 DT clocks (2014-02-24 08:54:44 +0900) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-clock2-for-v3.15 for you to fetch changes up to 9ced1d47719b5f32e4231338dd362c136518ed08: ARM: shmobile: r8a7790: add sound SCU clock support (2014-02-24 10:03:02 +0900) ---------------------------------------------------------------- Second Round of Renesas ARM Based SoC Clock Updates for v3.15 r8a7790 (R-Car H2) SoC - Add sound SCU clock support r8a7791 (R-Car M2) SoC - Remove legacy clock aliases for DT devices ---------------------------------------------------------------- Kuninori Morimoto (1): ARM: shmobile: r8a7790: add sound SCU clock support Laurent Pinchart (1): ARM: shmobile: r8a7791: Remove legacy clock aliases for DT devices arch/arm/mach-shmobile/clock-r8a7790.c | 25 +++++++++++++++++++++++++ arch/arm/mach-shmobile/clock-r8a7791.c | 1 - 2 files changed, 25 insertions(+), 1 deletion(-) ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC Clock Updates for v3.15 @ 2014-03-06 5:05 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-03-06 5:05 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Hi Kevin, Hi Arnd, Please consider this second round of Renesas ARM based SoC clock updates for v3.15. This pull request is based on the previous round of such requests, tagged as renesas-clock-for-v3.15, which I have already sent a pull-request for. The following changes since commit df55f6685a04a259cf59cd3fde02212b294461cc: ARM: shmobile: Remove legacy r8a7790 DT clocks (2014-02-24 08:54:44 +0900) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-clock2-for-v3.15 for you to fetch changes up to 9ced1d47719b5f32e4231338dd362c136518ed08: ARM: shmobile: r8a7790: add sound SCU clock support (2014-02-24 10:03:02 +0900) ---------------------------------------------------------------- Second Round of Renesas ARM Based SoC Clock Updates for v3.15 r8a7790 (R-Car H2) SoC - Add sound SCU clock support r8a7791 (R-Car M2) SoC - Remove legacy clock aliases for DT devices ---------------------------------------------------------------- Kuninori Morimoto (1): ARM: shmobile: r8a7790: add sound SCU clock support Laurent Pinchart (1): ARM: shmobile: r8a7791: Remove legacy clock aliases for DT devices arch/arm/mach-shmobile/clock-r8a7790.c | 25 +++++++++++++++++++++++++ arch/arm/mach-shmobile/clock-r8a7791.c | 1 - 2 files changed, 25 insertions(+), 1 deletion(-) ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH 1/2] ARM: shmobile: r8a7791: Remove legacy clock aliases for DT devices 2014-03-06 5:05 ` Simon Horman @ 2014-03-06 5:05 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-03-06 5:05 UTC (permalink / raw) To: linux-arm-kernel From: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Now that the r8a7791 DT platforms use the common clock framework, there's no need to manually create clock aliases for devices instantiated through DT, as those devices will reference their clocks directly in the device tree. Remove those aliases. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/clock-r8a7791.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/mach-shmobile/clock-r8a7791.c b/arch/arm/mach-shmobile/clock-r8a7791.c index 3e1b6b6..605fc77 100644 --- a/arch/arm/mach-shmobile/clock-r8a7791.c +++ b/arch/arm/mach-shmobile/clock-r8a7791.c @@ -267,7 +267,6 @@ static struct clk_lookup lookups[] = { CLKDEV_DEV_ID("sh_mobile_sdhi.2", &mstp_clks[MSTP311]), CLKDEV_DEV_ID("sh_cmt.0", &mstp_clks[MSTP124]), CLKDEV_DEV_ID("qspi.0", &mstp_clks[MSTP917]), - CLKDEV_DEV_ID("e61f0000.thermal", &mstp_clks[MSTP522]), CLKDEV_DEV_ID("rcar_thermal", &mstp_clks[MSTP522]), CLKDEV_DEV_ID("i2c-rcar_gen2.0", &mstp_clks[MSTP931]), CLKDEV_DEV_ID("i2c-rcar_gen2.1", &mstp_clks[MSTP930]), -- 1.8.5.2 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 1/2] ARM: shmobile: r8a7791: Remove legacy clock aliases for DT devices @ 2014-03-06 5:05 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-03-06 5:05 UTC (permalink / raw) To: linux-arm-kernel From: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Now that the r8a7791 DT platforms use the common clock framework, there's no need to manually create clock aliases for devices instantiated through DT, as those devices will reference their clocks directly in the device tree. Remove those aliases. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/clock-r8a7791.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/mach-shmobile/clock-r8a7791.c b/arch/arm/mach-shmobile/clock-r8a7791.c index 3e1b6b6..605fc77 100644 --- a/arch/arm/mach-shmobile/clock-r8a7791.c +++ b/arch/arm/mach-shmobile/clock-r8a7791.c @@ -267,7 +267,6 @@ static struct clk_lookup lookups[] = { CLKDEV_DEV_ID("sh_mobile_sdhi.2", &mstp_clks[MSTP311]), CLKDEV_DEV_ID("sh_cmt.0", &mstp_clks[MSTP124]), CLKDEV_DEV_ID("qspi.0", &mstp_clks[MSTP917]), - CLKDEV_DEV_ID("e61f0000.thermal", &mstp_clks[MSTP522]), CLKDEV_DEV_ID("rcar_thermal", &mstp_clks[MSTP522]), CLKDEV_DEV_ID("i2c-rcar_gen2.0", &mstp_clks[MSTP931]), CLKDEV_DEV_ID("i2c-rcar_gen2.1", &mstp_clks[MSTP930]), -- 1.8.5.2 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 1/2] ARM: shmobile: r8a7791: remove deprecated #gpio-range-cells from dtsi 2014-03-06 5:05 ` Simon Horman (?) @ 2015-11-24 21:32 ` Wolfram Sang -1 siblings, 0 replies; 776+ messages in thread From: Wolfram Sang @ 2015-11-24 21:32 UTC (permalink / raw) To: linux-sh From: Wolfram Sang <wsa+renesas@sang-engineering.com> Commit a1bc260bb5f5d9 ("gpio: clean up gpio-ranges documentation") declares the above property deprecated. That was more than 2 years ago. Remove it, so it doesn't get copied around needlessly. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> --- arch/arm/boot/dts/r8a7791.dtsi | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/boot/dts/r8a7791.dtsi b/arch/arm/boot/dts/r8a7791.dtsi index d79102c0e7d346..17f6a76f7b2ab8 100644 --- a/arch/arm/boot/dts/r8a7791.dtsi +++ b/arch/arm/boot/dts/r8a7791.dtsi @@ -509,7 +509,6 @@ pfc: pfc@e6060000 { compatible = "renesas,pfc-r8a7791"; reg = <0 0xe6060000 0 0x250>; - #gpio-range-cells = <3>; }; mmcif0: mmc@ee200000 { -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* Re: [PATCH 1/2] ARM: shmobile: r8a7791: remove deprecated #gpio-range-cells from dtsi 2014-03-06 5:05 ` Simon Horman (?) (?) @ 2015-11-25 0:31 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-11-25 0:31 UTC (permalink / raw) To: linux-sh On Tue, Nov 24, 2015 at 10:32:22PM +0100, Wolfram Sang wrote: > From: Wolfram Sang <wsa+renesas@sang-engineering.com> > > Commit a1bc260bb5f5d9 ("gpio: clean up gpio-ranges documentation") > declares the above property deprecated. That was more than 2 years ago. > Remove it, so it doesn't get copied around needlessly. > > Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Thanks, I have queued this up. ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH 2/2] ARM: shmobile: r8a7790: add sound SCU clock support 2014-03-06 5:05 ` Simon Horman @ 2014-03-06 5:05 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-03-06 5:05 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> This is needed to use SRC (= Sampling Rate Converter). MSTP1017 is defined top of MSTPxxx list to avoid runtime error, since it is parent clock of MSTP1031 - MSTP1022 Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/clock-r8a7790.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/arch/arm/mach-shmobile/clock-r8a7790.c b/arch/arm/mach-shmobile/clock-r8a7790.c index 02b94036..3f93503 100644 --- a/arch/arm/mach-shmobile/clock-r8a7790.c +++ b/arch/arm/mach-shmobile/clock-r8a7790.c @@ -204,6 +204,10 @@ static struct clk div6_clks[DIV6_NR] = { /* MSTP */ enum { + MSTP1017, /* parent of SCU */ + + MSTP1031, MSTP1030, + MSTP1029, MSTP1028, MSTP1027, MSTP1026, MSTP1025, MSTP1024, MSTP1023, MSTP1022, MSTP1015, MSTP1014, MSTP1013, MSTP1012, MSTP1011, MSTP1010, MSTP1009, MSTP1008, MSTP1007, MSTP1006, MSTP1005, MSTP931, MSTP930, MSTP929, MSTP928, @@ -223,6 +227,17 @@ enum { }; static struct clk mstp_clks[MSTP_NR] = { + [MSTP1031] = SH_CLK_MSTP32_STS(&mstp_clks[MSTP1017], SMSTPCR10, 31, MSTPSR10, 0), /* SCU0 */ + [MSTP1030] = SH_CLK_MSTP32_STS(&mstp_clks[MSTP1017], SMSTPCR10, 30, MSTPSR10, 0), /* SCU1 */ + [MSTP1029] = SH_CLK_MSTP32_STS(&mstp_clks[MSTP1017], SMSTPCR10, 29, MSTPSR10, 0), /* SCU2 */ + [MSTP1028] = SH_CLK_MSTP32_STS(&mstp_clks[MSTP1017], SMSTPCR10, 28, MSTPSR10, 0), /* SCU3 */ + [MSTP1027] = SH_CLK_MSTP32_STS(&mstp_clks[MSTP1017], SMSTPCR10, 27, MSTPSR10, 0), /* SCU4 */ + [MSTP1026] = SH_CLK_MSTP32_STS(&mstp_clks[MSTP1017], SMSTPCR10, 26, MSTPSR10, 0), /* SCU5 */ + [MSTP1025] = SH_CLK_MSTP32_STS(&mstp_clks[MSTP1017], SMSTPCR10, 25, MSTPSR10, 0), /* SCU6 */ + [MSTP1024] = SH_CLK_MSTP32_STS(&mstp_clks[MSTP1017], SMSTPCR10, 24, MSTPSR10, 0), /* SCU7 */ + [MSTP1023] = SH_CLK_MSTP32_STS(&mstp_clks[MSTP1017], SMSTPCR10, 23, MSTPSR10, 0), /* SCU8 */ + [MSTP1022] = SH_CLK_MSTP32_STS(&mstp_clks[MSTP1017], SMSTPCR10, 22, MSTPSR10, 0), /* SCU9 */ + [MSTP1017] = SH_CLK_MSTP32_STS(&p_clk, SMSTPCR10, 17, MSTPSR10, 0), /* SCU */ [MSTP1015] = SH_CLK_MSTP32_STS(&p_clk, SMSTPCR10, 15, MSTPSR10, 0), /* SSI0 */ [MSTP1014] = SH_CLK_MSTP32_STS(&p_clk, SMSTPCR10, 14, MSTPSR10, 0), /* SSI1 */ [MSTP1013] = SH_CLK_MSTP32_STS(&p_clk, SMSTPCR10, 13, MSTPSR10, 0), /* SSI2 */ @@ -366,6 +381,16 @@ static struct clk_lookup lookups[] = { CLKDEV_ICK_ID("clk_b", "rcar_sound", &audio_clk_b), CLKDEV_ICK_ID("clk_c", "rcar_sound", &audio_clk_c), CLKDEV_ICK_ID("clk_i", "rcar_sound", &m2_clk), + CLKDEV_ICK_ID("scu.0", "rcar_sound", &mstp_clks[MSTP1031]), + CLKDEV_ICK_ID("scu.1", "rcar_sound", &mstp_clks[MSTP1030]), + CLKDEV_ICK_ID("scu.2", "rcar_sound", &mstp_clks[MSTP1029]), + CLKDEV_ICK_ID("scu.3", "rcar_sound", &mstp_clks[MSTP1028]), + CLKDEV_ICK_ID("scu.4", "rcar_sound", &mstp_clks[MSTP1027]), + CLKDEV_ICK_ID("scu.5", "rcar_sound", &mstp_clks[MSTP1026]), + CLKDEV_ICK_ID("scu.6", "rcar_sound", &mstp_clks[MSTP1025]), + CLKDEV_ICK_ID("scu.7", "rcar_sound", &mstp_clks[MSTP1024]), + CLKDEV_ICK_ID("scu.8", "rcar_sound", &mstp_clks[MSTP1023]), + CLKDEV_ICK_ID("scu.9", "rcar_sound", &mstp_clks[MSTP1022]), CLKDEV_ICK_ID("ssi.0", "rcar_sound", &mstp_clks[MSTP1015]), CLKDEV_ICK_ID("ssi.1", "rcar_sound", &mstp_clks[MSTP1014]), CLKDEV_ICK_ID("ssi.2", "rcar_sound", &mstp_clks[MSTP1013]), -- 1.8.5.2 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 2/2] ARM: shmobile: r8a7790: add sound SCU clock support @ 2014-03-06 5:05 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-03-06 5:05 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> This is needed to use SRC (= Sampling Rate Converter). MSTP1017 is defined top of MSTPxxx list to avoid runtime error, since it is parent clock of MSTP1031 - MSTP1022 Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/clock-r8a7790.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/arch/arm/mach-shmobile/clock-r8a7790.c b/arch/arm/mach-shmobile/clock-r8a7790.c index 02b94036..3f93503 100644 --- a/arch/arm/mach-shmobile/clock-r8a7790.c +++ b/arch/arm/mach-shmobile/clock-r8a7790.c @@ -204,6 +204,10 @@ static struct clk div6_clks[DIV6_NR] = { /* MSTP */ enum { + MSTP1017, /* parent of SCU */ + + MSTP1031, MSTP1030, + MSTP1029, MSTP1028, MSTP1027, MSTP1026, MSTP1025, MSTP1024, MSTP1023, MSTP1022, MSTP1015, MSTP1014, MSTP1013, MSTP1012, MSTP1011, MSTP1010, MSTP1009, MSTP1008, MSTP1007, MSTP1006, MSTP1005, MSTP931, MSTP930, MSTP929, MSTP928, @@ -223,6 +227,17 @@ enum { }; static struct clk mstp_clks[MSTP_NR] = { + [MSTP1031] = SH_CLK_MSTP32_STS(&mstp_clks[MSTP1017], SMSTPCR10, 31, MSTPSR10, 0), /* SCU0 */ + [MSTP1030] = SH_CLK_MSTP32_STS(&mstp_clks[MSTP1017], SMSTPCR10, 30, MSTPSR10, 0), /* SCU1 */ + [MSTP1029] = SH_CLK_MSTP32_STS(&mstp_clks[MSTP1017], SMSTPCR10, 29, MSTPSR10, 0), /* SCU2 */ + [MSTP1028] = SH_CLK_MSTP32_STS(&mstp_clks[MSTP1017], SMSTPCR10, 28, MSTPSR10, 0), /* SCU3 */ + [MSTP1027] = SH_CLK_MSTP32_STS(&mstp_clks[MSTP1017], SMSTPCR10, 27, MSTPSR10, 0), /* SCU4 */ + [MSTP1026] = SH_CLK_MSTP32_STS(&mstp_clks[MSTP1017], SMSTPCR10, 26, MSTPSR10, 0), /* SCU5 */ + [MSTP1025] = SH_CLK_MSTP32_STS(&mstp_clks[MSTP1017], SMSTPCR10, 25, MSTPSR10, 0), /* SCU6 */ + [MSTP1024] = SH_CLK_MSTP32_STS(&mstp_clks[MSTP1017], SMSTPCR10, 24, MSTPSR10, 0), /* SCU7 */ + [MSTP1023] = SH_CLK_MSTP32_STS(&mstp_clks[MSTP1017], SMSTPCR10, 23, MSTPSR10, 0), /* SCU8 */ + [MSTP1022] = SH_CLK_MSTP32_STS(&mstp_clks[MSTP1017], SMSTPCR10, 22, MSTPSR10, 0), /* SCU9 */ + [MSTP1017] = SH_CLK_MSTP32_STS(&p_clk, SMSTPCR10, 17, MSTPSR10, 0), /* SCU */ [MSTP1015] = SH_CLK_MSTP32_STS(&p_clk, SMSTPCR10, 15, MSTPSR10, 0), /* SSI0 */ [MSTP1014] = SH_CLK_MSTP32_STS(&p_clk, SMSTPCR10, 14, MSTPSR10, 0), /* SSI1 */ [MSTP1013] = SH_CLK_MSTP32_STS(&p_clk, SMSTPCR10, 13, MSTPSR10, 0), /* SSI2 */ @@ -366,6 +381,16 @@ static struct clk_lookup lookups[] = { CLKDEV_ICK_ID("clk_b", "rcar_sound", &audio_clk_b), CLKDEV_ICK_ID("clk_c", "rcar_sound", &audio_clk_c), CLKDEV_ICK_ID("clk_i", "rcar_sound", &m2_clk), + CLKDEV_ICK_ID("scu.0", "rcar_sound", &mstp_clks[MSTP1031]), + CLKDEV_ICK_ID("scu.1", "rcar_sound", &mstp_clks[MSTP1030]), + CLKDEV_ICK_ID("scu.2", "rcar_sound", &mstp_clks[MSTP1029]), + CLKDEV_ICK_ID("scu.3", "rcar_sound", &mstp_clks[MSTP1028]), + CLKDEV_ICK_ID("scu.4", "rcar_sound", &mstp_clks[MSTP1027]), + CLKDEV_ICK_ID("scu.5", "rcar_sound", &mstp_clks[MSTP1026]), + CLKDEV_ICK_ID("scu.6", "rcar_sound", &mstp_clks[MSTP1025]), + CLKDEV_ICK_ID("scu.7", "rcar_sound", &mstp_clks[MSTP1024]), + CLKDEV_ICK_ID("scu.8", "rcar_sound", &mstp_clks[MSTP1023]), + CLKDEV_ICK_ID("scu.9", "rcar_sound", &mstp_clks[MSTP1022]), CLKDEV_ICK_ID("ssi.0", "rcar_sound", &mstp_clks[MSTP1015]), CLKDEV_ICK_ID("ssi.1", "rcar_sound", &mstp_clks[MSTP1014]), CLKDEV_ICK_ID("ssi.2", "rcar_sound", &mstp_clks[MSTP1013]), -- 1.8.5.2 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* Re: [GIT PULL] Second Round of Renesas ARM Based SoC Clock Updates for v3.15 2014-03-06 5:05 ` Simon Horman @ 2014-03-17 7:48 ` Olof Johansson -1 siblings, 0 replies; 776+ messages in thread From: Olof Johansson @ 2014-03-17 7:48 UTC (permalink / raw) To: linux-arm-kernel On Thu, Mar 06, 2014 at 02:05:14PM +0900, Simon Horman wrote: > Hi Olof, Hi Kevin, Hi Arnd, > > Please consider this second round of Renesas ARM based SoC clock updates > for v3.15. > > This pull request is based on the previous round of > such requests, tagged as renesas-clock-for-v3.15, > which I have already sent a pull-request for. > > > The following changes since commit df55f6685a04a259cf59cd3fde02212b294461cc: > > ARM: shmobile: Remove legacy r8a7790 DT clocks (2014-02-24 08:54:44 +0900) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-clock2-for-v3.15 Merged, thanks! -Olof ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC Clock Updates for v3.15 @ 2014-03-17 7:48 ` Olof Johansson 0 siblings, 0 replies; 776+ messages in thread From: Olof Johansson @ 2014-03-17 7:48 UTC (permalink / raw) To: linux-arm-kernel On Thu, Mar 06, 2014 at 02:05:14PM +0900, Simon Horman wrote: > Hi Olof, Hi Kevin, Hi Arnd, > > Please consider this second round of Renesas ARM based SoC clock updates > for v3.15. > > This pull request is based on the previous round of > such requests, tagged as renesas-clock-for-v3.15, > which I have already sent a pull-request for. > > > The following changes since commit df55f6685a04a259cf59cd3fde02212b294461cc: > > ARM: shmobile: Remove legacy r8a7790 DT clocks (2014-02-24 08:54:44 +0900) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-clock2-for-v3.15 Merged, thanks! -Olof ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC DT Updates for v3.16 @ 2014-04-29 2:15 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-04-29 2:15 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Hi Kevin, Hi Arnd, Please consider these second round of Renesas ARM based SoC DT updates for v3.16. This pull request is based on the previous round of such requests, tagged as renesas-dt-for-v3.16, which I have already sent a pull-request for. The following changes since commit dd485ab9a88267f4db0d58ace23b19e876ebf8ac: ARM: shmobile: armadillo-reference dts: Seiko Instruments, Inc is "sii" (2014-04-16 10:03:42 +0900) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-dt2-for-v3.16 for you to fetch changes up to 5a62ec57004f1a434bfd3feed43e447b5780baf6: ARM: shmobile: henninger: enable SATA0 (2014-04-28 09:12:04 +0900) ---------------------------------------------------------------- Second Round of Renesas ARM Based SoC DT Updates for v3.16 * Add r8a7791 (R-Car M2) based Henninger board ---------------------------------------------------------------- Sergei Shtylyov (3): ARM: shmobile: henninger: initial device tree ARM: shmobile: henninger: add Ether DT support ARM: shmobile: henninger: enable SATA0 arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/r8a7791-henninger.dts | 80 +++++++++++++++++++++++++++++++++ 2 files changed, 81 insertions(+) create mode 100644 arch/arm/boot/dts/r8a7791-henninger.dts ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC DT Updates for v3.16 @ 2014-04-29 2:15 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-04-29 2:15 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Hi Kevin, Hi Arnd, Please consider these second round of Renesas ARM based SoC DT updates for v3.16. This pull request is based on the previous round of such requests, tagged as renesas-dt-for-v3.16, which I have already sent a pull-request for. The following changes since commit dd485ab9a88267f4db0d58ace23b19e876ebf8ac: ARM: shmobile: armadillo-reference dts: Seiko Instruments, Inc is "sii" (2014-04-16 10:03:42 +0900) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-dt2-for-v3.16 for you to fetch changes up to 5a62ec57004f1a434bfd3feed43e447b5780baf6: ARM: shmobile: henninger: enable SATA0 (2014-04-28 09:12:04 +0900) ---------------------------------------------------------------- Second Round of Renesas ARM Based SoC DT Updates for v3.16 * Add r8a7791 (R-Car M2) based Henninger board ---------------------------------------------------------------- Sergei Shtylyov (3): ARM: shmobile: henninger: initial device tree ARM: shmobile: henninger: add Ether DT support ARM: shmobile: henninger: enable SATA0 arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/r8a7791-henninger.dts | 80 +++++++++++++++++++++++++++++++++ 2 files changed, 81 insertions(+) create mode 100644 arch/arm/boot/dts/r8a7791-henninger.dts ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH 1/3] ARM: shmobile: henninger: initial device tree 2014-04-29 2:15 ` Simon Horman @ 2014-04-29 2:15 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-04-29 2:15 UTC (permalink / raw) To: linux-arm-kernel From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Add the initial device tree for the R8A7791 SoC based Henninger board. SCIF0 serial port support is included, so that the serial console can work. Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/r8a7791-henninger.dts | 50 +++++++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 arch/arm/boot/dts/r8a7791-henninger.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 35c146f..2e9b6e0 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -322,6 +322,7 @@ dtb-$(CONFIG_ARCH_SHMOBILE_LEGACY) += emev2-kzm9d.dtb \ sh7372-mackerel.dtb dtb-$(CONFIG_ARCH_SHMOBILE_MULTI) += emev2-kzm9d.dtb \ r7s72100-genmai-reference.dtb \ + r8a7791-henninger.dtb \ r8a7791-koelsch.dtb \ r8a7790-lager.dtb dtb-$(CONFIG_ARCH_SOCFPGA) += socfpga_arria5_socdk.dtb \ diff --git a/arch/arm/boot/dts/r8a7791-henninger.dts b/arch/arm/boot/dts/r8a7791-henninger.dts new file mode 100644 index 0000000..0053f52 --- /dev/null +++ b/arch/arm/boot/dts/r8a7791-henninger.dts @@ -0,0 +1,50 @@ +/* + * Device Tree Source for the Henninger board + * + * Copyright (C) 2014 Renesas Solutions Corp. + * Copyright (C) 2014 Cogent Embedded, Inc. + * + * This file is licensed under the terms of the GNU General Public License + * version 2. This program is licensed "as is" without any warranty of any + * kind, whether express or implied. + */ + +/dts-v1/; +#include "r8a7791.dtsi" + +/ { + model = "Henninger"; + compatible = "renesas,henninger", "renesas,r8a7791"; + + aliases { + serial0 = &scif0; + }; + + chosen { + bootargs = "console=ttySC0,38400 ignore_loglevel"; + }; + + memory@40000000 { + device_type = "memory"; + reg = <0 0x40000000 0 0x40000000>; + }; + + memory@200000000 { + device_type = "memory"; + reg = <2 0x00000000 0 0x40000000>; + }; +}; + +&pfc { + scif0_pins: serial0 { + renesas,groups = "scif0_data_d"; + renesas,function = "scif0"; + }; +}; + +&scif0 { + pinctrl-0 = <&scif0_pins>; + pinctrl-names = "default"; + + status = "okay"; +}; -- 1.8.5.2 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 1/3] ARM: shmobile: henninger: initial device tree @ 2014-04-29 2:15 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-04-29 2:15 UTC (permalink / raw) To: linux-arm-kernel From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Add the initial device tree for the R8A7791 SoC based Henninger board. SCIF0 serial port support is included, so that the serial console can work. Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/r8a7791-henninger.dts | 50 +++++++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 arch/arm/boot/dts/r8a7791-henninger.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 35c146f..2e9b6e0 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -322,6 +322,7 @@ dtb-$(CONFIG_ARCH_SHMOBILE_LEGACY) += emev2-kzm9d.dtb \ sh7372-mackerel.dtb dtb-$(CONFIG_ARCH_SHMOBILE_MULTI) += emev2-kzm9d.dtb \ r7s72100-genmai-reference.dtb \ + r8a7791-henninger.dtb \ r8a7791-koelsch.dtb \ r8a7790-lager.dtb dtb-$(CONFIG_ARCH_SOCFPGA) += socfpga_arria5_socdk.dtb \ diff --git a/arch/arm/boot/dts/r8a7791-henninger.dts b/arch/arm/boot/dts/r8a7791-henninger.dts new file mode 100644 index 0000000..0053f52 --- /dev/null +++ b/arch/arm/boot/dts/r8a7791-henninger.dts @@ -0,0 +1,50 @@ +/* + * Device Tree Source for the Henninger board + * + * Copyright (C) 2014 Renesas Solutions Corp. + * Copyright (C) 2014 Cogent Embedded, Inc. + * + * This file is licensed under the terms of the GNU General Public License + * version 2. This program is licensed "as is" without any warranty of any + * kind, whether express or implied. + */ + +/dts-v1/; +#include "r8a7791.dtsi" + +/ { + model = "Henninger"; + compatible = "renesas,henninger", "renesas,r8a7791"; + + aliases { + serial0 = &scif0; + }; + + chosen { + bootargs = "console=ttySC0,38400 ignore_loglevel"; + }; + + memory at 40000000 { + device_type = "memory"; + reg = <0 0x40000000 0 0x40000000>; + }; + + memory at 200000000 { + device_type = "memory"; + reg = <2 0x00000000 0 0x40000000>; + }; +}; + +&pfc { + scif0_pins: serial0 { + renesas,groups = "scif0_data_d"; + renesas,function = "scif0"; + }; +}; + +&scif0 { + pinctrl-0 = <&scif0_pins>; + pinctrl-names = "default"; + + status = "okay"; +}; -- 1.8.5.2 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 2/3] ARM: shmobile: henninger: add Ether DT support 2014-04-29 2:15 ` Simon Horman @ 2014-04-29 2:15 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-04-29 2:15 UTC (permalink / raw) To: linux-arm-kernel From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Define the Henninger board dependent part of the Ether device node. Enable DHCP and NFS root for the kernel booting. Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791-henninger.dts | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/r8a7791-henninger.dts b/arch/arm/boot/dts/r8a7791-henninger.dts index 0053f52..f82f306 100644 --- a/arch/arm/boot/dts/r8a7791-henninger.dts +++ b/arch/arm/boot/dts/r8a7791-henninger.dts @@ -21,7 +21,7 @@ }; chosen { - bootargs = "console=ttySC0,38400 ignore_loglevel"; + bootargs = "console=ttySC0,38400 ignore_loglevel rw root=/dev/nfs ip=dhcp"; }; memory@40000000 { @@ -40,6 +40,16 @@ renesas,groups = "scif0_data_d"; renesas,function = "scif0"; }; + + ether_pins: ether { + renesas,groups = "eth_link", "eth_mdio", "eth_rmii"; + renesas,function = "eth"; + }; + + phy1_pins: phy1 { + renesas,groups = "intc_irq0"; + renesas,function = "intc"; + }; }; &scif0 { @@ -48,3 +58,19 @@ status = "okay"; }; + +ðer { + pinctrl-0 = <ðer_pins &phy1_pins>; + pinctrl-names = "default"; + + phy-handle = <&phy1>; + renesas,ether-link-active-low; + status = "ok"; + + phy1: ethernet-phy@1 { + reg = <1>; + interrupt-parent = <&irqc0>; + interrupts = <0 IRQ_TYPE_LEVEL_LOW>; + micrel,led-mode = <1>; + }; +}; -- 1.8.5.2 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 2/3] ARM: shmobile: henninger: add Ether DT support @ 2014-04-29 2:15 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-04-29 2:15 UTC (permalink / raw) To: linux-arm-kernel From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Define the Henninger board dependent part of the Ether device node. Enable DHCP and NFS root for the kernel booting. Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791-henninger.dts | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/r8a7791-henninger.dts b/arch/arm/boot/dts/r8a7791-henninger.dts index 0053f52..f82f306 100644 --- a/arch/arm/boot/dts/r8a7791-henninger.dts +++ b/arch/arm/boot/dts/r8a7791-henninger.dts @@ -21,7 +21,7 @@ }; chosen { - bootargs = "console=ttySC0,38400 ignore_loglevel"; + bootargs = "console=ttySC0,38400 ignore_loglevel rw root=/dev/nfs ip=dhcp"; }; memory at 40000000 { @@ -40,6 +40,16 @@ renesas,groups = "scif0_data_d"; renesas,function = "scif0"; }; + + ether_pins: ether { + renesas,groups = "eth_link", "eth_mdio", "eth_rmii"; + renesas,function = "eth"; + }; + + phy1_pins: phy1 { + renesas,groups = "intc_irq0"; + renesas,function = "intc"; + }; }; &scif0 { @@ -48,3 +58,19 @@ status = "okay"; }; + +ðer { + pinctrl-0 = <ðer_pins &phy1_pins>; + pinctrl-names = "default"; + + phy-handle = <&phy1>; + renesas,ether-link-active-low; + status = "ok"; + + phy1: ethernet-phy at 1 { + reg = <1>; + interrupt-parent = <&irqc0>; + interrupts = <0 IRQ_TYPE_LEVEL_LOW>; + micrel,led-mode = <1>; + }; +}; -- 1.8.5.2 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 3/3] ARM: shmobile: henninger: enable SATA0 2014-04-29 2:15 ` Simon Horman @ 2014-04-29 2:15 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-04-29 2:15 UTC (permalink / raw) To: linux-arm-kernel From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Enable SATA0 device for the Henninger board. Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791-henninger.dts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/r8a7791-henninger.dts b/arch/arm/boot/dts/r8a7791-henninger.dts index f82f306..6e67cea 100644 --- a/arch/arm/boot/dts/r8a7791-henninger.dts +++ b/arch/arm/boot/dts/r8a7791-henninger.dts @@ -74,3 +74,7 @@ micrel,led-mode = <1>; }; }; + +&sata0 { + status = "okay"; +}; -- 1.8.5.2 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 3/3] ARM: shmobile: henninger: enable SATA0 @ 2014-04-29 2:15 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-04-29 2:15 UTC (permalink / raw) To: linux-arm-kernel From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Enable SATA0 device for the Henninger board. Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791-henninger.dts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/r8a7791-henninger.dts b/arch/arm/boot/dts/r8a7791-henninger.dts index f82f306..6e67cea 100644 --- a/arch/arm/boot/dts/r8a7791-henninger.dts +++ b/arch/arm/boot/dts/r8a7791-henninger.dts @@ -74,3 +74,7 @@ micrel,led-mode = <1>; }; }; + +&sata0 { + status = "okay"; +}; -- 1.8.5.2 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* Re: [GIT PULL] Second Round of Renesas ARM Based SoC DT Updates for v3.16 2014-04-29 2:15 ` Simon Horman @ 2014-05-06 1:44 ` Olof Johansson -1 siblings, 0 replies; 776+ messages in thread From: Olof Johansson @ 2014-05-06 1:44 UTC (permalink / raw) To: linux-arm-kernel On Tue, Apr 29, 2014 at 11:15:32AM +0900, Simon Horman wrote: > Hi Olof, Hi Kevin, Hi Arnd, > > Please consider these second round of > Renesas ARM based SoC DT updates for v3.16. > > This pull request is based on the previous round of > such requests, tagged as renesas-dt-for-v3.16, > which I have already sent a pull-request for. > > > The following changes since commit dd485ab9a88267f4db0d58ace23b19e876ebf8ac: > > ARM: shmobile: armadillo-reference dts: Seiko Instruments, Inc is "sii" (2014-04-16 10:03:42 +0900) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-dt2-for-v3.16 > > for you to fetch changes up to 5a62ec57004f1a434bfd3feed43e447b5780baf6: > > ARM: shmobile: henninger: enable SATA0 (2014-04-28 09:12:04 +0900) Merged, thanks. -Olof ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC DT Updates for v3.16 @ 2014-05-06 1:44 ` Olof Johansson 0 siblings, 0 replies; 776+ messages in thread From: Olof Johansson @ 2014-05-06 1:44 UTC (permalink / raw) To: linux-arm-kernel On Tue, Apr 29, 2014 at 11:15:32AM +0900, Simon Horman wrote: > Hi Olof, Hi Kevin, Hi Arnd, > > Please consider these second round of > Renesas ARM based SoC DT updates for v3.16. > > This pull request is based on the previous round of > such requests, tagged as renesas-dt-for-v3.16, > which I have already sent a pull-request for. > > > The following changes since commit dd485ab9a88267f4db0d58ace23b19e876ebf8ac: > > ARM: shmobile: armadillo-reference dts: Seiko Instruments, Inc is "sii" (2014-04-16 10:03:42 +0900) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-dt2-for-v3.16 > > for you to fetch changes up to 5a62ec57004f1a434bfd3feed43e447b5780baf6: > > ARM: shmobile: henninger: enable SATA0 (2014-04-28 09:12:04 +0900) Merged, thanks. -Olof ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC Updates for v3.16 @ 2014-04-29 2:15 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-04-29 2:15 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Hi Kevin, Hi Arnd, Please consider these second round of Renesas ARM based SoC updates for v3.16. This pull request is based on the previous round of such requests, tagged as renesas-soc-for-v3.16, which I have already sent a pull-request for. The following changes since commit e35db38d66d1e4007cfc1bb90a05e11b4aaee2a8: ARM: shmobile: r8a7778/bockw: Move "select RENESAS_INTC_IRQPIN" under SoC (2014-04-14 11:28:43 +0900) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-soc2-for-v3.16 for you to fetch changes up to ab496b9d259e754f5d646219e4f032b274b9fffe: ARM: shmobile: Ignore callbacks for subsys generic_pm_domain_data (2014-04-25 10:01:43 +0900) ---------------------------------------------------------------- Second Round of Renesas ARM Based SoC Updates for v3.16 Power management code which is only used by sh7372 (SH-Mobile AP4) based Mackerl board * Ignore callbacks for subsys generic_pm_domain_data ---------------------------------------------------------------- Ulf Hansson (1): ARM: shmobile: Ignore callbacks for subsys generic_pm_domain_data arch/arm/mach-shmobile/pm-rmobile.c | 38 +++---------------------------------- 1 file changed, 3 insertions(+), 35 deletions(-) ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC Updates for v3.16 @ 2014-04-29 2:15 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-04-29 2:15 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Hi Kevin, Hi Arnd, Please consider these second round of Renesas ARM based SoC updates for v3.16. This pull request is based on the previous round of such requests, tagged as renesas-soc-for-v3.16, which I have already sent a pull-request for. The following changes since commit e35db38d66d1e4007cfc1bb90a05e11b4aaee2a8: ARM: shmobile: r8a7778/bockw: Move "select RENESAS_INTC_IRQPIN" under SoC (2014-04-14 11:28:43 +0900) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-soc2-for-v3.16 for you to fetch changes up to ab496b9d259e754f5d646219e4f032b274b9fffe: ARM: shmobile: Ignore callbacks for subsys generic_pm_domain_data (2014-04-25 10:01:43 +0900) ---------------------------------------------------------------- Second Round of Renesas ARM Based SoC Updates for v3.16 Power management code which is only used by sh7372 (SH-Mobile AP4) based Mackerl board * Ignore callbacks for subsys generic_pm_domain_data ---------------------------------------------------------------- Ulf Hansson (1): ARM: shmobile: Ignore callbacks for subsys generic_pm_domain_data arch/arm/mach-shmobile/pm-rmobile.c | 38 +++---------------------------------- 1 file changed, 3 insertions(+), 35 deletions(-) ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH] ARM: shmobile: Ignore callbacks for subsys generic_pm_domain_data 2014-04-29 2:15 ` Simon Horman @ 2014-04-29 2:15 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-04-29 2:15 UTC (permalink / raw) To: linux-arm-kernel From: Ulf Hansson <ulf.hansson@linaro.org> There are no active users of these callbacks, thus there are no benefit of trying to invoke them. Cc: Simon Horman <horms@verge.net.au> Cc: Magnus Damm <magnus.damm@gmail.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/pm-rmobile.c | 38 +++---------------------------------- 1 file changed, 3 insertions(+), 35 deletions(-) diff --git a/arch/arm/mach-shmobile/pm-rmobile.c b/arch/arm/mach-shmobile/pm-rmobile.c index 1fc05d9..f710235 100644 --- a/arch/arm/mach-shmobile/pm-rmobile.c +++ b/arch/arm/mach-shmobile/pm-rmobile.c @@ -99,39 +99,7 @@ static int rmobile_pd_power_up(struct generic_pm_domain *genpd) static bool rmobile_pd_active_wakeup(struct device *dev) { - bool (*active_wakeup)(struct device *dev); - - active_wakeup = dev_gpd_data(dev)->ops.active_wakeup; - return active_wakeup ? active_wakeup(dev) : true; -} - -static int rmobile_pd_stop_dev(struct device *dev) -{ - int (*stop)(struct device *dev); - - stop = dev_gpd_data(dev)->ops.stop; - if (stop) { - int ret = stop(dev); - if (ret) - return ret; - } - return pm_clk_suspend(dev); -} - -static int rmobile_pd_start_dev(struct device *dev) -{ - int (*start)(struct device *dev); - int ret; - - ret = pm_clk_resume(dev); - if (ret) - return ret; - - start = dev_gpd_data(dev)->ops.start; - if (start) - ret = start(dev); - - return ret; + return true; } static void rmobile_init_pm_domain(struct rmobile_pm_domain *rmobile_pd) @@ -140,8 +108,8 @@ static void rmobile_init_pm_domain(struct rmobile_pm_domain *rmobile_pd) struct dev_power_governor *gov = rmobile_pd->gov; pm_genpd_init(genpd, gov ? : &simple_qos_governor, false); - genpd->dev_ops.stop = rmobile_pd_stop_dev; - genpd->dev_ops.start = rmobile_pd_start_dev; + genpd->dev_ops.stop = pm_clk_suspend; + genpd->dev_ops.start = pm_clk_resume; genpd->dev_ops.active_wakeup = rmobile_pd_active_wakeup; genpd->dev_irq_safe = true; genpd->power_off = rmobile_pd_power_down; -- 1.8.5.2 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH] ARM: shmobile: Ignore callbacks for subsys generic_pm_domain_data @ 2014-04-29 2:15 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-04-29 2:15 UTC (permalink / raw) To: linux-arm-kernel From: Ulf Hansson <ulf.hansson@linaro.org> There are no active users of these callbacks, thus there are no benefit of trying to invoke them. Cc: Simon Horman <horms@verge.net.au> Cc: Magnus Damm <magnus.damm@gmail.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/pm-rmobile.c | 38 +++---------------------------------- 1 file changed, 3 insertions(+), 35 deletions(-) diff --git a/arch/arm/mach-shmobile/pm-rmobile.c b/arch/arm/mach-shmobile/pm-rmobile.c index 1fc05d9..f710235 100644 --- a/arch/arm/mach-shmobile/pm-rmobile.c +++ b/arch/arm/mach-shmobile/pm-rmobile.c @@ -99,39 +99,7 @@ static int rmobile_pd_power_up(struct generic_pm_domain *genpd) static bool rmobile_pd_active_wakeup(struct device *dev) { - bool (*active_wakeup)(struct device *dev); - - active_wakeup = dev_gpd_data(dev)->ops.active_wakeup; - return active_wakeup ? active_wakeup(dev) : true; -} - -static int rmobile_pd_stop_dev(struct device *dev) -{ - int (*stop)(struct device *dev); - - stop = dev_gpd_data(dev)->ops.stop; - if (stop) { - int ret = stop(dev); - if (ret) - return ret; - } - return pm_clk_suspend(dev); -} - -static int rmobile_pd_start_dev(struct device *dev) -{ - int (*start)(struct device *dev); - int ret; - - ret = pm_clk_resume(dev); - if (ret) - return ret; - - start = dev_gpd_data(dev)->ops.start; - if (start) - ret = start(dev); - - return ret; + return true; } static void rmobile_init_pm_domain(struct rmobile_pm_domain *rmobile_pd) @@ -140,8 +108,8 @@ static void rmobile_init_pm_domain(struct rmobile_pm_domain *rmobile_pd) struct dev_power_governor *gov = rmobile_pd->gov; pm_genpd_init(genpd, gov ? : &simple_qos_governor, false); - genpd->dev_ops.stop = rmobile_pd_stop_dev; - genpd->dev_ops.start = rmobile_pd_start_dev; + genpd->dev_ops.stop = pm_clk_suspend; + genpd->dev_ops.start = pm_clk_resume; genpd->dev_ops.active_wakeup = rmobile_pd_active_wakeup; genpd->dev_irq_safe = true; genpd->power_off = rmobile_pd_power_down; -- 1.8.5.2 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* Re: [GIT PULL] Second Round of Renesas ARM Based SoC Updates for v3.16 2014-04-29 2:15 ` Simon Horman @ 2014-05-06 1:46 ` Olof Johansson -1 siblings, 0 replies; 776+ messages in thread From: Olof Johansson @ 2014-05-06 1:46 UTC (permalink / raw) To: linux-arm-kernel On Tue, Apr 29, 2014 at 11:15:38AM +0900, Simon Horman wrote: > Hi Olof, Hi Kevin, Hi Arnd, > > Please consider these second round of Renesas ARM based SoC updates for v3.16. > > This pull request is based on the previous round of > such requests, tagged as renesas-soc-for-v3.16, > which I have already sent a pull-request for. > > > The following changes since commit e35db38d66d1e4007cfc1bb90a05e11b4aaee2a8: > > ARM: shmobile: r8a7778/bockw: Move "select RENESAS_INTC_IRQPIN" under SoC (2014-04-14 11:28:43 +0900) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-soc2-for-v3.16 > > for you to fetch changes up to ab496b9d259e754f5d646219e4f032b274b9fffe: > > ARM: shmobile: Ignore callbacks for subsys generic_pm_domain_data (2014-04-25 10:01:43 +0900) Merged into next/soc. It's OK to keep it here, but pure removals like these usually go in the cleanup branch. It can be tricky when there's dependencies on new code though, which you might have had in this case. Either way, no need to respin, etc. -Olof ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC Updates for v3.16 @ 2014-05-06 1:46 ` Olof Johansson 0 siblings, 0 replies; 776+ messages in thread From: Olof Johansson @ 2014-05-06 1:46 UTC (permalink / raw) To: linux-arm-kernel On Tue, Apr 29, 2014 at 11:15:38AM +0900, Simon Horman wrote: > Hi Olof, Hi Kevin, Hi Arnd, > > Please consider these second round of Renesas ARM based SoC updates for v3.16. > > This pull request is based on the previous round of > such requests, tagged as renesas-soc-for-v3.16, > which I have already sent a pull-request for. > > > The following changes since commit e35db38d66d1e4007cfc1bb90a05e11b4aaee2a8: > > ARM: shmobile: r8a7778/bockw: Move "select RENESAS_INTC_IRQPIN" under SoC (2014-04-14 11:28:43 +0900) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-soc2-for-v3.16 > > for you to fetch changes up to ab496b9d259e754f5d646219e4f032b274b9fffe: > > ARM: shmobile: Ignore callbacks for subsys generic_pm_domain_data (2014-04-25 10:01:43 +0900) Merged into next/soc. It's OK to keep it here, but pure removals like these usually go in the cleanup branch. It can be tricky when there's dependencies on new code though, which you might have had in this case. Either way, no need to respin, etc. -Olof ^ permalink raw reply [flat|nested] 776+ messages in thread
* Re: [GIT PULL] Second Round of Renesas ARM Based SoC Updates for v3.16 2014-05-06 1:46 ` Olof Johansson @ 2014-05-07 4:54 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-05-07 4:54 UTC (permalink / raw) To: linux-arm-kernel On Mon, May 05, 2014 at 06:46:23PM -0700, Olof Johansson wrote: > On Tue, Apr 29, 2014 at 11:15:38AM +0900, Simon Horman wrote: > > Hi Olof, Hi Kevin, Hi Arnd, > > > > Please consider these second round of Renesas ARM based SoC updates for v3.16. > > > > This pull request is based on the previous round of > > such requests, tagged as renesas-soc-for-v3.16, > > which I have already sent a pull-request for. > > > > > > The following changes since commit e35db38d66d1e4007cfc1bb90a05e11b4aaee2a8: > > > > ARM: shmobile: r8a7778/bockw: Move "select RENESAS_INTC_IRQPIN" under SoC (2014-04-14 11:28:43 +0900) > > > > are available in the git repository at: > > > > git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-soc2-for-v3.16 > > > > for you to fetch changes up to ab496b9d259e754f5d646219e4f032b274b9fffe: > > > > ARM: shmobile: Ignore callbacks for subsys generic_pm_domain_data (2014-04-25 10:01:43 +0900) > > Merged into next/soc. It's OK to keep it here, but pure removals like > these usually go in the cleanup branch. It can be tricky when there's > dependencies on new code though, which you might have had in this > case. Either way, no need to respin, etc. Thanks, noted. In this case I think that there aren't any awkward dependencies. ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC Updates for v3.16 @ 2014-05-07 4:54 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-05-07 4:54 UTC (permalink / raw) To: linux-arm-kernel On Mon, May 05, 2014 at 06:46:23PM -0700, Olof Johansson wrote: > On Tue, Apr 29, 2014 at 11:15:38AM +0900, Simon Horman wrote: > > Hi Olof, Hi Kevin, Hi Arnd, > > > > Please consider these second round of Renesas ARM based SoC updates for v3.16. > > > > This pull request is based on the previous round of > > such requests, tagged as renesas-soc-for-v3.16, > > which I have already sent a pull-request for. > > > > > > The following changes since commit e35db38d66d1e4007cfc1bb90a05e11b4aaee2a8: > > > > ARM: shmobile: r8a7778/bockw: Move "select RENESAS_INTC_IRQPIN" under SoC (2014-04-14 11:28:43 +0900) > > > > are available in the git repository at: > > > > git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-soc2-for-v3.16 > > > > for you to fetch changes up to ab496b9d259e754f5d646219e4f032b274b9fffe: > > > > ARM: shmobile: Ignore callbacks for subsys generic_pm_domain_data (2014-04-25 10:01:43 +0900) > > Merged into next/soc. It's OK to keep it here, but pure removals like > these usually go in the cleanup branch. It can be tricky when there's > dependencies on new code though, which you might have had in this > case. Either way, no need to respin, etc. Thanks, noted. In this case I think that there aren't any awkward dependencies. ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC Clock Updates for v3.16 @ 2014-05-13 8:03 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-05-13 8:03 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Hi Kevin, Hi Arnd, Please consider these second round of Renesas ARM based SoC clock updates for v3.16. This pull request is based on the previous round of such requests, tagged as renesas-clock-for-v3.16, which you have already pulled. The following changes since commit 932616eed0308cbebbb20a079e4bed3674bf1117: ARM: shmobile: r8a7790: remove old style audio clock (2014-04-14 12:49:43 +0900) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-clock2-for-v3.16 for you to fetch changes up to a505daa501dc3f02b08d0b48b049bce719299b74: ARM: shmobile: r8a7791: Correct SYS-DMAC clock defines (2014-05-13 10:16:42 +0900) ---------------------------------------------------------------- Second Round of Renesas ARM Based SoC Clock Updates for v3.16 r8a7791 (R-Car M2) SoC * Correct SYS-DMAC clock defines r8a7740 (R-Mobile A1) SoC * Correct name of DT Ethernet clock ---------------------------------------------------------------- Geert Uytterhoeven (2): ARM: shmobile: r8a7740: Correct name of DT Ethernet clock ARM: shmobile: r8a7791: Correct SYS-DMAC clock defines arch/arm/mach-shmobile/clock-r8a7740.c | 2 +- include/dt-bindings/clock/r8a7791-clock.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC Clock Updates for v3.16 @ 2014-05-13 8:03 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-05-13 8:03 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Hi Kevin, Hi Arnd, Please consider these second round of Renesas ARM based SoC clock updates for v3.16. This pull request is based on the previous round of such requests, tagged as renesas-clock-for-v3.16, which you have already pulled. The following changes since commit 932616eed0308cbebbb20a079e4bed3674bf1117: ARM: shmobile: r8a7790: remove old style audio clock (2014-04-14 12:49:43 +0900) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-clock2-for-v3.16 for you to fetch changes up to a505daa501dc3f02b08d0b48b049bce719299b74: ARM: shmobile: r8a7791: Correct SYS-DMAC clock defines (2014-05-13 10:16:42 +0900) ---------------------------------------------------------------- Second Round of Renesas ARM Based SoC Clock Updates for v3.16 r8a7791 (R-Car M2) SoC * Correct SYS-DMAC clock defines r8a7740 (R-Mobile A1) SoC * Correct name of DT Ethernet clock ---------------------------------------------------------------- Geert Uytterhoeven (2): ARM: shmobile: r8a7740: Correct name of DT Ethernet clock ARM: shmobile: r8a7791: Correct SYS-DMAC clock defines arch/arm/mach-shmobile/clock-r8a7740.c | 2 +- include/dt-bindings/clock/r8a7791-clock.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH 1/2] ARM: shmobile: r8a7740: Correct name of DT Ethernet clock 2014-05-13 8:03 ` Simon Horman @ 2014-05-13 8:03 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-05-13 8:03 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> The preferred node name in DT for an Ethernet device is "ethernet". "sh-eth" was used in preliminary and incomplete bindings. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/clock-r8a7740.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-shmobile/clock-r8a7740.c b/arch/arm/mach-shmobile/clock-r8a7740.c index dd989f9..433ec67 100644 --- a/arch/arm/mach-shmobile/clock-r8a7740.c +++ b/arch/arm/mach-shmobile/clock-r8a7740.c @@ -596,7 +596,7 @@ static struct clk_lookup lookups[] = { CLKDEV_DEV_ID("sh_mmcif", &mstp_clks[MSTP312]), CLKDEV_DEV_ID("e6bd0000.mmc", &mstp_clks[MSTP312]), CLKDEV_DEV_ID("r8a7740-gether", &mstp_clks[MSTP309]), - CLKDEV_DEV_ID("e9a00000.sh-eth", &mstp_clks[MSTP309]), + CLKDEV_DEV_ID("e9a00000.ethernet", &mstp_clks[MSTP309]), CLKDEV_DEV_ID("renesas-tpu-pwm", &mstp_clks[MSTP304]), CLKDEV_DEV_ID("e6600000.pwm", &mstp_clks[MSTP304]), -- 1.8.5.2 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 1/2] ARM: shmobile: r8a7740: Correct name of DT Ethernet clock @ 2014-05-13 8:03 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-05-13 8:03 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> The preferred node name in DT for an Ethernet device is "ethernet". "sh-eth" was used in preliminary and incomplete bindings. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/clock-r8a7740.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-shmobile/clock-r8a7740.c b/arch/arm/mach-shmobile/clock-r8a7740.c index dd989f9..433ec67 100644 --- a/arch/arm/mach-shmobile/clock-r8a7740.c +++ b/arch/arm/mach-shmobile/clock-r8a7740.c @@ -596,7 +596,7 @@ static struct clk_lookup lookups[] = { CLKDEV_DEV_ID("sh_mmcif", &mstp_clks[MSTP312]), CLKDEV_DEV_ID("e6bd0000.mmc", &mstp_clks[MSTP312]), CLKDEV_DEV_ID("r8a7740-gether", &mstp_clks[MSTP309]), - CLKDEV_DEV_ID("e9a00000.sh-eth", &mstp_clks[MSTP309]), + CLKDEV_DEV_ID("e9a00000.ethernet", &mstp_clks[MSTP309]), CLKDEV_DEV_ID("renesas-tpu-pwm", &mstp_clks[MSTP304]), CLKDEV_DEV_ID("e6600000.pwm", &mstp_clks[MSTP304]), -- 1.8.5.2 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 2/2] ARM: shmobile: r8a7791: Correct SYS-DMAC clock defines 2014-05-13 8:03 ` Simon Horman @ 2014-05-13 8:03 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-05-13 8:03 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> R-Car M2 has two MSTP bits for SYS-DMAC, not one. Also bring the naming in sync with the documentation. This issue was introduced in v3.14, in commit 4d8864c9e94ec727f1c675b9f6921525c360334b ("ARM: shmobile: r8a7791: Add clock index macros for DT sources"). Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- include/dt-bindings/clock/r8a7791-clock.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/dt-bindings/clock/r8a7791-clock.h b/include/dt-bindings/clock/r8a7791-clock.h index f069bc6..c3b0130 100644 --- a/include/dt-bindings/clock/r8a7791-clock.h +++ b/include/dt-bindings/clock/r8a7791-clock.h @@ -43,7 +43,8 @@ #define R8A7791_CLK_SCIFB1 7 #define R8A7791_CLK_MSIOF1 8 #define R8A7791_CLK_SCIFB2 16 -#define R8A7791_CLK_DMAC 18 +#define R8A7791_CLK_SYS_DMAC1 18 +#define R8A7791_CLK_SYS_DMAC0 19 /* MSTP3 */ #define R8A7791_CLK_TPU0 4 -- 1.8.5.2 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 2/2] ARM: shmobile: r8a7791: Correct SYS-DMAC clock defines @ 2014-05-13 8:03 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-05-13 8:03 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> R-Car M2 has two MSTP bits for SYS-DMAC, not one. Also bring the naming in sync with the documentation. This issue was introduced in v3.14, in commit 4d8864c9e94ec727f1c675b9f6921525c360334b ("ARM: shmobile: r8a7791: Add clock index macros for DT sources"). Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- include/dt-bindings/clock/r8a7791-clock.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/dt-bindings/clock/r8a7791-clock.h b/include/dt-bindings/clock/r8a7791-clock.h index f069bc6..c3b0130 100644 --- a/include/dt-bindings/clock/r8a7791-clock.h +++ b/include/dt-bindings/clock/r8a7791-clock.h @@ -43,7 +43,8 @@ #define R8A7791_CLK_SCIFB1 7 #define R8A7791_CLK_MSIOF1 8 #define R8A7791_CLK_SCIFB2 16 -#define R8A7791_CLK_DMAC 18 +#define R8A7791_CLK_SYS_DMAC1 18 +#define R8A7791_CLK_SYS_DMAC0 19 /* MSTP3 */ #define R8A7791_CLK_TPU0 4 -- 1.8.5.2 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* Re: [GIT PULL] Second Round of Renesas ARM Based SoC Clock Updates for v3.16 2014-05-13 8:03 ` Simon Horman @ 2014-05-20 5:36 ` Olof Johansson -1 siblings, 0 replies; 776+ messages in thread From: Olof Johansson @ 2014-05-20 5:36 UTC (permalink / raw) To: linux-arm-kernel On Tue, May 13, 2014 at 05:03:28PM +0900, Simon Horman wrote: > Hi Olof, Hi Kevin, Hi Arnd, > > Please consider these second round of > Renesas ARM based SoC clock updates for v3.16. > > This pull request is based on the previous round of > such requests, tagged as renesas-clock-for-v3.16, > which you have already pulled. > > > The following changes since commit 932616eed0308cbebbb20a079e4bed3674bf1117: > > ARM: shmobile: r8a7790: remove old style audio clock (2014-04-14 12:49:43 +0900) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-clock2-for-v3.16 > > for you to fetch changes up to a505daa501dc3f02b08d0b48b049bce719299b74: > > ARM: shmobile: r8a7791: Correct SYS-DMAC clock defines (2014-05-13 10:16:42 +0900) > > ---------------------------------------------------------------- > Second Round of Renesas ARM Based SoC Clock Updates for v3.16 > > r8a7791 (R-Car M2) SoC > * Correct SYS-DMAC clock defines > > r8a7740 (R-Mobile A1) SoC > * Correct name of DT Ethernet clock Merged, thanks. -Olof ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC Clock Updates for v3.16 @ 2014-05-20 5:36 ` Olof Johansson 0 siblings, 0 replies; 776+ messages in thread From: Olof Johansson @ 2014-05-20 5:36 UTC (permalink / raw) To: linux-arm-kernel On Tue, May 13, 2014 at 05:03:28PM +0900, Simon Horman wrote: > Hi Olof, Hi Kevin, Hi Arnd, > > Please consider these second round of > Renesas ARM based SoC clock updates for v3.16. > > This pull request is based on the previous round of > such requests, tagged as renesas-clock-for-v3.16, > which you have already pulled. > > > The following changes since commit 932616eed0308cbebbb20a079e4bed3674bf1117: > > ARM: shmobile: r8a7790: remove old style audio clock (2014-04-14 12:49:43 +0900) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-clock2-for-v3.16 > > for you to fetch changes up to a505daa501dc3f02b08d0b48b049bce719299b74: > > ARM: shmobile: r8a7791: Correct SYS-DMAC clock defines (2014-05-13 10:16:42 +0900) > > ---------------------------------------------------------------- > Second Round of Renesas ARM Based SoC Clock Updates for v3.16 > > r8a7791 (R-Car M2) SoC > * Correct SYS-DMAC clock defines > > r8a7740 (R-Mobile A1) SoC > * Correct name of DT Ethernet clock Merged, thanks. -Olof ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC Boards Updates for v3.16 @ 2014-05-14 7:26 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-05-14 7:26 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Hi Kevin, Hi Arnd, Please consider these second round of Renesas ARM based SoC boards updates for v3.16. This pull request is based on the previous round of such requests, tagged as renesas-boards-for-v3.16, which you have previously pulled. The following changes since commit a09b2f0ba170dc89a67d6c4c4f027b37a085dad9: ARM: shmobile: lager legacy: Enable Quad SPI transfers for the SPI FLASH (2014-04-15 08:13:22 +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.16 for you to fetch changes up to fd105ecf17fe459d979f336a7389d87172a1cf6d: ARM: shmobile: Minor cleanup of the Armadillo legacy board code (2014-05-11 20:59:57 +0900) ---------------------------------------------------------------- Second Round of Renesas ARM Based SoC Boards Updates for v3.16 r8a7740 (R-Mobile A1) based Armadillo800 EVA board * Minor cleanup of the Armadillo legacy board code ---------------------------------------------------------------- Magnus Damm (1): ARM: shmobile: Minor cleanup of the Armadillo legacy board code arch/arm/mach-shmobile/board-armadillo800eva.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC Boards Updates for v3.16 @ 2014-05-14 7:26 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-05-14 7:26 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Hi Kevin, Hi Arnd, Please consider these second round of Renesas ARM based SoC boards updates for v3.16. This pull request is based on the previous round of such requests, tagged as renesas-boards-for-v3.16, which you have previously pulled. The following changes since commit a09b2f0ba170dc89a67d6c4c4f027b37a085dad9: ARM: shmobile: lager legacy: Enable Quad SPI transfers for the SPI FLASH (2014-04-15 08:13:22 +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.16 for you to fetch changes up to fd105ecf17fe459d979f336a7389d87172a1cf6d: ARM: shmobile: Minor cleanup of the Armadillo legacy board code (2014-05-11 20:59:57 +0900) ---------------------------------------------------------------- Second Round of Renesas ARM Based SoC Boards Updates for v3.16 r8a7740 (R-Mobile A1) based Armadillo800 EVA board * Minor cleanup of the Armadillo legacy board code ---------------------------------------------------------------- Magnus Damm (1): ARM: shmobile: Minor cleanup of the Armadillo legacy board code arch/arm/mach-shmobile/board-armadillo800eva.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH] ARM: shmobile: Minor cleanup of the Armadillo legacy board code 2014-05-14 7:26 ` Simon Horman @ 2014-05-14 7:26 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-05-14 7:26 UTC (permalink / raw) To: linux-arm-kernel From: Magnus Damm <damm+renesas@opensource.se> Cleanup the legacy Armadillo board code slightly by removing the pointless eva_add_early_devices() function Signed-off-by: Magnus Damm <damm+renesas@opensource.se> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/board-armadillo800eva.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/arch/arm/mach-shmobile/board-armadillo800eva.c b/arch/arm/mach-shmobile/board-armadillo800eva.c index 2858f38..4eb9a13 100644 --- a/arch/arm/mach-shmobile/board-armadillo800eva.c +++ b/arch/arm/mach-shmobile/board-armadillo800eva.c @@ -1299,11 +1299,6 @@ static void __init eva_earlytimer_init(void) eva_clock_init(); } -static void __init eva_add_early_devices(void) -{ - r8a7740_add_early_devices(); -} - #define RESCNT2 IOMEM(0xe6188020) static void eva_restart(enum reboot_mode mode, const char *cmd) { @@ -1318,7 +1313,7 @@ static const char *eva_boards_compat_dt[] __initdata = { DT_MACHINE_START(ARMADILLO800EVA_DT, "armadillo800eva") .map_io = r8a7740_map_io, - .init_early = eva_add_early_devices, + .init_early = r8a7740_add_early_devices, .init_irq = r8a7740_init_irq_of, .init_machine = eva_init, .init_late = shmobile_init_late, -- 1.8.5.2 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH] ARM: shmobile: Minor cleanup of the Armadillo legacy board code @ 2014-05-14 7:26 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-05-14 7:26 UTC (permalink / raw) To: linux-arm-kernel From: Magnus Damm <damm+renesas@opensource.se> Cleanup the legacy Armadillo board code slightly by removing the pointless eva_add_early_devices() function Signed-off-by: Magnus Damm <damm+renesas@opensource.se> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/board-armadillo800eva.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/arch/arm/mach-shmobile/board-armadillo800eva.c b/arch/arm/mach-shmobile/board-armadillo800eva.c index 2858f38..4eb9a13 100644 --- a/arch/arm/mach-shmobile/board-armadillo800eva.c +++ b/arch/arm/mach-shmobile/board-armadillo800eva.c @@ -1299,11 +1299,6 @@ static void __init eva_earlytimer_init(void) eva_clock_init(); } -static void __init eva_add_early_devices(void) -{ - r8a7740_add_early_devices(); -} - #define RESCNT2 IOMEM(0xe6188020) static void eva_restart(enum reboot_mode mode, const char *cmd) { @@ -1318,7 +1313,7 @@ static const char *eva_boards_compat_dt[] __initdata = { DT_MACHINE_START(ARMADILLO800EVA_DT, "armadillo800eva") .map_io = r8a7740_map_io, - .init_early = eva_add_early_devices, + .init_early = r8a7740_add_early_devices, .init_irq = r8a7740_init_irq_of, .init_machine = eva_init, .init_late = shmobile_init_late, -- 1.8.5.2 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* Re: [GIT PULL] Second Round of Renesas ARM Based SoC Boards Updates for v3.16 2014-05-14 7:26 ` Simon Horman @ 2014-05-20 5:39 ` Olof Johansson -1 siblings, 0 replies; 776+ messages in thread From: Olof Johansson @ 2014-05-20 5:39 UTC (permalink / raw) To: linux-arm-kernel On Wed, May 14, 2014 at 04:26:55PM +0900, Simon Horman wrote: > Hi Olof, Hi Kevin, Hi Arnd, > > Please consider these second round of > Renesas ARM based SoC boards updates for v3.16. > > This pull request is based on the previous round of > such requests, tagged as renesas-boards-for-v3.16, > which you have previously pulled. > > > The following changes since commit a09b2f0ba170dc89a67d6c4c4f027b37a085dad9: > > ARM: shmobile: lager legacy: Enable Quad SPI transfers for the SPI FLASH (2014-04-15 08:13:22 +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.16 > > for you to fetch changes up to fd105ecf17fe459d979f336a7389d87172a1cf6d: > > ARM: shmobile: Minor cleanup of the Armadillo legacy board code (2014-05-11 20:59:57 +0900) Merged, thanks. -Olof ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC Boards Updates for v3.16 @ 2014-05-20 5:39 ` Olof Johansson 0 siblings, 0 replies; 776+ messages in thread From: Olof Johansson @ 2014-05-20 5:39 UTC (permalink / raw) To: linux-arm-kernel On Wed, May 14, 2014 at 04:26:55PM +0900, Simon Horman wrote: > Hi Olof, Hi Kevin, Hi Arnd, > > Please consider these second round of > Renesas ARM based SoC boards updates for v3.16. > > This pull request is based on the previous round of > such requests, tagged as renesas-boards-for-v3.16, > which you have previously pulled. > > > The following changes since commit a09b2f0ba170dc89a67d6c4c4f027b37a085dad9: > > ARM: shmobile: lager legacy: Enable Quad SPI transfers for the SPI FLASH (2014-04-15 08:13:22 +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.16 > > for you to fetch changes up to fd105ecf17fe459d979f336a7389d87172a1cf6d: > > ARM: shmobile: Minor cleanup of the Armadillo legacy board code (2014-05-11 20:59:57 +0900) Merged, thanks. -Olof ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC r7s72100-ccf Updates for v3.16 @ 2014-05-17 1:24 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-05-17 1:24 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Hi Kevin, Hi Arnd, Please consider these Second Round of Renesas ARM Based SoC r7s72100 CCF Updates for v3.16. This pull request is based on the previous round of such requests, tagged as renesas-r7s72100-ccf-for-v3.16, which I have already sent a pull-request for. This comprehensively addresses an oversight in patches included in the pull request that it depends on, specifically leaving broken non-multiplatform support in place for genmai-reference. This pull request has some minor conflicts with other DT changes which I have previously sent pull requests for. These conflicts are in arch/arm/boot/dts/Makefile. A resolution can be found in the renesas-next-v3.15-rc1-20140517 tag if my renesas tree. In words: CONFIG_ARCH_SHMOBILE_LEGACY hunk: * Remove emev2-kzm9d.dtb * Remove r7s72100-genmai-reference.dtb * Keep r7s72100-genmai.dtb CONFIG_ARCH_SHMOBILE_MULTI hunk: * Remove r7s72100-genmai-reference.dtb * Keep r7s72100-genmai.dtb * Keep r8a7791-henninger.dtb The following changes since commit 9fbb1ae01b878e2cce9626fa6fdc9e5dcefeb6b5: ARM: shmobile: r7s72100: use workaround for non DT-clocks (2014-05-14 11:42:55 +0900) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-r7s72100-ccf2-for-v3.16 for you to fetch changes up to a5176e0d9de31a54e08468f21c15dc08e006857f: ARM: shmobile: Remove Genmai reference DTS (2014-05-17 09:06:29 +0900) ---------------------------------------------------------------- Second Round of Renesas ARM Based SoC r7s72100 CCF Updates for v3.16 r7s72100 (RZ/A1H) SoC based Genmai board * Remove non-multiplatform support from genmai-reference ---------------------------------------------------------------- Wolfram Sang (5): ARM: shmobile: Remove non-multiplatform Genmai reference support ARM: shmobile: genmai-reference: Remove legacy clock support ARM: shmobile: Sync Genmai DTS with Genmai reference DTS ARM: shmobile: Let Genmai multiplatform boot with Genmai DTB ARM: shmobile: Remove Genmai reference DTS arch/arm/boot/dts/Makefile | 3 +- arch/arm/boot/dts/r7s72100-genmai-reference.dts | 59 ------------------------- arch/arm/boot/dts/r7s72100-genmai.dts | 30 ++++++++++++- arch/arm/mach-shmobile/Kconfig | 11 ----- arch/arm/mach-shmobile/Makefile | 1 - arch/arm/mach-shmobile/Makefile.boot | 1 - arch/arm/mach-shmobile/board-genmai-reference.c | 8 +--- 7 files changed, 31 insertions(+), 82 deletions(-) delete mode 100644 arch/arm/boot/dts/r7s72100-genmai-reference.dts ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC r7s72100-ccf Updates for v3.16 @ 2014-05-17 1:24 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-05-17 1:24 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Hi Kevin, Hi Arnd, Please consider these Second Round of Renesas ARM Based SoC r7s72100 CCF Updates for v3.16. This pull request is based on the previous round of such requests, tagged as renesas-r7s72100-ccf-for-v3.16, which I have already sent a pull-request for. This comprehensively addresses an oversight in patches included in the pull request that it depends on, specifically leaving broken non-multiplatform support in place for genmai-reference. This pull request has some minor conflicts with other DT changes which I have previously sent pull requests for. These conflicts are in arch/arm/boot/dts/Makefile. A resolution can be found in the renesas-next-v3.15-rc1-20140517 tag if my renesas tree. In words: CONFIG_ARCH_SHMOBILE_LEGACY hunk: * Remove emev2-kzm9d.dtb * Remove r7s72100-genmai-reference.dtb * Keep r7s72100-genmai.dtb CONFIG_ARCH_SHMOBILE_MULTI hunk: * Remove r7s72100-genmai-reference.dtb * Keep r7s72100-genmai.dtb * Keep r8a7791-henninger.dtb The following changes since commit 9fbb1ae01b878e2cce9626fa6fdc9e5dcefeb6b5: ARM: shmobile: r7s72100: use workaround for non DT-clocks (2014-05-14 11:42:55 +0900) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-r7s72100-ccf2-for-v3.16 for you to fetch changes up to a5176e0d9de31a54e08468f21c15dc08e006857f: ARM: shmobile: Remove Genmai reference DTS (2014-05-17 09:06:29 +0900) ---------------------------------------------------------------- Second Round of Renesas ARM Based SoC r7s72100 CCF Updates for v3.16 r7s72100 (RZ/A1H) SoC based Genmai board * Remove non-multiplatform support from genmai-reference ---------------------------------------------------------------- Wolfram Sang (5): ARM: shmobile: Remove non-multiplatform Genmai reference support ARM: shmobile: genmai-reference: Remove legacy clock support ARM: shmobile: Sync Genmai DTS with Genmai reference DTS ARM: shmobile: Let Genmai multiplatform boot with Genmai DTB ARM: shmobile: Remove Genmai reference DTS arch/arm/boot/dts/Makefile | 3 +- arch/arm/boot/dts/r7s72100-genmai-reference.dts | 59 ------------------------- arch/arm/boot/dts/r7s72100-genmai.dts | 30 ++++++++++++- arch/arm/mach-shmobile/Kconfig | 11 ----- arch/arm/mach-shmobile/Makefile | 1 - arch/arm/mach-shmobile/Makefile.boot | 1 - arch/arm/mach-shmobile/board-genmai-reference.c | 8 +--- 7 files changed, 31 insertions(+), 82 deletions(-) delete mode 100644 arch/arm/boot/dts/r7s72100-genmai-reference.dts ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH 1/5] ARM: shmobile: Remove non-multiplatform Genmai reference support 2014-05-17 1:24 ` Simon Horman @ 2014-05-17 1:24 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-05-17 1:24 UTC (permalink / raw) To: linux-arm-kernel From: Wolfram Sang <wsa+renesas@sang-engineering.com> Now that r7s72100 has CCF support, remove the legacy Genmai reference Kconfig bits for the non-multiplatform case. Starting from this commit Genmai board support is always enabled via CONFIG_MACH_GENMAI, and CONFIG_ARCH_MULTIPLATFORM is used to select between board-genmai.c and board-genmai-reference.c The file board-genmai-reference.c can no longer be used together with the legacy sh-clk clock framework, instead CCF is used. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Acked-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/Makefile | 1 - arch/arm/mach-shmobile/Kconfig | 11 ----------- arch/arm/mach-shmobile/Makefile | 1 - arch/arm/mach-shmobile/Makefile.boot | 1 - 4 files changed, 14 deletions(-) diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 35c146f..4ede75e 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -306,7 +306,6 @@ dtb-$(CONFIG_ARCH_S3C64XX) += s3c6410-mini6410.dtb \ s3c6410-smdk6410.dtb dtb-$(CONFIG_ARCH_SHMOBILE_LEGACY) += emev2-kzm9d.dtb \ r7s72100-genmai.dtb \ - r7s72100-genmai-reference.dtb \ r8a7740-armadillo800eva.dtb \ r8a7778-bockw.dtb \ r8a7778-bockw-reference.dtb \ diff --git a/arch/arm/mach-shmobile/Kconfig b/arch/arm/mach-shmobile/Kconfig index 0f92ba8..2ba18c6 100644 --- a/arch/arm/mach-shmobile/Kconfig +++ b/arch/arm/mach-shmobile/Kconfig @@ -240,17 +240,6 @@ config MACH_GENMAI depends on ARCH_R7S72100 select USE_OF -config MACH_GENMAI_REFERENCE - bool "Genmai board - Reference Device Tree Implementation" - depends on ARCH_R7S72100 - select USE_OF - ---help--- - Use reference implementation of Genmai board support - which makes use of device tree at the expense - of not supporting a number of devices. - - This is intended to aid developers - config MACH_MARZEN bool "MARZEN board" depends on ARCH_R8A7779 diff --git a/arch/arm/mach-shmobile/Makefile b/arch/arm/mach-shmobile/Makefile index c12a1c5..a455584 100644 --- a/arch/arm/mach-shmobile/Makefile +++ b/arch/arm/mach-shmobile/Makefile @@ -67,7 +67,6 @@ obj-$(CONFIG_MACH_MACKEREL) += board-mackerel.o obj-$(CONFIG_MACH_BOCKW) += board-bockw.o obj-$(CONFIG_MACH_BOCKW_REFERENCE) += board-bockw-reference.o obj-$(CONFIG_MACH_GENMAI) += board-genmai.o -obj-$(CONFIG_MACH_GENMAI_REFERENCE) += board-genmai-reference.o obj-$(CONFIG_MACH_MARZEN) += board-marzen.o obj-$(CONFIG_MACH_MARZEN_REFERENCE) += board-marzen-reference.o obj-$(CONFIG_MACH_LAGER) += board-lager.o diff --git a/arch/arm/mach-shmobile/Makefile.boot b/arch/arm/mach-shmobile/Makefile.boot index 99455ec..918fccf 100644 --- a/arch/arm/mach-shmobile/Makefile.boot +++ b/arch/arm/mach-shmobile/Makefile.boot @@ -7,7 +7,6 @@ loadaddr-$(CONFIG_MACH_ARMADILLO800EVA_REFERENCE) += 0x40008000 loadaddr-$(CONFIG_MACH_BOCKW) += 0x60008000 loadaddr-$(CONFIG_MACH_BOCKW_REFERENCE) += 0x60008000 loadaddr-$(CONFIG_MACH_GENMAI) += 0x08008000 -loadaddr-$(CONFIG_MACH_GENMAI_REFERENCE) += 0x08008000 loadaddr-$(CONFIG_MACH_KOELSCH) += 0x40008000 loadaddr-$(CONFIG_MACH_KZM9G) += 0x41008000 loadaddr-$(CONFIG_MACH_KZM9G_REFERENCE) += 0x41008000 -- 1.8.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 1/5] ARM: shmobile: Remove non-multiplatform Genmai reference support @ 2014-05-17 1:24 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-05-17 1:24 UTC (permalink / raw) To: linux-arm-kernel From: Wolfram Sang <wsa+renesas@sang-engineering.com> Now that r7s72100 has CCF support, remove the legacy Genmai reference Kconfig bits for the non-multiplatform case. Starting from this commit Genmai board support is always enabled via CONFIG_MACH_GENMAI, and CONFIG_ARCH_MULTIPLATFORM is used to select between board-genmai.c and board-genmai-reference.c The file board-genmai-reference.c can no longer be used together with the legacy sh-clk clock framework, instead CCF is used. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Acked-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/Makefile | 1 - arch/arm/mach-shmobile/Kconfig | 11 ----------- arch/arm/mach-shmobile/Makefile | 1 - arch/arm/mach-shmobile/Makefile.boot | 1 - 4 files changed, 14 deletions(-) diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 35c146f..4ede75e 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -306,7 +306,6 @@ dtb-$(CONFIG_ARCH_S3C64XX) += s3c6410-mini6410.dtb \ s3c6410-smdk6410.dtb dtb-$(CONFIG_ARCH_SHMOBILE_LEGACY) += emev2-kzm9d.dtb \ r7s72100-genmai.dtb \ - r7s72100-genmai-reference.dtb \ r8a7740-armadillo800eva.dtb \ r8a7778-bockw.dtb \ r8a7778-bockw-reference.dtb \ diff --git a/arch/arm/mach-shmobile/Kconfig b/arch/arm/mach-shmobile/Kconfig index 0f92ba8..2ba18c6 100644 --- a/arch/arm/mach-shmobile/Kconfig +++ b/arch/arm/mach-shmobile/Kconfig @@ -240,17 +240,6 @@ config MACH_GENMAI depends on ARCH_R7S72100 select USE_OF -config MACH_GENMAI_REFERENCE - bool "Genmai board - Reference Device Tree Implementation" - depends on ARCH_R7S72100 - select USE_OF - ---help--- - Use reference implementation of Genmai board support - which makes use of device tree at the expense - of not supporting a number of devices. - - This is intended to aid developers - config MACH_MARZEN bool "MARZEN board" depends on ARCH_R8A7779 diff --git a/arch/arm/mach-shmobile/Makefile b/arch/arm/mach-shmobile/Makefile index c12a1c5..a455584 100644 --- a/arch/arm/mach-shmobile/Makefile +++ b/arch/arm/mach-shmobile/Makefile @@ -67,7 +67,6 @@ obj-$(CONFIG_MACH_MACKEREL) += board-mackerel.o obj-$(CONFIG_MACH_BOCKW) += board-bockw.o obj-$(CONFIG_MACH_BOCKW_REFERENCE) += board-bockw-reference.o obj-$(CONFIG_MACH_GENMAI) += board-genmai.o -obj-$(CONFIG_MACH_GENMAI_REFERENCE) += board-genmai-reference.o obj-$(CONFIG_MACH_MARZEN) += board-marzen.o obj-$(CONFIG_MACH_MARZEN_REFERENCE) += board-marzen-reference.o obj-$(CONFIG_MACH_LAGER) += board-lager.o diff --git a/arch/arm/mach-shmobile/Makefile.boot b/arch/arm/mach-shmobile/Makefile.boot index 99455ec..918fccf 100644 --- a/arch/arm/mach-shmobile/Makefile.boot +++ b/arch/arm/mach-shmobile/Makefile.boot @@ -7,7 +7,6 @@ loadaddr-$(CONFIG_MACH_ARMADILLO800EVA_REFERENCE) += 0x40008000 loadaddr-$(CONFIG_MACH_BOCKW) += 0x60008000 loadaddr-$(CONFIG_MACH_BOCKW_REFERENCE) += 0x60008000 loadaddr-$(CONFIG_MACH_GENMAI) += 0x08008000 -loadaddr-$(CONFIG_MACH_GENMAI_REFERENCE) += 0x08008000 loadaddr-$(CONFIG_MACH_KOELSCH) += 0x40008000 loadaddr-$(CONFIG_MACH_KZM9G) += 0x41008000 loadaddr-$(CONFIG_MACH_KZM9G_REFERENCE) += 0x41008000 -- 1.8.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 2/5] ARM: shmobile: genmai-reference: Remove legacy clock support 2014-05-17 1:24 ` Simon Horman @ 2014-05-17 1:24 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-05-17 1:24 UTC (permalink / raw) To: linux-arm-kernel From: Wolfram Sang <wsa+renesas@sang-engineering.com> genmai-reference is now only built for multiplatform which means that CCF comes with the package. Remove unused legacy code ifdefs to clean up the code. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Acked-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/board-genmai-reference.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/arch/arm/mach-shmobile/board-genmai-reference.c b/arch/arm/mach-shmobile/board-genmai-reference.c index 33015e5..968bbba 100644 --- a/arch/arm/mach-shmobile/board-genmai-reference.c +++ b/arch/arm/mach-shmobile/board-genmai-reference.c @@ -26,7 +26,6 @@ #include <asm/mach-types.h> #include <asm/mach/arch.h> -#ifdef CONFIG_COMMON_CLK /* * This is a really crude hack to provide clkdev support to platform * devices until they get moved to DT. @@ -34,15 +33,10 @@ static const struct clk_name clk_names[] = { { "mtu2", "fck", "sh-mtu2" }, }; -#endif static void __init genmai_add_standard_devices(void) { -#ifdef CONFIG_COMMON_CLK shmobile_clk_workaround(clk_names, ARRAY_SIZE(clk_names), true); -#else - r7s72100_clock_init(); -#endif r7s72100_add_dt_devices(); of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); } -- 1.8.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 2/5] ARM: shmobile: genmai-reference: Remove legacy clock support @ 2014-05-17 1:24 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-05-17 1:24 UTC (permalink / raw) To: linux-arm-kernel From: Wolfram Sang <wsa+renesas@sang-engineering.com> genmai-reference is now only built for multiplatform which means that CCF comes with the package. Remove unused legacy code ifdefs to clean up the code. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Acked-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/board-genmai-reference.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/arch/arm/mach-shmobile/board-genmai-reference.c b/arch/arm/mach-shmobile/board-genmai-reference.c index 33015e5..968bbba 100644 --- a/arch/arm/mach-shmobile/board-genmai-reference.c +++ b/arch/arm/mach-shmobile/board-genmai-reference.c @@ -26,7 +26,6 @@ #include <asm/mach-types.h> #include <asm/mach/arch.h> -#ifdef CONFIG_COMMON_CLK /* * This is a really crude hack to provide clkdev support to platform * devices until they get moved to DT. @@ -34,15 +33,10 @@ static const struct clk_name clk_names[] = { { "mtu2", "fck", "sh-mtu2" }, }; -#endif static void __init genmai_add_standard_devices(void) { -#ifdef CONFIG_COMMON_CLK shmobile_clk_workaround(clk_names, ARRAY_SIZE(clk_names), true); -#else - r7s72100_clock_init(); -#endif r7s72100_add_dt_devices(); of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); } -- 1.8.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 3/5] ARM: shmobile: Sync Genmai DTS with Genmai reference DTS 2014-05-17 1:24 ` Simon Horman @ 2014-05-17 1:24 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-05-17 1:24 UTC (permalink / raw) To: linux-arm-kernel From: Wolfram Sang <wsa+renesas@sang-engineering.com> Copy the device nodes from Genmai reference into the Genmai device tree file. This will allow us to use a single DTS file regardless of kernel configuration. In case of legacy C board code the device nodes may or may not be used, but in the multiplatform case all the DT device nodes will be used. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r7s72100-genmai.dts | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/r7s72100-genmai.dts b/arch/arm/boot/dts/r7s72100-genmai.dts index b1deaf7..56849b5 100644 --- a/arch/arm/boot/dts/r7s72100-genmai.dts +++ b/arch/arm/boot/dts/r7s72100-genmai.dts @@ -1,7 +1,8 @@ /* * Device Tree Source for the Genmai board * - * Copyright (C) 2013 Renesas Solutions Corp. + * Copyright (C) 2013-14 Renesas Solutions Corp. + * Copyright (C) 2014 Wolfram Sang, Sang Engineering <wsa@sang-engineering.com> * * This file is licensed under the terms of the GNU General Public License * version 2. This program is licensed "as is" without any warranty of any @@ -15,6 +16,10 @@ model = "Genmai"; compatible = "renesas,genmai", "renesas,r7s72100"; + aliases { + serial2 = &scif2; + }; + chosen { bootargs = "console=ttySC2,115200 ignore_loglevel rw root=/dev/nfs ip=dhcp"; }; @@ -29,3 +34,26 @@ #size-cells = <1>; }; }; + +&extal_clk { + clock-frequency = <13330000>; +}; + +&usb_x1_clk { + clock-frequency = <48000000>; +}; + +&i2c2 { + status = "okay"; + clock-frequency = <400000>; + + eeprom@50 { + compatible = "renesas,24c128"; + reg = <0x50>; + pagesize = <64>; + }; +}; + +&scif2 { + status = "okay"; +}; -- 1.8.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 3/5] ARM: shmobile: Sync Genmai DTS with Genmai reference DTS @ 2014-05-17 1:24 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-05-17 1:24 UTC (permalink / raw) To: linux-arm-kernel From: Wolfram Sang <wsa+renesas@sang-engineering.com> Copy the device nodes from Genmai reference into the Genmai device tree file. This will allow us to use a single DTS file regardless of kernel configuration. In case of legacy C board code the device nodes may or may not be used, but in the multiplatform case all the DT device nodes will be used. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r7s72100-genmai.dts | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/r7s72100-genmai.dts b/arch/arm/boot/dts/r7s72100-genmai.dts index b1deaf7..56849b5 100644 --- a/arch/arm/boot/dts/r7s72100-genmai.dts +++ b/arch/arm/boot/dts/r7s72100-genmai.dts @@ -1,7 +1,8 @@ /* * Device Tree Source for the Genmai board * - * Copyright (C) 2013 Renesas Solutions Corp. + * Copyright (C) 2013-14 Renesas Solutions Corp. + * Copyright (C) 2014 Wolfram Sang, Sang Engineering <wsa@sang-engineering.com> * * This file is licensed under the terms of the GNU General Public License * version 2. This program is licensed "as is" without any warranty of any @@ -15,6 +16,10 @@ model = "Genmai"; compatible = "renesas,genmai", "renesas,r7s72100"; + aliases { + serial2 = &scif2; + }; + chosen { bootargs = "console=ttySC2,115200 ignore_loglevel rw root=/dev/nfs ip=dhcp"; }; @@ -29,3 +34,26 @@ #size-cells = <1>; }; }; + +&extal_clk { + clock-frequency = <13330000>; +}; + +&usb_x1_clk { + clock-frequency = <48000000>; +}; + +&i2c2 { + status = "okay"; + clock-frequency = <400000>; + + eeprom at 50 { + compatible = "renesas,24c128"; + reg = <0x50>; + pagesize = <64>; + }; +}; + +&scif2 { + status = "okay"; +}; -- 1.8.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 4/5] ARM: shmobile: Let Genmai multiplatform boot with Genmai DTB 2014-05-17 1:24 ` Simon Horman @ 2014-05-17 1:24 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-05-17 1:24 UTC (permalink / raw) To: linux-arm-kernel From: Wolfram Sang <wsa+renesas@sang-engineering.com> Let the multiplatform Genmai support boot with the unified DTS. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Acked-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/Makefile | 2 +- arch/arm/mach-shmobile/board-genmai-reference.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 4ede75e..1329d4d 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -320,7 +320,7 @@ dtb-$(CONFIG_ARCH_SHMOBILE_LEGACY) += emev2-kzm9d.dtb \ r8a73a4-ape6evm-reference.dtb \ sh7372-mackerel.dtb dtb-$(CONFIG_ARCH_SHMOBILE_MULTI) += emev2-kzm9d.dtb \ - r7s72100-genmai-reference.dtb \ + r7s72100-genmai.dtb \ r8a7791-koelsch.dtb \ r8a7790-lager.dtb dtb-$(CONFIG_ARCH_SOCFPGA) += socfpga_arria5_socdk.dtb \ diff --git a/arch/arm/mach-shmobile/board-genmai-reference.c b/arch/arm/mach-shmobile/board-genmai-reference.c index 968bbba..2ff6ad6 100644 --- a/arch/arm/mach-shmobile/board-genmai-reference.c +++ b/arch/arm/mach-shmobile/board-genmai-reference.c @@ -42,7 +42,7 @@ static void __init genmai_add_standard_devices(void) } static const char * const genmai_boards_compat_dt[] __initconst = { - "renesas,genmai-reference", + "renesas,genmai", NULL, }; -- 1.8.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 4/5] ARM: shmobile: Let Genmai multiplatform boot with Genmai DTB @ 2014-05-17 1:24 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-05-17 1:24 UTC (permalink / raw) To: linux-arm-kernel From: Wolfram Sang <wsa+renesas@sang-engineering.com> Let the multiplatform Genmai support boot with the unified DTS. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Acked-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/Makefile | 2 +- arch/arm/mach-shmobile/board-genmai-reference.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 4ede75e..1329d4d 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -320,7 +320,7 @@ dtb-$(CONFIG_ARCH_SHMOBILE_LEGACY) += emev2-kzm9d.dtb \ r8a73a4-ape6evm-reference.dtb \ sh7372-mackerel.dtb dtb-$(CONFIG_ARCH_SHMOBILE_MULTI) += emev2-kzm9d.dtb \ - r7s72100-genmai-reference.dtb \ + r7s72100-genmai.dtb \ r8a7791-koelsch.dtb \ r8a7790-lager.dtb dtb-$(CONFIG_ARCH_SOCFPGA) += socfpga_arria5_socdk.dtb \ diff --git a/arch/arm/mach-shmobile/board-genmai-reference.c b/arch/arm/mach-shmobile/board-genmai-reference.c index 968bbba..2ff6ad6 100644 --- a/arch/arm/mach-shmobile/board-genmai-reference.c +++ b/arch/arm/mach-shmobile/board-genmai-reference.c @@ -42,7 +42,7 @@ static void __init genmai_add_standard_devices(void) } static const char * const genmai_boards_compat_dt[] __initconst = { - "renesas,genmai-reference", + "renesas,genmai", NULL, }; -- 1.8.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 5/5] ARM: shmobile: Remove Genmai reference DTS 2014-05-17 1:24 ` Simon Horman @ 2014-05-17 1:24 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-05-17 1:24 UTC (permalink / raw) To: linux-arm-kernel From: Wolfram Sang <wsa+renesas@sang-engineering.com> Now that the DTS file r7s72100-genmai.dts can be used with board-genmai.c and board-genmai-reference.c, proceed with removing r7s72100-genmai-reference.dts. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Acked-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r7s72100-genmai-reference.dts | 59 ------------------------- 1 file changed, 59 deletions(-) delete mode 100644 arch/arm/boot/dts/r7s72100-genmai-reference.dts diff --git a/arch/arm/boot/dts/r7s72100-genmai-reference.dts b/arch/arm/boot/dts/r7s72100-genmai-reference.dts deleted file mode 100644 index ca88458..0000000 --- a/arch/arm/boot/dts/r7s72100-genmai-reference.dts +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Device Tree Source for the Genmai board - * - * Copyright (C) 2013-14 Renesas Solutions Corp. - * Copyright (C) 2014 Wolfram Sang, Sang Engineering <wsa@sang-engineering.com> - * - * This file is licensed under the terms of the GNU General Public License - * version 2. This program is licensed "as is" without any warranty of any - * kind, whether express or implied. - */ - -/dts-v1/; -#include "r7s72100.dtsi" - -/ { - model = "Genmai"; - compatible = "renesas,genmai-reference", "renesas,r7s72100"; - - aliases { - serial2 = &scif2; - }; - - chosen { - bootargs = "console=ttySC2,115200 ignore_loglevel rw root=/dev/nfs ip=dhcp"; - }; - - memory { - device_type = "memory"; - reg = <0x08000000 0x08000000>; - }; - - lbsc { - #address-cells = <1>; - #size-cells = <1>; - }; -}; - -&extal_clk { - clock-frequency = <13330000>; -}; - -&usb_x1_clk { - clock-frequency = <48000000>; -}; - -&i2c2 { - status = "okay"; - clock-frequency = <400000>; - - eeprom@50 { - compatible = "renesas,24c128"; - reg = <0x50>; - pagesize = <64>; - }; -}; - -&scif2 { - status = "okay"; -}; -- 1.8.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 5/5] ARM: shmobile: Remove Genmai reference DTS @ 2014-05-17 1:24 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-05-17 1:24 UTC (permalink / raw) To: linux-arm-kernel From: Wolfram Sang <wsa+renesas@sang-engineering.com> Now that the DTS file r7s72100-genmai.dts can be used with board-genmai.c and board-genmai-reference.c, proceed with removing r7s72100-genmai-reference.dts. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Acked-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r7s72100-genmai-reference.dts | 59 ------------------------- 1 file changed, 59 deletions(-) delete mode 100644 arch/arm/boot/dts/r7s72100-genmai-reference.dts diff --git a/arch/arm/boot/dts/r7s72100-genmai-reference.dts b/arch/arm/boot/dts/r7s72100-genmai-reference.dts deleted file mode 100644 index ca88458..0000000 --- a/arch/arm/boot/dts/r7s72100-genmai-reference.dts +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Device Tree Source for the Genmai board - * - * Copyright (C) 2013-14 Renesas Solutions Corp. - * Copyright (C) 2014 Wolfram Sang, Sang Engineering <wsa@sang-engineering.com> - * - * This file is licensed under the terms of the GNU General Public License - * version 2. This program is licensed "as is" without any warranty of any - * kind, whether express or implied. - */ - -/dts-v1/; -#include "r7s72100.dtsi" - -/ { - model = "Genmai"; - compatible = "renesas,genmai-reference", "renesas,r7s72100"; - - aliases { - serial2 = &scif2; - }; - - chosen { - bootargs = "console=ttySC2,115200 ignore_loglevel rw root=/dev/nfs ip=dhcp"; - }; - - memory { - device_type = "memory"; - reg = <0x08000000 0x08000000>; - }; - - lbsc { - #address-cells = <1>; - #size-cells = <1>; - }; -}; - -&extal_clk { - clock-frequency = <13330000>; -}; - -&usb_x1_clk { - clock-frequency = <48000000>; -}; - -&i2c2 { - status = "okay"; - clock-frequency = <400000>; - - eeprom at 50 { - compatible = "renesas,24c128"; - reg = <0x50>; - pagesize = <64>; - }; -}; - -&scif2 { - status = "okay"; -}; -- 1.8.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* Re: [GIT PULL] Second Round of Renesas ARM Based SoC r7s72100-ccf Updates for v3.16 2014-05-17 1:24 ` Simon Horman @ 2014-05-22 5:08 ` Olof Johansson -1 siblings, 0 replies; 776+ messages in thread From: Olof Johansson @ 2014-05-22 5:08 UTC (permalink / raw) To: linux-arm-kernel On Sat, May 17, 2014 at 10:24:53AM +0900, Simon Horman wrote: > Hi Olof, Hi Kevin, Hi Arnd, > > Please consider these Second Round of > Renesas ARM Based SoC r7s72100 CCF Updates for v3.16. > > This pull request is based on the previous round of > such requests, tagged as renesas-r7s72100-ccf-for-v3.16, > which I have already sent a pull-request for. > > This comprehensively addresses an oversight in patches included in > the pull request that it depends on, specifically leaving broken > non-multiplatform support in place for genmai-reference. > > This pull request has some minor conflicts with other DT changes which I > have previously sent pull requests for. These conflicts are in > arch/arm/boot/dts/Makefile. A resolution can be found in the > renesas-next-v3.15-rc1-20140517 tag if my renesas tree. In words: > > CONFIG_ARCH_SHMOBILE_LEGACY hunk: > * Remove emev2-kzm9d.dtb > * Remove r7s72100-genmai-reference.dtb > * Keep r7s72100-genmai.dtb > Are you sure? Shouldn't the genmai board be covered by multi now? Or are both multi and legacy driven by the same DTS now? Just making sure. > The following changes since commit 9fbb1ae01b878e2cce9626fa6fdc9e5dcefeb6b5: > > ARM: shmobile: r7s72100: use workaround for non DT-clocks (2014-05-14 11:42:55 +0900) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-r7s72100-ccf2-for-v3.16 > > for you to fetch changes up to a5176e0d9de31a54e08468f21c15dc08e006857f: > > ARM: shmobile: Remove Genmai reference DTS (2014-05-17 09:06:29 +0900) > Pulled, thanks. -Olof ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC r7s72100-ccf Updates for v3.16 @ 2014-05-22 5:08 ` Olof Johansson 0 siblings, 0 replies; 776+ messages in thread From: Olof Johansson @ 2014-05-22 5:08 UTC (permalink / raw) To: linux-arm-kernel On Sat, May 17, 2014 at 10:24:53AM +0900, Simon Horman wrote: > Hi Olof, Hi Kevin, Hi Arnd, > > Please consider these Second Round of > Renesas ARM Based SoC r7s72100 CCF Updates for v3.16. > > This pull request is based on the previous round of > such requests, tagged as renesas-r7s72100-ccf-for-v3.16, > which I have already sent a pull-request for. > > This comprehensively addresses an oversight in patches included in > the pull request that it depends on, specifically leaving broken > non-multiplatform support in place for genmai-reference. > > This pull request has some minor conflicts with other DT changes which I > have previously sent pull requests for. These conflicts are in > arch/arm/boot/dts/Makefile. A resolution can be found in the > renesas-next-v3.15-rc1-20140517 tag if my renesas tree. In words: > > CONFIG_ARCH_SHMOBILE_LEGACY hunk: > * Remove emev2-kzm9d.dtb > * Remove r7s72100-genmai-reference.dtb > * Keep r7s72100-genmai.dtb > Are you sure? Shouldn't the genmai board be covered by multi now? Or are both multi and legacy driven by the same DTS now? Just making sure. > The following changes since commit 9fbb1ae01b878e2cce9626fa6fdc9e5dcefeb6b5: > > ARM: shmobile: r7s72100: use workaround for non DT-clocks (2014-05-14 11:42:55 +0900) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-r7s72100-ccf2-for-v3.16 > > for you to fetch changes up to a5176e0d9de31a54e08468f21c15dc08e006857f: > > ARM: shmobile: Remove Genmai reference DTS (2014-05-17 09:06:29 +0900) > Pulled, thanks. -Olof ^ permalink raw reply [flat|nested] 776+ messages in thread
* Re: [GIT PULL] Second Round of Renesas ARM Based SoC r7s72100-ccf Updates for v3.16 2014-05-22 5:08 ` Olof Johansson @ 2014-05-22 5:42 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-05-22 5:42 UTC (permalink / raw) To: linux-arm-kernel On Wed, May 21, 2014 at 10:08:40PM -0700, Olof Johansson wrote: > On Sat, May 17, 2014 at 10:24:53AM +0900, Simon Horman wrote: > > Hi Olof, Hi Kevin, Hi Arnd, > > > > Please consider these Second Round of > > Renesas ARM Based SoC r7s72100 CCF Updates for v3.16. > > > > This pull request is based on the previous round of > > such requests, tagged as renesas-r7s72100-ccf-for-v3.16, > > which I have already sent a pull-request for. > > > > This comprehensively addresses an oversight in patches included in > > the pull request that it depends on, specifically leaving broken > > non-multiplatform support in place for genmai-reference. > > > > This pull request has some minor conflicts with other DT changes which I > > have previously sent pull requests for. These conflicts are in > > arch/arm/boot/dts/Makefile. A resolution can be found in the > > renesas-next-v3.15-rc1-20140517 tag if my renesas tree. In words: > > > > CONFIG_ARCH_SHMOBILE_LEGACY hunk: > > * Remove emev2-kzm9d.dtb > > * Remove r7s72100-genmai-reference.dtb > > * Keep r7s72100-genmai.dtb > > > > Are you sure? Shouldn't the genmai board be covered by multi now? Or > are both multi and legacy driven by the same DTS now? Just making sure. Both multi and legacy are driven by the same DTS, r7s72100-genmai.dtb. > > The following changes since commit 9fbb1ae01b878e2cce9626fa6fdc9e5dcefeb6b5: > > > > ARM: shmobile: r7s72100: use workaround for non DT-clocks (2014-05-14 11:42:55 +0900) > > > > are available in the git repository at: > > > > git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-r7s72100-ccf2-for-v3.16 > > > > for you to fetch changes up to a5176e0d9de31a54e08468f21c15dc08e006857f: > > > > ARM: shmobile: Remove Genmai reference DTS (2014-05-17 09:06:29 +0900) > > > > Pulled, thanks. > > > -Olof > -- > To unsubscribe from this list: send the line "unsubscribe linux-sh" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC r7s72100-ccf Updates for v3.16 @ 2014-05-22 5:42 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-05-22 5:42 UTC (permalink / raw) To: linux-arm-kernel On Wed, May 21, 2014 at 10:08:40PM -0700, Olof Johansson wrote: > On Sat, May 17, 2014 at 10:24:53AM +0900, Simon Horman wrote: > > Hi Olof, Hi Kevin, Hi Arnd, > > > > Please consider these Second Round of > > Renesas ARM Based SoC r7s72100 CCF Updates for v3.16. > > > > This pull request is based on the previous round of > > such requests, tagged as renesas-r7s72100-ccf-for-v3.16, > > which I have already sent a pull-request for. > > > > This comprehensively addresses an oversight in patches included in > > the pull request that it depends on, specifically leaving broken > > non-multiplatform support in place for genmai-reference. > > > > This pull request has some minor conflicts with other DT changes which I > > have previously sent pull requests for. These conflicts are in > > arch/arm/boot/dts/Makefile. A resolution can be found in the > > renesas-next-v3.15-rc1-20140517 tag if my renesas tree. In words: > > > > CONFIG_ARCH_SHMOBILE_LEGACY hunk: > > * Remove emev2-kzm9d.dtb > > * Remove r7s72100-genmai-reference.dtb > > * Keep r7s72100-genmai.dtb > > > > Are you sure? Shouldn't the genmai board be covered by multi now? Or > are both multi and legacy driven by the same DTS now? Just making sure. Both multi and legacy are driven by the same DTS, r7s72100-genmai.dtb. > > The following changes since commit 9fbb1ae01b878e2cce9626fa6fdc9e5dcefeb6b5: > > > > ARM: shmobile: r7s72100: use workaround for non DT-clocks (2014-05-14 11:42:55 +0900) > > > > are available in the git repository at: > > > > git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-r7s72100-ccf2-for-v3.16 > > > > for you to fetch changes up to a5176e0d9de31a54e08468f21c15dc08e006857f: > > > > ARM: shmobile: Remove Genmai reference DTS (2014-05-17 09:06:29 +0900) > > > > Pulled, thanks. > > > -Olof > -- > 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 > ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC Defconfig Updates for v3.17 @ 2014-07-01 0:28 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-07-01 0:28 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Hi Kevin, Hi Arnd, Please consider these Second Round of Renesas ARM Based SoC Defconfig Updates for v3.17. This pull request is based on the previous round of such requests, tagged as renesas-defconfig-for-v3.17, which I have already sent a pull-request for. The following changes since commit 468c570ed078f0326745bfe85868adb925659502: ARM: shmobile: Enable CPUFREQ configuration (2014-06-16 19:44:34 +0900) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git renesas-defconfig2-for-v3.17 for you to fetch changes up to c61010050d3baa3e1a3964bec7e62437d21107c6: ARM: shmobile: Enable genmai board in multiplatform defconfig (2014-06-25 16:46:31 +0900) ---------------------------------------------------------------- Second Round of Renesas ARM Based SoC Defconfig Updates for v3.17 * Enable genmai board in multiplatform defconfig ---------------------------------------------------------------- Simon Horman (1): ARM: shmobile: Enable genmai board in multiplatform defconfig arch/arm/configs/shmobile_defconfig | 2 ++ 1 file changed, 2 insertions(+) ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC Defconfig Updates for v3.17 @ 2014-07-01 0:28 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-07-01 0:28 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Hi Kevin, Hi Arnd, Please consider these Second Round of Renesas ARM Based SoC Defconfig Updates for v3.17. This pull request is based on the previous round of such requests, tagged as renesas-defconfig-for-v3.17, which I have already sent a pull-request for. The following changes since commit 468c570ed078f0326745bfe85868adb925659502: ARM: shmobile: Enable CPUFREQ configuration (2014-06-16 19:44:34 +0900) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git renesas-defconfig2-for-v3.17 for you to fetch changes up to c61010050d3baa3e1a3964bec7e62437d21107c6: ARM: shmobile: Enable genmai board in multiplatform defconfig (2014-06-25 16:46:31 +0900) ---------------------------------------------------------------- Second Round of Renesas ARM Based SoC Defconfig Updates for v3.17 * Enable genmai board in multiplatform defconfig ---------------------------------------------------------------- Simon Horman (1): ARM: shmobile: Enable genmai board in multiplatform defconfig arch/arm/configs/shmobile_defconfig | 2 ++ 1 file changed, 2 insertions(+) ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH] ARM: shmobile: Enable genmai board in multiplatform defconfig 2014-07-01 0:28 ` Simon Horman @ 2014-07-01 0:28 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-07-01 0:28 UTC (permalink / raw) To: linux-arm-kernel Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/configs/shmobile_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/configs/shmobile_defconfig b/arch/arm/configs/shmobile_defconfig index c4b72aa..5f05e98 100644 --- a/arch/arm/configs/shmobile_defconfig +++ b/arch/arm/configs/shmobile_defconfig @@ -10,9 +10,11 @@ CONFIG_PERF_EVENTS=y CONFIG_SLAB=y CONFIG_ARCH_SHMOBILE_MULTI=y CONFIG_ARCH_EMEV2=y +CONFIG_ARCH_R7S72100=y CONFIG_ARCH_R8A7779=y CONFIG_ARCH_R8A7790=y CONFIG_ARCH_R8A7791=y +CONFIG_MACH_GENMAI=y CONFIG_MACH_KOELSCH=y CONFIG_MACH_LAGER=y CONFIG_MACH_MARZEN=y -- 2.0.0.rc2 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH] ARM: shmobile: Enable genmai board in multiplatform defconfig @ 2014-07-01 0:28 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-07-01 0:28 UTC (permalink / raw) To: linux-arm-kernel Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/configs/shmobile_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/configs/shmobile_defconfig b/arch/arm/configs/shmobile_defconfig index c4b72aa..5f05e98 100644 --- a/arch/arm/configs/shmobile_defconfig +++ b/arch/arm/configs/shmobile_defconfig @@ -10,9 +10,11 @@ CONFIG_PERF_EVENTS=y CONFIG_SLAB=y CONFIG_ARCH_SHMOBILE_MULTI=y CONFIG_ARCH_EMEV2=y +CONFIG_ARCH_R7S72100=y CONFIG_ARCH_R8A7779=y CONFIG_ARCH_R8A7790=y CONFIG_ARCH_R8A7791=y +CONFIG_MACH_GENMAI=y CONFIG_MACH_KOELSCH=y CONFIG_MACH_LAGER=y CONFIG_MACH_MARZEN=y -- 2.0.0.rc2 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* Re: [GIT PULL] Second Round of Renesas ARM Based SoC Defconfig Updates for v3.17 2014-07-01 0:28 ` Simon Horman @ 2014-07-12 16:34 ` Olof Johansson -1 siblings, 0 replies; 776+ messages in thread From: Olof Johansson @ 2014-07-12 16:34 UTC (permalink / raw) To: linux-arm-kernel On Tue, Jul 01, 2014 at 09:28:08AM +0900, Simon Horman wrote: > Hi Olof, Hi Kevin, Hi Arnd, > > Please consider these Second Round of Renesas ARM Based SoC Defconfig > Updates for v3.17. > > This pull request is based on the previous round of > such requests, tagged as renesas-defconfig-for-v3.17, > which I have already sent a pull-request for. > > > The following changes since commit 468c570ed078f0326745bfe85868adb925659502: > > ARM: shmobile: Enable CPUFREQ configuration (2014-06-16 19:44:34 +0900) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git renesas-defconfig2-for-v3.17 > > for you to fetch changes up to c61010050d3baa3e1a3964bec7e62437d21107c6: > > ARM: shmobile: Enable genmai board in multiplatform defconfig (2014-06-25 16:46:31 +0900) > > ---------------------------------------------------------------- > Second Round of Renesas ARM Based SoC Defconfig Updates for v3.17 > > * Enable genmai board in multiplatform defconfig > > ---------------------------------------------------------------- > Simon Horman (1): > ARM: shmobile: Enable genmai board in multiplatform defconfig Pulled, thanks. -Olof ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC Defconfig Updates for v3.17 @ 2014-07-12 16:34 ` Olof Johansson 0 siblings, 0 replies; 776+ messages in thread From: Olof Johansson @ 2014-07-12 16:34 UTC (permalink / raw) To: linux-arm-kernel On Tue, Jul 01, 2014 at 09:28:08AM +0900, Simon Horman wrote: > Hi Olof, Hi Kevin, Hi Arnd, > > Please consider these Second Round of Renesas ARM Based SoC Defconfig > Updates for v3.17. > > This pull request is based on the previous round of > such requests, tagged as renesas-defconfig-for-v3.17, > which I have already sent a pull-request for. > > > The following changes since commit 468c570ed078f0326745bfe85868adb925659502: > > ARM: shmobile: Enable CPUFREQ configuration (2014-06-16 19:44:34 +0900) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git renesas-defconfig2-for-v3.17 > > for you to fetch changes up to c61010050d3baa3e1a3964bec7e62437d21107c6: > > ARM: shmobile: Enable genmai board in multiplatform defconfig (2014-06-25 16:46:31 +0900) > > ---------------------------------------------------------------- > Second Round of Renesas ARM Based SoC Defconfig Updates for v3.17 > > * Enable genmai board in multiplatform defconfig > > ---------------------------------------------------------------- > Simon Horman (1): > ARM: shmobile: Enable genmai board in multiplatform defconfig Pulled, thanks. -Olof ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC DT Updates for v3.17 @ 2014-07-01 0:28 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-07-01 0:28 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Hi Kevin, Hi Arnd, Please consider these Second Round of Renesas ARM Based SoC DT Updates for v3.17. This pull request is based on the previous round of such requests, tagged as renesas-dt-for-v3.17, which I have already sent a pull-request for. The following changes since commit 09abd1fd11f98d6abde9c23244234170e7e36c2f: ARM: shmobile: r8a7791: add R-Car sound support on DTSI (2014-06-17 19:58:32 +0900) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git renesas-dt2-for-v3.17 for you to fetch changes up to 150c8ad40808189423002ea9fc6a858a3a59e6dc: ARM: shmobile: r8a7791: add DVC support for sound node on DTSI (2014-06-28 09:02:19 +0900) ---------------------------------------------------------------- Second Round of Renesas ARM Based SoC DT Updates for v3.17 * Extend hardware coverage - Add DVC support for sound nodes on r8a7791 and r8a7790 - Enable internal PCI on r8a7790/lager ---------------------------------------------------------------- Ben Dooks (2): ARM: shmobile: r8a7790: add internal PCI bridge nodes ARM: shmobile: lager: enable internal PCI Kuninori Morimoto (2): ARM: shmobile: r8a7790: add DVC support for sound node on DTSI ARM: shmobile: r8a7791: add DVC support for sound node on DTSI arch/arm/boot/dts/r8a7790-lager.dts | 33 ++++++++++++++++++ arch/arm/boot/dts/r8a7790.dtsi | 67 +++++++++++++++++++++++++++++++++++++ arch/arm/boot/dts/r8a7791.dtsi | 7 ++++ 3 files changed, 107 insertions(+) ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC DT Updates for v3.17 @ 2014-07-01 0:28 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-07-01 0:28 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Hi Kevin, Hi Arnd, Please consider these Second Round of Renesas ARM Based SoC DT Updates for v3.17. This pull request is based on the previous round of such requests, tagged as renesas-dt-for-v3.17, which I have already sent a pull-request for. The following changes since commit 09abd1fd11f98d6abde9c23244234170e7e36c2f: ARM: shmobile: r8a7791: add R-Car sound support on DTSI (2014-06-17 19:58:32 +0900) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git renesas-dt2-for-v3.17 for you to fetch changes up to 150c8ad40808189423002ea9fc6a858a3a59e6dc: ARM: shmobile: r8a7791: add DVC support for sound node on DTSI (2014-06-28 09:02:19 +0900) ---------------------------------------------------------------- Second Round of Renesas ARM Based SoC DT Updates for v3.17 * Extend hardware coverage - Add DVC support for sound nodes on r8a7791 and r8a7790 - Enable internal PCI on r8a7790/lager ---------------------------------------------------------------- Ben Dooks (2): ARM: shmobile: r8a7790: add internal PCI bridge nodes ARM: shmobile: lager: enable internal PCI Kuninori Morimoto (2): ARM: shmobile: r8a7790: add DVC support for sound node on DTSI ARM: shmobile: r8a7791: add DVC support for sound node on DTSI arch/arm/boot/dts/r8a7790-lager.dts | 33 ++++++++++++++++++ arch/arm/boot/dts/r8a7790.dtsi | 67 +++++++++++++++++++++++++++++++++++++ arch/arm/boot/dts/r8a7791.dtsi | 7 ++++ 3 files changed, 107 insertions(+) ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH 1/4] ARM: shmobile: r8a7790: add internal PCI bridge nodes 2014-07-01 0:28 ` Simon Horman @ 2014-07-01 0:28 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-07-01 0:28 UTC (permalink / raw) To: linux-arm-kernel From: Ben Dooks <ben.dooks@codethink.co.uk> Add device nodes for the R8A7790 internal PCI bridge devices. Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk> Reviewed-by: Ian Molton <ian.molton@codethink.co.uk> [Sergei: added several properties to the PCI bridge nodes] Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Acked-by: Arnd Bergmann <arnd@arndb.de> Tested-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7790.dtsi | 60 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/arch/arm/boot/dts/r8a7790.dtsi b/arch/arm/boot/dts/r8a7790.dtsi index 994330e..373d9a21 100644 --- a/arch/arm/boot/dts/r8a7790.dtsi +++ b/arch/arm/boot/dts/r8a7790.dtsi @@ -930,6 +930,66 @@ status = "disabled"; }; + pci0: pci@ee090000 { + compatible = "renesas,pci-r8a7790"; + device_type = "pci"; + clocks = <&mstp7_clks R8A7790_CLK_EHCI>; + reg = <0 0xee090000 0 0xc00>, + <0 0xee080000 0 0x1100>; + interrupts = <0 108 IRQ_TYPE_LEVEL_HIGH>; + status = "disabled"; + + bus-range = <0 0>; + #address-cells = <3>; + #size-cells = <2>; + #interrupt-cells = <1>; + ranges = <0x02000000 0 0xee080000 0 0xee080000 0 0x00010000>; + interrupt-map-mask = <0xff00 0 0 0x7>; + interrupt-map = <0x0000 0 0 1 &gic 0 108 IRQ_TYPE_LEVEL_HIGH + 0x0800 0 0 1 &gic 0 108 IRQ_TYPE_LEVEL_HIGH + 0x1000 0 0 2 &gic 0 108 IRQ_TYPE_LEVEL_HIGH>; + }; + + pci1: pci@ee0b0000 { + compatible = "renesas,pci-r8a7790"; + device_type = "pci"; + clocks = <&mstp7_clks R8A7790_CLK_EHCI>; + reg = <0 0xee0b0000 0 0xc00>, + <0 0xee0a0000 0 0x1100>; + interrupts = <0 112 IRQ_TYPE_LEVEL_HIGH>; + status = "disabled"; + + bus-range = <1 1>; + #address-cells = <3>; + #size-cells = <2>; + #interrupt-cells = <1>; + ranges = <0x02000000 0 0xee0a0000 0 0xee0a0000 0 0x00010000>; + interrupt-map-mask = <0xff00 0 0 0x7>; + interrupt-map = <0x0000 0 0 1 &gic 0 112 IRQ_TYPE_LEVEL_HIGH + 0x0800 0 0 1 &gic 0 112 IRQ_TYPE_LEVEL_HIGH + 0x1000 0 0 2 &gic 0 112 IRQ_TYPE_LEVEL_HIGH>; + }; + + pci2: pci@ee0d0000 { + compatible = "renesas,pci-r8a7790"; + device_type = "pci"; + clocks = <&mstp7_clks R8A7790_CLK_EHCI>; + reg = <0 0xee0d0000 0 0xc00>, + <0 0xee0c0000 0 0x1100>; + interrupts = <0 113 IRQ_TYPE_LEVEL_HIGH>; + status = "disabled"; + + bus-range = <2 2>; + #address-cells = <3>; + #size-cells = <2>; + #interrupt-cells = <1>; + ranges = <0x02000000 0 0xee0c0000 0 0xee0c0000 0 0x00010000>; + interrupt-map-mask = <0xff00 0 0 0x7>; + interrupt-map = <0x0000 0 0 1 &gic 0 113 IRQ_TYPE_LEVEL_HIGH + 0x0800 0 0 1 &gic 0 113 IRQ_TYPE_LEVEL_HIGH + 0x1000 0 0 2 &gic 0 113 IRQ_TYPE_LEVEL_HIGH>; + }; + pciec: pcie@fe000000 { compatible = "renesas,pcie-r8a7790"; reg = <0 0xfe000000 0 0x80000>; -- 2.0.0.rc2 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 1/4] ARM: shmobile: r8a7790: add internal PCI bridge nodes @ 2014-07-01 0:28 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-07-01 0:28 UTC (permalink / raw) To: linux-arm-kernel From: Ben Dooks <ben.dooks@codethink.co.uk> Add device nodes for the R8A7790 internal PCI bridge devices. Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk> Reviewed-by: Ian Molton <ian.molton@codethink.co.uk> [Sergei: added several properties to the PCI bridge nodes] Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Acked-by: Arnd Bergmann <arnd@arndb.de> Tested-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7790.dtsi | 60 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/arch/arm/boot/dts/r8a7790.dtsi b/arch/arm/boot/dts/r8a7790.dtsi index 994330e..373d9a21 100644 --- a/arch/arm/boot/dts/r8a7790.dtsi +++ b/arch/arm/boot/dts/r8a7790.dtsi @@ -930,6 +930,66 @@ status = "disabled"; }; + pci0: pci at ee090000 { + compatible = "renesas,pci-r8a7790"; + device_type = "pci"; + clocks = <&mstp7_clks R8A7790_CLK_EHCI>; + reg = <0 0xee090000 0 0xc00>, + <0 0xee080000 0 0x1100>; + interrupts = <0 108 IRQ_TYPE_LEVEL_HIGH>; + status = "disabled"; + + bus-range = <0 0>; + #address-cells = <3>; + #size-cells = <2>; + #interrupt-cells = <1>; + ranges = <0x02000000 0 0xee080000 0 0xee080000 0 0x00010000>; + interrupt-map-mask = <0xff00 0 0 0x7>; + interrupt-map = <0x0000 0 0 1 &gic 0 108 IRQ_TYPE_LEVEL_HIGH + 0x0800 0 0 1 &gic 0 108 IRQ_TYPE_LEVEL_HIGH + 0x1000 0 0 2 &gic 0 108 IRQ_TYPE_LEVEL_HIGH>; + }; + + pci1: pci at ee0b0000 { + compatible = "renesas,pci-r8a7790"; + device_type = "pci"; + clocks = <&mstp7_clks R8A7790_CLK_EHCI>; + reg = <0 0xee0b0000 0 0xc00>, + <0 0xee0a0000 0 0x1100>; + interrupts = <0 112 IRQ_TYPE_LEVEL_HIGH>; + status = "disabled"; + + bus-range = <1 1>; + #address-cells = <3>; + #size-cells = <2>; + #interrupt-cells = <1>; + ranges = <0x02000000 0 0xee0a0000 0 0xee0a0000 0 0x00010000>; + interrupt-map-mask = <0xff00 0 0 0x7>; + interrupt-map = <0x0000 0 0 1 &gic 0 112 IRQ_TYPE_LEVEL_HIGH + 0x0800 0 0 1 &gic 0 112 IRQ_TYPE_LEVEL_HIGH + 0x1000 0 0 2 &gic 0 112 IRQ_TYPE_LEVEL_HIGH>; + }; + + pci2: pci at ee0d0000 { + compatible = "renesas,pci-r8a7790"; + device_type = "pci"; + clocks = <&mstp7_clks R8A7790_CLK_EHCI>; + reg = <0 0xee0d0000 0 0xc00>, + <0 0xee0c0000 0 0x1100>; + interrupts = <0 113 IRQ_TYPE_LEVEL_HIGH>; + status = "disabled"; + + bus-range = <2 2>; + #address-cells = <3>; + #size-cells = <2>; + #interrupt-cells = <1>; + ranges = <0x02000000 0 0xee0c0000 0 0xee0c0000 0 0x00010000>; + interrupt-map-mask = <0xff00 0 0 0x7>; + interrupt-map = <0x0000 0 0 1 &gic 0 113 IRQ_TYPE_LEVEL_HIGH + 0x0800 0 0 1 &gic 0 113 IRQ_TYPE_LEVEL_HIGH + 0x1000 0 0 2 &gic 0 113 IRQ_TYPE_LEVEL_HIGH>; + }; + pciec: pcie at fe000000 { compatible = "renesas,pcie-r8a7790"; reg = <0 0xfe000000 0 0x80000>; -- 2.0.0.rc2 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 2/4] ARM: shmobile: lager: enable internal PCI 2014-07-01 0:28 ` Simon Horman @ 2014-07-01 0:28 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-07-01 0:28 UTC (permalink / raw) To: linux-arm-kernel From: Ben Dooks <ben.dooks@codethink.co.uk> Enable internal AHB-PCI bridges for the USB EHCI/OHCI controllers attached to them. Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk> Reviewed-by: Ian Molton <ian.molton@codethink.co.uk> [Sergei: enabled PCI0] Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Tested-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7790-lager.dts | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/arch/arm/boot/dts/r8a7790-lager.dts b/arch/arm/boot/dts/r8a7790-lager.dts index 0890d47..544202b 100644 --- a/arch/arm/boot/dts/r8a7790-lager.dts +++ b/arch/arm/boot/dts/r8a7790-lager.dts @@ -219,6 +219,21 @@ renesas,groups = "i2c3"; renesas,function = "i2c3"; }; + + usb0_pins: usb0 { + renesas,groups = "usb0"; + renesas,function = "usb0"; + }; + + usb1_pins: usb1 { + renesas,groups = "usb1"; + renesas,function = "usb1"; + }; + + usb2_pins: usb2 { + renesas,groups = "usb2"; + renesas,function = "usb2"; + }; }; ðer { @@ -368,3 +383,21 @@ regulator-always-on; }; }; + +&pci0 { + status = "okay"; + pinctrl-0 = <&usb0_pins>; + pinctrl-names = "default"; +}; + +&pci1 { + status = "okay"; + pinctrl-0 = <&usb1_pins>; + pinctrl-names = "default"; +}; + +&pci2 { + status = "okay"; + pinctrl-0 = <&usb2_pins>; + pinctrl-names = "default"; +}; -- 2.0.0.rc2 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 2/4] ARM: shmobile: lager: enable internal PCI @ 2014-07-01 0:28 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-07-01 0:28 UTC (permalink / raw) To: linux-arm-kernel From: Ben Dooks <ben.dooks@codethink.co.uk> Enable internal AHB-PCI bridges for the USB EHCI/OHCI controllers attached to them. Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk> Reviewed-by: Ian Molton <ian.molton@codethink.co.uk> [Sergei: enabled PCI0] Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Tested-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7790-lager.dts | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/arch/arm/boot/dts/r8a7790-lager.dts b/arch/arm/boot/dts/r8a7790-lager.dts index 0890d47..544202b 100644 --- a/arch/arm/boot/dts/r8a7790-lager.dts +++ b/arch/arm/boot/dts/r8a7790-lager.dts @@ -219,6 +219,21 @@ renesas,groups = "i2c3"; renesas,function = "i2c3"; }; + + usb0_pins: usb0 { + renesas,groups = "usb0"; + renesas,function = "usb0"; + }; + + usb1_pins: usb1 { + renesas,groups = "usb1"; + renesas,function = "usb1"; + }; + + usb2_pins: usb2 { + renesas,groups = "usb2"; + renesas,function = "usb2"; + }; }; ðer { @@ -368,3 +383,21 @@ regulator-always-on; }; }; + +&pci0 { + status = "okay"; + pinctrl-0 = <&usb0_pins>; + pinctrl-names = "default"; +}; + +&pci1 { + status = "okay"; + pinctrl-0 = <&usb1_pins>; + pinctrl-names = "default"; +}; + +&pci2 { + status = "okay"; + pinctrl-0 = <&usb2_pins>; + pinctrl-names = "default"; +}; -- 2.0.0.rc2 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 3/4] ARM: shmobile: r8a7790: add DVC support for sound node on DTSI 2014-07-01 0:28 ` Simon Horman @ 2014-07-01 0:28 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-07-01 0:28 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7790.dtsi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/r8a7790.dtsi b/arch/arm/boot/dts/r8a7790.dtsi index 373d9a21..bdcb7f0 100644 --- a/arch/arm/boot/dts/r8a7790.dtsi +++ b/arch/arm/boot/dts/r8a7790.dtsi @@ -1034,16 +1034,23 @@ <&mstp10_clks R8A7790_CLK_SCU_SRC5>, <&mstp10_clks R8A7790_CLK_SCU_SRC4>, <&mstp10_clks R8A7790_CLK_SCU_SRC3>, <&mstp10_clks R8A7790_CLK_SCU_SRC2>, <&mstp10_clks R8A7790_CLK_SCU_SRC1>, <&mstp10_clks R8A7790_CLK_SCU_SRC0>, + <&mstp10_clks R8A7790_CLK_SCU_DVC0>, <&mstp10_clks R8A7790_CLK_SCU_DVC1>, <&audio_clk_a>, <&audio_clk_b>, <&audio_clk_c>, <&m2_clk>; clock-names = "ssi-all", "ssi.9", "ssi.8", "ssi.7", "ssi.6", "ssi.5", "ssi.4", "ssi.3", "ssi.2", "ssi.1", "ssi.0", "src.9", "src.8", "src.7", "src.6", "src.5", "src.4", "src.3", "src.2", "src.1", "src.0", + "dvc.0", "dvc.1", "clk_a", "clk_b", "clk_c", "clk_i"; status = "disabled"; + rcar_sound,dvc { + dvc0: dvc@0 { }; + dvc1: dvc@1 { }; + }; + rcar_sound,src { src0: src@0 { }; src1: src@1 { }; -- 2.0.0.rc2 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 3/4] ARM: shmobile: r8a7790: add DVC support for sound node on DTSI @ 2014-07-01 0:28 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-07-01 0:28 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7790.dtsi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/r8a7790.dtsi b/arch/arm/boot/dts/r8a7790.dtsi index 373d9a21..bdcb7f0 100644 --- a/arch/arm/boot/dts/r8a7790.dtsi +++ b/arch/arm/boot/dts/r8a7790.dtsi @@ -1034,16 +1034,23 @@ <&mstp10_clks R8A7790_CLK_SCU_SRC5>, <&mstp10_clks R8A7790_CLK_SCU_SRC4>, <&mstp10_clks R8A7790_CLK_SCU_SRC3>, <&mstp10_clks R8A7790_CLK_SCU_SRC2>, <&mstp10_clks R8A7790_CLK_SCU_SRC1>, <&mstp10_clks R8A7790_CLK_SCU_SRC0>, + <&mstp10_clks R8A7790_CLK_SCU_DVC0>, <&mstp10_clks R8A7790_CLK_SCU_DVC1>, <&audio_clk_a>, <&audio_clk_b>, <&audio_clk_c>, <&m2_clk>; clock-names = "ssi-all", "ssi.9", "ssi.8", "ssi.7", "ssi.6", "ssi.5", "ssi.4", "ssi.3", "ssi.2", "ssi.1", "ssi.0", "src.9", "src.8", "src.7", "src.6", "src.5", "src.4", "src.3", "src.2", "src.1", "src.0", + "dvc.0", "dvc.1", "clk_a", "clk_b", "clk_c", "clk_i"; status = "disabled"; + rcar_sound,dvc { + dvc0: dvc at 0 { }; + dvc1: dvc at 1 { }; + }; + rcar_sound,src { src0: src at 0 { }; src1: src at 1 { }; -- 2.0.0.rc2 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 4/4] ARM: shmobile: r8a7791: add DVC support for sound node on DTSI 2014-07-01 0:28 ` Simon Horman @ 2014-07-01 0:28 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-07-01 0:28 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791.dtsi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/r8a7791.dtsi b/arch/arm/boot/dts/r8a7791.dtsi index 1997f16..336a6c0 100644 --- a/arch/arm/boot/dts/r8a7791.dtsi +++ b/arch/arm/boot/dts/r8a7791.dtsi @@ -1005,16 +1005,23 @@ <&mstp10_clks R8A7791_CLK_SCU_SRC5>, <&mstp10_clks R8A7791_CLK_SCU_SRC4>, <&mstp10_clks R8A7791_CLK_SCU_SRC3>, <&mstp10_clks R8A7791_CLK_SCU_SRC2>, <&mstp10_clks R8A7791_CLK_SCU_SRC1>, <&mstp10_clks R8A7791_CLK_SCU_SRC0>, + <&mstp10_clks R8A7791_CLK_SCU_DVC0>, <&mstp10_clks R8A7791_CLK_SCU_DVC1>, <&audio_clk_a>, <&audio_clk_b>, <&audio_clk_c>, <&m2_clk>; clock-names = "ssi-all", "ssi.9", "ssi.8", "ssi.7", "ssi.6", "ssi.5", "ssi.4", "ssi.3", "ssi.2", "ssi.1", "ssi.0", "src.9", "src.8", "src.7", "src.6", "src.5", "src.4", "src.3", "src.2", "src.1", "src.0", + "dvc.0", "dvc.1", "clk_a", "clk_b", "clk_c", "clk_i"; status = "disabled"; + rcar_sound,dvc { + dvc0: dvc@0 { }; + dvc1: dvc@1 { }; + }; + rcar_sound,src { src0: src@0 { }; src1: src@1 { }; -- 2.0.0.rc2 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 4/4] ARM: shmobile: r8a7791: add DVC support for sound node on DTSI @ 2014-07-01 0:28 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-07-01 0:28 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791.dtsi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/r8a7791.dtsi b/arch/arm/boot/dts/r8a7791.dtsi index 1997f16..336a6c0 100644 --- a/arch/arm/boot/dts/r8a7791.dtsi +++ b/arch/arm/boot/dts/r8a7791.dtsi @@ -1005,16 +1005,23 @@ <&mstp10_clks R8A7791_CLK_SCU_SRC5>, <&mstp10_clks R8A7791_CLK_SCU_SRC4>, <&mstp10_clks R8A7791_CLK_SCU_SRC3>, <&mstp10_clks R8A7791_CLK_SCU_SRC2>, <&mstp10_clks R8A7791_CLK_SCU_SRC1>, <&mstp10_clks R8A7791_CLK_SCU_SRC0>, + <&mstp10_clks R8A7791_CLK_SCU_DVC0>, <&mstp10_clks R8A7791_CLK_SCU_DVC1>, <&audio_clk_a>, <&audio_clk_b>, <&audio_clk_c>, <&m2_clk>; clock-names = "ssi-all", "ssi.9", "ssi.8", "ssi.7", "ssi.6", "ssi.5", "ssi.4", "ssi.3", "ssi.2", "ssi.1", "ssi.0", "src.9", "src.8", "src.7", "src.6", "src.5", "src.4", "src.3", "src.2", "src.1", "src.0", + "dvc.0", "dvc.1", "clk_a", "clk_b", "clk_c", "clk_i"; status = "disabled"; + rcar_sound,dvc { + dvc0: dvc at 0 { }; + dvc1: dvc at 1 { }; + }; + rcar_sound,src { src0: src at 0 { }; src1: src at 1 { }; -- 2.0.0.rc2 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* Re: [GIT PULL] Second Round of Renesas ARM Based SoC DT Updates for v3.17 2014-07-01 0:28 ` Simon Horman @ 2014-07-12 16:35 ` Olof Johansson -1 siblings, 0 replies; 776+ messages in thread From: Olof Johansson @ 2014-07-12 16:35 UTC (permalink / raw) To: linux-arm-kernel On Tue, Jul 01, 2014 at 09:28:19AM +0900, Simon Horman wrote: > Hi Olof, Hi Kevin, Hi Arnd, > > Please consider these Second Round of Renesas ARM Based SoC DT Updates > for v3.17. > > This pull request is based on the previous round of > such requests, tagged as renesas-dt-for-v3.17, > which I have already sent a pull-request for. > > > The following changes since commit 09abd1fd11f98d6abde9c23244234170e7e36c2f: > > ARM: shmobile: r8a7791: add R-Car sound support on DTSI (2014-06-17 19:58:32 +0900) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git renesas-dt2-for-v3.17 > > for you to fetch changes up to 150c8ad40808189423002ea9fc6a858a3a59e6dc: > > ARM: shmobile: r8a7791: add DVC support for sound node on DTSI (2014-06-28 09:02:19 +0900) > > ---------------------------------------------------------------- > Second Round of Renesas ARM Based SoC DT Updates for v3.17 > > * Extend hardware coverage > - Add DVC support for sound nodes on r8a7791 and r8a7790 > - Enable internal PCI on r8a7790/lager Merged, thanks. -Olof ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC DT Updates for v3.17 @ 2014-07-12 16:35 ` Olof Johansson 0 siblings, 0 replies; 776+ messages in thread From: Olof Johansson @ 2014-07-12 16:35 UTC (permalink / raw) To: linux-arm-kernel On Tue, Jul 01, 2014 at 09:28:19AM +0900, Simon Horman wrote: > Hi Olof, Hi Kevin, Hi Arnd, > > Please consider these Second Round of Renesas ARM Based SoC DT Updates > for v3.17. > > This pull request is based on the previous round of > such requests, tagged as renesas-dt-for-v3.17, > which I have already sent a pull-request for. > > > The following changes since commit 09abd1fd11f98d6abde9c23244234170e7e36c2f: > > ARM: shmobile: r8a7791: add R-Car sound support on DTSI (2014-06-17 19:58:32 +0900) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git renesas-dt2-for-v3.17 > > for you to fetch changes up to 150c8ad40808189423002ea9fc6a858a3a59e6dc: > > ARM: shmobile: r8a7791: add DVC support for sound node on DTSI (2014-06-28 09:02:19 +0900) > > ---------------------------------------------------------------- > Second Round of Renesas ARM Based SoC DT Updates for v3.17 > > * Extend hardware coverage > - Add DVC support for sound nodes on r8a7791 and r8a7790 > - Enable internal PCI on r8a7790/lager Merged, thanks. -Olof ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC r8a7779 Multiplatform Updates for v3.17 @ 2014-07-01 0:28 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-07-01 0:28 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Hi Kevin, Hi Arnd, Please consider these Second Round of Renesas ARM Based SoC r8a7779 Multiplatform Updates for v3.17o. This pull request is based on the previous round of such requests, tagged as renesas-r8a7779-multiplatform-for-v3.17, which I have already sent a pull-request for. I have applied this clean-up change to a non-cleanup branch to avoid adding conflicts that were known (to me) at the time of queuing up this change. The following changes since commit c1a0f9932b66b2298163c31f8ac3f2844476e1c2: ARM: shmobile: marzen: Do not use workaround for scif devices (2014-06-17 19:56:37 +0900) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git renesas-r8a7779-multiplatform2-for-v3.17 for you to fetch changes up to 1b55353c9214788b0d0797a5fd4585af1557a12c: ARM: shmobile: Move r8a7779.h (2014-06-25 16:52:39 +0900) ---------------------------------------------------------------- Second Round of Renesas ARM Based SoC r8a7779-multiplatform Updates for v3.17 * Move r8a7779.h out of mach directory. This is part of a multi-stage effort to move headers out of that directory. ---------------------------------------------------------------- Geert Uytterhoeven (1): ARM: shmobile: Move r8a7779.h arch/arm/mach-shmobile/board-marzen-reference.c | 4 +++- arch/arm/mach-shmobile/board-marzen.c | 4 +++- arch/arm/mach-shmobile/clock-r8a7779.c | 3 ++- arch/arm/mach-shmobile/pm-r8a7779.c | 4 +++- arch/arm/mach-shmobile/{include/mach => }/r8a7779.h | 0 arch/arm/mach-shmobile/setup-r8a7779.c | 4 +++- arch/arm/mach-shmobile/smp-r8a7779.c | 4 +++- 7 files changed, 17 insertions(+), 6 deletions(-) rename arch/arm/mach-shmobile/{include/mach => }/r8a7779.h (100%) ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC r8a7779 Multiplatform Updates for v3.17 @ 2014-07-01 0:28 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-07-01 0:28 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Hi Kevin, Hi Arnd, Please consider these Second Round of Renesas ARM Based SoC r8a7779 Multiplatform Updates for v3.17o. This pull request is based on the previous round of such requests, tagged as renesas-r8a7779-multiplatform-for-v3.17, which I have already sent a pull-request for. I have applied this clean-up change to a non-cleanup branch to avoid adding conflicts that were known (to me) at the time of queuing up this change. The following changes since commit c1a0f9932b66b2298163c31f8ac3f2844476e1c2: ARM: shmobile: marzen: Do not use workaround for scif devices (2014-06-17 19:56:37 +0900) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git renesas-r8a7779-multiplatform2-for-v3.17 for you to fetch changes up to 1b55353c9214788b0d0797a5fd4585af1557a12c: ARM: shmobile: Move r8a7779.h (2014-06-25 16:52:39 +0900) ---------------------------------------------------------------- Second Round of Renesas ARM Based SoC r8a7779-multiplatform Updates for v3.17 * Move r8a7779.h out of mach directory. This is part of a multi-stage effort to move headers out of that directory. ---------------------------------------------------------------- Geert Uytterhoeven (1): ARM: shmobile: Move r8a7779.h arch/arm/mach-shmobile/board-marzen-reference.c | 4 +++- arch/arm/mach-shmobile/board-marzen.c | 4 +++- arch/arm/mach-shmobile/clock-r8a7779.c | 3 ++- arch/arm/mach-shmobile/pm-r8a7779.c | 4 +++- arch/arm/mach-shmobile/{include/mach => }/r8a7779.h | 0 arch/arm/mach-shmobile/setup-r8a7779.c | 4 +++- arch/arm/mach-shmobile/smp-r8a7779.c | 4 +++- 7 files changed, 17 insertions(+), 6 deletions(-) rename arch/arm/mach-shmobile/{include/mach => }/r8a7779.h (100%) ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH] ARM: shmobile: Move r8a7779.h 2014-07-01 0:28 ` Simon Horman @ 2014-07-01 0:28 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-07-01 0:28 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> Change location of r8a7779.h so it can be included as "r8a7779.h" instead of the old style <mach/r8a7779.h> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/board-marzen-reference.c | 4 ++- arch/arm/mach-shmobile/board-marzen.c | 4 ++- arch/arm/mach-shmobile/clock-r8a7779.c | 3 ++- arch/arm/mach-shmobile/include/mach/r8a7779.h | 36 ------------------------- arch/arm/mach-shmobile/pm-r8a7779.c | 4 ++- arch/arm/mach-shmobile/r8a7779.h | 36 +++++++++++++++++++++++++ arch/arm/mach-shmobile/setup-r8a7779.c | 4 ++- arch/arm/mach-shmobile/smp-r8a7779.c | 4 ++- 8 files changed, 53 insertions(+), 42 deletions(-) delete mode 100644 arch/arm/mach-shmobile/include/mach/r8a7779.h create mode 100644 arch/arm/mach-shmobile/r8a7779.h diff --git a/arch/arm/mach-shmobile/board-marzen-reference.c b/arch/arm/mach-shmobile/board-marzen-reference.c index 0a000b7..21b3e1c 100644 --- a/arch/arm/mach-shmobile/board-marzen-reference.c +++ b/arch/arm/mach-shmobile/board-marzen-reference.c @@ -22,12 +22,14 @@ #include <linux/clk/shmobile.h> #include <linux/clocksource.h> #include <linux/of_platform.h> -#include <mach/r8a7779.h> + #include <asm/irq.h> #include <asm/mach/arch.h> + #include "clock.h" #include "common.h" #include "irqs.h" +#include "r8a7779.h" static void __init marzen_init_timer(void) { diff --git a/arch/arm/mach-shmobile/board-marzen.c b/arch/arm/mach-shmobile/board-marzen.c index fe445ef..25a1037 100644 --- a/arch/arm/mach-shmobile/board-marzen.c +++ b/arch/arm/mach-shmobile/board-marzen.c @@ -41,13 +41,15 @@ #include <linux/mmc/host.h> #include <linux/mmc/sh_mobile_sdhi.h> #include <linux/mfd/tmio.h> + #include <media/soc_camera.h> -#include <mach/r8a7779.h> #include <asm/mach-types.h> #include <asm/mach/arch.h> #include <asm/traps.h> + #include "common.h" #include "irqs.h" +#include "r8a7779.h" /* Fixed 3.3V regulator to be used by SDHI0 */ static struct regulator_consumer_supply fixed3v3_power_consumers[] = { diff --git a/arch/arm/mach-shmobile/clock-r8a7779.c b/arch/arm/mach-shmobile/clock-r8a7779.c index e690927..c51f9db 100644 --- a/arch/arm/mach-shmobile/clock-r8a7779.c +++ b/arch/arm/mach-shmobile/clock-r8a7779.c @@ -24,9 +24,10 @@ #include <linux/sh_clk.h> #include <linux/clkdev.h> #include <linux/sh_timer.h> -#include <mach/r8a7779.h> + #include "clock.h" #include "common.h" +#include "r8a7779.h" /* * MD1 = 1 MD1 = 0 diff --git a/arch/arm/mach-shmobile/include/mach/r8a7779.h b/arch/arm/mach-shmobile/include/mach/r8a7779.h deleted file mode 100644 index 5415c71..0000000 --- a/arch/arm/mach-shmobile/include/mach/r8a7779.h +++ /dev/null @@ -1,36 +0,0 @@ -#ifndef __ASM_R8A7779_H__ -#define __ASM_R8A7779_H__ - -#include <linux/sh_clk.h> - -/* HPB-DMA slave IDs */ -enum { - HPBDMA_SLAVE_DUMMY, - HPBDMA_SLAVE_SDHI0_TX, - HPBDMA_SLAVE_SDHI0_RX, -}; - -extern void r8a7779_init_irq_extpin(int irlm); -extern void r8a7779_init_irq_extpin_dt(int irlm); -extern void r8a7779_init_irq_dt(void); -extern void r8a7779_map_io(void); -extern void r8a7779_earlytimer_init(void); -extern void r8a7779_add_early_devices(void); -extern void r8a7779_add_standard_devices(void); -extern void r8a7779_add_standard_devices_dt(void); -extern void r8a7779_init_late(void); -extern u32 r8a7779_read_mode_pins(void); -extern void r8a7779_clock_init(void); -extern void r8a7779_pinmux_init(void); -extern void r8a7779_pm_init(void); -extern void r8a7779_register_twd(void); - -#ifdef CONFIG_PM -extern void __init r8a7779_init_pm_domains(void); -#else -static inline void r8a7779_init_pm_domains(void) {} -#endif /* CONFIG_PM */ - -extern struct smp_operations r8a7779_smp_ops; - -#endif /* __ASM_R8A7779_H__ */ diff --git a/arch/arm/mach-shmobile/pm-r8a7779.c b/arch/arm/mach-shmobile/pm-r8a7779.c index f0f36cb..69f70b7 100644 --- a/arch/arm/mach-shmobile/pm-r8a7779.c +++ b/arch/arm/mach-shmobile/pm-r8a7779.c @@ -19,10 +19,12 @@ #include <linux/irq.h> #include <linux/interrupt.h> #include <linux/console.h> + #include <asm/io.h> -#include <mach/r8a7779.h> + #include "common.h" #include "pm-rcar.h" +#include "r8a7779.h" /* SYSC */ #define SYSCIER 0x0c diff --git a/arch/arm/mach-shmobile/r8a7779.h b/arch/arm/mach-shmobile/r8a7779.h new file mode 100644 index 0000000..5415c71 --- /dev/null +++ b/arch/arm/mach-shmobile/r8a7779.h @@ -0,0 +1,36 @@ +#ifndef __ASM_R8A7779_H__ +#define __ASM_R8A7779_H__ + +#include <linux/sh_clk.h> + +/* HPB-DMA slave IDs */ +enum { + HPBDMA_SLAVE_DUMMY, + HPBDMA_SLAVE_SDHI0_TX, + HPBDMA_SLAVE_SDHI0_RX, +}; + +extern void r8a7779_init_irq_extpin(int irlm); +extern void r8a7779_init_irq_extpin_dt(int irlm); +extern void r8a7779_init_irq_dt(void); +extern void r8a7779_map_io(void); +extern void r8a7779_earlytimer_init(void); +extern void r8a7779_add_early_devices(void); +extern void r8a7779_add_standard_devices(void); +extern void r8a7779_add_standard_devices_dt(void); +extern void r8a7779_init_late(void); +extern u32 r8a7779_read_mode_pins(void); +extern void r8a7779_clock_init(void); +extern void r8a7779_pinmux_init(void); +extern void r8a7779_pm_init(void); +extern void r8a7779_register_twd(void); + +#ifdef CONFIG_PM +extern void __init r8a7779_init_pm_domains(void); +#else +static inline void r8a7779_init_pm_domains(void) {} +#endif /* CONFIG_PM */ + +extern struct smp_operations r8a7779_smp_ops; + +#endif /* __ASM_R8A7779_H__ */ diff --git a/arch/arm/mach-shmobile/setup-r8a7779.c b/arch/arm/mach-shmobile/setup-r8a7779.c index 2f59b99..8dbc407 100644 --- a/arch/arm/mach-shmobile/setup-r8a7779.c +++ b/arch/arm/mach-shmobile/setup-r8a7779.c @@ -40,14 +40,16 @@ #include <linux/usb/ehci_pdriver.h> #include <linux/usb/ohci_pdriver.h> #include <linux/pm_runtime.h> -#include <mach/r8a7779.h> + #include <asm/mach-types.h> #include <asm/mach/arch.h> #include <asm/mach/time.h> #include <asm/mach/map.h> #include <asm/hardware/cache-l2x0.h> + #include "common.h" #include "irqs.h" +#include "r8a7779.h" static struct map_desc r8a7779_io_desc[] __initdata = { /* 2M entity map for 0xf0000000 (MPCORE) */ diff --git a/arch/arm/mach-shmobile/smp-r8a7779.c b/arch/arm/mach-shmobile/smp-r8a7779.c index c230fc0..3100e35 100644 --- a/arch/arm/mach-shmobile/smp-r8a7779.c +++ b/arch/arm/mach-shmobile/smp-r8a7779.c @@ -23,13 +23,15 @@ #include <linux/spinlock.h> #include <linux/io.h> #include <linux/delay.h> -#include <mach/r8a7779.h> + #include <asm/cacheflush.h> #include <asm/smp_plat.h> #include <asm/smp_scu.h> #include <asm/smp_twd.h> + #include "common.h" #include "pm-rcar.h" +#include "r8a7779.h" #define AVECR IOMEM(0xfe700040) #define R8A7779_SCU_BASE 0xf0000000 -- 2.0.0.rc2 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH] ARM: shmobile: Move r8a7779.h @ 2014-07-01 0:28 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-07-01 0:28 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> Change location of r8a7779.h so it can be included as "r8a7779.h" instead of the old style <mach/r8a7779.h> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/board-marzen-reference.c | 4 ++- arch/arm/mach-shmobile/board-marzen.c | 4 ++- arch/arm/mach-shmobile/clock-r8a7779.c | 3 ++- arch/arm/mach-shmobile/include/mach/r8a7779.h | 36 ------------------------- arch/arm/mach-shmobile/pm-r8a7779.c | 4 ++- arch/arm/mach-shmobile/r8a7779.h | 36 +++++++++++++++++++++++++ arch/arm/mach-shmobile/setup-r8a7779.c | 4 ++- arch/arm/mach-shmobile/smp-r8a7779.c | 4 ++- 8 files changed, 53 insertions(+), 42 deletions(-) delete mode 100644 arch/arm/mach-shmobile/include/mach/r8a7779.h create mode 100644 arch/arm/mach-shmobile/r8a7779.h diff --git a/arch/arm/mach-shmobile/board-marzen-reference.c b/arch/arm/mach-shmobile/board-marzen-reference.c index 0a000b7..21b3e1c 100644 --- a/arch/arm/mach-shmobile/board-marzen-reference.c +++ b/arch/arm/mach-shmobile/board-marzen-reference.c @@ -22,12 +22,14 @@ #include <linux/clk/shmobile.h> #include <linux/clocksource.h> #include <linux/of_platform.h> -#include <mach/r8a7779.h> + #include <asm/irq.h> #include <asm/mach/arch.h> + #include "clock.h" #include "common.h" #include "irqs.h" +#include "r8a7779.h" static void __init marzen_init_timer(void) { diff --git a/arch/arm/mach-shmobile/board-marzen.c b/arch/arm/mach-shmobile/board-marzen.c index fe445ef..25a1037 100644 --- a/arch/arm/mach-shmobile/board-marzen.c +++ b/arch/arm/mach-shmobile/board-marzen.c @@ -41,13 +41,15 @@ #include <linux/mmc/host.h> #include <linux/mmc/sh_mobile_sdhi.h> #include <linux/mfd/tmio.h> + #include <media/soc_camera.h> -#include <mach/r8a7779.h> #include <asm/mach-types.h> #include <asm/mach/arch.h> #include <asm/traps.h> + #include "common.h" #include "irqs.h" +#include "r8a7779.h" /* Fixed 3.3V regulator to be used by SDHI0 */ static struct regulator_consumer_supply fixed3v3_power_consumers[] = { diff --git a/arch/arm/mach-shmobile/clock-r8a7779.c b/arch/arm/mach-shmobile/clock-r8a7779.c index e690927..c51f9db 100644 --- a/arch/arm/mach-shmobile/clock-r8a7779.c +++ b/arch/arm/mach-shmobile/clock-r8a7779.c @@ -24,9 +24,10 @@ #include <linux/sh_clk.h> #include <linux/clkdev.h> #include <linux/sh_timer.h> -#include <mach/r8a7779.h> + #include "clock.h" #include "common.h" +#include "r8a7779.h" /* * MD1 = 1 MD1 = 0 diff --git a/arch/arm/mach-shmobile/include/mach/r8a7779.h b/arch/arm/mach-shmobile/include/mach/r8a7779.h deleted file mode 100644 index 5415c71..0000000 --- a/arch/arm/mach-shmobile/include/mach/r8a7779.h +++ /dev/null @@ -1,36 +0,0 @@ -#ifndef __ASM_R8A7779_H__ -#define __ASM_R8A7779_H__ - -#include <linux/sh_clk.h> - -/* HPB-DMA slave IDs */ -enum { - HPBDMA_SLAVE_DUMMY, - HPBDMA_SLAVE_SDHI0_TX, - HPBDMA_SLAVE_SDHI0_RX, -}; - -extern void r8a7779_init_irq_extpin(int irlm); -extern void r8a7779_init_irq_extpin_dt(int irlm); -extern void r8a7779_init_irq_dt(void); -extern void r8a7779_map_io(void); -extern void r8a7779_earlytimer_init(void); -extern void r8a7779_add_early_devices(void); -extern void r8a7779_add_standard_devices(void); -extern void r8a7779_add_standard_devices_dt(void); -extern void r8a7779_init_late(void); -extern u32 r8a7779_read_mode_pins(void); -extern void r8a7779_clock_init(void); -extern void r8a7779_pinmux_init(void); -extern void r8a7779_pm_init(void); -extern void r8a7779_register_twd(void); - -#ifdef CONFIG_PM -extern void __init r8a7779_init_pm_domains(void); -#else -static inline void r8a7779_init_pm_domains(void) {} -#endif /* CONFIG_PM */ - -extern struct smp_operations r8a7779_smp_ops; - -#endif /* __ASM_R8A7779_H__ */ diff --git a/arch/arm/mach-shmobile/pm-r8a7779.c b/arch/arm/mach-shmobile/pm-r8a7779.c index f0f36cb..69f70b7 100644 --- a/arch/arm/mach-shmobile/pm-r8a7779.c +++ b/arch/arm/mach-shmobile/pm-r8a7779.c @@ -19,10 +19,12 @@ #include <linux/irq.h> #include <linux/interrupt.h> #include <linux/console.h> + #include <asm/io.h> -#include <mach/r8a7779.h> + #include "common.h" #include "pm-rcar.h" +#include "r8a7779.h" /* SYSC */ #define SYSCIER 0x0c diff --git a/arch/arm/mach-shmobile/r8a7779.h b/arch/arm/mach-shmobile/r8a7779.h new file mode 100644 index 0000000..5415c71 --- /dev/null +++ b/arch/arm/mach-shmobile/r8a7779.h @@ -0,0 +1,36 @@ +#ifndef __ASM_R8A7779_H__ +#define __ASM_R8A7779_H__ + +#include <linux/sh_clk.h> + +/* HPB-DMA slave IDs */ +enum { + HPBDMA_SLAVE_DUMMY, + HPBDMA_SLAVE_SDHI0_TX, + HPBDMA_SLAVE_SDHI0_RX, +}; + +extern void r8a7779_init_irq_extpin(int irlm); +extern void r8a7779_init_irq_extpin_dt(int irlm); +extern void r8a7779_init_irq_dt(void); +extern void r8a7779_map_io(void); +extern void r8a7779_earlytimer_init(void); +extern void r8a7779_add_early_devices(void); +extern void r8a7779_add_standard_devices(void); +extern void r8a7779_add_standard_devices_dt(void); +extern void r8a7779_init_late(void); +extern u32 r8a7779_read_mode_pins(void); +extern void r8a7779_clock_init(void); +extern void r8a7779_pinmux_init(void); +extern void r8a7779_pm_init(void); +extern void r8a7779_register_twd(void); + +#ifdef CONFIG_PM +extern void __init r8a7779_init_pm_domains(void); +#else +static inline void r8a7779_init_pm_domains(void) {} +#endif /* CONFIG_PM */ + +extern struct smp_operations r8a7779_smp_ops; + +#endif /* __ASM_R8A7779_H__ */ diff --git a/arch/arm/mach-shmobile/setup-r8a7779.c b/arch/arm/mach-shmobile/setup-r8a7779.c index 2f59b99..8dbc407 100644 --- a/arch/arm/mach-shmobile/setup-r8a7779.c +++ b/arch/arm/mach-shmobile/setup-r8a7779.c @@ -40,14 +40,16 @@ #include <linux/usb/ehci_pdriver.h> #include <linux/usb/ohci_pdriver.h> #include <linux/pm_runtime.h> -#include <mach/r8a7779.h> + #include <asm/mach-types.h> #include <asm/mach/arch.h> #include <asm/mach/time.h> #include <asm/mach/map.h> #include <asm/hardware/cache-l2x0.h> + #include "common.h" #include "irqs.h" +#include "r8a7779.h" static struct map_desc r8a7779_io_desc[] __initdata = { /* 2M entity map for 0xf0000000 (MPCORE) */ diff --git a/arch/arm/mach-shmobile/smp-r8a7779.c b/arch/arm/mach-shmobile/smp-r8a7779.c index c230fc0..3100e35 100644 --- a/arch/arm/mach-shmobile/smp-r8a7779.c +++ b/arch/arm/mach-shmobile/smp-r8a7779.c @@ -23,13 +23,15 @@ #include <linux/spinlock.h> #include <linux/io.h> #include <linux/delay.h> -#include <mach/r8a7779.h> + #include <asm/cacheflush.h> #include <asm/smp_plat.h> #include <asm/smp_scu.h> #include <asm/smp_twd.h> + #include "common.h" #include "pm-rcar.h" +#include "r8a7779.h" #define AVECR IOMEM(0xfe700040) #define R8A7779_SCU_BASE 0xf0000000 -- 2.0.0.rc2 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* Re: [GIT PULL] Second Round of Renesas ARM Based SoC r8a7779 Multiplatform Updates for v3.17 2014-07-01 0:28 ` Simon Horman @ 2014-07-12 16:36 ` Olof Johansson -1 siblings, 0 replies; 776+ messages in thread From: Olof Johansson @ 2014-07-12 16:36 UTC (permalink / raw) To: linux-arm-kernel On Tue, Jul 01, 2014 at 09:28:28AM +0900, Simon Horman wrote: > Hi Olof, Hi Kevin, Hi Arnd, > > Please consider these Second Round of Renesas ARM Based SoC r8a7779 > Multiplatform Updates for v3.17o. > > This pull request is based on the previous round of > such requests, tagged as renesas-r8a7779-multiplatform-for-v3.17, > which I have already sent a pull-request for. > > I have applied this clean-up change to a non-cleanup branch > to avoid adding conflicts that were known (to me) at the > time of queuing up this change. > > > The following changes since commit c1a0f9932b66b2298163c31f8ac3f2844476e1c2: > > ARM: shmobile: marzen: Do not use workaround for scif devices (2014-06-17 19:56:37 +0900) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git renesas-r8a7779-multiplatform2-for-v3.17 > > for you to fetch changes up to 1b55353c9214788b0d0797a5fd4585af1557a12c: > > ARM: shmobile: Move r8a7779.h (2014-06-25 16:52:39 +0900) > > ---------------------------------------------------------------- > Second Round of Renesas ARM Based SoC r8a7779-multiplatform Updates for v3.17 > > * Move r8a7779.h out of mach directory. > This is part of a multi-stage effort to move headers > out of that directory. Merged, thanks. -Olof ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC r8a7779 Multiplatform Updates for v3.17 @ 2014-07-12 16:36 ` Olof Johansson 0 siblings, 0 replies; 776+ messages in thread From: Olof Johansson @ 2014-07-12 16:36 UTC (permalink / raw) To: linux-arm-kernel On Tue, Jul 01, 2014 at 09:28:28AM +0900, Simon Horman wrote: > Hi Olof, Hi Kevin, Hi Arnd, > > Please consider these Second Round of Renesas ARM Based SoC r8a7779 > Multiplatform Updates for v3.17o. > > This pull request is based on the previous round of > such requests, tagged as renesas-r8a7779-multiplatform-for-v3.17, > which I have already sent a pull-request for. > > I have applied this clean-up change to a non-cleanup branch > to avoid adding conflicts that were known (to me) at the > time of queuing up this change. > > > The following changes since commit c1a0f9932b66b2298163c31f8ac3f2844476e1c2: > > ARM: shmobile: marzen: Do not use workaround for scif devices (2014-06-17 19:56:37 +0900) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git renesas-r8a7779-multiplatform2-for-v3.17 > > for you to fetch changes up to 1b55353c9214788b0d0797a5fd4585af1557a12c: > > ARM: shmobile: Move r8a7779.h (2014-06-25 16:52:39 +0900) > > ---------------------------------------------------------------- > Second Round of Renesas ARM Based SoC r8a7779-multiplatform Updates for v3.17 > > * Move r8a7779.h out of mach directory. > This is part of a multi-stage effort to move headers > out of that directory. Merged, thanks. -Olof ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC soc-cleanup Updates for v3.17 @ 2014-07-01 0:28 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-07-01 0:28 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Hi Kevin, Hi Arnd, Please consider these Second Round of Renesas ARM Based SoC soc-cleanup Updates for v3.17. This pull request is based on the previous round of such requests, tagged as renesas-soc-cleanup-for-v3.17, which I have already sent a pull-request for. This conflicts with other changes made to pm-r8a7790.c in the soc branch of the renesas tree. A resolution can be found in the renesas-next-v3.16-rc1-20140628 tag of the next branch of that tree. In short, the resulting includes should be: #include <linux/kernel.h> #include <linux/smp.h> #include <asm/io.h> #include "common.h" #include "pm-rcar.h" #include "r8a7790.h" The following changes since commit d83fa4c9c27c4d8612e39e99506b5420fa05b58b: ARM: shmobile: Remove unused r8a7790_init_early() (2014-06-17 19:50:35 +0900) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git renesas-soc-cleanup2-for-v3.17 for you to fetch changes up to 113522ee3034427472bcb4b8665833719809b31a: ARM: shmobile: Move sh7372.h (2014-06-25 16:50:00 +0900) ---------------------------------------------------------------- Second Round of Renesas ARM Based SoC soc-cleanup Updates for v3.17 * Move SOC-specific headers out of mach directory. This is part of a multi-stage effort to move headers out of that directory. ---------------------------------------------------------------- Geert Uytterhoeven (7): ARM: shmobile: Move r7s72100.h ARM: shmobile: Move r8a73a4.h ARM: shmobile: Move r8a7740.h ARM: shmobile: Move r8a7778.h ARM: shmobile: Move r8a7790.h ARM: shmobile: Move sh73a0.h ARM: shmobile: Move sh7372.h arch/arm/mach-shmobile/board-ape6evm-reference.c | 4 +++- arch/arm/mach-shmobile/board-ape6evm.c | 4 +++- arch/arm/mach-shmobile/board-armadillo800eva-reference.c | 4 +++- arch/arm/mach-shmobile/board-armadillo800eva.c | 4 +++- arch/arm/mach-shmobile/board-bockw-reference.c | 4 +++- arch/arm/mach-shmobile/board-bockw.c | 4 +++- arch/arm/mach-shmobile/board-genmai-reference.c | 4 +++- arch/arm/mach-shmobile/board-genmai.c | 4 +++- arch/arm/mach-shmobile/board-kzm9g-reference.c | 4 +++- arch/arm/mach-shmobile/board-kzm9g.c | 4 +++- arch/arm/mach-shmobile/board-lager-reference.c | 4 +++- arch/arm/mach-shmobile/board-lager.c | 14 ++++++++------ arch/arm/mach-shmobile/board-mackerel.c | 4 +++- arch/arm/mach-shmobile/clock-r7s72100.c | 3 ++- arch/arm/mach-shmobile/clock-r8a7740.c | 3 ++- arch/arm/mach-shmobile/clock-r8a7790.c | 3 ++- arch/arm/mach-shmobile/intc-sh73a0.c | 4 +++- arch/arm/mach-shmobile/pm-r8a7790.c | 4 +++- arch/arm/mach-shmobile/pm-sh7372.c | 4 +++- arch/arm/mach-shmobile/{include/mach => }/r7s72100.h | 0 arch/arm/mach-shmobile/{include/mach => }/r8a73a4.h | 0 arch/arm/mach-shmobile/{include/mach => }/r8a7740.h | 0 arch/arm/mach-shmobile/{include/mach => }/r8a7778.h | 0 arch/arm/mach-shmobile/{include/mach => }/r8a7790.h | 0 arch/arm/mach-shmobile/setup-r7s72100.c | 4 +++- arch/arm/mach-shmobile/setup-r8a73a4.c | 4 +++- arch/arm/mach-shmobile/setup-r8a7740.c | 4 +++- arch/arm/mach-shmobile/setup-r8a7778.c | 4 +++- arch/arm/mach-shmobile/setup-r8a7790.c | 4 +++- arch/arm/mach-shmobile/setup-sh7372.c | 4 +++- arch/arm/mach-shmobile/setup-sh73a0.c | 4 +++- arch/arm/mach-shmobile/{include/mach => }/sh7372.h | 0 arch/arm/mach-shmobile/{include/mach => }/sh73a0.h | 0 arch/arm/mach-shmobile/smp-r8a7790.c | 4 +++- arch/arm/mach-shmobile/smp-sh73a0.c | 4 +++- 35 files changed, 86 insertions(+), 33 deletions(-) rename arch/arm/mach-shmobile/{include/mach => }/r7s72100.h (100%) rename arch/arm/mach-shmobile/{include/mach => }/r8a73a4.h (100%) rename arch/arm/mach-shmobile/{include/mach => }/r8a7740.h (100%) rename arch/arm/mach-shmobile/{include/mach => }/r8a7778.h (100%) rename arch/arm/mach-shmobile/{include/mach => }/r8a7790.h (100%) rename arch/arm/mach-shmobile/{include/mach => }/sh7372.h (100%) rename arch/arm/mach-shmobile/{include/mach => }/sh73a0.h (100%) ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC soc-cleanup Updates for v3.17 @ 2014-07-01 0:28 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-07-01 0:28 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Hi Kevin, Hi Arnd, Please consider these Second Round of Renesas ARM Based SoC soc-cleanup Updates for v3.17. This pull request is based on the previous round of such requests, tagged as renesas-soc-cleanup-for-v3.17, which I have already sent a pull-request for. This conflicts with other changes made to pm-r8a7790.c in the soc branch of the renesas tree. A resolution can be found in the renesas-next-v3.16-rc1-20140628 tag of the next branch of that tree. In short, the resulting includes should be: #include <linux/kernel.h> #include <linux/smp.h> #include <asm/io.h> #include "common.h" #include "pm-rcar.h" #include "r8a7790.h" The following changes since commit d83fa4c9c27c4d8612e39e99506b5420fa05b58b: ARM: shmobile: Remove unused r8a7790_init_early() (2014-06-17 19:50:35 +0900) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git renesas-soc-cleanup2-for-v3.17 for you to fetch changes up to 113522ee3034427472bcb4b8665833719809b31a: ARM: shmobile: Move sh7372.h (2014-06-25 16:50:00 +0900) ---------------------------------------------------------------- Second Round of Renesas ARM Based SoC soc-cleanup Updates for v3.17 * Move SOC-specific headers out of mach directory. This is part of a multi-stage effort to move headers out of that directory. ---------------------------------------------------------------- Geert Uytterhoeven (7): ARM: shmobile: Move r7s72100.h ARM: shmobile: Move r8a73a4.h ARM: shmobile: Move r8a7740.h ARM: shmobile: Move r8a7778.h ARM: shmobile: Move r8a7790.h ARM: shmobile: Move sh73a0.h ARM: shmobile: Move sh7372.h arch/arm/mach-shmobile/board-ape6evm-reference.c | 4 +++- arch/arm/mach-shmobile/board-ape6evm.c | 4 +++- arch/arm/mach-shmobile/board-armadillo800eva-reference.c | 4 +++- arch/arm/mach-shmobile/board-armadillo800eva.c | 4 +++- arch/arm/mach-shmobile/board-bockw-reference.c | 4 +++- arch/arm/mach-shmobile/board-bockw.c | 4 +++- arch/arm/mach-shmobile/board-genmai-reference.c | 4 +++- arch/arm/mach-shmobile/board-genmai.c | 4 +++- arch/arm/mach-shmobile/board-kzm9g-reference.c | 4 +++- arch/arm/mach-shmobile/board-kzm9g.c | 4 +++- arch/arm/mach-shmobile/board-lager-reference.c | 4 +++- arch/arm/mach-shmobile/board-lager.c | 14 ++++++++------ arch/arm/mach-shmobile/board-mackerel.c | 4 +++- arch/arm/mach-shmobile/clock-r7s72100.c | 3 ++- arch/arm/mach-shmobile/clock-r8a7740.c | 3 ++- arch/arm/mach-shmobile/clock-r8a7790.c | 3 ++- arch/arm/mach-shmobile/intc-sh73a0.c | 4 +++- arch/arm/mach-shmobile/pm-r8a7790.c | 4 +++- arch/arm/mach-shmobile/pm-sh7372.c | 4 +++- arch/arm/mach-shmobile/{include/mach => }/r7s72100.h | 0 arch/arm/mach-shmobile/{include/mach => }/r8a73a4.h | 0 arch/arm/mach-shmobile/{include/mach => }/r8a7740.h | 0 arch/arm/mach-shmobile/{include/mach => }/r8a7778.h | 0 arch/arm/mach-shmobile/{include/mach => }/r8a7790.h | 0 arch/arm/mach-shmobile/setup-r7s72100.c | 4 +++- arch/arm/mach-shmobile/setup-r8a73a4.c | 4 +++- arch/arm/mach-shmobile/setup-r8a7740.c | 4 +++- arch/arm/mach-shmobile/setup-r8a7778.c | 4 +++- arch/arm/mach-shmobile/setup-r8a7790.c | 4 +++- arch/arm/mach-shmobile/setup-sh7372.c | 4 +++- arch/arm/mach-shmobile/setup-sh73a0.c | 4 +++- arch/arm/mach-shmobile/{include/mach => }/sh7372.h | 0 arch/arm/mach-shmobile/{include/mach => }/sh73a0.h | 0 arch/arm/mach-shmobile/smp-r8a7790.c | 4 +++- arch/arm/mach-shmobile/smp-sh73a0.c | 4 +++- 35 files changed, 86 insertions(+), 33 deletions(-) rename arch/arm/mach-shmobile/{include/mach => }/r7s72100.h (100%) rename arch/arm/mach-shmobile/{include/mach => }/r8a73a4.h (100%) rename arch/arm/mach-shmobile/{include/mach => }/r8a7740.h (100%) rename arch/arm/mach-shmobile/{include/mach => }/r8a7778.h (100%) rename arch/arm/mach-shmobile/{include/mach => }/r8a7790.h (100%) rename arch/arm/mach-shmobile/{include/mach => }/sh7372.h (100%) rename arch/arm/mach-shmobile/{include/mach => }/sh73a0.h (100%) ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH 1/7] ARM: shmobile: Move r7s72100.h 2014-07-01 0:28 ` Simon Horman @ 2014-07-01 0:28 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-07-01 0:28 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> Change location of r7s72100.h so it can be included using "r7s72100.h" instead of the old style <mach/r7s72100.h>. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/board-genmai-reference.c | 4 +++- arch/arm/mach-shmobile/board-genmai.c | 4 +++- arch/arm/mach-shmobile/clock-r7s72100.c | 3 ++- arch/arm/mach-shmobile/include/mach/r7s72100.h | 7 ------- arch/arm/mach-shmobile/r7s72100.h | 7 +++++++ arch/arm/mach-shmobile/setup-r7s72100.c | 4 +++- 6 files changed, 18 insertions(+), 11 deletions(-) delete mode 100644 arch/arm/mach-shmobile/include/mach/r7s72100.h create mode 100644 arch/arm/mach-shmobile/r7s72100.h diff --git a/arch/arm/mach-shmobile/board-genmai-reference.c b/arch/arm/mach-shmobile/board-genmai-reference.c index c06dc5c..e5448f7 100644 --- a/arch/arm/mach-shmobile/board-genmai-reference.c +++ b/arch/arm/mach-shmobile/board-genmai-reference.c @@ -20,11 +20,13 @@ #include <linux/kernel.h> #include <linux/of_platform.h> -#include <mach/r7s72100.h> + #include <asm/mach-types.h> #include <asm/mach/arch.h> + #include "clock.h" #include "common.h" +#include "r7s72100.h" /* * This is a really crude hack to provide clkdev support to platform diff --git a/arch/arm/mach-shmobile/board-genmai.c b/arch/arm/mach-shmobile/board-genmai.c index a0994f3..e2a3ba4 100644 --- a/arch/arm/mach-shmobile/board-genmai.c +++ b/arch/arm/mach-shmobile/board-genmai.c @@ -25,11 +25,13 @@ #include <linux/sh_eth.h> #include <linux/spi/rspi.h> #include <linux/spi/spi.h> -#include <mach/r7s72100.h> + #include <asm/mach-types.h> #include <asm/mach/arch.h> + #include "common.h" #include "irqs.h" +#include "r7s72100.h" /* Ether */ static const struct sh_eth_plat_data ether_pdata __initconst = { diff --git a/arch/arm/mach-shmobile/clock-r7s72100.c b/arch/arm/mach-shmobile/clock-r7s72100.c index 457dab0..3eb2ec4 100644 --- a/arch/arm/mach-shmobile/clock-r7s72100.c +++ b/arch/arm/mach-shmobile/clock-r7s72100.c @@ -19,8 +19,9 @@ #include <linux/io.h> #include <linux/sh_clk.h> #include <linux/clkdev.h> -#include <mach/r7s72100.h> + #include "common.h" +#include "r7s72100.h" /* Frequency Control Registers */ #define FRQCR 0xfcfe0010 diff --git a/arch/arm/mach-shmobile/include/mach/r7s72100.h b/arch/arm/mach-shmobile/include/mach/r7s72100.h deleted file mode 100644 index efb723c..0000000 --- a/arch/arm/mach-shmobile/include/mach/r7s72100.h +++ /dev/null @@ -1,7 +0,0 @@ -#ifndef __ASM_R7S72100_H__ -#define __ASM_R7S72100_H__ - -void r7s72100_add_dt_devices(void); -void r7s72100_clock_init(void); - -#endif /* __ASM_R7S72100_H__ */ diff --git a/arch/arm/mach-shmobile/r7s72100.h b/arch/arm/mach-shmobile/r7s72100.h new file mode 100644 index 0000000..efb723c --- /dev/null +++ b/arch/arm/mach-shmobile/r7s72100.h @@ -0,0 +1,7 @@ +#ifndef __ASM_R7S72100_H__ +#define __ASM_R7S72100_H__ + +void r7s72100_add_dt_devices(void); +void r7s72100_clock_init(void); + +#endif /* __ASM_R7S72100_H__ */ diff --git a/arch/arm/mach-shmobile/setup-r7s72100.c b/arch/arm/mach-shmobile/setup-r7s72100.c index a55d68d..4a98b23 100644 --- a/arch/arm/mach-shmobile/setup-r7s72100.c +++ b/arch/arm/mach-shmobile/setup-r7s72100.c @@ -22,10 +22,12 @@ #include <linux/kernel.h> #include <linux/of_platform.h> #include <linux/sh_timer.h> -#include <mach/r7s72100.h> + #include <asm/mach/arch.h> + #include "common.h" #include "irqs.h" +#include "r7s72100.h" static struct resource mtu2_resources[] __initdata = { DEFINE_RES_MEM(0xfcff0000, 0x400), -- 2.0.0.rc2 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 1/7] ARM: shmobile: Move r7s72100.h @ 2014-07-01 0:28 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-07-01 0:28 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> Change location of r7s72100.h so it can be included using "r7s72100.h" instead of the old style <mach/r7s72100.h>. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/board-genmai-reference.c | 4 +++- arch/arm/mach-shmobile/board-genmai.c | 4 +++- arch/arm/mach-shmobile/clock-r7s72100.c | 3 ++- arch/arm/mach-shmobile/include/mach/r7s72100.h | 7 ------- arch/arm/mach-shmobile/r7s72100.h | 7 +++++++ arch/arm/mach-shmobile/setup-r7s72100.c | 4 +++- 6 files changed, 18 insertions(+), 11 deletions(-) delete mode 100644 arch/arm/mach-shmobile/include/mach/r7s72100.h create mode 100644 arch/arm/mach-shmobile/r7s72100.h diff --git a/arch/arm/mach-shmobile/board-genmai-reference.c b/arch/arm/mach-shmobile/board-genmai-reference.c index c06dc5c..e5448f7 100644 --- a/arch/arm/mach-shmobile/board-genmai-reference.c +++ b/arch/arm/mach-shmobile/board-genmai-reference.c @@ -20,11 +20,13 @@ #include <linux/kernel.h> #include <linux/of_platform.h> -#include <mach/r7s72100.h> + #include <asm/mach-types.h> #include <asm/mach/arch.h> + #include "clock.h" #include "common.h" +#include "r7s72100.h" /* * This is a really crude hack to provide clkdev support to platform diff --git a/arch/arm/mach-shmobile/board-genmai.c b/arch/arm/mach-shmobile/board-genmai.c index a0994f3..e2a3ba4 100644 --- a/arch/arm/mach-shmobile/board-genmai.c +++ b/arch/arm/mach-shmobile/board-genmai.c @@ -25,11 +25,13 @@ #include <linux/sh_eth.h> #include <linux/spi/rspi.h> #include <linux/spi/spi.h> -#include <mach/r7s72100.h> + #include <asm/mach-types.h> #include <asm/mach/arch.h> + #include "common.h" #include "irqs.h" +#include "r7s72100.h" /* Ether */ static const struct sh_eth_plat_data ether_pdata __initconst = { diff --git a/arch/arm/mach-shmobile/clock-r7s72100.c b/arch/arm/mach-shmobile/clock-r7s72100.c index 457dab0..3eb2ec4 100644 --- a/arch/arm/mach-shmobile/clock-r7s72100.c +++ b/arch/arm/mach-shmobile/clock-r7s72100.c @@ -19,8 +19,9 @@ #include <linux/io.h> #include <linux/sh_clk.h> #include <linux/clkdev.h> -#include <mach/r7s72100.h> + #include "common.h" +#include "r7s72100.h" /* Frequency Control Registers */ #define FRQCR 0xfcfe0010 diff --git a/arch/arm/mach-shmobile/include/mach/r7s72100.h b/arch/arm/mach-shmobile/include/mach/r7s72100.h deleted file mode 100644 index efb723c..0000000 --- a/arch/arm/mach-shmobile/include/mach/r7s72100.h +++ /dev/null @@ -1,7 +0,0 @@ -#ifndef __ASM_R7S72100_H__ -#define __ASM_R7S72100_H__ - -void r7s72100_add_dt_devices(void); -void r7s72100_clock_init(void); - -#endif /* __ASM_R7S72100_H__ */ diff --git a/arch/arm/mach-shmobile/r7s72100.h b/arch/arm/mach-shmobile/r7s72100.h new file mode 100644 index 0000000..efb723c --- /dev/null +++ b/arch/arm/mach-shmobile/r7s72100.h @@ -0,0 +1,7 @@ +#ifndef __ASM_R7S72100_H__ +#define __ASM_R7S72100_H__ + +void r7s72100_add_dt_devices(void); +void r7s72100_clock_init(void); + +#endif /* __ASM_R7S72100_H__ */ diff --git a/arch/arm/mach-shmobile/setup-r7s72100.c b/arch/arm/mach-shmobile/setup-r7s72100.c index a55d68d..4a98b23 100644 --- a/arch/arm/mach-shmobile/setup-r7s72100.c +++ b/arch/arm/mach-shmobile/setup-r7s72100.c @@ -22,10 +22,12 @@ #include <linux/kernel.h> #include <linux/of_platform.h> #include <linux/sh_timer.h> -#include <mach/r7s72100.h> + #include <asm/mach/arch.h> + #include "common.h" #include "irqs.h" +#include "r7s72100.h" static struct resource mtu2_resources[] __initdata = { DEFINE_RES_MEM(0xfcff0000, 0x400), -- 2.0.0.rc2 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 2/7] ARM: shmobile: Move r8a73a4.h 2014-07-01 0:28 ` Simon Horman @ 2014-07-01 0:28 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-07-01 0:28 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> Change location of r8a73a4.h so it can be included as "r8a73a4.h" instead of the old style <mach/r8a73a4.h> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/board-ape6evm-reference.c | 4 +++- arch/arm/mach-shmobile/board-ape6evm.c | 4 +++- arch/arm/mach-shmobile/include/mach/r8a73a4.h | 19 ------------------- arch/arm/mach-shmobile/r8a73a4.h | 19 +++++++++++++++++++ arch/arm/mach-shmobile/setup-r8a73a4.c | 4 +++- 5 files changed, 28 insertions(+), 22 deletions(-) delete mode 100644 arch/arm/mach-shmobile/include/mach/r8a73a4.h create mode 100644 arch/arm/mach-shmobile/r8a73a4.h diff --git a/arch/arm/mach-shmobile/board-ape6evm-reference.c b/arch/arm/mach-shmobile/board-ape6evm-reference.c index 76e4ff1..2f7723e 100644 --- a/arch/arm/mach-shmobile/board-ape6evm-reference.c +++ b/arch/arm/mach-shmobile/board-ape6evm-reference.c @@ -24,10 +24,12 @@ #include <linux/pinctrl/machine.h> #include <linux/platform_device.h> #include <linux/sh_clk.h> -#include <mach/r8a73a4.h> + #include <asm/mach-types.h> #include <asm/mach/arch.h> + #include "common.h" +#include "r8a73a4.h" static void __init ape6evm_add_standard_devices(void) { diff --git a/arch/arm/mach-shmobile/board-ape6evm.c b/arch/arm/mach-shmobile/board-ape6evm.c index 8f8da25..4855678 100644 --- a/arch/arm/mach-shmobile/board-ape6evm.c +++ b/arch/arm/mach-shmobile/board-ape6evm.c @@ -33,11 +33,13 @@ #include <linux/regulator/machine.h> #include <linux/sh_clk.h> #include <linux/smsc911x.h> -#include <mach/r8a73a4.h> + #include <asm/mach-types.h> #include <asm/mach/arch.h> + #include "common.h" #include "irqs.h" +#include "r8a73a4.h" /* LEDS */ static struct gpio_led ape6evm_leds[] = { diff --git a/arch/arm/mach-shmobile/include/mach/r8a73a4.h b/arch/arm/mach-shmobile/include/mach/r8a73a4.h deleted file mode 100644 index ce8bdd1..0000000 --- a/arch/arm/mach-shmobile/include/mach/r8a73a4.h +++ /dev/null @@ -1,19 +0,0 @@ -#ifndef __ASM_R8A73A4_H__ -#define __ASM_R8A73A4_H__ - -/* DMA slave IDs */ -enum { - SHDMA_SLAVE_INVALID, - SHDMA_SLAVE_MMCIF0_TX, - SHDMA_SLAVE_MMCIF0_RX, - SHDMA_SLAVE_MMCIF1_TX, - SHDMA_SLAVE_MMCIF1_RX, -}; - -void r8a73a4_add_standard_devices(void); -void r8a73a4_add_dt_devices(void); -void r8a73a4_clock_init(void); -void r8a73a4_pinmux_init(void); -void r8a73a4_init_early(void); - -#endif /* __ASM_R8A73A4_H__ */ diff --git a/arch/arm/mach-shmobile/r8a73a4.h b/arch/arm/mach-shmobile/r8a73a4.h new file mode 100644 index 0000000..ce8bdd1 --- /dev/null +++ b/arch/arm/mach-shmobile/r8a73a4.h @@ -0,0 +1,19 @@ +#ifndef __ASM_R8A73A4_H__ +#define __ASM_R8A73A4_H__ + +/* DMA slave IDs */ +enum { + SHDMA_SLAVE_INVALID, + SHDMA_SLAVE_MMCIF0_TX, + SHDMA_SLAVE_MMCIF0_RX, + SHDMA_SLAVE_MMCIF1_TX, + SHDMA_SLAVE_MMCIF1_RX, +}; + +void r8a73a4_add_standard_devices(void); +void r8a73a4_add_dt_devices(void); +void r8a73a4_clock_init(void); +void r8a73a4_pinmux_init(void); +void r8a73a4_init_early(void); + +#endif /* __ASM_R8A73A4_H__ */ diff --git a/arch/arm/mach-shmobile/setup-r8a73a4.c b/arch/arm/mach-shmobile/setup-r8a73a4.c index da94d9b..f470b3c 100644 --- a/arch/arm/mach-shmobile/setup-r8a73a4.c +++ b/arch/arm/mach-shmobile/setup-r8a73a4.c @@ -24,11 +24,13 @@ #include <linux/serial_sci.h> #include <linux/sh_dma.h> #include <linux/sh_timer.h> -#include <mach/r8a73a4.h> + #include <asm/mach/arch.h> + #include "common.h" #include "dma-register.h" #include "irqs.h" +#include "r8a73a4.h" static const struct resource pfc_resources[] = { DEFINE_RES_MEM(0xe6050000, 0x9000), -- 2.0.0.rc2 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 2/7] ARM: shmobile: Move r8a73a4.h @ 2014-07-01 0:28 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-07-01 0:28 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> Change location of r8a73a4.h so it can be included as "r8a73a4.h" instead of the old style <mach/r8a73a4.h> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/board-ape6evm-reference.c | 4 +++- arch/arm/mach-shmobile/board-ape6evm.c | 4 +++- arch/arm/mach-shmobile/include/mach/r8a73a4.h | 19 ------------------- arch/arm/mach-shmobile/r8a73a4.h | 19 +++++++++++++++++++ arch/arm/mach-shmobile/setup-r8a73a4.c | 4 +++- 5 files changed, 28 insertions(+), 22 deletions(-) delete mode 100644 arch/arm/mach-shmobile/include/mach/r8a73a4.h create mode 100644 arch/arm/mach-shmobile/r8a73a4.h diff --git a/arch/arm/mach-shmobile/board-ape6evm-reference.c b/arch/arm/mach-shmobile/board-ape6evm-reference.c index 76e4ff1..2f7723e 100644 --- a/arch/arm/mach-shmobile/board-ape6evm-reference.c +++ b/arch/arm/mach-shmobile/board-ape6evm-reference.c @@ -24,10 +24,12 @@ #include <linux/pinctrl/machine.h> #include <linux/platform_device.h> #include <linux/sh_clk.h> -#include <mach/r8a73a4.h> + #include <asm/mach-types.h> #include <asm/mach/arch.h> + #include "common.h" +#include "r8a73a4.h" static void __init ape6evm_add_standard_devices(void) { diff --git a/arch/arm/mach-shmobile/board-ape6evm.c b/arch/arm/mach-shmobile/board-ape6evm.c index 8f8da25..4855678 100644 --- a/arch/arm/mach-shmobile/board-ape6evm.c +++ b/arch/arm/mach-shmobile/board-ape6evm.c @@ -33,11 +33,13 @@ #include <linux/regulator/machine.h> #include <linux/sh_clk.h> #include <linux/smsc911x.h> -#include <mach/r8a73a4.h> + #include <asm/mach-types.h> #include <asm/mach/arch.h> + #include "common.h" #include "irqs.h" +#include "r8a73a4.h" /* LEDS */ static struct gpio_led ape6evm_leds[] = { diff --git a/arch/arm/mach-shmobile/include/mach/r8a73a4.h b/arch/arm/mach-shmobile/include/mach/r8a73a4.h deleted file mode 100644 index ce8bdd1..0000000 --- a/arch/arm/mach-shmobile/include/mach/r8a73a4.h +++ /dev/null @@ -1,19 +0,0 @@ -#ifndef __ASM_R8A73A4_H__ -#define __ASM_R8A73A4_H__ - -/* DMA slave IDs */ -enum { - SHDMA_SLAVE_INVALID, - SHDMA_SLAVE_MMCIF0_TX, - SHDMA_SLAVE_MMCIF0_RX, - SHDMA_SLAVE_MMCIF1_TX, - SHDMA_SLAVE_MMCIF1_RX, -}; - -void r8a73a4_add_standard_devices(void); -void r8a73a4_add_dt_devices(void); -void r8a73a4_clock_init(void); -void r8a73a4_pinmux_init(void); -void r8a73a4_init_early(void); - -#endif /* __ASM_R8A73A4_H__ */ diff --git a/arch/arm/mach-shmobile/r8a73a4.h b/arch/arm/mach-shmobile/r8a73a4.h new file mode 100644 index 0000000..ce8bdd1 --- /dev/null +++ b/arch/arm/mach-shmobile/r8a73a4.h @@ -0,0 +1,19 @@ +#ifndef __ASM_R8A73A4_H__ +#define __ASM_R8A73A4_H__ + +/* DMA slave IDs */ +enum { + SHDMA_SLAVE_INVALID, + SHDMA_SLAVE_MMCIF0_TX, + SHDMA_SLAVE_MMCIF0_RX, + SHDMA_SLAVE_MMCIF1_TX, + SHDMA_SLAVE_MMCIF1_RX, +}; + +void r8a73a4_add_standard_devices(void); +void r8a73a4_add_dt_devices(void); +void r8a73a4_clock_init(void); +void r8a73a4_pinmux_init(void); +void r8a73a4_init_early(void); + +#endif /* __ASM_R8A73A4_H__ */ diff --git a/arch/arm/mach-shmobile/setup-r8a73a4.c b/arch/arm/mach-shmobile/setup-r8a73a4.c index da94d9b..f470b3c 100644 --- a/arch/arm/mach-shmobile/setup-r8a73a4.c +++ b/arch/arm/mach-shmobile/setup-r8a73a4.c @@ -24,11 +24,13 @@ #include <linux/serial_sci.h> #include <linux/sh_dma.h> #include <linux/sh_timer.h> -#include <mach/r8a73a4.h> + #include <asm/mach/arch.h> + #include "common.h" #include "dma-register.h" #include "irqs.h" +#include "r8a73a4.h" static const struct resource pfc_resources[] = { DEFINE_RES_MEM(0xe6050000, 0x9000), -- 2.0.0.rc2 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 3/7] ARM: shmobile: Move r8a7740.h 2014-07-01 0:28 ` Simon Horman @ 2014-07-01 0:28 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-07-01 0:28 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> Change location of r8a7740.h so it can be included as "r8a7740.h" instead of the old style <mach/r8a7740.h> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- .../board-armadillo800eva-reference.c | 4 +- arch/arm/mach-shmobile/board-armadillo800eva.c | 4 +- arch/arm/mach-shmobile/clock-r8a7740.c | 3 +- arch/arm/mach-shmobile/include/mach/r8a7740.h | 63 ---------------------- arch/arm/mach-shmobile/r8a7740.h | 63 ++++++++++++++++++++++ arch/arm/mach-shmobile/setup-r8a7740.c | 4 +- 6 files changed, 74 insertions(+), 67 deletions(-) delete mode 100644 arch/arm/mach-shmobile/include/mach/r8a7740.h create mode 100644 arch/arm/mach-shmobile/r8a7740.h diff --git a/arch/arm/mach-shmobile/board-armadillo800eva-reference.c b/arch/arm/mach-shmobile/board-armadillo800eva-reference.c index 368518b..2085766 100644 --- a/arch/arm/mach-shmobile/board-armadillo800eva-reference.c +++ b/arch/arm/mach-shmobile/board-armadillo800eva-reference.c @@ -24,10 +24,12 @@ #include <linux/kernel.h> #include <linux/gpio.h> #include <linux/io.h> -#include <mach/r8a7740.h> + #include <asm/mach/arch.h> #include <asm/hardware/cache-l2x0.h> + #include "common.h" +#include "r8a7740.h" /* * CON1 Camera Module diff --git a/arch/arm/mach-shmobile/board-armadillo800eva.c b/arch/arm/mach-shmobile/board-armadillo800eva.c index 53d03e8..32339cf 100644 --- a/arch/arm/mach-shmobile/board-armadillo800eva.c +++ b/arch/arm/mach-shmobile/board-armadillo800eva.c @@ -45,7 +45,7 @@ #include <linux/mmc/sh_mobile_sdhi.h> #include <linux/i2c-gpio.h> #include <linux/reboot.h> -#include <mach/r8a7740.h> + #include <media/mt9t112.h> #include <media/sh_mobile_ceu.h> #include <media/soc_camera.h> @@ -59,9 +59,11 @@ #include <video/sh_mobile_hdmi.h> #include <sound/sh_fsi.h> #include <sound/simple_card.h> + #include "common.h" #include "irqs.h" #include "pm-rmobile.h" +#include "r8a7740.h" #include "sh-gpio.h" /* diff --git a/arch/arm/mach-shmobile/clock-r8a7740.c b/arch/arm/mach-shmobile/clock-r8a7740.c index ffefec5..789091c 100644 --- a/arch/arm/mach-shmobile/clock-r8a7740.c +++ b/arch/arm/mach-shmobile/clock-r8a7740.c @@ -22,9 +22,10 @@ #include <linux/io.h> #include <linux/sh_clk.h> #include <linux/clkdev.h> -#include <mach/r8a7740.h> + #include "clock.h" #include "common.h" +#include "r8a7740.h" /* * | MDx | XTAL1/EXTAL1 | System | EXTALR | diff --git a/arch/arm/mach-shmobile/include/mach/r8a7740.h b/arch/arm/mach-shmobile/include/mach/r8a7740.h deleted file mode 100644 index 1d1a5fd..0000000 --- a/arch/arm/mach-shmobile/include/mach/r8a7740.h +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright (C) 2011 Renesas Solutions Corp. - * Copyright (C) 2011 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; version 2 of the License. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#ifndef __ASM_R8A7740_H__ -#define __ASM_R8A7740_H__ - -/* - * MD_CKx pin - */ -#define MD_CK2 (1 << 2) -#define MD_CK1 (1 << 1) -#define MD_CK0 (1 << 0) - -/* DMA slave IDs */ -enum { - SHDMA_SLAVE_INVALID, - SHDMA_SLAVE_SDHI0_RX, - SHDMA_SLAVE_SDHI0_TX, - SHDMA_SLAVE_SDHI1_RX, - SHDMA_SLAVE_SDHI1_TX, - SHDMA_SLAVE_SDHI2_RX, - SHDMA_SLAVE_SDHI2_TX, - SHDMA_SLAVE_FSIA_RX, - SHDMA_SLAVE_FSIA_TX, - SHDMA_SLAVE_FSIB_TX, - SHDMA_SLAVE_USBHS_TX, - SHDMA_SLAVE_USBHS_RX, - SHDMA_SLAVE_MMCIF_TX, - SHDMA_SLAVE_MMCIF_RX, -}; - -extern void r8a7740_meram_workaround(void); -extern void r8a7740_init_irq_of(void); -extern void r8a7740_map_io(void); -extern void r8a7740_add_early_devices(void); -extern void r8a7740_add_standard_devices(void); -extern void r8a7740_add_standard_devices_dt(void); -extern void r8a7740_clock_init(u8 md_ck); -extern void r8a7740_pinmux_init(void); -extern void r8a7740_pm_init(void); - -#ifdef CONFIG_PM -extern void __init r8a7740_init_pm_domains(void); -#else -static inline void r8a7740_init_pm_domains(void) {} -#endif /* CONFIG_PM */ - -#endif /* __ASM_R8A7740_H__ */ diff --git a/arch/arm/mach-shmobile/r8a7740.h b/arch/arm/mach-shmobile/r8a7740.h new file mode 100644 index 0000000..1d1a5fd --- /dev/null +++ b/arch/arm/mach-shmobile/r8a7740.h @@ -0,0 +1,63 @@ +/* + * Copyright (C) 2011 Renesas Solutions Corp. + * Copyright (C) 2011 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#ifndef __ASM_R8A7740_H__ +#define __ASM_R8A7740_H__ + +/* + * MD_CKx pin + */ +#define MD_CK2 (1 << 2) +#define MD_CK1 (1 << 1) +#define MD_CK0 (1 << 0) + +/* DMA slave IDs */ +enum { + SHDMA_SLAVE_INVALID, + SHDMA_SLAVE_SDHI0_RX, + SHDMA_SLAVE_SDHI0_TX, + SHDMA_SLAVE_SDHI1_RX, + SHDMA_SLAVE_SDHI1_TX, + SHDMA_SLAVE_SDHI2_RX, + SHDMA_SLAVE_SDHI2_TX, + SHDMA_SLAVE_FSIA_RX, + SHDMA_SLAVE_FSIA_TX, + SHDMA_SLAVE_FSIB_TX, + SHDMA_SLAVE_USBHS_TX, + SHDMA_SLAVE_USBHS_RX, + SHDMA_SLAVE_MMCIF_TX, + SHDMA_SLAVE_MMCIF_RX, +}; + +extern void r8a7740_meram_workaround(void); +extern void r8a7740_init_irq_of(void); +extern void r8a7740_map_io(void); +extern void r8a7740_add_early_devices(void); +extern void r8a7740_add_standard_devices(void); +extern void r8a7740_add_standard_devices_dt(void); +extern void r8a7740_clock_init(u8 md_ck); +extern void r8a7740_pinmux_init(void); +extern void r8a7740_pm_init(void); + +#ifdef CONFIG_PM +extern void __init r8a7740_init_pm_domains(void); +#else +static inline void r8a7740_init_pm_domains(void) {} +#endif /* CONFIG_PM */ + +#endif /* __ASM_R8A7740_H__ */ diff --git a/arch/arm/mach-shmobile/setup-r8a7740.c b/arch/arm/mach-shmobile/setup-r8a7740.c index 10170b3..348af35 100644 --- a/arch/arm/mach-shmobile/setup-r8a7740.c +++ b/arch/arm/mach-shmobile/setup-r8a7740.c @@ -31,15 +31,17 @@ #include <linux/sh_dma.h> #include <linux/sh_timer.h> #include <linux/platform_data/sh_ipmmu.h> -#include <mach/r8a7740.h> + #include <asm/mach-types.h> #include <asm/mach/map.h> #include <asm/mach/arch.h> #include <asm/mach/time.h> + #include "common.h" #include "dma-register.h" #include "irqs.h" #include "pm-rmobile.h" +#include "r8a7740.h" static struct map_desc r8a7740_io_desc[] __initdata = { /* -- 2.0.0.rc2 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 3/7] ARM: shmobile: Move r8a7740.h @ 2014-07-01 0:28 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-07-01 0:28 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> Change location of r8a7740.h so it can be included as "r8a7740.h" instead of the old style <mach/r8a7740.h> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- .../board-armadillo800eva-reference.c | 4 +- arch/arm/mach-shmobile/board-armadillo800eva.c | 4 +- arch/arm/mach-shmobile/clock-r8a7740.c | 3 +- arch/arm/mach-shmobile/include/mach/r8a7740.h | 63 ---------------------- arch/arm/mach-shmobile/r8a7740.h | 63 ++++++++++++++++++++++ arch/arm/mach-shmobile/setup-r8a7740.c | 4 +- 6 files changed, 74 insertions(+), 67 deletions(-) delete mode 100644 arch/arm/mach-shmobile/include/mach/r8a7740.h create mode 100644 arch/arm/mach-shmobile/r8a7740.h diff --git a/arch/arm/mach-shmobile/board-armadillo800eva-reference.c b/arch/arm/mach-shmobile/board-armadillo800eva-reference.c index 368518b..2085766 100644 --- a/arch/arm/mach-shmobile/board-armadillo800eva-reference.c +++ b/arch/arm/mach-shmobile/board-armadillo800eva-reference.c @@ -24,10 +24,12 @@ #include <linux/kernel.h> #include <linux/gpio.h> #include <linux/io.h> -#include <mach/r8a7740.h> + #include <asm/mach/arch.h> #include <asm/hardware/cache-l2x0.h> + #include "common.h" +#include "r8a7740.h" /* * CON1 Camera Module diff --git a/arch/arm/mach-shmobile/board-armadillo800eva.c b/arch/arm/mach-shmobile/board-armadillo800eva.c index 53d03e8..32339cf 100644 --- a/arch/arm/mach-shmobile/board-armadillo800eva.c +++ b/arch/arm/mach-shmobile/board-armadillo800eva.c @@ -45,7 +45,7 @@ #include <linux/mmc/sh_mobile_sdhi.h> #include <linux/i2c-gpio.h> #include <linux/reboot.h> -#include <mach/r8a7740.h> + #include <media/mt9t112.h> #include <media/sh_mobile_ceu.h> #include <media/soc_camera.h> @@ -59,9 +59,11 @@ #include <video/sh_mobile_hdmi.h> #include <sound/sh_fsi.h> #include <sound/simple_card.h> + #include "common.h" #include "irqs.h" #include "pm-rmobile.h" +#include "r8a7740.h" #include "sh-gpio.h" /* diff --git a/arch/arm/mach-shmobile/clock-r8a7740.c b/arch/arm/mach-shmobile/clock-r8a7740.c index ffefec5..789091c 100644 --- a/arch/arm/mach-shmobile/clock-r8a7740.c +++ b/arch/arm/mach-shmobile/clock-r8a7740.c @@ -22,9 +22,10 @@ #include <linux/io.h> #include <linux/sh_clk.h> #include <linux/clkdev.h> -#include <mach/r8a7740.h> + #include "clock.h" #include "common.h" +#include "r8a7740.h" /* * | MDx | XTAL1/EXTAL1 | System | EXTALR | diff --git a/arch/arm/mach-shmobile/include/mach/r8a7740.h b/arch/arm/mach-shmobile/include/mach/r8a7740.h deleted file mode 100644 index 1d1a5fd..0000000 --- a/arch/arm/mach-shmobile/include/mach/r8a7740.h +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright (C) 2011 Renesas Solutions Corp. - * Copyright (C) 2011 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; version 2 of the License. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#ifndef __ASM_R8A7740_H__ -#define __ASM_R8A7740_H__ - -/* - * MD_CKx pin - */ -#define MD_CK2 (1 << 2) -#define MD_CK1 (1 << 1) -#define MD_CK0 (1 << 0) - -/* DMA slave IDs */ -enum { - SHDMA_SLAVE_INVALID, - SHDMA_SLAVE_SDHI0_RX, - SHDMA_SLAVE_SDHI0_TX, - SHDMA_SLAVE_SDHI1_RX, - SHDMA_SLAVE_SDHI1_TX, - SHDMA_SLAVE_SDHI2_RX, - SHDMA_SLAVE_SDHI2_TX, - SHDMA_SLAVE_FSIA_RX, - SHDMA_SLAVE_FSIA_TX, - SHDMA_SLAVE_FSIB_TX, - SHDMA_SLAVE_USBHS_TX, - SHDMA_SLAVE_USBHS_RX, - SHDMA_SLAVE_MMCIF_TX, - SHDMA_SLAVE_MMCIF_RX, -}; - -extern void r8a7740_meram_workaround(void); -extern void r8a7740_init_irq_of(void); -extern void r8a7740_map_io(void); -extern void r8a7740_add_early_devices(void); -extern void r8a7740_add_standard_devices(void); -extern void r8a7740_add_standard_devices_dt(void); -extern void r8a7740_clock_init(u8 md_ck); -extern void r8a7740_pinmux_init(void); -extern void r8a7740_pm_init(void); - -#ifdef CONFIG_PM -extern void __init r8a7740_init_pm_domains(void); -#else -static inline void r8a7740_init_pm_domains(void) {} -#endif /* CONFIG_PM */ - -#endif /* __ASM_R8A7740_H__ */ diff --git a/arch/arm/mach-shmobile/r8a7740.h b/arch/arm/mach-shmobile/r8a7740.h new file mode 100644 index 0000000..1d1a5fd --- /dev/null +++ b/arch/arm/mach-shmobile/r8a7740.h @@ -0,0 +1,63 @@ +/* + * Copyright (C) 2011 Renesas Solutions Corp. + * Copyright (C) 2011 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#ifndef __ASM_R8A7740_H__ +#define __ASM_R8A7740_H__ + +/* + * MD_CKx pin + */ +#define MD_CK2 (1 << 2) +#define MD_CK1 (1 << 1) +#define MD_CK0 (1 << 0) + +/* DMA slave IDs */ +enum { + SHDMA_SLAVE_INVALID, + SHDMA_SLAVE_SDHI0_RX, + SHDMA_SLAVE_SDHI0_TX, + SHDMA_SLAVE_SDHI1_RX, + SHDMA_SLAVE_SDHI1_TX, + SHDMA_SLAVE_SDHI2_RX, + SHDMA_SLAVE_SDHI2_TX, + SHDMA_SLAVE_FSIA_RX, + SHDMA_SLAVE_FSIA_TX, + SHDMA_SLAVE_FSIB_TX, + SHDMA_SLAVE_USBHS_TX, + SHDMA_SLAVE_USBHS_RX, + SHDMA_SLAVE_MMCIF_TX, + SHDMA_SLAVE_MMCIF_RX, +}; + +extern void r8a7740_meram_workaround(void); +extern void r8a7740_init_irq_of(void); +extern void r8a7740_map_io(void); +extern void r8a7740_add_early_devices(void); +extern void r8a7740_add_standard_devices(void); +extern void r8a7740_add_standard_devices_dt(void); +extern void r8a7740_clock_init(u8 md_ck); +extern void r8a7740_pinmux_init(void); +extern void r8a7740_pm_init(void); + +#ifdef CONFIG_PM +extern void __init r8a7740_init_pm_domains(void); +#else +static inline void r8a7740_init_pm_domains(void) {} +#endif /* CONFIG_PM */ + +#endif /* __ASM_R8A7740_H__ */ diff --git a/arch/arm/mach-shmobile/setup-r8a7740.c b/arch/arm/mach-shmobile/setup-r8a7740.c index 10170b3..348af35 100644 --- a/arch/arm/mach-shmobile/setup-r8a7740.c +++ b/arch/arm/mach-shmobile/setup-r8a7740.c @@ -31,15 +31,17 @@ #include <linux/sh_dma.h> #include <linux/sh_timer.h> #include <linux/platform_data/sh_ipmmu.h> -#include <mach/r8a7740.h> + #include <asm/mach-types.h> #include <asm/mach/map.h> #include <asm/mach/arch.h> #include <asm/mach/time.h> + #include "common.h" #include "dma-register.h" #include "irqs.h" #include "pm-rmobile.h" +#include "r8a7740.h" static struct map_desc r8a7740_io_desc[] __initdata = { /* -- 2.0.0.rc2 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 4/7] ARM: shmobile: Move r8a7778.h 2014-07-01 0:28 ` Simon Horman @ 2014-07-01 0:28 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-07-01 0:28 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> Change location of r8a7778.h so it can be included as "r8a7778.h" instead of the old style <mach/r8a7778.h> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/board-bockw-reference.c | 4 +- arch/arm/mach-shmobile/board-bockw.c | 4 +- arch/arm/mach-shmobile/include/mach/r8a7778.h | 83 -------------------------- arch/arm/mach-shmobile/r8a7778.h | 83 ++++++++++++++++++++++++++ arch/arm/mach-shmobile/setup-r8a7778.c | 4 +- 5 files changed, 92 insertions(+), 86 deletions(-) delete mode 100644 arch/arm/mach-shmobile/include/mach/r8a7778.h create mode 100644 arch/arm/mach-shmobile/r8a7778.h diff --git a/arch/arm/mach-shmobile/board-bockw-reference.c b/arch/arm/mach-shmobile/board-bockw-reference.c index 91ff3a2..ba840cd 100644 --- a/arch/arm/mach-shmobile/board-bockw-reference.c +++ b/arch/arm/mach-shmobile/board-bockw-reference.c @@ -19,9 +19,11 @@ */ #include <linux/of_platform.h> -#include <mach/r8a7778.h> + #include <asm/mach/arch.h> + #include "common.h" +#include "r8a7778.h" /* * see board-bock.c for checking detail of dip-switch diff --git a/arch/arm/mach-shmobile/board-bockw.c b/arch/arm/mach-shmobile/board-bockw.c index 8cb057f..b4e4789 100644 --- a/arch/arm/mach-shmobile/board-bockw.c +++ b/arch/arm/mach-shmobile/board-bockw.c @@ -34,13 +34,15 @@ #include <linux/spi/spi.h> #include <linux/spi/flash.h> #include <linux/usb/renesas_usbhs.h> + #include <media/soc_camera.h> -#include <mach/r8a7778.h> #include <asm/mach/arch.h> #include <sound/rcar_snd.h> #include <sound/simple_card.h> + #include "common.h" #include "irqs.h" +#include "r8a7778.h" #define FPGA 0x18200000 #define IRQ0MR 0x30 diff --git a/arch/arm/mach-shmobile/include/mach/r8a7778.h b/arch/arm/mach-shmobile/include/mach/r8a7778.h deleted file mode 100644 index f4076a5..0000000 --- a/arch/arm/mach-shmobile/include/mach/r8a7778.h +++ /dev/null @@ -1,83 +0,0 @@ -/* - * Copyright (C) 2013 Renesas Solutions Corp. - * Copyright (C) 2013 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> - * Copyright (C) 2013 Cogent Embedded, Inc. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; version 2 of the License. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - */ -#ifndef __ASM_R8A7778_H__ -#define __ASM_R8A7778_H__ - -#include <linux/sh_eth.h> - -/* HPB-DMA slave IDs */ -enum { - HPBDMA_SLAVE_DUMMY, - HPBDMA_SLAVE_SDHI0_TX, - HPBDMA_SLAVE_SDHI0_RX, - HPBDMA_SLAVE_SSI0_TX, - HPBDMA_SLAVE_SSI0_RX, - HPBDMA_SLAVE_SSI1_TX, - HPBDMA_SLAVE_SSI1_RX, - HPBDMA_SLAVE_SSI2_TX, - HPBDMA_SLAVE_SSI2_RX, - HPBDMA_SLAVE_SSI3_TX, - HPBDMA_SLAVE_SSI3_RX, - HPBDMA_SLAVE_SSI4_TX, - HPBDMA_SLAVE_SSI4_RX, - HPBDMA_SLAVE_SSI5_TX, - HPBDMA_SLAVE_SSI5_RX, - HPBDMA_SLAVE_SSI6_TX, - HPBDMA_SLAVE_SSI6_RX, - HPBDMA_SLAVE_SSI7_TX, - HPBDMA_SLAVE_SSI7_RX, - HPBDMA_SLAVE_SSI8_TX, - HPBDMA_SLAVE_SSI8_RX, - HPBDMA_SLAVE_HPBIF0_TX, - HPBDMA_SLAVE_HPBIF0_RX, - HPBDMA_SLAVE_HPBIF1_TX, - HPBDMA_SLAVE_HPBIF1_RX, - HPBDMA_SLAVE_HPBIF2_TX, - HPBDMA_SLAVE_HPBIF2_RX, - HPBDMA_SLAVE_HPBIF3_TX, - HPBDMA_SLAVE_HPBIF3_RX, - HPBDMA_SLAVE_HPBIF4_TX, - HPBDMA_SLAVE_HPBIF4_RX, - HPBDMA_SLAVE_HPBIF5_TX, - HPBDMA_SLAVE_HPBIF5_RX, - HPBDMA_SLAVE_HPBIF6_TX, - HPBDMA_SLAVE_HPBIF6_RX, - HPBDMA_SLAVE_HPBIF7_TX, - HPBDMA_SLAVE_HPBIF7_RX, - HPBDMA_SLAVE_HPBIF8_TX, - HPBDMA_SLAVE_HPBIF8_RX, - HPBDMA_SLAVE_USBFUNC_TX, - HPBDMA_SLAVE_USBFUNC_RX, -}; - -extern void r8a7778_add_standard_devices(void); -extern void r8a7778_add_standard_devices_dt(void); -extern void r8a7778_add_dt_devices(void); - -extern void r8a7778_init_late(void); -extern void r8a7778_init_delay(void); -extern void r8a7778_init_irq_dt(void); -extern void r8a7778_clock_init(void); -extern void r8a7778_init_irq_extpin(int irlm); -extern void r8a7778_init_irq_extpin_dt(int irlm); -extern void r8a7778_pinmux_init(void); - -extern int r8a7778_usb_phy_power(bool enable); - -#endif /* __ASM_R8A7778_H__ */ diff --git a/arch/arm/mach-shmobile/r8a7778.h b/arch/arm/mach-shmobile/r8a7778.h new file mode 100644 index 0000000..f4076a5 --- /dev/null +++ b/arch/arm/mach-shmobile/r8a7778.h @@ -0,0 +1,83 @@ +/* + * Copyright (C) 2013 Renesas Solutions Corp. + * Copyright (C) 2013 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> + * Copyright (C) 2013 Cogent Embedded, Inc. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ +#ifndef __ASM_R8A7778_H__ +#define __ASM_R8A7778_H__ + +#include <linux/sh_eth.h> + +/* HPB-DMA slave IDs */ +enum { + HPBDMA_SLAVE_DUMMY, + HPBDMA_SLAVE_SDHI0_TX, + HPBDMA_SLAVE_SDHI0_RX, + HPBDMA_SLAVE_SSI0_TX, + HPBDMA_SLAVE_SSI0_RX, + HPBDMA_SLAVE_SSI1_TX, + HPBDMA_SLAVE_SSI1_RX, + HPBDMA_SLAVE_SSI2_TX, + HPBDMA_SLAVE_SSI2_RX, + HPBDMA_SLAVE_SSI3_TX, + HPBDMA_SLAVE_SSI3_RX, + HPBDMA_SLAVE_SSI4_TX, + HPBDMA_SLAVE_SSI4_RX, + HPBDMA_SLAVE_SSI5_TX, + HPBDMA_SLAVE_SSI5_RX, + HPBDMA_SLAVE_SSI6_TX, + HPBDMA_SLAVE_SSI6_RX, + HPBDMA_SLAVE_SSI7_TX, + HPBDMA_SLAVE_SSI7_RX, + HPBDMA_SLAVE_SSI8_TX, + HPBDMA_SLAVE_SSI8_RX, + HPBDMA_SLAVE_HPBIF0_TX, + HPBDMA_SLAVE_HPBIF0_RX, + HPBDMA_SLAVE_HPBIF1_TX, + HPBDMA_SLAVE_HPBIF1_RX, + HPBDMA_SLAVE_HPBIF2_TX, + HPBDMA_SLAVE_HPBIF2_RX, + HPBDMA_SLAVE_HPBIF3_TX, + HPBDMA_SLAVE_HPBIF3_RX, + HPBDMA_SLAVE_HPBIF4_TX, + HPBDMA_SLAVE_HPBIF4_RX, + HPBDMA_SLAVE_HPBIF5_TX, + HPBDMA_SLAVE_HPBIF5_RX, + HPBDMA_SLAVE_HPBIF6_TX, + HPBDMA_SLAVE_HPBIF6_RX, + HPBDMA_SLAVE_HPBIF7_TX, + HPBDMA_SLAVE_HPBIF7_RX, + HPBDMA_SLAVE_HPBIF8_TX, + HPBDMA_SLAVE_HPBIF8_RX, + HPBDMA_SLAVE_USBFUNC_TX, + HPBDMA_SLAVE_USBFUNC_RX, +}; + +extern void r8a7778_add_standard_devices(void); +extern void r8a7778_add_standard_devices_dt(void); +extern void r8a7778_add_dt_devices(void); + +extern void r8a7778_init_late(void); +extern void r8a7778_init_delay(void); +extern void r8a7778_init_irq_dt(void); +extern void r8a7778_clock_init(void); +extern void r8a7778_init_irq_extpin(int irlm); +extern void r8a7778_init_irq_extpin_dt(int irlm); +extern void r8a7778_pinmux_init(void); + +extern int r8a7778_usb_phy_power(bool enable); + +#endif /* __ASM_R8A7778_H__ */ diff --git a/arch/arm/mach-shmobile/setup-r8a7778.c b/arch/arm/mach-shmobile/setup-r8a7778.c index d9f4529..2ccc012 100644 --- a/arch/arm/mach-shmobile/setup-r8a7778.c +++ b/arch/arm/mach-shmobile/setup-r8a7778.c @@ -37,11 +37,13 @@ #include <linux/usb/ehci_pdriver.h> #include <linux/usb/ohci_pdriver.h> #include <linux/dma-mapping.h> -#include <mach/r8a7778.h> + #include <asm/mach/arch.h> #include <asm/hardware/cache-l2x0.h> + #include "common.h" #include "irqs.h" +#include "r8a7778.h" /* SCIF */ #define R8A7778_SCIF(index, baseaddr, irq) \ -- 2.0.0.rc2 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 4/7] ARM: shmobile: Move r8a7778.h @ 2014-07-01 0:28 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-07-01 0:28 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> Change location of r8a7778.h so it can be included as "r8a7778.h" instead of the old style <mach/r8a7778.h> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/board-bockw-reference.c | 4 +- arch/arm/mach-shmobile/board-bockw.c | 4 +- arch/arm/mach-shmobile/include/mach/r8a7778.h | 83 -------------------------- arch/arm/mach-shmobile/r8a7778.h | 83 ++++++++++++++++++++++++++ arch/arm/mach-shmobile/setup-r8a7778.c | 4 +- 5 files changed, 92 insertions(+), 86 deletions(-) delete mode 100644 arch/arm/mach-shmobile/include/mach/r8a7778.h create mode 100644 arch/arm/mach-shmobile/r8a7778.h diff --git a/arch/arm/mach-shmobile/board-bockw-reference.c b/arch/arm/mach-shmobile/board-bockw-reference.c index 91ff3a2..ba840cd 100644 --- a/arch/arm/mach-shmobile/board-bockw-reference.c +++ b/arch/arm/mach-shmobile/board-bockw-reference.c @@ -19,9 +19,11 @@ */ #include <linux/of_platform.h> -#include <mach/r8a7778.h> + #include <asm/mach/arch.h> + #include "common.h" +#include "r8a7778.h" /* * see board-bock.c for checking detail of dip-switch diff --git a/arch/arm/mach-shmobile/board-bockw.c b/arch/arm/mach-shmobile/board-bockw.c index 8cb057f..b4e4789 100644 --- a/arch/arm/mach-shmobile/board-bockw.c +++ b/arch/arm/mach-shmobile/board-bockw.c @@ -34,13 +34,15 @@ #include <linux/spi/spi.h> #include <linux/spi/flash.h> #include <linux/usb/renesas_usbhs.h> + #include <media/soc_camera.h> -#include <mach/r8a7778.h> #include <asm/mach/arch.h> #include <sound/rcar_snd.h> #include <sound/simple_card.h> + #include "common.h" #include "irqs.h" +#include "r8a7778.h" #define FPGA 0x18200000 #define IRQ0MR 0x30 diff --git a/arch/arm/mach-shmobile/include/mach/r8a7778.h b/arch/arm/mach-shmobile/include/mach/r8a7778.h deleted file mode 100644 index f4076a5..0000000 --- a/arch/arm/mach-shmobile/include/mach/r8a7778.h +++ /dev/null @@ -1,83 +0,0 @@ -/* - * Copyright (C) 2013 Renesas Solutions Corp. - * Copyright (C) 2013 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> - * Copyright (C) 2013 Cogent Embedded, Inc. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; version 2 of the License. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - */ -#ifndef __ASM_R8A7778_H__ -#define __ASM_R8A7778_H__ - -#include <linux/sh_eth.h> - -/* HPB-DMA slave IDs */ -enum { - HPBDMA_SLAVE_DUMMY, - HPBDMA_SLAVE_SDHI0_TX, - HPBDMA_SLAVE_SDHI0_RX, - HPBDMA_SLAVE_SSI0_TX, - HPBDMA_SLAVE_SSI0_RX, - HPBDMA_SLAVE_SSI1_TX, - HPBDMA_SLAVE_SSI1_RX, - HPBDMA_SLAVE_SSI2_TX, - HPBDMA_SLAVE_SSI2_RX, - HPBDMA_SLAVE_SSI3_TX, - HPBDMA_SLAVE_SSI3_RX, - HPBDMA_SLAVE_SSI4_TX, - HPBDMA_SLAVE_SSI4_RX, - HPBDMA_SLAVE_SSI5_TX, - HPBDMA_SLAVE_SSI5_RX, - HPBDMA_SLAVE_SSI6_TX, - HPBDMA_SLAVE_SSI6_RX, - HPBDMA_SLAVE_SSI7_TX, - HPBDMA_SLAVE_SSI7_RX, - HPBDMA_SLAVE_SSI8_TX, - HPBDMA_SLAVE_SSI8_RX, - HPBDMA_SLAVE_HPBIF0_TX, - HPBDMA_SLAVE_HPBIF0_RX, - HPBDMA_SLAVE_HPBIF1_TX, - HPBDMA_SLAVE_HPBIF1_RX, - HPBDMA_SLAVE_HPBIF2_TX, - HPBDMA_SLAVE_HPBIF2_RX, - HPBDMA_SLAVE_HPBIF3_TX, - HPBDMA_SLAVE_HPBIF3_RX, - HPBDMA_SLAVE_HPBIF4_TX, - HPBDMA_SLAVE_HPBIF4_RX, - HPBDMA_SLAVE_HPBIF5_TX, - HPBDMA_SLAVE_HPBIF5_RX, - HPBDMA_SLAVE_HPBIF6_TX, - HPBDMA_SLAVE_HPBIF6_RX, - HPBDMA_SLAVE_HPBIF7_TX, - HPBDMA_SLAVE_HPBIF7_RX, - HPBDMA_SLAVE_HPBIF8_TX, - HPBDMA_SLAVE_HPBIF8_RX, - HPBDMA_SLAVE_USBFUNC_TX, - HPBDMA_SLAVE_USBFUNC_RX, -}; - -extern void r8a7778_add_standard_devices(void); -extern void r8a7778_add_standard_devices_dt(void); -extern void r8a7778_add_dt_devices(void); - -extern void r8a7778_init_late(void); -extern void r8a7778_init_delay(void); -extern void r8a7778_init_irq_dt(void); -extern void r8a7778_clock_init(void); -extern void r8a7778_init_irq_extpin(int irlm); -extern void r8a7778_init_irq_extpin_dt(int irlm); -extern void r8a7778_pinmux_init(void); - -extern int r8a7778_usb_phy_power(bool enable); - -#endif /* __ASM_R8A7778_H__ */ diff --git a/arch/arm/mach-shmobile/r8a7778.h b/arch/arm/mach-shmobile/r8a7778.h new file mode 100644 index 0000000..f4076a5 --- /dev/null +++ b/arch/arm/mach-shmobile/r8a7778.h @@ -0,0 +1,83 @@ +/* + * Copyright (C) 2013 Renesas Solutions Corp. + * Copyright (C) 2013 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> + * Copyright (C) 2013 Cogent Embedded, Inc. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ +#ifndef __ASM_R8A7778_H__ +#define __ASM_R8A7778_H__ + +#include <linux/sh_eth.h> + +/* HPB-DMA slave IDs */ +enum { + HPBDMA_SLAVE_DUMMY, + HPBDMA_SLAVE_SDHI0_TX, + HPBDMA_SLAVE_SDHI0_RX, + HPBDMA_SLAVE_SSI0_TX, + HPBDMA_SLAVE_SSI0_RX, + HPBDMA_SLAVE_SSI1_TX, + HPBDMA_SLAVE_SSI1_RX, + HPBDMA_SLAVE_SSI2_TX, + HPBDMA_SLAVE_SSI2_RX, + HPBDMA_SLAVE_SSI3_TX, + HPBDMA_SLAVE_SSI3_RX, + HPBDMA_SLAVE_SSI4_TX, + HPBDMA_SLAVE_SSI4_RX, + HPBDMA_SLAVE_SSI5_TX, + HPBDMA_SLAVE_SSI5_RX, + HPBDMA_SLAVE_SSI6_TX, + HPBDMA_SLAVE_SSI6_RX, + HPBDMA_SLAVE_SSI7_TX, + HPBDMA_SLAVE_SSI7_RX, + HPBDMA_SLAVE_SSI8_TX, + HPBDMA_SLAVE_SSI8_RX, + HPBDMA_SLAVE_HPBIF0_TX, + HPBDMA_SLAVE_HPBIF0_RX, + HPBDMA_SLAVE_HPBIF1_TX, + HPBDMA_SLAVE_HPBIF1_RX, + HPBDMA_SLAVE_HPBIF2_TX, + HPBDMA_SLAVE_HPBIF2_RX, + HPBDMA_SLAVE_HPBIF3_TX, + HPBDMA_SLAVE_HPBIF3_RX, + HPBDMA_SLAVE_HPBIF4_TX, + HPBDMA_SLAVE_HPBIF4_RX, + HPBDMA_SLAVE_HPBIF5_TX, + HPBDMA_SLAVE_HPBIF5_RX, + HPBDMA_SLAVE_HPBIF6_TX, + HPBDMA_SLAVE_HPBIF6_RX, + HPBDMA_SLAVE_HPBIF7_TX, + HPBDMA_SLAVE_HPBIF7_RX, + HPBDMA_SLAVE_HPBIF8_TX, + HPBDMA_SLAVE_HPBIF8_RX, + HPBDMA_SLAVE_USBFUNC_TX, + HPBDMA_SLAVE_USBFUNC_RX, +}; + +extern void r8a7778_add_standard_devices(void); +extern void r8a7778_add_standard_devices_dt(void); +extern void r8a7778_add_dt_devices(void); + +extern void r8a7778_init_late(void); +extern void r8a7778_init_delay(void); +extern void r8a7778_init_irq_dt(void); +extern void r8a7778_clock_init(void); +extern void r8a7778_init_irq_extpin(int irlm); +extern void r8a7778_init_irq_extpin_dt(int irlm); +extern void r8a7778_pinmux_init(void); + +extern int r8a7778_usb_phy_power(bool enable); + +#endif /* __ASM_R8A7778_H__ */ diff --git a/arch/arm/mach-shmobile/setup-r8a7778.c b/arch/arm/mach-shmobile/setup-r8a7778.c index d9f4529..2ccc012 100644 --- a/arch/arm/mach-shmobile/setup-r8a7778.c +++ b/arch/arm/mach-shmobile/setup-r8a7778.c @@ -37,11 +37,13 @@ #include <linux/usb/ehci_pdriver.h> #include <linux/usb/ohci_pdriver.h> #include <linux/dma-mapping.h> -#include <mach/r8a7778.h> + #include <asm/mach/arch.h> #include <asm/hardware/cache-l2x0.h> + #include "common.h" #include "irqs.h" +#include "r8a7778.h" /* SCIF */ #define R8A7778_SCIF(index, baseaddr, irq) \ -- 2.0.0.rc2 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 5/7] ARM: shmobile: Move r8a7790.h 2014-07-01 0:28 ` Simon Horman @ 2014-07-01 0:28 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-07-01 0:28 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> Change location of r8a7790.h so it can be included as "r8a7790.h" instead of the old style <mach/r8a7790.h> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/board-lager-reference.c | 4 ++- arch/arm/mach-shmobile/board-lager.c | 14 +++++----- arch/arm/mach-shmobile/clock-r8a7790.c | 3 ++- arch/arm/mach-shmobile/include/mach/r8a7790.h | 36 -------------------------- arch/arm/mach-shmobile/pm-r8a7790.c | 4 ++- arch/arm/mach-shmobile/r8a7790.h | 36 ++++++++++++++++++++++++++ arch/arm/mach-shmobile/setup-r8a7790.c | 4 ++- arch/arm/mach-shmobile/smp-r8a7790.c | 4 ++- 8 files changed, 58 insertions(+), 47 deletions(-) delete mode 100644 arch/arm/mach-shmobile/include/mach/r8a7790.h create mode 100644 arch/arm/mach-shmobile/r8a7790.h diff --git a/arch/arm/mach-shmobile/board-lager-reference.c b/arch/arm/mach-shmobile/board-lager-reference.c index e30017b..8dcff51 100644 --- a/arch/arm/mach-shmobile/board-lager-reference.c +++ b/arch/arm/mach-shmobile/board-lager-reference.c @@ -22,11 +22,13 @@ #include <linux/init.h> #include <linux/of_platform.h> #include <linux/platform_data/rcar-du.h> -#include <mach/r8a7790.h> + #include <asm/mach/arch.h> + #include "clock.h" #include "common.h" #include "irqs.h" +#include "r8a7790.h" #include "rcar-gen2.h" /* DU */ diff --git a/arch/arm/mach-shmobile/board-lager.c b/arch/arm/mach-shmobile/board-lager.c index 72785cc..bfd9e48 100644 --- a/arch/arm/mach-shmobile/board-lager.c +++ b/arch/arm/mach-shmobile/board-lager.c @@ -31,6 +31,8 @@ #include <linux/mmc/host.h> #include <linux/mmc/sh_mmcif.h> #include <linux/mmc/sh_mobile_sdhi.h> +#include <linux/mtd/partitions.h> +#include <linux/mtd/mtd.h> #include <linux/pinctrl/machine.h> #include <linux/platform_data/camera-rcar.h> #include <linux/platform_data/gpio-rcar.h> @@ -43,21 +45,21 @@ #include <linux/regulator/gpio-regulator.h> #include <linux/regulator/machine.h> #include <linux/sh_eth.h> +#include <linux/spi/flash.h> +#include <linux/spi/rspi.h> +#include <linux/spi/spi.h> #include <linux/usb/phy.h> #include <linux/usb/renesas_usbhs.h> -#include <mach/r8a7790.h> + #include <media/soc_camera.h> #include <asm/mach-types.h> #include <asm/mach/arch.h> -#include <linux/mtd/partitions.h> -#include <linux/mtd/mtd.h> -#include <linux/spi/flash.h> -#include <linux/spi/rspi.h> -#include <linux/spi/spi.h> #include <sound/rcar_snd.h> #include <sound/simple_card.h> + #include "common.h" #include "irqs.h" +#include "r8a7790.h" #include "rcar-gen2.h" /* diff --git a/arch/arm/mach-shmobile/clock-r8a7790.c b/arch/arm/mach-shmobile/clock-r8a7790.c index ca98066..17435c1 100644 --- a/arch/arm/mach-shmobile/clock-r8a7790.c +++ b/arch/arm/mach-shmobile/clock-r8a7790.c @@ -22,9 +22,10 @@ #include <linux/kernel.h> #include <linux/sh_clk.h> #include <linux/clkdev.h> -#include <mach/r8a7790.h> + #include "clock.h" #include "common.h" +#include "r8a7790.h" #include "rcar-gen2.h" /* diff --git a/arch/arm/mach-shmobile/include/mach/r8a7790.h b/arch/arm/mach-shmobile/include/mach/r8a7790.h deleted file mode 100644 index 459827f..0000000 --- a/arch/arm/mach-shmobile/include/mach/r8a7790.h +++ /dev/null @@ -1,36 +0,0 @@ -#ifndef __ASM_R8A7790_H__ -#define __ASM_R8A7790_H__ - -/* DMA slave IDs */ -enum { - RCAR_DMA_SLAVE_INVALID, - AUDIO_DMAC_SLAVE_SSI0_TX, - AUDIO_DMAC_SLAVE_SSI0_RX, - AUDIO_DMAC_SLAVE_SSI1_TX, - AUDIO_DMAC_SLAVE_SSI1_RX, - AUDIO_DMAC_SLAVE_SSI2_TX, - AUDIO_DMAC_SLAVE_SSI2_RX, - AUDIO_DMAC_SLAVE_SSI3_TX, - AUDIO_DMAC_SLAVE_SSI3_RX, - AUDIO_DMAC_SLAVE_SSI4_TX, - AUDIO_DMAC_SLAVE_SSI4_RX, - AUDIO_DMAC_SLAVE_SSI5_TX, - AUDIO_DMAC_SLAVE_SSI5_RX, - AUDIO_DMAC_SLAVE_SSI6_TX, - AUDIO_DMAC_SLAVE_SSI6_RX, - AUDIO_DMAC_SLAVE_SSI7_TX, - AUDIO_DMAC_SLAVE_SSI7_RX, - AUDIO_DMAC_SLAVE_SSI8_TX, - AUDIO_DMAC_SLAVE_SSI8_RX, - AUDIO_DMAC_SLAVE_SSI9_TX, - AUDIO_DMAC_SLAVE_SSI9_RX, -}; - -void r8a7790_add_standard_devices(void); -void r8a7790_add_dt_devices(void); -void r8a7790_clock_init(void); -void r8a7790_pinmux_init(void); -void r8a7790_pm_init(void); -extern struct smp_operations r8a7790_smp_ops; - -#endif /* __ASM_R8A7790_H__ */ diff --git a/arch/arm/mach-shmobile/pm-r8a7790.c b/arch/arm/mach-shmobile/pm-r8a7790.c index 0f1090d8..8845433 100644 --- a/arch/arm/mach-shmobile/pm-r8a7790.c +++ b/arch/arm/mach-shmobile/pm-r8a7790.c @@ -11,9 +11,11 @@ */ #include <linux/kernel.h> + #include <asm/io.h> -#include <mach/r8a7790.h> + #include "pm-rcar.h" +#include "r8a7790.h" /* SYSC */ #define SYSCIER 0x0c diff --git a/arch/arm/mach-shmobile/r8a7790.h b/arch/arm/mach-shmobile/r8a7790.h new file mode 100644 index 0000000..459827f --- /dev/null +++ b/arch/arm/mach-shmobile/r8a7790.h @@ -0,0 +1,36 @@ +#ifndef __ASM_R8A7790_H__ +#define __ASM_R8A7790_H__ + +/* DMA slave IDs */ +enum { + RCAR_DMA_SLAVE_INVALID, + AUDIO_DMAC_SLAVE_SSI0_TX, + AUDIO_DMAC_SLAVE_SSI0_RX, + AUDIO_DMAC_SLAVE_SSI1_TX, + AUDIO_DMAC_SLAVE_SSI1_RX, + AUDIO_DMAC_SLAVE_SSI2_TX, + AUDIO_DMAC_SLAVE_SSI2_RX, + AUDIO_DMAC_SLAVE_SSI3_TX, + AUDIO_DMAC_SLAVE_SSI3_RX, + AUDIO_DMAC_SLAVE_SSI4_TX, + AUDIO_DMAC_SLAVE_SSI4_RX, + AUDIO_DMAC_SLAVE_SSI5_TX, + AUDIO_DMAC_SLAVE_SSI5_RX, + AUDIO_DMAC_SLAVE_SSI6_TX, + AUDIO_DMAC_SLAVE_SSI6_RX, + AUDIO_DMAC_SLAVE_SSI7_TX, + AUDIO_DMAC_SLAVE_SSI7_RX, + AUDIO_DMAC_SLAVE_SSI8_TX, + AUDIO_DMAC_SLAVE_SSI8_RX, + AUDIO_DMAC_SLAVE_SSI9_TX, + AUDIO_DMAC_SLAVE_SSI9_RX, +}; + +void r8a7790_add_standard_devices(void); +void r8a7790_add_dt_devices(void); +void r8a7790_clock_init(void); +void r8a7790_pinmux_init(void); +void r8a7790_pm_init(void); +extern struct smp_operations r8a7790_smp_ops; + +#endif /* __ASM_R8A7790_H__ */ diff --git a/arch/arm/mach-shmobile/setup-r8a7790.c b/arch/arm/mach-shmobile/setup-r8a7790.c index ee5daccf3..6bf84ec 100644 --- a/arch/arm/mach-shmobile/setup-r8a7790.c +++ b/arch/arm/mach-shmobile/setup-r8a7790.c @@ -26,11 +26,13 @@ #include <linux/serial_sci.h> #include <linux/sh_dma.h> #include <linux/sh_timer.h> -#include <mach/r8a7790.h> + #include <asm/mach/arch.h> + #include "common.h" #include "dma-register.h" #include "irqs.h" +#include "r8a7790.h" #include "rcar-gen2.h" /* Audio-DMAC */ diff --git a/arch/arm/mach-shmobile/smp-r8a7790.c b/arch/arm/mach-shmobile/smp-r8a7790.c index a8ace58..c256fdf 100644 --- a/arch/arm/mach-shmobile/smp-r8a7790.c +++ b/arch/arm/mach-shmobile/smp-r8a7790.c @@ -17,10 +17,12 @@ #include <linux/init.h> #include <linux/smp.h> #include <linux/io.h> + #include <asm/smp_plat.h> -#include <mach/r8a7790.h> + #include "common.h" #include "pm-rcar.h" +#include "r8a7790.h" #define RST 0xe6160000 #define CA15BAR 0x0020 -- 2.0.0.rc2 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 5/7] ARM: shmobile: Move r8a7790.h @ 2014-07-01 0:28 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-07-01 0:28 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> Change location of r8a7790.h so it can be included as "r8a7790.h" instead of the old style <mach/r8a7790.h> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/board-lager-reference.c | 4 ++- arch/arm/mach-shmobile/board-lager.c | 14 +++++----- arch/arm/mach-shmobile/clock-r8a7790.c | 3 ++- arch/arm/mach-shmobile/include/mach/r8a7790.h | 36 -------------------------- arch/arm/mach-shmobile/pm-r8a7790.c | 4 ++- arch/arm/mach-shmobile/r8a7790.h | 36 ++++++++++++++++++++++++++ arch/arm/mach-shmobile/setup-r8a7790.c | 4 ++- arch/arm/mach-shmobile/smp-r8a7790.c | 4 ++- 8 files changed, 58 insertions(+), 47 deletions(-) delete mode 100644 arch/arm/mach-shmobile/include/mach/r8a7790.h create mode 100644 arch/arm/mach-shmobile/r8a7790.h diff --git a/arch/arm/mach-shmobile/board-lager-reference.c b/arch/arm/mach-shmobile/board-lager-reference.c index e30017b..8dcff51 100644 --- a/arch/arm/mach-shmobile/board-lager-reference.c +++ b/arch/arm/mach-shmobile/board-lager-reference.c @@ -22,11 +22,13 @@ #include <linux/init.h> #include <linux/of_platform.h> #include <linux/platform_data/rcar-du.h> -#include <mach/r8a7790.h> + #include <asm/mach/arch.h> + #include "clock.h" #include "common.h" #include "irqs.h" +#include "r8a7790.h" #include "rcar-gen2.h" /* DU */ diff --git a/arch/arm/mach-shmobile/board-lager.c b/arch/arm/mach-shmobile/board-lager.c index 72785cc..bfd9e48 100644 --- a/arch/arm/mach-shmobile/board-lager.c +++ b/arch/arm/mach-shmobile/board-lager.c @@ -31,6 +31,8 @@ #include <linux/mmc/host.h> #include <linux/mmc/sh_mmcif.h> #include <linux/mmc/sh_mobile_sdhi.h> +#include <linux/mtd/partitions.h> +#include <linux/mtd/mtd.h> #include <linux/pinctrl/machine.h> #include <linux/platform_data/camera-rcar.h> #include <linux/platform_data/gpio-rcar.h> @@ -43,21 +45,21 @@ #include <linux/regulator/gpio-regulator.h> #include <linux/regulator/machine.h> #include <linux/sh_eth.h> +#include <linux/spi/flash.h> +#include <linux/spi/rspi.h> +#include <linux/spi/spi.h> #include <linux/usb/phy.h> #include <linux/usb/renesas_usbhs.h> -#include <mach/r8a7790.h> + #include <media/soc_camera.h> #include <asm/mach-types.h> #include <asm/mach/arch.h> -#include <linux/mtd/partitions.h> -#include <linux/mtd/mtd.h> -#include <linux/spi/flash.h> -#include <linux/spi/rspi.h> -#include <linux/spi/spi.h> #include <sound/rcar_snd.h> #include <sound/simple_card.h> + #include "common.h" #include "irqs.h" +#include "r8a7790.h" #include "rcar-gen2.h" /* diff --git a/arch/arm/mach-shmobile/clock-r8a7790.c b/arch/arm/mach-shmobile/clock-r8a7790.c index ca98066..17435c1 100644 --- a/arch/arm/mach-shmobile/clock-r8a7790.c +++ b/arch/arm/mach-shmobile/clock-r8a7790.c @@ -22,9 +22,10 @@ #include <linux/kernel.h> #include <linux/sh_clk.h> #include <linux/clkdev.h> -#include <mach/r8a7790.h> + #include "clock.h" #include "common.h" +#include "r8a7790.h" #include "rcar-gen2.h" /* diff --git a/arch/arm/mach-shmobile/include/mach/r8a7790.h b/arch/arm/mach-shmobile/include/mach/r8a7790.h deleted file mode 100644 index 459827f..0000000 --- a/arch/arm/mach-shmobile/include/mach/r8a7790.h +++ /dev/null @@ -1,36 +0,0 @@ -#ifndef __ASM_R8A7790_H__ -#define __ASM_R8A7790_H__ - -/* DMA slave IDs */ -enum { - RCAR_DMA_SLAVE_INVALID, - AUDIO_DMAC_SLAVE_SSI0_TX, - AUDIO_DMAC_SLAVE_SSI0_RX, - AUDIO_DMAC_SLAVE_SSI1_TX, - AUDIO_DMAC_SLAVE_SSI1_RX, - AUDIO_DMAC_SLAVE_SSI2_TX, - AUDIO_DMAC_SLAVE_SSI2_RX, - AUDIO_DMAC_SLAVE_SSI3_TX, - AUDIO_DMAC_SLAVE_SSI3_RX, - AUDIO_DMAC_SLAVE_SSI4_TX, - AUDIO_DMAC_SLAVE_SSI4_RX, - AUDIO_DMAC_SLAVE_SSI5_TX, - AUDIO_DMAC_SLAVE_SSI5_RX, - AUDIO_DMAC_SLAVE_SSI6_TX, - AUDIO_DMAC_SLAVE_SSI6_RX, - AUDIO_DMAC_SLAVE_SSI7_TX, - AUDIO_DMAC_SLAVE_SSI7_RX, - AUDIO_DMAC_SLAVE_SSI8_TX, - AUDIO_DMAC_SLAVE_SSI8_RX, - AUDIO_DMAC_SLAVE_SSI9_TX, - AUDIO_DMAC_SLAVE_SSI9_RX, -}; - -void r8a7790_add_standard_devices(void); -void r8a7790_add_dt_devices(void); -void r8a7790_clock_init(void); -void r8a7790_pinmux_init(void); -void r8a7790_pm_init(void); -extern struct smp_operations r8a7790_smp_ops; - -#endif /* __ASM_R8A7790_H__ */ diff --git a/arch/arm/mach-shmobile/pm-r8a7790.c b/arch/arm/mach-shmobile/pm-r8a7790.c index 0f1090d8..8845433 100644 --- a/arch/arm/mach-shmobile/pm-r8a7790.c +++ b/arch/arm/mach-shmobile/pm-r8a7790.c @@ -11,9 +11,11 @@ */ #include <linux/kernel.h> + #include <asm/io.h> -#include <mach/r8a7790.h> + #include "pm-rcar.h" +#include "r8a7790.h" /* SYSC */ #define SYSCIER 0x0c diff --git a/arch/arm/mach-shmobile/r8a7790.h b/arch/arm/mach-shmobile/r8a7790.h new file mode 100644 index 0000000..459827f --- /dev/null +++ b/arch/arm/mach-shmobile/r8a7790.h @@ -0,0 +1,36 @@ +#ifndef __ASM_R8A7790_H__ +#define __ASM_R8A7790_H__ + +/* DMA slave IDs */ +enum { + RCAR_DMA_SLAVE_INVALID, + AUDIO_DMAC_SLAVE_SSI0_TX, + AUDIO_DMAC_SLAVE_SSI0_RX, + AUDIO_DMAC_SLAVE_SSI1_TX, + AUDIO_DMAC_SLAVE_SSI1_RX, + AUDIO_DMAC_SLAVE_SSI2_TX, + AUDIO_DMAC_SLAVE_SSI2_RX, + AUDIO_DMAC_SLAVE_SSI3_TX, + AUDIO_DMAC_SLAVE_SSI3_RX, + AUDIO_DMAC_SLAVE_SSI4_TX, + AUDIO_DMAC_SLAVE_SSI4_RX, + AUDIO_DMAC_SLAVE_SSI5_TX, + AUDIO_DMAC_SLAVE_SSI5_RX, + AUDIO_DMAC_SLAVE_SSI6_TX, + AUDIO_DMAC_SLAVE_SSI6_RX, + AUDIO_DMAC_SLAVE_SSI7_TX, + AUDIO_DMAC_SLAVE_SSI7_RX, + AUDIO_DMAC_SLAVE_SSI8_TX, + AUDIO_DMAC_SLAVE_SSI8_RX, + AUDIO_DMAC_SLAVE_SSI9_TX, + AUDIO_DMAC_SLAVE_SSI9_RX, +}; + +void r8a7790_add_standard_devices(void); +void r8a7790_add_dt_devices(void); +void r8a7790_clock_init(void); +void r8a7790_pinmux_init(void); +void r8a7790_pm_init(void); +extern struct smp_operations r8a7790_smp_ops; + +#endif /* __ASM_R8A7790_H__ */ diff --git a/arch/arm/mach-shmobile/setup-r8a7790.c b/arch/arm/mach-shmobile/setup-r8a7790.c index ee5daccf3..6bf84ec 100644 --- a/arch/arm/mach-shmobile/setup-r8a7790.c +++ b/arch/arm/mach-shmobile/setup-r8a7790.c @@ -26,11 +26,13 @@ #include <linux/serial_sci.h> #include <linux/sh_dma.h> #include <linux/sh_timer.h> -#include <mach/r8a7790.h> + #include <asm/mach/arch.h> + #include "common.h" #include "dma-register.h" #include "irqs.h" +#include "r8a7790.h" #include "rcar-gen2.h" /* Audio-DMAC */ diff --git a/arch/arm/mach-shmobile/smp-r8a7790.c b/arch/arm/mach-shmobile/smp-r8a7790.c index a8ace58..c256fdf 100644 --- a/arch/arm/mach-shmobile/smp-r8a7790.c +++ b/arch/arm/mach-shmobile/smp-r8a7790.c @@ -17,10 +17,12 @@ #include <linux/init.h> #include <linux/smp.h> #include <linux/io.h> + #include <asm/smp_plat.h> -#include <mach/r8a7790.h> + #include "common.h" #include "pm-rcar.h" +#include "r8a7790.h" #define RST 0xe6160000 #define CA15BAR 0x0020 -- 2.0.0.rc2 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 6/7] ARM: shmobile: Move sh73a0.h 2014-07-01 0:28 ` Simon Horman @ 2014-07-01 0:28 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-07-01 0:28 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> Change location of sh73a0.h so it can be included as "sh73a0.h" instead of the old style <mach/sh73a0.h> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/board-kzm9g-reference.c | 4 +- arch/arm/mach-shmobile/board-kzm9g.c | 4 +- arch/arm/mach-shmobile/include/mach/sh73a0.h | 91 -------------------------- arch/arm/mach-shmobile/intc-sh73a0.c | 4 +- arch/arm/mach-shmobile/setup-sh73a0.c | 4 +- arch/arm/mach-shmobile/sh73a0.h | 91 ++++++++++++++++++++++++++ arch/arm/mach-shmobile/smp-sh73a0.c | 4 +- 7 files changed, 106 insertions(+), 96 deletions(-) delete mode 100644 arch/arm/mach-shmobile/include/mach/sh73a0.h create mode 100644 arch/arm/mach-shmobile/sh73a0.h diff --git a/arch/arm/mach-shmobile/board-kzm9g-reference.c b/arch/arm/mach-shmobile/board-kzm9g-reference.c index e6285de..5d2621f 100644 --- a/arch/arm/mach-shmobile/board-kzm9g-reference.c +++ b/arch/arm/mach-shmobile/board-kzm9g-reference.c @@ -25,11 +25,13 @@ #include <linux/irq.h> #include <linux/input.h> #include <linux/of_platform.h> -#include <mach/sh73a0.h> + #include <asm/hardware/cache-l2x0.h> #include <asm/mach-types.h> #include <asm/mach/arch.h> + #include "common.h" +#include "sh73a0.h" static void __init kzm_init(void) { diff --git a/arch/arm/mach-shmobile/board-kzm9g.c b/arch/arm/mach-shmobile/board-kzm9g.c index fff330f..1320e9d 100644 --- a/arch/arm/mach-shmobile/board-kzm9g.c +++ b/arch/arm/mach-shmobile/board-kzm9g.c @@ -41,15 +41,17 @@ #include <linux/usb/r8a66597.h> #include <linux/usb/renesas_usbhs.h> #include <linux/videodev2.h> + #include <sound/sh_fsi.h> #include <sound/simple_card.h> -#include <mach/sh73a0.h> #include <asm/hardware/cache-l2x0.h> #include <asm/mach-types.h> #include <asm/mach/arch.h> #include <video/sh_mobile_lcdc.h> + #include "common.h" #include "irqs.h" +#include "sh73a0.h" /* * external GPIO diff --git a/arch/arm/mach-shmobile/include/mach/sh73a0.h b/arch/arm/mach-shmobile/include/mach/sh73a0.h deleted file mode 100644 index 359b582..0000000 --- a/arch/arm/mach-shmobile/include/mach/sh73a0.h +++ /dev/null @@ -1,91 +0,0 @@ -#ifndef __ASM_SH73A0_H__ -#define __ASM_SH73A0_H__ - -/* DMA slave IDs */ -enum { - SHDMA_SLAVE_INVALID, - SHDMA_SLAVE_SCIF0_TX, - SHDMA_SLAVE_SCIF0_RX, - SHDMA_SLAVE_SCIF1_TX, - SHDMA_SLAVE_SCIF1_RX, - SHDMA_SLAVE_SCIF2_TX, - SHDMA_SLAVE_SCIF2_RX, - SHDMA_SLAVE_SCIF3_TX, - SHDMA_SLAVE_SCIF3_RX, - SHDMA_SLAVE_SCIF4_TX, - SHDMA_SLAVE_SCIF4_RX, - SHDMA_SLAVE_SCIF5_TX, - SHDMA_SLAVE_SCIF5_RX, - SHDMA_SLAVE_SCIF6_TX, - SHDMA_SLAVE_SCIF6_RX, - SHDMA_SLAVE_SCIF7_TX, - SHDMA_SLAVE_SCIF7_RX, - SHDMA_SLAVE_SCIF8_TX, - SHDMA_SLAVE_SCIF8_RX, - SHDMA_SLAVE_SDHI0_TX, - SHDMA_SLAVE_SDHI0_RX, - SHDMA_SLAVE_SDHI1_TX, - SHDMA_SLAVE_SDHI1_RX, - SHDMA_SLAVE_SDHI2_TX, - SHDMA_SLAVE_SDHI2_RX, - SHDMA_SLAVE_MMCIF_TX, - SHDMA_SLAVE_MMCIF_RX, - SHDMA_SLAVE_FSI2A_TX, - SHDMA_SLAVE_FSI2A_RX, - SHDMA_SLAVE_FSI2B_TX, - SHDMA_SLAVE_FSI2B_RX, - SHDMA_SLAVE_FSI2C_TX, - SHDMA_SLAVE_FSI2C_RX, - SHDMA_SLAVE_FSI2D_RX, -}; - -/* - * SH73A0 IRQ LOCATION TABLE - * - * 416 ----------------------------------------- - * IRQ0-IRQ15 - * 431 ----------------------------------------- - * ... - * 448 ----------------------------------------- - * sh73a0-intcs - * sh73a0-intca-irq-pins - * 680 ----------------------------------------- - * ... - * 700 ----------------------------------------- - * sh73a0-pint0 - * 731 ----------------------------------------- - * 732 ----------------------------------------- - * sh73a0-pint1 - * 739 ----------------------------------------- - * ... - * 800 ----------------------------------------- - * IRQ16-IRQ31 - * 815 ----------------------------------------- - * ... - * 928 ----------------------------------------- - * sh73a0-intca-irq-pins - * 943 ----------------------------------------- - */ - -/* PINT interrupts are located at Linux IRQ 700 and up */ -#define SH73A0_PINT0_IRQ(irq) ((irq) + 700) -#define SH73A0_PINT1_IRQ(irq) ((irq) + 732) - -extern void sh73a0_init_delay(void); -extern void sh73a0_init_irq(void); -extern void sh73a0_init_irq_dt(void); -extern void sh73a0_map_io(void); -extern void sh73a0_earlytimer_init(void); -extern void sh73a0_add_early_devices(void); -extern void sh73a0_add_standard_devices(void); -extern void sh73a0_add_standard_devices_dt(void); -extern void sh73a0_clock_init(void); -extern void sh73a0_pinmux_init(void); -extern void sh73a0_pm_init(void); -extern struct clk sh73a0_extal1_clk; -extern struct clk sh73a0_extal2_clk; -extern struct clk sh73a0_extcki_clk; -extern struct clk sh73a0_extalr_clk; -extern struct smp_operations sh73a0_smp_ops; - -#endif /* __ASM_SH73A0_H__ */ diff --git a/arch/arm/mach-shmobile/intc-sh73a0.c b/arch/arm/mach-shmobile/intc-sh73a0.c index 1a8f9a7..44457a9 100644 --- a/arch/arm/mach-shmobile/intc-sh73a0.c +++ b/arch/arm/mach-shmobile/intc-sh73a0.c @@ -24,11 +24,13 @@ #include <linux/io.h> #include <linux/irqchip.h> #include <linux/irqchip/arm-gic.h> -#include <mach/sh73a0.h> + #include <asm/mach-types.h> #include <asm/mach/arch.h> + #include "intc.h" #include "irqs.h" +#include "sh73a0.h" enum { UNUSED = 0, diff --git a/arch/arm/mach-shmobile/setup-sh73a0.c b/arch/arm/mach-shmobile/setup-sh73a0.c index b30bbee..2248821 100644 --- a/arch/arm/mach-shmobile/setup-sh73a0.c +++ b/arch/arm/mach-shmobile/setup-sh73a0.c @@ -32,14 +32,16 @@ #include <linux/sh_timer.h> #include <linux/platform_data/sh_ipmmu.h> #include <linux/platform_data/irq-renesas-intc-irqpin.h> -#include <mach/sh73a0.h> + #include <asm/mach-types.h> #include <asm/mach/map.h> #include <asm/mach/arch.h> #include <asm/mach/time.h> + #include "common.h" #include "dma-register.h" #include "irqs.h" +#include "sh73a0.h" static struct map_desc sh73a0_io_desc[] __initdata = { /* create a 1:1 entity map for 0xe6xxxxxx diff --git a/arch/arm/mach-shmobile/sh73a0.h b/arch/arm/mach-shmobile/sh73a0.h new file mode 100644 index 0000000..359b582 --- /dev/null +++ b/arch/arm/mach-shmobile/sh73a0.h @@ -0,0 +1,91 @@ +#ifndef __ASM_SH73A0_H__ +#define __ASM_SH73A0_H__ + +/* DMA slave IDs */ +enum { + SHDMA_SLAVE_INVALID, + SHDMA_SLAVE_SCIF0_TX, + SHDMA_SLAVE_SCIF0_RX, + SHDMA_SLAVE_SCIF1_TX, + SHDMA_SLAVE_SCIF1_RX, + SHDMA_SLAVE_SCIF2_TX, + SHDMA_SLAVE_SCIF2_RX, + SHDMA_SLAVE_SCIF3_TX, + SHDMA_SLAVE_SCIF3_RX, + SHDMA_SLAVE_SCIF4_TX, + SHDMA_SLAVE_SCIF4_RX, + SHDMA_SLAVE_SCIF5_TX, + SHDMA_SLAVE_SCIF5_RX, + SHDMA_SLAVE_SCIF6_TX, + SHDMA_SLAVE_SCIF6_RX, + SHDMA_SLAVE_SCIF7_TX, + SHDMA_SLAVE_SCIF7_RX, + SHDMA_SLAVE_SCIF8_TX, + SHDMA_SLAVE_SCIF8_RX, + SHDMA_SLAVE_SDHI0_TX, + SHDMA_SLAVE_SDHI0_RX, + SHDMA_SLAVE_SDHI1_TX, + SHDMA_SLAVE_SDHI1_RX, + SHDMA_SLAVE_SDHI2_TX, + SHDMA_SLAVE_SDHI2_RX, + SHDMA_SLAVE_MMCIF_TX, + SHDMA_SLAVE_MMCIF_RX, + SHDMA_SLAVE_FSI2A_TX, + SHDMA_SLAVE_FSI2A_RX, + SHDMA_SLAVE_FSI2B_TX, + SHDMA_SLAVE_FSI2B_RX, + SHDMA_SLAVE_FSI2C_TX, + SHDMA_SLAVE_FSI2C_RX, + SHDMA_SLAVE_FSI2D_RX, +}; + +/* + * SH73A0 IRQ LOCATION TABLE + * + * 416 ----------------------------------------- + * IRQ0-IRQ15 + * 431 ----------------------------------------- + * ... + * 448 ----------------------------------------- + * sh73a0-intcs + * sh73a0-intca-irq-pins + * 680 ----------------------------------------- + * ... + * 700 ----------------------------------------- + * sh73a0-pint0 + * 731 ----------------------------------------- + * 732 ----------------------------------------- + * sh73a0-pint1 + * 739 ----------------------------------------- + * ... + * 800 ----------------------------------------- + * IRQ16-IRQ31 + * 815 ----------------------------------------- + * ... + * 928 ----------------------------------------- + * sh73a0-intca-irq-pins + * 943 ----------------------------------------- + */ + +/* PINT interrupts are located at Linux IRQ 700 and up */ +#define SH73A0_PINT0_IRQ(irq) ((irq) + 700) +#define SH73A0_PINT1_IRQ(irq) ((irq) + 732) + +extern void sh73a0_init_delay(void); +extern void sh73a0_init_irq(void); +extern void sh73a0_init_irq_dt(void); +extern void sh73a0_map_io(void); +extern void sh73a0_earlytimer_init(void); +extern void sh73a0_add_early_devices(void); +extern void sh73a0_add_standard_devices(void); +extern void sh73a0_add_standard_devices_dt(void); +extern void sh73a0_clock_init(void); +extern void sh73a0_pinmux_init(void); +extern void sh73a0_pm_init(void); +extern struct clk sh73a0_extal1_clk; +extern struct clk sh73a0_extal2_clk; +extern struct clk sh73a0_extcki_clk; +extern struct clk sh73a0_extalr_clk; +extern struct smp_operations sh73a0_smp_ops; + +#endif /* __ASM_SH73A0_H__ */ diff --git a/arch/arm/mach-shmobile/smp-sh73a0.c b/arch/arm/mach-shmobile/smp-sh73a0.c index bf4aff9..22d8f87 100644 --- a/arch/arm/mach-shmobile/smp-sh73a0.c +++ b/arch/arm/mach-shmobile/smp-sh73a0.c @@ -22,10 +22,12 @@ #include <linux/smp.h> #include <linux/io.h> #include <linux/delay.h> -#include <mach/sh73a0.h> + #include <asm/smp_plat.h> #include <asm/smp_twd.h> + #include "common.h" +#include "sh73a0.h" #define WUPCR IOMEM(0xe6151010) #define SRESCR IOMEM(0xe6151018) -- 2.0.0.rc2 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 6/7] ARM: shmobile: Move sh73a0.h @ 2014-07-01 0:28 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-07-01 0:28 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> Change location of sh73a0.h so it can be included as "sh73a0.h" instead of the old style <mach/sh73a0.h> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/board-kzm9g-reference.c | 4 +- arch/arm/mach-shmobile/board-kzm9g.c | 4 +- arch/arm/mach-shmobile/include/mach/sh73a0.h | 91 -------------------------- arch/arm/mach-shmobile/intc-sh73a0.c | 4 +- arch/arm/mach-shmobile/setup-sh73a0.c | 4 +- arch/arm/mach-shmobile/sh73a0.h | 91 ++++++++++++++++++++++++++ arch/arm/mach-shmobile/smp-sh73a0.c | 4 +- 7 files changed, 106 insertions(+), 96 deletions(-) delete mode 100644 arch/arm/mach-shmobile/include/mach/sh73a0.h create mode 100644 arch/arm/mach-shmobile/sh73a0.h diff --git a/arch/arm/mach-shmobile/board-kzm9g-reference.c b/arch/arm/mach-shmobile/board-kzm9g-reference.c index e6285de..5d2621f 100644 --- a/arch/arm/mach-shmobile/board-kzm9g-reference.c +++ b/arch/arm/mach-shmobile/board-kzm9g-reference.c @@ -25,11 +25,13 @@ #include <linux/irq.h> #include <linux/input.h> #include <linux/of_platform.h> -#include <mach/sh73a0.h> + #include <asm/hardware/cache-l2x0.h> #include <asm/mach-types.h> #include <asm/mach/arch.h> + #include "common.h" +#include "sh73a0.h" static void __init kzm_init(void) { diff --git a/arch/arm/mach-shmobile/board-kzm9g.c b/arch/arm/mach-shmobile/board-kzm9g.c index fff330f..1320e9d 100644 --- a/arch/arm/mach-shmobile/board-kzm9g.c +++ b/arch/arm/mach-shmobile/board-kzm9g.c @@ -41,15 +41,17 @@ #include <linux/usb/r8a66597.h> #include <linux/usb/renesas_usbhs.h> #include <linux/videodev2.h> + #include <sound/sh_fsi.h> #include <sound/simple_card.h> -#include <mach/sh73a0.h> #include <asm/hardware/cache-l2x0.h> #include <asm/mach-types.h> #include <asm/mach/arch.h> #include <video/sh_mobile_lcdc.h> + #include "common.h" #include "irqs.h" +#include "sh73a0.h" /* * external GPIO diff --git a/arch/arm/mach-shmobile/include/mach/sh73a0.h b/arch/arm/mach-shmobile/include/mach/sh73a0.h deleted file mode 100644 index 359b582..0000000 --- a/arch/arm/mach-shmobile/include/mach/sh73a0.h +++ /dev/null @@ -1,91 +0,0 @@ -#ifndef __ASM_SH73A0_H__ -#define __ASM_SH73A0_H__ - -/* DMA slave IDs */ -enum { - SHDMA_SLAVE_INVALID, - SHDMA_SLAVE_SCIF0_TX, - SHDMA_SLAVE_SCIF0_RX, - SHDMA_SLAVE_SCIF1_TX, - SHDMA_SLAVE_SCIF1_RX, - SHDMA_SLAVE_SCIF2_TX, - SHDMA_SLAVE_SCIF2_RX, - SHDMA_SLAVE_SCIF3_TX, - SHDMA_SLAVE_SCIF3_RX, - SHDMA_SLAVE_SCIF4_TX, - SHDMA_SLAVE_SCIF4_RX, - SHDMA_SLAVE_SCIF5_TX, - SHDMA_SLAVE_SCIF5_RX, - SHDMA_SLAVE_SCIF6_TX, - SHDMA_SLAVE_SCIF6_RX, - SHDMA_SLAVE_SCIF7_TX, - SHDMA_SLAVE_SCIF7_RX, - SHDMA_SLAVE_SCIF8_TX, - SHDMA_SLAVE_SCIF8_RX, - SHDMA_SLAVE_SDHI0_TX, - SHDMA_SLAVE_SDHI0_RX, - SHDMA_SLAVE_SDHI1_TX, - SHDMA_SLAVE_SDHI1_RX, - SHDMA_SLAVE_SDHI2_TX, - SHDMA_SLAVE_SDHI2_RX, - SHDMA_SLAVE_MMCIF_TX, - SHDMA_SLAVE_MMCIF_RX, - SHDMA_SLAVE_FSI2A_TX, - SHDMA_SLAVE_FSI2A_RX, - SHDMA_SLAVE_FSI2B_TX, - SHDMA_SLAVE_FSI2B_RX, - SHDMA_SLAVE_FSI2C_TX, - SHDMA_SLAVE_FSI2C_RX, - SHDMA_SLAVE_FSI2D_RX, -}; - -/* - * SH73A0 IRQ LOCATION TABLE - * - * 416 ----------------------------------------- - * IRQ0-IRQ15 - * 431 ----------------------------------------- - * ... - * 448 ----------------------------------------- - * sh73a0-intcs - * sh73a0-intca-irq-pins - * 680 ----------------------------------------- - * ... - * 700 ----------------------------------------- - * sh73a0-pint0 - * 731 ----------------------------------------- - * 732 ----------------------------------------- - * sh73a0-pint1 - * 739 ----------------------------------------- - * ... - * 800 ----------------------------------------- - * IRQ16-IRQ31 - * 815 ----------------------------------------- - * ... - * 928 ----------------------------------------- - * sh73a0-intca-irq-pins - * 943 ----------------------------------------- - */ - -/* PINT interrupts are located at Linux IRQ 700 and up */ -#define SH73A0_PINT0_IRQ(irq) ((irq) + 700) -#define SH73A0_PINT1_IRQ(irq) ((irq) + 732) - -extern void sh73a0_init_delay(void); -extern void sh73a0_init_irq(void); -extern void sh73a0_init_irq_dt(void); -extern void sh73a0_map_io(void); -extern void sh73a0_earlytimer_init(void); -extern void sh73a0_add_early_devices(void); -extern void sh73a0_add_standard_devices(void); -extern void sh73a0_add_standard_devices_dt(void); -extern void sh73a0_clock_init(void); -extern void sh73a0_pinmux_init(void); -extern void sh73a0_pm_init(void); -extern struct clk sh73a0_extal1_clk; -extern struct clk sh73a0_extal2_clk; -extern struct clk sh73a0_extcki_clk; -extern struct clk sh73a0_extalr_clk; -extern struct smp_operations sh73a0_smp_ops; - -#endif /* __ASM_SH73A0_H__ */ diff --git a/arch/arm/mach-shmobile/intc-sh73a0.c b/arch/arm/mach-shmobile/intc-sh73a0.c index 1a8f9a7..44457a9 100644 --- a/arch/arm/mach-shmobile/intc-sh73a0.c +++ b/arch/arm/mach-shmobile/intc-sh73a0.c @@ -24,11 +24,13 @@ #include <linux/io.h> #include <linux/irqchip.h> #include <linux/irqchip/arm-gic.h> -#include <mach/sh73a0.h> + #include <asm/mach-types.h> #include <asm/mach/arch.h> + #include "intc.h" #include "irqs.h" +#include "sh73a0.h" enum { UNUSED = 0, diff --git a/arch/arm/mach-shmobile/setup-sh73a0.c b/arch/arm/mach-shmobile/setup-sh73a0.c index b30bbee..2248821 100644 --- a/arch/arm/mach-shmobile/setup-sh73a0.c +++ b/arch/arm/mach-shmobile/setup-sh73a0.c @@ -32,14 +32,16 @@ #include <linux/sh_timer.h> #include <linux/platform_data/sh_ipmmu.h> #include <linux/platform_data/irq-renesas-intc-irqpin.h> -#include <mach/sh73a0.h> + #include <asm/mach-types.h> #include <asm/mach/map.h> #include <asm/mach/arch.h> #include <asm/mach/time.h> + #include "common.h" #include "dma-register.h" #include "irqs.h" +#include "sh73a0.h" static struct map_desc sh73a0_io_desc[] __initdata = { /* create a 1:1 entity map for 0xe6xxxxxx diff --git a/arch/arm/mach-shmobile/sh73a0.h b/arch/arm/mach-shmobile/sh73a0.h new file mode 100644 index 0000000..359b582 --- /dev/null +++ b/arch/arm/mach-shmobile/sh73a0.h @@ -0,0 +1,91 @@ +#ifndef __ASM_SH73A0_H__ +#define __ASM_SH73A0_H__ + +/* DMA slave IDs */ +enum { + SHDMA_SLAVE_INVALID, + SHDMA_SLAVE_SCIF0_TX, + SHDMA_SLAVE_SCIF0_RX, + SHDMA_SLAVE_SCIF1_TX, + SHDMA_SLAVE_SCIF1_RX, + SHDMA_SLAVE_SCIF2_TX, + SHDMA_SLAVE_SCIF2_RX, + SHDMA_SLAVE_SCIF3_TX, + SHDMA_SLAVE_SCIF3_RX, + SHDMA_SLAVE_SCIF4_TX, + SHDMA_SLAVE_SCIF4_RX, + SHDMA_SLAVE_SCIF5_TX, + SHDMA_SLAVE_SCIF5_RX, + SHDMA_SLAVE_SCIF6_TX, + SHDMA_SLAVE_SCIF6_RX, + SHDMA_SLAVE_SCIF7_TX, + SHDMA_SLAVE_SCIF7_RX, + SHDMA_SLAVE_SCIF8_TX, + SHDMA_SLAVE_SCIF8_RX, + SHDMA_SLAVE_SDHI0_TX, + SHDMA_SLAVE_SDHI0_RX, + SHDMA_SLAVE_SDHI1_TX, + SHDMA_SLAVE_SDHI1_RX, + SHDMA_SLAVE_SDHI2_TX, + SHDMA_SLAVE_SDHI2_RX, + SHDMA_SLAVE_MMCIF_TX, + SHDMA_SLAVE_MMCIF_RX, + SHDMA_SLAVE_FSI2A_TX, + SHDMA_SLAVE_FSI2A_RX, + SHDMA_SLAVE_FSI2B_TX, + SHDMA_SLAVE_FSI2B_RX, + SHDMA_SLAVE_FSI2C_TX, + SHDMA_SLAVE_FSI2C_RX, + SHDMA_SLAVE_FSI2D_RX, +}; + +/* + * SH73A0 IRQ LOCATION TABLE + * + * 416 ----------------------------------------- + * IRQ0-IRQ15 + * 431 ----------------------------------------- + * ... + * 448 ----------------------------------------- + * sh73a0-intcs + * sh73a0-intca-irq-pins + * 680 ----------------------------------------- + * ... + * 700 ----------------------------------------- + * sh73a0-pint0 + * 731 ----------------------------------------- + * 732 ----------------------------------------- + * sh73a0-pint1 + * 739 ----------------------------------------- + * ... + * 800 ----------------------------------------- + * IRQ16-IRQ31 + * 815 ----------------------------------------- + * ... + * 928 ----------------------------------------- + * sh73a0-intca-irq-pins + * 943 ----------------------------------------- + */ + +/* PINT interrupts are located at Linux IRQ 700 and up */ +#define SH73A0_PINT0_IRQ(irq) ((irq) + 700) +#define SH73A0_PINT1_IRQ(irq) ((irq) + 732) + +extern void sh73a0_init_delay(void); +extern void sh73a0_init_irq(void); +extern void sh73a0_init_irq_dt(void); +extern void sh73a0_map_io(void); +extern void sh73a0_earlytimer_init(void); +extern void sh73a0_add_early_devices(void); +extern void sh73a0_add_standard_devices(void); +extern void sh73a0_add_standard_devices_dt(void); +extern void sh73a0_clock_init(void); +extern void sh73a0_pinmux_init(void); +extern void sh73a0_pm_init(void); +extern struct clk sh73a0_extal1_clk; +extern struct clk sh73a0_extal2_clk; +extern struct clk sh73a0_extcki_clk; +extern struct clk sh73a0_extalr_clk; +extern struct smp_operations sh73a0_smp_ops; + +#endif /* __ASM_SH73A0_H__ */ diff --git a/arch/arm/mach-shmobile/smp-sh73a0.c b/arch/arm/mach-shmobile/smp-sh73a0.c index bf4aff9..22d8f87 100644 --- a/arch/arm/mach-shmobile/smp-sh73a0.c +++ b/arch/arm/mach-shmobile/smp-sh73a0.c @@ -22,10 +22,12 @@ #include <linux/smp.h> #include <linux/io.h> #include <linux/delay.h> -#include <mach/sh73a0.h> + #include <asm/smp_plat.h> #include <asm/smp_twd.h> + #include "common.h" +#include "sh73a0.h" #define WUPCR IOMEM(0xe6151010) #define SRESCR IOMEM(0xe6151018) -- 2.0.0.rc2 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 7/7] ARM: shmobile: Move sh7372.h 2014-07-01 0:28 ` Simon Horman @ 2014-07-01 0:28 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-07-01 0:28 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> Change location of sh7372.h so it can be included as "sh7372.h" instead of the old style <mach/sh7372.h> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/board-mackerel.c | 4 +- arch/arm/mach-shmobile/include/mach/sh7372.h | 84 ---------------------------- arch/arm/mach-shmobile/pm-sh7372.c | 4 +- arch/arm/mach-shmobile/setup-sh7372.c | 4 +- arch/arm/mach-shmobile/sh7372.h | 84 ++++++++++++++++++++++++++++ 5 files changed, 93 insertions(+), 87 deletions(-) delete mode 100644 arch/arm/mach-shmobile/include/mach/sh7372.h create mode 100644 arch/arm/mach-shmobile/sh7372.h diff --git a/arch/arm/mach-shmobile/board-mackerel.c b/arch/arm/mach-shmobile/board-mackerel.c index 0ece865..304b76f 100644 --- a/arch/arm/mach-shmobile/board-mackerel.c +++ b/arch/arm/mach-shmobile/board-mackerel.c @@ -51,6 +51,7 @@ #include <linux/tca6416_keypad.h> #include <linux/usb/renesas_usbhs.h> #include <linux/dma-mapping.h> + #include <video/sh_mobile_hdmi.h> #include <video/sh_mobile_lcdc.h> #include <media/sh_mobile_ceu.h> @@ -58,13 +59,14 @@ #include <media/soc_camera_platform.h> #include <sound/sh_fsi.h> #include <sound/simple_card.h> -#include <mach/sh7372.h> #include <asm/mach/arch.h> #include <asm/mach-types.h> + #include "common.h" #include "irqs.h" #include "pm-rmobile.h" #include "sh-gpio.h" +#include "sh7372.h" /* * Address Interface BusWidth note diff --git a/arch/arm/mach-shmobile/include/mach/sh7372.h b/arch/arm/mach-shmobile/include/mach/sh7372.h deleted file mode 100644 index 4ad960d..0000000 --- a/arch/arm/mach-shmobile/include/mach/sh7372.h +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright (C) 2010 Renesas Solutions Corp. - * - * Kuninori Morimoto <morimoto.kuninori@renesas.com> - * - * This file is subject to the terms and conditions of the GNU General Public - * License. See the file "COPYING" in the main directory of this archive - * for more details. - */ - -#ifndef __ASM_SH7372_H__ -#define __ASM_SH7372_H__ - -/* DMA slave IDs */ -enum { - SHDMA_SLAVE_INVALID, - SHDMA_SLAVE_SCIF0_TX, - SHDMA_SLAVE_SCIF0_RX, - SHDMA_SLAVE_SCIF1_TX, - SHDMA_SLAVE_SCIF1_RX, - SHDMA_SLAVE_SCIF2_TX, - SHDMA_SLAVE_SCIF2_RX, - SHDMA_SLAVE_SCIF3_TX, - SHDMA_SLAVE_SCIF3_RX, - SHDMA_SLAVE_SCIF4_TX, - SHDMA_SLAVE_SCIF4_RX, - SHDMA_SLAVE_SCIF5_TX, - SHDMA_SLAVE_SCIF5_RX, - SHDMA_SLAVE_SCIF6_TX, - SHDMA_SLAVE_SCIF6_RX, - SHDMA_SLAVE_FLCTL0_TX, - SHDMA_SLAVE_FLCTL0_RX, - SHDMA_SLAVE_FLCTL1_TX, - SHDMA_SLAVE_FLCTL1_RX, - SHDMA_SLAVE_SDHI0_RX, - SHDMA_SLAVE_SDHI0_TX, - SHDMA_SLAVE_SDHI1_RX, - SHDMA_SLAVE_SDHI1_TX, - SHDMA_SLAVE_SDHI2_RX, - SHDMA_SLAVE_SDHI2_TX, - SHDMA_SLAVE_FSIA_RX, - SHDMA_SLAVE_FSIA_TX, - SHDMA_SLAVE_MMCIF_RX, - SHDMA_SLAVE_MMCIF_TX, - SHDMA_SLAVE_USB0_TX, - SHDMA_SLAVE_USB0_RX, - SHDMA_SLAVE_USB1_TX, - SHDMA_SLAVE_USB1_RX, -}; - -extern struct clk sh7372_extal1_clk; -extern struct clk sh7372_extal2_clk; -extern struct clk sh7372_dv_clki_clk; -extern struct clk sh7372_dv_clki_div2_clk; -extern struct clk sh7372_pllc2_clk; - -extern void sh7372_init_irq(void); -extern void sh7372_map_io(void); -extern void sh7372_earlytimer_init(void); -extern void sh7372_add_early_devices(void); -extern void sh7372_add_standard_devices(void); -extern void sh7372_add_early_devices_dt(void); -extern void sh7372_add_standard_devices_dt(void); -extern void sh7372_clock_init(void); -extern void sh7372_pinmux_init(void); -extern void sh7372_pm_init(void); -extern void sh7372_resume_core_standby_sysc(void); -extern int sh7372_do_idle_sysc(unsigned long sleep_mode); -extern void sh7372_intcs_suspend(void); -extern void sh7372_intcs_resume(void); -extern void sh7372_intca_suspend(void); -extern void sh7372_intca_resume(void); - -extern unsigned long sh7372_cpu_resume; - -#ifdef CONFIG_PM -extern void __init sh7372_init_pm_domains(void); -#else -static inline void sh7372_init_pm_domains(void) {} -#endif - -extern void __init sh7372_pm_init_late(void); - -#endif /* __ASM_SH7372_H__ */ diff --git a/arch/arm/mach-shmobile/pm-sh7372.c b/arch/arm/mach-shmobile/pm-sh7372.c index 7ef9a01..7e5c267 100644 --- a/arch/arm/mach-shmobile/pm-sh7372.c +++ b/arch/arm/mach-shmobile/pm-sh7372.c @@ -21,13 +21,15 @@ #include <linux/irq.h> #include <linux/bitrev.h> #include <linux/console.h> + #include <asm/cpuidle.h> #include <asm/io.h> #include <asm/tlbflush.h> #include <asm/suspend.h> -#include <mach/sh7372.h> + #include "common.h" #include "pm-rmobile.h" +#include "sh7372.h" /* DBG */ #define DBGREG1 IOMEM(0xe6100020) diff --git a/arch/arm/mach-shmobile/setup-sh7372.c b/arch/arm/mach-shmobile/setup-sh7372.c index 5571f86..9cdfcdfd 100644 --- a/arch/arm/mach-shmobile/setup-sh7372.c +++ b/arch/arm/mach-shmobile/setup-sh7372.c @@ -33,15 +33,17 @@ #include <linux/pm_domain.h> #include <linux/dma-mapping.h> #include <linux/platform_data/sh_ipmmu.h> -#include <mach/sh7372.h> + #include <asm/mach/map.h> #include <asm/mach-types.h> #include <asm/mach/arch.h> #include <asm/mach/time.h> + #include "common.h" #include "dma-register.h" #include "irqs.h" #include "pm-rmobile.h" +#include "sh7372.h" static struct map_desc sh7372_io_desc[] __initdata = { /* create a 1:1 entity map for 0xe6xxxxxx diff --git a/arch/arm/mach-shmobile/sh7372.h b/arch/arm/mach-shmobile/sh7372.h new file mode 100644 index 0000000..4ad960d --- /dev/null +++ b/arch/arm/mach-shmobile/sh7372.h @@ -0,0 +1,84 @@ +/* + * Copyright (C) 2010 Renesas Solutions Corp. + * + * Kuninori Morimoto <morimoto.kuninori@renesas.com> + * + * This file is subject to the terms and conditions of the GNU General Public + * License. See the file "COPYING" in the main directory of this archive + * for more details. + */ + +#ifndef __ASM_SH7372_H__ +#define __ASM_SH7372_H__ + +/* DMA slave IDs */ +enum { + SHDMA_SLAVE_INVALID, + SHDMA_SLAVE_SCIF0_TX, + SHDMA_SLAVE_SCIF0_RX, + SHDMA_SLAVE_SCIF1_TX, + SHDMA_SLAVE_SCIF1_RX, + SHDMA_SLAVE_SCIF2_TX, + SHDMA_SLAVE_SCIF2_RX, + SHDMA_SLAVE_SCIF3_TX, + SHDMA_SLAVE_SCIF3_RX, + SHDMA_SLAVE_SCIF4_TX, + SHDMA_SLAVE_SCIF4_RX, + SHDMA_SLAVE_SCIF5_TX, + SHDMA_SLAVE_SCIF5_RX, + SHDMA_SLAVE_SCIF6_TX, + SHDMA_SLAVE_SCIF6_RX, + SHDMA_SLAVE_FLCTL0_TX, + SHDMA_SLAVE_FLCTL0_RX, + SHDMA_SLAVE_FLCTL1_TX, + SHDMA_SLAVE_FLCTL1_RX, + SHDMA_SLAVE_SDHI0_RX, + SHDMA_SLAVE_SDHI0_TX, + SHDMA_SLAVE_SDHI1_RX, + SHDMA_SLAVE_SDHI1_TX, + SHDMA_SLAVE_SDHI2_RX, + SHDMA_SLAVE_SDHI2_TX, + SHDMA_SLAVE_FSIA_RX, + SHDMA_SLAVE_FSIA_TX, + SHDMA_SLAVE_MMCIF_RX, + SHDMA_SLAVE_MMCIF_TX, + SHDMA_SLAVE_USB0_TX, + SHDMA_SLAVE_USB0_RX, + SHDMA_SLAVE_USB1_TX, + SHDMA_SLAVE_USB1_RX, +}; + +extern struct clk sh7372_extal1_clk; +extern struct clk sh7372_extal2_clk; +extern struct clk sh7372_dv_clki_clk; +extern struct clk sh7372_dv_clki_div2_clk; +extern struct clk sh7372_pllc2_clk; + +extern void sh7372_init_irq(void); +extern void sh7372_map_io(void); +extern void sh7372_earlytimer_init(void); +extern void sh7372_add_early_devices(void); +extern void sh7372_add_standard_devices(void); +extern void sh7372_add_early_devices_dt(void); +extern void sh7372_add_standard_devices_dt(void); +extern void sh7372_clock_init(void); +extern void sh7372_pinmux_init(void); +extern void sh7372_pm_init(void); +extern void sh7372_resume_core_standby_sysc(void); +extern int sh7372_do_idle_sysc(unsigned long sleep_mode); +extern void sh7372_intcs_suspend(void); +extern void sh7372_intcs_resume(void); +extern void sh7372_intca_suspend(void); +extern void sh7372_intca_resume(void); + +extern unsigned long sh7372_cpu_resume; + +#ifdef CONFIG_PM +extern void __init sh7372_init_pm_domains(void); +#else +static inline void sh7372_init_pm_domains(void) {} +#endif + +extern void __init sh7372_pm_init_late(void); + +#endif /* __ASM_SH7372_H__ */ -- 2.0.0.rc2 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 7/7] ARM: shmobile: Move sh7372.h @ 2014-07-01 0:28 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-07-01 0:28 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> Change location of sh7372.h so it can be included as "sh7372.h" instead of the old style <mach/sh7372.h> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/board-mackerel.c | 4 +- arch/arm/mach-shmobile/include/mach/sh7372.h | 84 ---------------------------- arch/arm/mach-shmobile/pm-sh7372.c | 4 +- arch/arm/mach-shmobile/setup-sh7372.c | 4 +- arch/arm/mach-shmobile/sh7372.h | 84 ++++++++++++++++++++++++++++ 5 files changed, 93 insertions(+), 87 deletions(-) delete mode 100644 arch/arm/mach-shmobile/include/mach/sh7372.h create mode 100644 arch/arm/mach-shmobile/sh7372.h diff --git a/arch/arm/mach-shmobile/board-mackerel.c b/arch/arm/mach-shmobile/board-mackerel.c index 0ece865..304b76f 100644 --- a/arch/arm/mach-shmobile/board-mackerel.c +++ b/arch/arm/mach-shmobile/board-mackerel.c @@ -51,6 +51,7 @@ #include <linux/tca6416_keypad.h> #include <linux/usb/renesas_usbhs.h> #include <linux/dma-mapping.h> + #include <video/sh_mobile_hdmi.h> #include <video/sh_mobile_lcdc.h> #include <media/sh_mobile_ceu.h> @@ -58,13 +59,14 @@ #include <media/soc_camera_platform.h> #include <sound/sh_fsi.h> #include <sound/simple_card.h> -#include <mach/sh7372.h> #include <asm/mach/arch.h> #include <asm/mach-types.h> + #include "common.h" #include "irqs.h" #include "pm-rmobile.h" #include "sh-gpio.h" +#include "sh7372.h" /* * Address Interface BusWidth note diff --git a/arch/arm/mach-shmobile/include/mach/sh7372.h b/arch/arm/mach-shmobile/include/mach/sh7372.h deleted file mode 100644 index 4ad960d..0000000 --- a/arch/arm/mach-shmobile/include/mach/sh7372.h +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright (C) 2010 Renesas Solutions Corp. - * - * Kuninori Morimoto <morimoto.kuninori@renesas.com> - * - * This file is subject to the terms and conditions of the GNU General Public - * License. See the file "COPYING" in the main directory of this archive - * for more details. - */ - -#ifndef __ASM_SH7372_H__ -#define __ASM_SH7372_H__ - -/* DMA slave IDs */ -enum { - SHDMA_SLAVE_INVALID, - SHDMA_SLAVE_SCIF0_TX, - SHDMA_SLAVE_SCIF0_RX, - SHDMA_SLAVE_SCIF1_TX, - SHDMA_SLAVE_SCIF1_RX, - SHDMA_SLAVE_SCIF2_TX, - SHDMA_SLAVE_SCIF2_RX, - SHDMA_SLAVE_SCIF3_TX, - SHDMA_SLAVE_SCIF3_RX, - SHDMA_SLAVE_SCIF4_TX, - SHDMA_SLAVE_SCIF4_RX, - SHDMA_SLAVE_SCIF5_TX, - SHDMA_SLAVE_SCIF5_RX, - SHDMA_SLAVE_SCIF6_TX, - SHDMA_SLAVE_SCIF6_RX, - SHDMA_SLAVE_FLCTL0_TX, - SHDMA_SLAVE_FLCTL0_RX, - SHDMA_SLAVE_FLCTL1_TX, - SHDMA_SLAVE_FLCTL1_RX, - SHDMA_SLAVE_SDHI0_RX, - SHDMA_SLAVE_SDHI0_TX, - SHDMA_SLAVE_SDHI1_RX, - SHDMA_SLAVE_SDHI1_TX, - SHDMA_SLAVE_SDHI2_RX, - SHDMA_SLAVE_SDHI2_TX, - SHDMA_SLAVE_FSIA_RX, - SHDMA_SLAVE_FSIA_TX, - SHDMA_SLAVE_MMCIF_RX, - SHDMA_SLAVE_MMCIF_TX, - SHDMA_SLAVE_USB0_TX, - SHDMA_SLAVE_USB0_RX, - SHDMA_SLAVE_USB1_TX, - SHDMA_SLAVE_USB1_RX, -}; - -extern struct clk sh7372_extal1_clk; -extern struct clk sh7372_extal2_clk; -extern struct clk sh7372_dv_clki_clk; -extern struct clk sh7372_dv_clki_div2_clk; -extern struct clk sh7372_pllc2_clk; - -extern void sh7372_init_irq(void); -extern void sh7372_map_io(void); -extern void sh7372_earlytimer_init(void); -extern void sh7372_add_early_devices(void); -extern void sh7372_add_standard_devices(void); -extern void sh7372_add_early_devices_dt(void); -extern void sh7372_add_standard_devices_dt(void); -extern void sh7372_clock_init(void); -extern void sh7372_pinmux_init(void); -extern void sh7372_pm_init(void); -extern void sh7372_resume_core_standby_sysc(void); -extern int sh7372_do_idle_sysc(unsigned long sleep_mode); -extern void sh7372_intcs_suspend(void); -extern void sh7372_intcs_resume(void); -extern void sh7372_intca_suspend(void); -extern void sh7372_intca_resume(void); - -extern unsigned long sh7372_cpu_resume; - -#ifdef CONFIG_PM -extern void __init sh7372_init_pm_domains(void); -#else -static inline void sh7372_init_pm_domains(void) {} -#endif - -extern void __init sh7372_pm_init_late(void); - -#endif /* __ASM_SH7372_H__ */ diff --git a/arch/arm/mach-shmobile/pm-sh7372.c b/arch/arm/mach-shmobile/pm-sh7372.c index 7ef9a01..7e5c267 100644 --- a/arch/arm/mach-shmobile/pm-sh7372.c +++ b/arch/arm/mach-shmobile/pm-sh7372.c @@ -21,13 +21,15 @@ #include <linux/irq.h> #include <linux/bitrev.h> #include <linux/console.h> + #include <asm/cpuidle.h> #include <asm/io.h> #include <asm/tlbflush.h> #include <asm/suspend.h> -#include <mach/sh7372.h> + #include "common.h" #include "pm-rmobile.h" +#include "sh7372.h" /* DBG */ #define DBGREG1 IOMEM(0xe6100020) diff --git a/arch/arm/mach-shmobile/setup-sh7372.c b/arch/arm/mach-shmobile/setup-sh7372.c index 5571f86..9cdfcdfd 100644 --- a/arch/arm/mach-shmobile/setup-sh7372.c +++ b/arch/arm/mach-shmobile/setup-sh7372.c @@ -33,15 +33,17 @@ #include <linux/pm_domain.h> #include <linux/dma-mapping.h> #include <linux/platform_data/sh_ipmmu.h> -#include <mach/sh7372.h> + #include <asm/mach/map.h> #include <asm/mach-types.h> #include <asm/mach/arch.h> #include <asm/mach/time.h> + #include "common.h" #include "dma-register.h" #include "irqs.h" #include "pm-rmobile.h" +#include "sh7372.h" static struct map_desc sh7372_io_desc[] __initdata = { /* create a 1:1 entity map for 0xe6xxxxxx diff --git a/arch/arm/mach-shmobile/sh7372.h b/arch/arm/mach-shmobile/sh7372.h new file mode 100644 index 0000000..4ad960d --- /dev/null +++ b/arch/arm/mach-shmobile/sh7372.h @@ -0,0 +1,84 @@ +/* + * Copyright (C) 2010 Renesas Solutions Corp. + * + * Kuninori Morimoto <morimoto.kuninori@renesas.com> + * + * This file is subject to the terms and conditions of the GNU General Public + * License. See the file "COPYING" in the main directory of this archive + * for more details. + */ + +#ifndef __ASM_SH7372_H__ +#define __ASM_SH7372_H__ + +/* DMA slave IDs */ +enum { + SHDMA_SLAVE_INVALID, + SHDMA_SLAVE_SCIF0_TX, + SHDMA_SLAVE_SCIF0_RX, + SHDMA_SLAVE_SCIF1_TX, + SHDMA_SLAVE_SCIF1_RX, + SHDMA_SLAVE_SCIF2_TX, + SHDMA_SLAVE_SCIF2_RX, + SHDMA_SLAVE_SCIF3_TX, + SHDMA_SLAVE_SCIF3_RX, + SHDMA_SLAVE_SCIF4_TX, + SHDMA_SLAVE_SCIF4_RX, + SHDMA_SLAVE_SCIF5_TX, + SHDMA_SLAVE_SCIF5_RX, + SHDMA_SLAVE_SCIF6_TX, + SHDMA_SLAVE_SCIF6_RX, + SHDMA_SLAVE_FLCTL0_TX, + SHDMA_SLAVE_FLCTL0_RX, + SHDMA_SLAVE_FLCTL1_TX, + SHDMA_SLAVE_FLCTL1_RX, + SHDMA_SLAVE_SDHI0_RX, + SHDMA_SLAVE_SDHI0_TX, + SHDMA_SLAVE_SDHI1_RX, + SHDMA_SLAVE_SDHI1_TX, + SHDMA_SLAVE_SDHI2_RX, + SHDMA_SLAVE_SDHI2_TX, + SHDMA_SLAVE_FSIA_RX, + SHDMA_SLAVE_FSIA_TX, + SHDMA_SLAVE_MMCIF_RX, + SHDMA_SLAVE_MMCIF_TX, + SHDMA_SLAVE_USB0_TX, + SHDMA_SLAVE_USB0_RX, + SHDMA_SLAVE_USB1_TX, + SHDMA_SLAVE_USB1_RX, +}; + +extern struct clk sh7372_extal1_clk; +extern struct clk sh7372_extal2_clk; +extern struct clk sh7372_dv_clki_clk; +extern struct clk sh7372_dv_clki_div2_clk; +extern struct clk sh7372_pllc2_clk; + +extern void sh7372_init_irq(void); +extern void sh7372_map_io(void); +extern void sh7372_earlytimer_init(void); +extern void sh7372_add_early_devices(void); +extern void sh7372_add_standard_devices(void); +extern void sh7372_add_early_devices_dt(void); +extern void sh7372_add_standard_devices_dt(void); +extern void sh7372_clock_init(void); +extern void sh7372_pinmux_init(void); +extern void sh7372_pm_init(void); +extern void sh7372_resume_core_standby_sysc(void); +extern int sh7372_do_idle_sysc(unsigned long sleep_mode); +extern void sh7372_intcs_suspend(void); +extern void sh7372_intcs_resume(void); +extern void sh7372_intca_suspend(void); +extern void sh7372_intca_resume(void); + +extern unsigned long sh7372_cpu_resume; + +#ifdef CONFIG_PM +extern void __init sh7372_init_pm_domains(void); +#else +static inline void sh7372_init_pm_domains(void) {} +#endif + +extern void __init sh7372_pm_init_late(void); + +#endif /* __ASM_SH7372_H__ */ -- 2.0.0.rc2 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* Re: [GIT PULL] Second Round of Renesas ARM Based SoC soc-cleanup Updates for v3.17 2014-07-01 0:28 ` Simon Horman @ 2014-07-12 16:37 ` Olof Johansson -1 siblings, 0 replies; 776+ messages in thread From: Olof Johansson @ 2014-07-12 16:37 UTC (permalink / raw) To: linux-arm-kernel On Tue, Jul 01, 2014 at 09:28:37AM +0900, Simon Horman wrote: > Hi Olof, Hi Kevin, Hi Arnd, > > Please consider these Second Round of Renesas ARM Based SoC soc-cleanup Updates for v3.17. > > This pull request is based on the previous round of > such requests, tagged as renesas-soc-cleanup-for-v3.17, > which I have already sent a pull-request for. > > This conflicts with other changes made to pm-r8a7790.c in the soc branch > of the renesas tree. A resolution can be found in the > renesas-next-v3.16-rc1-20140628 tag of the next branch of that tree. > > In short, the resulting includes should be: > > #include <linux/kernel.h> > #include <linux/smp.h> > #include <asm/io.h> > #include "common.h" > #include "pm-rcar.h" > #include "r8a7790.h" > > > The following changes since commit d83fa4c9c27c4d8612e39e99506b5420fa05b58b: > > ARM: shmobile: Remove unused r8a7790_init_early() (2014-06-17 19:50:35 +0900) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git renesas-soc-cleanup2-for-v3.17 > > for you to fetch changes up to 113522ee3034427472bcb4b8665833719809b31a: > > ARM: shmobile: Move sh7372.h (2014-06-25 16:50:00 +0900) > > ---------------------------------------------------------------- > Second Round of Renesas ARM Based SoC soc-cleanup Updates for v3.17 > > * Move SOC-specific headers out of mach directory. > This is part of a multi-stage effort to move headers > out of that directory. Merged, but I didn't notice any conflict here. I might have resolved it in the past already. -Olof ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC soc-cleanup Updates for v3.17 @ 2014-07-12 16:37 ` Olof Johansson 0 siblings, 0 replies; 776+ messages in thread From: Olof Johansson @ 2014-07-12 16:37 UTC (permalink / raw) To: linux-arm-kernel On Tue, Jul 01, 2014 at 09:28:37AM +0900, Simon Horman wrote: > Hi Olof, Hi Kevin, Hi Arnd, > > Please consider these Second Round of Renesas ARM Based SoC soc-cleanup Updates for v3.17. > > This pull request is based on the previous round of > such requests, tagged as renesas-soc-cleanup-for-v3.17, > which I have already sent a pull-request for. > > This conflicts with other changes made to pm-r8a7790.c in the soc branch > of the renesas tree. A resolution can be found in the > renesas-next-v3.16-rc1-20140628 tag of the next branch of that tree. > > In short, the resulting includes should be: > > #include <linux/kernel.h> > #include <linux/smp.h> > #include <asm/io.h> > #include "common.h" > #include "pm-rcar.h" > #include "r8a7790.h" > > > The following changes since commit d83fa4c9c27c4d8612e39e99506b5420fa05b58b: > > ARM: shmobile: Remove unused r8a7790_init_early() (2014-06-17 19:50:35 +0900) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git renesas-soc-cleanup2-for-v3.17 > > for you to fetch changes up to 113522ee3034427472bcb4b8665833719809b31a: > > ARM: shmobile: Move sh7372.h (2014-06-25 16:50:00 +0900) > > ---------------------------------------------------------------- > Second Round of Renesas ARM Based SoC soc-cleanup Updates for v3.17 > > * Move SOC-specific headers out of mach directory. > This is part of a multi-stage effort to move headers > out of that directory. Merged, but I didn't notice any conflict here. I might have resolved it in the past already. -Olof ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC Updates for v3.17 @ 2014-07-01 0:28 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-07-01 0:28 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Hi Kevin, Hi Arnd, Please consider these Second Round of Renesas ARM Based SoC Updates for v3.17. This pull request is based on the previous round of such requests, tagged as renesas-soc-for-v3.17, which I have already sent a pull-request for. This conflicts with other changes made to pm-r8a7790.c in the soc branch of the renesas tree. A resolution can be found in the renesas-next-v3.16-rc1-20140628 tag of the next branch of that tree. In short, the resulting includes should be: #include <linux/kernel.h> #include <linux/smp.h> #include <asm/io.h> #include "common.h" #include "pm-rcar.h" #include "r8a7790.h" The following changes since commit 3ed66ec5ced8b801cb851b2b8548301df94f8f54: ARM: shmobile: Remove ARCH_HAS_CPUFREQ config for shmobile (2014-06-23 09:53:55 +0900) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git renesas-soc2-for-v3.17 for you to fetch changes up to bfe4cfa8ae21628267f2b879b4396ee17ea4fd3a: ARM: shmobile: Allow r8a7791 to build non-SMP APMU code (2014-06-26 16:01:34 +0900) ---------------------------------------------------------------- Second Round of Renesas ARM Based SoC Updates for v3.17 * Suspend on non-SMP update for r8a7790 * Move r8a7791.h out of mach directory. This is part of a multi-stage effort to move headers out of that directory. ---------------------------------------------------------------- Geert Uytterhoeven (1): ARM: shmobile: Move r8a7791.h Magnus Damm (7): ARM: shmobile: Allow use of boot code for non-SMP case ARM: shmobile: Adjust APMU code to build for non-SMP ARM: shmobile: Use __init for APMU suspend init function ARM: shmobile: Move r8a7790 reset code to pm-r8a7790.c ARM: shmobile: Allow r8a7790 to build non-SMP APMU code ARM: shmobile: Move r8a7791 reset code to pm-r8a7791.c ARM: shmobile: Allow r8a7791 to build non-SMP APMU code arch/arm/mach-shmobile/Makefile | 21 ++++++----- arch/arm/mach-shmobile/board-koelsch-reference.c | 4 ++- arch/arm/mach-shmobile/board-koelsch.c | 4 ++- arch/arm/mach-shmobile/headsmp.S | 13 ++++--- arch/arm/mach-shmobile/platsmp-apmu.c | 13 ++++--- arch/arm/mach-shmobile/pm-r8a7790.c | 41 ++++++++++++++++++++-- arch/arm/mach-shmobile/pm-r8a7791.c | 30 ++++++++++++++-- .../arm/mach-shmobile/{include/mach => }/r8a7791.h | 0 arch/arm/mach-shmobile/setup-r8a7791.c | 4 ++- arch/arm/mach-shmobile/smp-r8a7790.c | 31 ---------------- arch/arm/mach-shmobile/smp-r8a7791.c | 29 ++------------- 11 files changed, 108 insertions(+), 82 deletions(-) rename arch/arm/mach-shmobile/{include/mach => }/r8a7791.h (100%) ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC Updates for v3.17 @ 2014-07-01 0:28 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-07-01 0:28 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Hi Kevin, Hi Arnd, Please consider these Second Round of Renesas ARM Based SoC Updates for v3.17. This pull request is based on the previous round of such requests, tagged as renesas-soc-for-v3.17, which I have already sent a pull-request for. This conflicts with other changes made to pm-r8a7790.c in the soc branch of the renesas tree. A resolution can be found in the renesas-next-v3.16-rc1-20140628 tag of the next branch of that tree. In short, the resulting includes should be: #include <linux/kernel.h> #include <linux/smp.h> #include <asm/io.h> #include "common.h" #include "pm-rcar.h" #include "r8a7790.h" The following changes since commit 3ed66ec5ced8b801cb851b2b8548301df94f8f54: ARM: shmobile: Remove ARCH_HAS_CPUFREQ config for shmobile (2014-06-23 09:53:55 +0900) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git renesas-soc2-for-v3.17 for you to fetch changes up to bfe4cfa8ae21628267f2b879b4396ee17ea4fd3a: ARM: shmobile: Allow r8a7791 to build non-SMP APMU code (2014-06-26 16:01:34 +0900) ---------------------------------------------------------------- Second Round of Renesas ARM Based SoC Updates for v3.17 * Suspend on non-SMP update for r8a7790 * Move r8a7791.h out of mach directory. This is part of a multi-stage effort to move headers out of that directory. ---------------------------------------------------------------- Geert Uytterhoeven (1): ARM: shmobile: Move r8a7791.h Magnus Damm (7): ARM: shmobile: Allow use of boot code for non-SMP case ARM: shmobile: Adjust APMU code to build for non-SMP ARM: shmobile: Use __init for APMU suspend init function ARM: shmobile: Move r8a7790 reset code to pm-r8a7790.c ARM: shmobile: Allow r8a7790 to build non-SMP APMU code ARM: shmobile: Move r8a7791 reset code to pm-r8a7791.c ARM: shmobile: Allow r8a7791 to build non-SMP APMU code arch/arm/mach-shmobile/Makefile | 21 ++++++----- arch/arm/mach-shmobile/board-koelsch-reference.c | 4 ++- arch/arm/mach-shmobile/board-koelsch.c | 4 ++- arch/arm/mach-shmobile/headsmp.S | 13 ++++--- arch/arm/mach-shmobile/platsmp-apmu.c | 13 ++++--- arch/arm/mach-shmobile/pm-r8a7790.c | 41 ++++++++++++++++++++-- arch/arm/mach-shmobile/pm-r8a7791.c | 30 ++++++++++++++-- .../arm/mach-shmobile/{include/mach => }/r8a7791.h | 0 arch/arm/mach-shmobile/setup-r8a7791.c | 4 ++- arch/arm/mach-shmobile/smp-r8a7790.c | 31 ---------------- arch/arm/mach-shmobile/smp-r8a7791.c | 29 ++------------- 11 files changed, 108 insertions(+), 82 deletions(-) rename arch/arm/mach-shmobile/{include/mach => }/r8a7791.h (100%) ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH 1/8] ARM: shmobile: Move r8a7791.h 2014-07-01 0:28 ` Simon Horman @ 2014-07-01 0:28 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-07-01 0:28 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> Change location of r8a7791.h so it can be included as "r8a7791.h" instead of the old style <mach/r8a7791.h> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/board-koelsch-reference.c | 4 +++- arch/arm/mach-shmobile/board-koelsch.c | 4 +++- arch/arm/mach-shmobile/include/mach/r8a7791.h | 11 ----------- arch/arm/mach-shmobile/pm-r8a7791.c | 6 ++++-- arch/arm/mach-shmobile/r8a7791.h | 11 +++++++++++ arch/arm/mach-shmobile/setup-r8a7791.c | 4 +++- arch/arm/mach-shmobile/smp-r8a7791.c | 4 +++- 7 files changed, 27 insertions(+), 17 deletions(-) delete mode 100644 arch/arm/mach-shmobile/include/mach/r8a7791.h create mode 100644 arch/arm/mach-shmobile/r8a7791.h diff --git a/arch/arm/mach-shmobile/board-koelsch-reference.c b/arch/arm/mach-shmobile/board-koelsch-reference.c index 1d3f67d..0b1fb23 100644 --- a/arch/arm/mach-shmobile/board-koelsch-reference.c +++ b/arch/arm/mach-shmobile/board-koelsch-reference.c @@ -23,11 +23,13 @@ #include <linux/kernel.h> #include <linux/of_platform.h> #include <linux/platform_data/rcar-du.h> -#include <mach/r8a7791.h> + #include <asm/mach/arch.h> + #include "clock.h" #include "common.h" #include "irqs.h" +#include "r8a7791.h" #include "rcar-gen2.h" /* DU */ diff --git a/arch/arm/mach-shmobile/board-koelsch.c b/arch/arm/mach-shmobile/board-koelsch.c index 0d44e7eb..e698b90 100644 --- a/arch/arm/mach-shmobile/board-koelsch.c +++ b/arch/arm/mach-shmobile/board-koelsch.c @@ -45,11 +45,13 @@ #include <linux/spi/flash.h> #include <linux/spi/rspi.h> #include <linux/spi/spi.h> -#include <mach/r8a7791.h> + #include <asm/mach-types.h> #include <asm/mach/arch.h> + #include "common.h" #include "irqs.h" +#include "r8a7791.h" #include "rcar-gen2.h" /* DU */ diff --git a/arch/arm/mach-shmobile/include/mach/r8a7791.h b/arch/arm/mach-shmobile/include/mach/r8a7791.h deleted file mode 100644 index 86eae7b..0000000 --- a/arch/arm/mach-shmobile/include/mach/r8a7791.h +++ /dev/null @@ -1,11 +0,0 @@ -#ifndef __ASM_R8A7791_H__ -#define __ASM_R8A7791_H__ - -void r8a7791_add_standard_devices(void); -void r8a7791_add_dt_devices(void); -void r8a7791_clock_init(void); -void r8a7791_pinmux_init(void); -void r8a7791_pm_init(void); -extern struct smp_operations r8a7791_smp_ops; - -#endif /* __ASM_R8A7791_H__ */ diff --git a/arch/arm/mach-shmobile/pm-r8a7791.c b/arch/arm/mach-shmobile/pm-r8a7791.c index 1519087..b7e6513 100644 --- a/arch/arm/mach-shmobile/pm-r8a7791.c +++ b/arch/arm/mach-shmobile/pm-r8a7791.c @@ -10,10 +10,12 @@ * for more details. */ -#include <asm/io.h> #include <linux/kernel.h> -#include <mach/r8a7791.h> + +#include <asm/io.h> + #include "pm-rcar.h" +#include "r8a7791.h" /* SYSC */ #define SYSCIER 0x0c diff --git a/arch/arm/mach-shmobile/r8a7791.h b/arch/arm/mach-shmobile/r8a7791.h new file mode 100644 index 0000000..86eae7b --- /dev/null +++ b/arch/arm/mach-shmobile/r8a7791.h @@ -0,0 +1,11 @@ +#ifndef __ASM_R8A7791_H__ +#define __ASM_R8A7791_H__ + +void r8a7791_add_standard_devices(void); +void r8a7791_add_dt_devices(void); +void r8a7791_clock_init(void); +void r8a7791_pinmux_init(void); +void r8a7791_pm_init(void); +extern struct smp_operations r8a7791_smp_ops; + +#endif /* __ASM_R8A7791_H__ */ diff --git a/arch/arm/mach-shmobile/setup-r8a7791.c b/arch/arm/mach-shmobile/setup-r8a7791.c index 7e970d0..8823324 100644 --- a/arch/arm/mach-shmobile/setup-r8a7791.c +++ b/arch/arm/mach-shmobile/setup-r8a7791.c @@ -26,10 +26,12 @@ #include <linux/platform_data/irq-renesas-irqc.h> #include <linux/serial_sci.h> #include <linux/sh_timer.h> -#include <mach/r8a7791.h> + #include <asm/mach/arch.h> + #include "common.h" #include "irqs.h" +#include "r8a7791.h" #include "rcar-gen2.h" static const struct resource pfc_resources[] __initconst = { diff --git a/arch/arm/mach-shmobile/smp-r8a7791.c b/arch/arm/mach-shmobile/smp-r8a7791.c index c6543b6..2482555 100644 --- a/arch/arm/mach-shmobile/smp-r8a7791.c +++ b/arch/arm/mach-shmobile/smp-r8a7791.c @@ -17,9 +17,11 @@ #include <linux/init.h> #include <linux/smp.h> #include <linux/io.h> + #include <asm/smp_plat.h> -#include <mach/r8a7791.h> + #include "common.h" +#include "r8a7791.h" #include "rcar-gen2.h" #define RST 0xe6160000 -- 2.0.0.rc2 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 1/8] ARM: shmobile: Move r8a7791.h @ 2014-07-01 0:28 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-07-01 0:28 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> Change location of r8a7791.h so it can be included as "r8a7791.h" instead of the old style <mach/r8a7791.h> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/board-koelsch-reference.c | 4 +++- arch/arm/mach-shmobile/board-koelsch.c | 4 +++- arch/arm/mach-shmobile/include/mach/r8a7791.h | 11 ----------- arch/arm/mach-shmobile/pm-r8a7791.c | 6 ++++-- arch/arm/mach-shmobile/r8a7791.h | 11 +++++++++++ arch/arm/mach-shmobile/setup-r8a7791.c | 4 +++- arch/arm/mach-shmobile/smp-r8a7791.c | 4 +++- 7 files changed, 27 insertions(+), 17 deletions(-) delete mode 100644 arch/arm/mach-shmobile/include/mach/r8a7791.h create mode 100644 arch/arm/mach-shmobile/r8a7791.h diff --git a/arch/arm/mach-shmobile/board-koelsch-reference.c b/arch/arm/mach-shmobile/board-koelsch-reference.c index 1d3f67d..0b1fb23 100644 --- a/arch/arm/mach-shmobile/board-koelsch-reference.c +++ b/arch/arm/mach-shmobile/board-koelsch-reference.c @@ -23,11 +23,13 @@ #include <linux/kernel.h> #include <linux/of_platform.h> #include <linux/platform_data/rcar-du.h> -#include <mach/r8a7791.h> + #include <asm/mach/arch.h> + #include "clock.h" #include "common.h" #include "irqs.h" +#include "r8a7791.h" #include "rcar-gen2.h" /* DU */ diff --git a/arch/arm/mach-shmobile/board-koelsch.c b/arch/arm/mach-shmobile/board-koelsch.c index 0d44e7eb..e698b90 100644 --- a/arch/arm/mach-shmobile/board-koelsch.c +++ b/arch/arm/mach-shmobile/board-koelsch.c @@ -45,11 +45,13 @@ #include <linux/spi/flash.h> #include <linux/spi/rspi.h> #include <linux/spi/spi.h> -#include <mach/r8a7791.h> + #include <asm/mach-types.h> #include <asm/mach/arch.h> + #include "common.h" #include "irqs.h" +#include "r8a7791.h" #include "rcar-gen2.h" /* DU */ diff --git a/arch/arm/mach-shmobile/include/mach/r8a7791.h b/arch/arm/mach-shmobile/include/mach/r8a7791.h deleted file mode 100644 index 86eae7b..0000000 --- a/arch/arm/mach-shmobile/include/mach/r8a7791.h +++ /dev/null @@ -1,11 +0,0 @@ -#ifndef __ASM_R8A7791_H__ -#define __ASM_R8A7791_H__ - -void r8a7791_add_standard_devices(void); -void r8a7791_add_dt_devices(void); -void r8a7791_clock_init(void); -void r8a7791_pinmux_init(void); -void r8a7791_pm_init(void); -extern struct smp_operations r8a7791_smp_ops; - -#endif /* __ASM_R8A7791_H__ */ diff --git a/arch/arm/mach-shmobile/pm-r8a7791.c b/arch/arm/mach-shmobile/pm-r8a7791.c index 1519087..b7e6513 100644 --- a/arch/arm/mach-shmobile/pm-r8a7791.c +++ b/arch/arm/mach-shmobile/pm-r8a7791.c @@ -10,10 +10,12 @@ * for more details. */ -#include <asm/io.h> #include <linux/kernel.h> -#include <mach/r8a7791.h> + +#include <asm/io.h> + #include "pm-rcar.h" +#include "r8a7791.h" /* SYSC */ #define SYSCIER 0x0c diff --git a/arch/arm/mach-shmobile/r8a7791.h b/arch/arm/mach-shmobile/r8a7791.h new file mode 100644 index 0000000..86eae7b --- /dev/null +++ b/arch/arm/mach-shmobile/r8a7791.h @@ -0,0 +1,11 @@ +#ifndef __ASM_R8A7791_H__ +#define __ASM_R8A7791_H__ + +void r8a7791_add_standard_devices(void); +void r8a7791_add_dt_devices(void); +void r8a7791_clock_init(void); +void r8a7791_pinmux_init(void); +void r8a7791_pm_init(void); +extern struct smp_operations r8a7791_smp_ops; + +#endif /* __ASM_R8A7791_H__ */ diff --git a/arch/arm/mach-shmobile/setup-r8a7791.c b/arch/arm/mach-shmobile/setup-r8a7791.c index 7e970d0..8823324 100644 --- a/arch/arm/mach-shmobile/setup-r8a7791.c +++ b/arch/arm/mach-shmobile/setup-r8a7791.c @@ -26,10 +26,12 @@ #include <linux/platform_data/irq-renesas-irqc.h> #include <linux/serial_sci.h> #include <linux/sh_timer.h> -#include <mach/r8a7791.h> + #include <asm/mach/arch.h> + #include "common.h" #include "irqs.h" +#include "r8a7791.h" #include "rcar-gen2.h" static const struct resource pfc_resources[] __initconst = { diff --git a/arch/arm/mach-shmobile/smp-r8a7791.c b/arch/arm/mach-shmobile/smp-r8a7791.c index c6543b6..2482555 100644 --- a/arch/arm/mach-shmobile/smp-r8a7791.c +++ b/arch/arm/mach-shmobile/smp-r8a7791.c @@ -17,9 +17,11 @@ #include <linux/init.h> #include <linux/smp.h> #include <linux/io.h> + #include <asm/smp_plat.h> -#include <mach/r8a7791.h> + #include "common.h" +#include "r8a7791.h" #include "rcar-gen2.h" #define RST 0xe6160000 -- 2.0.0.rc2 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 2/8] ARM: shmobile: Allow use of boot code for non-SMP case 2014-07-01 0:28 ` Simon Horman @ 2014-07-01 0:28 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-07-01 0:28 UTC (permalink / raw) To: linux-arm-kernel From: Magnus Damm <damm+renesas@opensource.se> Allow build of platsmp.c and headsmp.S even though SMP is disabled in the kernel configuration. With this in place it is possible to share the reset vector setup code with power management code that needs to be built even though SMP is disabled. Signed-off-by: Magnus Damm <damm+renesas@opensource.se> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/Makefile | 11 +++++++---- arch/arm/mach-shmobile/headsmp.S | 13 ++++++++----- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/arch/arm/mach-shmobile/Makefile b/arch/arm/mach-shmobile/Makefile index 9c0ad3e..279d3f3 100644 --- a/arch/arm/mach-shmobile/Makefile +++ b/arch/arm/mach-shmobile/Makefile @@ -34,17 +34,17 @@ obj-$(CONFIG_ARCH_R8A7791) += clock-r8a7791.o obj-$(CONFIG_ARCH_R7S72100) += clock-r7s72100.o endif +# CPU reset vector handling objects +cpu-y := platsmp.o headsmp.o + # SMP objects -smp-y := platsmp.o headsmp.o +smp-y := $(cpu-y) smp-$(CONFIG_ARCH_SH73A0) += smp-sh73a0.o headsmp-scu.o platsmp-scu.o smp-$(CONFIG_ARCH_R8A7779) += smp-r8a7779.o headsmp-scu.o platsmp-scu.o smp-$(CONFIG_ARCH_R8A7790) += smp-r8a7790.o platsmp-apmu.o smp-$(CONFIG_ARCH_R8A7791) += smp-r8a7791.o platsmp-apmu.o smp-$(CONFIG_ARCH_EMEV2) += smp-emev2.o headsmp-scu.o platsmp-scu.o -# IRQ objects -obj-$(CONFIG_ARCH_SH7372) += entry-intc.o - # PM objects obj-$(CONFIG_SUSPEND) += suspend.o obj-$(CONFIG_CPU_IDLE) += cpuidle.o @@ -55,6 +55,9 @@ obj-$(CONFIG_ARCH_R8A7779) += pm-r8a7779.o pm-rcar.o obj-$(CONFIG_ARCH_R8A7790) += pm-r8a7790.o pm-rcar.o obj-$(CONFIG_ARCH_R8A7791) += pm-r8a7791.o pm-rcar.o +# IRQ objects +obj-$(CONFIG_ARCH_SH7372) += entry-intc.o + # Board objects ifdef CONFIG_ARCH_SHMOBILE_MULTI obj-$(CONFIG_MACH_GENMAI) += board-genmai-reference.o diff --git a/arch/arm/mach-shmobile/headsmp.S b/arch/arm/mach-shmobile/headsmp.S index e5be5c8..faf8214 100644 --- a/arch/arm/mach-shmobile/headsmp.S +++ b/arch/arm/mach-shmobile/headsmp.S @@ -10,14 +10,17 @@ * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ -#include <linux/linkage.h> #include <linux/init.h> +#include <linux/linkage.h> +#include <linux/threads.h> #include <asm/memory.h> +#ifdef CONFIG_SMP ENTRY(shmobile_invalidate_start) bl v7_invalidate_l1 b secondary_startup ENDPROC(shmobile_invalidate_start) +#endif /* * Reset vector for secondary CPUs. @@ -68,7 +71,7 @@ shmobile_smp_boot_find_mpidr: shmobile_smp_boot_next: add r1, r1, #1 - cmp r1, #CONFIG_NR_CPUS + cmp r1, #NR_CPUS blo shmobile_smp_boot_find_mpidr b shmobile_smp_sleep @@ -85,10 +88,10 @@ ENDPROC(shmobile_smp_sleep) .globl shmobile_smp_mpidr shmobile_smp_mpidr: -1: .space CONFIG_NR_CPUS * 4 +1: .space NR_CPUS * 4 .globl shmobile_smp_fn shmobile_smp_fn: -2: .space CONFIG_NR_CPUS * 4 +2: .space NR_CPUS * 4 .globl shmobile_smp_arg shmobile_smp_arg: -3: .space CONFIG_NR_CPUS * 4 +3: .space NR_CPUS * 4 -- 2.0.0.rc2 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 2/8] ARM: shmobile: Allow use of boot code for non-SMP case @ 2014-07-01 0:28 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-07-01 0:28 UTC (permalink / raw) To: linux-arm-kernel From: Magnus Damm <damm+renesas@opensource.se> Allow build of platsmp.c and headsmp.S even though SMP is disabled in the kernel configuration. With this in place it is possible to share the reset vector setup code with power management code that needs to be built even though SMP is disabled. Signed-off-by: Magnus Damm <damm+renesas@opensource.se> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/Makefile | 11 +++++++---- arch/arm/mach-shmobile/headsmp.S | 13 ++++++++----- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/arch/arm/mach-shmobile/Makefile b/arch/arm/mach-shmobile/Makefile index 9c0ad3e..279d3f3 100644 --- a/arch/arm/mach-shmobile/Makefile +++ b/arch/arm/mach-shmobile/Makefile @@ -34,17 +34,17 @@ obj-$(CONFIG_ARCH_R8A7791) += clock-r8a7791.o obj-$(CONFIG_ARCH_R7S72100) += clock-r7s72100.o endif +# CPU reset vector handling objects +cpu-y := platsmp.o headsmp.o + # SMP objects -smp-y := platsmp.o headsmp.o +smp-y := $(cpu-y) smp-$(CONFIG_ARCH_SH73A0) += smp-sh73a0.o headsmp-scu.o platsmp-scu.o smp-$(CONFIG_ARCH_R8A7779) += smp-r8a7779.o headsmp-scu.o platsmp-scu.o smp-$(CONFIG_ARCH_R8A7790) += smp-r8a7790.o platsmp-apmu.o smp-$(CONFIG_ARCH_R8A7791) += smp-r8a7791.o platsmp-apmu.o smp-$(CONFIG_ARCH_EMEV2) += smp-emev2.o headsmp-scu.o platsmp-scu.o -# IRQ objects -obj-$(CONFIG_ARCH_SH7372) += entry-intc.o - # PM objects obj-$(CONFIG_SUSPEND) += suspend.o obj-$(CONFIG_CPU_IDLE) += cpuidle.o @@ -55,6 +55,9 @@ obj-$(CONFIG_ARCH_R8A7779) += pm-r8a7779.o pm-rcar.o obj-$(CONFIG_ARCH_R8A7790) += pm-r8a7790.o pm-rcar.o obj-$(CONFIG_ARCH_R8A7791) += pm-r8a7791.o pm-rcar.o +# IRQ objects +obj-$(CONFIG_ARCH_SH7372) += entry-intc.o + # Board objects ifdef CONFIG_ARCH_SHMOBILE_MULTI obj-$(CONFIG_MACH_GENMAI) += board-genmai-reference.o diff --git a/arch/arm/mach-shmobile/headsmp.S b/arch/arm/mach-shmobile/headsmp.S index e5be5c8..faf8214 100644 --- a/arch/arm/mach-shmobile/headsmp.S +++ b/arch/arm/mach-shmobile/headsmp.S @@ -10,14 +10,17 @@ * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ -#include <linux/linkage.h> #include <linux/init.h> +#include <linux/linkage.h> +#include <linux/threads.h> #include <asm/memory.h> +#ifdef CONFIG_SMP ENTRY(shmobile_invalidate_start) bl v7_invalidate_l1 b secondary_startup ENDPROC(shmobile_invalidate_start) +#endif /* * Reset vector for secondary CPUs. @@ -68,7 +71,7 @@ shmobile_smp_boot_find_mpidr: shmobile_smp_boot_next: add r1, r1, #1 - cmp r1, #CONFIG_NR_CPUS + cmp r1, #NR_CPUS blo shmobile_smp_boot_find_mpidr b shmobile_smp_sleep @@ -85,10 +88,10 @@ ENDPROC(shmobile_smp_sleep) .globl shmobile_smp_mpidr shmobile_smp_mpidr: -1: .space CONFIG_NR_CPUS * 4 +1: .space NR_CPUS * 4 .globl shmobile_smp_fn shmobile_smp_fn: -2: .space CONFIG_NR_CPUS * 4 +2: .space NR_CPUS * 4 .globl shmobile_smp_arg shmobile_smp_arg: -3: .space CONFIG_NR_CPUS * 4 +3: .space NR_CPUS * 4 -- 2.0.0.rc2 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 3/8] ARM: shmobile: Adjust APMU code to build for non-SMP 2014-07-01 0:28 ` Simon Horman @ 2014-07-01 0:28 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-07-01 0:28 UTC (permalink / raw) To: linux-arm-kernel From: Magnus Damm <damm+renesas@opensource.se> Adjust the APMU code to allow build when CONFIG_SMP=n. Signed-off-by: Magnus Damm <damm+renesas@opensource.se> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/platsmp-apmu.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/arch/arm/mach-shmobile/platsmp-apmu.c b/arch/arm/mach-shmobile/platsmp-apmu.c index 590e35c..ce07eb9 100644 --- a/arch/arm/mach-shmobile/platsmp-apmu.c +++ b/arch/arm/mach-shmobile/platsmp-apmu.c @@ -15,6 +15,7 @@ #include <linux/of_address.h> #include <linux/smp.h> #include <linux/suspend.h> +#include <linux/threads.h> #include <asm/cacheflush.h> #include <asm/cp15.h> #include <asm/proc-fns.h> @@ -25,13 +26,13 @@ static struct { void __iomem *iomem; int bit; -} apmu_cpus[CONFIG_NR_CPUS]; +} apmu_cpus[NR_CPUS]; #define WUPCR_OFFS 0x10 #define PSTR_OFFS 0x40 #define CPUNCR_OFFS(n) (0x100 + (0x10 * (n))) -static int apmu_power_on(void __iomem *p, int bit) +static int __maybe_unused apmu_power_on(void __iomem *p, int bit) { /* request power on */ writel_relaxed(BIT(bit), p + WUPCR_OFFS); @@ -50,7 +51,7 @@ static int apmu_power_off(void __iomem *p, int bit) return 0; } -static int apmu_power_off_poll(void __iomem *p, int bit) +static int __maybe_unused apmu_power_off_poll(void __iomem *p, int bit) { int k; @@ -73,7 +74,7 @@ static int apmu_wrap(int cpu, int (*fn)(void __iomem *p, int cpu)) static void apmu_init_cpu(struct resource *res, int cpu, int bit) { - if (apmu_cpus[cpu].iomem) + if ((cpu >= ARRAY_SIZE(apmu_cpus)) || apmu_cpus[cpu].iomem) return; apmu_cpus[cpu].iomem = ioremap_nocache(res->start, resource_size(res)); @@ -137,6 +138,7 @@ void __init shmobile_smp_apmu_prepare_cpus(unsigned int max_cpus) apmu_parse_cfg(apmu_init_cpu); } +#ifdef CONFIG_SMP int shmobile_smp_apmu_boot_secondary(unsigned int cpu, struct task_struct *idle) { /* For this particular CPU register boot vector */ @@ -144,6 +146,7 @@ int shmobile_smp_apmu_boot_secondary(unsigned int cpu, struct task_struct *idle) return apmu_wrap(cpu, apmu_power_on); } +#endif #if defined(CONFIG_HOTPLUG_CPU) || defined(CONFIG_SUSPEND) /* nicked from arch/arm/mach-exynos/hotplug.c */ -- 2.0.0.rc2 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 3/8] ARM: shmobile: Adjust APMU code to build for non-SMP @ 2014-07-01 0:28 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-07-01 0:28 UTC (permalink / raw) To: linux-arm-kernel From: Magnus Damm <damm+renesas@opensource.se> Adjust the APMU code to allow build when CONFIG_SMP=n. Signed-off-by: Magnus Damm <damm+renesas@opensource.se> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/platsmp-apmu.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/arch/arm/mach-shmobile/platsmp-apmu.c b/arch/arm/mach-shmobile/platsmp-apmu.c index 590e35c..ce07eb9 100644 --- a/arch/arm/mach-shmobile/platsmp-apmu.c +++ b/arch/arm/mach-shmobile/platsmp-apmu.c @@ -15,6 +15,7 @@ #include <linux/of_address.h> #include <linux/smp.h> #include <linux/suspend.h> +#include <linux/threads.h> #include <asm/cacheflush.h> #include <asm/cp15.h> #include <asm/proc-fns.h> @@ -25,13 +26,13 @@ static struct { void __iomem *iomem; int bit; -} apmu_cpus[CONFIG_NR_CPUS]; +} apmu_cpus[NR_CPUS]; #define WUPCR_OFFS 0x10 #define PSTR_OFFS 0x40 #define CPUNCR_OFFS(n) (0x100 + (0x10 * (n))) -static int apmu_power_on(void __iomem *p, int bit) +static int __maybe_unused apmu_power_on(void __iomem *p, int bit) { /* request power on */ writel_relaxed(BIT(bit), p + WUPCR_OFFS); @@ -50,7 +51,7 @@ static int apmu_power_off(void __iomem *p, int bit) return 0; } -static int apmu_power_off_poll(void __iomem *p, int bit) +static int __maybe_unused apmu_power_off_poll(void __iomem *p, int bit) { int k; @@ -73,7 +74,7 @@ static int apmu_wrap(int cpu, int (*fn)(void __iomem *p, int cpu)) static void apmu_init_cpu(struct resource *res, int cpu, int bit) { - if (apmu_cpus[cpu].iomem) + if ((cpu >= ARRAY_SIZE(apmu_cpus)) || apmu_cpus[cpu].iomem) return; apmu_cpus[cpu].iomem = ioremap_nocache(res->start, resource_size(res)); @@ -137,6 +138,7 @@ void __init shmobile_smp_apmu_prepare_cpus(unsigned int max_cpus) apmu_parse_cfg(apmu_init_cpu); } +#ifdef CONFIG_SMP int shmobile_smp_apmu_boot_secondary(unsigned int cpu, struct task_struct *idle) { /* For this particular CPU register boot vector */ @@ -144,6 +146,7 @@ int shmobile_smp_apmu_boot_secondary(unsigned int cpu, struct task_struct *idle) return apmu_wrap(cpu, apmu_power_on); } +#endif #if defined(CONFIG_HOTPLUG_CPU) || defined(CONFIG_SUSPEND) /* nicked from arch/arm/mach-exynos/hotplug.c */ -- 2.0.0.rc2 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 4/8] ARM: shmobile: Use __init for APMU suspend init function 2014-07-01 0:28 ` Simon Horman @ 2014-07-01 0:28 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-07-01 0:28 UTC (permalink / raw) To: linux-arm-kernel From: Magnus Damm <damm+renesas@opensource.se> The function shmobile_smp_apmu_suspend_init() should be put into the init section to not trigger section mismatch warnings. Signed-off-by: Magnus Damm <damm+renesas@opensource.se> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/platsmp-apmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-shmobile/platsmp-apmu.c b/arch/arm/mach-shmobile/platsmp-apmu.c index ce07eb9..a05b16d 100644 --- a/arch/arm/mach-shmobile/platsmp-apmu.c +++ b/arch/arm/mach-shmobile/platsmp-apmu.c @@ -240,7 +240,7 @@ static int shmobile_smp_apmu_enter_suspend(suspend_state_t state) return 0; } -void shmobile_smp_apmu_suspend_init(void) +void __init shmobile_smp_apmu_suspend_init(void) { shmobile_suspend_ops.enter = shmobile_smp_apmu_enter_suspend; } -- 2.0.0.rc2 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 4/8] ARM: shmobile: Use __init for APMU suspend init function @ 2014-07-01 0:28 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-07-01 0:28 UTC (permalink / raw) To: linux-arm-kernel From: Magnus Damm <damm+renesas@opensource.se> The function shmobile_smp_apmu_suspend_init() should be put into the init section to not trigger section mismatch warnings. Signed-off-by: Magnus Damm <damm+renesas@opensource.se> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/platsmp-apmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-shmobile/platsmp-apmu.c b/arch/arm/mach-shmobile/platsmp-apmu.c index ce07eb9..a05b16d 100644 --- a/arch/arm/mach-shmobile/platsmp-apmu.c +++ b/arch/arm/mach-shmobile/platsmp-apmu.c @@ -240,7 +240,7 @@ static int shmobile_smp_apmu_enter_suspend(suspend_state_t state) return 0; } -void shmobile_smp_apmu_suspend_init(void) +void __init shmobile_smp_apmu_suspend_init(void) { shmobile_suspend_ops.enter = shmobile_smp_apmu_enter_suspend; } -- 2.0.0.rc2 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 5/8] ARM: shmobile: Move r8a7790 reset code to pm-r8a7790.c 2014-07-01 0:28 ` Simon Horman @ 2014-07-01 0:28 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-07-01 0:28 UTC (permalink / raw) To: linux-arm-kernel From: Magnus Damm <damm+renesas@opensource.se> Move r8a7790 specific reset vector setup code from the SMP glue code to PM code. This makes the code one step closer to allow PM operations such as Suspend-to-RAM in the case when SMP is disabled in the kernel config. Signed-off-by: Magnus Damm <damm+renesas@opensource.se> [horms+renesas@verge.net.au: updated for recent #include changes] Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/pm-r8a7790.c | 40 ++++++++++++++++++++++++++++++++++-- arch/arm/mach-shmobile/smp-r8a7790.c | 30 --------------------------- 2 files changed, 38 insertions(+), 32 deletions(-) diff --git a/arch/arm/mach-shmobile/pm-r8a7790.c b/arch/arm/mach-shmobile/pm-r8a7790.c index 0f1090d8..4289b38 100644 --- a/arch/arm/mach-shmobile/pm-r8a7790.c +++ b/arch/arm/mach-shmobile/pm-r8a7790.c @@ -11,10 +11,22 @@ */ #include <linux/kernel.h> +#include <linux/smp.h> #include <asm/io.h> #include <mach/r8a7790.h> +#include "common.h" #include "pm-rcar.h" +/* RST */ +#define RST 0xe6160000 +#define CA15BAR 0x0020 +#define CA7BAR 0x0030 +#define CA15RESCNT 0x0040 +#define CA7RESCNT 0x0044 + +/* On-chip RAM */ +#define MERAM 0xe8080000 + /* SYSC */ #define SYSCIER 0x0c #define SYSCIMR 0x10 @@ -38,8 +50,32 @@ static inline void r8a7790_sysc_init(void) {} void __init r8a7790_pm_init(void) { + void __iomem *p; + u32 bar; static int once; - if (!once++) - r8a7790_sysc_init(); + if (once++) + return; + + /* MERAM for jump stub, because BAR requires 256KB aligned address */ + p = ioremap_nocache(MERAM, shmobile_boot_size); + memcpy_toio(p, shmobile_boot_vector, shmobile_boot_size); + iounmap(p); + + /* setup reset vectors */ + p = ioremap_nocache(RST, 0x63); + bar = (MERAM >> 8) & 0xfffffc00; + writel_relaxed(bar, p + CA15BAR); + writel_relaxed(bar, p + CA7BAR); + writel_relaxed(bar | 0x10, p + CA15BAR); + writel_relaxed(bar | 0x10, p + CA7BAR); + + /* de-assert reset for all CPUs */ + writel_relaxed((readl_relaxed(p + CA15RESCNT) & ~0x0f) | 0xa5a50000, + p + CA15RESCNT); + writel_relaxed((readl_relaxed(p + CA7RESCNT) & ~0x0f) | 0x5a5a0000, + p + CA7RESCNT); + iounmap(p); + + r8a7790_sysc_init(); } diff --git a/arch/arm/mach-shmobile/smp-r8a7790.c b/arch/arm/mach-shmobile/smp-r8a7790.c index 7590e2b..81ba906 100644 --- a/arch/arm/mach-shmobile/smp-r8a7790.c +++ b/arch/arm/mach-shmobile/smp-r8a7790.c @@ -22,13 +22,6 @@ #include "common.h" #include "pm-rcar.h" -#define RST 0xe6160000 -#define CA15BAR 0x0020 -#define CA7BAR 0x0030 -#define CA15RESCNT 0x0040 -#define CA7RESCNT 0x0044 -#define MERAM 0xe8080000 - static struct rcar_sysc_ch r8a7790_ca15_scu = { .chan_offs = 0x180, /* PWRSR5 .. PWRER5 */ .isr_bit = 12, /* CA15-SCU */ @@ -41,32 +34,9 @@ static struct rcar_sysc_ch r8a7790_ca7_scu = { static void __init r8a7790_smp_prepare_cpus(unsigned int max_cpus) { - void __iomem *p; - u32 bar; - /* let APMU code install data related to shmobile_boot_vector */ shmobile_smp_apmu_prepare_cpus(max_cpus); - /* MERAM for jump stub, because BAR requires 256KB aligned address */ - p = ioremap_nocache(MERAM, shmobile_boot_size); - memcpy_toio(p, shmobile_boot_vector, shmobile_boot_size); - iounmap(p); - - /* setup reset vectors */ - p = ioremap_nocache(RST, 0x63); - bar = (MERAM >> 8) & 0xfffffc00; - writel_relaxed(bar, p + CA15BAR); - writel_relaxed(bar, p + CA7BAR); - writel_relaxed(bar | 0x10, p + CA15BAR); - writel_relaxed(bar | 0x10, p + CA7BAR); - - /* enable clocks to all CPUs */ - writel_relaxed((readl_relaxed(p + CA15RESCNT) & ~0x0f) | 0xa5a50000, - p + CA15RESCNT); - writel_relaxed((readl_relaxed(p + CA7RESCNT) & ~0x0f) | 0x5a5a0000, - p + CA7RESCNT); - iounmap(p); - /* turn on power to SCU */ r8a7790_pm_init(); shmobile_smp_apmu_suspend_init(); -- 2.0.0.rc2 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 5/8] ARM: shmobile: Move r8a7790 reset code to pm-r8a7790.c @ 2014-07-01 0:28 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-07-01 0:28 UTC (permalink / raw) To: linux-arm-kernel From: Magnus Damm <damm+renesas@opensource.se> Move r8a7790 specific reset vector setup code from the SMP glue code to PM code. This makes the code one step closer to allow PM operations such as Suspend-to-RAM in the case when SMP is disabled in the kernel config. Signed-off-by: Magnus Damm <damm+renesas@opensource.se> [horms+renesas at verge.net.au: updated for recent #include changes] Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/pm-r8a7790.c | 40 ++++++++++++++++++++++++++++++++++-- arch/arm/mach-shmobile/smp-r8a7790.c | 30 --------------------------- 2 files changed, 38 insertions(+), 32 deletions(-) diff --git a/arch/arm/mach-shmobile/pm-r8a7790.c b/arch/arm/mach-shmobile/pm-r8a7790.c index 0f1090d8..4289b38 100644 --- a/arch/arm/mach-shmobile/pm-r8a7790.c +++ b/arch/arm/mach-shmobile/pm-r8a7790.c @@ -11,10 +11,22 @@ */ #include <linux/kernel.h> +#include <linux/smp.h> #include <asm/io.h> #include <mach/r8a7790.h> +#include "common.h" #include "pm-rcar.h" +/* RST */ +#define RST 0xe6160000 +#define CA15BAR 0x0020 +#define CA7BAR 0x0030 +#define CA15RESCNT 0x0040 +#define CA7RESCNT 0x0044 + +/* On-chip RAM */ +#define MERAM 0xe8080000 + /* SYSC */ #define SYSCIER 0x0c #define SYSCIMR 0x10 @@ -38,8 +50,32 @@ static inline void r8a7790_sysc_init(void) {} void __init r8a7790_pm_init(void) { + void __iomem *p; + u32 bar; static int once; - if (!once++) - r8a7790_sysc_init(); + if (once++) + return; + + /* MERAM for jump stub, because BAR requires 256KB aligned address */ + p = ioremap_nocache(MERAM, shmobile_boot_size); + memcpy_toio(p, shmobile_boot_vector, shmobile_boot_size); + iounmap(p); + + /* setup reset vectors */ + p = ioremap_nocache(RST, 0x63); + bar = (MERAM >> 8) & 0xfffffc00; + writel_relaxed(bar, p + CA15BAR); + writel_relaxed(bar, p + CA7BAR); + writel_relaxed(bar | 0x10, p + CA15BAR); + writel_relaxed(bar | 0x10, p + CA7BAR); + + /* de-assert reset for all CPUs */ + writel_relaxed((readl_relaxed(p + CA15RESCNT) & ~0x0f) | 0xa5a50000, + p + CA15RESCNT); + writel_relaxed((readl_relaxed(p + CA7RESCNT) & ~0x0f) | 0x5a5a0000, + p + CA7RESCNT); + iounmap(p); + + r8a7790_sysc_init(); } diff --git a/arch/arm/mach-shmobile/smp-r8a7790.c b/arch/arm/mach-shmobile/smp-r8a7790.c index 7590e2b..81ba906 100644 --- a/arch/arm/mach-shmobile/smp-r8a7790.c +++ b/arch/arm/mach-shmobile/smp-r8a7790.c @@ -22,13 +22,6 @@ #include "common.h" #include "pm-rcar.h" -#define RST 0xe6160000 -#define CA15BAR 0x0020 -#define CA7BAR 0x0030 -#define CA15RESCNT 0x0040 -#define CA7RESCNT 0x0044 -#define MERAM 0xe8080000 - static struct rcar_sysc_ch r8a7790_ca15_scu = { .chan_offs = 0x180, /* PWRSR5 .. PWRER5 */ .isr_bit = 12, /* CA15-SCU */ @@ -41,32 +34,9 @@ static struct rcar_sysc_ch r8a7790_ca7_scu = { static void __init r8a7790_smp_prepare_cpus(unsigned int max_cpus) { - void __iomem *p; - u32 bar; - /* let APMU code install data related to shmobile_boot_vector */ shmobile_smp_apmu_prepare_cpus(max_cpus); - /* MERAM for jump stub, because BAR requires 256KB aligned address */ - p = ioremap_nocache(MERAM, shmobile_boot_size); - memcpy_toio(p, shmobile_boot_vector, shmobile_boot_size); - iounmap(p); - - /* setup reset vectors */ - p = ioremap_nocache(RST, 0x63); - bar = (MERAM >> 8) & 0xfffffc00; - writel_relaxed(bar, p + CA15BAR); - writel_relaxed(bar, p + CA7BAR); - writel_relaxed(bar | 0x10, p + CA15BAR); - writel_relaxed(bar | 0x10, p + CA7BAR); - - /* enable clocks to all CPUs */ - writel_relaxed((readl_relaxed(p + CA15RESCNT) & ~0x0f) | 0xa5a50000, - p + CA15RESCNT); - writel_relaxed((readl_relaxed(p + CA7RESCNT) & ~0x0f) | 0x5a5a0000, - p + CA7RESCNT); - iounmap(p); - /* turn on power to SCU */ r8a7790_pm_init(); shmobile_smp_apmu_suspend_init(); -- 2.0.0.rc2 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 6/8] ARM: shmobile: Allow r8a7790 to build non-SMP APMU code 2014-07-01 0:28 ` Simon Horman @ 2014-07-01 0:28 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-07-01 0:28 UTC (permalink / raw) To: linux-arm-kernel From: Magnus Damm <damm+renesas@opensource.se> Build the APMU for r8a7790 even though SMP is disabled in the kernel config. Also initialize Suspend-to-RAM from pm-r8a7790.c to in the future cover both UP and SMP use cases of the APMU. Signed-off-by: Magnus Damm <damm+renesas@opensource.se> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/Makefile | 5 +++-- arch/arm/mach-shmobile/pm-r8a7790.c | 1 + arch/arm/mach-shmobile/smp-r8a7790.c | 1 - 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-shmobile/Makefile b/arch/arm/mach-shmobile/Makefile index 279d3f3..08f5952 100644 --- a/arch/arm/mach-shmobile/Makefile +++ b/arch/arm/mach-shmobile/Makefile @@ -36,12 +36,13 @@ endif # CPU reset vector handling objects cpu-y := platsmp.o headsmp.o +cpu-$(CONFIG_ARCH_R8A7790) += platsmp-apmu.o # SMP objects smp-y := $(cpu-y) smp-$(CONFIG_ARCH_SH73A0) += smp-sh73a0.o headsmp-scu.o platsmp-scu.o smp-$(CONFIG_ARCH_R8A7779) += smp-r8a7779.o headsmp-scu.o platsmp-scu.o -smp-$(CONFIG_ARCH_R8A7790) += smp-r8a7790.o platsmp-apmu.o +smp-$(CONFIG_ARCH_R8A7790) += smp-r8a7790.o smp-$(CONFIG_ARCH_R8A7791) += smp-r8a7791.o platsmp-apmu.o smp-$(CONFIG_ARCH_EMEV2) += smp-emev2.o headsmp-scu.o platsmp-scu.o @@ -52,7 +53,7 @@ obj-$(CONFIG_ARCH_SH7372) += pm-sh7372.o sleep-sh7372.o pm-rmobile.o obj-$(CONFIG_ARCH_SH73A0) += pm-sh73a0.o obj-$(CONFIG_ARCH_R8A7740) += pm-r8a7740.o pm-rmobile.o obj-$(CONFIG_ARCH_R8A7779) += pm-r8a7779.o pm-rcar.o -obj-$(CONFIG_ARCH_R8A7790) += pm-r8a7790.o pm-rcar.o +obj-$(CONFIG_ARCH_R8A7790) += pm-r8a7790.o pm-rcar.o $(cpu-y) obj-$(CONFIG_ARCH_R8A7791) += pm-r8a7791.o pm-rcar.o # IRQ objects diff --git a/arch/arm/mach-shmobile/pm-r8a7790.c b/arch/arm/mach-shmobile/pm-r8a7790.c index 4289b38..2f3c250 100644 --- a/arch/arm/mach-shmobile/pm-r8a7790.c +++ b/arch/arm/mach-shmobile/pm-r8a7790.c @@ -78,4 +78,5 @@ void __init r8a7790_pm_init(void) iounmap(p); r8a7790_sysc_init(); + shmobile_smp_apmu_suspend_init(); } diff --git a/arch/arm/mach-shmobile/smp-r8a7790.c b/arch/arm/mach-shmobile/smp-r8a7790.c index 81ba906..1e254f9 100644 --- a/arch/arm/mach-shmobile/smp-r8a7790.c +++ b/arch/arm/mach-shmobile/smp-r8a7790.c @@ -39,7 +39,6 @@ static void __init r8a7790_smp_prepare_cpus(unsigned int max_cpus) /* turn on power to SCU */ r8a7790_pm_init(); - shmobile_smp_apmu_suspend_init(); rcar_sysc_power_up(&r8a7790_ca15_scu); rcar_sysc_power_up(&r8a7790_ca7_scu); } -- 2.0.0.rc2 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 6/8] ARM: shmobile: Allow r8a7790 to build non-SMP APMU code @ 2014-07-01 0:28 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-07-01 0:28 UTC (permalink / raw) To: linux-arm-kernel From: Magnus Damm <damm+renesas@opensource.se> Build the APMU for r8a7790 even though SMP is disabled in the kernel config. Also initialize Suspend-to-RAM from pm-r8a7790.c to in the future cover both UP and SMP use cases of the APMU. Signed-off-by: Magnus Damm <damm+renesas@opensource.se> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/Makefile | 5 +++-- arch/arm/mach-shmobile/pm-r8a7790.c | 1 + arch/arm/mach-shmobile/smp-r8a7790.c | 1 - 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-shmobile/Makefile b/arch/arm/mach-shmobile/Makefile index 279d3f3..08f5952 100644 --- a/arch/arm/mach-shmobile/Makefile +++ b/arch/arm/mach-shmobile/Makefile @@ -36,12 +36,13 @@ endif # CPU reset vector handling objects cpu-y := platsmp.o headsmp.o +cpu-$(CONFIG_ARCH_R8A7790) += platsmp-apmu.o # SMP objects smp-y := $(cpu-y) smp-$(CONFIG_ARCH_SH73A0) += smp-sh73a0.o headsmp-scu.o platsmp-scu.o smp-$(CONFIG_ARCH_R8A7779) += smp-r8a7779.o headsmp-scu.o platsmp-scu.o -smp-$(CONFIG_ARCH_R8A7790) += smp-r8a7790.o platsmp-apmu.o +smp-$(CONFIG_ARCH_R8A7790) += smp-r8a7790.o smp-$(CONFIG_ARCH_R8A7791) += smp-r8a7791.o platsmp-apmu.o smp-$(CONFIG_ARCH_EMEV2) += smp-emev2.o headsmp-scu.o platsmp-scu.o @@ -52,7 +53,7 @@ obj-$(CONFIG_ARCH_SH7372) += pm-sh7372.o sleep-sh7372.o pm-rmobile.o obj-$(CONFIG_ARCH_SH73A0) += pm-sh73a0.o obj-$(CONFIG_ARCH_R8A7740) += pm-r8a7740.o pm-rmobile.o obj-$(CONFIG_ARCH_R8A7779) += pm-r8a7779.o pm-rcar.o -obj-$(CONFIG_ARCH_R8A7790) += pm-r8a7790.o pm-rcar.o +obj-$(CONFIG_ARCH_R8A7790) += pm-r8a7790.o pm-rcar.o $(cpu-y) obj-$(CONFIG_ARCH_R8A7791) += pm-r8a7791.o pm-rcar.o # IRQ objects diff --git a/arch/arm/mach-shmobile/pm-r8a7790.c b/arch/arm/mach-shmobile/pm-r8a7790.c index 4289b38..2f3c250 100644 --- a/arch/arm/mach-shmobile/pm-r8a7790.c +++ b/arch/arm/mach-shmobile/pm-r8a7790.c @@ -78,4 +78,5 @@ void __init r8a7790_pm_init(void) iounmap(p); r8a7790_sysc_init(); + shmobile_smp_apmu_suspend_init(); } diff --git a/arch/arm/mach-shmobile/smp-r8a7790.c b/arch/arm/mach-shmobile/smp-r8a7790.c index 81ba906..1e254f9 100644 --- a/arch/arm/mach-shmobile/smp-r8a7790.c +++ b/arch/arm/mach-shmobile/smp-r8a7790.c @@ -39,7 +39,6 @@ static void __init r8a7790_smp_prepare_cpus(unsigned int max_cpus) /* turn on power to SCU */ r8a7790_pm_init(); - shmobile_smp_apmu_suspend_init(); rcar_sysc_power_up(&r8a7790_ca15_scu); rcar_sysc_power_up(&r8a7790_ca7_scu); } -- 2.0.0.rc2 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 7/8] ARM: shmobile: Move r8a7791 reset code to pm-r8a7791.c 2014-07-01 0:28 ` Simon Horman @ 2014-07-01 0:28 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-07-01 0:28 UTC (permalink / raw) To: linux-arm-kernel From: Magnus Damm <damm+renesas@opensource.se> Move r8a7791 specific reset vector setup code from the SMP glue code to PM code. This makes the code one step closer to allow PM operations such as Suspend-to-RAM in the case when SMP is disabled in the kernel config. Signed-off-by: Magnus Damm <damm+renesas@opensource.se> [horms+renesas@verge.net.au: updated for recent header file changes] Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/pm-r8a7791.c | 27 +++++++++++++++++++++++++-- arch/arm/mach-shmobile/smp-r8a7791.c | 24 ------------------------ 2 files changed, 25 insertions(+), 26 deletions(-) diff --git a/arch/arm/mach-shmobile/pm-r8a7791.c b/arch/arm/mach-shmobile/pm-r8a7791.c index b7e6513..c44304c 100644 --- a/arch/arm/mach-shmobile/pm-r8a7791.c +++ b/arch/arm/mach-shmobile/pm-r8a7791.c @@ -11,12 +11,17 @@ */ #include <linux/kernel.h> - +#include <linux/smp.h> #include <asm/io.h> - +#include "common.h" #include "pm-rcar.h" #include "r8a7791.h" +#define RST 0xe6160000 +#define CA15BAR 0x0020 +#define CA15RESCNT 0x0040 +#define RAM 0xe6300000 + /* SYSC */ #define SYSCIER 0x0c #define SYSCIMR 0x10 @@ -40,10 +45,28 @@ static inline void r8a7791_sysc_init(void) {} void __init r8a7791_pm_init(void) { + void __iomem *p; + u32 bar; static int once; if (once++) return; + /* RAM for jump stub, because BAR requires 256KB aligned address */ + p = ioremap_nocache(RAM, shmobile_boot_size); + memcpy_toio(p, shmobile_boot_vector, shmobile_boot_size); + iounmap(p); + + /* setup reset vectors */ + p = ioremap_nocache(RST, 0x63); + bar = (RAM >> 8) & 0xfffffc00; + writel_relaxed(bar, p + CA15BAR); + writel_relaxed(bar | 0x10, p + CA15BAR); + + /* enable clocks to all CPUs */ + writel_relaxed((readl_relaxed(p + CA15RESCNT) & ~0x0f) | 0xa5a50000, + p + CA15RESCNT); + iounmap(p); + r8a7791_sysc_init(); } diff --git a/arch/arm/mach-shmobile/smp-r8a7791.c b/arch/arm/mach-shmobile/smp-r8a7791.c index 2482555..df086aa 100644 --- a/arch/arm/mach-shmobile/smp-r8a7791.c +++ b/arch/arm/mach-shmobile/smp-r8a7791.c @@ -24,35 +24,11 @@ #include "r8a7791.h" #include "rcar-gen2.h" -#define RST 0xe6160000 -#define CA15BAR 0x0020 -#define CA15RESCNT 0x0040 -#define RAM 0xe6300000 - static void __init r8a7791_smp_prepare_cpus(unsigned int max_cpus) { - void __iomem *p; - u32 bar; - /* let APMU code install data related to shmobile_boot_vector */ shmobile_smp_apmu_prepare_cpus(max_cpus); - /* RAM for jump stub, because BAR requires 256KB aligned address */ - p = ioremap_nocache(RAM, shmobile_boot_size); - memcpy_toio(p, shmobile_boot_vector, shmobile_boot_size); - iounmap(p); - - /* setup reset vectors */ - p = ioremap_nocache(RST, 0x63); - bar = (RAM >> 8) & 0xfffffc00; - writel_relaxed(bar, p + CA15BAR); - writel_relaxed(bar | 0x10, p + CA15BAR); - - /* enable clocks to all CPUs */ - writel_relaxed((readl_relaxed(p + CA15RESCNT) & ~0x0f) | 0xa5a50000, - p + CA15RESCNT); - iounmap(p); - r8a7791_pm_init(); shmobile_smp_apmu_suspend_init(); } -- 2.0.0.rc2 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 7/8] ARM: shmobile: Move r8a7791 reset code to pm-r8a7791.c @ 2014-07-01 0:28 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-07-01 0:28 UTC (permalink / raw) To: linux-arm-kernel From: Magnus Damm <damm+renesas@opensource.se> Move r8a7791 specific reset vector setup code from the SMP glue code to PM code. This makes the code one step closer to allow PM operations such as Suspend-to-RAM in the case when SMP is disabled in the kernel config. Signed-off-by: Magnus Damm <damm+renesas@opensource.se> [horms+renesas at verge.net.au: updated for recent header file changes] Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/pm-r8a7791.c | 27 +++++++++++++++++++++++++-- arch/arm/mach-shmobile/smp-r8a7791.c | 24 ------------------------ 2 files changed, 25 insertions(+), 26 deletions(-) diff --git a/arch/arm/mach-shmobile/pm-r8a7791.c b/arch/arm/mach-shmobile/pm-r8a7791.c index b7e6513..c44304c 100644 --- a/arch/arm/mach-shmobile/pm-r8a7791.c +++ b/arch/arm/mach-shmobile/pm-r8a7791.c @@ -11,12 +11,17 @@ */ #include <linux/kernel.h> - +#include <linux/smp.h> #include <asm/io.h> - +#include "common.h" #include "pm-rcar.h" #include "r8a7791.h" +#define RST 0xe6160000 +#define CA15BAR 0x0020 +#define CA15RESCNT 0x0040 +#define RAM 0xe6300000 + /* SYSC */ #define SYSCIER 0x0c #define SYSCIMR 0x10 @@ -40,10 +45,28 @@ static inline void r8a7791_sysc_init(void) {} void __init r8a7791_pm_init(void) { + void __iomem *p; + u32 bar; static int once; if (once++) return; + /* RAM for jump stub, because BAR requires 256KB aligned address */ + p = ioremap_nocache(RAM, shmobile_boot_size); + memcpy_toio(p, shmobile_boot_vector, shmobile_boot_size); + iounmap(p); + + /* setup reset vectors */ + p = ioremap_nocache(RST, 0x63); + bar = (RAM >> 8) & 0xfffffc00; + writel_relaxed(bar, p + CA15BAR); + writel_relaxed(bar | 0x10, p + CA15BAR); + + /* enable clocks to all CPUs */ + writel_relaxed((readl_relaxed(p + CA15RESCNT) & ~0x0f) | 0xa5a50000, + p + CA15RESCNT); + iounmap(p); + r8a7791_sysc_init(); } diff --git a/arch/arm/mach-shmobile/smp-r8a7791.c b/arch/arm/mach-shmobile/smp-r8a7791.c index 2482555..df086aa 100644 --- a/arch/arm/mach-shmobile/smp-r8a7791.c +++ b/arch/arm/mach-shmobile/smp-r8a7791.c @@ -24,35 +24,11 @@ #include "r8a7791.h" #include "rcar-gen2.h" -#define RST 0xe6160000 -#define CA15BAR 0x0020 -#define CA15RESCNT 0x0040 -#define RAM 0xe6300000 - static void __init r8a7791_smp_prepare_cpus(unsigned int max_cpus) { - void __iomem *p; - u32 bar; - /* let APMU code install data related to shmobile_boot_vector */ shmobile_smp_apmu_prepare_cpus(max_cpus); - /* RAM for jump stub, because BAR requires 256KB aligned address */ - p = ioremap_nocache(RAM, shmobile_boot_size); - memcpy_toio(p, shmobile_boot_vector, shmobile_boot_size); - iounmap(p); - - /* setup reset vectors */ - p = ioremap_nocache(RST, 0x63); - bar = (RAM >> 8) & 0xfffffc00; - writel_relaxed(bar, p + CA15BAR); - writel_relaxed(bar | 0x10, p + CA15BAR); - - /* enable clocks to all CPUs */ - writel_relaxed((readl_relaxed(p + CA15RESCNT) & ~0x0f) | 0xa5a50000, - p + CA15RESCNT); - iounmap(p); - r8a7791_pm_init(); shmobile_smp_apmu_suspend_init(); } -- 2.0.0.rc2 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 8/8] ARM: shmobile: Allow r8a7791 to build non-SMP APMU code 2014-07-01 0:28 ` Simon Horman @ 2014-07-01 0:28 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-07-01 0:28 UTC (permalink / raw) To: linux-arm-kernel From: Magnus Damm <damm+renesas@opensource.se> Build the APMU for r8a7791 even though SMP is disabled in the kernel config. Also initialize Suspend-to-RAM from pm-r8a7791.c to in the future cover both UP and SMP use cases of the APMU. Signed-off-by: Magnus Damm <damm+renesas@opensource.se> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/Makefile | 5 +++-- arch/arm/mach-shmobile/pm-r8a7791.c | 1 + arch/arm/mach-shmobile/smp-r8a7791.c | 1 - 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-shmobile/Makefile b/arch/arm/mach-shmobile/Makefile index 08f5952..cc0224e 100644 --- a/arch/arm/mach-shmobile/Makefile +++ b/arch/arm/mach-shmobile/Makefile @@ -37,13 +37,14 @@ endif # CPU reset vector handling objects cpu-y := platsmp.o headsmp.o cpu-$(CONFIG_ARCH_R8A7790) += platsmp-apmu.o +cpu-$(CONFIG_ARCH_R8A7791) += platsmp-apmu.o # SMP objects smp-y := $(cpu-y) smp-$(CONFIG_ARCH_SH73A0) += smp-sh73a0.o headsmp-scu.o platsmp-scu.o smp-$(CONFIG_ARCH_R8A7779) += smp-r8a7779.o headsmp-scu.o platsmp-scu.o smp-$(CONFIG_ARCH_R8A7790) += smp-r8a7790.o -smp-$(CONFIG_ARCH_R8A7791) += smp-r8a7791.o platsmp-apmu.o +smp-$(CONFIG_ARCH_R8A7791) += smp-r8a7791.o smp-$(CONFIG_ARCH_EMEV2) += smp-emev2.o headsmp-scu.o platsmp-scu.o # PM objects @@ -54,7 +55,7 @@ obj-$(CONFIG_ARCH_SH73A0) += pm-sh73a0.o obj-$(CONFIG_ARCH_R8A7740) += pm-r8a7740.o pm-rmobile.o obj-$(CONFIG_ARCH_R8A7779) += pm-r8a7779.o pm-rcar.o obj-$(CONFIG_ARCH_R8A7790) += pm-r8a7790.o pm-rcar.o $(cpu-y) -obj-$(CONFIG_ARCH_R8A7791) += pm-r8a7791.o pm-rcar.o +obj-$(CONFIG_ARCH_R8A7791) += pm-r8a7791.o pm-rcar.o $(cpu-y) # IRQ objects obj-$(CONFIG_ARCH_SH7372) += entry-intc.o diff --git a/arch/arm/mach-shmobile/pm-r8a7791.c b/arch/arm/mach-shmobile/pm-r8a7791.c index c44304c..25f107b 100644 --- a/arch/arm/mach-shmobile/pm-r8a7791.c +++ b/arch/arm/mach-shmobile/pm-r8a7791.c @@ -69,4 +69,5 @@ void __init r8a7791_pm_init(void) iounmap(p); r8a7791_sysc_init(); + shmobile_smp_apmu_suspend_init(); } diff --git a/arch/arm/mach-shmobile/smp-r8a7791.c b/arch/arm/mach-shmobile/smp-r8a7791.c index df086aa..f743386 100644 --- a/arch/arm/mach-shmobile/smp-r8a7791.c +++ b/arch/arm/mach-shmobile/smp-r8a7791.c @@ -30,7 +30,6 @@ static void __init r8a7791_smp_prepare_cpus(unsigned int max_cpus) shmobile_smp_apmu_prepare_cpus(max_cpus); r8a7791_pm_init(); - shmobile_smp_apmu_suspend_init(); } static int r8a7791_smp_boot_secondary(unsigned int cpu, -- 2.0.0.rc2 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 8/8] ARM: shmobile: Allow r8a7791 to build non-SMP APMU code @ 2014-07-01 0:28 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-07-01 0:28 UTC (permalink / raw) To: linux-arm-kernel From: Magnus Damm <damm+renesas@opensource.se> Build the APMU for r8a7791 even though SMP is disabled in the kernel config. Also initialize Suspend-to-RAM from pm-r8a7791.c to in the future cover both UP and SMP use cases of the APMU. Signed-off-by: Magnus Damm <damm+renesas@opensource.se> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/Makefile | 5 +++-- arch/arm/mach-shmobile/pm-r8a7791.c | 1 + arch/arm/mach-shmobile/smp-r8a7791.c | 1 - 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-shmobile/Makefile b/arch/arm/mach-shmobile/Makefile index 08f5952..cc0224e 100644 --- a/arch/arm/mach-shmobile/Makefile +++ b/arch/arm/mach-shmobile/Makefile @@ -37,13 +37,14 @@ endif # CPU reset vector handling objects cpu-y := platsmp.o headsmp.o cpu-$(CONFIG_ARCH_R8A7790) += platsmp-apmu.o +cpu-$(CONFIG_ARCH_R8A7791) += platsmp-apmu.o # SMP objects smp-y := $(cpu-y) smp-$(CONFIG_ARCH_SH73A0) += smp-sh73a0.o headsmp-scu.o platsmp-scu.o smp-$(CONFIG_ARCH_R8A7779) += smp-r8a7779.o headsmp-scu.o platsmp-scu.o smp-$(CONFIG_ARCH_R8A7790) += smp-r8a7790.o -smp-$(CONFIG_ARCH_R8A7791) += smp-r8a7791.o platsmp-apmu.o +smp-$(CONFIG_ARCH_R8A7791) += smp-r8a7791.o smp-$(CONFIG_ARCH_EMEV2) += smp-emev2.o headsmp-scu.o platsmp-scu.o # PM objects @@ -54,7 +55,7 @@ obj-$(CONFIG_ARCH_SH73A0) += pm-sh73a0.o obj-$(CONFIG_ARCH_R8A7740) += pm-r8a7740.o pm-rmobile.o obj-$(CONFIG_ARCH_R8A7779) += pm-r8a7779.o pm-rcar.o obj-$(CONFIG_ARCH_R8A7790) += pm-r8a7790.o pm-rcar.o $(cpu-y) -obj-$(CONFIG_ARCH_R8A7791) += pm-r8a7791.o pm-rcar.o +obj-$(CONFIG_ARCH_R8A7791) += pm-r8a7791.o pm-rcar.o $(cpu-y) # IRQ objects obj-$(CONFIG_ARCH_SH7372) += entry-intc.o diff --git a/arch/arm/mach-shmobile/pm-r8a7791.c b/arch/arm/mach-shmobile/pm-r8a7791.c index c44304c..25f107b 100644 --- a/arch/arm/mach-shmobile/pm-r8a7791.c +++ b/arch/arm/mach-shmobile/pm-r8a7791.c @@ -69,4 +69,5 @@ void __init r8a7791_pm_init(void) iounmap(p); r8a7791_sysc_init(); + shmobile_smp_apmu_suspend_init(); } diff --git a/arch/arm/mach-shmobile/smp-r8a7791.c b/arch/arm/mach-shmobile/smp-r8a7791.c index df086aa..f743386 100644 --- a/arch/arm/mach-shmobile/smp-r8a7791.c +++ b/arch/arm/mach-shmobile/smp-r8a7791.c @@ -30,7 +30,6 @@ static void __init r8a7791_smp_prepare_cpus(unsigned int max_cpus) shmobile_smp_apmu_prepare_cpus(max_cpus); r8a7791_pm_init(); - shmobile_smp_apmu_suspend_init(); } static int r8a7791_smp_boot_secondary(unsigned int cpu, -- 2.0.0.rc2 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* Re: [GIT PULL] Second Round of Renesas ARM Based SoC Updates for v3.17 2014-07-01 0:28 ` Simon Horman @ 2014-07-12 16:46 ` Olof Johansson -1 siblings, 0 replies; 776+ messages in thread From: Olof Johansson @ 2014-07-12 16:46 UTC (permalink / raw) To: linux-arm-kernel On Tue, Jul 01, 2014 at 09:28:47AM +0900, Simon Horman wrote: > Hi Olof, Hi Kevin, Hi Arnd, > > Please consider these Second Round of Renesas ARM Based SoC Updates for v3.17. > > This pull request is based on the previous round of > such requests, tagged as renesas-soc-for-v3.17, > which I have already sent a pull-request for. > > This conflicts with other changes made to pm-r8a7790.c in the soc branch > of the renesas tree. A resolution can be found in the > renesas-next-v3.16-rc1-20140628 tag of the next branch of that tree. > > In short, the resulting includes should be: > > #include <linux/kernel.h> > #include <linux/smp.h> > #include <asm/io.h> > #include "common.h" > #include "pm-rcar.h" > #include "r8a7790.h" > > > The following changes since commit 3ed66ec5ced8b801cb851b2b8548301df94f8f54: > > ARM: shmobile: Remove ARCH_HAS_CPUFREQ config for shmobile (2014-06-23 09:53:55 +0900) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git renesas-soc2-for-v3.17 > > for you to fetch changes up to bfe4cfa8ae21628267f2b879b4396ee17ea4fd3a: > > ARM: shmobile: Allow r8a7791 to build non-SMP APMU code (2014-06-26 16:01:34 +0900) > > ---------------------------------------------------------------- > Second Round of Renesas ARM Based SoC Updates for v3.17 > > * Suspend on non-SMP update for r8a7790 > * Move r8a7791.h out of mach directory. > This is part of a multi-stage effort to move headers > out of that directory. > > ---------------------------------------------------------------- > Geert Uytterhoeven (1): > ARM: shmobile: Move r8a7791.h Merged, but: This is a bit confused. You've now sent me three branches in this batch alone that contain these header moves. One for next/soc that contained nothing but a header move, one for cleanup that contained a whole bunch of them, and now yet another one in this combined branch. Please collect all of these in the cleanup branch, and make the soc branch build on top of that if needed to avoid conflicts, instead of spreading them out like this. This is also where the conflict showed up that you mentioned in the preceding pull request. To avoid that, I merged in your cleanup branch on top, so that this conflict doesn't surface all the way up like it otherwise would. -Olof ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC Updates for v3.17 @ 2014-07-12 16:46 ` Olof Johansson 0 siblings, 0 replies; 776+ messages in thread From: Olof Johansson @ 2014-07-12 16:46 UTC (permalink / raw) To: linux-arm-kernel On Tue, Jul 01, 2014 at 09:28:47AM +0900, Simon Horman wrote: > Hi Olof, Hi Kevin, Hi Arnd, > > Please consider these Second Round of Renesas ARM Based SoC Updates for v3.17. > > This pull request is based on the previous round of > such requests, tagged as renesas-soc-for-v3.17, > which I have already sent a pull-request for. > > This conflicts with other changes made to pm-r8a7790.c in the soc branch > of the renesas tree. A resolution can be found in the > renesas-next-v3.16-rc1-20140628 tag of the next branch of that tree. > > In short, the resulting includes should be: > > #include <linux/kernel.h> > #include <linux/smp.h> > #include <asm/io.h> > #include "common.h" > #include "pm-rcar.h" > #include "r8a7790.h" > > > The following changes since commit 3ed66ec5ced8b801cb851b2b8548301df94f8f54: > > ARM: shmobile: Remove ARCH_HAS_CPUFREQ config for shmobile (2014-06-23 09:53:55 +0900) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git renesas-soc2-for-v3.17 > > for you to fetch changes up to bfe4cfa8ae21628267f2b879b4396ee17ea4fd3a: > > ARM: shmobile: Allow r8a7791 to build non-SMP APMU code (2014-06-26 16:01:34 +0900) > > ---------------------------------------------------------------- > Second Round of Renesas ARM Based SoC Updates for v3.17 > > * Suspend on non-SMP update for r8a7790 > * Move r8a7791.h out of mach directory. > This is part of a multi-stage effort to move headers > out of that directory. > > ---------------------------------------------------------------- > Geert Uytterhoeven (1): > ARM: shmobile: Move r8a7791.h Merged, but: This is a bit confused. You've now sent me three branches in this batch alone that contain these header moves. One for next/soc that contained nothing but a header move, one for cleanup that contained a whole bunch of them, and now yet another one in this combined branch. Please collect all of these in the cleanup branch, and make the soc branch build on top of that if needed to avoid conflicts, instead of spreading them out like this. This is also where the conflict showed up that you mentioned in the preceding pull request. To avoid that, I merged in your cleanup branch on top, so that this conflict doesn't surface all the way up like it otherwise would. -Olof ^ permalink raw reply [flat|nested] 776+ messages in thread
* Re: [GIT PULL] Second Round of Renesas ARM Based SoC Updates for v3.17 2014-07-12 16:46 ` Olof Johansson @ 2014-07-12 20:55 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-07-12 20:55 UTC (permalink / raw) To: linux-arm-kernel On Sat, Jul 12, 2014 at 09:46:17AM -0700, Olof Johansson wrote: > On Tue, Jul 01, 2014 at 09:28:47AM +0900, Simon Horman wrote: > > Hi Olof, Hi Kevin, Hi Arnd, > > > > Please consider these Second Round of Renesas ARM Based SoC Updates for v3.17. > > > > This pull request is based on the previous round of > > such requests, tagged as renesas-soc-for-v3.17, > > which I have already sent a pull-request for. > > > > This conflicts with other changes made to pm-r8a7790.c in the soc branch > > of the renesas tree. A resolution can be found in the > > renesas-next-v3.16-rc1-20140628 tag of the next branch of that tree. > > > > In short, the resulting includes should be: > > > > #include <linux/kernel.h> > > #include <linux/smp.h> > > #include <asm/io.h> > > #include "common.h" > > #include "pm-rcar.h" > > #include "r8a7790.h" > > > > > > The following changes since commit 3ed66ec5ced8b801cb851b2b8548301df94f8f54: > > > > ARM: shmobile: Remove ARCH_HAS_CPUFREQ config for shmobile (2014-06-23 09:53:55 +0900) > > > > are available in the git repository at: > > > > git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git renesas-soc2-for-v3.17 > > > > for you to fetch changes up to bfe4cfa8ae21628267f2b879b4396ee17ea4fd3a: > > > > ARM: shmobile: Allow r8a7791 to build non-SMP APMU code (2014-06-26 16:01:34 +0900) > > > > ---------------------------------------------------------------- > > Second Round of Renesas ARM Based SoC Updates for v3.17 > > > > * Suspend on non-SMP update for r8a7790 > > * Move r8a7791.h out of mach directory. > > This is part of a multi-stage effort to move headers > > out of that directory. > > > > ---------------------------------------------------------------- > > Geert Uytterhoeven (1): > > ARM: shmobile: Move r8a7791.h > > Merged, but: > > This is a bit confused. You've now sent me three branches in this batch > alone that contain these header moves. One for next/soc that contained > nothing but a header move, one for cleanup that contained a whole bunch > of them, and now yet another one in this combined branch. > > Please collect all of these in the cleanup branch, and make the soc branch > build on top of that if needed to avoid conflicts, instead of spreading them > out like this. > > This is also where the conflict showed up that you mentioned in the > preceding pull request. To avoid that, I merged in your cleanup branch > on top, so that this conflict doesn't surface all the way up like it > otherwise would. The reason that I took this approach was to allow me to apply patches on top of branches that already existed (and IIRC) I had already sent pull requests for. Would it be better for me to merge branches as a base for clean-ups if this situation arises again? ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC Updates for v3.17 @ 2014-07-12 20:55 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-07-12 20:55 UTC (permalink / raw) To: linux-arm-kernel On Sat, Jul 12, 2014 at 09:46:17AM -0700, Olof Johansson wrote: > On Tue, Jul 01, 2014 at 09:28:47AM +0900, Simon Horman wrote: > > Hi Olof, Hi Kevin, Hi Arnd, > > > > Please consider these Second Round of Renesas ARM Based SoC Updates for v3.17. > > > > This pull request is based on the previous round of > > such requests, tagged as renesas-soc-for-v3.17, > > which I have already sent a pull-request for. > > > > This conflicts with other changes made to pm-r8a7790.c in the soc branch > > of the renesas tree. A resolution can be found in the > > renesas-next-v3.16-rc1-20140628 tag of the next branch of that tree. > > > > In short, the resulting includes should be: > > > > #include <linux/kernel.h> > > #include <linux/smp.h> > > #include <asm/io.h> > > #include "common.h" > > #include "pm-rcar.h" > > #include "r8a7790.h" > > > > > > The following changes since commit 3ed66ec5ced8b801cb851b2b8548301df94f8f54: > > > > ARM: shmobile: Remove ARCH_HAS_CPUFREQ config for shmobile (2014-06-23 09:53:55 +0900) > > > > are available in the git repository at: > > > > git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git renesas-soc2-for-v3.17 > > > > for you to fetch changes up to bfe4cfa8ae21628267f2b879b4396ee17ea4fd3a: > > > > ARM: shmobile: Allow r8a7791 to build non-SMP APMU code (2014-06-26 16:01:34 +0900) > > > > ---------------------------------------------------------------- > > Second Round of Renesas ARM Based SoC Updates for v3.17 > > > > * Suspend on non-SMP update for r8a7790 > > * Move r8a7791.h out of mach directory. > > This is part of a multi-stage effort to move headers > > out of that directory. > > > > ---------------------------------------------------------------- > > Geert Uytterhoeven (1): > > ARM: shmobile: Move r8a7791.h > > Merged, but: > > This is a bit confused. You've now sent me three branches in this batch > alone that contain these header moves. One for next/soc that contained > nothing but a header move, one for cleanup that contained a whole bunch > of them, and now yet another one in this combined branch. > > Please collect all of these in the cleanup branch, and make the soc branch > build on top of that if needed to avoid conflicts, instead of spreading them > out like this. > > This is also where the conflict showed up that you mentioned in the > preceding pull request. To avoid that, I merged in your cleanup branch > on top, so that this conflict doesn't surface all the way up like it > otherwise would. The reason that I took this approach was to allow me to apply patches on top of branches that already existed (and IIRC) I had already sent pull requests for. Would it be better for me to merge branches as a base for clean-ups if this situation arises again? ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC CPUFreq Updates for v3.17 @ 2014-07-12 13:53 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-07-12 13:53 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Hi Kevin, Hi Arnd, Please consider these second round of Renesas ARM based SoC CPUFreq updates for v3.17. This pull request is based on the previous round of such requests, tagged as renesas-cpufreq-for-v3.17, which I have already sent a pull-request for. The following changes since commit 06e32c91dbce3c24ccbe84e3af2a35199662bca0: ARM: shmobile: add cpufreq-cpu0 driver for common SH-Mobile (2014-06-16 19:50:54 +0900) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git renesas-cpufreq2-for-v3.17 for you to fetch changes up to e423d12cbcb9576785e891617888f627f1f57bf4: ARM: shmobile: Remove opps table check for cpufreq (2014-07-09 10:48:58 +0200) ---------------------------------------------------------------- Second Round of Renesas ARM Based SoC CPUFreq Updates for v3.17 * Remove opps table check for cpufreq as this is already handled by the driver ---------------------------------------------------------------- Gaku Inami (1): ARM: shmobile: Remove opps table check for cpufreq arch/arm/mach-shmobile/cpufreq.c | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC CPUFreq Updates for v3.17 @ 2014-07-12 13:53 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-07-12 13:53 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Hi Kevin, Hi Arnd, Please consider these second round of Renesas ARM based SoC CPUFreq updates for v3.17. This pull request is based on the previous round of such requests, tagged as renesas-cpufreq-for-v3.17, which I have already sent a pull-request for. The following changes since commit 06e32c91dbce3c24ccbe84e3af2a35199662bca0: ARM: shmobile: add cpufreq-cpu0 driver for common SH-Mobile (2014-06-16 19:50:54 +0900) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git renesas-cpufreq2-for-v3.17 for you to fetch changes up to e423d12cbcb9576785e891617888f627f1f57bf4: ARM: shmobile: Remove opps table check for cpufreq (2014-07-09 10:48:58 +0200) ---------------------------------------------------------------- Second Round of Renesas ARM Based SoC CPUFreq Updates for v3.17 * Remove opps table check for cpufreq as this is already handled by the driver ---------------------------------------------------------------- Gaku Inami (1): ARM: shmobile: Remove opps table check for cpufreq arch/arm/mach-shmobile/cpufreq.c | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH] ARM: shmobile: Remove opps table check for cpufreq 2014-07-12 13:53 ` Simon Horman @ 2014-07-12 13:53 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-07-12 13:53 UTC (permalink / raw) To: linux-arm-kernel From: Gaku Inami <gaku.inami.xw@bp.renesas.com> This patch is based on feedback from Viresh Kumar. Since cpufreq-cpu0 driver has already check opp table, there is no need to same check in mach-shmobile. Signed-off-by: Gaku Inami <gaku.inami.xw@bp.renesas.com> Acked-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/cpufreq.c | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/arch/arm/mach-shmobile/cpufreq.c b/arch/arm/mach-shmobile/cpufreq.c index e2c868f..8a24b2b 100644 --- a/arch/arm/mach-shmobile/cpufreq.c +++ b/arch/arm/mach-shmobile/cpufreq.c @@ -8,24 +8,10 @@ * for more details. */ -#include <linux/of.h> -#include <linux/of_device.h> #include <linux/platform_device.h> int __init shmobile_cpufreq_init(void) { - struct device_node *np; - - np = of_cpu_device_node_get(0); - if (np = NULL) { - pr_err("failed to find cpu0 node\n"); - return 0; - } - - if (of_get_property(np, "operating-points", NULL)) - platform_device_register_simple("cpufreq-cpu0", -1, NULL, 0); - - of_node_put(np); - + platform_device_register_simple("cpufreq-cpu0", -1, NULL, 0); return 0; } -- 2.0.0.rc2 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH] ARM: shmobile: Remove opps table check for cpufreq @ 2014-07-12 13:53 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-07-12 13:53 UTC (permalink / raw) To: linux-arm-kernel From: Gaku Inami <gaku.inami.xw@bp.renesas.com> This patch is based on feedback from Viresh Kumar. Since cpufreq-cpu0 driver has already check opp table, there is no need to same check in mach-shmobile. Signed-off-by: Gaku Inami <gaku.inami.xw@bp.renesas.com> Acked-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/cpufreq.c | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/arch/arm/mach-shmobile/cpufreq.c b/arch/arm/mach-shmobile/cpufreq.c index e2c868f..8a24b2b 100644 --- a/arch/arm/mach-shmobile/cpufreq.c +++ b/arch/arm/mach-shmobile/cpufreq.c @@ -8,24 +8,10 @@ * for more details. */ -#include <linux/of.h> -#include <linux/of_device.h> #include <linux/platform_device.h> int __init shmobile_cpufreq_init(void) { - struct device_node *np; - - np = of_cpu_device_node_get(0); - if (np == NULL) { - pr_err("failed to find cpu0 node\n"); - return 0; - } - - if (of_get_property(np, "operating-points", NULL)) - platform_device_register_simple("cpufreq-cpu0", -1, NULL, 0); - - of_node_put(np); - + platform_device_register_simple("cpufreq-cpu0", -1, NULL, 0); return 0; } -- 2.0.0.rc2 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* Re: [GIT PULL] Second Round of Renesas ARM Based SoC CPUFreq Updates for v3.17 2014-07-12 13:53 ` Simon Horman @ 2014-07-13 4:47 ` Olof Johansson -1 siblings, 0 replies; 776+ messages in thread From: Olof Johansson @ 2014-07-13 4:47 UTC (permalink / raw) To: linux-arm-kernel On Sat, Jul 12, 2014 at 03:53:15PM +0200, Simon Horman wrote: > Hi Olof, Hi Kevin, Hi Arnd, > > Please consider these second round of Renesas ARM based SoC CPUFreq > updates for v3.17. > > This pull request is based on the previous round of > such requests, tagged as renesas-cpufreq-for-v3.17, > which I have already sent a pull-request for. > > > The following changes since commit 06e32c91dbce3c24ccbe84e3af2a35199662bca0: > > ARM: shmobile: add cpufreq-cpu0 driver for common SH-Mobile (2014-06-16 19:50:54 +0900) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git renesas-cpufreq2-for-v3.17 Merged, thanks. -Olof ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC CPUFreq Updates for v3.17 @ 2014-07-13 4:47 ` Olof Johansson 0 siblings, 0 replies; 776+ messages in thread From: Olof Johansson @ 2014-07-13 4:47 UTC (permalink / raw) To: linux-arm-kernel On Sat, Jul 12, 2014 at 03:53:15PM +0200, Simon Horman wrote: > Hi Olof, Hi Kevin, Hi Arnd, > > Please consider these second round of Renesas ARM based SoC CPUFreq > updates for v3.17. > > This pull request is based on the previous round of > such requests, tagged as renesas-cpufreq-for-v3.17, > which I have already sent a pull-request for. > > > The following changes since commit 06e32c91dbce3c24ccbe84e3af2a35199662bca0: > > ARM: shmobile: add cpufreq-cpu0 driver for common SH-Mobile (2014-06-16 19:50:54 +0900) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git renesas-cpufreq2-for-v3.17 Merged, thanks. -Olof ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC Clock Updates for v3.17 @ 2014-07-15 9:16 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-07-15 9:16 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Hi Kevin, Hi Arnd, Please consider these second round of Renesas ARM based SoC clock updates for v3.17. This pull request is based on the previous round of such requests, tagged as renesas-clock-for-v3.17, which you have already pulled into next/soc. CCF support for the SoCs in question is being worked on, so I expect this code to be a temporary measure. The following changes since commit edc8fb1d6ebdfc4efa009073586d3567c3368475: ARM: shmobile: Fix device node reference leakage in shmobile_init_delay (2014-06-16 19:52:00 +0900) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-clock2-for-v3.17 for you to fetch changes up to ff4ce48e1f163d945c037c1c90ce12950961d91d: ARM: shmobile: sh73a0: add SCI clock support for DT (2014-07-12 15:15:39 +0200) ---------------------------------------------------------------- Second Round of Renesas ARM Based SoC Clock Updates for v3.17 * Add legacy clocks for SCI for SoCs that do not yet have CCF support. This is to allow SCI (serial) devices to be enabled using DT and will be removed after CCF support is added for each SoC. ---------------------------------------------------------------- Simon Horman (4): ARM: shmobile: r8a7778: add SCI clock support for DT ARM: shmobile: r8a73a4: add SCI clock support for DT ARM: shmobile: r8a7740: correct SCI clock support for DT ARM: shmobile: sh73a0: add SCI clock support for DT arch/arm/mach-shmobile/clock-r8a73a4.c | 6 ++++++ arch/arm/mach-shmobile/clock-r8a7740.c | 18 +++++++++--------- arch/arm/mach-shmobile/clock-r8a7778.c | 6 ++++++ arch/arm/mach-shmobile/clock-sh73a0.c | 9 +++++++++ 4 files changed, 30 insertions(+), 9 deletions(-) ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC Clock Updates for v3.17 @ 2014-07-15 9:16 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-07-15 9:16 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Hi Kevin, Hi Arnd, Please consider these second round of Renesas ARM based SoC clock updates for v3.17. This pull request is based on the previous round of such requests, tagged as renesas-clock-for-v3.17, which you have already pulled into next/soc. CCF support for the SoCs in question is being worked on, so I expect this code to be a temporary measure. The following changes since commit edc8fb1d6ebdfc4efa009073586d3567c3368475: ARM: shmobile: Fix device node reference leakage in shmobile_init_delay (2014-06-16 19:52:00 +0900) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-clock2-for-v3.17 for you to fetch changes up to ff4ce48e1f163d945c037c1c90ce12950961d91d: ARM: shmobile: sh73a0: add SCI clock support for DT (2014-07-12 15:15:39 +0200) ---------------------------------------------------------------- Second Round of Renesas ARM Based SoC Clock Updates for v3.17 * Add legacy clocks for SCI for SoCs that do not yet have CCF support. This is to allow SCI (serial) devices to be enabled using DT and will be removed after CCF support is added for each SoC. ---------------------------------------------------------------- Simon Horman (4): ARM: shmobile: r8a7778: add SCI clock support for DT ARM: shmobile: r8a73a4: add SCI clock support for DT ARM: shmobile: r8a7740: correct SCI clock support for DT ARM: shmobile: sh73a0: add SCI clock support for DT arch/arm/mach-shmobile/clock-r8a73a4.c | 6 ++++++ arch/arm/mach-shmobile/clock-r8a7740.c | 18 +++++++++--------- arch/arm/mach-shmobile/clock-r8a7778.c | 6 ++++++ arch/arm/mach-shmobile/clock-sh73a0.c | 9 +++++++++ 4 files changed, 30 insertions(+), 9 deletions(-) ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH 2/4] ARM: shmobile: r8a73a4: add SCI clock support for DT 2014-07-15 9:16 ` Simon Horman @ 2014-07-15 9:16 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-07-15 9:16 UTC (permalink / raw) To: linux-arm-kernel This will be used when initialising SCI devices using DT until common clock framework support is added. Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/clock-r8a73a4.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/mach-shmobile/clock-r8a73a4.c b/arch/arm/mach-shmobile/clock-r8a73a4.c index b5bc22c..1d2fe05 100644 --- a/arch/arm/mach-shmobile/clock-r8a73a4.c +++ b/arch/arm/mach-shmobile/clock-r8a73a4.c @@ -574,11 +574,17 @@ static struct clk_lookup lookups[] = { /* MSTP */ CLKDEV_DEV_ID("sh-sci.0", &mstp_clks[MSTP204]), + CLKDEV_DEV_ID("e6c40000.serial", &mstp_clks[MSTP204]), CLKDEV_DEV_ID("sh-sci.1", &mstp_clks[MSTP203]), + CLKDEV_DEV_ID("e6c50000.serial", &mstp_clks[MSTP203]), CLKDEV_DEV_ID("sh-sci.2", &mstp_clks[MSTP206]), + CLKDEV_DEV_ID("e6c20000.serial", &mstp_clks[MSTP206]), CLKDEV_DEV_ID("sh-sci.3", &mstp_clks[MSTP207]), + CLKDEV_DEV_ID("e6c30000.serial", &mstp_clks[MSTP207]), CLKDEV_DEV_ID("sh-sci.4", &mstp_clks[MSTP216]), + CLKDEV_DEV_ID("e6ce0000.serial", &mstp_clks[MSTP216]), CLKDEV_DEV_ID("sh-sci.5", &mstp_clks[MSTP217]), + CLKDEV_DEV_ID("e6cf0000.serial", &mstp_clks[MSTP217]), CLKDEV_DEV_ID("sh-dma-engine.0", &mstp_clks[MSTP218]), CLKDEV_DEV_ID("e6700020.dma-controller", &mstp_clks[MSTP218]), CLKDEV_DEV_ID("rcar_thermal", &mstp_clks[MSTP522]), -- 2.0.0 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 2/4] ARM: shmobile: r8a73a4: add SCI clock support for DT @ 2014-07-15 9:16 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-07-15 9:16 UTC (permalink / raw) To: linux-arm-kernel This will be used when initialising SCI devices using DT until common clock framework support is added. Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/clock-r8a73a4.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/mach-shmobile/clock-r8a73a4.c b/arch/arm/mach-shmobile/clock-r8a73a4.c index b5bc22c..1d2fe05 100644 --- a/arch/arm/mach-shmobile/clock-r8a73a4.c +++ b/arch/arm/mach-shmobile/clock-r8a73a4.c @@ -574,11 +574,17 @@ static struct clk_lookup lookups[] = { /* MSTP */ CLKDEV_DEV_ID("sh-sci.0", &mstp_clks[MSTP204]), + CLKDEV_DEV_ID("e6c40000.serial", &mstp_clks[MSTP204]), CLKDEV_DEV_ID("sh-sci.1", &mstp_clks[MSTP203]), + CLKDEV_DEV_ID("e6c50000.serial", &mstp_clks[MSTP203]), CLKDEV_DEV_ID("sh-sci.2", &mstp_clks[MSTP206]), + CLKDEV_DEV_ID("e6c20000.serial", &mstp_clks[MSTP206]), CLKDEV_DEV_ID("sh-sci.3", &mstp_clks[MSTP207]), + CLKDEV_DEV_ID("e6c30000.serial", &mstp_clks[MSTP207]), CLKDEV_DEV_ID("sh-sci.4", &mstp_clks[MSTP216]), + CLKDEV_DEV_ID("e6ce0000.serial", &mstp_clks[MSTP216]), CLKDEV_DEV_ID("sh-sci.5", &mstp_clks[MSTP217]), + CLKDEV_DEV_ID("e6cf0000.serial", &mstp_clks[MSTP217]), CLKDEV_DEV_ID("sh-dma-engine.0", &mstp_clks[MSTP218]), CLKDEV_DEV_ID("e6700020.dma-controller", &mstp_clks[MSTP218]), CLKDEV_DEV_ID("rcar_thermal", &mstp_clks[MSTP522]), -- 2.0.0 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 3/4] ARM: shmobile: r8a7740: correct SCI clock support for DT 2014-07-15 9:16 ` Simon Horman @ 2014-07-15 9:16 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-07-15 9:16 UTC (permalink / raw) To: linux-arm-kernel When initialising SCI devices their names will be .serial not .sci. This will be used when initialising SCI devices using DT until common clock framework support is added. Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/clock-r8a7740.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/arch/arm/mach-shmobile/clock-r8a7740.c b/arch/arm/mach-shmobile/clock-r8a7740.c index 50931e3..68592b7 100644 --- a/arch/arm/mach-shmobile/clock-r8a7740.c +++ b/arch/arm/mach-shmobile/clock-r8a7740.c @@ -555,27 +555,27 @@ static struct clk_lookup lookups[] = { CLKDEV_DEV_ID("sh_mobile_ceu.1", &mstp_clks[MSTP128]), CLKDEV_DEV_ID("sh-sci.4", &mstp_clks[MSTP200]), - CLKDEV_DEV_ID("e6c80000.sci", &mstp_clks[MSTP200]), + CLKDEV_DEV_ID("e6c80000.serial", &mstp_clks[MSTP200]), CLKDEV_DEV_ID("sh-sci.3", &mstp_clks[MSTP201]), - CLKDEV_DEV_ID("e6c70000.sci", &mstp_clks[MSTP201]), + CLKDEV_DEV_ID("e6c70000.serial", &mstp_clks[MSTP201]), CLKDEV_DEV_ID("sh-sci.2", &mstp_clks[MSTP202]), - CLKDEV_DEV_ID("e6c60000.sci", &mstp_clks[MSTP202]), + CLKDEV_DEV_ID("e6c60000.serial", &mstp_clks[MSTP202]), CLKDEV_DEV_ID("sh-sci.1", &mstp_clks[MSTP203]), - CLKDEV_DEV_ID("e6c50000.sci", &mstp_clks[MSTP203]), + CLKDEV_DEV_ID("e6c50000.serial", &mstp_clks[MSTP203]), CLKDEV_DEV_ID("sh-sci.0", &mstp_clks[MSTP204]), - CLKDEV_DEV_ID("e6c40000.sci", &mstp_clks[MSTP204]), + CLKDEV_DEV_ID("e6c40000.serial", &mstp_clks[MSTP204]), CLKDEV_DEV_ID("sh-sci.8", &mstp_clks[MSTP206]), - CLKDEV_DEV_ID("e6c30000.sci", &mstp_clks[MSTP206]), + CLKDEV_DEV_ID("e6c30000.serial", &mstp_clks[MSTP206]), CLKDEV_DEV_ID("sh-sci.5", &mstp_clks[MSTP207]), - CLKDEV_DEV_ID("e6cb0000.sci", &mstp_clks[MSTP207]), + CLKDEV_DEV_ID("e6cb0000.serial", &mstp_clks[MSTP207]), CLKDEV_DEV_ID("sh-dma-engine.3", &mstp_clks[MSTP214]), CLKDEV_DEV_ID("sh-dma-engine.2", &mstp_clks[MSTP216]), CLKDEV_DEV_ID("sh-dma-engine.1", &mstp_clks[MSTP217]), CLKDEV_DEV_ID("sh-dma-engine.0", &mstp_clks[MSTP218]), CLKDEV_DEV_ID("sh-sci.7", &mstp_clks[MSTP222]), - CLKDEV_DEV_ID("e6cd0000.sci", &mstp_clks[MSTP222]), + CLKDEV_DEV_ID("e6cd0000.serial", &mstp_clks[MSTP222]), CLKDEV_DEV_ID("sh-sci.6", &mstp_clks[MSTP230]), - CLKDEV_DEV_ID("e6cc0000.sci", &mstp_clks[MSTP230]), + CLKDEV_DEV_ID("e6cc0000.serial", &mstp_clks[MSTP230]), CLKDEV_DEV_ID("sh_fsi2", &mstp_clks[MSTP328]), CLKDEV_DEV_ID("fe1f0000.sound", &mstp_clks[MSTP328]), -- 2.0.0 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 3/4] ARM: shmobile: r8a7740: correct SCI clock support for DT @ 2014-07-15 9:16 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-07-15 9:16 UTC (permalink / raw) To: linux-arm-kernel When initialising SCI devices their names will be .serial not .sci. This will be used when initialising SCI devices using DT until common clock framework support is added. Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/clock-r8a7740.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/arch/arm/mach-shmobile/clock-r8a7740.c b/arch/arm/mach-shmobile/clock-r8a7740.c index 50931e3..68592b7 100644 --- a/arch/arm/mach-shmobile/clock-r8a7740.c +++ b/arch/arm/mach-shmobile/clock-r8a7740.c @@ -555,27 +555,27 @@ static struct clk_lookup lookups[] = { CLKDEV_DEV_ID("sh_mobile_ceu.1", &mstp_clks[MSTP128]), CLKDEV_DEV_ID("sh-sci.4", &mstp_clks[MSTP200]), - CLKDEV_DEV_ID("e6c80000.sci", &mstp_clks[MSTP200]), + CLKDEV_DEV_ID("e6c80000.serial", &mstp_clks[MSTP200]), CLKDEV_DEV_ID("sh-sci.3", &mstp_clks[MSTP201]), - CLKDEV_DEV_ID("e6c70000.sci", &mstp_clks[MSTP201]), + CLKDEV_DEV_ID("e6c70000.serial", &mstp_clks[MSTP201]), CLKDEV_DEV_ID("sh-sci.2", &mstp_clks[MSTP202]), - CLKDEV_DEV_ID("e6c60000.sci", &mstp_clks[MSTP202]), + CLKDEV_DEV_ID("e6c60000.serial", &mstp_clks[MSTP202]), CLKDEV_DEV_ID("sh-sci.1", &mstp_clks[MSTP203]), - CLKDEV_DEV_ID("e6c50000.sci", &mstp_clks[MSTP203]), + CLKDEV_DEV_ID("e6c50000.serial", &mstp_clks[MSTP203]), CLKDEV_DEV_ID("sh-sci.0", &mstp_clks[MSTP204]), - CLKDEV_DEV_ID("e6c40000.sci", &mstp_clks[MSTP204]), + CLKDEV_DEV_ID("e6c40000.serial", &mstp_clks[MSTP204]), CLKDEV_DEV_ID("sh-sci.8", &mstp_clks[MSTP206]), - CLKDEV_DEV_ID("e6c30000.sci", &mstp_clks[MSTP206]), + CLKDEV_DEV_ID("e6c30000.serial", &mstp_clks[MSTP206]), CLKDEV_DEV_ID("sh-sci.5", &mstp_clks[MSTP207]), - CLKDEV_DEV_ID("e6cb0000.sci", &mstp_clks[MSTP207]), + CLKDEV_DEV_ID("e6cb0000.serial", &mstp_clks[MSTP207]), CLKDEV_DEV_ID("sh-dma-engine.3", &mstp_clks[MSTP214]), CLKDEV_DEV_ID("sh-dma-engine.2", &mstp_clks[MSTP216]), CLKDEV_DEV_ID("sh-dma-engine.1", &mstp_clks[MSTP217]), CLKDEV_DEV_ID("sh-dma-engine.0", &mstp_clks[MSTP218]), CLKDEV_DEV_ID("sh-sci.7", &mstp_clks[MSTP222]), - CLKDEV_DEV_ID("e6cd0000.sci", &mstp_clks[MSTP222]), + CLKDEV_DEV_ID("e6cd0000.serial", &mstp_clks[MSTP222]), CLKDEV_DEV_ID("sh-sci.6", &mstp_clks[MSTP230]), - CLKDEV_DEV_ID("e6cc0000.sci", &mstp_clks[MSTP230]), + CLKDEV_DEV_ID("e6cc0000.serial", &mstp_clks[MSTP230]), CLKDEV_DEV_ID("sh_fsi2", &mstp_clks[MSTP328]), CLKDEV_DEV_ID("fe1f0000.sound", &mstp_clks[MSTP328]), -- 2.0.0 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 4/4] ARM: shmobile: sh73a0: add SCI clock support for DT 2014-07-15 9:16 ` Simon Horman @ 2014-07-15 9:16 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-07-15 9:16 UTC (permalink / raw) To: linux-arm-kernel This will be used when initialising SCI devices using DT until common clock framework support is added. Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/clock-sh73a0.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm/mach-shmobile/clock-sh73a0.c b/arch/arm/mach-shmobile/clock-sh73a0.c index 0d9cd1f..4990e03 100644 --- a/arch/arm/mach-shmobile/clock-sh73a0.c +++ b/arch/arm/mach-shmobile/clock-sh73a0.c @@ -638,16 +638,25 @@ static struct clk_lookup lookups[] = { CLKDEV_DEV_ID("e6820000.i2c", &mstp_clks[MSTP116]), /* I2C0 */ CLKDEV_DEV_ID("sh_mobile_lcdc_fb.0", &mstp_clks[MSTP100]), /* LCDC0 */ CLKDEV_DEV_ID("sh-sci.7", &mstp_clks[MSTP219]), /* SCIFA7 */ + CLKDEV_DEV_ID("e6cd0000.serial", &mstp_clks[MSTP219]), /* SCIFA7 */ CLKDEV_DEV_ID("sh-dma-engine.0", &mstp_clks[MSTP218]), /* SY-DMAC */ CLKDEV_DEV_ID("sh-dma-engine.1", &mstp_clks[MSTP217]), /* MP-DMAC */ CLKDEV_DEV_ID("sh-sci.5", &mstp_clks[MSTP207]), /* SCIFA5 */ + CLKDEV_DEV_ID("e6cb0000.serial", &mstp_clks[MSTP207]), /* SCIFA5 */ CLKDEV_DEV_ID("sh-sci.8", &mstp_clks[MSTP206]), /* SCIFB */ + CLKDEV_DEV_ID("0xe6c3000.serial", &mstp_clks[MSTP206]), /* SCIFB */ CLKDEV_DEV_ID("sh-sci.0", &mstp_clks[MSTP204]), /* SCIFA0 */ + CLKDEV_DEV_ID("e6c40000.serial", &mstp_clks[MSTP204]), /* SCIFA0 */ CLKDEV_DEV_ID("sh-sci.1", &mstp_clks[MSTP203]), /* SCIFA1 */ + CLKDEV_DEV_ID("e6c50000.serial", &mstp_clks[MSTP203]), /* SCIFA1 */ CLKDEV_DEV_ID("sh-sci.2", &mstp_clks[MSTP202]), /* SCIFA2 */ + CLKDEV_DEV_ID("e6c60000.serial", &mstp_clks[MSTP202]), /* SCIFA2 */ CLKDEV_DEV_ID("sh-sci.3", &mstp_clks[MSTP201]), /* SCIFA3 */ + CLKDEV_DEV_ID("e6c70000.serial", &mstp_clks[MSTP201]), /* SCIFA3 */ CLKDEV_DEV_ID("sh-sci.4", &mstp_clks[MSTP200]), /* SCIFA4 */ + CLKDEV_DEV_ID("e6c80000.serial", &mstp_clks[MSTP200]), /* SCIFA4 */ CLKDEV_DEV_ID("sh-sci.6", &mstp_clks[MSTP331]), /* SCIFA6 */ + CLKDEV_DEV_ID("e6cc0000.serial", &mstp_clks[MSTP331]), /* SCIFA6 */ CLKDEV_DEV_ID("sh_fsi2", &mstp_clks[MSTP328]), /* FSI */ CLKDEV_DEV_ID("ec230000.sound", &mstp_clks[MSTP328]), /* FSI */ CLKDEV_DEV_ID("sh_irda.0", &mstp_clks[MSTP325]), /* IrDA */ -- 2.0.0 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 4/4] ARM: shmobile: sh73a0: add SCI clock support for DT @ 2014-07-15 9:16 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-07-15 9:16 UTC (permalink / raw) To: linux-arm-kernel This will be used when initialising SCI devices using DT until common clock framework support is added. Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/clock-sh73a0.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm/mach-shmobile/clock-sh73a0.c b/arch/arm/mach-shmobile/clock-sh73a0.c index 0d9cd1f..4990e03 100644 --- a/arch/arm/mach-shmobile/clock-sh73a0.c +++ b/arch/arm/mach-shmobile/clock-sh73a0.c @@ -638,16 +638,25 @@ static struct clk_lookup lookups[] = { CLKDEV_DEV_ID("e6820000.i2c", &mstp_clks[MSTP116]), /* I2C0 */ CLKDEV_DEV_ID("sh_mobile_lcdc_fb.0", &mstp_clks[MSTP100]), /* LCDC0 */ CLKDEV_DEV_ID("sh-sci.7", &mstp_clks[MSTP219]), /* SCIFA7 */ + CLKDEV_DEV_ID("e6cd0000.serial", &mstp_clks[MSTP219]), /* SCIFA7 */ CLKDEV_DEV_ID("sh-dma-engine.0", &mstp_clks[MSTP218]), /* SY-DMAC */ CLKDEV_DEV_ID("sh-dma-engine.1", &mstp_clks[MSTP217]), /* MP-DMAC */ CLKDEV_DEV_ID("sh-sci.5", &mstp_clks[MSTP207]), /* SCIFA5 */ + CLKDEV_DEV_ID("e6cb0000.serial", &mstp_clks[MSTP207]), /* SCIFA5 */ CLKDEV_DEV_ID("sh-sci.8", &mstp_clks[MSTP206]), /* SCIFB */ + CLKDEV_DEV_ID("0xe6c3000.serial", &mstp_clks[MSTP206]), /* SCIFB */ CLKDEV_DEV_ID("sh-sci.0", &mstp_clks[MSTP204]), /* SCIFA0 */ + CLKDEV_DEV_ID("e6c40000.serial", &mstp_clks[MSTP204]), /* SCIFA0 */ CLKDEV_DEV_ID("sh-sci.1", &mstp_clks[MSTP203]), /* SCIFA1 */ + CLKDEV_DEV_ID("e6c50000.serial", &mstp_clks[MSTP203]), /* SCIFA1 */ CLKDEV_DEV_ID("sh-sci.2", &mstp_clks[MSTP202]), /* SCIFA2 */ + CLKDEV_DEV_ID("e6c60000.serial", &mstp_clks[MSTP202]), /* SCIFA2 */ CLKDEV_DEV_ID("sh-sci.3", &mstp_clks[MSTP201]), /* SCIFA3 */ + CLKDEV_DEV_ID("e6c70000.serial", &mstp_clks[MSTP201]), /* SCIFA3 */ CLKDEV_DEV_ID("sh-sci.4", &mstp_clks[MSTP200]), /* SCIFA4 */ + CLKDEV_DEV_ID("e6c80000.serial", &mstp_clks[MSTP200]), /* SCIFA4 */ CLKDEV_DEV_ID("sh-sci.6", &mstp_clks[MSTP331]), /* SCIFA6 */ + CLKDEV_DEV_ID("e6cc0000.serial", &mstp_clks[MSTP331]), /* SCIFA6 */ CLKDEV_DEV_ID("sh_fsi2", &mstp_clks[MSTP328]), /* FSI */ CLKDEV_DEV_ID("ec230000.sound", &mstp_clks[MSTP328]), /* FSI */ CLKDEV_DEV_ID("sh_irda.0", &mstp_clks[MSTP325]), /* IrDA */ -- 2.0.0 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* Re: [PATCH 4/4] ARM: shmobile: sh73a0: add SCI clock support for DT 2014-07-15 9:16 ` Simon Horman @ 2014-07-15 13:19 ` Sergei Shtylyov -1 siblings, 0 replies; 776+ messages in thread From: Sergei Shtylyov @ 2014-07-15 13:19 UTC (permalink / raw) To: linux-arm-kernel Hello. On 07/15/2014 01:16 PM, Simon Horman wrote: > This will be used when initialising SCI devices using DT > until common clock framework support is added. > Signed-off-by: Simon Horman <horms+renesas@verge.net.au> > --- > arch/arm/mach-shmobile/clock-sh73a0.c | 9 +++++++++ > 1 file changed, 9 insertions(+) > diff --git a/arch/arm/mach-shmobile/clock-sh73a0.c b/arch/arm/mach-shmobile/clock-sh73a0.c > index 0d9cd1f..4990e03 100644 > --- a/arch/arm/mach-shmobile/clock-sh73a0.c > +++ b/arch/arm/mach-shmobile/clock-sh73a0.c > @@ -638,16 +638,25 @@ static struct clk_lookup lookups[] = { > CLKDEV_DEV_ID("e6820000.i2c", &mstp_clks[MSTP116]), /* I2C0 */ > CLKDEV_DEV_ID("sh_mobile_lcdc_fb.0", &mstp_clks[MSTP100]), /* LCDC0 */ > CLKDEV_DEV_ID("sh-sci.7", &mstp_clks[MSTP219]), /* SCIFA7 */ > + CLKDEV_DEV_ID("e6cd0000.serial", &mstp_clks[MSTP219]), /* SCIFA7 */ > CLKDEV_DEV_ID("sh-dma-engine.0", &mstp_clks[MSTP218]), /* SY-DMAC */ > CLKDEV_DEV_ID("sh-dma-engine.1", &mstp_clks[MSTP217]), /* MP-DMAC */ > CLKDEV_DEV_ID("sh-sci.5", &mstp_clks[MSTP207]), /* SCIFA5 */ > + CLKDEV_DEV_ID("e6cb0000.serial", &mstp_clks[MSTP207]), /* SCIFA5 */ > CLKDEV_DEV_ID("sh-sci.8", &mstp_clks[MSTP206]), /* SCIFB */ > + CLKDEV_DEV_ID("0xe6c3000.serial", &mstp_clks[MSTP206]), /* SCIFB */ Eh, are you sure there should be "0x"? WBR, Sergei ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH 4/4] ARM: shmobile: sh73a0: add SCI clock support for DT @ 2014-07-15 13:19 ` Sergei Shtylyov 0 siblings, 0 replies; 776+ messages in thread From: Sergei Shtylyov @ 2014-07-15 13:19 UTC (permalink / raw) To: linux-arm-kernel Hello. On 07/15/2014 01:16 PM, Simon Horman wrote: > This will be used when initialising SCI devices using DT > until common clock framework support is added. > Signed-off-by: Simon Horman <horms+renesas@verge.net.au> > --- > arch/arm/mach-shmobile/clock-sh73a0.c | 9 +++++++++ > 1 file changed, 9 insertions(+) > diff --git a/arch/arm/mach-shmobile/clock-sh73a0.c b/arch/arm/mach-shmobile/clock-sh73a0.c > index 0d9cd1f..4990e03 100644 > --- a/arch/arm/mach-shmobile/clock-sh73a0.c > +++ b/arch/arm/mach-shmobile/clock-sh73a0.c > @@ -638,16 +638,25 @@ static struct clk_lookup lookups[] = { > CLKDEV_DEV_ID("e6820000.i2c", &mstp_clks[MSTP116]), /* I2C0 */ > CLKDEV_DEV_ID("sh_mobile_lcdc_fb.0", &mstp_clks[MSTP100]), /* LCDC0 */ > CLKDEV_DEV_ID("sh-sci.7", &mstp_clks[MSTP219]), /* SCIFA7 */ > + CLKDEV_DEV_ID("e6cd0000.serial", &mstp_clks[MSTP219]), /* SCIFA7 */ > CLKDEV_DEV_ID("sh-dma-engine.0", &mstp_clks[MSTP218]), /* SY-DMAC */ > CLKDEV_DEV_ID("sh-dma-engine.1", &mstp_clks[MSTP217]), /* MP-DMAC */ > CLKDEV_DEV_ID("sh-sci.5", &mstp_clks[MSTP207]), /* SCIFA5 */ > + CLKDEV_DEV_ID("e6cb0000.serial", &mstp_clks[MSTP207]), /* SCIFA5 */ > CLKDEV_DEV_ID("sh-sci.8", &mstp_clks[MSTP206]), /* SCIFB */ > + CLKDEV_DEV_ID("0xe6c3000.serial", &mstp_clks[MSTP206]), /* SCIFB */ Eh, are you sure there should be "0x"? WBR, Sergei ^ permalink raw reply [flat|nested] 776+ messages in thread
* Re: [PATCH 4/4] ARM: shmobile: sh73a0: add SCI clock support for DT 2014-07-15 13:19 ` Sergei Shtylyov @ 2014-07-15 23:52 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-07-15 23:52 UTC (permalink / raw) To: linux-arm-kernel On Tue, Jul 15, 2014 at 05:19:37PM +0400, Sergei Shtylyov wrote: > Hello. > > On 07/15/2014 01:16 PM, Simon Horman wrote: > > >This will be used when initialising SCI devices using DT > >until common clock framework support is added. > > >Signed-off-by: Simon Horman <horms+renesas@verge.net.au> > >--- > > arch/arm/mach-shmobile/clock-sh73a0.c | 9 +++++++++ > > 1 file changed, 9 insertions(+) > > >diff --git a/arch/arm/mach-shmobile/clock-sh73a0.c b/arch/arm/mach-shmobile/clock-sh73a0.c > >index 0d9cd1f..4990e03 100644 > >--- a/arch/arm/mach-shmobile/clock-sh73a0.c > >+++ b/arch/arm/mach-shmobile/clock-sh73a0.c > >@@ -638,16 +638,25 @@ static struct clk_lookup lookups[] = { > > CLKDEV_DEV_ID("e6820000.i2c", &mstp_clks[MSTP116]), /* I2C0 */ > > CLKDEV_DEV_ID("sh_mobile_lcdc_fb.0", &mstp_clks[MSTP100]), /* LCDC0 */ > > CLKDEV_DEV_ID("sh-sci.7", &mstp_clks[MSTP219]), /* SCIFA7 */ > >+ CLKDEV_DEV_ID("e6cd0000.serial", &mstp_clks[MSTP219]), /* SCIFA7 */ > > CLKDEV_DEV_ID("sh-dma-engine.0", &mstp_clks[MSTP218]), /* SY-DMAC */ > > CLKDEV_DEV_ID("sh-dma-engine.1", &mstp_clks[MSTP217]), /* MP-DMAC */ > > CLKDEV_DEV_ID("sh-sci.5", &mstp_clks[MSTP207]), /* SCIFA5 */ > >+ CLKDEV_DEV_ID("e6cb0000.serial", &mstp_clks[MSTP207]), /* SCIFA5 */ > > CLKDEV_DEV_ID("sh-sci.8", &mstp_clks[MSTP206]), /* SCIFB */ > >+ CLKDEV_DEV_ID("0xe6c3000.serial", &mstp_clks[MSTP206]), /* SCIFB */ > > Eh, are you sure there should be "0x"? Thanks, I'll clean that up in a follow-up patch. ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH 4/4] ARM: shmobile: sh73a0: add SCI clock support for DT @ 2014-07-15 23:52 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-07-15 23:52 UTC (permalink / raw) To: linux-arm-kernel On Tue, Jul 15, 2014 at 05:19:37PM +0400, Sergei Shtylyov wrote: > Hello. > > On 07/15/2014 01:16 PM, Simon Horman wrote: > > >This will be used when initialising SCI devices using DT > >until common clock framework support is added. > > >Signed-off-by: Simon Horman <horms+renesas@verge.net.au> > >--- > > arch/arm/mach-shmobile/clock-sh73a0.c | 9 +++++++++ > > 1 file changed, 9 insertions(+) > > >diff --git a/arch/arm/mach-shmobile/clock-sh73a0.c b/arch/arm/mach-shmobile/clock-sh73a0.c > >index 0d9cd1f..4990e03 100644 > >--- a/arch/arm/mach-shmobile/clock-sh73a0.c > >+++ b/arch/arm/mach-shmobile/clock-sh73a0.c > >@@ -638,16 +638,25 @@ static struct clk_lookup lookups[] = { > > CLKDEV_DEV_ID("e6820000.i2c", &mstp_clks[MSTP116]), /* I2C0 */ > > CLKDEV_DEV_ID("sh_mobile_lcdc_fb.0", &mstp_clks[MSTP100]), /* LCDC0 */ > > CLKDEV_DEV_ID("sh-sci.7", &mstp_clks[MSTP219]), /* SCIFA7 */ > >+ CLKDEV_DEV_ID("e6cd0000.serial", &mstp_clks[MSTP219]), /* SCIFA7 */ > > CLKDEV_DEV_ID("sh-dma-engine.0", &mstp_clks[MSTP218]), /* SY-DMAC */ > > CLKDEV_DEV_ID("sh-dma-engine.1", &mstp_clks[MSTP217]), /* MP-DMAC */ > > CLKDEV_DEV_ID("sh-sci.5", &mstp_clks[MSTP207]), /* SCIFA5 */ > >+ CLKDEV_DEV_ID("e6cb0000.serial", &mstp_clks[MSTP207]), /* SCIFA5 */ > > CLKDEV_DEV_ID("sh-sci.8", &mstp_clks[MSTP206]), /* SCIFB */ > >+ CLKDEV_DEV_ID("0xe6c3000.serial", &mstp_clks[MSTP206]), /* SCIFB */ > > Eh, are you sure there should be "0x"? Thanks, I'll clean that up in a follow-up patch. ^ permalink raw reply [flat|nested] 776+ messages in thread
* Re: [GIT PULL] Second Round of Renesas ARM Based SoC Clock Updates for v3.17 2014-07-15 9:16 ` Simon Horman @ 2014-07-19 4:31 ` Olof Johansson -1 siblings, 0 replies; 776+ messages in thread From: Olof Johansson @ 2014-07-19 4:31 UTC (permalink / raw) To: linux-arm-kernel On Tue, Jul 15, 2014 at 06:16:22PM +0900, Simon Horman wrote: > Hi Olof, Hi Kevin, Hi Arnd, > > Please consider these second round of Renesas ARM based SoC clock updates for v3.17. > > This pull request is based on the previous round of > such requests, tagged as renesas-clock-for-v3.17, > which you have already pulled into next/soc. > > CCF support for the SoCs in question is being worked on, > so I expect this code to be a temporary measure. > > > The following changes since commit edc8fb1d6ebdfc4efa009073586d3567c3368475: > > ARM: shmobile: Fix device node reference leakage in shmobile_init_delay (2014-06-16 19:52:00 +0900) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-clock2-for-v3.17 > > for you to fetch changes up to ff4ce48e1f163d945c037c1c90ce12950961d91d: > > ARM: shmobile: sh73a0: add SCI clock support for DT (2014-07-12 15:15:39 +0200) Merged, thanks. -Olof ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC Clock Updates for v3.17 @ 2014-07-19 4:31 ` Olof Johansson 0 siblings, 0 replies; 776+ messages in thread From: Olof Johansson @ 2014-07-19 4:31 UTC (permalink / raw) To: linux-arm-kernel On Tue, Jul 15, 2014 at 06:16:22PM +0900, Simon Horman wrote: > Hi Olof, Hi Kevin, Hi Arnd, > > Please consider these second round of Renesas ARM based SoC clock updates for v3.17. > > This pull request is based on the previous round of > such requests, tagged as renesas-clock-for-v3.17, > which you have already pulled into next/soc. > > CCF support for the SoCs in question is being worked on, > so I expect this code to be a temporary measure. > > > The following changes since commit edc8fb1d6ebdfc4efa009073586d3567c3368475: > > ARM: shmobile: Fix device node reference leakage in shmobile_init_delay (2014-06-16 19:52:00 +0900) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-clock2-for-v3.17 > > for you to fetch changes up to ff4ce48e1f163d945c037c1c90ce12950961d91d: > > ARM: shmobile: sh73a0: add SCI clock support for DT (2014-07-12 15:15:39 +0200) Merged, thanks. -Olof ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC Fixes for v3.16 @ 2014-07-24 1:57 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-07-24 1:57 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Hi Kevin, Hi Arnd, Please consider these second round of Renesas ARM based SoC fixes for v3.16. The first round of fixes was prior to the release of v3.16-rc1 so this pull-request is based on v3.16-rc1. I would like this change considered for v3.15-stable. I can handle submitting it there if you like. I do not think it is necessary to consider it for v3.14-stable as although the incorrect code is present there it is not exercised in that release. The following changes since commit 7171511eaec5bf23fb06078f59784a3a0626b38f: Linux 3.16-rc1 (2014-06-15 17:45:28 -1000) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-fixes2-for-v3.16 for you to fetch changes up to c9b227723d051184b9e78f20c75ae2f9d44a6ea2: ARM: shmobile: r8a7791: Fix SD2CKCR register address (2014-07-23 08:55:12 +0900) ---------------------------------------------------------------- Second Round of Renesas ARM Based SoC Fixes for v3.16 * Fix SD2CKCR register address of r8a7791 (R-Car M2) SoC This corrects a bug introduced in v3.14 by 59e79895b9589286 ("ARM: shmobile: r8a7791: Add clocks"). However, it does not manifest in mainline code until SDHI devices were enabled on the Koelsch board in v3.15 by 2c60a7df72711fb8 ("ARM: shmobile: Add SDHI devices for Koelsch DTS"). It also manifests on the Henninger board when SDHI devices were enabled in v3.16-rc1 by 1299df03d7191ab4 ("ARM: shmobile: henninger: add SDHI0/2 DT support") ---------------------------------------------------------------- Shinobu Uehara (1): ARM: shmobile: r8a7791: Fix SD2CKCR register address arch/arm/boot/dts/r8a7791.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC Fixes for v3.16 @ 2014-07-24 1:57 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-07-24 1:57 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Hi Kevin, Hi Arnd, Please consider these second round of Renesas ARM based SoC fixes for v3.16. The first round of fixes was prior to the release of v3.16-rc1 so this pull-request is based on v3.16-rc1. I would like this change considered for v3.15-stable. I can handle submitting it there if you like. I do not think it is necessary to consider it for v3.14-stable as although the incorrect code is present there it is not exercised in that release. The following changes since commit 7171511eaec5bf23fb06078f59784a3a0626b38f: Linux 3.16-rc1 (2014-06-15 17:45:28 -1000) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-fixes2-for-v3.16 for you to fetch changes up to c9b227723d051184b9e78f20c75ae2f9d44a6ea2: ARM: shmobile: r8a7791: Fix SD2CKCR register address (2014-07-23 08:55:12 +0900) ---------------------------------------------------------------- Second Round of Renesas ARM Based SoC Fixes for v3.16 * Fix SD2CKCR register address of r8a7791 (R-Car M2) SoC This corrects a bug introduced in v3.14 by 59e79895b9589286 ("ARM: shmobile: r8a7791: Add clocks"). However, it does not manifest in mainline code until SDHI devices were enabled on the Koelsch board in v3.15 by 2c60a7df72711fb8 ("ARM: shmobile: Add SDHI devices for Koelsch DTS"). It also manifests on the Henninger board when SDHI devices were enabled in v3.16-rc1 by 1299df03d7191ab4 ("ARM: shmobile: henninger: add SDHI0/2 DT support") ---------------------------------------------------------------- Shinobu Uehara (1): ARM: shmobile: r8a7791: Fix SD2CKCR register address arch/arm/boot/dts/r8a7791.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH] ARM: shmobile: r8a7791: Fix SD2CKCR register address 2014-07-24 1:57 ` Simon Horman @ 2014-07-24 1:57 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-07-24 1:57 UTC (permalink / raw) To: linux-arm-kernel From: Shinobu Uehara <shinobu.uehara.xc@renesas.com> 59e79895b95892863617ce630fbda467f2470575 (ARM: shmobile: r8a7791: Add clocks) added r8a7791 SD clocks when v3.14. 2c60a7df72711fb8b4be1e6aa651ab166a8931bc (ARM: shmobile: Add SDHI devices for Koelsch DTS) enabled SD on r8a7791 Koelsch when v3.15. 1299df03d7191ab4356c995dde8b912d3c8922e9 (ARM: shmobile: henninger: add SDHI0/2 DT support) enable SD on r8a7791 Henninger when v3.16. But r8a7791 SD clock had wrong address. This patch fixup it. [Kuninori Morimoto: tidyup for upstreaming] Signed-off-by: Shinobu Uehara <shinobu.uehara.xc@renesas.com> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/r8a7791.dtsi b/arch/arm/boot/dts/r8a7791.dtsi index 8d7ffae..79f68ac 100644 --- a/arch/arm/boot/dts/r8a7791.dtsi +++ b/arch/arm/boot/dts/r8a7791.dtsi @@ -540,9 +540,9 @@ #clock-cells = <0>; clock-output-names = "sd1"; }; - sd2_clk: sd3_clk@e615007c { + sd2_clk: sd3_clk@e615026c { compatible = "renesas,r8a7791-div6-clock", "renesas,cpg-div6-clock"; - reg = <0 0xe615007c 0 4>; + reg = <0 0xe615026c 0 4>; clocks = <&pll1_div2_clk>; #clock-cells = <0>; clock-output-names = "sd2"; -- 2.0.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH] ARM: shmobile: r8a7791: Fix SD2CKCR register address @ 2014-07-24 1:57 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-07-24 1:57 UTC (permalink / raw) To: linux-arm-kernel From: Shinobu Uehara <shinobu.uehara.xc@renesas.com> 59e79895b95892863617ce630fbda467f2470575 (ARM: shmobile: r8a7791: Add clocks) added r8a7791 SD clocks when v3.14. 2c60a7df72711fb8b4be1e6aa651ab166a8931bc (ARM: shmobile: Add SDHI devices for Koelsch DTS) enabled SD on r8a7791 Koelsch when v3.15. 1299df03d7191ab4356c995dde8b912d3c8922e9 (ARM: shmobile: henninger: add SDHI0/2 DT support) enable SD on r8a7791 Henninger when v3.16. But r8a7791 SD clock had wrong address. This patch fixup it. [Kuninori Morimoto: tidyup for upstreaming] Signed-off-by: Shinobu Uehara <shinobu.uehara.xc@renesas.com> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/r8a7791.dtsi b/arch/arm/boot/dts/r8a7791.dtsi index 8d7ffae..79f68ac 100644 --- a/arch/arm/boot/dts/r8a7791.dtsi +++ b/arch/arm/boot/dts/r8a7791.dtsi @@ -540,9 +540,9 @@ #clock-cells = <0>; clock-output-names = "sd1"; }; - sd2_clk: sd3_clk at e615007c { + sd2_clk: sd3_clk at e615026c { compatible = "renesas,r8a7791-div6-clock", "renesas,cpg-div6-clock"; - reg = <0 0xe615007c 0 4>; + reg = <0 0xe615026c 0 4>; clocks = <&pll1_div2_clk>; #clock-cells = <0>; clock-output-names = "sd2"; -- 2.0.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC Shdma Updates for v3.17 2013-10-08 9:05 ` Simon Horman ` (25 preceding siblings ...) (?) @ 2014-07-31 0:34 ` Simon Horman 2014-07-31 0:34 ` Simon Horman -1 siblings, 1 reply; 776+ messages in thread From: Simon Horman @ 2014-07-31 0:34 UTC (permalink / raw) To: linux-sh Hi Vinod, Please consider these second round of Renesas ARM based SoC shdma updates for v3.17. This pull request is based on the previous round of such requests, tagged as renesas-shdma-for-v3.17, which you have already pulled. The following changes since commit 0cdbee33ea42bfd5f61f824e258a1a0944dd2a27: dmaengine: shdma: Use defines instead of hardcoded numbers (2014-07-15 18:02:29 +0900) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-shdma2-for-v3.17 for you to fetch changes up to dff5450f372ee87b5e0b5762b3ca8944dae8bf7e: dma/sh: fix rcar-dma.c printk format warnings (2014-07-29 10:24:52 +0900) ---------------------------------------------------------------- Second Round of Renesas ARM Based SoC Shdma Updates for v3.17 * R-Car Gen2 DMA Controller driver ---------------------------------------------------------------- Laurent Pinchart (5): dmaengine: sh: Rework Kconfig and Makefile dmaengine: shdma: Make channel filter ignore unrelated devices dmaengine: shdma: Allocate cyclic sg list dynamically dmaengine: rcar-dmac: Add device tree bindings documentation dmaengine: rcar-dmac: Add Renesas R-Car Gen2 DMA Controller (DMAC) driver Randy Dunlap (1): dma/sh: fix rcar-dma.c printk format warnings .../devicetree/bindings/dma/renesas,rcar-dmac.txt | 98 ++ drivers/dma/sh/Kconfig | 30 +- drivers/dma/sh/Makefile | 17 +- drivers/dma/sh/rcar-dmac.c | 1525 ++++++++++++++++++++ drivers/dma/sh/shdma-base.c | 101 +- drivers/dma/sh/shdma.h | 2 +- 6 files changed, 1723 insertions(+), 50 deletions(-) create mode 100644 Documentation/devicetree/bindings/dma/renesas,rcar-dmac.txt create mode 100644 drivers/dma/sh/rcar-dmac.c ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH 4/6] dmaengine: rcar-dmac: Add device tree bindings documentation 2014-07-31 0:34 ` [GIT PULL] Second Round of Renesas ARM Based SoC Shdma Updates for v3.17 Simon Horman @ 2014-07-31 0:34 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-07-31 0:34 UTC (permalink / raw) To: Vinod Koul Cc: dmaengine, linux-sh, Magnus Damm, Laurent Pinchart, devicetree, Simon Horman From: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Document the device tree bindings for the R-Car Generation 2 DMA Controller (DMAC). Cc: devicetree@vger.kernel.org Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- .../devicetree/bindings/dma/renesas,rcar-dmac.txt | 98 ++++++++++++++++++++++ 1 file changed, 98 insertions(+) create mode 100644 Documentation/devicetree/bindings/dma/renesas,rcar-dmac.txt diff --git a/Documentation/devicetree/bindings/dma/renesas,rcar-dmac.txt b/Documentation/devicetree/bindings/dma/renesas,rcar-dmac.txt new file mode 100644 index 0000000..df0f48b --- /dev/null +++ b/Documentation/devicetree/bindings/dma/renesas,rcar-dmac.txt @@ -0,0 +1,98 @@ +* Renesas R-Car DMA Controller Device Tree bindings + +Renesas R-Car Generation 2 SoCs have have multiple multi-channel DMA +controller instances named DMAC capable of serving multiple clients. Channels +can be dedicated to specific clients or shared between a large number of +clients. + +DMA clients are connected to the DMAC ports referenced by an 8-bit identifier +called MID/RID. + +Each DMA client is connected to one dedicated port of the DMAC, identified by +an 8-bit port number called the MID/RID. A DMA controller can thus serve up to +256 clients in total. When the number of hardware channels is lower than the +number of clients to be served, channels must be shared between multiple DMA +clients. The association of DMA clients to DMAC channels is fully dynamic and +not described in these device tree bindings. + +Required Properties: + +- compatible: must contain "renesas,rcar-dmac" + +- reg: base address and length of the registers block for the DMAC + +- interrupts: interrupt specifiers for the DMAC, one for each entry in + interrupt-names. +- interrupt-names: one entry per channel, named "ch%u", where %u is the + channel number ranging from zero to the number of channels minus one. + +- clock-names: "fck" for the functional clock +- clocks: a list of phandle + clock-specifier pairs, one for each entry + in clock-names. +- clock-names: must contain "fck" for the functional clock. + +- #dma-cells: must be <1>, the cell specifies the MID/RID of the DMAC port + connected to the DMA client +- dma-channels: number of DMA channels + +Example: R8A7790 (R-Car H2) SYS-DMACs + + dmac0: dma-controller@e6700000 { + compatible = "renesas,rcar-dmac"; + reg = <0 0xe6700000 0 0x20000>; + interrupts = <0 197 IRQ_TYPE_LEVEL_HIGH + 0 200 IRQ_TYPE_LEVEL_HIGH + 0 201 IRQ_TYPE_LEVEL_HIGH + 0 202 IRQ_TYPE_LEVEL_HIGH + 0 203 IRQ_TYPE_LEVEL_HIGH + 0 204 IRQ_TYPE_LEVEL_HIGH + 0 205 IRQ_TYPE_LEVEL_HIGH + 0 206 IRQ_TYPE_LEVEL_HIGH + 0 207 IRQ_TYPE_LEVEL_HIGH + 0 208 IRQ_TYPE_LEVEL_HIGH + 0 209 IRQ_TYPE_LEVEL_HIGH + 0 210 IRQ_TYPE_LEVEL_HIGH + 0 211 IRQ_TYPE_LEVEL_HIGH + 0 212 IRQ_TYPE_LEVEL_HIGH + 0 213 IRQ_TYPE_LEVEL_HIGH + 0 214 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "error", + "ch0", "ch1", "ch2", "ch3", + "ch4", "ch5", "ch6", "ch7", + "ch8", "ch9", "ch10", "ch11", + "ch12", "ch13", "ch14"; + clocks = <&mstp2_clks R8A7790_CLK_SYS_DMAC0>; + clock-names = "fck"; + #dma-cells = <1>; + dma-channels = <15>; + }; + + dmac1: dma-controller@e6720000 { + compatible = "renesas,rcar-dmac"; + reg = <0 0xe6720000 0 0x20000>; + interrupts = <0 220 IRQ_TYPE_LEVEL_HIGH + 0 216 IRQ_TYPE_LEVEL_HIGH + 0 217 IRQ_TYPE_LEVEL_HIGH + 0 218 IRQ_TYPE_LEVEL_HIGH + 0 219 IRQ_TYPE_LEVEL_HIGH + 0 308 IRQ_TYPE_LEVEL_HIGH + 0 309 IRQ_TYPE_LEVEL_HIGH + 0 310 IRQ_TYPE_LEVEL_HIGH + 0 311 IRQ_TYPE_LEVEL_HIGH + 0 312 IRQ_TYPE_LEVEL_HIGH + 0 313 IRQ_TYPE_LEVEL_HIGH + 0 314 IRQ_TYPE_LEVEL_HIGH + 0 315 IRQ_TYPE_LEVEL_HIGH + 0 316 IRQ_TYPE_LEVEL_HIGH + 0 317 IRQ_TYPE_LEVEL_HIGH + 0 318 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "error", + "ch0", "ch1", "ch2", "ch3", + "ch4", "ch5", "ch6", "ch7", + "ch8", "ch9", "ch10", "ch11", + "ch12", "ch13", "ch14"; + clocks = <&mstp2_clks R8A7790_CLK_SYS_DMAC1>; + clock-names = "fck"; + #dma-cells = <1>; + dma-channels = <15>; + }; -- 2.0.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 4/6] dmaengine: rcar-dmac: Add device tree bindings documentation @ 2014-07-31 0:34 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-07-31 0:34 UTC (permalink / raw) To: Vinod Koul Cc: dmaengine, linux-sh, Magnus Damm, Laurent Pinchart, devicetree, Simon Horman From: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Document the device tree bindings for the R-Car Generation 2 DMA Controller (DMAC). Cc: devicetree@vger.kernel.org Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- .../devicetree/bindings/dma/renesas,rcar-dmac.txt | 98 ++++++++++++++++++++++ 1 file changed, 98 insertions(+) create mode 100644 Documentation/devicetree/bindings/dma/renesas,rcar-dmac.txt diff --git a/Documentation/devicetree/bindings/dma/renesas,rcar-dmac.txt b/Documentation/devicetree/bindings/dma/renesas,rcar-dmac.txt new file mode 100644 index 0000000..df0f48b --- /dev/null +++ b/Documentation/devicetree/bindings/dma/renesas,rcar-dmac.txt @@ -0,0 +1,98 @@ +* Renesas R-Car DMA Controller Device Tree bindings + +Renesas R-Car Generation 2 SoCs have have multiple multi-channel DMA +controller instances named DMAC capable of serving multiple clients. Channels +can be dedicated to specific clients or shared between a large number of +clients. + +DMA clients are connected to the DMAC ports referenced by an 8-bit identifier +called MID/RID. + +Each DMA client is connected to one dedicated port of the DMAC, identified by +an 8-bit port number called the MID/RID. A DMA controller can thus serve up to +256 clients in total. When the number of hardware channels is lower than the +number of clients to be served, channels must be shared between multiple DMA +clients. The association of DMA clients to DMAC channels is fully dynamic and +not described in these device tree bindings. + +Required Properties: + +- compatible: must contain "renesas,rcar-dmac" + +- reg: base address and length of the registers block for the DMAC + +- interrupts: interrupt specifiers for the DMAC, one for each entry in + interrupt-names. +- interrupt-names: one entry per channel, named "ch%u", where %u is the + channel number ranging from zero to the number of channels minus one. + +- clock-names: "fck" for the functional clock +- clocks: a list of phandle + clock-specifier pairs, one for each entry + in clock-names. +- clock-names: must contain "fck" for the functional clock. + +- #dma-cells: must be <1>, the cell specifies the MID/RID of the DMAC port + connected to the DMA client +- dma-channels: number of DMA channels + +Example: R8A7790 (R-Car H2) SYS-DMACs + + dmac0: dma-controller@e6700000 { + compatible = "renesas,rcar-dmac"; + reg = <0 0xe6700000 0 0x20000>; + interrupts = <0 197 IRQ_TYPE_LEVEL_HIGH + 0 200 IRQ_TYPE_LEVEL_HIGH + 0 201 IRQ_TYPE_LEVEL_HIGH + 0 202 IRQ_TYPE_LEVEL_HIGH + 0 203 IRQ_TYPE_LEVEL_HIGH + 0 204 IRQ_TYPE_LEVEL_HIGH + 0 205 IRQ_TYPE_LEVEL_HIGH + 0 206 IRQ_TYPE_LEVEL_HIGH + 0 207 IRQ_TYPE_LEVEL_HIGH + 0 208 IRQ_TYPE_LEVEL_HIGH + 0 209 IRQ_TYPE_LEVEL_HIGH + 0 210 IRQ_TYPE_LEVEL_HIGH + 0 211 IRQ_TYPE_LEVEL_HIGH + 0 212 IRQ_TYPE_LEVEL_HIGH + 0 213 IRQ_TYPE_LEVEL_HIGH + 0 214 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "error", + "ch0", "ch1", "ch2", "ch3", + "ch4", "ch5", "ch6", "ch7", + "ch8", "ch9", "ch10", "ch11", + "ch12", "ch13", "ch14"; + clocks = <&mstp2_clks R8A7790_CLK_SYS_DMAC0>; + clock-names = "fck"; + #dma-cells = <1>; + dma-channels = <15>; + }; + + dmac1: dma-controller@e6720000 { + compatible = "renesas,rcar-dmac"; + reg = <0 0xe6720000 0 0x20000>; + interrupts = <0 220 IRQ_TYPE_LEVEL_HIGH + 0 216 IRQ_TYPE_LEVEL_HIGH + 0 217 IRQ_TYPE_LEVEL_HIGH + 0 218 IRQ_TYPE_LEVEL_HIGH + 0 219 IRQ_TYPE_LEVEL_HIGH + 0 308 IRQ_TYPE_LEVEL_HIGH + 0 309 IRQ_TYPE_LEVEL_HIGH + 0 310 IRQ_TYPE_LEVEL_HIGH + 0 311 IRQ_TYPE_LEVEL_HIGH + 0 312 IRQ_TYPE_LEVEL_HIGH + 0 313 IRQ_TYPE_LEVEL_HIGH + 0 314 IRQ_TYPE_LEVEL_HIGH + 0 315 IRQ_TYPE_LEVEL_HIGH + 0 316 IRQ_TYPE_LEVEL_HIGH + 0 317 IRQ_TYPE_LEVEL_HIGH + 0 318 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "error", + "ch0", "ch1", "ch2", "ch3", + "ch4", "ch5", "ch6", "ch7", + "ch8", "ch9", "ch10", "ch11", + "ch12", "ch13", "ch14"; + clocks = <&mstp2_clks R8A7790_CLK_SYS_DMAC1>; + clock-names = "fck"; + #dma-cells = <1>; + dma-channels = <15>; + }; -- 2.0.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* Re: [PATCH 4/6] dmaengine: rcar-dmac: Add device tree bindings documentation 2014-07-31 0:34 ` Simon Horman @ 2014-08-04 8:05 ` Geert Uytterhoeven -1 siblings, 0 replies; 776+ messages in thread From: Geert Uytterhoeven @ 2014-08-04 8:05 UTC (permalink / raw) To: Simon Horman Cc: Vinod Koul, dmaengine, Linux-sh list, Magnus Damm, Laurent Pinchart, devicetree On Thu, Jul 31, 2014 at 2:34 AM, Simon Horman <horms+renesas@verge.net.au> wrote: > --- /dev/null > +++ b/Documentation/devicetree/bindings/dma/renesas,rcar-dmac.txt > @@ -0,0 +1,98 @@ > +* Renesas R-Car DMA Controller Device Tree bindings > + > +Renesas R-Car Generation 2 SoCs have have multiple multi-channel DMA > +controller instances named DMAC capable of serving multiple clients. Channels > +can be dedicated to specific clients or shared between a large number of > +clients. > + > +DMA clients are connected to the DMAC ports referenced by an 8-bit identifier > +called MID/RID. I think the above sentence can be removed, as it's superseded by the first sentence of the successive paragraph: > + > +Each DMA client is connected to one dedicated port of the DMAC, identified by > +an 8-bit port number called the MID/RID. A DMA controller can thus serve up to > +256 clients in total. When the number of hardware channels is lower than the > +number of clients to be served, channels must be shared between multiple DMA > +clients. The association of DMA clients to DMAC channels is fully dynamic and > +not described in these device tree bindings. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@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 ^ permalink raw reply [flat|nested] 776+ messages in thread
* Re: [PATCH 4/6] dmaengine: rcar-dmac: Add device tree bindings documentation @ 2014-08-04 8:05 ` Geert Uytterhoeven 0 siblings, 0 replies; 776+ messages in thread From: Geert Uytterhoeven @ 2014-08-04 8:05 UTC (permalink / raw) To: Simon Horman Cc: Vinod Koul, dmaengine, Linux-sh list, Magnus Damm, Laurent Pinchart, devicetree On Thu, Jul 31, 2014 at 2:34 AM, Simon Horman <horms+renesas@verge.net.au> wrote: > --- /dev/null > +++ b/Documentation/devicetree/bindings/dma/renesas,rcar-dmac.txt > @@ -0,0 +1,98 @@ > +* Renesas R-Car DMA Controller Device Tree bindings > + > +Renesas R-Car Generation 2 SoCs have have multiple multi-channel DMA > +controller instances named DMAC capable of serving multiple clients. Channels > +can be dedicated to specific clients or shared between a large number of > +clients. > + > +DMA clients are connected to the DMAC ports referenced by an 8-bit identifier > +called MID/RID. I think the above sentence can be removed, as it's superseded by the first sentence of the successive paragraph: > + > +Each DMA client is connected to one dedicated port of the DMAC, identified by > +an 8-bit port number called the MID/RID. A DMA controller can thus serve up to > +256 clients in total. When the number of hardware channels is lower than the > +number of clients to be served, channels must be shared between multiple DMA > +clients. The association of DMA clients to DMAC channels is fully dynamic and > +not described in these device tree bindings. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@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 ^ permalink raw reply [flat|nested] 776+ messages in thread
* Re: [PATCH 4/6] dmaengine: rcar-dmac: Add device tree bindings documentation 2014-08-04 8:05 ` Geert Uytterhoeven @ 2014-08-04 14:01 ` Laurent Pinchart -1 siblings, 0 replies; 776+ messages in thread From: Laurent Pinchart @ 2014-08-04 14:01 UTC (permalink / raw) To: Geert Uytterhoeven Cc: Simon Horman, Vinod Koul, dmaengine, Linux-sh list, Magnus Damm, Laurent Pinchart, devicetree Hi Geert, Thank you for the review. On Monday 04 August 2014 10:05:49 Geert Uytterhoeven wrote: > On Thu, Jul 31, 2014 at 2:34 AM, Simon Horman wrote: > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/dma/renesas,rcar-dmac.txt > > @@ -0,0 +1,98 @@ > > +* Renesas R-Car DMA Controller Device Tree bindings > > + > > +Renesas R-Car Generation 2 SoCs have have multiple multi-channel DMA > > +controller instances named DMAC capable of serving multiple clients. > > Channels +can be dedicated to specific clients or shared between a large > > number of +clients. > > + > > +DMA clients are connected to the DMAC ports referenced by an 8-bit > > identifier +called MID/RID. > > I think the above sentence can be removed, as it's superseded by the first > sentence of the successive paragraph: I've probably just forgotten to remove the sentence while reworking the documentation. Thanks for reporting it, I'll fix that in the next version. > > + > > +Each DMA client is connected to one dedicated port of the DMAC, > > identified by +an 8-bit port number called the MID/RID. A DMA controller > > can thus serve up to +256 clients in total. When the number of hardware > > channels is lower than the +number of clients to be served, channels must > > be shared between multiple DMA +clients. The association of DMA clients > > to DMAC channels is fully dynamic and +not described in these device tree > > bindings. -- Regards, Laurent Pinchart ^ permalink raw reply [flat|nested] 776+ messages in thread
* Re: [PATCH 4/6] dmaengine: rcar-dmac: Add device tree bindings documentation @ 2014-08-04 14:01 ` Laurent Pinchart 0 siblings, 0 replies; 776+ messages in thread From: Laurent Pinchart @ 2014-08-04 14:01 UTC (permalink / raw) To: Geert Uytterhoeven Cc: Simon Horman, Vinod Koul, dmaengine, Linux-sh list, Magnus Damm, Laurent Pinchart, devicetree Hi Geert, Thank you for the review. On Monday 04 August 2014 10:05:49 Geert Uytterhoeven wrote: > On Thu, Jul 31, 2014 at 2:34 AM, Simon Horman wrote: > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/dma/renesas,rcar-dmac.txt > > @@ -0,0 +1,98 @@ > > +* Renesas R-Car DMA Controller Device Tree bindings > > + > > +Renesas R-Car Generation 2 SoCs have have multiple multi-channel DMA > > +controller instances named DMAC capable of serving multiple clients. > > Channels +can be dedicated to specific clients or shared between a large > > number of +clients. > > + > > +DMA clients are connected to the DMAC ports referenced by an 8-bit > > identifier +called MID/RID. > > I think the above sentence can be removed, as it's superseded by the first > sentence of the successive paragraph: I've probably just forgotten to remove the sentence while reworking the documentation. Thanks for reporting it, I'll fix that in the next version. > > + > > +Each DMA client is connected to one dedicated port of the DMAC, > > identified by +an 8-bit port number called the MID/RID. A DMA controller > > can thus serve up to +256 clients in total. When the number of hardware > > channels is lower than the +number of clients to be served, channels must > > be shared between multiple DMA +clients. The association of DMA clients > > to DMAC channels is fully dynamic and +not described in these device tree > > bindings. -- Regards, Laurent Pinchart ^ permalink raw reply [flat|nested] 776+ messages in thread
* Re: [PATCH 4/6] dmaengine: rcar-dmac: Add device tree bindings documentation 2014-08-04 14:01 ` Laurent Pinchart @ 2014-08-05 1:46 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-08-05 1:46 UTC (permalink / raw) To: Laurent Pinchart Cc: Geert Uytterhoeven, Vinod Koul, dmaengine, Linux-sh list, Magnus Damm, Laurent Pinchart, devicetree On Mon, Aug 04, 2014 at 04:01:42PM +0200, Laurent Pinchart wrote: > Hi Geert, > > Thank you for the review. > > On Monday 04 August 2014 10:05:49 Geert Uytterhoeven wrote: > > On Thu, Jul 31, 2014 at 2:34 AM, Simon Horman wrote: > > > --- /dev/null > > > +++ b/Documentation/devicetree/bindings/dma/renesas,rcar-dmac.txt > > > @@ -0,0 +1,98 @@ > > > +* Renesas R-Car DMA Controller Device Tree bindings > > > + > > > +Renesas R-Car Generation 2 SoCs have have multiple multi-channel DMA > > > +controller instances named DMAC capable of serving multiple clients. > > > Channels +can be dedicated to specific clients or shared between a large > > > number of +clients. > > > + > > > +DMA clients are connected to the DMAC ports referenced by an 8-bit > > > identifier +called MID/RID. > > > > I think the above sentence can be removed, as it's superseded by the first > > sentence of the successive paragraph: > > I've probably just forgotten to remove the sentence while reworking the > documentation. Thanks for reporting it, I'll fix that in the next version. BTW, I believe Vinod has already applied this and the previous three patches of this series to his tree. As he applied then rather than pulling the pull-request I sent I intend to drop the entire series from my tree for now. > > > + > > > +Each DMA client is connected to one dedicated port of the DMAC, > > > identified by +an 8-bit port number called the MID/RID. A DMA controller > > > can thus serve up to +256 clients in total. When the number of hardware > > > channels is lower than the +number of clients to be served, channels must > > > be shared between multiple DMA +clients. The association of DMA clients > > > to DMAC channels is fully dynamic and +not described in these device tree > > > bindings. > > -- > Regards, > > Laurent Pinchart > > -- > To unsubscribe from this list: send the line "unsubscribe linux-sh" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > ^ permalink raw reply [flat|nested] 776+ messages in thread
* Re: [PATCH 4/6] dmaengine: rcar-dmac: Add device tree bindings documentation @ 2014-08-05 1:46 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-08-05 1:46 UTC (permalink / raw) To: Laurent Pinchart Cc: Geert Uytterhoeven, Vinod Koul, dmaengine, Linux-sh list, Magnus Damm, Laurent Pinchart, devicetree On Mon, Aug 04, 2014 at 04:01:42PM +0200, Laurent Pinchart wrote: > Hi Geert, > > Thank you for the review. > > On Monday 04 August 2014 10:05:49 Geert Uytterhoeven wrote: > > On Thu, Jul 31, 2014 at 2:34 AM, Simon Horman wrote: > > > --- /dev/null > > > +++ b/Documentation/devicetree/bindings/dma/renesas,rcar-dmac.txt > > > @@ -0,0 +1,98 @@ > > > +* Renesas R-Car DMA Controller Device Tree bindings > > > + > > > +Renesas R-Car Generation 2 SoCs have have multiple multi-channel DMA > > > +controller instances named DMAC capable of serving multiple clients. > > > Channels +can be dedicated to specific clients or shared between a large > > > number of +clients. > > > + > > > +DMA clients are connected to the DMAC ports referenced by an 8-bit > > > identifier +called MID/RID. > > > > I think the above sentence can be removed, as it's superseded by the first > > sentence of the successive paragraph: > > I've probably just forgotten to remove the sentence while reworking the > documentation. Thanks for reporting it, I'll fix that in the next version. BTW, I believe Vinod has already applied this and the previous three patches of this series to his tree. As he applied then rather than pulling the pull-request I sent I intend to drop the entire series from my tree for now. > > > + > > > +Each DMA client is connected to one dedicated port of the DMAC, > > > identified by +an 8-bit port number called the MID/RID. A DMA controller > > > can thus serve up to +256 clients in total. When the number of hardware > > > channels is lower than the +number of clients to be served, channels must > > > be shared between multiple DMA +clients. The association of DMA clients > > > to DMAC channels is fully dynamic and +not described in these device tree > > > bindings. > > -- > Regards, > > Laurent Pinchart > > -- > To unsubscribe from this list: send the line "unsubscribe linux-sh" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > ^ permalink raw reply [flat|nested] 776+ messages in thread
* Re: [PATCH 4/6] dmaengine: rcar-dmac: Add device tree bindings documentation 2014-08-05 1:46 ` Simon Horman @ 2014-08-05 13:33 ` Laurent Pinchart -1 siblings, 0 replies; 776+ messages in thread From: Laurent Pinchart @ 2014-08-05 13:33 UTC (permalink / raw) To: Simon Horman Cc: Geert Uytterhoeven, Vinod Koul, dmaengine, Linux-sh list, Magnus Damm, Laurent Pinchart, devicetree Hi Simon, On Tuesday 05 August 2014 10:46:42 Simon Horman wrote: > On Mon, Aug 04, 2014 at 04:01:42PM +0200, Laurent Pinchart wrote: > > On Monday 04 August 2014 10:05:49 Geert Uytterhoeven wrote: > >> On Thu, Jul 31, 2014 at 2:34 AM, Simon Horman wrote: > >>> --- /dev/null > >>> +++ b/Documentation/devicetree/bindings/dma/renesas,rcar-dmac.txt > >>> @@ -0,0 +1,98 @@ > >>> +* Renesas R-Car DMA Controller Device Tree bindings > >>> + > >>> +Renesas R-Car Generation 2 SoCs have have multiple multi-channel DMA > >>> +controller instances named DMAC capable of serving multiple clients. > >>> Channels > >>> +can be dedicated to specific clients or shared between a large number > >>> of > >>> +clients. > >>> + > >>> +DMA clients are connected to the DMAC ports referenced by an 8-bit > >>> identifier +called MID/RID. > >> > >> I think the above sentence can be removed, as it's superseded by the > >> first sentence of the successive paragraph: > >> > > I've probably just forgotten to remove the sentence while reworking the > > documentation. Thanks for reporting it, I'll fix that in the next version. > > BTW, I believe Vinod has already applied this and the previous three > patches of this series to his tree. Indeed. I'm surprised to see the DT bindings being merged without the driver, but given that they seem to be OK, that's not a problem. > As he applied then rather than pulling the pull-request I sent I intend > to drop the entire series from my tree for now. Please do. I'll resubmit the remaining patches. -- Regards, Laurent Pinchart ^ permalink raw reply [flat|nested] 776+ messages in thread
* Re: [PATCH 4/6] dmaengine: rcar-dmac: Add device tree bindings documentation @ 2014-08-05 13:33 ` Laurent Pinchart 0 siblings, 0 replies; 776+ messages in thread From: Laurent Pinchart @ 2014-08-05 13:33 UTC (permalink / raw) To: Simon Horman Cc: Geert Uytterhoeven, Vinod Koul, dmaengine, Linux-sh list, Magnus Damm, Laurent Pinchart, devicetree Hi Simon, On Tuesday 05 August 2014 10:46:42 Simon Horman wrote: > On Mon, Aug 04, 2014 at 04:01:42PM +0200, Laurent Pinchart wrote: > > On Monday 04 August 2014 10:05:49 Geert Uytterhoeven wrote: > >> On Thu, Jul 31, 2014 at 2:34 AM, Simon Horman wrote: > >>> --- /dev/null > >>> +++ b/Documentation/devicetree/bindings/dma/renesas,rcar-dmac.txt > >>> @@ -0,0 +1,98 @@ > >>> +* Renesas R-Car DMA Controller Device Tree bindings > >>> + > >>> +Renesas R-Car Generation 2 SoCs have have multiple multi-channel DMA > >>> +controller instances named DMAC capable of serving multiple clients. > >>> Channels > >>> +can be dedicated to specific clients or shared between a large number > >>> of > >>> +clients. > >>> + > >>> +DMA clients are connected to the DMAC ports referenced by an 8-bit > >>> identifier +called MID/RID. > >> > >> I think the above sentence can be removed, as it's superseded by the > >> first sentence of the successive paragraph: > >> > > I've probably just forgotten to remove the sentence while reworking the > > documentation. Thanks for reporting it, I'll fix that in the next version. > > BTW, I believe Vinod has already applied this and the previous three > patches of this series to his tree. Indeed. I'm surprised to see the DT bindings being merged without the driver, but given that they seem to be OK, that's not a problem. > As he applied then rather than pulling the pull-request I sent I intend > to drop the entire series from my tree for now. Please do. I'll resubmit the remaining patches. -- Regards, Laurent Pinchart ^ permalink raw reply [flat|nested] 776+ messages in thread
* Re: [GIT PULL] Second Round of Renesas ARM Based SoC Shdma Updates for v3.17 2013-10-08 9:05 ` Simon Horman ` (26 preceding siblings ...) (?) @ 2014-07-31 11:59 ` Vinod Koul -1 siblings, 0 replies; 776+ messages in thread From: Vinod Koul @ 2014-07-31 11:59 UTC (permalink / raw) To: linux-sh On Thu, Jul 31, 2014 at 09:34:03AM +0900, Simon Horman wrote: > Hi Vinod, > > Please consider these second round of Renesas ARM based SoC shdma updates > for v3.17. > > This pull request is based on the previous round of > such requests, tagged as renesas-shdma-for-v3.17, > which you have already pulled. Thanks for collating all the sh- patches. I didnt merge this one as I have some questions about the new driver. I have applied the rest of 4 patches. Btw are there any more pending patches for sh-, if so please do let me know. -- ~Vinod > > > The following changes since commit 0cdbee33ea42bfd5f61f824e258a1a0944dd2a27: > > dmaengine: shdma: Use defines instead of hardcoded numbers (2014-07-15 18:02:29 +0900) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-shdma2-for-v3.17 > > for you to fetch changes up to dff5450f372ee87b5e0b5762b3ca8944dae8bf7e: > > dma/sh: fix rcar-dma.c printk format warnings (2014-07-29 10:24:52 +0900) > > ---------------------------------------------------------------- > Second Round of Renesas ARM Based SoC Shdma Updates for v3.17 > > * R-Car Gen2 DMA Controller driver > > ---------------------------------------------------------------- > Laurent Pinchart (5): > dmaengine: sh: Rework Kconfig and Makefile > dmaengine: shdma: Make channel filter ignore unrelated devices > dmaengine: shdma: Allocate cyclic sg list dynamically > dmaengine: rcar-dmac: Add device tree bindings documentation > dmaengine: rcar-dmac: Add Renesas R-Car Gen2 DMA Controller (DMAC) driver > > Randy Dunlap (1): > dma/sh: fix rcar-dma.c printk format warnings > > .../devicetree/bindings/dma/renesas,rcar-dmac.txt | 98 ++ > drivers/dma/sh/Kconfig | 30 +- > drivers/dma/sh/Makefile | 17 +- > drivers/dma/sh/rcar-dmac.c | 1525 ++++++++++++++++++++ > drivers/dma/sh/shdma-base.c | 101 +- > drivers/dma/sh/shdma.h | 2 +- > 6 files changed, 1723 insertions(+), 50 deletions(-) > create mode 100644 Documentation/devicetree/bindings/dma/renesas,rcar-dmac.txt > create mode 100644 drivers/dma/sh/rcar-dmac.c -- ^ permalink raw reply [flat|nested] 776+ messages in thread
* Re: [GIT PULL] Second Round of Renesas ARM Based SoC Shdma Updates for v3.17 2013-10-08 9:05 ` Simon Horman ` (27 preceding siblings ...) (?) @ 2014-08-01 4:12 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-08-01 4:12 UTC (permalink / raw) To: linux-sh On Thu, Jul 31, 2014 at 05:17:47PM +0530, Vinod Koul wrote: > On Thu, Jul 31, 2014 at 09:34:03AM +0900, Simon Horman wrote: > > Hi Vinod, > > > > Please consider these second round of Renesas ARM based SoC shdma updates > > for v3.17. > > > > This pull request is based on the previous round of > > such requests, tagged as renesas-shdma-for-v3.17, > > which you have already pulled. > > Thanks for collating all the sh- patches. > > I didnt merge this one as I have some questions about the new driver. I have > applied the rest of 4 patches. Thanks, I will let Laurent respond to that. > Btw are there any more pending patches for sh-, if so please do let me know. No, I do not have any more patches at this time. ^ permalink raw reply [flat|nested] 776+ messages in thread
* Re: [GIT PULL] Second Round of Renesas ARM Based SoC Shdma Updates for v3.17 2013-10-08 9:05 ` Simon Horman ` (28 preceding siblings ...) (?) @ 2014-08-01 16:49 ` Vinod Koul -1 siblings, 0 replies; 776+ messages in thread From: Vinod Koul @ 2014-08-01 16:49 UTC (permalink / raw) To: linux-sh On Fri, Aug 01, 2014 at 01:12:31PM +0900, Simon Horman wrote: > On Thu, Jul 31, 2014 at 05:17:47PM +0530, Vinod Koul wrote: > > On Thu, Jul 31, 2014 at 09:34:03AM +0900, Simon Horman wrote: > > > Hi Vinod, > > > > > > Please consider these second round of Renesas ARM based SoC shdma updates > > > for v3.17. > > > > > > This pull request is based on the previous round of > > > such requests, tagged as renesas-shdma-for-v3.17, > > > which you have already pulled. > > > > Thanks for collating all the sh- patches. > > > > I didnt merge this one as I have some questions about the new driver. I have > > applied the rest of 4 patches. > > Thanks, I will let Laurent respond to that. > > > Btw are there any more pending patches for sh-, if so please do let me know. > > No, I do not have any more patches at this time. Thanks for confirmation. I will clean up the queue of sh- patches -- ~Vinod ^ permalink raw reply [flat|nested] 776+ messages in thread
* Re: [GIT PULL] Second Round of Renesas ARM Based SoC Shdma Updates for v3.17 2013-10-08 9:05 ` Simon Horman ` (29 preceding siblings ...) (?) @ 2014-08-04 7:08 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-08-04 7:08 UTC (permalink / raw) To: linux-sh On Fri, Aug 01, 2014 at 10:07:43PM +0530, Vinod Koul wrote: > On Fri, Aug 01, 2014 at 01:12:31PM +0900, Simon Horman wrote: > > On Thu, Jul 31, 2014 at 05:17:47PM +0530, Vinod Koul wrote: > > > On Thu, Jul 31, 2014 at 09:34:03AM +0900, Simon Horman wrote: > > > > Hi Vinod, > > > > > > > > Please consider these second round of Renesas ARM based SoC shdma updates > > > > for v3.17. > > > > > > > > This pull request is based on the previous round of > > > > such requests, tagged as renesas-shdma-for-v3.17, > > > > which you have already pulled. > > > > > > Thanks for collating all the sh- patches. > > > > > > I didnt merge this one as I have some questions about the new driver. I have > > > applied the rest of 4 patches. > > > > Thanks, I will let Laurent respond to that. > > > > > Btw are there any more pending patches for sh-, if so please do let me know. > > > > No, I do not have any more patches at this time. > Thanks for confirmation. > > I will clean up the queue of sh- patches Thanks. Let me know if there is anything that I can do to help. ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round Of Renesas ARM Based SoC Defconfig Updates For v3.18 @ 2014-08-25 1:09 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-08-25 1:09 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Hi Kevin, Hi Arnd, Please consider these second round of Renesas ARM based SoC defconfig updates for v3.18. This pull request is based on the previous round of such requests, tagged as renesas-defconfig-for-v3.18, which I have already sent a pull-request for. The following changes since commit 874ee23c83d888f8824305c277e047c7799f30b9: ARM: shmobile: defconfig: enable initrd (2014-08-18 08:07:38 +0900) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-defconfig2-for-v3.18 for you to fetch changes up to 99923753e7c17a9c9d46bfe4d7fa543e426ec647: ARM: shmobile: bockw: Do not disable SUSPEND in defconfig (2014-08-22 10:40:31 +0900) ---------------------------------------------------------------- Second Round Of Renesas ARM Based SoC Defconfig Updates For v3.18 * Do not disable SUSPEND in Bockw defconfig - Suspend to ram is now supported ---------------------------------------------------------------- Simon Horman (1): ARM: shmobile: bockw: Do not disable SUSPEND in defconfig arch/arm/configs/bockw_defconfig | 1 - 1 file changed, 1 deletion(-) ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round Of Renesas ARM Based SoC Defconfig Updates For v3.18 @ 2014-08-25 1:09 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-08-25 1:09 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Hi Kevin, Hi Arnd, Please consider these second round of Renesas ARM based SoC defconfig updates for v3.18. This pull request is based on the previous round of such requests, tagged as renesas-defconfig-for-v3.18, which I have already sent a pull-request for. The following changes since commit 874ee23c83d888f8824305c277e047c7799f30b9: ARM: shmobile: defconfig: enable initrd (2014-08-18 08:07:38 +0900) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-defconfig2-for-v3.18 for you to fetch changes up to 99923753e7c17a9c9d46bfe4d7fa543e426ec647: ARM: shmobile: bockw: Do not disable SUSPEND in defconfig (2014-08-22 10:40:31 +0900) ---------------------------------------------------------------- Second Round Of Renesas ARM Based SoC Defconfig Updates For v3.18 * Do not disable SUSPEND in Bockw defconfig - Suspend to ram is now supported ---------------------------------------------------------------- Simon Horman (1): ARM: shmobile: bockw: Do not disable SUSPEND in defconfig arch/arm/configs/bockw_defconfig | 1 - 1 file changed, 1 deletion(-) ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH] ARM: shmobile: bockw: Do not disable SUSPEND in defconfig 2014-08-25 1:09 ` Simon Horman @ 2014-08-25 1:10 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-08-25 1:10 UTC (permalink / raw) To: linux-arm-kernel As of "ARM: shmobile: r8a7778: Add missing call to shmobile_init_late()" suspend-to-ram is now supported on the r8a7778 SoC and thus the bockw board. Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/configs/bockw_defconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/configs/bockw_defconfig b/arch/arm/configs/bockw_defconfig index 70b3f45..1dde5da 100644 --- a/arch/arm/configs/bockw_defconfig +++ b/arch/arm/configs/bockw_defconfig @@ -29,7 +29,6 @@ CONFIG_ZBOOT_ROM_BSS=0x0 CONFIG_ARM_APPENDED_DTB=y CONFIG_VFP=y # CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS is not set -# CONFIG_SUSPEND is not set CONFIG_PM_RUNTIME=y CONFIG_NET=y CONFIG_PACKET=y -- 2.0.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH] ARM: shmobile: bockw: Do not disable SUSPEND in defconfig @ 2014-08-25 1:10 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-08-25 1:10 UTC (permalink / raw) To: linux-arm-kernel As of "ARM: shmobile: r8a7778: Add missing call to shmobile_init_late()" suspend-to-ram is now supported on the r8a7778 SoC and thus the bockw board. Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/configs/bockw_defconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/configs/bockw_defconfig b/arch/arm/configs/bockw_defconfig index 70b3f45..1dde5da 100644 --- a/arch/arm/configs/bockw_defconfig +++ b/arch/arm/configs/bockw_defconfig @@ -29,7 +29,6 @@ CONFIG_ZBOOT_ROM_BSS=0x0 CONFIG_ARM_APPENDED_DTB=y CONFIG_VFP=y # CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS is not set -# CONFIG_SUSPEND is not set CONFIG_PM_RUNTIME=y CONFIG_NET=y CONFIG_PACKET=y -- 2.0.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round Of Renesas ARM Based SoC DT Updates For v3.18 @ 2014-08-25 1:10 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-08-25 1:10 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Hi Kevin, Hi Arnd, Please consider these second round of Renesas ARM based SoC DT updates for v3.18. This pull request is based on the previous round of such requests, tagged as renesas-dt-for-v3.18, which I have already sent a pull-request for. The following changes since commit d594c9775409a4276133db5e34dbd791329c5eae: ARM: shmobile: lager: add VIN1/ADV7180 device nodes (2014-08-17 09:44:07 +0900) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-dt2-for-v3.18 for you to fetch changes up to f170b97c9ad0b8ba3e99f02cbadc7676383fee09: ARM: shmobile: sh73a0 dtsi: Move interrupt-parent to the top (2014-08-22 12:34:53 +0900) ---------------------------------------------------------------- Second Round Of Renesas ARM Based SoC DT Updates For v3.18 * Tidy up interrupt-parents * Add clocks register defines for r8a7740 SoC * Add JPU clock to r8a7791 and r8a7790 SoCs ---------------------------------------------------------------- Geert Uytterhoeven (4): ARM: shmobile: r8a7779 dtsi: Remove superfluous interrupt-parent ARM: shmobile: r8a7790 dtsi: Remove superfluous interrupt-parent ARM: shmobile: r8a7791 dtsi: Remove superfluous interrupt-parent ARM: shmobile: sh73a0 dtsi: Move interrupt-parent to the top Mikhail Ulyanov (2): ARM: shmobile: r8a7790: Add JPU clock dt and CPG define. ARM: shmobile: r8a7791: Add JPU clock dt and CPG define. Ulrich Hecht (1): ARM: shmobile: r8a7740: clock register bits arch/arm/boot/dts/r8a7779.dtsi | 6 --- arch/arm/boot/dts/r8a7790.dtsi | 7 ++- arch/arm/boot/dts/r8a7791.dtsi | 7 ++- arch/arm/boot/dts/sh73a0.dtsi | 24 +--------- include/dt-bindings/clock/r8a7740-clock.h | 77 +++++++++++++++++++++++++++++++ include/dt-bindings/clock/r8a7790-clock.h | 1 + include/dt-bindings/clock/r8a7791-clock.h | 1 + 7 files changed, 86 insertions(+), 37 deletions(-) create mode 100644 include/dt-bindings/clock/r8a7740-clock.h ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round Of Renesas ARM Based SoC DT Updates For v3.18 @ 2014-08-25 1:10 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-08-25 1:10 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Hi Kevin, Hi Arnd, Please consider these second round of Renesas ARM based SoC DT updates for v3.18. This pull request is based on the previous round of such requests, tagged as renesas-dt-for-v3.18, which I have already sent a pull-request for. The following changes since commit d594c9775409a4276133db5e34dbd791329c5eae: ARM: shmobile: lager: add VIN1/ADV7180 device nodes (2014-08-17 09:44:07 +0900) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-dt2-for-v3.18 for you to fetch changes up to f170b97c9ad0b8ba3e99f02cbadc7676383fee09: ARM: shmobile: sh73a0 dtsi: Move interrupt-parent to the top (2014-08-22 12:34:53 +0900) ---------------------------------------------------------------- Second Round Of Renesas ARM Based SoC DT Updates For v3.18 * Tidy up interrupt-parents * Add clocks register defines for r8a7740 SoC * Add JPU clock to r8a7791 and r8a7790 SoCs ---------------------------------------------------------------- Geert Uytterhoeven (4): ARM: shmobile: r8a7779 dtsi: Remove superfluous interrupt-parent ARM: shmobile: r8a7790 dtsi: Remove superfluous interrupt-parent ARM: shmobile: r8a7791 dtsi: Remove superfluous interrupt-parent ARM: shmobile: sh73a0 dtsi: Move interrupt-parent to the top Mikhail Ulyanov (2): ARM: shmobile: r8a7790: Add JPU clock dt and CPG define. ARM: shmobile: r8a7791: Add JPU clock dt and CPG define. Ulrich Hecht (1): ARM: shmobile: r8a7740: clock register bits arch/arm/boot/dts/r8a7779.dtsi | 6 --- arch/arm/boot/dts/r8a7790.dtsi | 7 ++- arch/arm/boot/dts/r8a7791.dtsi | 7 ++- arch/arm/boot/dts/sh73a0.dtsi | 24 +--------- include/dt-bindings/clock/r8a7740-clock.h | 77 +++++++++++++++++++++++++++++++ include/dt-bindings/clock/r8a7790-clock.h | 1 + include/dt-bindings/clock/r8a7791-clock.h | 1 + 7 files changed, 86 insertions(+), 37 deletions(-) create mode 100644 include/dt-bindings/clock/r8a7740-clock.h ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH 1/7] ARM: shmobile: r8a7790: Add JPU clock dt and CPG define. 2014-08-25 1:10 ` Simon Horman @ 2014-08-25 1:10 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-08-25 1:10 UTC (permalink / raw) To: linux-arm-kernel From: Mikhail Ulyanov <mikhail.ulyanov@cogentembedded.com> Signed-off-by: Mikhail Ulyanov <mikhail.ulyanov@cogentembedded.com> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7790.dtsi | 6 +++--- include/dt-bindings/clock/r8a7790-clock.h | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/r8a7790.dtsi b/arch/arm/boot/dts/r8a7790.dtsi index 2278bd0..c11541d 100644 --- a/arch/arm/boot/dts/r8a7790.dtsi +++ b/arch/arm/boot/dts/r8a7790.dtsi @@ -836,17 +836,17 @@ mstp1_clks: mstp1_clks@e6150134 { compatible = "renesas,r8a7790-mstp-clocks", "renesas,cpg-mstp-clocks"; reg = <0 0xe6150134 0 4>, <0 0xe6150038 0 4>; - clocks = <&p_clk>, <&p_clk>, <&p_clk>, <&rclk_clk>, + clocks = <&m2_clk>, <&p_clk>, <&p_clk>, <&p_clk>, <&rclk_clk>, <&cp_clk>, <&zs_clk>, <&zs_clk>, <&zs_clk>, <&zs_clk>; #clock-cells = <1>; renesas,clock-indices = < - R8A7790_CLK_TMU1 R8A7790_CLK_TMU3 R8A7790_CLK_TMU2 + R8A7790_CLK_JPU R8A7790_CLK_TMU1 R8A7790_CLK_TMU3 R8A7790_CLK_TMU2 R8A7790_CLK_CMT0 R8A7790_CLK_TMU0 R8A7790_CLK_VSP1_DU1 R8A7790_CLK_VSP1_DU0 R8A7790_CLK_VSP1_R R8A7790_CLK_VSP1_S >; clock-output-names - "tmu1", "tmu3", "tmu2", "cmt0", "tmu0", "vsp1-du1", + "jpu", "tmu1", "tmu3", "tmu2", "cmt0", "tmu0", "vsp1-du1", "vsp1-du0", "vsp1-rt", "vsp1-sy"; }; mstp2_clks: mstp2_clks@e6150138 { diff --git a/include/dt-bindings/clock/r8a7790-clock.h b/include/dt-bindings/clock/r8a7790-clock.h index f929a79e..8ea7ab0 100644 --- a/include/dt-bindings/clock/r8a7790-clock.h +++ b/include/dt-bindings/clock/r8a7790-clock.h @@ -26,6 +26,7 @@ #define R8A7790_CLK_MSIOF0 0 /* MSTP1 */ +#define R8A7790_CLK_JPU 6 #define R8A7790_CLK_TMU1 11 #define R8A7790_CLK_TMU3 21 #define R8A7790_CLK_TMU2 22 -- 2.0.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 1/7] ARM: shmobile: r8a7790: Add JPU clock dt and CPG define. @ 2014-08-25 1:10 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-08-25 1:10 UTC (permalink / raw) To: linux-arm-kernel From: Mikhail Ulyanov <mikhail.ulyanov@cogentembedded.com> Signed-off-by: Mikhail Ulyanov <mikhail.ulyanov@cogentembedded.com> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7790.dtsi | 6 +++--- include/dt-bindings/clock/r8a7790-clock.h | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/r8a7790.dtsi b/arch/arm/boot/dts/r8a7790.dtsi index 2278bd0..c11541d 100644 --- a/arch/arm/boot/dts/r8a7790.dtsi +++ b/arch/arm/boot/dts/r8a7790.dtsi @@ -836,17 +836,17 @@ mstp1_clks: mstp1_clks at e6150134 { compatible = "renesas,r8a7790-mstp-clocks", "renesas,cpg-mstp-clocks"; reg = <0 0xe6150134 0 4>, <0 0xe6150038 0 4>; - clocks = <&p_clk>, <&p_clk>, <&p_clk>, <&rclk_clk>, + clocks = <&m2_clk>, <&p_clk>, <&p_clk>, <&p_clk>, <&rclk_clk>, <&cp_clk>, <&zs_clk>, <&zs_clk>, <&zs_clk>, <&zs_clk>; #clock-cells = <1>; renesas,clock-indices = < - R8A7790_CLK_TMU1 R8A7790_CLK_TMU3 R8A7790_CLK_TMU2 + R8A7790_CLK_JPU R8A7790_CLK_TMU1 R8A7790_CLK_TMU3 R8A7790_CLK_TMU2 R8A7790_CLK_CMT0 R8A7790_CLK_TMU0 R8A7790_CLK_VSP1_DU1 R8A7790_CLK_VSP1_DU0 R8A7790_CLK_VSP1_R R8A7790_CLK_VSP1_S >; clock-output-names = - "tmu1", "tmu3", "tmu2", "cmt0", "tmu0", "vsp1-du1", + "jpu", "tmu1", "tmu3", "tmu2", "cmt0", "tmu0", "vsp1-du1", "vsp1-du0", "vsp1-rt", "vsp1-sy"; }; mstp2_clks: mstp2_clks at e6150138 { diff --git a/include/dt-bindings/clock/r8a7790-clock.h b/include/dt-bindings/clock/r8a7790-clock.h index f929a79e..8ea7ab0 100644 --- a/include/dt-bindings/clock/r8a7790-clock.h +++ b/include/dt-bindings/clock/r8a7790-clock.h @@ -26,6 +26,7 @@ #define R8A7790_CLK_MSIOF0 0 /* MSTP1 */ +#define R8A7790_CLK_JPU 6 #define R8A7790_CLK_TMU1 11 #define R8A7790_CLK_TMU3 21 #define R8A7790_CLK_TMU2 22 -- 2.0.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 2/7] ARM: shmobile: r8a7791: Add JPU clock dt and CPG define. 2014-08-25 1:10 ` Simon Horman @ 2014-08-25 1:10 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-08-25 1:10 UTC (permalink / raw) To: linux-arm-kernel From: Mikhail Ulyanov <mikhail.ulyanov@cogentembedded.com> Signed-off-by: Mikhail Ulyanov <mikhail.ulyanov@cogentembedded.com> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791.dtsi | 6 +++--- include/dt-bindings/clock/r8a7791-clock.h | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/r8a7791.dtsi b/arch/arm/boot/dts/r8a7791.dtsi index f26226e..d62c237 100644 --- a/arch/arm/boot/dts/r8a7791.dtsi +++ b/arch/arm/boot/dts/r8a7791.dtsi @@ -857,16 +857,16 @@ mstp1_clks: mstp1_clks@e6150134 { compatible = "renesas,r8a7791-mstp-clocks", "renesas,cpg-mstp-clocks"; reg = <0 0xe6150134 0 4>, <0 0xe6150038 0 4>; - clocks = <&p_clk>, <&p_clk>, <&p_clk>, <&rclk_clk>, + clocks = <&m2_clk>, <&p_clk>, <&p_clk>, <&p_clk>, <&rclk_clk>, <&cp_clk>, <&zs_clk>, <&zs_clk>, <&zs_clk>; #clock-cells = <1>; renesas,clock-indices = < - R8A7791_CLK_TMU1 R8A7791_CLK_TMU3 R8A7791_CLK_TMU2 + R8A7791_CLK_JPU R8A7791_CLK_TMU1 R8A7791_CLK_TMU3 R8A7791_CLK_TMU2 R8A7791_CLK_CMT0 R8A7791_CLK_TMU0 R8A7791_CLK_VSP1_DU1 R8A7791_CLK_VSP1_DU0 R8A7791_CLK_VSP1_S >; clock-output-names - "tmu1", "tmu3", "tmu2", "cmt0", "tmu0", "vsp1-du1", + "jpu", "tmu1", "tmu3", "tmu2", "cmt0", "tmu0", "vsp1-du1", "vsp1-du0", "vsp1-sy"; }; mstp2_clks: mstp2_clks@e6150138 { diff --git a/include/dt-bindings/clock/r8a7791-clock.h b/include/dt-bindings/clock/r8a7791-clock.h index f0d4d10..58c3f49 100644 --- a/include/dt-bindings/clock/r8a7791-clock.h +++ b/include/dt-bindings/clock/r8a7791-clock.h @@ -25,6 +25,7 @@ #define R8A7791_CLK_MSIOF0 0 /* MSTP1 */ +#define R8A7791_CLK_JPU 6 #define R8A7791_CLK_TMU1 11 #define R8A7791_CLK_TMU3 21 #define R8A7791_CLK_TMU2 22 -- 2.0.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 2/7] ARM: shmobile: r8a7791: Add JPU clock dt and CPG define. @ 2014-08-25 1:10 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-08-25 1:10 UTC (permalink / raw) To: linux-arm-kernel From: Mikhail Ulyanov <mikhail.ulyanov@cogentembedded.com> Signed-off-by: Mikhail Ulyanov <mikhail.ulyanov@cogentembedded.com> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791.dtsi | 6 +++--- include/dt-bindings/clock/r8a7791-clock.h | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/r8a7791.dtsi b/arch/arm/boot/dts/r8a7791.dtsi index f26226e..d62c237 100644 --- a/arch/arm/boot/dts/r8a7791.dtsi +++ b/arch/arm/boot/dts/r8a7791.dtsi @@ -857,16 +857,16 @@ mstp1_clks: mstp1_clks at e6150134 { compatible = "renesas,r8a7791-mstp-clocks", "renesas,cpg-mstp-clocks"; reg = <0 0xe6150134 0 4>, <0 0xe6150038 0 4>; - clocks = <&p_clk>, <&p_clk>, <&p_clk>, <&rclk_clk>, + clocks = <&m2_clk>, <&p_clk>, <&p_clk>, <&p_clk>, <&rclk_clk>, <&cp_clk>, <&zs_clk>, <&zs_clk>, <&zs_clk>; #clock-cells = <1>; renesas,clock-indices = < - R8A7791_CLK_TMU1 R8A7791_CLK_TMU3 R8A7791_CLK_TMU2 + R8A7791_CLK_JPU R8A7791_CLK_TMU1 R8A7791_CLK_TMU3 R8A7791_CLK_TMU2 R8A7791_CLK_CMT0 R8A7791_CLK_TMU0 R8A7791_CLK_VSP1_DU1 R8A7791_CLK_VSP1_DU0 R8A7791_CLK_VSP1_S >; clock-output-names = - "tmu1", "tmu3", "tmu2", "cmt0", "tmu0", "vsp1-du1", + "jpu", "tmu1", "tmu3", "tmu2", "cmt0", "tmu0", "vsp1-du1", "vsp1-du0", "vsp1-sy"; }; mstp2_clks: mstp2_clks at e6150138 { diff --git a/include/dt-bindings/clock/r8a7791-clock.h b/include/dt-bindings/clock/r8a7791-clock.h index f0d4d10..58c3f49 100644 --- a/include/dt-bindings/clock/r8a7791-clock.h +++ b/include/dt-bindings/clock/r8a7791-clock.h @@ -25,6 +25,7 @@ #define R8A7791_CLK_MSIOF0 0 /* MSTP1 */ +#define R8A7791_CLK_JPU 6 #define R8A7791_CLK_TMU1 11 #define R8A7791_CLK_TMU3 21 #define R8A7791_CLK_TMU2 22 -- 2.0.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 3/7] ARM: shmobile: r8a7740: clock register bits 2014-08-25 1:10 ` Simon Horman @ 2014-08-25 1:10 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-08-25 1:10 UTC (permalink / raw) To: linux-arm-kernel From: Ulrich Hecht <ulrich.hecht+renesas@gmail.com> Contains the header file with the clock pulse generator and MSTP bits. Signed-off-by: Ulrich Hecht <ulrich.hecht+renesas@gmail.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- include/dt-bindings/clock/r8a7740-clock.h | 77 +++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 include/dt-bindings/clock/r8a7740-clock.h diff --git a/include/dt-bindings/clock/r8a7740-clock.h b/include/dt-bindings/clock/r8a7740-clock.h new file mode 100644 index 0000000..f6b4b0f --- /dev/null +++ b/include/dt-bindings/clock/r8a7740-clock.h @@ -0,0 +1,77 @@ +/* + * Copyright 2014 Ulrich Hecht + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + */ + +#ifndef __DT_BINDINGS_CLOCK_R8A7740_H__ +#define __DT_BINDINGS_CLOCK_R8A7740_H__ + +/* CPG */ +#define R8A7740_CLK_SYSTEM 0 +#define R8A7740_CLK_PLLC0 1 +#define R8A7740_CLK_PLLC1 2 +#define R8A7740_CLK_PLLC2 3 +#define R8A7740_CLK_R 4 +#define R8A7740_CLK_USB24S 5 +#define R8A7740_CLK_I 6 +#define R8A7740_CLK_ZG 7 +#define R8A7740_CLK_B 8 +#define R8A7740_CLK_M1 9 +#define R8A7740_CLK_HP 10 +#define R8A7740_CLK_HPP 11 +#define R8A7740_CLK_USBP 12 +#define R8A7740_CLK_S 13 +#define R8A7740_CLK_ZB 14 +#define R8A7740_CLK_M3 15 +#define R8A7740_CLK_CP 16 + +/* MSTP1 */ +#define R8A7740_CLK_CEU21 28 +#define R8A7740_CLK_CEU20 27 +#define R8A7740_CLK_TMU0 25 +#define R8A7740_CLK_LCDC1 17 +#define R8A7740_CLK_IIC0 16 +#define R8A7740_CLK_TMU1 11 +#define R8A7740_CLK_LCDC0 0 + +/* MSTP2 */ +#define R8A7740_CLK_SCIFA6 30 +#define R8A7740_CLK_SCIFA7 22 +#define R8A7740_CLK_DMAC1 18 +#define R8A7740_CLK_DMAC2 17 +#define R8A7740_CLK_DMAC3 16 +#define R8A7740_CLK_USBDMAC 14 +#define R8A7740_CLK_SCIFA5 7 +#define R8A7740_CLK_SCIFB 6 +#define R8A7740_CLK_SCIFA0 4 +#define R8A7740_CLK_SCIFA1 3 +#define R8A7740_CLK_SCIFA2 2 +#define R8A7740_CLK_SCIFA3 1 +#define R8A7740_CLK_SCIFA4 0 + +/* MSTP3 */ +#define R8A7740_CLK_CMT1 29 +#define R8A7740_CLK_FSI 28 +#define R8A7740_CLK_IIC1 23 +#define R8A7740_CLK_USBF 20 +#define R8A7740_CLK_SDHI0 14 +#define R8A7740_CLK_SDHI1 13 +#define R8A7740_CLK_MMC 12 +#define R8A7740_CLK_GETHER 9 +#define R8A7740_CLK_TPU0 4 + +/* MSTP4 */ +#define R8A7740_CLK_USBH 16 +#define R8A7740_CLK_SDHI2 15 +#define R8A7740_CLK_USBFUNC 7 +#define R8A7740_CLK_USBPHY 6 + +/* SUBCK* */ +#define R8A7740_CLK_SUBCK 9 +#define R8A7740_CLK_SUBCK2 10 + +#endif /* __DT_BINDINGS_CLOCK_R8A7740_H__ */ -- 2.0.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 3/7] ARM: shmobile: r8a7740: clock register bits @ 2014-08-25 1:10 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-08-25 1:10 UTC (permalink / raw) To: linux-arm-kernel From: Ulrich Hecht <ulrich.hecht+renesas@gmail.com> Contains the header file with the clock pulse generator and MSTP bits. Signed-off-by: Ulrich Hecht <ulrich.hecht+renesas@gmail.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- include/dt-bindings/clock/r8a7740-clock.h | 77 +++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 include/dt-bindings/clock/r8a7740-clock.h diff --git a/include/dt-bindings/clock/r8a7740-clock.h b/include/dt-bindings/clock/r8a7740-clock.h new file mode 100644 index 0000000..f6b4b0f --- /dev/null +++ b/include/dt-bindings/clock/r8a7740-clock.h @@ -0,0 +1,77 @@ +/* + * Copyright 2014 Ulrich Hecht + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + */ + +#ifndef __DT_BINDINGS_CLOCK_R8A7740_H__ +#define __DT_BINDINGS_CLOCK_R8A7740_H__ + +/* CPG */ +#define R8A7740_CLK_SYSTEM 0 +#define R8A7740_CLK_PLLC0 1 +#define R8A7740_CLK_PLLC1 2 +#define R8A7740_CLK_PLLC2 3 +#define R8A7740_CLK_R 4 +#define R8A7740_CLK_USB24S 5 +#define R8A7740_CLK_I 6 +#define R8A7740_CLK_ZG 7 +#define R8A7740_CLK_B 8 +#define R8A7740_CLK_M1 9 +#define R8A7740_CLK_HP 10 +#define R8A7740_CLK_HPP 11 +#define R8A7740_CLK_USBP 12 +#define R8A7740_CLK_S 13 +#define R8A7740_CLK_ZB 14 +#define R8A7740_CLK_M3 15 +#define R8A7740_CLK_CP 16 + +/* MSTP1 */ +#define R8A7740_CLK_CEU21 28 +#define R8A7740_CLK_CEU20 27 +#define R8A7740_CLK_TMU0 25 +#define R8A7740_CLK_LCDC1 17 +#define R8A7740_CLK_IIC0 16 +#define R8A7740_CLK_TMU1 11 +#define R8A7740_CLK_LCDC0 0 + +/* MSTP2 */ +#define R8A7740_CLK_SCIFA6 30 +#define R8A7740_CLK_SCIFA7 22 +#define R8A7740_CLK_DMAC1 18 +#define R8A7740_CLK_DMAC2 17 +#define R8A7740_CLK_DMAC3 16 +#define R8A7740_CLK_USBDMAC 14 +#define R8A7740_CLK_SCIFA5 7 +#define R8A7740_CLK_SCIFB 6 +#define R8A7740_CLK_SCIFA0 4 +#define R8A7740_CLK_SCIFA1 3 +#define R8A7740_CLK_SCIFA2 2 +#define R8A7740_CLK_SCIFA3 1 +#define R8A7740_CLK_SCIFA4 0 + +/* MSTP3 */ +#define R8A7740_CLK_CMT1 29 +#define R8A7740_CLK_FSI 28 +#define R8A7740_CLK_IIC1 23 +#define R8A7740_CLK_USBF 20 +#define R8A7740_CLK_SDHI0 14 +#define R8A7740_CLK_SDHI1 13 +#define R8A7740_CLK_MMC 12 +#define R8A7740_CLK_GETHER 9 +#define R8A7740_CLK_TPU0 4 + +/* MSTP4 */ +#define R8A7740_CLK_USBH 16 +#define R8A7740_CLK_SDHI2 15 +#define R8A7740_CLK_USBFUNC 7 +#define R8A7740_CLK_USBPHY 6 + +/* SUBCK* */ +#define R8A7740_CLK_SUBCK 9 +#define R8A7740_CLK_SUBCK2 10 + +#endif /* __DT_BINDINGS_CLOCK_R8A7740_H__ */ -- 2.0.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 4/7] ARM: shmobile: r8a7779 dtsi: Remove superfluous interrupt-parent 2014-08-25 1:10 ` Simon Horman @ 2014-08-25 1:10 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-08-25 1:10 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> There's already an "interrupt-parent = <&gic>;" at the top, which is inherited by all child nodes, so the "interrupt-parent" properties in the serial nodes can be removed. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Acked-by: Magnus Damm <damm+renesas@opensource.se> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7779.dtsi | 6 ------ 1 file changed, 6 deletions(-) diff --git a/arch/arm/boot/dts/r8a7779.dtsi b/arch/arm/boot/dts/r8a7779.dtsi index 58d0d95..0e64c76 100644 --- a/arch/arm/boot/dts/r8a7779.dtsi +++ b/arch/arm/boot/dts/r8a7779.dtsi @@ -199,7 +199,6 @@ scif0: serial@ffe40000 { compatible = "renesas,scif-r8a7779", "renesas,scif"; reg = <0xffe40000 0x100>; - interrupt-parent = <&gic>; interrupts = <0 88 IRQ_TYPE_LEVEL_HIGH>; clocks = <&cpg_clocks R8A7779_CLK_P>; clock-names = "sci_ick"; @@ -209,7 +208,6 @@ scif1: serial@ffe41000 { compatible = "renesas,scif-r8a7779", "renesas,scif"; reg = <0xffe41000 0x100>; - interrupt-parent = <&gic>; interrupts = <0 89 IRQ_TYPE_LEVEL_HIGH>; clocks = <&cpg_clocks R8A7779_CLK_P>; clock-names = "sci_ick"; @@ -219,7 +217,6 @@ scif2: serial@ffe42000 { compatible = "renesas,scif-r8a7779", "renesas,scif"; reg = <0xffe42000 0x100>; - interrupt-parent = <&gic>; interrupts = <0 90 IRQ_TYPE_LEVEL_HIGH>; clocks = <&cpg_clocks R8A7779_CLK_P>; clock-names = "sci_ick"; @@ -229,7 +226,6 @@ scif3: serial@ffe43000 { compatible = "renesas,scif-r8a7779", "renesas,scif"; reg = <0xffe43000 0x100>; - interrupt-parent = <&gic>; interrupts = <0 91 IRQ_TYPE_LEVEL_HIGH>; clocks = <&cpg_clocks R8A7779_CLK_P>; clock-names = "sci_ick"; @@ -239,7 +235,6 @@ scif4: serial@ffe44000 { compatible = "renesas,scif-r8a7779", "renesas,scif"; reg = <0xffe44000 0x100>; - interrupt-parent = <&gic>; interrupts = <0 92 IRQ_TYPE_LEVEL_HIGH>; clocks = <&cpg_clocks R8A7779_CLK_P>; clock-names = "sci_ick"; @@ -249,7 +244,6 @@ scif5: serial@ffe45000 { compatible = "renesas,scif-r8a7779", "renesas,scif"; reg = <0xffe45000 0x100>; - interrupt-parent = <&gic>; interrupts = <0 93 IRQ_TYPE_LEVEL_HIGH>; clocks = <&cpg_clocks R8A7779_CLK_P>; clock-names = "sci_ick"; -- 2.0.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 4/7] ARM: shmobile: r8a7779 dtsi: Remove superfluous interrupt-parent @ 2014-08-25 1:10 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-08-25 1:10 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> There's already an "interrupt-parent = <&gic>;" at the top, which is inherited by all child nodes, so the "interrupt-parent" properties in the serial nodes can be removed. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Acked-by: Magnus Damm <damm+renesas@opensource.se> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7779.dtsi | 6 ------ 1 file changed, 6 deletions(-) diff --git a/arch/arm/boot/dts/r8a7779.dtsi b/arch/arm/boot/dts/r8a7779.dtsi index 58d0d95..0e64c76 100644 --- a/arch/arm/boot/dts/r8a7779.dtsi +++ b/arch/arm/boot/dts/r8a7779.dtsi @@ -199,7 +199,6 @@ scif0: serial at ffe40000 { compatible = "renesas,scif-r8a7779", "renesas,scif"; reg = <0xffe40000 0x100>; - interrupt-parent = <&gic>; interrupts = <0 88 IRQ_TYPE_LEVEL_HIGH>; clocks = <&cpg_clocks R8A7779_CLK_P>; clock-names = "sci_ick"; @@ -209,7 +208,6 @@ scif1: serial at ffe41000 { compatible = "renesas,scif-r8a7779", "renesas,scif"; reg = <0xffe41000 0x100>; - interrupt-parent = <&gic>; interrupts = <0 89 IRQ_TYPE_LEVEL_HIGH>; clocks = <&cpg_clocks R8A7779_CLK_P>; clock-names = "sci_ick"; @@ -219,7 +217,6 @@ scif2: serial at ffe42000 { compatible = "renesas,scif-r8a7779", "renesas,scif"; reg = <0xffe42000 0x100>; - interrupt-parent = <&gic>; interrupts = <0 90 IRQ_TYPE_LEVEL_HIGH>; clocks = <&cpg_clocks R8A7779_CLK_P>; clock-names = "sci_ick"; @@ -229,7 +226,6 @@ scif3: serial at ffe43000 { compatible = "renesas,scif-r8a7779", "renesas,scif"; reg = <0xffe43000 0x100>; - interrupt-parent = <&gic>; interrupts = <0 91 IRQ_TYPE_LEVEL_HIGH>; clocks = <&cpg_clocks R8A7779_CLK_P>; clock-names = "sci_ick"; @@ -239,7 +235,6 @@ scif4: serial at ffe44000 { compatible = "renesas,scif-r8a7779", "renesas,scif"; reg = <0xffe44000 0x100>; - interrupt-parent = <&gic>; interrupts = <0 92 IRQ_TYPE_LEVEL_HIGH>; clocks = <&cpg_clocks R8A7779_CLK_P>; clock-names = "sci_ick"; @@ -249,7 +244,6 @@ scif5: serial at ffe45000 { compatible = "renesas,scif-r8a7779", "renesas,scif"; reg = <0xffe45000 0x100>; - interrupt-parent = <&gic>; interrupts = <0 93 IRQ_TYPE_LEVEL_HIGH>; clocks = <&cpg_clocks R8A7779_CLK_P>; clock-names = "sci_ick"; -- 2.0.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 5/7] ARM: shmobile: r8a7790 dtsi: Remove superfluous interrupt-parent 2014-08-25 1:10 ` Simon Horman @ 2014-08-25 1:10 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-08-25 1:10 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> There's already an "interrupt-parent = <&gic>;" at the top, which is inherited by all child nodes, so the "interrupt-parent" property in the sound node can be removed. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Acked-by: Magnus Damm <damm+renesas@opensource.se> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7790.dtsi | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/boot/dts/r8a7790.dtsi b/arch/arm/boot/dts/r8a7790.dtsi index c11541d..4b6915a 100644 --- a/arch/arm/boot/dts/r8a7790.dtsi +++ b/arch/arm/boot/dts/r8a7790.dtsi @@ -1126,7 +1126,6 @@ rcar_sound: rcar_sound@0xec500000 { #sound-dai-cells = <1>; compatible = "renesas,rcar_sound-r8a7790", "renesas,rcar_sound-gen2", "renesas,rcar_sound"; - interrupt-parent = <&gic>; reg = <0 0xec500000 0 0x1000>, /* SCU */ <0 0xec5a0000 0 0x100>, /* ADG */ <0 0xec540000 0 0x1000>, /* SSIU */ -- 2.0.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 5/7] ARM: shmobile: r8a7790 dtsi: Remove superfluous interrupt-parent @ 2014-08-25 1:10 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-08-25 1:10 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> There's already an "interrupt-parent = <&gic>;" at the top, which is inherited by all child nodes, so the "interrupt-parent" property in the sound node can be removed. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Acked-by: Magnus Damm <damm+renesas@opensource.se> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7790.dtsi | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/boot/dts/r8a7790.dtsi b/arch/arm/boot/dts/r8a7790.dtsi index c11541d..4b6915a 100644 --- a/arch/arm/boot/dts/r8a7790.dtsi +++ b/arch/arm/boot/dts/r8a7790.dtsi @@ -1126,7 +1126,6 @@ rcar_sound: rcar_sound at 0xec500000 { #sound-dai-cells = <1>; compatible = "renesas,rcar_sound-r8a7790", "renesas,rcar_sound-gen2", "renesas,rcar_sound"; - interrupt-parent = <&gic>; reg = <0 0xec500000 0 0x1000>, /* SCU */ <0 0xec5a0000 0 0x100>, /* ADG */ <0 0xec540000 0 0x1000>, /* SSIU */ -- 2.0.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 6/7] ARM: shmobile: r8a7791 dtsi: Remove superfluous interrupt-parent 2014-08-25 1:10 ` Simon Horman @ 2014-08-25 1:10 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-08-25 1:10 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> There's already an "interrupt-parent = <&gic>;" at the top, which is inherited by all child nodes, so the "interrupt-parent" property in the sound node can be removed. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Acked-by: Magnus Damm <damm+renesas@opensource.se> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791.dtsi | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/boot/dts/r8a7791.dtsi b/arch/arm/boot/dts/r8a7791.dtsi index d62c237..9ee1d41 100644 --- a/arch/arm/boot/dts/r8a7791.dtsi +++ b/arch/arm/boot/dts/r8a7791.dtsi @@ -1124,7 +1124,6 @@ rcar_sound: rcar_sound@0xec500000 { #sound-dai-cells = <1>; compatible = "renesas,rcar_sound-r8a7791", "renesas,rcar_sound-gen2", "renesas,rcar_sound"; - interrupt-parent = <&gic>; reg = <0 0xec500000 0 0x1000>, /* SCU */ <0 0xec5a0000 0 0x100>, /* ADG */ <0 0xec540000 0 0x1000>, /* SSIU */ -- 2.0.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 6/7] ARM: shmobile: r8a7791 dtsi: Remove superfluous interrupt-parent @ 2014-08-25 1:10 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-08-25 1:10 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> There's already an "interrupt-parent = <&gic>;" at the top, which is inherited by all child nodes, so the "interrupt-parent" property in the sound node can be removed. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Acked-by: Magnus Damm <damm+renesas@opensource.se> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791.dtsi | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/boot/dts/r8a7791.dtsi b/arch/arm/boot/dts/r8a7791.dtsi index d62c237..9ee1d41 100644 --- a/arch/arm/boot/dts/r8a7791.dtsi +++ b/arch/arm/boot/dts/r8a7791.dtsi @@ -1124,7 +1124,6 @@ rcar_sound: rcar_sound at 0xec500000 { #sound-dai-cells = <1>; compatible = "renesas,rcar_sound-r8a7791", "renesas,rcar_sound-gen2", "renesas,rcar_sound"; - interrupt-parent = <&gic>; reg = <0 0xec500000 0 0x1000>, /* SCU */ <0 0xec5a0000 0 0x100>, /* ADG */ <0 0xec540000 0 0x1000>, /* SSIU */ -- 2.0.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 7/7] ARM: shmobile: sh73a0 dtsi: Move interrupt-parent to the top 2014-08-25 1:10 ` Simon Horman @ 2014-08-25 1:10 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-08-25 1:10 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> Add an "interrupt-parent = <&gic>;" at the top, which is inherited by all child nodes, so the "interrupt-parent" properties can be removed from the individual child nodes. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Acked-by: Magnus Damm <damm+renesas@opensource.se> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/sh73a0.dtsi | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/arch/arm/boot/dts/sh73a0.dtsi b/arch/arm/boot/dts/sh73a0.dtsi index 910b790..c959355 100644 --- a/arch/arm/boot/dts/sh73a0.dtsi +++ b/arch/arm/boot/dts/sh73a0.dtsi @@ -14,6 +14,7 @@ / { compatible = "renesas,sh73a0"; + interrupt-parent = <&gic>; cpus { #address-cells = <1>; @@ -54,7 +55,6 @@ <0xe6900020 1>, <0xe6900040 1>, <0xe6900060 1>; - interrupt-parent = <&gic>; interrupts = <0 1 IRQ_TYPE_LEVEL_HIGH 0 2 IRQ_TYPE_LEVEL_HIGH 0 3 IRQ_TYPE_LEVEL_HIGH @@ -74,7 +74,6 @@ <0xe6900024 1>, <0xe6900044 1>, <0xe6900064 1>; - interrupt-parent = <&gic>; interrupts = <0 9 IRQ_TYPE_LEVEL_HIGH 0 10 IRQ_TYPE_LEVEL_HIGH 0 11 IRQ_TYPE_LEVEL_HIGH @@ -95,7 +94,6 @@ <0xe6900028 1>, <0xe6900048 1>, <0xe6900068 1>; - interrupt-parent = <&gic>; interrupts = <0 17 IRQ_TYPE_LEVEL_HIGH 0 18 IRQ_TYPE_LEVEL_HIGH 0 19 IRQ_TYPE_LEVEL_HIGH @@ -115,7 +113,6 @@ <0xe690002c 1>, <0xe690004c 1>, <0xe690006c 1>; - interrupt-parent = <&gic>; interrupts = <0 25 IRQ_TYPE_LEVEL_HIGH 0 26 IRQ_TYPE_LEVEL_HIGH 0 27 IRQ_TYPE_LEVEL_HIGH @@ -131,7 +128,6 @@ #size-cells = <0>; compatible = "renesas,rmobile-iic"; reg = <0xe6820000 0x425>; - interrupt-parent = <&gic>; interrupts = <0 167 IRQ_TYPE_LEVEL_HIGH 0 168 IRQ_TYPE_LEVEL_HIGH 0 169 IRQ_TYPE_LEVEL_HIGH @@ -144,7 +140,6 @@ #size-cells = <0>; compatible = "renesas,rmobile-iic"; reg = <0xe6822000 0x425>; - interrupt-parent = <&gic>; interrupts = <0 51 IRQ_TYPE_LEVEL_HIGH 0 52 IRQ_TYPE_LEVEL_HIGH 0 53 IRQ_TYPE_LEVEL_HIGH @@ -157,7 +152,6 @@ #size-cells = <0>; compatible = "renesas,rmobile-iic"; reg = <0xe6824000 0x425>; - interrupt-parent = <&gic>; interrupts = <0 171 IRQ_TYPE_LEVEL_HIGH 0 172 IRQ_TYPE_LEVEL_HIGH 0 173 IRQ_TYPE_LEVEL_HIGH @@ -170,7 +164,6 @@ #size-cells = <0>; compatible = "renesas,rmobile-iic"; reg = <0xe6826000 0x425>; - interrupt-parent = <&gic>; interrupts = <0 183 IRQ_TYPE_LEVEL_HIGH 0 184 IRQ_TYPE_LEVEL_HIGH 0 185 IRQ_TYPE_LEVEL_HIGH @@ -183,7 +176,6 @@ #size-cells = <0>; compatible = "renesas,rmobile-iic"; reg = <0xe6828000 0x425>; - interrupt-parent = <&gic>; interrupts = <0 187 IRQ_TYPE_LEVEL_HIGH 0 188 IRQ_TYPE_LEVEL_HIGH 0 189 IRQ_TYPE_LEVEL_HIGH @@ -194,7 +186,6 @@ mmcif: mmc@e6bd0000 { compatible = "renesas,sh-mmcif"; reg = <0xe6bd0000 0x100>; - interrupt-parent = <&gic>; interrupts = <0 140 IRQ_TYPE_LEVEL_HIGH 0 141 IRQ_TYPE_LEVEL_HIGH>; reg-io-width = <4>; @@ -204,7 +195,6 @@ sdhi0: sd@ee100000 { compatible = "renesas,sdhi-sh73a0"; reg = <0xee100000 0x100>; - interrupt-parent = <&gic>; interrupts = <0 83 IRQ_TYPE_LEVEL_HIGH 0 84 IRQ_TYPE_LEVEL_HIGH 0 85 IRQ_TYPE_LEVEL_HIGH>; @@ -216,7 +206,6 @@ sdhi1: sd@ee120000 { compatible = "renesas,sdhi-sh73a0"; reg = <0xee120000 0x100>; - interrupt-parent = <&gic>; interrupts = <0 88 IRQ_TYPE_LEVEL_HIGH 0 89 IRQ_TYPE_LEVEL_HIGH>; toshiba,mmc-wrprotect-disable; @@ -227,7 +216,6 @@ sdhi2: sd@ee140000 { compatible = "renesas,sdhi-sh73a0"; reg = <0xee140000 0x100>; - interrupt-parent = <&gic>; interrupts = <0 104 IRQ_TYPE_LEVEL_HIGH 0 105 IRQ_TYPE_LEVEL_HIGH>; toshiba,mmc-wrprotect-disable; @@ -238,7 +226,6 @@ scifa0: serial@e6c40000 { compatible = "renesas,scifa-sh73a0", "renesas,scifa"; reg = <0xe6c40000 0x100>; - interrupt-parent = <&gic>; interrupts = <0 72 IRQ_TYPE_LEVEL_HIGH>; status = "disabled"; }; @@ -246,7 +233,6 @@ scifa1: serial@e6c50000 { compatible = "renesas,scifa-sh73a0", "renesas,scifa"; reg = <0xe6c50000 0x100>; - interrupt-parent = <&gic>; interrupts = <0 73 IRQ_TYPE_LEVEL_HIGH>; status = "disabled"; }; @@ -254,7 +240,6 @@ scifa2: serial@e6c60000 { compatible = "renesas,scifa-sh73a0", "renesas,scifa"; reg = <0xe6c60000 0x100>; - interrupt-parent = <&gic>; interrupts = <0 74 IRQ_TYPE_LEVEL_HIGH>; status = "disabled"; }; @@ -262,7 +247,6 @@ scifa3: serial@e6c70000 { compatible = "renesas,scifa-sh73a0", "renesas,scifa"; reg = <0xe6c70000 0x100>; - interrupt-parent = <&gic>; interrupts = <0 75 IRQ_TYPE_LEVEL_HIGH>; status = "disabled"; }; @@ -270,7 +254,6 @@ scifa4: serial@e6c80000 { compatible = "renesas,scifa-sh73a0", "renesas,scifa"; reg = <0xe6c80000 0x100>; - interrupt-parent = <&gic>; interrupts = <0 78 IRQ_TYPE_LEVEL_HIGH>; status = "disabled"; }; @@ -278,7 +261,6 @@ scifa5: serial@e6cb0000 { compatible = "renesas,scifa-sh73a0", "renesas,scifa"; reg = <0xe6cb0000 0x100>; - interrupt-parent = <&gic>; interrupts = <0 79 IRQ_TYPE_LEVEL_HIGH>; status = "disabled"; }; @@ -286,7 +268,6 @@ scifa6: serial@e6cc0000 { compatible = "renesas,scifa-sh73a0", "renesas,scifa"; reg = <0xe6cc0000 0x100>; - interrupt-parent = <&gic>; interrupts = <0 156 IRQ_TYPE_LEVEL_HIGH>; status = "disabled"; }; @@ -294,7 +275,6 @@ scifa7: serial@e6cd0000 { compatible = "renesas,scifa-sh73a0", "renesas,scifa"; reg = <0xe6cd0000 0x100>; - interrupt-parent = <&gic>; interrupts = <0 143 IRQ_TYPE_LEVEL_HIGH>; status = "disabled"; }; @@ -302,7 +282,6 @@ scifb8: serial@e6c30000 { compatible = "renesas,scifb-sh73a0", "renesas,scifb"; reg = <0xe6c30000 0x100>; - interrupt-parent = <&gic>; interrupts = <0 80 IRQ_TYPE_LEVEL_HIGH>; status = "disabled"; }; @@ -328,7 +307,6 @@ #sound-dai-cells = <1>; compatible = "renesas,sh_fsi2"; reg = <0xec230000 0x400>; - interrupt-parent = <&gic>; interrupts = <0 146 0x4>; status = "disabled"; }; -- 2.0.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 7/7] ARM: shmobile: sh73a0 dtsi: Move interrupt-parent to the top @ 2014-08-25 1:10 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-08-25 1:10 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> Add an "interrupt-parent = <&gic>;" at the top, which is inherited by all child nodes, so the "interrupt-parent" properties can be removed from the individual child nodes. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Acked-by: Magnus Damm <damm+renesas@opensource.se> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/sh73a0.dtsi | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/arch/arm/boot/dts/sh73a0.dtsi b/arch/arm/boot/dts/sh73a0.dtsi index 910b790..c959355 100644 --- a/arch/arm/boot/dts/sh73a0.dtsi +++ b/arch/arm/boot/dts/sh73a0.dtsi @@ -14,6 +14,7 @@ / { compatible = "renesas,sh73a0"; + interrupt-parent = <&gic>; cpus { #address-cells = <1>; @@ -54,7 +55,6 @@ <0xe6900020 1>, <0xe6900040 1>, <0xe6900060 1>; - interrupt-parent = <&gic>; interrupts = <0 1 IRQ_TYPE_LEVEL_HIGH 0 2 IRQ_TYPE_LEVEL_HIGH 0 3 IRQ_TYPE_LEVEL_HIGH @@ -74,7 +74,6 @@ <0xe6900024 1>, <0xe6900044 1>, <0xe6900064 1>; - interrupt-parent = <&gic>; interrupts = <0 9 IRQ_TYPE_LEVEL_HIGH 0 10 IRQ_TYPE_LEVEL_HIGH 0 11 IRQ_TYPE_LEVEL_HIGH @@ -95,7 +94,6 @@ <0xe6900028 1>, <0xe6900048 1>, <0xe6900068 1>; - interrupt-parent = <&gic>; interrupts = <0 17 IRQ_TYPE_LEVEL_HIGH 0 18 IRQ_TYPE_LEVEL_HIGH 0 19 IRQ_TYPE_LEVEL_HIGH @@ -115,7 +113,6 @@ <0xe690002c 1>, <0xe690004c 1>, <0xe690006c 1>; - interrupt-parent = <&gic>; interrupts = <0 25 IRQ_TYPE_LEVEL_HIGH 0 26 IRQ_TYPE_LEVEL_HIGH 0 27 IRQ_TYPE_LEVEL_HIGH @@ -131,7 +128,6 @@ #size-cells = <0>; compatible = "renesas,rmobile-iic"; reg = <0xe6820000 0x425>; - interrupt-parent = <&gic>; interrupts = <0 167 IRQ_TYPE_LEVEL_HIGH 0 168 IRQ_TYPE_LEVEL_HIGH 0 169 IRQ_TYPE_LEVEL_HIGH @@ -144,7 +140,6 @@ #size-cells = <0>; compatible = "renesas,rmobile-iic"; reg = <0xe6822000 0x425>; - interrupt-parent = <&gic>; interrupts = <0 51 IRQ_TYPE_LEVEL_HIGH 0 52 IRQ_TYPE_LEVEL_HIGH 0 53 IRQ_TYPE_LEVEL_HIGH @@ -157,7 +152,6 @@ #size-cells = <0>; compatible = "renesas,rmobile-iic"; reg = <0xe6824000 0x425>; - interrupt-parent = <&gic>; interrupts = <0 171 IRQ_TYPE_LEVEL_HIGH 0 172 IRQ_TYPE_LEVEL_HIGH 0 173 IRQ_TYPE_LEVEL_HIGH @@ -170,7 +164,6 @@ #size-cells = <0>; compatible = "renesas,rmobile-iic"; reg = <0xe6826000 0x425>; - interrupt-parent = <&gic>; interrupts = <0 183 IRQ_TYPE_LEVEL_HIGH 0 184 IRQ_TYPE_LEVEL_HIGH 0 185 IRQ_TYPE_LEVEL_HIGH @@ -183,7 +176,6 @@ #size-cells = <0>; compatible = "renesas,rmobile-iic"; reg = <0xe6828000 0x425>; - interrupt-parent = <&gic>; interrupts = <0 187 IRQ_TYPE_LEVEL_HIGH 0 188 IRQ_TYPE_LEVEL_HIGH 0 189 IRQ_TYPE_LEVEL_HIGH @@ -194,7 +186,6 @@ mmcif: mmc@e6bd0000 { compatible = "renesas,sh-mmcif"; reg = <0xe6bd0000 0x100>; - interrupt-parent = <&gic>; interrupts = <0 140 IRQ_TYPE_LEVEL_HIGH 0 141 IRQ_TYPE_LEVEL_HIGH>; reg-io-width = <4>; @@ -204,7 +195,6 @@ sdhi0: sd at ee100000 { compatible = "renesas,sdhi-sh73a0"; reg = <0xee100000 0x100>; - interrupt-parent = <&gic>; interrupts = <0 83 IRQ_TYPE_LEVEL_HIGH 0 84 IRQ_TYPE_LEVEL_HIGH 0 85 IRQ_TYPE_LEVEL_HIGH>; @@ -216,7 +206,6 @@ sdhi1: sd at ee120000 { compatible = "renesas,sdhi-sh73a0"; reg = <0xee120000 0x100>; - interrupt-parent = <&gic>; interrupts = <0 88 IRQ_TYPE_LEVEL_HIGH 0 89 IRQ_TYPE_LEVEL_HIGH>; toshiba,mmc-wrprotect-disable; @@ -227,7 +216,6 @@ sdhi2: sd at ee140000 { compatible = "renesas,sdhi-sh73a0"; reg = <0xee140000 0x100>; - interrupt-parent = <&gic>; interrupts = <0 104 IRQ_TYPE_LEVEL_HIGH 0 105 IRQ_TYPE_LEVEL_HIGH>; toshiba,mmc-wrprotect-disable; @@ -238,7 +226,6 @@ scifa0: serial at e6c40000 { compatible = "renesas,scifa-sh73a0", "renesas,scifa"; reg = <0xe6c40000 0x100>; - interrupt-parent = <&gic>; interrupts = <0 72 IRQ_TYPE_LEVEL_HIGH>; status = "disabled"; }; @@ -246,7 +233,6 @@ scifa1: serial at e6c50000 { compatible = "renesas,scifa-sh73a0", "renesas,scifa"; reg = <0xe6c50000 0x100>; - interrupt-parent = <&gic>; interrupts = <0 73 IRQ_TYPE_LEVEL_HIGH>; status = "disabled"; }; @@ -254,7 +240,6 @@ scifa2: serial at e6c60000 { compatible = "renesas,scifa-sh73a0", "renesas,scifa"; reg = <0xe6c60000 0x100>; - interrupt-parent = <&gic>; interrupts = <0 74 IRQ_TYPE_LEVEL_HIGH>; status = "disabled"; }; @@ -262,7 +247,6 @@ scifa3: serial at e6c70000 { compatible = "renesas,scifa-sh73a0", "renesas,scifa"; reg = <0xe6c70000 0x100>; - interrupt-parent = <&gic>; interrupts = <0 75 IRQ_TYPE_LEVEL_HIGH>; status = "disabled"; }; @@ -270,7 +254,6 @@ scifa4: serial at e6c80000 { compatible = "renesas,scifa-sh73a0", "renesas,scifa"; reg = <0xe6c80000 0x100>; - interrupt-parent = <&gic>; interrupts = <0 78 IRQ_TYPE_LEVEL_HIGH>; status = "disabled"; }; @@ -278,7 +261,6 @@ scifa5: serial at e6cb0000 { compatible = "renesas,scifa-sh73a0", "renesas,scifa"; reg = <0xe6cb0000 0x100>; - interrupt-parent = <&gic>; interrupts = <0 79 IRQ_TYPE_LEVEL_HIGH>; status = "disabled"; }; @@ -286,7 +268,6 @@ scifa6: serial at e6cc0000 { compatible = "renesas,scifa-sh73a0", "renesas,scifa"; reg = <0xe6cc0000 0x100>; - interrupt-parent = <&gic>; interrupts = <0 156 IRQ_TYPE_LEVEL_HIGH>; status = "disabled"; }; @@ -294,7 +275,6 @@ scifa7: serial at e6cd0000 { compatible = "renesas,scifa-sh73a0", "renesas,scifa"; reg = <0xe6cd0000 0x100>; - interrupt-parent = <&gic>; interrupts = <0 143 IRQ_TYPE_LEVEL_HIGH>; status = "disabled"; }; @@ -302,7 +282,6 @@ scifb8: serial at e6c30000 { compatible = "renesas,scifb-sh73a0", "renesas,scifb"; reg = <0xe6c30000 0x100>; - interrupt-parent = <&gic>; interrupts = <0 80 IRQ_TYPE_LEVEL_HIGH>; status = "disabled"; }; @@ -328,7 +307,6 @@ #sound-dai-cells = <1>; compatible = "renesas,sh_fsi2"; reg = <0xec230000 0x400>; - interrupt-parent = <&gic>; interrupts = <0 146 0x4>; status = "disabled"; }; -- 2.0.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round Of Renesas ARM Based SoC Updates For v3.18 @ 2014-08-25 1:10 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-08-25 1:10 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Hi Kevin, Hi Arnd, Please consider these second round of Renesas ARM based SoC updates for v3.18. This pull request is based on the previous round of such requests, tagged as renesas-soc-for-v3.18, which I have already sent a pull-request for. The following changes since commit 5ac9e7f35db00e630c9f95a1f73ac329371cdbbf: ARM: shmobile: sh73a0: Remove unneeded nr_irqs initialization (2014-08-20 09:09:24 +0900) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-soc2-for-v3.18 for you to fetch changes up to 86155b35d173317518458c6f9c0a3ea8c5324bed: ARM: shmobile: Move legacy INTC definitions from irqs.h to intc.h (2014-08-22 12:23:32 +0900) ---------------------------------------------------------------- Second Round Of Renesas ARM Based SoC Updates For v3.18 * Move legacy INTC definitions from irqs.h to intc.h * Remove duplicate CPUFreq bits on r8a73a0/ape6evm ---------------------------------------------------------------- Geert Uytterhoeven (1): ARM: shmobile: Move legacy INTC definitions from irqs.h to intc.h Magnus Damm (2): ARM: shmobile: sh73a0: Remove duplicate CPUFreq bits ARM: shmobile: ape6evm: Remove duplicate CPUFreq bits arch/arm/mach-shmobile/board-ape6evm-reference.c | 1 - arch/arm/mach-shmobile/board-kzm9g.c | 1 + arch/arm/mach-shmobile/board-mackerel.c | 1 + arch/arm/mach-shmobile/intc.h | 5 +++++ arch/arm/mach-shmobile/irqs.h | 6 ------ arch/arm/mach-shmobile/setup-sh7372.c | 1 + arch/arm/mach-shmobile/setup-sh73a0.c | 6 +----- 7 files changed, 9 insertions(+), 12 deletions(-) ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round Of Renesas ARM Based SoC Updates For v3.18 @ 2014-08-25 1:10 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-08-25 1:10 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Hi Kevin, Hi Arnd, Please consider these second round of Renesas ARM based SoC updates for v3.18. This pull request is based on the previous round of such requests, tagged as renesas-soc-for-v3.18, which I have already sent a pull-request for. The following changes since commit 5ac9e7f35db00e630c9f95a1f73ac329371cdbbf: ARM: shmobile: sh73a0: Remove unneeded nr_irqs initialization (2014-08-20 09:09:24 +0900) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-soc2-for-v3.18 for you to fetch changes up to 86155b35d173317518458c6f9c0a3ea8c5324bed: ARM: shmobile: Move legacy INTC definitions from irqs.h to intc.h (2014-08-22 12:23:32 +0900) ---------------------------------------------------------------- Second Round Of Renesas ARM Based SoC Updates For v3.18 * Move legacy INTC definitions from irqs.h to intc.h * Remove duplicate CPUFreq bits on r8a73a0/ape6evm ---------------------------------------------------------------- Geert Uytterhoeven (1): ARM: shmobile: Move legacy INTC definitions from irqs.h to intc.h Magnus Damm (2): ARM: shmobile: sh73a0: Remove duplicate CPUFreq bits ARM: shmobile: ape6evm: Remove duplicate CPUFreq bits arch/arm/mach-shmobile/board-ape6evm-reference.c | 1 - arch/arm/mach-shmobile/board-kzm9g.c | 1 + arch/arm/mach-shmobile/board-mackerel.c | 1 + arch/arm/mach-shmobile/intc.h | 5 +++++ arch/arm/mach-shmobile/irqs.h | 6 ------ arch/arm/mach-shmobile/setup-sh7372.c | 1 + arch/arm/mach-shmobile/setup-sh73a0.c | 6 +----- 7 files changed, 9 insertions(+), 12 deletions(-) ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH 1/3] ARM: shmobile: sh73a0: Remove duplicate CPUFreq bits 2014-08-25 1:10 ` Simon Horman @ 2014-08-25 1:10 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-08-25 1:10 UTC (permalink / raw) To: linux-arm-kernel From: Magnus Damm <damm+renesas@opensource.se> The CPUFreq platform device is already registered by shmobile_init_late(), so get rid of sh73a0 specific bits. Signed-off-by: Magnus Damm <damm+renesas@opensource.se> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/setup-sh73a0.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/arch/arm/mach-shmobile/setup-sh73a0.c b/arch/arm/mach-shmobile/setup-sh73a0.c index e7a0296..8ff9679 100644 --- a/arch/arm/mach-shmobile/setup-sh73a0.c +++ b/arch/arm/mach-shmobile/setup-sh73a0.c @@ -775,17 +775,12 @@ void __init sh73a0_add_early_devices(void) void __init sh73a0_add_standard_devices_dt(void) { - struct platform_device_info devinfo = { .name = "cpufreq-cpu0", .id = -1, }; - /* clocks are setup late during boot in the case of DT */ sh73a0_clock_init(); platform_add_devices(sh73a0_devices_dt, ARRAY_SIZE(sh73a0_devices_dt)); of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); - - /* Instantiate cpufreq-cpu0 */ - platform_device_register_full(&devinfo); } static const char *sh73a0_boards_compat_dt[] __initdata = { -- 2.0.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 1/3] ARM: shmobile: sh73a0: Remove duplicate CPUFreq bits @ 2014-08-25 1:10 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-08-25 1:10 UTC (permalink / raw) To: linux-arm-kernel From: Magnus Damm <damm+renesas@opensource.se> The CPUFreq platform device is already registered by shmobile_init_late(), so get rid of sh73a0 specific bits. Signed-off-by: Magnus Damm <damm+renesas@opensource.se> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/setup-sh73a0.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/arch/arm/mach-shmobile/setup-sh73a0.c b/arch/arm/mach-shmobile/setup-sh73a0.c index e7a0296..8ff9679 100644 --- a/arch/arm/mach-shmobile/setup-sh73a0.c +++ b/arch/arm/mach-shmobile/setup-sh73a0.c @@ -775,17 +775,12 @@ void __init sh73a0_add_early_devices(void) void __init sh73a0_add_standard_devices_dt(void) { - struct platform_device_info devinfo = { .name = "cpufreq-cpu0", .id = -1, }; - /* clocks are setup late during boot in the case of DT */ sh73a0_clock_init(); platform_add_devices(sh73a0_devices_dt, ARRAY_SIZE(sh73a0_devices_dt)); of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); - - /* Instantiate cpufreq-cpu0 */ - platform_device_register_full(&devinfo); } static const char *sh73a0_boards_compat_dt[] __initdata = { -- 2.0.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 2/3] ARM: shmobile: ape6evm: Remove duplicate CPUFreq bits 2014-08-25 1:10 ` Simon Horman @ 2014-08-25 1:10 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-08-25 1:10 UTC (permalink / raw) To: linux-arm-kernel From: Magnus Damm <damm+renesas@opensource.se> The CPUFreq platform device is already registered by shmobile_init_late(), so get rid of ape6evm specific bits. Signed-off-by: Magnus Damm <damm+renesas@opensource.se> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/board-ape6evm-reference.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/mach-shmobile/board-ape6evm-reference.c b/arch/arm/mach-shmobile/board-ape6evm-reference.c index 2f7723e..ac371b7 100644 --- a/arch/arm/mach-shmobile/board-ape6evm-reference.c +++ b/arch/arm/mach-shmobile/board-ape6evm-reference.c @@ -50,7 +50,6 @@ static void __init ape6evm_add_standard_devices(void) r8a73a4_add_dt_devices(); of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); - platform_device_register_simple("cpufreq-cpu0", -1, NULL, 0); } static const char *ape6evm_boards_compat_dt[] __initdata = { -- 2.0.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 2/3] ARM: shmobile: ape6evm: Remove duplicate CPUFreq bits @ 2014-08-25 1:10 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-08-25 1:10 UTC (permalink / raw) To: linux-arm-kernel From: Magnus Damm <damm+renesas@opensource.se> The CPUFreq platform device is already registered by shmobile_init_late(), so get rid of ape6evm specific bits. Signed-off-by: Magnus Damm <damm+renesas@opensource.se> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/board-ape6evm-reference.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/mach-shmobile/board-ape6evm-reference.c b/arch/arm/mach-shmobile/board-ape6evm-reference.c index 2f7723e..ac371b7 100644 --- a/arch/arm/mach-shmobile/board-ape6evm-reference.c +++ b/arch/arm/mach-shmobile/board-ape6evm-reference.c @@ -50,7 +50,6 @@ static void __init ape6evm_add_standard_devices(void) r8a73a4_add_dt_devices(); of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); - platform_device_register_simple("cpufreq-cpu0", -1, NULL, 0); } static const char *ape6evm_boards_compat_dt[] __initdata = { -- 2.0.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 3/3] ARM: shmobile: Move legacy INTC definitions from irqs.h to intc.h 2014-08-25 1:10 ` Simon Horman @ 2014-08-25 1:10 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-08-25 1:10 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> Move all definitions for legacy INTC from the common "irqs.h" to the INTC-specific "intc.h". Include "intc.h" in sh7372/sh73a0 CPU and board files where needed. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Acked-by: Magnus Damm <damm+renesas@opensource.se> [horms+renesas@verge.net.au: omitted whitespace change] Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/board-kzm9g.c | 1 + arch/arm/mach-shmobile/board-mackerel.c | 1 + arch/arm/mach-shmobile/intc.h | 5 +++++ arch/arm/mach-shmobile/irqs.h | 6 ------ arch/arm/mach-shmobile/setup-sh7372.c | 1 + arch/arm/mach-shmobile/setup-sh73a0.c | 1 + 6 files changed, 9 insertions(+), 6 deletions(-) diff --git a/arch/arm/mach-shmobile/board-kzm9g.c b/arch/arm/mach-shmobile/board-kzm9g.c index f8bc7f8..1bcd7eb 100644 --- a/arch/arm/mach-shmobile/board-kzm9g.c +++ b/arch/arm/mach-shmobile/board-kzm9g.c @@ -50,6 +50,7 @@ #include <video/sh_mobile_lcdc.h> #include "common.h" +#include "intc.h" #include "irqs.h" #include "sh73a0.h" diff --git a/arch/arm/mach-shmobile/board-mackerel.c b/arch/arm/mach-shmobile/board-mackerel.c index 79f448e..b7c4261 100644 --- a/arch/arm/mach-shmobile/board-mackerel.c +++ b/arch/arm/mach-shmobile/board-mackerel.c @@ -63,6 +63,7 @@ #include <asm/mach-types.h> #include "common.h" +#include "intc.h" #include "irqs.h" #include "pm-rmobile.h" #include "sh-gpio.h" diff --git a/arch/arm/mach-shmobile/intc.h b/arch/arm/mach-shmobile/intc.h index a5603c7..40b2ad4 100644 --- a/arch/arm/mach-shmobile/intc.h +++ b/arch/arm/mach-shmobile/intc.h @@ -287,4 +287,9 @@ static struct intc_desc p ## _desc __initdata = { \ p ## _sense_registers, NULL), \ } +/* INTCS */ +#define INTCS_VECT_BASE 0x3400 +#define INTCS_VECT(n, vect) INTC_VECT((n), INTCS_VECT_BASE + (vect)) +#define intcs_evt2irq(evt) evt2irq(INTCS_VECT_BASE + (evt)) + #endif /* __ASM_MACH_INTC_H */ diff --git a/arch/arm/mach-shmobile/irqs.h b/arch/arm/mach-shmobile/irqs.h index 8e28223..3070f6d 100644 --- a/arch/arm/mach-shmobile/irqs.h +++ b/arch/arm/mach-shmobile/irqs.h @@ -1,18 +1,12 @@ #ifndef __SHMOBILE_IRQS_H #define __SHMOBILE_IRQS_H -#include <linux/sh_intc.h> #include "include/mach/irqs.h" /* GIC */ #define gic_spi(nr) ((nr) + 32) #define gic_iid(nr) (nr) /* ICCIAR / interrupt ID */ -/* INTCS */ -#define INTCS_VECT_BASE 0x3400 -#define INTCS_VECT(n, vect) INTC_VECT((n), INTCS_VECT_BASE + (vect)) -#define intcs_evt2irq(evt) evt2irq(INTCS_VECT_BASE + (evt)) - /* GPIO IRQ */ #define _GPIO_IRQ_BASE 2500 #define GPIO_IRQ_BASE(x) (_GPIO_IRQ_BASE + (32 * x)) diff --git a/arch/arm/mach-shmobile/setup-sh7372.c b/arch/arm/mach-shmobile/setup-sh7372.c index 3731ecc..eaf5d13 100644 --- a/arch/arm/mach-shmobile/setup-sh7372.c +++ b/arch/arm/mach-shmobile/setup-sh7372.c @@ -41,6 +41,7 @@ #include "common.h" #include "dma-register.h" +#include "intc.h" #include "irqs.h" #include "pm-rmobile.h" #include "sh7372.h" diff --git a/arch/arm/mach-shmobile/setup-sh73a0.c b/arch/arm/mach-shmobile/setup-sh73a0.c index 8ff9679..173c678 100644 --- a/arch/arm/mach-shmobile/setup-sh73a0.c +++ b/arch/arm/mach-shmobile/setup-sh73a0.c @@ -40,6 +40,7 @@ #include "common.h" #include "dma-register.h" +#include "intc.h" #include "irqs.h" #include "sh73a0.h" -- 2.0.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 3/3] ARM: shmobile: Move legacy INTC definitions from irqs.h to intc.h @ 2014-08-25 1:10 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-08-25 1:10 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> Move all definitions for legacy INTC from the common "irqs.h" to the INTC-specific "intc.h". Include "intc.h" in sh7372/sh73a0 CPU and board files where needed. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Acked-by: Magnus Damm <damm+renesas@opensource.se> [horms+renesas at verge.net.au: omitted whitespace change] Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/board-kzm9g.c | 1 + arch/arm/mach-shmobile/board-mackerel.c | 1 + arch/arm/mach-shmobile/intc.h | 5 +++++ arch/arm/mach-shmobile/irqs.h | 6 ------ arch/arm/mach-shmobile/setup-sh7372.c | 1 + arch/arm/mach-shmobile/setup-sh73a0.c | 1 + 6 files changed, 9 insertions(+), 6 deletions(-) diff --git a/arch/arm/mach-shmobile/board-kzm9g.c b/arch/arm/mach-shmobile/board-kzm9g.c index f8bc7f8..1bcd7eb 100644 --- a/arch/arm/mach-shmobile/board-kzm9g.c +++ b/arch/arm/mach-shmobile/board-kzm9g.c @@ -50,6 +50,7 @@ #include <video/sh_mobile_lcdc.h> #include "common.h" +#include "intc.h" #include "irqs.h" #include "sh73a0.h" diff --git a/arch/arm/mach-shmobile/board-mackerel.c b/arch/arm/mach-shmobile/board-mackerel.c index 79f448e..b7c4261 100644 --- a/arch/arm/mach-shmobile/board-mackerel.c +++ b/arch/arm/mach-shmobile/board-mackerel.c @@ -63,6 +63,7 @@ #include <asm/mach-types.h> #include "common.h" +#include "intc.h" #include "irqs.h" #include "pm-rmobile.h" #include "sh-gpio.h" diff --git a/arch/arm/mach-shmobile/intc.h b/arch/arm/mach-shmobile/intc.h index a5603c7..40b2ad4 100644 --- a/arch/arm/mach-shmobile/intc.h +++ b/arch/arm/mach-shmobile/intc.h @@ -287,4 +287,9 @@ static struct intc_desc p ## _desc __initdata = { \ p ## _sense_registers, NULL), \ } +/* INTCS */ +#define INTCS_VECT_BASE 0x3400 +#define INTCS_VECT(n, vect) INTC_VECT((n), INTCS_VECT_BASE + (vect)) +#define intcs_evt2irq(evt) evt2irq(INTCS_VECT_BASE + (evt)) + #endif /* __ASM_MACH_INTC_H */ diff --git a/arch/arm/mach-shmobile/irqs.h b/arch/arm/mach-shmobile/irqs.h index 8e28223..3070f6d 100644 --- a/arch/arm/mach-shmobile/irqs.h +++ b/arch/arm/mach-shmobile/irqs.h @@ -1,18 +1,12 @@ #ifndef __SHMOBILE_IRQS_H #define __SHMOBILE_IRQS_H -#include <linux/sh_intc.h> #include "include/mach/irqs.h" /* GIC */ #define gic_spi(nr) ((nr) + 32) #define gic_iid(nr) (nr) /* ICCIAR / interrupt ID */ -/* INTCS */ -#define INTCS_VECT_BASE 0x3400 -#define INTCS_VECT(n, vect) INTC_VECT((n), INTCS_VECT_BASE + (vect)) -#define intcs_evt2irq(evt) evt2irq(INTCS_VECT_BASE + (evt)) - /* GPIO IRQ */ #define _GPIO_IRQ_BASE 2500 #define GPIO_IRQ_BASE(x) (_GPIO_IRQ_BASE + (32 * x)) diff --git a/arch/arm/mach-shmobile/setup-sh7372.c b/arch/arm/mach-shmobile/setup-sh7372.c index 3731ecc..eaf5d13 100644 --- a/arch/arm/mach-shmobile/setup-sh7372.c +++ b/arch/arm/mach-shmobile/setup-sh7372.c @@ -41,6 +41,7 @@ #include "common.h" #include "dma-register.h" +#include "intc.h" #include "irqs.h" #include "pm-rmobile.h" #include "sh7372.h" diff --git a/arch/arm/mach-shmobile/setup-sh73a0.c b/arch/arm/mach-shmobile/setup-sh73a0.c index 8ff9679..173c678 100644 --- a/arch/arm/mach-shmobile/setup-sh73a0.c +++ b/arch/arm/mach-shmobile/setup-sh73a0.c @@ -40,6 +40,7 @@ #include "common.h" #include "dma-register.h" +#include "intc.h" #include "irqs.h" #include "sh73a0.h" -- 2.0.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* Re: [GIT PULL] Second Round Of Renesas ARM Based SoC Updates For v3.18 2014-08-25 1:10 ` Simon Horman @ 2014-09-05 16:04 ` Arnd Bergmann -1 siblings, 0 replies; 776+ messages in thread From: Arnd Bergmann @ 2014-09-05 16:04 UTC (permalink / raw) To: linux-arm-kernel On Monday 25 August 2014, Simon Horman wrote: > Hi Olof, Hi Kevin, Hi Arnd, > > Please consider these second round of Renesas ARM based SoC updates for v3.18. > > This pull request is based on the previous round of > such requests, tagged as renesas-soc-for-v3.18, > which I have already sent a pull-request for. > Pulled into next/soc, thanks! Arnd ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round Of Renesas ARM Based SoC Updates For v3.18 @ 2014-09-05 16:04 ` Arnd Bergmann 0 siblings, 0 replies; 776+ messages in thread From: Arnd Bergmann @ 2014-09-05 16:04 UTC (permalink / raw) To: linux-arm-kernel On Monday 25 August 2014, Simon Horman wrote: > Hi Olof, Hi Kevin, Hi Arnd, > > Please consider these second round of Renesas ARM based SoC updates for v3.18. > > This pull request is based on the previous round of > such requests, tagged as renesas-soc-for-v3.18, > which I have already sent a pull-request for. > Pulled into next/soc, thanks! Arnd ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC DT Timers Updates for v3.18 @ 2014-09-11 0:57 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-09-11 0:57 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Hi Kevin, Hi Arnd, Please consider these second round of Renesas ARM based SoC DT timers updates for v3.18. This pull request is based on a merge of: * The previous round of DT time updates for v3.18, tagged as renesas-dt-timers-for-v3.18, which you have already merged. * Renesas ARM Based SoC r8a7740 Multiplatform Updates for v3.18, tagged as renesas-r8a7740-ccf-and-timers-for-v3.18, which you have previously pulled. The following changes since commit dcc683aba83cd8db964a9a1d4582d4829d6efcb2: Merge tag 'renesas-r8a7740-ccf-and-timers-for-v3.18' into dt-timers-for-v3.18 (2014-09-09 11:50:00 +0900) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-dt-timers2-for-v3.18 for you to fetch changes up to 48a0d1e07d99ecfd1e5922dd22986d5813f17207: ARM: shmobile: kzm9g-reference: Enable CMT1 in device tree (2014-09-09 11:53:14 +0900) ---------------------------------------------------------------- Second Round of Renesas ARM Based SoC DT Timers Updates for v3.18 * kzm9g-reference: Enable CMT1 in device tree * Use SoC-specific timer compat strings ---------------------------------------------------------------- Simon Horman (5): ARM: shmobile: r8a7790: Use SoC-specific 48-bit CMT compat string ARM: shmobile: r7s72100: Use SoC-specific MTU2 compat string ARM: shmobile: r8a7791: Use SoC-specific 48-bit CMT compat string ARM: shmobile: r8a7779: Use SoC-specific TMU compat string ARM: shmobile: r8a7740: Use SoC-specific 48-bit CMT compat string Ulrich Hecht (2): ARM: shmobile: sh73a0: Add CMT1 device to DT ARM: shmobile: kzm9g-reference: Enable CMT1 in device tree arch/arm/boot/dts/r7s72100.dtsi | 2 +- arch/arm/boot/dts/r8a7740.dtsi | 2 +- arch/arm/boot/dts/r8a7779.dtsi | 6 +++--- arch/arm/boot/dts/r8a7790.dtsi | 4 ++-- arch/arm/boot/dts/r8a7791.dtsi | 4 ++-- arch/arm/boot/dts/sh73a0-kzm9g-reference.dts | 4 ++++ arch/arm/boot/dts/sh73a0.dtsi | 10 ++++++++++ arch/arm/mach-shmobile/setup-sh73a0.c | 11 +---------- 8 files changed, 24 insertions(+), 19 deletions(-) ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC DT Timers Updates for v3.18 @ 2014-09-11 0:57 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-09-11 0:57 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Hi Kevin, Hi Arnd, Please consider these second round of Renesas ARM based SoC DT timers updates for v3.18. This pull request is based on a merge of: * The previous round of DT time updates for v3.18, tagged as renesas-dt-timers-for-v3.18, which you have already merged. * Renesas ARM Based SoC r8a7740 Multiplatform Updates for v3.18, tagged as renesas-r8a7740-ccf-and-timers-for-v3.18, which you have previously pulled. The following changes since commit dcc683aba83cd8db964a9a1d4582d4829d6efcb2: Merge tag 'renesas-r8a7740-ccf-and-timers-for-v3.18' into dt-timers-for-v3.18 (2014-09-09 11:50:00 +0900) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-dt-timers2-for-v3.18 for you to fetch changes up to 48a0d1e07d99ecfd1e5922dd22986d5813f17207: ARM: shmobile: kzm9g-reference: Enable CMT1 in device tree (2014-09-09 11:53:14 +0900) ---------------------------------------------------------------- Second Round of Renesas ARM Based SoC DT Timers Updates for v3.18 * kzm9g-reference: Enable CMT1 in device tree * Use SoC-specific timer compat strings ---------------------------------------------------------------- Simon Horman (5): ARM: shmobile: r8a7790: Use SoC-specific 48-bit CMT compat string ARM: shmobile: r7s72100: Use SoC-specific MTU2 compat string ARM: shmobile: r8a7791: Use SoC-specific 48-bit CMT compat string ARM: shmobile: r8a7779: Use SoC-specific TMU compat string ARM: shmobile: r8a7740: Use SoC-specific 48-bit CMT compat string Ulrich Hecht (2): ARM: shmobile: sh73a0: Add CMT1 device to DT ARM: shmobile: kzm9g-reference: Enable CMT1 in device tree arch/arm/boot/dts/r7s72100.dtsi | 2 +- arch/arm/boot/dts/r8a7740.dtsi | 2 +- arch/arm/boot/dts/r8a7779.dtsi | 6 +++--- arch/arm/boot/dts/r8a7790.dtsi | 4 ++-- arch/arm/boot/dts/r8a7791.dtsi | 4 ++-- arch/arm/boot/dts/sh73a0-kzm9g-reference.dts | 4 ++++ arch/arm/boot/dts/sh73a0.dtsi | 10 ++++++++++ arch/arm/mach-shmobile/setup-sh73a0.c | 11 +---------- 8 files changed, 24 insertions(+), 19 deletions(-) ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH 1/7] ARM: shmobile: r8a7790: Use SoC-specific 48-bit CMT compat string 2014-09-11 0:57 ` Simon Horman @ 2014-09-11 0:56 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-09-11 0:56 UTC (permalink / raw) To: linux-arm-kernel In general Renesas hardware is not documented to the extent where the relationship between IP blocks on different SoCs can be assumed although they may appear to operate the same way. Furthermore the documentation typically does not specify a version for individual IP blocks. For these reasons a convention of using the SoC name in place of a version and providing SoC-specific compat strings has been adopted. Although not universally liked this convention is used in the bindings for a number of drivers for Renesas hardware. The purpose of this patch is to make use of the SoC-specific CMT compat string for the r8a7790 48-bit CMT clock source. Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7790.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/r8a7790.dtsi b/arch/arm/boot/dts/r8a7790.dtsi index 7218bff..aa146d2 100644 --- a/arch/arm/boot/dts/r8a7790.dtsi +++ b/arch/arm/boot/dts/r8a7790.dtsi @@ -207,7 +207,7 @@ }; cmt0: timer@ffca0000 { - compatible = "renesas,cmt-48-gen2"; + compatible = "renesas,cmt-48-r8a7790", "renesas,cmt-48-gen2"; reg = <0 0xffca0000 0 0x1004>; interrupts = <0 142 IRQ_TYPE_LEVEL_HIGH>, <0 143 IRQ_TYPE_LEVEL_HIGH>; @@ -220,7 +220,7 @@ }; cmt1: timer@e6130000 { - compatible = "renesas,cmt-48-gen2"; + compatible = "renesas,cmt-48-r8a7790", "renesas,cmt-48-gen2"; reg = <0 0xe6130000 0 0x1004>; interrupts = <0 120 IRQ_TYPE_LEVEL_HIGH>, <0 121 IRQ_TYPE_LEVEL_HIGH>, -- 2.0.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 1/7] ARM: shmobile: r8a7790: Use SoC-specific 48-bit CMT compat string @ 2014-09-11 0:56 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-09-11 0:56 UTC (permalink / raw) To: linux-arm-kernel In general Renesas hardware is not documented to the extent where the relationship between IP blocks on different SoCs can be assumed although they may appear to operate the same way. Furthermore the documentation typically does not specify a version for individual IP blocks. For these reasons a convention of using the SoC name in place of a version and providing SoC-specific compat strings has been adopted. Although not universally liked this convention is used in the bindings for a number of drivers for Renesas hardware. The purpose of this patch is to make use of the SoC-specific CMT compat string for the r8a7790 48-bit CMT clock source. Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7790.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/r8a7790.dtsi b/arch/arm/boot/dts/r8a7790.dtsi index 7218bff..aa146d2 100644 --- a/arch/arm/boot/dts/r8a7790.dtsi +++ b/arch/arm/boot/dts/r8a7790.dtsi @@ -207,7 +207,7 @@ }; cmt0: timer at ffca0000 { - compatible = "renesas,cmt-48-gen2"; + compatible = "renesas,cmt-48-r8a7790", "renesas,cmt-48-gen2"; reg = <0 0xffca0000 0 0x1004>; interrupts = <0 142 IRQ_TYPE_LEVEL_HIGH>, <0 143 IRQ_TYPE_LEVEL_HIGH>; @@ -220,7 +220,7 @@ }; cmt1: timer at e6130000 { - compatible = "renesas,cmt-48-gen2"; + compatible = "renesas,cmt-48-r8a7790", "renesas,cmt-48-gen2"; reg = <0 0xe6130000 0 0x1004>; interrupts = <0 120 IRQ_TYPE_LEVEL_HIGH>, <0 121 IRQ_TYPE_LEVEL_HIGH>, -- 2.0.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 2/7] ARM: shmobile: r7s72100: Use SoC-specific MTU2 compat string 2014-09-11 0:57 ` Simon Horman @ 2014-09-11 0:56 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-09-11 0:56 UTC (permalink / raw) To: linux-arm-kernel In general Renesas hardware is not documented to the extent where the relationship between IP blocks on different SoCs can be assumed although they may appear to operate the same way. Furthermore the documentation typically does not specify a version for individual IP blocks. For these reasons a convention of using the SoC name in place of a version and providing SoC-specific compat strings has been adopted. Although not universally liked this convention is used in the bindings for a number of drivers for Renesas hardware. The purpose of this patch is to make use of the SoC-specific CMT compat string for the r7s72100 MTU2 clock source. Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r7s72100.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/r7s72100.dtsi b/arch/arm/boot/dts/r7s72100.dtsi index 1d28d01..801a556 100644 --- a/arch/arm/boot/dts/r7s72100.dtsi +++ b/arch/arm/boot/dts/r7s72100.dtsi @@ -230,7 +230,7 @@ }; mtu2: timer@fcff0000 { - compatible = "renesas,mtu2"; + compatible = "renesas,mtu2-r7s72100", "renesas,mtu2"; reg = <0xfcff0000 0x400>; interrupts = <0 107 IRQ_TYPE_LEVEL_HIGH>; interrupt-names = "tgi0a"; -- 2.0.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 2/7] ARM: shmobile: r7s72100: Use SoC-specific MTU2 compat string @ 2014-09-11 0:56 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-09-11 0:56 UTC (permalink / raw) To: linux-arm-kernel In general Renesas hardware is not documented to the extent where the relationship between IP blocks on different SoCs can be assumed although they may appear to operate the same way. Furthermore the documentation typically does not specify a version for individual IP blocks. For these reasons a convention of using the SoC name in place of a version and providing SoC-specific compat strings has been adopted. Although not universally liked this convention is used in the bindings for a number of drivers for Renesas hardware. The purpose of this patch is to make use of the SoC-specific CMT compat string for the r7s72100 MTU2 clock source. Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r7s72100.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/r7s72100.dtsi b/arch/arm/boot/dts/r7s72100.dtsi index 1d28d01..801a556 100644 --- a/arch/arm/boot/dts/r7s72100.dtsi +++ b/arch/arm/boot/dts/r7s72100.dtsi @@ -230,7 +230,7 @@ }; mtu2: timer at fcff0000 { - compatible = "renesas,mtu2"; + compatible = "renesas,mtu2-r7s72100", "renesas,mtu2"; reg = <0xfcff0000 0x400>; interrupts = <0 107 IRQ_TYPE_LEVEL_HIGH>; interrupt-names = "tgi0a"; -- 2.0.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 3/7] ARM: shmobile: r8a7791: Use SoC-specific 48-bit CMT compat string 2014-09-11 0:57 ` Simon Horman @ 2014-09-11 0:57 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-09-11 0:57 UTC (permalink / raw) To: linux-arm-kernel In general Renesas hardware is not documented to the extent where the relationship between IP blocks on different SoCs can be assumed although they may appear to operate the same way. Furthermore the documentation typically does not specify a version for individual IP blocks. For these reasons a convention of using the SoC name in place of a version and providing SoC-specific compat strings has been adopted. Although not universally liked this convention is used in the bindings for a number of drivers for Renesas hardware. The purpose of this patch is to make use of the SoC-specific CMT compat string for the r8a7791 48-bit CMT clock source. Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/r8a7791.dtsi b/arch/arm/boot/dts/r8a7791.dtsi index bdb9ac1..e270f38 100644 --- a/arch/arm/boot/dts/r8a7791.dtsi +++ b/arch/arm/boot/dts/r8a7791.dtsi @@ -190,7 +190,7 @@ }; cmt0: timer@ffca0000 { - compatible = "renesas,cmt-48-gen2"; + compatible = "renesas,cmt-48-r8a7791", "renesas,cmt-48-gen2"; reg = <0 0xffca0000 0 0x1004>; interrupts = <0 142 IRQ_TYPE_LEVEL_HIGH>, <0 143 IRQ_TYPE_LEVEL_HIGH>; @@ -203,7 +203,7 @@ }; cmt1: timer@e6130000 { - compatible = "renesas,cmt-48-gen2"; + compatible = "renesas,cmt-48-r8a7791", "renesas,cmt-48-gen2"; reg = <0 0xe6130000 0 0x1004>; interrupts = <0 120 IRQ_TYPE_LEVEL_HIGH>, <0 121 IRQ_TYPE_LEVEL_HIGH>, -- 2.0.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 3/7] ARM: shmobile: r8a7791: Use SoC-specific 48-bit CMT compat string @ 2014-09-11 0:57 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-09-11 0:57 UTC (permalink / raw) To: linux-arm-kernel In general Renesas hardware is not documented to the extent where the relationship between IP blocks on different SoCs can be assumed although they may appear to operate the same way. Furthermore the documentation typically does not specify a version for individual IP blocks. For these reasons a convention of using the SoC name in place of a version and providing SoC-specific compat strings has been adopted. Although not universally liked this convention is used in the bindings for a number of drivers for Renesas hardware. The purpose of this patch is to make use of the SoC-specific CMT compat string for the r8a7791 48-bit CMT clock source. Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/r8a7791.dtsi b/arch/arm/boot/dts/r8a7791.dtsi index bdb9ac1..e270f38 100644 --- a/arch/arm/boot/dts/r8a7791.dtsi +++ b/arch/arm/boot/dts/r8a7791.dtsi @@ -190,7 +190,7 @@ }; cmt0: timer at ffca0000 { - compatible = "renesas,cmt-48-gen2"; + compatible = "renesas,cmt-48-r8a7791", "renesas,cmt-48-gen2"; reg = <0 0xffca0000 0 0x1004>; interrupts = <0 142 IRQ_TYPE_LEVEL_HIGH>, <0 143 IRQ_TYPE_LEVEL_HIGH>; @@ -203,7 +203,7 @@ }; cmt1: timer at e6130000 { - compatible = "renesas,cmt-48-gen2"; + compatible = "renesas,cmt-48-r8a7791", "renesas,cmt-48-gen2"; reg = <0 0xe6130000 0 0x1004>; interrupts = <0 120 IRQ_TYPE_LEVEL_HIGH>, <0 121 IRQ_TYPE_LEVEL_HIGH>, -- 2.0.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 4/7] ARM: shmobile: r8a7779: Use SoC-specific TMU compat string 2014-09-11 0:57 ` Simon Horman @ 2014-09-11 0:57 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-09-11 0:57 UTC (permalink / raw) To: linux-arm-kernel In general Renesas hardware is not documented to the extent where the relationship between IP blocks on different SoCs can be assumed although they may appear to operate the same way. Furthermore the documentation typically does not specify a version for individual IP blocks. For these reasons a convention of using the SoC name in place of a version and providing SoC-specific compat strings has been adopted. Although not universally liked this convention is used in the bindings for a number of drivers for Renesas hardware. The purpose of this patch is to make use of the SoC-specific CMT compat string for the r8a7779 TMU clock source. Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7779.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/r8a7779.dtsi b/arch/arm/boot/dts/r8a7779.dtsi index 463e3fd..72891e5 100644 --- a/arch/arm/boot/dts/r8a7779.dtsi +++ b/arch/arm/boot/dts/r8a7779.dtsi @@ -267,7 +267,7 @@ }; tmu0: timer@ffd80000 { - compatible = "renesas,tmu"; + compatible = "renesas,tmu-r8a7779", "renesas,tmu"; reg = <0xffd80000 0x30>; interrupts = <0 32 IRQ_TYPE_LEVEL_HIGH>, <0 33 IRQ_TYPE_LEVEL_HIGH>, @@ -281,7 +281,7 @@ }; tmu1: timer@ffd81000 { - compatible = "renesas,tmu"; + compatible = "renesas,tmu-r8a7779", "renesas,tmu"; reg = <0xffd81000 0x30>; interrupts = <0 36 IRQ_TYPE_LEVEL_HIGH>, <0 37 IRQ_TYPE_LEVEL_HIGH>, @@ -295,7 +295,7 @@ }; tmu2: timer@ffd82000 { - compatible = "renesas,tmu"; + compatible = "renesas,tmu-r8a7779", "renesas,tmu"; reg = <0xffd82000 0x30>; interrupts = <0 40 IRQ_TYPE_LEVEL_HIGH>, <0 41 IRQ_TYPE_LEVEL_HIGH>, -- 2.0.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 4/7] ARM: shmobile: r8a7779: Use SoC-specific TMU compat string @ 2014-09-11 0:57 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-09-11 0:57 UTC (permalink / raw) To: linux-arm-kernel In general Renesas hardware is not documented to the extent where the relationship between IP blocks on different SoCs can be assumed although they may appear to operate the same way. Furthermore the documentation typically does not specify a version for individual IP blocks. For these reasons a convention of using the SoC name in place of a version and providing SoC-specific compat strings has been adopted. Although not universally liked this convention is used in the bindings for a number of drivers for Renesas hardware. The purpose of this patch is to make use of the SoC-specific CMT compat string for the r8a7779 TMU clock source. Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7779.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/r8a7779.dtsi b/arch/arm/boot/dts/r8a7779.dtsi index 463e3fd..72891e5 100644 --- a/arch/arm/boot/dts/r8a7779.dtsi +++ b/arch/arm/boot/dts/r8a7779.dtsi @@ -267,7 +267,7 @@ }; tmu0: timer at ffd80000 { - compatible = "renesas,tmu"; + compatible = "renesas,tmu-r8a7779", "renesas,tmu"; reg = <0xffd80000 0x30>; interrupts = <0 32 IRQ_TYPE_LEVEL_HIGH>, <0 33 IRQ_TYPE_LEVEL_HIGH>, @@ -281,7 +281,7 @@ }; tmu1: timer at ffd81000 { - compatible = "renesas,tmu"; + compatible = "renesas,tmu-r8a7779", "renesas,tmu"; reg = <0xffd81000 0x30>; interrupts = <0 36 IRQ_TYPE_LEVEL_HIGH>, <0 37 IRQ_TYPE_LEVEL_HIGH>, @@ -295,7 +295,7 @@ }; tmu2: timer at ffd82000 { - compatible = "renesas,tmu"; + compatible = "renesas,tmu-r8a7779", "renesas,tmu"; reg = <0xffd82000 0x30>; interrupts = <0 40 IRQ_TYPE_LEVEL_HIGH>, <0 41 IRQ_TYPE_LEVEL_HIGH>, -- 2.0.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 5/7] ARM: shmobile: r8a7740: Use SoC-specific 48-bit CMT compat string 2014-09-11 0:57 ` Simon Horman @ 2014-09-11 0:57 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-09-11 0:57 UTC (permalink / raw) To: linux-arm-kernel In general Renesas hardware is not documented to the extent where the relationship between IP blocks on different SoCs can be assumed although they may appear to operate the same way. Furthermore the documentation typically does not specify a version for individual IP blocks. For these reasons a convention of using the SoC name in place of a version and providing SoC-specific compat strings has been adopted. Although not universally liked this convention is used in the bindings for a number of drivers for Renesas hardware. The purpose of this patch is to make use of the SoC-specific CMT compat string for the r8a7740 48-bit CMT clock source. Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7740.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/r8a7740.dtsi b/arch/arm/boot/dts/r8a7740.dtsi index 1067a96..d46c213 100644 --- a/arch/arm/boot/dts/r8a7740.dtsi +++ b/arch/arm/boot/dts/r8a7740.dtsi @@ -42,7 +42,7 @@ }; cmt1: timer@e6138000 { - compatible = "renesas,cmt-48"; + compatible = "renesas,cmt-48-r8a7740", "renesas,cmt-48"; reg = <0xe6138000 0x170>; interrupts = <0 58 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp3_clks R8A7740_CLK_CMT1>; -- 2.0.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 5/7] ARM: shmobile: r8a7740: Use SoC-specific 48-bit CMT compat string @ 2014-09-11 0:57 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-09-11 0:57 UTC (permalink / raw) To: linux-arm-kernel In general Renesas hardware is not documented to the extent where the relationship between IP blocks on different SoCs can be assumed although they may appear to operate the same way. Furthermore the documentation typically does not specify a version for individual IP blocks. For these reasons a convention of using the SoC name in place of a version and providing SoC-specific compat strings has been adopted. Although not universally liked this convention is used in the bindings for a number of drivers for Renesas hardware. The purpose of this patch is to make use of the SoC-specific CMT compat string for the r8a7740 48-bit CMT clock source. Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7740.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/r8a7740.dtsi b/arch/arm/boot/dts/r8a7740.dtsi index 1067a96..d46c213 100644 --- a/arch/arm/boot/dts/r8a7740.dtsi +++ b/arch/arm/boot/dts/r8a7740.dtsi @@ -42,7 +42,7 @@ }; cmt1: timer at e6138000 { - compatible = "renesas,cmt-48"; + compatible = "renesas,cmt-48-r8a7740", "renesas,cmt-48"; reg = <0xe6138000 0x170>; interrupts = <0 58 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp3_clks R8A7740_CLK_CMT1>; -- 2.0.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 6/7] ARM: shmobile: sh73a0: Add CMT1 device to DT 2014-09-11 0:57 ` Simon Horman @ 2014-09-11 0:57 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-09-11 0:57 UTC (permalink / raw) To: linux-arm-kernel From: Ulrich Hecht <ulrich.hecht+renesas@gmail.com> Signed-off-by: Ulrich Hecht <ulrich.hecht+renesas@gmail.com> Acked-by: Magnus Damm <damm+renesas@opensource.se> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/sh73a0.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/sh73a0.dtsi b/arch/arm/boot/dts/sh73a0.dtsi index 910b790..093e609 100644 --- a/arch/arm/boot/dts/sh73a0.dtsi +++ b/arch/arm/boot/dts/sh73a0.dtsi @@ -45,6 +45,16 @@ <0 56 IRQ_TYPE_LEVEL_HIGH>; }; + cmt1: timer@e6138000 { + compatible = "renesas,cmt-48-sh73a0", "renesas,cmt-48"; + reg = <0xe6138000 0x200>; + interrupts = <0 65 IRQ_TYPE_LEVEL_HIGH>; + + renesas,channels-mask = <0x3f>; + + status = "disabled"; + }; + irqpin0: irqpin@e6900000 { compatible = "renesas,intc-irqpin-sh73a0", "renesas,intc-irqpin"; #interrupt-cells = <2>; -- 2.0.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 6/7] ARM: shmobile: sh73a0: Add CMT1 device to DT @ 2014-09-11 0:57 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-09-11 0:57 UTC (permalink / raw) To: linux-arm-kernel From: Ulrich Hecht <ulrich.hecht+renesas@gmail.com> Signed-off-by: Ulrich Hecht <ulrich.hecht+renesas@gmail.com> Acked-by: Magnus Damm <damm+renesas@opensource.se> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/sh73a0.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/sh73a0.dtsi b/arch/arm/boot/dts/sh73a0.dtsi index 910b790..093e609 100644 --- a/arch/arm/boot/dts/sh73a0.dtsi +++ b/arch/arm/boot/dts/sh73a0.dtsi @@ -45,6 +45,16 @@ <0 56 IRQ_TYPE_LEVEL_HIGH>; }; + cmt1: timer at e6138000 { + compatible = "renesas,cmt-48-sh73a0", "renesas,cmt-48"; + reg = <0xe6138000 0x200>; + interrupts = <0 65 IRQ_TYPE_LEVEL_HIGH>; + + renesas,channels-mask = <0x3f>; + + status = "disabled"; + }; + irqpin0: irqpin at e6900000 { compatible = "renesas,intc-irqpin-sh73a0", "renesas,intc-irqpin"; #interrupt-cells = <2>; -- 2.0.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 7/7] ARM: shmobile: kzm9g-reference: Enable CMT1 in device tree 2014-09-11 0:57 ` Simon Horman @ 2014-09-11 0:57 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-09-11 0:57 UTC (permalink / raw) To: linux-arm-kernel From: Ulrich Hecht <ulrich.hecht+renesas@gmail.com> Signed-off-by: Ulrich Hecht <ulrich.hecht+renesas@gmail.com> Acked-by: Magnus Damm <damm+renesas@opensource.se> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/sh73a0-kzm9g-reference.dts | 4 ++++ arch/arm/mach-shmobile/setup-sh73a0.c | 11 +---------- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/arch/arm/boot/dts/sh73a0-kzm9g-reference.dts b/arch/arm/boot/dts/sh73a0-kzm9g-reference.dts index 18662ae..99659db 100644 --- a/arch/arm/boot/dts/sh73a0-kzm9g-reference.dts +++ b/arch/arm/boot/dts/sh73a0-kzm9g-reference.dts @@ -173,6 +173,10 @@ }; }; +&cmt1 { + status = "ok"; +}; + &i2c0 { status = "okay"; as3711@40 { diff --git a/arch/arm/mach-shmobile/setup-sh73a0.c b/arch/arm/mach-shmobile/setup-sh73a0.c index 2c802ae..928e96a 100644 --- a/arch/arm/mach-shmobile/setup-sh73a0.c +++ b/arch/arm/mach-shmobile/setup-sh73a0.c @@ -696,10 +696,6 @@ static struct platform_device irqpin3_device = { }, }; -static struct platform_device *sh73a0_devices_dt[] __initdata = { - &cmt1_device, -}; - static struct platform_device *sh73a0_early_devices[] __initdata = { &scif0_device, &scif1_device, @@ -712,6 +708,7 @@ static struct platform_device *sh73a0_early_devices[] __initdata = { &scif8_device, &tmu0_device, &ipmmu_device, + &cmt1_device, }; static struct platform_device *sh73a0_late_devices[] __initdata = { @@ -736,8 +733,6 @@ void __init sh73a0_add_standard_devices(void) /* Clear software reset bit on SY-DMAC module */ __raw_writel(__raw_readl(SRCR2) & ~(1 << 18), SRCR2); - platform_add_devices(sh73a0_devices_dt, - ARRAY_SIZE(sh73a0_devices_dt)); platform_add_devices(sh73a0_early_devices, ARRAY_SIZE(sh73a0_early_devices)); platform_add_devices(sh73a0_late_devices, @@ -762,8 +757,6 @@ void __init sh73a0_earlytimer_init(void) void __init sh73a0_add_early_devices(void) { - early_platform_add_devices(sh73a0_devices_dt, - ARRAY_SIZE(sh73a0_devices_dt)); early_platform_add_devices(sh73a0_early_devices, ARRAY_SIZE(sh73a0_early_devices)); @@ -780,8 +773,6 @@ void __init sh73a0_add_standard_devices_dt(void) /* clocks are setup late during boot in the case of DT */ sh73a0_clock_init(); - platform_add_devices(sh73a0_devices_dt, - ARRAY_SIZE(sh73a0_devices_dt)); of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); /* Instantiate cpufreq-cpu0 */ -- 2.0.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 7/7] ARM: shmobile: kzm9g-reference: Enable CMT1 in device tree @ 2014-09-11 0:57 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-09-11 0:57 UTC (permalink / raw) To: linux-arm-kernel From: Ulrich Hecht <ulrich.hecht+renesas@gmail.com> Signed-off-by: Ulrich Hecht <ulrich.hecht+renesas@gmail.com> Acked-by: Magnus Damm <damm+renesas@opensource.se> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/sh73a0-kzm9g-reference.dts | 4 ++++ arch/arm/mach-shmobile/setup-sh73a0.c | 11 +---------- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/arch/arm/boot/dts/sh73a0-kzm9g-reference.dts b/arch/arm/boot/dts/sh73a0-kzm9g-reference.dts index 18662ae..99659db 100644 --- a/arch/arm/boot/dts/sh73a0-kzm9g-reference.dts +++ b/arch/arm/boot/dts/sh73a0-kzm9g-reference.dts @@ -173,6 +173,10 @@ }; }; +&cmt1 { + status = "ok"; +}; + &i2c0 { status = "okay"; as3711 at 40 { diff --git a/arch/arm/mach-shmobile/setup-sh73a0.c b/arch/arm/mach-shmobile/setup-sh73a0.c index 2c802ae..928e96a 100644 --- a/arch/arm/mach-shmobile/setup-sh73a0.c +++ b/arch/arm/mach-shmobile/setup-sh73a0.c @@ -696,10 +696,6 @@ static struct platform_device irqpin3_device = { }, }; -static struct platform_device *sh73a0_devices_dt[] __initdata = { - &cmt1_device, -}; - static struct platform_device *sh73a0_early_devices[] __initdata = { &scif0_device, &scif1_device, @@ -712,6 +708,7 @@ static struct platform_device *sh73a0_early_devices[] __initdata = { &scif8_device, &tmu0_device, &ipmmu_device, + &cmt1_device, }; static struct platform_device *sh73a0_late_devices[] __initdata = { @@ -736,8 +733,6 @@ void __init sh73a0_add_standard_devices(void) /* Clear software reset bit on SY-DMAC module */ __raw_writel(__raw_readl(SRCR2) & ~(1 << 18), SRCR2); - platform_add_devices(sh73a0_devices_dt, - ARRAY_SIZE(sh73a0_devices_dt)); platform_add_devices(sh73a0_early_devices, ARRAY_SIZE(sh73a0_early_devices)); platform_add_devices(sh73a0_late_devices, @@ -762,8 +757,6 @@ void __init sh73a0_earlytimer_init(void) void __init sh73a0_add_early_devices(void) { - early_platform_add_devices(sh73a0_devices_dt, - ARRAY_SIZE(sh73a0_devices_dt)); early_platform_add_devices(sh73a0_early_devices, ARRAY_SIZE(sh73a0_early_devices)); @@ -780,8 +773,6 @@ void __init sh73a0_add_standard_devices_dt(void) /* clocks are setup late during boot in the case of DT */ sh73a0_clock_init(); - platform_add_devices(sh73a0_devices_dt, - ARRAY_SIZE(sh73a0_devices_dt)); of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); /* Instantiate cpufreq-cpu0 */ -- 2.0.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* Re: [GIT PULL] Second Round of Renesas ARM Based SoC DT Timers Updates for v3.18 2014-09-11 0:57 ` Simon Horman @ 2014-09-11 8:19 ` Arnd Bergmann -1 siblings, 0 replies; 776+ messages in thread From: Arnd Bergmann @ 2014-09-11 8:19 UTC (permalink / raw) To: linux-arm-kernel On Thursday 11 September 2014 09:57:01 Simon Horman wrote: > Hi Olof, Hi Kevin, Hi Arnd, > > Please consider these second round of Renesas ARM based SoC DT timers updates for v3.18. > > This pull request is based on a merge of: > > * The previous round of DT time updates for v3.18, > tagged as renesas-dt-timers-for-v3.18, > which you have already merged. > > * Renesas ARM Based SoC r8a7740 Multiplatform Updates for v3.18, > tagged as renesas-r8a7740-ccf-and-timers-for-v3.18, > which you have previously pulled. > > > The following changes since commit dcc683aba83cd8db964a9a1d4582d4829d6efcb2: > > Merge tag 'renesas-r8a7740-ccf-and-timers-for-v3.18' into dt-timers-for-v3.18 (2014-09-09 11:50:00 +0900) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-dt-timers2-for-v3.18 > > for you to fetch changes up to 48a0d1e07d99ecfd1e5922dd22986d5813f17207: > > ARM: shmobile: kzm9g-reference: Enable CMT1 in device tree (2014-09-09 11:53:14 +0900) > > ---------------------------------------------------------------- > Second Round of Renesas ARM Based SoC DT Timers Updates for v3.18 > > * kzm9g-reference: Enable CMT1 in device tree > * Use SoC-specific timer compat strings Pulled into next/soc, thanks! Arnd ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC DT Timers Updates for v3.18 @ 2014-09-11 8:19 ` Arnd Bergmann 0 siblings, 0 replies; 776+ messages in thread From: Arnd Bergmann @ 2014-09-11 8:19 UTC (permalink / raw) To: linux-arm-kernel On Thursday 11 September 2014 09:57:01 Simon Horman wrote: > Hi Olof, Hi Kevin, Hi Arnd, > > Please consider these second round of Renesas ARM based SoC DT timers updates for v3.18. > > This pull request is based on a merge of: > > * The previous round of DT time updates for v3.18, > tagged as renesas-dt-timers-for-v3.18, > which you have already merged. > > * Renesas ARM Based SoC r8a7740 Multiplatform Updates for v3.18, > tagged as renesas-r8a7740-ccf-and-timers-for-v3.18, > which you have previously pulled. > > > The following changes since commit dcc683aba83cd8db964a9a1d4582d4829d6efcb2: > > Merge tag 'renesas-r8a7740-ccf-and-timers-for-v3.18' into dt-timers-for-v3.18 (2014-09-09 11:50:00 +0900) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-dt-timers2-for-v3.18 > > for you to fetch changes up to 48a0d1e07d99ecfd1e5922dd22986d5813f17207: > > ARM: shmobile: kzm9g-reference: Enable CMT1 in device tree (2014-09-09 11:53:14 +0900) > > ---------------------------------------------------------------- > Second Round of Renesas ARM Based SoC DT Timers Updates for v3.18 > > * kzm9g-reference: Enable CMT1 in device tree > * Use SoC-specific timer compat strings Pulled into next/soc, thanks! Arnd ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC Clk Updates for v3.18 @ 2014-09-12 1:23 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-09-12 1:23 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Hi Kevin, Hi Arnd, Please consider these second round of Renesas ARM based SoC clk updates for v3.18. This pull request is based on the previous round of such requests, tagged as renesas-clk-for-v3.18, which you have already pulled. I am taking this change through my tree with Mike's Ack as it seems to be a smooth way to handle things. The following changes since commit 8de078f189da45453d2ed2a04288e329cc169731: clk: shmobile: Add r8a7794 support (2014-08-27 08:40:54 +0900) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-clk2-for-v3.18 for you to fetch changes up to b32c44b93af31e9163514df0f3ac2791972eb124: clk: shmobile: Add r8a7740, sh73a0 SoCs to MSTP bindings (2014-09-10 09:08:10 +0900) ---------------------------------------------------------------- Second Round of Renesas ARM Based SoC Clk Updates for v3.18 * Add r8a7740, sh73a0 SoCs to MSTP bindings ---------------------------------------------------------------- Ulrich Hecht (1): clk: shmobile: Add r8a7740, sh73a0 SoCs to MSTP bindings Documentation/devicetree/bindings/clock/renesas,cpg-mstp-clocks.txt | 2 ++ 1 file changed, 2 insertions(+) ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC Clk Updates for v3.18 @ 2014-09-12 1:23 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-09-12 1:23 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Hi Kevin, Hi Arnd, Please consider these second round of Renesas ARM based SoC clk updates for v3.18. This pull request is based on the previous round of such requests, tagged as renesas-clk-for-v3.18, which you have already pulled. I am taking this change through my tree with Mike's Ack as it seems to be a smooth way to handle things. The following changes since commit 8de078f189da45453d2ed2a04288e329cc169731: clk: shmobile: Add r8a7794 support (2014-08-27 08:40:54 +0900) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-clk2-for-v3.18 for you to fetch changes up to b32c44b93af31e9163514df0f3ac2791972eb124: clk: shmobile: Add r8a7740, sh73a0 SoCs to MSTP bindings (2014-09-10 09:08:10 +0900) ---------------------------------------------------------------- Second Round of Renesas ARM Based SoC Clk Updates for v3.18 * Add r8a7740, sh73a0 SoCs to MSTP bindings ---------------------------------------------------------------- Ulrich Hecht (1): clk: shmobile: Add r8a7740, sh73a0 SoCs to MSTP bindings Documentation/devicetree/bindings/clock/renesas,cpg-mstp-clocks.txt | 2 ++ 1 file changed, 2 insertions(+) ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH] clk: shmobile: Add r8a7740, sh73a0 SoCs to MSTP bindings 2014-09-12 1:23 ` Simon Horman @ 2014-09-12 1:23 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-09-12 1:23 UTC (permalink / raw) To: linux-arm-kernel From: Ulrich Hecht <ulrich.hecht+renesas@gmail.com> Signed-off-by: Ulrich Hecht <ulrich.hecht+renesas@gmail.com> Acked-by: Mike Turquette <mturquette@linaro.org> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- Documentation/devicetree/bindings/clock/renesas,cpg-mstp-clocks.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/clock/renesas,cpg-mstp-clocks.txt b/Documentation/devicetree/bindings/clock/renesas,cpg-mstp-clocks.txt index 8a92b5fb..8f1424f 100644 --- a/Documentation/devicetree/bindings/clock/renesas,cpg-mstp-clocks.txt +++ b/Documentation/devicetree/bindings/clock/renesas,cpg-mstp-clocks.txt @@ -11,9 +11,11 @@ Required Properties: - compatible: Must be one of the following - "renesas,r7s72100-mstp-clocks" for R7S72100 (RZ) MSTP gate clocks + - "renesas,r8a7740-mstp-clocks" for R8A7740 (R-Mobile A1) MSTP gate clocks - "renesas,r8a7779-mstp-clocks" for R8A7779 (R-Car H1) MSTP gate clocks - "renesas,r8a7790-mstp-clocks" for R8A7790 (R-Car H2) MSTP gate clocks - "renesas,r8a7791-mstp-clocks" for R8A7791 (R-Car M2) MSTP gate clocks + - "renesas,sh73a0-mstp-clocks" for SH73A0 (SH-MobileAG5) MSTP gate clocks - "renesas,cpg-mstp-clock" for generic MSTP gate clocks - reg: Base address and length of the I/O mapped registers used by the MSTP clocks. The first register is the clock control register and is mandatory. -- 2.0.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH] clk: shmobile: Add r8a7740, sh73a0 SoCs to MSTP bindings @ 2014-09-12 1:23 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-09-12 1:23 UTC (permalink / raw) To: linux-arm-kernel From: Ulrich Hecht <ulrich.hecht+renesas@gmail.com> Signed-off-by: Ulrich Hecht <ulrich.hecht+renesas@gmail.com> Acked-by: Mike Turquette <mturquette@linaro.org> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- Documentation/devicetree/bindings/clock/renesas,cpg-mstp-clocks.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/clock/renesas,cpg-mstp-clocks.txt b/Documentation/devicetree/bindings/clock/renesas,cpg-mstp-clocks.txt index 8a92b5fb..8f1424f 100644 --- a/Documentation/devicetree/bindings/clock/renesas,cpg-mstp-clocks.txt +++ b/Documentation/devicetree/bindings/clock/renesas,cpg-mstp-clocks.txt @@ -11,9 +11,11 @@ Required Properties: - compatible: Must be one of the following - "renesas,r7s72100-mstp-clocks" for R7S72100 (RZ) MSTP gate clocks + - "renesas,r8a7740-mstp-clocks" for R8A7740 (R-Mobile A1) MSTP gate clocks - "renesas,r8a7779-mstp-clocks" for R8A7779 (R-Car H1) MSTP gate clocks - "renesas,r8a7790-mstp-clocks" for R8A7790 (R-Car H2) MSTP gate clocks - "renesas,r8a7791-mstp-clocks" for R8A7791 (R-Car M2) MSTP gate clocks + - "renesas,sh73a0-mstp-clocks" for SH73A0 (SH-MobileAG5) MSTP gate clocks - "renesas,cpg-mstp-clock" for generic MSTP gate clocks - reg: Base address and length of the I/O mapped registers used by the MSTP clocks. The first register is the clock control register and is mandatory. -- 2.0.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* Re: [GIT PULL] Second Round of Renesas ARM Based SoC Clk Updates for v3.18 2014-09-12 1:23 ` Simon Horman @ 2014-09-24 5:15 ` Olof Johansson -1 siblings, 0 replies; 776+ messages in thread From: Olof Johansson @ 2014-09-24 5:15 UTC (permalink / raw) To: linux-arm-kernel On Fri, Sep 12, 2014 at 10:23:47AM +0900, Simon Horman wrote: > Hi Olof, Hi Kevin, Hi Arnd, > > Please consider these second round of Renesas ARM based SoC clk updates for v3.18. > > This pull request is based on the previous round of > such requests, tagged as renesas-clk-for-v3.18, > which you have already pulled. > > I am taking this change through my tree with Mike's Ack > as it seems to be a smooth way to handle things. > > > The following changes since commit 8de078f189da45453d2ed2a04288e329cc169731: > > clk: shmobile: Add r8a7794 support (2014-08-27 08:40:54 +0900) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-clk2-for-v3.18 > > for you to fetch changes up to b32c44b93af31e9163514df0f3ac2791972eb124: > > clk: shmobile: Add r8a7740, sh73a0 SoCs to MSTP bindings (2014-09-10 09:08:10 +0900) > Merged, thanks. -Olof ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC Clk Updates for v3.18 @ 2014-09-24 5:15 ` Olof Johansson 0 siblings, 0 replies; 776+ messages in thread From: Olof Johansson @ 2014-09-24 5:15 UTC (permalink / raw) To: linux-arm-kernel On Fri, Sep 12, 2014 at 10:23:47AM +0900, Simon Horman wrote: > Hi Olof, Hi Kevin, Hi Arnd, > > Please consider these second round of Renesas ARM based SoC clk updates for v3.18. > > This pull request is based on the previous round of > such requests, tagged as renesas-clk-for-v3.18, > which you have already pulled. > > I am taking this change through my tree with Mike's Ack > as it seems to be a smooth way to handle things. > > > The following changes since commit 8de078f189da45453d2ed2a04288e329cc169731: > > clk: shmobile: Add r8a7794 support (2014-08-27 08:40:54 +0900) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-clk2-for-v3.18 > > for you to fetch changes up to b32c44b93af31e9163514df0f3ac2791972eb124: > > clk: shmobile: Add r8a7740, sh73a0 SoCs to MSTP bindings (2014-09-10 09:08:10 +0900) > Merged, thanks. -Olof ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC Boards Cleanups for v3.19 @ 2014-11-04 1:50 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-04 1:50 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Hi Kevin, Hi Arnd, Please consider these second round of Renesas ARM based SoC boards cleanups for v3.19. This pull request is based on the previous round of such requests, tagged as renesas-boards-cleanups-for-v3.19, which I have already sent a pull-request for. The following changes since commit f4115f25c11790646351df243dae070a7cf80163: ARM: shmobile: armadillo800eva: Sort includes (2014-10-24 10:50:47 +0900) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-boards-cleanups2-for-v3.19 for you to fetch changes up to 803fc9b590f74ef1066be328f2f33c2b285ca3af: ARM: shmobile: marzen-reference: Don't include legacy clock.h (2014-10-30 09:51:35 +0900) ---------------------------------------------------------------- Second Round of Renesas ARM Based SoC Boards Cleanups for v3.19 * marzen-reference: Don't include legacy clock.h ---------------------------------------------------------------- Laurent Pinchart (1): ARM: shmobile: marzen-reference: Don't include legacy clock.h arch/arm/mach-shmobile/board-marzen-reference.c | 1 - 1 file changed, 1 deletion(-) ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC Boards Cleanups for v3.19 @ 2014-11-04 1:50 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-04 1:50 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Hi Kevin, Hi Arnd, Please consider these second round of Renesas ARM based SoC boards cleanups for v3.19. This pull request is based on the previous round of such requests, tagged as renesas-boards-cleanups-for-v3.19, which I have already sent a pull-request for. The following changes since commit f4115f25c11790646351df243dae070a7cf80163: ARM: shmobile: armadillo800eva: Sort includes (2014-10-24 10:50:47 +0900) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-boards-cleanups2-for-v3.19 for you to fetch changes up to 803fc9b590f74ef1066be328f2f33c2b285ca3af: ARM: shmobile: marzen-reference: Don't include legacy clock.h (2014-10-30 09:51:35 +0900) ---------------------------------------------------------------- Second Round of Renesas ARM Based SoC Boards Cleanups for v3.19 * marzen-reference: Don't include legacy clock.h ---------------------------------------------------------------- Laurent Pinchart (1): ARM: shmobile: marzen-reference: Don't include legacy clock.h arch/arm/mach-shmobile/board-marzen-reference.c | 1 - 1 file changed, 1 deletion(-) ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH] ARM: shmobile: marzen-reference: Don't include legacy clock.h 2014-11-04 1:50 ` Simon Horman @ 2014-11-04 1:50 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-04 1:50 UTC (permalink / raw) To: linux-arm-kernel From: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> The marzen-reference board file doesn't need the clock.h header, don't include it. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/board-marzen-reference.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/mach-shmobile/board-marzen-reference.c b/arch/arm/mach-shmobile/board-marzen-reference.c index 38d9cdd..644883a 100644 --- a/arch/arm/mach-shmobile/board-marzen-reference.c +++ b/arch/arm/mach-shmobile/board-marzen-reference.c @@ -26,7 +26,6 @@ #include <asm/irq.h> #include <asm/mach/arch.h> -#include "clock.h" #include "common.h" #include "irqs.h" #include "r8a7779.h" -- 2.1.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH] ARM: shmobile: marzen-reference: Don't include legacy clock.h @ 2014-11-04 1:50 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-04 1:50 UTC (permalink / raw) To: linux-arm-kernel From: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> The marzen-reference board file doesn't need the clock.h header, don't include it. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/board-marzen-reference.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/mach-shmobile/board-marzen-reference.c b/arch/arm/mach-shmobile/board-marzen-reference.c index 38d9cdd..644883a 100644 --- a/arch/arm/mach-shmobile/board-marzen-reference.c +++ b/arch/arm/mach-shmobile/board-marzen-reference.c @@ -26,7 +26,6 @@ #include <asm/irq.h> #include <asm/mach/arch.h> -#include "clock.h" #include "common.h" #include "irqs.h" #include "r8a7779.h" -- 2.1.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* Re: [GIT PULL] Second Round of Renesas ARM Based SoC Boards Cleanups for v3.19 2014-11-04 1:50 ` Simon Horman @ 2014-11-19 21:30 ` Arnd Bergmann -1 siblings, 0 replies; 776+ messages in thread From: Arnd Bergmann @ 2014-11-19 21:30 UTC (permalink / raw) To: linux-arm-kernel On Tuesday 04 November 2014, Simon Horman wrote: > Please consider these second round of Renesas ARM based SoC boards cleanups for v3.19. > > This pull request is based on the previous round of > such requests, tagged as renesas-boards-cleanups-for-v3.19, > which I have already sent a pull-request for. > Pulled into next/cleanup, thanks! Arnd ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC Boards Cleanups for v3.19 @ 2014-11-19 21:30 ` Arnd Bergmann 0 siblings, 0 replies; 776+ messages in thread From: Arnd Bergmann @ 2014-11-19 21:30 UTC (permalink / raw) To: linux-arm-kernel On Tuesday 04 November 2014, Simon Horman wrote: > Please consider these second round of Renesas ARM based SoC boards cleanups for v3.19. > > This pull request is based on the previous round of > such requests, tagged as renesas-boards-cleanups-for-v3.19, > which I have already sent a pull-request for. > Pulled into next/cleanup, thanks! Arnd ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC DT Cleanups for v3.19 @ 2014-11-10 1:32 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-10 1:32 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Hi Kevin, Hi Arnd, Please consider these second round of Renesas ARM based SoC DT cleanups for v3.19. This pull request is based on the previous round of such requests, tagged as renesas-dt-cleanups-for-v3.19, which I have already sent a pull-request for. The following changes since commit 120f038cf04b95dc895cba503a7516ff75561438: ARM: shmobile: kzm9d dts: Add chosen/stdout-path (2014-10-24 10:44:10 +0900) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-dt-cleanups2-for-v3.19 for you to fetch changes up to 89aeff9989e87bb2d9d652994010bc18c68675d9: ARM: shmobile: alt dts: Drop console= bootargs parameter (2014-11-05 14:54:10 +0900) ---------------------------------------------------------------- Second Round of Renesas ARM Based SoC DT Cleanups for v3.19 * Drop console= bootargs parameter on alt * Correct scifb* naming on r8a73a4 * Drop 0x unit-address prefixes * Remove unnecessary MMC options ---------------------------------------------------------------- Geert Uytterhoeven (3): ARM: shmobile: r8a7790 dtsi: Drop bogus 0x unit-address prefix ARM: shmobile: r8a7791 dtsi: Drop bogus 0x unit-address prefix ARM: shmobile: kzm9g-reference dts: Drop bogus 0x unit-address prefix Kuninori Morimoto (3): ARM: shmobile: r8a7778 dtsi: Remove unnecessary MMC options ARM: shmobile: r8a7779 dtsi: Remove unnecessary MMC options ARM: shmobile: r8a7790 dtsi: Remove unnecessary MMC options Simon Horman (1): ARM: shmobile: alt dts: Drop console= bootargs parameter Ulrich Hecht (1): ARM: shmobile: r8a73a4: fix scifb* naming arch/arm/boot/dts/r8a73a4.dtsi | 8 ++++---- arch/arm/boot/dts/r8a7778.dtsi | 6 ------ arch/arm/boot/dts/r8a7779.dtsi | 8 -------- arch/arm/boot/dts/r8a7790.dtsi | 6 +----- arch/arm/boot/dts/r8a7791.dtsi | 2 +- arch/arm/boot/dts/r8a7794-alt.dts | 2 +- arch/arm/boot/dts/sh73a0-kzm9g-reference.dts | 2 +- 7 files changed, 8 insertions(+), 26 deletions(-) ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC DT Cleanups for v3.19 @ 2014-11-10 1:32 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-10 1:32 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Hi Kevin, Hi Arnd, Please consider these second round of Renesas ARM based SoC DT cleanups for v3.19. This pull request is based on the previous round of such requests, tagged as renesas-dt-cleanups-for-v3.19, which I have already sent a pull-request for. The following changes since commit 120f038cf04b95dc895cba503a7516ff75561438: ARM: shmobile: kzm9d dts: Add chosen/stdout-path (2014-10-24 10:44:10 +0900) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-dt-cleanups2-for-v3.19 for you to fetch changes up to 89aeff9989e87bb2d9d652994010bc18c68675d9: ARM: shmobile: alt dts: Drop console= bootargs parameter (2014-11-05 14:54:10 +0900) ---------------------------------------------------------------- Second Round of Renesas ARM Based SoC DT Cleanups for v3.19 * Drop console= bootargs parameter on alt * Correct scifb* naming on r8a73a4 * Drop 0x unit-address prefixes * Remove unnecessary MMC options ---------------------------------------------------------------- Geert Uytterhoeven (3): ARM: shmobile: r8a7790 dtsi: Drop bogus 0x unit-address prefix ARM: shmobile: r8a7791 dtsi: Drop bogus 0x unit-address prefix ARM: shmobile: kzm9g-reference dts: Drop bogus 0x unit-address prefix Kuninori Morimoto (3): ARM: shmobile: r8a7778 dtsi: Remove unnecessary MMC options ARM: shmobile: r8a7779 dtsi: Remove unnecessary MMC options ARM: shmobile: r8a7790 dtsi: Remove unnecessary MMC options Simon Horman (1): ARM: shmobile: alt dts: Drop console= bootargs parameter Ulrich Hecht (1): ARM: shmobile: r8a73a4: fix scifb* naming arch/arm/boot/dts/r8a73a4.dtsi | 8 ++++---- arch/arm/boot/dts/r8a7778.dtsi | 6 ------ arch/arm/boot/dts/r8a7779.dtsi | 8 -------- arch/arm/boot/dts/r8a7790.dtsi | 6 +----- arch/arm/boot/dts/r8a7791.dtsi | 2 +- arch/arm/boot/dts/r8a7794-alt.dts | 2 +- arch/arm/boot/dts/sh73a0-kzm9g-reference.dts | 2 +- 7 files changed, 8 insertions(+), 26 deletions(-) ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH 1/8] ARM: shmobile: r8a7778 dtsi: Remove unnecessary MMC options 2014-11-10 1:32 ` Simon Horman @ 2014-11-10 1:32 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-10 1:32 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> As of commit b3a5d4ce65162d27 ("mmc: sdhi: update sh_mobile_sdhi_of_data for r8a7778), the driver takes care of r8a7778 specific MMC options. Hence they can be removed from the dtsi. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> [geert: Rebased, reworded, added reference] Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7778.dtsi | 6 ------ 1 file changed, 6 deletions(-) diff --git a/arch/arm/boot/dts/r8a7778.dtsi b/arch/arm/boot/dts/r8a7778.dtsi index 315ec62..99eeec2 100644 --- a/arch/arm/boot/dts/r8a7778.dtsi +++ b/arch/arm/boot/dts/r8a7778.dtsi @@ -215,8 +215,6 @@ compatible = "renesas,sdhi-r8a7778"; reg = <0xffe4c000 0x100>; interrupts = <0 87 IRQ_TYPE_LEVEL_HIGH>; - cap-sd-highspeed; - cap-sdio-irq; status = "disabled"; }; @@ -224,8 +222,6 @@ compatible = "renesas,sdhi-r8a7778"; reg = <0xffe4d000 0x100>; interrupts = <0 88 IRQ_TYPE_LEVEL_HIGH>; - cap-sd-highspeed; - cap-sdio-irq; status = "disabled"; }; @@ -233,8 +229,6 @@ compatible = "renesas,sdhi-r8a7778"; reg = <0xffe4f000 0x100>; interrupts = <0 86 IRQ_TYPE_LEVEL_HIGH>; - cap-sd-highspeed; - cap-sdio-irq; status = "disabled"; }; -- 2.1.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 1/8] ARM: shmobile: r8a7778 dtsi: Remove unnecessary MMC options @ 2014-11-10 1:32 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-10 1:32 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> As of commit b3a5d4ce65162d27 ("mmc: sdhi: update sh_mobile_sdhi_of_data for r8a7778), the driver takes care of r8a7778 specific MMC options. Hence they can be removed from the dtsi. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> [geert: Rebased, reworded, added reference] Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7778.dtsi | 6 ------ 1 file changed, 6 deletions(-) diff --git a/arch/arm/boot/dts/r8a7778.dtsi b/arch/arm/boot/dts/r8a7778.dtsi index 315ec62..99eeec2 100644 --- a/arch/arm/boot/dts/r8a7778.dtsi +++ b/arch/arm/boot/dts/r8a7778.dtsi @@ -215,8 +215,6 @@ compatible = "renesas,sdhi-r8a7778"; reg = <0xffe4c000 0x100>; interrupts = <0 87 IRQ_TYPE_LEVEL_HIGH>; - cap-sd-highspeed; - cap-sdio-irq; status = "disabled"; }; @@ -224,8 +222,6 @@ compatible = "renesas,sdhi-r8a7778"; reg = <0xffe4d000 0x100>; interrupts = <0 88 IRQ_TYPE_LEVEL_HIGH>; - cap-sd-highspeed; - cap-sdio-irq; status = "disabled"; }; @@ -233,8 +229,6 @@ compatible = "renesas,sdhi-r8a7778"; reg = <0xffe4f000 0x100>; interrupts = <0 86 IRQ_TYPE_LEVEL_HIGH>; - cap-sd-highspeed; - cap-sdio-irq; status = "disabled"; }; -- 2.1.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 2/8] ARM: shmobile: r8a7779 dtsi: Remove unnecessary MMC options 2014-11-10 1:32 ` Simon Horman @ 2014-11-10 1:32 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-10 1:32 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> As of commit 81bbbc7278fa109f ("mmc: sdhi: update sh_mobile_sdhi_of_data for r8a7779"), the driver takes care of r8a7779 specific MMC options. Hence they can be removed from the dtsi. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> [geert: Rebased, reworded, added reference] Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7779.dtsi | 8 -------- 1 file changed, 8 deletions(-) diff --git a/arch/arm/boot/dts/r8a7779.dtsi b/arch/arm/boot/dts/r8a7779.dtsi index 7cfba9a..ad83e47 100644 --- a/arch/arm/boot/dts/r8a7779.dtsi +++ b/arch/arm/boot/dts/r8a7779.dtsi @@ -314,8 +314,6 @@ reg = <0xffe4c000 0x100>; interrupts = <0 104 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp3_clks R8A7779_CLK_SDHI0>; - cap-sd-highspeed; - cap-sdio-irq; status = "disabled"; }; @@ -324,8 +322,6 @@ reg = <0xffe4d000 0x100>; interrupts = <0 105 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp3_clks R8A7779_CLK_SDHI1>; - cap-sd-highspeed; - cap-sdio-irq; status = "disabled"; }; @@ -334,8 +330,6 @@ reg = <0xffe4e000 0x100>; interrupts = <0 107 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp3_clks R8A7779_CLK_SDHI2>; - cap-sd-highspeed; - cap-sdio-irq; status = "disabled"; }; @@ -344,8 +338,6 @@ reg = <0xffe4f000 0x100>; interrupts = <0 106 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp3_clks R8A7779_CLK_SDHI3>; - cap-sd-highspeed; - cap-sdio-irq; status = "disabled"; }; -- 2.1.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 2/8] ARM: shmobile: r8a7779 dtsi: Remove unnecessary MMC options @ 2014-11-10 1:32 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-10 1:32 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> As of commit 81bbbc7278fa109f ("mmc: sdhi: update sh_mobile_sdhi_of_data for r8a7779"), the driver takes care of r8a7779 specific MMC options. Hence they can be removed from the dtsi. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> [geert: Rebased, reworded, added reference] Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7779.dtsi | 8 -------- 1 file changed, 8 deletions(-) diff --git a/arch/arm/boot/dts/r8a7779.dtsi b/arch/arm/boot/dts/r8a7779.dtsi index 7cfba9a..ad83e47 100644 --- a/arch/arm/boot/dts/r8a7779.dtsi +++ b/arch/arm/boot/dts/r8a7779.dtsi @@ -314,8 +314,6 @@ reg = <0xffe4c000 0x100>; interrupts = <0 104 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp3_clks R8A7779_CLK_SDHI0>; - cap-sd-highspeed; - cap-sdio-irq; status = "disabled"; }; @@ -324,8 +322,6 @@ reg = <0xffe4d000 0x100>; interrupts = <0 105 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp3_clks R8A7779_CLK_SDHI1>; - cap-sd-highspeed; - cap-sdio-irq; status = "disabled"; }; @@ -334,8 +330,6 @@ reg = <0xffe4e000 0x100>; interrupts = <0 107 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp3_clks R8A7779_CLK_SDHI2>; - cap-sd-highspeed; - cap-sdio-irq; status = "disabled"; }; @@ -344,8 +338,6 @@ reg = <0xffe4f000 0x100>; interrupts = <0 106 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp3_clks R8A7779_CLK_SDHI3>; - cap-sd-highspeed; - cap-sdio-irq; status = "disabled"; }; -- 2.1.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 3/8] ARM: shmobile: r8a7790 dtsi: Remove unnecessary MMC options 2014-11-10 1:32 ` Simon Horman @ 2014-11-10 1:32 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-10 1:32 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> As of commit 423f6c2e977de73b ("mmc: sdhi: update sh_mobile_sdhi_of_data for r8a7790"), the driver takes care of r8a7790 specific MMC options. Hence they can be removed from the dtsi. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> [geert: Rebased, reworded, added reference] Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> [simon: Rebased] Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7790.dtsi | 4 ---- 1 file changed, 4 deletions(-) diff --git a/arch/arm/boot/dts/r8a7790.dtsi b/arch/arm/boot/dts/r8a7790.dtsi index d0e1773..2be9122 100644 --- a/arch/arm/boot/dts/r8a7790.dtsi +++ b/arch/arm/boot/dts/r8a7790.dtsi @@ -420,7 +420,6 @@ reg = <0 0xee100000 0 0x200>; interrupts = <0 165 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp3_clks R8A7790_CLK_SDHI0>; - cap-sd-highspeed; status = "disabled"; }; @@ -429,7 +428,6 @@ reg = <0 0xee120000 0 0x200>; interrupts = <0 166 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp3_clks R8A7790_CLK_SDHI1>; - cap-sd-highspeed; status = "disabled"; }; @@ -438,7 +436,6 @@ reg = <0 0xee140000 0 0x100>; interrupts = <0 167 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp3_clks R8A7790_CLK_SDHI2>; - cap-sd-highspeed; status = "disabled"; }; @@ -447,7 +444,6 @@ reg = <0 0xee160000 0 0x100>; interrupts = <0 168 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp3_clks R8A7790_CLK_SDHI3>; - cap-sd-highspeed; status = "disabled"; }; -- 2.1.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 3/8] ARM: shmobile: r8a7790 dtsi: Remove unnecessary MMC options @ 2014-11-10 1:32 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-10 1:32 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> As of commit 423f6c2e977de73b ("mmc: sdhi: update sh_mobile_sdhi_of_data for r8a7790"), the driver takes care of r8a7790 specific MMC options. Hence they can be removed from the dtsi. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> [geert: Rebased, reworded, added reference] Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> [simon: Rebased] Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7790.dtsi | 4 ---- 1 file changed, 4 deletions(-) diff --git a/arch/arm/boot/dts/r8a7790.dtsi b/arch/arm/boot/dts/r8a7790.dtsi index d0e1773..2be9122 100644 --- a/arch/arm/boot/dts/r8a7790.dtsi +++ b/arch/arm/boot/dts/r8a7790.dtsi @@ -420,7 +420,6 @@ reg = <0 0xee100000 0 0x200>; interrupts = <0 165 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp3_clks R8A7790_CLK_SDHI0>; - cap-sd-highspeed; status = "disabled"; }; @@ -429,7 +428,6 @@ reg = <0 0xee120000 0 0x200>; interrupts = <0 166 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp3_clks R8A7790_CLK_SDHI1>; - cap-sd-highspeed; status = "disabled"; }; @@ -438,7 +436,6 @@ reg = <0 0xee140000 0 0x100>; interrupts = <0 167 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp3_clks R8A7790_CLK_SDHI2>; - cap-sd-highspeed; status = "disabled"; }; @@ -447,7 +444,6 @@ reg = <0 0xee160000 0 0x100>; interrupts = <0 168 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp3_clks R8A7790_CLK_SDHI3>; - cap-sd-highspeed; status = "disabled"; }; -- 2.1.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 4/8] ARM: shmobile: r8a7790 dtsi: Drop bogus 0x unit-address prefix 2014-11-10 1:32 ` Simon Horman @ 2014-11-10 1:32 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-10 1:32 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7790.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/r8a7790.dtsi b/arch/arm/boot/dts/r8a7790.dtsi index 2be9122..77b7f76 100644 --- a/arch/arm/boot/dts/r8a7790.dtsi +++ b/arch/arm/boot/dts/r8a7790.dtsi @@ -1151,7 +1151,7 @@ status = "disabled"; }; - rcar_sound: rcar_sound@0xec500000 { + rcar_sound: rcar_sound@ec500000 { #sound-dai-cells = <1>; compatible = "renesas,rcar_sound-r8a7790", "renesas,rcar_sound-gen2", "renesas,rcar_sound"; reg = <0 0xec500000 0 0x1000>, /* SCU */ -- 2.1.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 4/8] ARM: shmobile: r8a7790 dtsi: Drop bogus 0x unit-address prefix @ 2014-11-10 1:32 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-10 1:32 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7790.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/r8a7790.dtsi b/arch/arm/boot/dts/r8a7790.dtsi index 2be9122..77b7f76 100644 --- a/arch/arm/boot/dts/r8a7790.dtsi +++ b/arch/arm/boot/dts/r8a7790.dtsi @@ -1151,7 +1151,7 @@ status = "disabled"; }; - rcar_sound: rcar_sound at 0xec500000 { + rcar_sound: rcar_sound at ec500000 { #sound-dai-cells = <1>; compatible = "renesas,rcar_sound-r8a7790", "renesas,rcar_sound-gen2", "renesas,rcar_sound"; reg = <0 0xec500000 0 0x1000>, /* SCU */ -- 2.1.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 5/8] ARM: shmobile: r8a7791 dtsi: Drop bogus 0x unit-address prefix 2014-11-10 1:32 ` Simon Horman @ 2014-11-10 1:32 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-10 1:32 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/r8a7791.dtsi b/arch/arm/boot/dts/r8a7791.dtsi index e06c11f..35b8a75 100644 --- a/arch/arm/boot/dts/r8a7791.dtsi +++ b/arch/arm/boot/dts/r8a7791.dtsi @@ -1153,7 +1153,7 @@ status = "disabled"; }; - rcar_sound: rcar_sound@0xec500000 { + rcar_sound: rcar_sound@ec500000 { #sound-dai-cells = <1>; compatible = "renesas,rcar_sound-r8a7791", "renesas,rcar_sound-gen2", "renesas,rcar_sound"; reg = <0 0xec500000 0 0x1000>, /* SCU */ -- 2.1.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 5/8] ARM: shmobile: r8a7791 dtsi: Drop bogus 0x unit-address prefix @ 2014-11-10 1:32 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-10 1:32 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/r8a7791.dtsi b/arch/arm/boot/dts/r8a7791.dtsi index e06c11f..35b8a75 100644 --- a/arch/arm/boot/dts/r8a7791.dtsi +++ b/arch/arm/boot/dts/r8a7791.dtsi @@ -1153,7 +1153,7 @@ status = "disabled"; }; - rcar_sound: rcar_sound at 0xec500000 { + rcar_sound: rcar_sound at ec500000 { #sound-dai-cells = <1>; compatible = "renesas,rcar_sound-r8a7791", "renesas,rcar_sound-gen2", "renesas,rcar_sound"; reg = <0 0xec500000 0 0x1000>, /* SCU */ -- 2.1.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 6/8] ARM: shmobile: kzm9g-reference dts: Drop bogus 0x unit-address prefix 2014-11-10 1:32 ` Simon Horman @ 2014-11-10 1:32 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-10 1:32 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/sh73a0-kzm9g-reference.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/sh73a0-kzm9g-reference.dts b/arch/arm/boot/dts/sh73a0-kzm9g-reference.dts index 0dac0e6..8c913d9 100644 --- a/arch/arm/boot/dts/sh73a0-kzm9g-reference.dts +++ b/arch/arm/boot/dts/sh73a0-kzm9g-reference.dts @@ -251,7 +251,7 @@ }; }; - ak4648: ak4648@0x12 { + ak4648: ak4648@12 { #sound-dai-cells = <0>; compatible = "asahi-kasei,ak4648"; reg = <0x12>; -- 2.1.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 6/8] ARM: shmobile: kzm9g-reference dts: Drop bogus 0x unit-address prefix @ 2014-11-10 1:32 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-10 1:32 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/sh73a0-kzm9g-reference.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/sh73a0-kzm9g-reference.dts b/arch/arm/boot/dts/sh73a0-kzm9g-reference.dts index 0dac0e6..8c913d9 100644 --- a/arch/arm/boot/dts/sh73a0-kzm9g-reference.dts +++ b/arch/arm/boot/dts/sh73a0-kzm9g-reference.dts @@ -251,7 +251,7 @@ }; }; - ak4648: ak4648 at 0x12 { + ak4648: ak4648 at 12 { #sound-dai-cells = <0>; compatible = "asahi-kasei,ak4648"; reg = <0x12>; -- 2.1.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 7/8] ARM: shmobile: r8a73a4: fix scifb* naming 2014-11-10 1:32 ` Simon Horman @ 2014-11-10 1:32 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-10 1:32 UTC (permalink / raw) To: linux-arm-kernel From: Ulrich Hecht <ulrich.hecht+renesas@gmail.com> Ports are named scifb0-3, not scifb2-5. Signed-off-by: Ulrich Hecht <ulrich.hecht+renesas@gmail.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a73a4.dtsi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/r8a73a4.dtsi b/arch/arm/boot/dts/r8a73a4.dtsi index c17afef..5c75c91 100644 --- a/arch/arm/boot/dts/r8a73a4.dtsi +++ b/arch/arm/boot/dts/r8a73a4.dtsi @@ -263,14 +263,14 @@ status = "disabled"; }; - scifb2: serial@e6c20000 { + scifb0: serial@e6c20000 { compatible = "renesas,scifb-r8a73a4", "renesas,scifb"; reg = <0 0xe6c20000 0 0x100>; interrupts = <0 148 IRQ_TYPE_LEVEL_HIGH>; status = "disabled"; }; - scifb3: serial@e6c30000 { + scifb1: serial@e6c30000 { compatible = "renesas,scifb-r8a73a4", "renesas,scifb"; reg = <0 0xe6c30000 0 0x100>; interrupts = <0 149 IRQ_TYPE_LEVEL_HIGH>; @@ -291,14 +291,14 @@ status = "disabled"; }; - scifb4: serial@e6ce0000 { + scifb2: serial@e6ce0000 { compatible = "renesas,scifb-r8a73a4", "renesas,scifb"; reg = <0 0xe6ce0000 0 0x100>; interrupts = <0 150 IRQ_TYPE_LEVEL_HIGH>; status = "disabled"; }; - scifb5: serial@e6cf0000 { + scifb3: serial@e6cf0000 { compatible = "renesas,scifb-r8a73a4", "renesas,scifb"; reg = <0 0xe6cf0000 0 0x100>; interrupts = <0 151 IRQ_TYPE_LEVEL_HIGH>; -- 2.1.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 7/8] ARM: shmobile: r8a73a4: fix scifb* naming @ 2014-11-10 1:32 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-10 1:32 UTC (permalink / raw) To: linux-arm-kernel From: Ulrich Hecht <ulrich.hecht+renesas@gmail.com> Ports are named scifb0-3, not scifb2-5. Signed-off-by: Ulrich Hecht <ulrich.hecht+renesas@gmail.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a73a4.dtsi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/r8a73a4.dtsi b/arch/arm/boot/dts/r8a73a4.dtsi index c17afef..5c75c91 100644 --- a/arch/arm/boot/dts/r8a73a4.dtsi +++ b/arch/arm/boot/dts/r8a73a4.dtsi @@ -263,14 +263,14 @@ status = "disabled"; }; - scifb2: serial at e6c20000 { + scifb0: serial at e6c20000 { compatible = "renesas,scifb-r8a73a4", "renesas,scifb"; reg = <0 0xe6c20000 0 0x100>; interrupts = <0 148 IRQ_TYPE_LEVEL_HIGH>; status = "disabled"; }; - scifb3: serial at e6c30000 { + scifb1: serial at e6c30000 { compatible = "renesas,scifb-r8a73a4", "renesas,scifb"; reg = <0 0xe6c30000 0 0x100>; interrupts = <0 149 IRQ_TYPE_LEVEL_HIGH>; @@ -291,14 +291,14 @@ status = "disabled"; }; - scifb4: serial at e6ce0000 { + scifb2: serial at e6ce0000 { compatible = "renesas,scifb-r8a73a4", "renesas,scifb"; reg = <0 0xe6ce0000 0 0x100>; interrupts = <0 150 IRQ_TYPE_LEVEL_HIGH>; status = "disabled"; }; - scifb5: serial at e6cf0000 { + scifb3: serial at e6cf0000 { compatible = "renesas,scifb-r8a73a4", "renesas,scifb"; reg = <0 0xe6cf0000 0 0x100>; interrupts = <0 151 IRQ_TYPE_LEVEL_HIGH>; -- 2.1.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 8/8] ARM: shmobile: alt dts: Drop console= bootargs parameter 2014-11-10 1:32 ` Simon Horman @ 2014-11-10 1:32 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-10 1:32 UTC (permalink / raw) To: linux-arm-kernel Alt is booted from DT, so chosen/stdout-path is always used, and we can drop the "console=" parameter from chosen/bootargs. This change has a side-effect of changing the console speed from 38400 to 115200. This is intentional as 115200 is consistently used on all other shmobile boards. Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7794-alt.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/r8a7794-alt.dts b/arch/arm/boot/dts/r8a7794-alt.dts index 8aec512..f2cf757 100644 --- a/arch/arm/boot/dts/r8a7794-alt.dts +++ b/arch/arm/boot/dts/r8a7794-alt.dts @@ -20,7 +20,7 @@ }; chosen { - bootargs = "console=ttySC0,38400 ignore_loglevel rw root=/dev/nfs ip=dhcp"; + bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp"; stdout-path = &scif2; }; -- 2.1.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 8/8] ARM: shmobile: alt dts: Drop console= bootargs parameter @ 2014-11-10 1:32 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-10 1:32 UTC (permalink / raw) To: linux-arm-kernel Alt is booted from DT, so chosen/stdout-path is always used, and we can drop the "console=" parameter from chosen/bootargs. This change has a side-effect of changing the console speed from 38400 to 115200. This is intentional as 115200 is consistently used on all other shmobile boards. Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7794-alt.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/r8a7794-alt.dts b/arch/arm/boot/dts/r8a7794-alt.dts index 8aec512..f2cf757 100644 --- a/arch/arm/boot/dts/r8a7794-alt.dts +++ b/arch/arm/boot/dts/r8a7794-alt.dts @@ -20,7 +20,7 @@ }; chosen { - bootargs = "console=ttySC0,38400 ignore_loglevel rw root=/dev/nfs ip=dhcp"; + bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp"; stdout-path = &scif2; }; -- 2.1.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* Re: [GIT PULL] Second Round of Renesas ARM Based SoC DT Cleanups for v3.19 2014-11-10 1:32 ` Simon Horman @ 2014-11-19 21:48 ` Arnd Bergmann -1 siblings, 0 replies; 776+ messages in thread From: Arnd Bergmann @ 2014-11-19 21:48 UTC (permalink / raw) To: linux-arm-kernel On Monday 10 November 2014, Simon Horman wrote: > Hi Olof, Hi Kevin, Hi Arnd, > > Please consider these second round of Renesas ARM based SoC DT cleanups for v3.19. > > This pull request is based on the previous round of > such requests, tagged as renesas-dt-cleanups-for-v3.19, > which I have already sent a pull-request for. > Pulled into next/dt, thanks! Arnd ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC DT Cleanups for v3.19 @ 2014-11-19 21:48 ` Arnd Bergmann 0 siblings, 0 replies; 776+ messages in thread From: Arnd Bergmann @ 2014-11-19 21:48 UTC (permalink / raw) To: linux-arm-kernel On Monday 10 November 2014, Simon Horman wrote: > Hi Olof, Hi Kevin, Hi Arnd, > > Please consider these second round of Renesas ARM based SoC DT cleanups for v3.19. > > This pull request is based on the previous round of > such requests, tagged as renesas-dt-cleanups-for-v3.19, > which I have already sent a pull-request for. > Pulled into next/dt, thanks! Arnd ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC Soc Updates for v3.19 @ 2014-11-10 1:32 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-10 1:32 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Hi Kevin, Hi Arnd, Please consider these second round of Renesas ARM based SoC soc updates for v3.19. This pull request is based on the previous round of such requests, tagged as renesas-soc-for-v3.19, which I have already sent a pull-request for. The following changes since commit 3794705aeb318c431c07072f04380c78cc5a84ac: ARM: shmobile: Select CONFIG_ZONE_DMA when CONFIG_ARM_LPAE is enabled (2014-10-28 08:43:03 +0900) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-soc2-for-v3.19 for you to fetch changes up to 950a3f0e7dd32c372c9957d5c050b08de7ec9e56: ARM: shmobile: Enable PCI domains for R-Car Gen2 devices (2014-11-05 14:50:17 +0900) ---------------------------------------------------------------- Second Round of Renesas ARM Based SoC Soc Updates for v3.19 * Enable PCI domains for R-Car Gen2 devices * Make APMU resource code SoC-specific ---------------------------------------------------------------- Hisashi Nakamura (2): ARM: shmobile: Separate APMU resource data into CPU dependant part ARM: shmobile: r8a7791: Correct number of CPU cores Phil Edworthy (1): ARM: shmobile: Enable PCI domains for R-Car Gen2 devices arch/arm/mach-shmobile/Kconfig | 1 + arch/arm/mach-shmobile/common.h | 5 ----- arch/arm/mach-shmobile/platsmp-apmu.c | 27 +++++++++------------------ arch/arm/mach-shmobile/platsmp-apmu.h | 32 ++++++++++++++++++++++++++++++++ arch/arm/mach-shmobile/smp-r8a7790.c | 16 +++++++++++++++- arch/arm/mach-shmobile/smp-r8a7791.c | 12 +++++++++++- 6 files changed, 68 insertions(+), 25 deletions(-) create mode 100644 arch/arm/mach-shmobile/platsmp-apmu.h ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC Soc Updates for v3.19 @ 2014-11-10 1:32 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-10 1:32 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Hi Kevin, Hi Arnd, Please consider these second round of Renesas ARM based SoC soc updates for v3.19. This pull request is based on the previous round of such requests, tagged as renesas-soc-for-v3.19, which I have already sent a pull-request for. The following changes since commit 3794705aeb318c431c07072f04380c78cc5a84ac: ARM: shmobile: Select CONFIG_ZONE_DMA when CONFIG_ARM_LPAE is enabled (2014-10-28 08:43:03 +0900) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-soc2-for-v3.19 for you to fetch changes up to 950a3f0e7dd32c372c9957d5c050b08de7ec9e56: ARM: shmobile: Enable PCI domains for R-Car Gen2 devices (2014-11-05 14:50:17 +0900) ---------------------------------------------------------------- Second Round of Renesas ARM Based SoC Soc Updates for v3.19 * Enable PCI domains for R-Car Gen2 devices * Make APMU resource code SoC-specific ---------------------------------------------------------------- Hisashi Nakamura (2): ARM: shmobile: Separate APMU resource data into CPU dependant part ARM: shmobile: r8a7791: Correct number of CPU cores Phil Edworthy (1): ARM: shmobile: Enable PCI domains for R-Car Gen2 devices arch/arm/mach-shmobile/Kconfig | 1 + arch/arm/mach-shmobile/common.h | 5 ----- arch/arm/mach-shmobile/platsmp-apmu.c | 27 +++++++++------------------ arch/arm/mach-shmobile/platsmp-apmu.h | 32 ++++++++++++++++++++++++++++++++ arch/arm/mach-shmobile/smp-r8a7790.c | 16 +++++++++++++++- arch/arm/mach-shmobile/smp-r8a7791.c | 12 +++++++++++- 6 files changed, 68 insertions(+), 25 deletions(-) create mode 100644 arch/arm/mach-shmobile/platsmp-apmu.h ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH 1/3] ARM: shmobile: Separate APMU resource data into CPU dependant part 2014-11-10 1:32 ` Simon Horman @ 2014-11-10 1:32 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-10 1:32 UTC (permalink / raw) To: linux-arm-kernel From: Hisashi Nakamura <hisashi.nakamura.ak@renesas.com> APMU resources are not common to all R-Car SoCs so don't share this data. A subsequent patch will correct the CPU cores for the r8a7791. Signed-off-by: Hisashi Nakamura <hisashi.nakamura.ak@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/common.h | 5 ----- arch/arm/mach-shmobile/platsmp-apmu.c | 27 +++++++++------------------ arch/arm/mach-shmobile/platsmp-apmu.h | 32 ++++++++++++++++++++++++++++++++ arch/arm/mach-shmobile/smp-r8a7790.c | 16 +++++++++++++++- arch/arm/mach-shmobile/smp-r8a7791.c | 16 +++++++++++++++- 5 files changed, 71 insertions(+), 25 deletions(-) create mode 100644 arch/arm/mach-shmobile/platsmp-apmu.h diff --git a/arch/arm/mach-shmobile/common.h b/arch/arm/mach-shmobile/common.h index 72087c7..309025e 100644 --- a/arch/arm/mach-shmobile/common.h +++ b/arch/arm/mach-shmobile/common.h @@ -19,11 +19,6 @@ extern void shmobile_boot_scu(void); extern void shmobile_smp_scu_prepare_cpus(unsigned int max_cpus); extern void shmobile_smp_scu_cpu_die(unsigned int cpu); extern int shmobile_smp_scu_cpu_kill(unsigned int cpu); -extern void shmobile_smp_apmu_prepare_cpus(unsigned int max_cpus); -extern int shmobile_smp_apmu_boot_secondary(unsigned int cpu, - struct task_struct *idle); -extern void shmobile_smp_apmu_cpu_die(unsigned int cpu); -extern int shmobile_smp_apmu_cpu_kill(unsigned int cpu); struct clk; extern int shmobile_clk_init(void); extern void shmobile_handle_irq_intc(struct pt_regs *); diff --git a/arch/arm/mach-shmobile/platsmp-apmu.c b/arch/arm/mach-shmobile/platsmp-apmu.c index 2c06810..f483b56 100644 --- a/arch/arm/mach-shmobile/platsmp-apmu.c +++ b/arch/arm/mach-shmobile/platsmp-apmu.c @@ -1,6 +1,7 @@ /* * SMP support for SoCs with APMU * + * Copyright (C) 2014 Renesas Electronics Corporation * Copyright (C) 2013 Magnus Damm * * This program is free software; you can redistribute it and/or modify @@ -22,6 +23,7 @@ #include <asm/smp_plat.h> #include <asm/suspend.h> #include "common.h" +#include "platsmp-apmu.h" static struct { void __iomem *iomem; @@ -83,28 +85,15 @@ static void apmu_init_cpu(struct resource *res, int cpu, int bit) pr_debug("apmu ioremap %d %d %pr\n", cpu, bit, res); } -static struct { - struct resource iomem; - int cpus[4]; -} apmu_config[] = { - { - .iomem = DEFINE_RES_MEM(0xe6152000, 0x88), - .cpus = { 0, 1, 2, 3 }, - }, - { - .iomem = DEFINE_RES_MEM(0xe6151000, 0x88), - .cpus = { 0x100, 0x101, 0x102, 0x103 }, - } -}; - -static void apmu_parse_cfg(void (*fn)(struct resource *res, int cpu, int bit)) +static void apmu_parse_cfg(void (*fn)(struct resource *res, int cpu, int bit), + struct rcar_apmu_config *apmu_config, int num) { u32 id; int k; int bit, index; bool is_allowed; - for (k = 0; k < ARRAY_SIZE(apmu_config); k++) { + for (k = 0; k < num; k++) { /* only enable the cluster that includes the boot CPU */ is_allowed = false; for (bit = 0; bit < ARRAY_SIZE(apmu_config[k].cpus); bit++) { @@ -128,14 +117,16 @@ static void apmu_parse_cfg(void (*fn)(struct resource *res, int cpu, int bit)) } } -void __init shmobile_smp_apmu_prepare_cpus(unsigned int max_cpus) +void __init shmobile_smp_apmu_prepare_cpus(unsigned int max_cpus, + struct rcar_apmu_config *apmu_config, + int num) { /* install boot code shared by all CPUs */ shmobile_boot_fn = virt_to_phys(shmobile_smp_boot); shmobile_boot_arg = MPIDR_HWID_BITMASK; /* perform per-cpu setup */ - apmu_parse_cfg(apmu_init_cpu); + apmu_parse_cfg(apmu_init_cpu, apmu_config, num); } #ifdef CONFIG_SMP diff --git a/arch/arm/mach-shmobile/platsmp-apmu.h b/arch/arm/mach-shmobile/platsmp-apmu.h new file mode 100644 index 0000000..76512c9 --- /dev/null +++ b/arch/arm/mach-shmobile/platsmp-apmu.h @@ -0,0 +1,32 @@ +/* + * rmobile apmu definition + * + * Copyright (C) 2014 Renesas Electronics Corporation + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +#ifndef PLATSMP_APMU_H +#define PLATSMP_APMU_H + +struct rcar_apmu_config { + struct resource iomem; + int cpus[4]; +}; + +extern void shmobile_smp_apmu_prepare_cpus(unsigned int max_cpus, + struct rcar_apmu_config *apmu_config, + int num); +extern int shmobile_smp_apmu_boot_secondary(unsigned int cpu, + struct task_struct *idle); +extern void shmobile_smp_apmu_cpu_die(unsigned int cpu); +extern int shmobile_smp_apmu_cpu_kill(unsigned int cpu); + +#endif /* PLATSMP_APMU_H */ diff --git a/arch/arm/mach-shmobile/smp-r8a7790.c b/arch/arm/mach-shmobile/smp-r8a7790.c index 2311694..9c3da13 100644 --- a/arch/arm/mach-shmobile/smp-r8a7790.c +++ b/arch/arm/mach-shmobile/smp-r8a7790.c @@ -21,6 +21,7 @@ #include <asm/smp_plat.h> #include "common.h" +#include "platsmp-apmu.h" #include "pm-rcar.h" #include "r8a7790.h" @@ -34,10 +35,23 @@ static struct rcar_sysc_ch r8a7790_ca7_scu = { .isr_bit = 21, /* CA7-SCU */ }; +static struct rcar_apmu_config r8a7790_apmu_config[] = { + { + .iomem = DEFINE_RES_MEM(0xe6152000, 0x88), + .cpus = { 0, 1, 2, 3 }, + }, + { + .iomem = DEFINE_RES_MEM(0xe6151000, 0x88), + .cpus = { 0x100, 0x0101, 0x102, 0x103 }, + } +}; + static void __init r8a7790_smp_prepare_cpus(unsigned int max_cpus) { /* let APMU code install data related to shmobile_boot_vector */ - shmobile_smp_apmu_prepare_cpus(max_cpus); + shmobile_smp_apmu_prepare_cpus(max_cpus, + r8a7790_apmu_config, + ARRAY_SIZE(r8a7790_apmu_config)); /* turn on power to SCU */ r8a7790_pm_init(); diff --git a/arch/arm/mach-shmobile/smp-r8a7791.c b/arch/arm/mach-shmobile/smp-r8a7791.c index f743386..96e392c 100644 --- a/arch/arm/mach-shmobile/smp-r8a7791.c +++ b/arch/arm/mach-shmobile/smp-r8a7791.c @@ -21,13 +21,27 @@ #include <asm/smp_plat.h> #include "common.h" +#include "platsmp-apmu.h" #include "r8a7791.h" #include "rcar-gen2.h" +static struct rcar_apmu_config r8a7791_apmu_config[] = { + { + .iomem = DEFINE_RES_MEM(0xe6152000, 0x88), + .cpus = { 0, 1, 2, 3 }, + }, + { + .iomem = DEFINE_RES_MEM(0xe6151000, 0x88), + .cpus = { 0x100, 0x0101, 0x102, 0x103 }, + } +}; + static void __init r8a7791_smp_prepare_cpus(unsigned int max_cpus) { /* let APMU code install data related to shmobile_boot_vector */ - shmobile_smp_apmu_prepare_cpus(max_cpus); + shmobile_smp_apmu_prepare_cpus(max_cpus, + r8a7791_apmu_config, + ARRAY_SIZE(r8a7791_apmu_config)); r8a7791_pm_init(); } -- 2.1.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 1/3] ARM: shmobile: Separate APMU resource data into CPU dependant part @ 2014-11-10 1:32 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-10 1:32 UTC (permalink / raw) To: linux-arm-kernel From: Hisashi Nakamura <hisashi.nakamura.ak@renesas.com> APMU resources are not common to all R-Car SoCs so don't share this data. A subsequent patch will correct the CPU cores for the r8a7791. Signed-off-by: Hisashi Nakamura <hisashi.nakamura.ak@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/common.h | 5 ----- arch/arm/mach-shmobile/platsmp-apmu.c | 27 +++++++++------------------ arch/arm/mach-shmobile/platsmp-apmu.h | 32 ++++++++++++++++++++++++++++++++ arch/arm/mach-shmobile/smp-r8a7790.c | 16 +++++++++++++++- arch/arm/mach-shmobile/smp-r8a7791.c | 16 +++++++++++++++- 5 files changed, 71 insertions(+), 25 deletions(-) create mode 100644 arch/arm/mach-shmobile/platsmp-apmu.h diff --git a/arch/arm/mach-shmobile/common.h b/arch/arm/mach-shmobile/common.h index 72087c7..309025e 100644 --- a/arch/arm/mach-shmobile/common.h +++ b/arch/arm/mach-shmobile/common.h @@ -19,11 +19,6 @@ extern void shmobile_boot_scu(void); extern void shmobile_smp_scu_prepare_cpus(unsigned int max_cpus); extern void shmobile_smp_scu_cpu_die(unsigned int cpu); extern int shmobile_smp_scu_cpu_kill(unsigned int cpu); -extern void shmobile_smp_apmu_prepare_cpus(unsigned int max_cpus); -extern int shmobile_smp_apmu_boot_secondary(unsigned int cpu, - struct task_struct *idle); -extern void shmobile_smp_apmu_cpu_die(unsigned int cpu); -extern int shmobile_smp_apmu_cpu_kill(unsigned int cpu); struct clk; extern int shmobile_clk_init(void); extern void shmobile_handle_irq_intc(struct pt_regs *); diff --git a/arch/arm/mach-shmobile/platsmp-apmu.c b/arch/arm/mach-shmobile/platsmp-apmu.c index 2c06810..f483b56 100644 --- a/arch/arm/mach-shmobile/platsmp-apmu.c +++ b/arch/arm/mach-shmobile/platsmp-apmu.c @@ -1,6 +1,7 @@ /* * SMP support for SoCs with APMU * + * Copyright (C) 2014 Renesas Electronics Corporation * Copyright (C) 2013 Magnus Damm * * This program is free software; you can redistribute it and/or modify @@ -22,6 +23,7 @@ #include <asm/smp_plat.h> #include <asm/suspend.h> #include "common.h" +#include "platsmp-apmu.h" static struct { void __iomem *iomem; @@ -83,28 +85,15 @@ static void apmu_init_cpu(struct resource *res, int cpu, int bit) pr_debug("apmu ioremap %d %d %pr\n", cpu, bit, res); } -static struct { - struct resource iomem; - int cpus[4]; -} apmu_config[] = { - { - .iomem = DEFINE_RES_MEM(0xe6152000, 0x88), - .cpus = { 0, 1, 2, 3 }, - }, - { - .iomem = DEFINE_RES_MEM(0xe6151000, 0x88), - .cpus = { 0x100, 0x101, 0x102, 0x103 }, - } -}; - -static void apmu_parse_cfg(void (*fn)(struct resource *res, int cpu, int bit)) +static void apmu_parse_cfg(void (*fn)(struct resource *res, int cpu, int bit), + struct rcar_apmu_config *apmu_config, int num) { u32 id; int k; int bit, index; bool is_allowed; - for (k = 0; k < ARRAY_SIZE(apmu_config); k++) { + for (k = 0; k < num; k++) { /* only enable the cluster that includes the boot CPU */ is_allowed = false; for (bit = 0; bit < ARRAY_SIZE(apmu_config[k].cpus); bit++) { @@ -128,14 +117,16 @@ static void apmu_parse_cfg(void (*fn)(struct resource *res, int cpu, int bit)) } } -void __init shmobile_smp_apmu_prepare_cpus(unsigned int max_cpus) +void __init shmobile_smp_apmu_prepare_cpus(unsigned int max_cpus, + struct rcar_apmu_config *apmu_config, + int num) { /* install boot code shared by all CPUs */ shmobile_boot_fn = virt_to_phys(shmobile_smp_boot); shmobile_boot_arg = MPIDR_HWID_BITMASK; /* perform per-cpu setup */ - apmu_parse_cfg(apmu_init_cpu); + apmu_parse_cfg(apmu_init_cpu, apmu_config, num); } #ifdef CONFIG_SMP diff --git a/arch/arm/mach-shmobile/platsmp-apmu.h b/arch/arm/mach-shmobile/platsmp-apmu.h new file mode 100644 index 0000000..76512c9 --- /dev/null +++ b/arch/arm/mach-shmobile/platsmp-apmu.h @@ -0,0 +1,32 @@ +/* + * rmobile apmu definition + * + * Copyright (C) 2014 Renesas Electronics Corporation + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +#ifndef PLATSMP_APMU_H +#define PLATSMP_APMU_H + +struct rcar_apmu_config { + struct resource iomem; + int cpus[4]; +}; + +extern void shmobile_smp_apmu_prepare_cpus(unsigned int max_cpus, + struct rcar_apmu_config *apmu_config, + int num); +extern int shmobile_smp_apmu_boot_secondary(unsigned int cpu, + struct task_struct *idle); +extern void shmobile_smp_apmu_cpu_die(unsigned int cpu); +extern int shmobile_smp_apmu_cpu_kill(unsigned int cpu); + +#endif /* PLATSMP_APMU_H */ diff --git a/arch/arm/mach-shmobile/smp-r8a7790.c b/arch/arm/mach-shmobile/smp-r8a7790.c index 2311694..9c3da13 100644 --- a/arch/arm/mach-shmobile/smp-r8a7790.c +++ b/arch/arm/mach-shmobile/smp-r8a7790.c @@ -21,6 +21,7 @@ #include <asm/smp_plat.h> #include "common.h" +#include "platsmp-apmu.h" #include "pm-rcar.h" #include "r8a7790.h" @@ -34,10 +35,23 @@ static struct rcar_sysc_ch r8a7790_ca7_scu = { .isr_bit = 21, /* CA7-SCU */ }; +static struct rcar_apmu_config r8a7790_apmu_config[] = { + { + .iomem = DEFINE_RES_MEM(0xe6152000, 0x88), + .cpus = { 0, 1, 2, 3 }, + }, + { + .iomem = DEFINE_RES_MEM(0xe6151000, 0x88), + .cpus = { 0x100, 0x0101, 0x102, 0x103 }, + } +}; + static void __init r8a7790_smp_prepare_cpus(unsigned int max_cpus) { /* let APMU code install data related to shmobile_boot_vector */ - shmobile_smp_apmu_prepare_cpus(max_cpus); + shmobile_smp_apmu_prepare_cpus(max_cpus, + r8a7790_apmu_config, + ARRAY_SIZE(r8a7790_apmu_config)); /* turn on power to SCU */ r8a7790_pm_init(); diff --git a/arch/arm/mach-shmobile/smp-r8a7791.c b/arch/arm/mach-shmobile/smp-r8a7791.c index f743386..96e392c 100644 --- a/arch/arm/mach-shmobile/smp-r8a7791.c +++ b/arch/arm/mach-shmobile/smp-r8a7791.c @@ -21,13 +21,27 @@ #include <asm/smp_plat.h> #include "common.h" +#include "platsmp-apmu.h" #include "r8a7791.h" #include "rcar-gen2.h" +static struct rcar_apmu_config r8a7791_apmu_config[] = { + { + .iomem = DEFINE_RES_MEM(0xe6152000, 0x88), + .cpus = { 0, 1, 2, 3 }, + }, + { + .iomem = DEFINE_RES_MEM(0xe6151000, 0x88), + .cpus = { 0x100, 0x0101, 0x102, 0x103 }, + } +}; + static void __init r8a7791_smp_prepare_cpus(unsigned int max_cpus) { /* let APMU code install data related to shmobile_boot_vector */ - shmobile_smp_apmu_prepare_cpus(max_cpus); + shmobile_smp_apmu_prepare_cpus(max_cpus, + r8a7791_apmu_config, + ARRAY_SIZE(r8a7791_apmu_config)); r8a7791_pm_init(); } -- 2.1.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 2/3] ARM: shmobile: r8a7791: Correct number of CPU cores 2014-11-10 1:32 ` Simon Horman @ 2014-11-10 1:32 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-10 1:32 UTC (permalink / raw) To: linux-arm-kernel From: Hisashi Nakamura <hisashi.nakamura.ak@renesas.com> The r8a7791 only has 2 CPU CA15 cores, not 4 CA15 and 4 CA7 cores. Signed-off-by: Hisashi Nakamura <hisashi.nakamura.ak@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/smp-r8a7791.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/arch/arm/mach-shmobile/smp-r8a7791.c b/arch/arm/mach-shmobile/smp-r8a7791.c index 96e392c..7e49e0a 100644 --- a/arch/arm/mach-shmobile/smp-r8a7791.c +++ b/arch/arm/mach-shmobile/smp-r8a7791.c @@ -28,11 +28,7 @@ static struct rcar_apmu_config r8a7791_apmu_config[] = { { .iomem = DEFINE_RES_MEM(0xe6152000, 0x88), - .cpus = { 0, 1, 2, 3 }, - }, - { - .iomem = DEFINE_RES_MEM(0xe6151000, 0x88), - .cpus = { 0x100, 0x0101, 0x102, 0x103 }, + .cpus = { 0, 1 }, } }; -- 2.1.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 2/3] ARM: shmobile: r8a7791: Correct number of CPU cores @ 2014-11-10 1:32 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-10 1:32 UTC (permalink / raw) To: linux-arm-kernel From: Hisashi Nakamura <hisashi.nakamura.ak@renesas.com> The r8a7791 only has 2 CPU CA15 cores, not 4 CA15 and 4 CA7 cores. Signed-off-by: Hisashi Nakamura <hisashi.nakamura.ak@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/smp-r8a7791.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/arch/arm/mach-shmobile/smp-r8a7791.c b/arch/arm/mach-shmobile/smp-r8a7791.c index 96e392c..7e49e0a 100644 --- a/arch/arm/mach-shmobile/smp-r8a7791.c +++ b/arch/arm/mach-shmobile/smp-r8a7791.c @@ -28,11 +28,7 @@ static struct rcar_apmu_config r8a7791_apmu_config[] = { { .iomem = DEFINE_RES_MEM(0xe6152000, 0x88), - .cpus = { 0, 1, 2, 3 }, - }, - { - .iomem = DEFINE_RES_MEM(0xe6151000, 0x88), - .cpus = { 0x100, 0x0101, 0x102, 0x103 }, + .cpus = { 0, 1 }, } }; -- 2.1.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 3/3] ARM: shmobile: Enable PCI domains for R-Car Gen2 devices 2014-11-10 1:32 ` Simon Horman @ 2014-11-10 1:32 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-10 1:32 UTC (permalink / raw) To: linux-arm-kernel From: Phil Edworthy <phil.edworthy@renesas.com> The PCI core will soon automatically handle the PCI domain number, allowing the internal PCI and external PCIe bridges work at the same time. In order for that to work, we need to enable PCI_DOMAINS. Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-shmobile/Kconfig b/arch/arm/mach-shmobile/Kconfig index 6bc018f..b0a9e1a 100644 --- a/arch/arm/mach-shmobile/Kconfig +++ b/arch/arm/mach-shmobile/Kconfig @@ -19,6 +19,7 @@ config ARCH_RCAR_GEN2 select PM_RCAR if PM || SMP select RENESAS_IRQC select SYS_SUPPORTS_SH_CMT + select PCI_DOMAINS if PCI config ARCH_RMOBILE bool -- 2.1.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 3/3] ARM: shmobile: Enable PCI domains for R-Car Gen2 devices @ 2014-11-10 1:32 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-10 1:32 UTC (permalink / raw) To: linux-arm-kernel From: Phil Edworthy <phil.edworthy@renesas.com> The PCI core will soon automatically handle the PCI domain number, allowing the internal PCI and external PCIe bridges work at the same time. In order for that to work, we need to enable PCI_DOMAINS. Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-shmobile/Kconfig b/arch/arm/mach-shmobile/Kconfig index 6bc018f..b0a9e1a 100644 --- a/arch/arm/mach-shmobile/Kconfig +++ b/arch/arm/mach-shmobile/Kconfig @@ -19,6 +19,7 @@ config ARCH_RCAR_GEN2 select PM_RCAR if PM || SMP select RENESAS_IRQC select SYS_SUPPORTS_SH_CMT + select PCI_DOMAINS if PCI config ARCH_RMOBILE bool -- 2.1.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* Re: [GIT PULL] Second Round of Renesas ARM Based SoC Soc Updates for v3.19 2014-11-10 1:32 ` Simon Horman @ 2014-11-19 21:10 ` Arnd Bergmann -1 siblings, 0 replies; 776+ messages in thread From: Arnd Bergmann @ 2014-11-19 21:10 UTC (permalink / raw) To: linux-arm-kernel On Monday 10 November 2014, Simon Horman wrote: > Hi Olof, Hi Kevin, Hi Arnd, > > Please consider these second round of Renesas ARM based SoC soc updates for v3.19. > > This pull request is based on the previous round of > such requests, tagged as renesas-soc-for-v3.19, > which I have already sent a pull-request for. > > Pulled into next/soc, thanks! Arnd ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC Soc Updates for v3.19 @ 2014-11-19 21:10 ` Arnd Bergmann 0 siblings, 0 replies; 776+ messages in thread From: Arnd Bergmann @ 2014-11-19 21:10 UTC (permalink / raw) To: linux-arm-kernel On Monday 10 November 2014, Simon Horman wrote: > Hi Olof, Hi Kevin, Hi Arnd, > > Please consider these second round of Renesas ARM based SoC soc updates for v3.19. > > This pull request is based on the previous round of > such requests, tagged as renesas-soc-for-v3.19, > which I have already sent a pull-request for. > > Pulled into next/soc, thanks! Arnd ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC DT Updates for v3.19 @ 2014-11-13 1:20 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-13 1:20 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Hi Kevin, Hi Arnd, Please consider these second round of Renesas ARM based SoC DT updates for v3.19. This pull request is based on the previous round of such requests, tagged as renesas-dt-for-v3.19, which I have already sent a pull-request for. The following changes since commit 25af9c83151822eb6d413b4d15d5f89804606ac7: ARM: shmobile: r8a7779 dtsi: Add SoC-specific SATA compatible property (2014-10-30 10:01:37 +0900) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-dt2-for-v3.19 for you to fetch changes up to 2887bd4265cfbec6ccdd099c1728f82b4bebb69b: ARM: shmobile: kzm9g-reference dts: Add labels for the LEDs (2014-11-10 10:12:04 +0900) ---------------------------------------------------------------- Second Round of Renesas ARM Based SoC DT Updates for v3.19 * Add labels for LEDs on kzm9g-reference and koelsch * Use SoC-specific IIC compatible properties on sh73a0 and r8a73a4 * Add Sound DMA support to r8a7790/lager and r8a7791/koelsch ---------------------------------------------------------------- Geert Uytterhoeven (4): ARM: shmobile: r8a73a4 dtsi: Add SoC-specific IIC compatible properties ARM: shmobile: sh73a0 dtsi: Add SoC-specific IIC compatible properties ARM: shmobile: koelsch dts: Add labels for the LEDs ARM: shmobile: kzm9g-reference dts: Add labels for the LEDs Koji Matsuoka (1): ARM: shmobile: r8a7794: Add VIN clock to device tree Kuninori Morimoto (20): ARM: shmobile: r8a7790: Add Audio DMAC devices to DT ARM: shmobile: r8a7791: Add Audio DMAC devices to DT ARM: shmobile: r8a7790: Add Audio DMAC peri peri devices to DT ARM: shmobile: r8a7791: Add Audio DMAC peri peri devices to DT ARM: shmobile: r8a7790: sound enables Audio DMAC entry on DTSI ARM: shmobile: r8a7791: sound enables Audio DMAC entry on DTSI ARM: shmobile: r8a7790: sound enables Audio DMAC peri peri entry on DTSI ARM: shmobile: r8a7791: sound enables Audio DMAC peri peri entry on DTSI ARM: shmobile: lager: fixup IIC2 clock frequency ARM: shmobile: lager: Sound PIO support on DTS ARM: shmobile: lager: Sound DMA support on DTS ARM: shmobile: lager: Sound DMA support via BUSIF on DTS ARM: shmobile: lager: Sound DMA support via SRC on DTS ARM: shmobile: lager: Sound DMA support via DVC on DTS ARM: shmobile: koelsch: fixup I2C2 clock frequency ARM: shmobile: koelsch: Sound PIO support on DTS ARM: shmobile: koelsch: Sound DMA support on DTS ARM: shmobile: koelsch: Sound DMA support via BUSIF on DTS ARM: shmobile: koelsch: Sound DMA support via SRC on DTS ARM: shmobile: koelsch: Sound DMA support via DVC on DTS arch/arm/boot/dts/r8a73a4.dtsi | 18 +-- arch/arm/boot/dts/r8a7790-lager.dts | 74 ++++++++++ arch/arm/boot/dts/r8a7790.dtsi | 203 ++++++++++++++++++++++++++- arch/arm/boot/dts/r8a7791-koelsch.dts | 77 +++++++++- arch/arm/boot/dts/r8a7791.dtsi | 202 +++++++++++++++++++++++++- arch/arm/boot/dts/r8a7794.dtsi | 6 +- arch/arm/boot/dts/sh73a0-kzm9g-reference.dts | 4 + arch/arm/boot/dts/sh73a0.dtsi | 10 +- include/dt-bindings/clock/r8a7790-clock.h | 2 + include/dt-bindings/clock/r8a7791-clock.h | 2 + include/dt-bindings/clock/r8a7794-clock.h | 2 + 11 files changed, 576 insertions(+), 24 deletions(-) ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC DT Updates for v3.19 @ 2014-11-13 1:20 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-13 1:20 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Hi Kevin, Hi Arnd, Please consider these second round of Renesas ARM based SoC DT updates for v3.19. This pull request is based on the previous round of such requests, tagged as renesas-dt-for-v3.19, which I have already sent a pull-request for. The following changes since commit 25af9c83151822eb6d413b4d15d5f89804606ac7: ARM: shmobile: r8a7779 dtsi: Add SoC-specific SATA compatible property (2014-10-30 10:01:37 +0900) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-dt2-for-v3.19 for you to fetch changes up to 2887bd4265cfbec6ccdd099c1728f82b4bebb69b: ARM: shmobile: kzm9g-reference dts: Add labels for the LEDs (2014-11-10 10:12:04 +0900) ---------------------------------------------------------------- Second Round of Renesas ARM Based SoC DT Updates for v3.19 * Add labels for LEDs on kzm9g-reference and koelsch * Use SoC-specific IIC compatible properties on sh73a0 and r8a73a4 * Add Sound DMA support to r8a7790/lager and r8a7791/koelsch ---------------------------------------------------------------- Geert Uytterhoeven (4): ARM: shmobile: r8a73a4 dtsi: Add SoC-specific IIC compatible properties ARM: shmobile: sh73a0 dtsi: Add SoC-specific IIC compatible properties ARM: shmobile: koelsch dts: Add labels for the LEDs ARM: shmobile: kzm9g-reference dts: Add labels for the LEDs Koji Matsuoka (1): ARM: shmobile: r8a7794: Add VIN clock to device tree Kuninori Morimoto (20): ARM: shmobile: r8a7790: Add Audio DMAC devices to DT ARM: shmobile: r8a7791: Add Audio DMAC devices to DT ARM: shmobile: r8a7790: Add Audio DMAC peri peri devices to DT ARM: shmobile: r8a7791: Add Audio DMAC peri peri devices to DT ARM: shmobile: r8a7790: sound enables Audio DMAC entry on DTSI ARM: shmobile: r8a7791: sound enables Audio DMAC entry on DTSI ARM: shmobile: r8a7790: sound enables Audio DMAC peri peri entry on DTSI ARM: shmobile: r8a7791: sound enables Audio DMAC peri peri entry on DTSI ARM: shmobile: lager: fixup IIC2 clock frequency ARM: shmobile: lager: Sound PIO support on DTS ARM: shmobile: lager: Sound DMA support on DTS ARM: shmobile: lager: Sound DMA support via BUSIF on DTS ARM: shmobile: lager: Sound DMA support via SRC on DTS ARM: shmobile: lager: Sound DMA support via DVC on DTS ARM: shmobile: koelsch: fixup I2C2 clock frequency ARM: shmobile: koelsch: Sound PIO support on DTS ARM: shmobile: koelsch: Sound DMA support on DTS ARM: shmobile: koelsch: Sound DMA support via BUSIF on DTS ARM: shmobile: koelsch: Sound DMA support via SRC on DTS ARM: shmobile: koelsch: Sound DMA support via DVC on DTS arch/arm/boot/dts/r8a73a4.dtsi | 18 +-- arch/arm/boot/dts/r8a7790-lager.dts | 74 ++++++++++ arch/arm/boot/dts/r8a7790.dtsi | 203 ++++++++++++++++++++++++++- arch/arm/boot/dts/r8a7791-koelsch.dts | 77 +++++++++- arch/arm/boot/dts/r8a7791.dtsi | 202 +++++++++++++++++++++++++- arch/arm/boot/dts/r8a7794.dtsi | 6 +- arch/arm/boot/dts/sh73a0-kzm9g-reference.dts | 4 + arch/arm/boot/dts/sh73a0.dtsi | 10 +- include/dt-bindings/clock/r8a7790-clock.h | 2 + include/dt-bindings/clock/r8a7791-clock.h | 2 + include/dt-bindings/clock/r8a7794-clock.h | 2 + 11 files changed, 576 insertions(+), 24 deletions(-) ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH 01/25] ARM: shmobile: r8a7794: Add VIN clock to device tree 2014-11-13 1:20 ` Simon Horman @ 2014-11-13 1:19 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-13 1:19 UTC (permalink / raw) To: linux-arm-kernel From: Koji Matsuoka <koji.matsuoka.xm@renesas.com> Signed-off-by: Koji Matsuoka <koji.matsuoka.xm@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7794.dtsi | 6 +++--- include/dt-bindings/clock/r8a7794-clock.h | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/r8a7794.dtsi b/arch/arm/boot/dts/r8a7794.dtsi index 088e79c..95f656d 100644 --- a/arch/arm/boot/dts/r8a7794.dtsi +++ b/arch/arm/boot/dts/r8a7794.dtsi @@ -517,13 +517,13 @@ mstp8_clks: mstp8_clks@e6150990 { compatible = "renesas,r8a7794-mstp-clocks", "renesas,cpg-mstp-clocks"; reg = <0 0xe6150990 0 4>, <0 0xe61509a0 0 4>; - clocks = <&p_clk>; + clocks = <&zg_clk>, <&zg_clk>, <&p_clk>; #clock-cells = <1>; renesas,clock-indices = < - R8A7794_CLK_ETHER + R8A7794_CLK_VIN1 R8A7794_CLK_VIN0 R8A7794_CLK_ETHER >; clock-output-names - "ether"; + "vin1", "vin0", "ether"; }; mstp11_clks: mstp11_clks@e615099c { compatible = "renesas,r8a7794-mstp-clocks", "renesas,cpg-mstp-clocks"; diff --git a/include/dt-bindings/clock/r8a7794-clock.h b/include/dt-bindings/clock/r8a7794-clock.h index 9ac1043..fd7cdee 100644 --- a/include/dt-bindings/clock/r8a7794-clock.h +++ b/include/dt-bindings/clock/r8a7794-clock.h @@ -61,6 +61,8 @@ #define R8A7794_CLK_SCIF0 21 /* MSTP8 */ +#define R8A7794_CLK_VIN1 10 +#define R8A7794_CLK_VIN0 11 #define R8A7794_CLK_ETHER 13 /* MSTP9 */ -- 2.1.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 01/25] ARM: shmobile: r8a7794: Add VIN clock to device tree @ 2014-11-13 1:19 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-13 1:19 UTC (permalink / raw) To: linux-arm-kernel From: Koji Matsuoka <koji.matsuoka.xm@renesas.com> Signed-off-by: Koji Matsuoka <koji.matsuoka.xm@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7794.dtsi | 6 +++--- include/dt-bindings/clock/r8a7794-clock.h | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/r8a7794.dtsi b/arch/arm/boot/dts/r8a7794.dtsi index 088e79c..95f656d 100644 --- a/arch/arm/boot/dts/r8a7794.dtsi +++ b/arch/arm/boot/dts/r8a7794.dtsi @@ -517,13 +517,13 @@ mstp8_clks: mstp8_clks at e6150990 { compatible = "renesas,r8a7794-mstp-clocks", "renesas,cpg-mstp-clocks"; reg = <0 0xe6150990 0 4>, <0 0xe61509a0 0 4>; - clocks = <&p_clk>; + clocks = <&zg_clk>, <&zg_clk>, <&p_clk>; #clock-cells = <1>; renesas,clock-indices = < - R8A7794_CLK_ETHER + R8A7794_CLK_VIN1 R8A7794_CLK_VIN0 R8A7794_CLK_ETHER >; clock-output-names = - "ether"; + "vin1", "vin0", "ether"; }; mstp11_clks: mstp11_clks at e615099c { compatible = "renesas,r8a7794-mstp-clocks", "renesas,cpg-mstp-clocks"; diff --git a/include/dt-bindings/clock/r8a7794-clock.h b/include/dt-bindings/clock/r8a7794-clock.h index 9ac1043..fd7cdee 100644 --- a/include/dt-bindings/clock/r8a7794-clock.h +++ b/include/dt-bindings/clock/r8a7794-clock.h @@ -61,6 +61,8 @@ #define R8A7794_CLK_SCIF0 21 /* MSTP8 */ +#define R8A7794_CLK_VIN1 10 +#define R8A7794_CLK_VIN0 11 #define R8A7794_CLK_ETHER 13 /* MSTP9 */ -- 2.1.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 02/25] ARM: shmobile: r8a7790: Add Audio DMAC devices to DT 2014-11-13 1:20 ` Simon Horman @ 2014-11-13 1:19 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-13 1:19 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Instantiate the two Audio DMA controllers in the r8a7790 device tree. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> [geert: corrected spelling of audmac1] Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7790.dtsi | 64 +++++++++++++++++++++++++++++-- include/dt-bindings/clock/r8a7790-clock.h | 2 + 2 files changed, 63 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/r8a7790.dtsi b/arch/arm/boot/dts/r8a7790.dtsi index 52c2156..2e01d49 100644 --- a/arch/arm/boot/dts/r8a7790.dtsi +++ b/arch/arm/boot/dts/r8a7790.dtsi @@ -312,6 +312,63 @@ #dma-cells = <1>; dma-channels = <15>; }; + + audma0: dma-controller@ec700000 { + compatible = "renesas,rcar-dmac"; + reg = <0 0xec700000 0 0x10000>; + interrupts = <0 346 IRQ_TYPE_LEVEL_HIGH + 0 320 IRQ_TYPE_LEVEL_HIGH + 0 321 IRQ_TYPE_LEVEL_HIGH + 0 322 IRQ_TYPE_LEVEL_HIGH + 0 323 IRQ_TYPE_LEVEL_HIGH + 0 324 IRQ_TYPE_LEVEL_HIGH + 0 325 IRQ_TYPE_LEVEL_HIGH + 0 326 IRQ_TYPE_LEVEL_HIGH + 0 327 IRQ_TYPE_LEVEL_HIGH + 0 328 IRQ_TYPE_LEVEL_HIGH + 0 329 IRQ_TYPE_LEVEL_HIGH + 0 330 IRQ_TYPE_LEVEL_HIGH + 0 331 IRQ_TYPE_LEVEL_HIGH + 0 332 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "error", + "ch0", "ch1", "ch2", "ch3", + "ch4", "ch5", "ch6", "ch7", + "ch8", "ch9", "ch10", "ch11", + "ch12"; + clocks = <&mstp5_clks R8A7790_CLK_AUDIO_DMAC0>; + clock-names = "fck"; + #dma-cells = <1>; + dma-channels = <13>; + }; + + audma1: dma-controller@ec720000 { + compatible = "renesas,rcar-dmac"; + reg = <0 0xec720000 0 0x10000>; + interrupts = <0 347 IRQ_TYPE_LEVEL_HIGH + 0 333 IRQ_TYPE_LEVEL_HIGH + 0 334 IRQ_TYPE_LEVEL_HIGH + 0 335 IRQ_TYPE_LEVEL_HIGH + 0 336 IRQ_TYPE_LEVEL_HIGH + 0 337 IRQ_TYPE_LEVEL_HIGH + 0 338 IRQ_TYPE_LEVEL_HIGH + 0 339 IRQ_TYPE_LEVEL_HIGH + 0 340 IRQ_TYPE_LEVEL_HIGH + 0 341 IRQ_TYPE_LEVEL_HIGH + 0 342 IRQ_TYPE_LEVEL_HIGH + 0 343 IRQ_TYPE_LEVEL_HIGH + 0 344 IRQ_TYPE_LEVEL_HIGH + 0 345 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "error", + "ch0", "ch1", "ch2", "ch3", + "ch4", "ch5", "ch6", "ch7", + "ch8", "ch9", "ch10", "ch11", + "ch12"; + clocks = <&mstp5_clks R8A7790_CLK_AUDIO_DMAC1>; + clock-names = "fck"; + #dma-cells = <1>; + dma-channels = <13>; + }; + i2c0: i2c@e6508000 { #address-cells = <1>; #size-cells = <0>; @@ -1050,10 +1107,11 @@ mstp5_clks: mstp5_clks@e6150144 { compatible = "renesas,r8a7790-mstp-clocks", "renesas,cpg-mstp-clocks"; reg = <0 0xe6150144 0 4>, <0 0xe615003c 0 4>; - clocks = <&extal_clk>, <&p_clk>; + clocks = <&hp_clk>, <&hp_clk>, <&extal_clk>, <&p_clk>; #clock-cells = <1>; - renesas,clock-indices = <R8A7790_CLK_THERMAL R8A7790_CLK_PWM>; - clock-output-names = "thermal", "pwm"; + renesas,clock-indices = <R8A7790_CLK_AUDIO_DMAC0 R8A7790_CLK_AUDIO_DMAC1 + R8A7790_CLK_THERMAL R8A7790_CLK_PWM>; + clock-output-names = "audmac0", "audmac1", "thermal", "pwm"; }; mstp7_clks: mstp7_clks@e615014c { compatible = "renesas,r8a7790-mstp-clocks", "renesas,cpg-mstp-clocks"; diff --git a/include/dt-bindings/clock/r8a7790-clock.h b/include/dt-bindings/clock/r8a7790-clock.h index e3a3fb8..c27b3b5 100644 --- a/include/dt-bindings/clock/r8a7790-clock.h +++ b/include/dt-bindings/clock/r8a7790-clock.h @@ -78,6 +78,8 @@ #define R8A7790_CLK_USBDMAC1 31 /* MSTP5 */ +#define R8A7790_CLK_AUDIO_DMAC1 1 +#define R8A7790_CLK_AUDIO_DMAC0 2 #define R8A7790_CLK_THERMAL 22 #define R8A7790_CLK_PWM 23 -- 2.1.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 02/25] ARM: shmobile: r8a7790: Add Audio DMAC devices to DT @ 2014-11-13 1:19 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-13 1:19 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Instantiate the two Audio DMA controllers in the r8a7790 device tree. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> [geert: corrected spelling of audmac1] Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7790.dtsi | 64 +++++++++++++++++++++++++++++-- include/dt-bindings/clock/r8a7790-clock.h | 2 + 2 files changed, 63 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/r8a7790.dtsi b/arch/arm/boot/dts/r8a7790.dtsi index 52c2156..2e01d49 100644 --- a/arch/arm/boot/dts/r8a7790.dtsi +++ b/arch/arm/boot/dts/r8a7790.dtsi @@ -312,6 +312,63 @@ #dma-cells = <1>; dma-channels = <15>; }; + + audma0: dma-controller at ec700000 { + compatible = "renesas,rcar-dmac"; + reg = <0 0xec700000 0 0x10000>; + interrupts = <0 346 IRQ_TYPE_LEVEL_HIGH + 0 320 IRQ_TYPE_LEVEL_HIGH + 0 321 IRQ_TYPE_LEVEL_HIGH + 0 322 IRQ_TYPE_LEVEL_HIGH + 0 323 IRQ_TYPE_LEVEL_HIGH + 0 324 IRQ_TYPE_LEVEL_HIGH + 0 325 IRQ_TYPE_LEVEL_HIGH + 0 326 IRQ_TYPE_LEVEL_HIGH + 0 327 IRQ_TYPE_LEVEL_HIGH + 0 328 IRQ_TYPE_LEVEL_HIGH + 0 329 IRQ_TYPE_LEVEL_HIGH + 0 330 IRQ_TYPE_LEVEL_HIGH + 0 331 IRQ_TYPE_LEVEL_HIGH + 0 332 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "error", + "ch0", "ch1", "ch2", "ch3", + "ch4", "ch5", "ch6", "ch7", + "ch8", "ch9", "ch10", "ch11", + "ch12"; + clocks = <&mstp5_clks R8A7790_CLK_AUDIO_DMAC0>; + clock-names = "fck"; + #dma-cells = <1>; + dma-channels = <13>; + }; + + audma1: dma-controller at ec720000 { + compatible = "renesas,rcar-dmac"; + reg = <0 0xec720000 0 0x10000>; + interrupts = <0 347 IRQ_TYPE_LEVEL_HIGH + 0 333 IRQ_TYPE_LEVEL_HIGH + 0 334 IRQ_TYPE_LEVEL_HIGH + 0 335 IRQ_TYPE_LEVEL_HIGH + 0 336 IRQ_TYPE_LEVEL_HIGH + 0 337 IRQ_TYPE_LEVEL_HIGH + 0 338 IRQ_TYPE_LEVEL_HIGH + 0 339 IRQ_TYPE_LEVEL_HIGH + 0 340 IRQ_TYPE_LEVEL_HIGH + 0 341 IRQ_TYPE_LEVEL_HIGH + 0 342 IRQ_TYPE_LEVEL_HIGH + 0 343 IRQ_TYPE_LEVEL_HIGH + 0 344 IRQ_TYPE_LEVEL_HIGH + 0 345 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "error", + "ch0", "ch1", "ch2", "ch3", + "ch4", "ch5", "ch6", "ch7", + "ch8", "ch9", "ch10", "ch11", + "ch12"; + clocks = <&mstp5_clks R8A7790_CLK_AUDIO_DMAC1>; + clock-names = "fck"; + #dma-cells = <1>; + dma-channels = <13>; + }; + i2c0: i2c at e6508000 { #address-cells = <1>; #size-cells = <0>; @@ -1050,10 +1107,11 @@ mstp5_clks: mstp5_clks at e6150144 { compatible = "renesas,r8a7790-mstp-clocks", "renesas,cpg-mstp-clocks"; reg = <0 0xe6150144 0 4>, <0 0xe615003c 0 4>; - clocks = <&extal_clk>, <&p_clk>; + clocks = <&hp_clk>, <&hp_clk>, <&extal_clk>, <&p_clk>; #clock-cells = <1>; - renesas,clock-indices = <R8A7790_CLK_THERMAL R8A7790_CLK_PWM>; - clock-output-names = "thermal", "pwm"; + renesas,clock-indices = <R8A7790_CLK_AUDIO_DMAC0 R8A7790_CLK_AUDIO_DMAC1 + R8A7790_CLK_THERMAL R8A7790_CLK_PWM>; + clock-output-names = "audmac0", "audmac1", "thermal", "pwm"; }; mstp7_clks: mstp7_clks at e615014c { compatible = "renesas,r8a7790-mstp-clocks", "renesas,cpg-mstp-clocks"; diff --git a/include/dt-bindings/clock/r8a7790-clock.h b/include/dt-bindings/clock/r8a7790-clock.h index e3a3fb8..c27b3b5 100644 --- a/include/dt-bindings/clock/r8a7790-clock.h +++ b/include/dt-bindings/clock/r8a7790-clock.h @@ -78,6 +78,8 @@ #define R8A7790_CLK_USBDMAC1 31 /* MSTP5 */ +#define R8A7790_CLK_AUDIO_DMAC1 1 +#define R8A7790_CLK_AUDIO_DMAC0 2 #define R8A7790_CLK_THERMAL 22 #define R8A7790_CLK_PWM 23 -- 2.1.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 03/25] ARM: shmobile: r8a7791: Add Audio DMAC devices to DT 2014-11-13 1:20 ` Simon Horman @ 2014-11-13 1:19 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-13 1:19 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Instantiate the two Audio DMA controllers in the r8a7791 device tree. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> [geert: corrected spelling of audmac1] Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791.dtsi | 63 +++++++++++++++++++++++++++++-- include/dt-bindings/clock/r8a7791-clock.h | 2 + 2 files changed, 62 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/r8a7791.dtsi b/arch/arm/boot/dts/r8a7791.dtsi index a862243..b54af74 100644 --- a/arch/arm/boot/dts/r8a7791.dtsi +++ b/arch/arm/boot/dts/r8a7791.dtsi @@ -301,6 +301,62 @@ dma-channels = <15>; }; + audma0: dma-controller@ec700000 { + compatible = "renesas,rcar-dmac"; + reg = <0 0xec700000 0 0x10000>; + interrupts = <0 346 IRQ_TYPE_LEVEL_HIGH + 0 320 IRQ_TYPE_LEVEL_HIGH + 0 321 IRQ_TYPE_LEVEL_HIGH + 0 322 IRQ_TYPE_LEVEL_HIGH + 0 323 IRQ_TYPE_LEVEL_HIGH + 0 324 IRQ_TYPE_LEVEL_HIGH + 0 325 IRQ_TYPE_LEVEL_HIGH + 0 326 IRQ_TYPE_LEVEL_HIGH + 0 327 IRQ_TYPE_LEVEL_HIGH + 0 328 IRQ_TYPE_LEVEL_HIGH + 0 329 IRQ_TYPE_LEVEL_HIGH + 0 330 IRQ_TYPE_LEVEL_HIGH + 0 331 IRQ_TYPE_LEVEL_HIGH + 0 332 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "error", + "ch0", "ch1", "ch2", "ch3", + "ch4", "ch5", "ch6", "ch7", + "ch8", "ch9", "ch10", "ch11", + "ch12"; + clocks = <&mstp5_clks R8A7791_CLK_AUDIO_DMAC0>; + clock-names = "fck"; + #dma-cells = <1>; + dma-channels = <13>; + }; + + audma1: dma-controller@ec720000 { + compatible = "renesas,rcar-dmac"; + reg = <0 0xec720000 0 0x10000>; + interrupts = <0 347 IRQ_TYPE_LEVEL_HIGH + 0 333 IRQ_TYPE_LEVEL_HIGH + 0 334 IRQ_TYPE_LEVEL_HIGH + 0 335 IRQ_TYPE_LEVEL_HIGH + 0 336 IRQ_TYPE_LEVEL_HIGH + 0 337 IRQ_TYPE_LEVEL_HIGH + 0 338 IRQ_TYPE_LEVEL_HIGH + 0 339 IRQ_TYPE_LEVEL_HIGH + 0 340 IRQ_TYPE_LEVEL_HIGH + 0 341 IRQ_TYPE_LEVEL_HIGH + 0 342 IRQ_TYPE_LEVEL_HIGH + 0 343 IRQ_TYPE_LEVEL_HIGH + 0 344 IRQ_TYPE_LEVEL_HIGH + 0 345 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "error", + "ch0", "ch1", "ch2", "ch3", + "ch4", "ch5", "ch6", "ch7", + "ch8", "ch9", "ch10", "ch11", + "ch12"; + clocks = <&mstp5_clks R8A7791_CLK_AUDIO_DMAC1>; + clock-names = "fck"; + #dma-cells = <1>; + dma-channels = <13>; + }; + /* The memory map in the User's Manual maps the cores to bus numbers */ i2c0: i2c@e6508000 { #address-cells = <1>; @@ -1053,10 +1109,11 @@ mstp5_clks: mstp5_clks@e6150144 { compatible = "renesas,r8a7791-mstp-clocks", "renesas,cpg-mstp-clocks"; reg = <0 0xe6150144 0 4>, <0 0xe615003c 0 4>; - clocks = <&extal_clk>, <&p_clk>; + clocks = <&hp_clk>, <&hp_clk>, <&extal_clk>, <&p_clk>; #clock-cells = <1>; - renesas,clock-indices = <R8A7791_CLK_THERMAL R8A7791_CLK_PWM>; - clock-output-names = "thermal", "pwm"; + renesas,clock-indices = <R8A7791_CLK_AUDIO_DMAC0 R8A7791_CLK_AUDIO_DMAC1 + R8A7791_CLK_THERMAL R8A7791_CLK_PWM>; + clock-output-names = "audmac0", "audmac1", "thermal", "pwm"; }; mstp7_clks: mstp7_clks@e615014c { compatible = "renesas,r8a7791-mstp-clocks", "renesas,cpg-mstp-clocks"; diff --git a/include/dt-bindings/clock/r8a7791-clock.h b/include/dt-bindings/clock/r8a7791-clock.h index dcececd..3ea2bbc 100644 --- a/include/dt-bindings/clock/r8a7791-clock.h +++ b/include/dt-bindings/clock/r8a7791-clock.h @@ -69,6 +69,8 @@ #define R8A7791_CLK_USBDMAC1 31 /* MSTP5 */ +#define R8A7791_CLK_AUDIO_DMAC1 1 +#define R8A7791_CLK_AUDIO_DMAC0 2 #define R8A7791_CLK_THERMAL 22 #define R8A7791_CLK_PWM 23 -- 2.1.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 03/25] ARM: shmobile: r8a7791: Add Audio DMAC devices to DT @ 2014-11-13 1:19 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-13 1:19 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Instantiate the two Audio DMA controllers in the r8a7791 device tree. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> [geert: corrected spelling of audmac1] Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791.dtsi | 63 +++++++++++++++++++++++++++++-- include/dt-bindings/clock/r8a7791-clock.h | 2 + 2 files changed, 62 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/r8a7791.dtsi b/arch/arm/boot/dts/r8a7791.dtsi index a862243..b54af74 100644 --- a/arch/arm/boot/dts/r8a7791.dtsi +++ b/arch/arm/boot/dts/r8a7791.dtsi @@ -301,6 +301,62 @@ dma-channels = <15>; }; + audma0: dma-controller at ec700000 { + compatible = "renesas,rcar-dmac"; + reg = <0 0xec700000 0 0x10000>; + interrupts = <0 346 IRQ_TYPE_LEVEL_HIGH + 0 320 IRQ_TYPE_LEVEL_HIGH + 0 321 IRQ_TYPE_LEVEL_HIGH + 0 322 IRQ_TYPE_LEVEL_HIGH + 0 323 IRQ_TYPE_LEVEL_HIGH + 0 324 IRQ_TYPE_LEVEL_HIGH + 0 325 IRQ_TYPE_LEVEL_HIGH + 0 326 IRQ_TYPE_LEVEL_HIGH + 0 327 IRQ_TYPE_LEVEL_HIGH + 0 328 IRQ_TYPE_LEVEL_HIGH + 0 329 IRQ_TYPE_LEVEL_HIGH + 0 330 IRQ_TYPE_LEVEL_HIGH + 0 331 IRQ_TYPE_LEVEL_HIGH + 0 332 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "error", + "ch0", "ch1", "ch2", "ch3", + "ch4", "ch5", "ch6", "ch7", + "ch8", "ch9", "ch10", "ch11", + "ch12"; + clocks = <&mstp5_clks R8A7791_CLK_AUDIO_DMAC0>; + clock-names = "fck"; + #dma-cells = <1>; + dma-channels = <13>; + }; + + audma1: dma-controller at ec720000 { + compatible = "renesas,rcar-dmac"; + reg = <0 0xec720000 0 0x10000>; + interrupts = <0 347 IRQ_TYPE_LEVEL_HIGH + 0 333 IRQ_TYPE_LEVEL_HIGH + 0 334 IRQ_TYPE_LEVEL_HIGH + 0 335 IRQ_TYPE_LEVEL_HIGH + 0 336 IRQ_TYPE_LEVEL_HIGH + 0 337 IRQ_TYPE_LEVEL_HIGH + 0 338 IRQ_TYPE_LEVEL_HIGH + 0 339 IRQ_TYPE_LEVEL_HIGH + 0 340 IRQ_TYPE_LEVEL_HIGH + 0 341 IRQ_TYPE_LEVEL_HIGH + 0 342 IRQ_TYPE_LEVEL_HIGH + 0 343 IRQ_TYPE_LEVEL_HIGH + 0 344 IRQ_TYPE_LEVEL_HIGH + 0 345 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "error", + "ch0", "ch1", "ch2", "ch3", + "ch4", "ch5", "ch6", "ch7", + "ch8", "ch9", "ch10", "ch11", + "ch12"; + clocks = <&mstp5_clks R8A7791_CLK_AUDIO_DMAC1>; + clock-names = "fck"; + #dma-cells = <1>; + dma-channels = <13>; + }; + /* The memory map in the User's Manual maps the cores to bus numbers */ i2c0: i2c at e6508000 { #address-cells = <1>; @@ -1053,10 +1109,11 @@ mstp5_clks: mstp5_clks at e6150144 { compatible = "renesas,r8a7791-mstp-clocks", "renesas,cpg-mstp-clocks"; reg = <0 0xe6150144 0 4>, <0 0xe615003c 0 4>; - clocks = <&extal_clk>, <&p_clk>; + clocks = <&hp_clk>, <&hp_clk>, <&extal_clk>, <&p_clk>; #clock-cells = <1>; - renesas,clock-indices = <R8A7791_CLK_THERMAL R8A7791_CLK_PWM>; - clock-output-names = "thermal", "pwm"; + renesas,clock-indices = <R8A7791_CLK_AUDIO_DMAC0 R8A7791_CLK_AUDIO_DMAC1 + R8A7791_CLK_THERMAL R8A7791_CLK_PWM>; + clock-output-names = "audmac0", "audmac1", "thermal", "pwm"; }; mstp7_clks: mstp7_clks at e615014c { compatible = "renesas,r8a7791-mstp-clocks", "renesas,cpg-mstp-clocks"; diff --git a/include/dt-bindings/clock/r8a7791-clock.h b/include/dt-bindings/clock/r8a7791-clock.h index dcececd..3ea2bbc 100644 --- a/include/dt-bindings/clock/r8a7791-clock.h +++ b/include/dt-bindings/clock/r8a7791-clock.h @@ -69,6 +69,8 @@ #define R8A7791_CLK_USBDMAC1 31 /* MSTP5 */ +#define R8A7791_CLK_AUDIO_DMAC1 1 +#define R8A7791_CLK_AUDIO_DMAC0 2 #define R8A7791_CLK_THERMAL 22 #define R8A7791_CLK_PWM 23 -- 2.1.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 04/25] ARM: shmobile: r8a7790: Add Audio DMAC peri peri devices to DT 2014-11-13 1:20 ` Simon Horman @ 2014-11-13 1:19 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-13 1:19 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Instantiate the Audio DMAC peri peri controllers in the r8a7790 device tree. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7790.dtsi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/r8a7790.dtsi b/arch/arm/boot/dts/r8a7790.dtsi index 2e01d49..146f918 100644 --- a/arch/arm/boot/dts/r8a7790.dtsi +++ b/arch/arm/boot/dts/r8a7790.dtsi @@ -369,6 +369,13 @@ dma-channels = <13>; }; + audmapp: dma-controller@ec740000 { + compatible = "renesas,rcar-audmapp"; + #dma-cells = <1>; + + reg = <0 0xec740000 0 0x200>; + }; + i2c0: i2c@e6508000 { #address-cells = <1>; #size-cells = <0>; -- 2.1.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 04/25] ARM: shmobile: r8a7790: Add Audio DMAC peri peri devices to DT @ 2014-11-13 1:19 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-13 1:19 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Instantiate the Audio DMAC peri peri controllers in the r8a7790 device tree. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7790.dtsi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/r8a7790.dtsi b/arch/arm/boot/dts/r8a7790.dtsi index 2e01d49..146f918 100644 --- a/arch/arm/boot/dts/r8a7790.dtsi +++ b/arch/arm/boot/dts/r8a7790.dtsi @@ -369,6 +369,13 @@ dma-channels = <13>; }; + audmapp: dma-controller at ec740000 { + compatible = "renesas,rcar-audmapp"; + #dma-cells = <1>; + + reg = <0 0xec740000 0 0x200>; + }; + i2c0: i2c at e6508000 { #address-cells = <1>; #size-cells = <0>; -- 2.1.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 05/25] ARM: shmobile: r8a7791: Add Audio DMAC peri peri devices to DT 2014-11-13 1:20 ` Simon Horman @ 2014-11-13 1:19 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-13 1:19 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Instantiate the Audio DMAC peri peri controllers in the r8a7791 device tree. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791.dtsi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/r8a7791.dtsi b/arch/arm/boot/dts/r8a7791.dtsi index b54af74..379e1a5 100644 --- a/arch/arm/boot/dts/r8a7791.dtsi +++ b/arch/arm/boot/dts/r8a7791.dtsi @@ -357,6 +357,13 @@ dma-channels = <13>; }; + audmapp: dma-controller@ec740000 { + compatible = "renesas,rcar-audmapp"; + #dma-cells = <1>; + + reg = <0 0xec740000 0 0x200>; + }; + /* The memory map in the User's Manual maps the cores to bus numbers */ i2c0: i2c@e6508000 { #address-cells = <1>; -- 2.1.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 05/25] ARM: shmobile: r8a7791: Add Audio DMAC peri peri devices to DT @ 2014-11-13 1:19 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-13 1:19 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Instantiate the Audio DMAC peri peri controllers in the r8a7791 device tree. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791.dtsi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/r8a7791.dtsi b/arch/arm/boot/dts/r8a7791.dtsi index b54af74..379e1a5 100644 --- a/arch/arm/boot/dts/r8a7791.dtsi +++ b/arch/arm/boot/dts/r8a7791.dtsi @@ -357,6 +357,13 @@ dma-channels = <13>; }; + audmapp: dma-controller at ec740000 { + compatible = "renesas,rcar-audmapp"; + #dma-cells = <1>; + + reg = <0 0xec740000 0 0x200>; + }; + /* The memory map in the User's Manual maps the cores to bus numbers */ i2c0: i2c at e6508000 { #address-cells = <1>; -- 2.1.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 06/25] ARM: shmobile: r8a7790: sound enables Audio DMAC entry on DTSI 2014-11-13 1:20 ` Simon Horman @ 2014-11-13 1:19 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-13 1:19 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7790.dtsi | 44 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/arch/arm/boot/dts/r8a7790.dtsi b/arch/arm/boot/dts/r8a7790.dtsi index 146f918..70daf91 100644 --- a/arch/arm/boot/dts/r8a7790.dtsi +++ b/arch/arm/boot/dts/r8a7790.dtsi @@ -1417,6 +1417,50 @@ "dvc.0", "dvc.1", "clk_a", "clk_b", "clk_c", "clk_i"; + dmas = <&audma0 0x01>, <&audma1 0x02>, <&audma0 0x15>, <&audma1 0x16>, + <&audma0 0x03>, <&audma1 0x04>, <&audma0 0x49>, <&audma1 0x4a>, + <&audma0 0x05>, <&audma1 0x06>, <&audma0 0x63>, <&audma1 0x64>, + <&audma0 0x07>, <&audma1 0x08>, <&audma0 0x6f>, <&audma1 0x70>, + <&audma0 0x09>, <&audma1 0x0a>, <&audma0 0x71>, <&audma1 0x72>, + <&audma0 0x0b>, <&audma1 0x0c>, <&audma0 0x73>, <&audma1 0x74>, + <&audma0 0x0d>, <&audma1 0x0e>, <&audma0 0x75>, <&audma1 0x76>, + <&audma0 0x0f>, <&audma1 0x10>, <&audma0 0x79>, <&audma1 0x7a>, + <&audma0 0x11>, <&audma1 0x12>, <&audma0 0x7b>, <&audma1 0x7c>, + <&audma0 0x13>, <&audma1 0x14>, <&audma0 0x7d>, <&audma1 0x7e>, + + <&audma0 0x85>, <&audma1 0x9a>, <&audma0 0xbc>, + <&audma0 0x87>, <&audma1 0x9c>, <&audma0 0xbe>, + <&audma0 0x89>, <&audma1 0x9e>, + <&audma0 0x8b>, <&audma1 0xa0>, + <&audma0 0x8d>, <&audma1 0xb0>, + <&audma0 0x8f>, <&audma1 0xb2>, + <&audma0 0x91>, <&audma1 0xb4>, + <&audma0 0x93>, <&audma1 0xb6>, + <&audma0 0x95>, <&audma1 0xb8>, + <&audma0 0x97>, <&audma1 0xba>; + + dma-names = "mem_ssi0", "ssi0_mem", "mem_ssiu0", "ssiu0_mem", + "mem_ssi1", "ssi1_mem", "mem_ssiu1", "ssiu1_mem", + "mem_ssi2", "ssi2_mem", "mem_ssiu2", "ssiu2_mem", + "mem_ssi3", "ssi3_mem", "mem_ssiu3", "ssiu3_mem", + "mem_ssi4", "ssi4_mem", "mem_ssiu4", "ssiu4_mem", + "mem_ssi5", "ssi5_mem", "mem_ssiu5", "ssiu5_mem", + "mem_ssi6", "ssi6_mem", "mem_ssiu6", "ssiu6_mem", + "mem_ssi7", "ssi7_mem", "mem_ssiu7", "ssiu7_mem", + "mem_ssi8", "ssi8_mem", "mem_ssiu8", "ssiu8_mem", + "mem_ssi9", "ssi9_mem", "mem_ssiu9", "ssiu9_mem", + + "mem_src0", "src0_mem", "dvc0_mem", + "mem_src1", "src1_mem", "dvc1_mem", + "mem_src2", "src2_mem", + "mem_src3", "src3_mem", + "mem_src4", "src4_mem", + "mem_src5", "src5_mem", + "mem_src6", "src6_mem", + "mem_src7", "src7_mem", + "mem_src8", "src8_mem", + "mem_src9", "src9_mem"; + status = "disabled"; rcar_sound,dvc { -- 2.1.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 06/25] ARM: shmobile: r8a7790: sound enables Audio DMAC entry on DTSI @ 2014-11-13 1:19 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-13 1:19 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7790.dtsi | 44 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/arch/arm/boot/dts/r8a7790.dtsi b/arch/arm/boot/dts/r8a7790.dtsi index 146f918..70daf91 100644 --- a/arch/arm/boot/dts/r8a7790.dtsi +++ b/arch/arm/boot/dts/r8a7790.dtsi @@ -1417,6 +1417,50 @@ "dvc.0", "dvc.1", "clk_a", "clk_b", "clk_c", "clk_i"; + dmas = <&audma0 0x01>, <&audma1 0x02>, <&audma0 0x15>, <&audma1 0x16>, + <&audma0 0x03>, <&audma1 0x04>, <&audma0 0x49>, <&audma1 0x4a>, + <&audma0 0x05>, <&audma1 0x06>, <&audma0 0x63>, <&audma1 0x64>, + <&audma0 0x07>, <&audma1 0x08>, <&audma0 0x6f>, <&audma1 0x70>, + <&audma0 0x09>, <&audma1 0x0a>, <&audma0 0x71>, <&audma1 0x72>, + <&audma0 0x0b>, <&audma1 0x0c>, <&audma0 0x73>, <&audma1 0x74>, + <&audma0 0x0d>, <&audma1 0x0e>, <&audma0 0x75>, <&audma1 0x76>, + <&audma0 0x0f>, <&audma1 0x10>, <&audma0 0x79>, <&audma1 0x7a>, + <&audma0 0x11>, <&audma1 0x12>, <&audma0 0x7b>, <&audma1 0x7c>, + <&audma0 0x13>, <&audma1 0x14>, <&audma0 0x7d>, <&audma1 0x7e>, + + <&audma0 0x85>, <&audma1 0x9a>, <&audma0 0xbc>, + <&audma0 0x87>, <&audma1 0x9c>, <&audma0 0xbe>, + <&audma0 0x89>, <&audma1 0x9e>, + <&audma0 0x8b>, <&audma1 0xa0>, + <&audma0 0x8d>, <&audma1 0xb0>, + <&audma0 0x8f>, <&audma1 0xb2>, + <&audma0 0x91>, <&audma1 0xb4>, + <&audma0 0x93>, <&audma1 0xb6>, + <&audma0 0x95>, <&audma1 0xb8>, + <&audma0 0x97>, <&audma1 0xba>; + + dma-names = "mem_ssi0", "ssi0_mem", "mem_ssiu0", "ssiu0_mem", + "mem_ssi1", "ssi1_mem", "mem_ssiu1", "ssiu1_mem", + "mem_ssi2", "ssi2_mem", "mem_ssiu2", "ssiu2_mem", + "mem_ssi3", "ssi3_mem", "mem_ssiu3", "ssiu3_mem", + "mem_ssi4", "ssi4_mem", "mem_ssiu4", "ssiu4_mem", + "mem_ssi5", "ssi5_mem", "mem_ssiu5", "ssiu5_mem", + "mem_ssi6", "ssi6_mem", "mem_ssiu6", "ssiu6_mem", + "mem_ssi7", "ssi7_mem", "mem_ssiu7", "ssiu7_mem", + "mem_ssi8", "ssi8_mem", "mem_ssiu8", "ssiu8_mem", + "mem_ssi9", "ssi9_mem", "mem_ssiu9", "ssiu9_mem", + + "mem_src0", "src0_mem", "dvc0_mem", + "mem_src1", "src1_mem", "dvc1_mem", + "mem_src2", "src2_mem", + "mem_src3", "src3_mem", + "mem_src4", "src4_mem", + "mem_src5", "src5_mem", + "mem_src6", "src6_mem", + "mem_src7", "src7_mem", + "mem_src8", "src8_mem", + "mem_src9", "src9_mem"; + status = "disabled"; rcar_sound,dvc { -- 2.1.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 07/25] ARM: shmobile: r8a7791: sound enables Audio DMAC entry on DTSI 2014-11-13 1:20 ` Simon Horman @ 2014-11-13 1:19 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-13 1:19 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791.dtsi | 44 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/arch/arm/boot/dts/r8a7791.dtsi b/arch/arm/boot/dts/r8a7791.dtsi index 379e1a5..e856afa 100644 --- a/arch/arm/boot/dts/r8a7791.dtsi +++ b/arch/arm/boot/dts/r8a7791.dtsi @@ -1399,6 +1399,50 @@ "dvc.0", "dvc.1", "clk_a", "clk_b", "clk_c", "clk_i"; + dmas = <&audma0 0x01>, <&audma1 0x02>, <&audma0 0x15>, <&audma1 0x16>, + <&audma0 0x03>, <&audma1 0x04>, <&audma0 0x49>, <&audma1 0x4a>, + <&audma0 0x05>, <&audma1 0x06>, <&audma0 0x63>, <&audma1 0x64>, + <&audma0 0x07>, <&audma1 0x08>, <&audma0 0x6f>, <&audma1 0x70>, + <&audma0 0x09>, <&audma1 0x0a>, <&audma0 0x71>, <&audma1 0x72>, + <&audma0 0x0b>, <&audma1 0x0c>, <&audma0 0x73>, <&audma1 0x74>, + <&audma0 0x0d>, <&audma1 0x0e>, <&audma0 0x75>, <&audma1 0x76>, + <&audma0 0x0f>, <&audma1 0x10>, <&audma0 0x79>, <&audma1 0x7a>, + <&audma0 0x11>, <&audma1 0x12>, <&audma0 0x7b>, <&audma1 0x7c>, + <&audma0 0x13>, <&audma1 0x14>, <&audma0 0x7d>, <&audma1 0x7e>, + + <&audma0 0x85>, <&audma1 0x9a>, <&audma0 0xbc>, + <&audma0 0x87>, <&audma1 0x9c>, <&audma0 0xbe>, + <&audma0 0x89>, <&audma1 0x9e>, + <&audma0 0x8b>, <&audma1 0xa0>, + <&audma0 0x8d>, <&audma1 0xb0>, + <&audma0 0x8f>, <&audma1 0xb2>, + <&audma0 0x91>, <&audma1 0xb4>, + <&audma0 0x93>, <&audma1 0xb6>, + <&audma0 0x95>, <&audma1 0xb8>, + <&audma0 0x97>, <&audma1 0xba>; + + dma-names = "mem_ssi0", "ssi0_mem", "mem_ssiu0", "ssiu0_mem", + "mem_ssi1", "ssi1_mem", "mem_ssiu1", "ssiu1_mem", + "mem_ssi2", "ssi2_mem", "mem_ssiu2", "ssiu2_mem", + "mem_ssi3", "ssi3_mem", "mem_ssiu3", "ssiu3_mem", + "mem_ssi4", "ssi4_mem", "mem_ssiu4", "ssiu4_mem", + "mem_ssi5", "ssi5_mem", "mem_ssiu5", "ssiu5_mem", + "mem_ssi6", "ssi6_mem", "mem_ssiu6", "ssiu6_mem", + "mem_ssi7", "ssi7_mem", "mem_ssiu7", "ssiu7_mem", + "mem_ssi8", "ssi8_mem", "mem_ssiu8", "ssiu8_mem", + "mem_ssi9", "ssi9_mem", "mem_ssiu9", "ssiu9_mem", + + "mem_src0", "src0_mem", "dvc0_mem", + "mem_src1", "src1_mem", "dvc1_mem", + "mem_src2", "src2_mem", + "mem_src3", "src3_mem", + "mem_src4", "src4_mem", + "mem_src5", "src5_mem", + "mem_src6", "src6_mem", + "mem_src7", "src7_mem", + "mem_src8", "src8_mem", + "mem_src9", "src9_mem"; + status = "disabled"; rcar_sound,dvc { -- 2.1.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 07/25] ARM: shmobile: r8a7791: sound enables Audio DMAC entry on DTSI @ 2014-11-13 1:19 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-13 1:19 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791.dtsi | 44 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/arch/arm/boot/dts/r8a7791.dtsi b/arch/arm/boot/dts/r8a7791.dtsi index 379e1a5..e856afa 100644 --- a/arch/arm/boot/dts/r8a7791.dtsi +++ b/arch/arm/boot/dts/r8a7791.dtsi @@ -1399,6 +1399,50 @@ "dvc.0", "dvc.1", "clk_a", "clk_b", "clk_c", "clk_i"; + dmas = <&audma0 0x01>, <&audma1 0x02>, <&audma0 0x15>, <&audma1 0x16>, + <&audma0 0x03>, <&audma1 0x04>, <&audma0 0x49>, <&audma1 0x4a>, + <&audma0 0x05>, <&audma1 0x06>, <&audma0 0x63>, <&audma1 0x64>, + <&audma0 0x07>, <&audma1 0x08>, <&audma0 0x6f>, <&audma1 0x70>, + <&audma0 0x09>, <&audma1 0x0a>, <&audma0 0x71>, <&audma1 0x72>, + <&audma0 0x0b>, <&audma1 0x0c>, <&audma0 0x73>, <&audma1 0x74>, + <&audma0 0x0d>, <&audma1 0x0e>, <&audma0 0x75>, <&audma1 0x76>, + <&audma0 0x0f>, <&audma1 0x10>, <&audma0 0x79>, <&audma1 0x7a>, + <&audma0 0x11>, <&audma1 0x12>, <&audma0 0x7b>, <&audma1 0x7c>, + <&audma0 0x13>, <&audma1 0x14>, <&audma0 0x7d>, <&audma1 0x7e>, + + <&audma0 0x85>, <&audma1 0x9a>, <&audma0 0xbc>, + <&audma0 0x87>, <&audma1 0x9c>, <&audma0 0xbe>, + <&audma0 0x89>, <&audma1 0x9e>, + <&audma0 0x8b>, <&audma1 0xa0>, + <&audma0 0x8d>, <&audma1 0xb0>, + <&audma0 0x8f>, <&audma1 0xb2>, + <&audma0 0x91>, <&audma1 0xb4>, + <&audma0 0x93>, <&audma1 0xb6>, + <&audma0 0x95>, <&audma1 0xb8>, + <&audma0 0x97>, <&audma1 0xba>; + + dma-names = "mem_ssi0", "ssi0_mem", "mem_ssiu0", "ssiu0_mem", + "mem_ssi1", "ssi1_mem", "mem_ssiu1", "ssiu1_mem", + "mem_ssi2", "ssi2_mem", "mem_ssiu2", "ssiu2_mem", + "mem_ssi3", "ssi3_mem", "mem_ssiu3", "ssiu3_mem", + "mem_ssi4", "ssi4_mem", "mem_ssiu4", "ssiu4_mem", + "mem_ssi5", "ssi5_mem", "mem_ssiu5", "ssiu5_mem", + "mem_ssi6", "ssi6_mem", "mem_ssiu6", "ssiu6_mem", + "mem_ssi7", "ssi7_mem", "mem_ssiu7", "ssiu7_mem", + "mem_ssi8", "ssi8_mem", "mem_ssiu8", "ssiu8_mem", + "mem_ssi9", "ssi9_mem", "mem_ssiu9", "ssiu9_mem", + + "mem_src0", "src0_mem", "dvc0_mem", + "mem_src1", "src1_mem", "dvc1_mem", + "mem_src2", "src2_mem", + "mem_src3", "src3_mem", + "mem_src4", "src4_mem", + "mem_src5", "src5_mem", + "mem_src6", "src6_mem", + "mem_src7", "src7_mem", + "mem_src8", "src8_mem", + "mem_src9", "src9_mem"; + status = "disabled"; rcar_sound,dvc { -- 2.1.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 08/25] ARM: shmobile: r8a7790: sound enables Audio DMAC peri peri entry on DTSI 2014-11-13 1:20 ` Simon Horman @ 2014-11-13 1:19 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-13 1:19 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7790.dtsi | 92 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 90 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/r8a7790.dtsi b/arch/arm/boot/dts/r8a7790.dtsi index 70daf91..0bab1d5 100644 --- a/arch/arm/boot/dts/r8a7790.dtsi +++ b/arch/arm/boot/dts/r8a7790.dtsi @@ -1437,7 +1437,51 @@ <&audma0 0x91>, <&audma1 0xb4>, <&audma0 0x93>, <&audma1 0xb6>, <&audma0 0x95>, <&audma1 0xb8>, - <&audma0 0x97>, <&audma1 0xba>; + <&audma0 0x97>, <&audma1 0xba>, + + <&audmapp 0x2d00>, <&audmapp 0x2e00>, <&audmapp 0x2f00>, <&audmapp 0x3000>, <&audmapp 0x3100>, + <&audmapp 0x2d04>, <&audmapp 0x2e04>, <&audmapp 0x2f04>, <&audmapp 0x3004>, <&audmapp 0x3104>, + <&audmapp 0x2d08>, <&audmapp 0x2e08>, <&audmapp 0x2f08>, <&audmapp 0x3008>, <&audmapp 0x3108>, + <&audmapp 0x2d0c>, <&audmapp 0x2e0c>, <&audmapp 0x2f0c>, <&audmapp 0x300c>, <&audmapp 0x310c>, + <&audmapp 0x2d0d>, <&audmapp 0x2e0d>, <&audmapp 0x2f0d>, <&audmapp 0x300d>, <&audmapp 0x310d>, + <&audmapp 0x2d0e>, <&audmapp 0x2e0e>, <&audmapp 0x2f0e>, <&audmapp 0x300e>, <&audmapp 0x310e>, + <&audmapp 0x2d0f>, <&audmapp 0x2e0f>, <&audmapp 0x2f0f>, <&audmapp 0x300f>, <&audmapp 0x310f>, + <&audmapp 0x2d10>, <&audmapp 0x2e10>, <&audmapp 0x2f10>, <&audmapp 0x3010>, <&audmapp 0x3110>, + <&audmapp 0x2d11>, <&audmapp 0x2e11>, <&audmapp 0x2f11>, <&audmapp 0x3011>, <&audmapp 0x3111>, + <&audmapp 0x2d12>, <&audmapp 0x2e12>, <&audmapp 0x2f12>, <&audmapp 0x3012>, <&audmapp 0x3112>, + + <&audmapp 0x3200>, <&audmapp 0x3300>, <&audmapp 0x3400>, <&audmapp 0x3500>, <&audmapp 0x3600>, + <&audmapp 0x3204>, <&audmapp 0x3304>, <&audmapp 0x3404>, <&audmapp 0x3504>, <&audmapp 0x3604>, + <&audmapp 0x3208>, <&audmapp 0x3308>, <&audmapp 0x3408>, <&audmapp 0x3508>, <&audmapp 0x3608>, + <&audmapp 0x320c>, <&audmapp 0x330c>, <&audmapp 0x340c>, <&audmapp 0x350c>, <&audmapp 0x360c>, + <&audmapp 0x320d>, <&audmapp 0x330d>, <&audmapp 0x340d>, <&audmapp 0x350d>, <&audmapp 0x360d>, + <&audmapp 0x320e>, <&audmapp 0x330e>, <&audmapp 0x340e>, <&audmapp 0x350e>, <&audmapp 0x360e>, + <&audmapp 0x320f>, <&audmapp 0x330f>, <&audmapp 0x340f>, <&audmapp 0x350f>, <&audmapp 0x360f>, + <&audmapp 0x3210>, <&audmapp 0x3310>, <&audmapp 0x3410>, <&audmapp 0x3510>, <&audmapp 0x3610>, + <&audmapp 0x3211>, <&audmapp 0x3311>, <&audmapp 0x3411>, <&audmapp 0x3511>, <&audmapp 0x3611>, + <&audmapp 0x3212>, <&audmapp 0x3312>, <&audmapp 0x3412>, <&audmapp 0x3512>, <&audmapp 0x3612>, + + <&audmapp 0x002d>, <&audmapp 0x002e>, <&audmapp 0x002f>, <&audmapp 0x0030>, <&audmapp 0x0031>, + <&audmapp 0x042d>, <&audmapp 0x042e>, <&audmapp 0x042f>, <&audmapp 0x0430>, <&audmapp 0x0431>, + <&audmapp 0x082d>, <&audmapp 0x082e>, <&audmapp 0x082f>, <&audmapp 0x0830>, <&audmapp 0x0831>, + <&audmapp 0x0c2d>, <&audmapp 0x0c2e>, <&audmapp 0x0c2f>, <&audmapp 0x0c30>, <&audmapp 0x0c31>, + <&audmapp 0x0d2d>, <&audmapp 0x0d2e>, <&audmapp 0x0d2f>, <&audmapp 0x0d30>, <&audmapp 0x0d31>, + <&audmapp 0x0e2d>, <&audmapp 0x0e2e>, <&audmapp 0x0e2f>, <&audmapp 0x0e30>, <&audmapp 0x0e31>, + <&audmapp 0x0f2d>, <&audmapp 0x0f2e>, <&audmapp 0x0f2f>, <&audmapp 0x0f30>, <&audmapp 0x0f31>, + <&audmapp 0x102d>, <&audmapp 0x102e>, <&audmapp 0x102f>, <&audmapp 0x1030>, <&audmapp 0x1031>, + <&audmapp 0x112d>, <&audmapp 0x112e>, <&audmapp 0x112f>, <&audmapp 0x1130>, <&audmapp 0x1131>, + <&audmapp 0x122d>, <&audmapp 0x122e>, <&audmapp 0x122f>, <&audmapp 0x1230>, <&audmapp 0x1231>, + + <&audmapp 0x0032>, <&audmapp 0x0033>, <&audmapp 0x0034>, <&audmapp 0x0035>, <&audmapp 0x0036>, + <&audmapp 0x0432>, <&audmapp 0x0433>, <&audmapp 0x0434>, <&audmapp 0x0435>, <&audmapp 0x0436>, + <&audmapp 0x0832>, <&audmapp 0x0833>, <&audmapp 0x0834>, <&audmapp 0x0835>, <&audmapp 0x0836>, + <&audmapp 0x0c32>, <&audmapp 0x0c33>, <&audmapp 0x0c34>, <&audmapp 0x0c35>, <&audmapp 0x0c36>, + <&audmapp 0x0d32>, <&audmapp 0x0d33>, <&audmapp 0x0d34>, <&audmapp 0x0d35>, <&audmapp 0x0d36>, + <&audmapp 0x0e32>, <&audmapp 0x0e33>, <&audmapp 0x0e34>, <&audmapp 0x0e35>, <&audmapp 0x0e36>, + <&audmapp 0x0f32>, <&audmapp 0x0f33>, <&audmapp 0x0f34>, <&audmapp 0x0f35>, <&audmapp 0x0f36>, + <&audmapp 0x1032>, <&audmapp 0x1033>, <&audmapp 0x1034>, <&audmapp 0x1035>, <&audmapp 0x1036>, + <&audmapp 0x1132>, <&audmapp 0x1133>, <&audmapp 0x1134>, <&audmapp 0x1135>, <&audmapp 0x1136>, + <&audmapp 0x1232>, <&audmapp 0x1233>, <&audmapp 0x1234>, <&audmapp 0x1235>, <&audmapp 0x1236>; dma-names = "mem_ssi0", "ssi0_mem", "mem_ssiu0", "ssiu0_mem", "mem_ssi1", "ssi1_mem", "mem_ssiu1", "ssiu1_mem", @@ -1459,7 +1503,51 @@ "mem_src6", "src6_mem", "mem_src7", "src7_mem", "mem_src8", "src8_mem", - "mem_src9", "src9_mem"; + "mem_src9", "src9_mem", + + "src0_ssiu0", "src1_ssiu0", "src2_ssiu0", "src3_ssiu0", "src4_ssiu0", + "src0_ssiu1", "src1_ssiu1", "src2_ssiu1", "src3_ssiu1", "src4_ssiu1", + "src0_ssiu2", "src1_ssiu2", "src2_ssiu2", "src3_ssiu2", "src4_ssiu2", + "src0_ssiu3", "src1_ssiu3", "src2_ssiu3", "src3_ssiu3", "src4_ssiu3", + "src0_ssiu4", "src1_ssiu4", "src2_ssiu4", "src3_ssiu4", "src4_ssiu4", + "src0_ssiu5", "src1_ssiu5", "src2_ssiu5", "src3_ssiu5", "src4_ssiu5", + "src0_ssiu6", "src1_ssiu6", "src2_ssiu6", "src3_ssiu6", "src4_ssiu6", + "src0_ssiu7", "src1_ssiu7", "src2_ssiu7", "src3_ssiu7", "src4_ssiu7", + "src0_ssiu8", "src1_ssiu8", "src2_ssiu8", "src3_ssiu8", "src4_ssiu8", + "src0_ssiu9", "src1_ssiu9", "src2_ssiu9", "src3_ssiu9", "src4_ssiu9", + + "src5_ssiu0", "src6_ssiu0", "src7_ssiu0", "src8_ssiu0", "src9_ssiu0", + "src5_ssiu1", "src6_ssiu1", "src7_ssiu1", "src8_ssiu1", "src9_ssiu1", + "src5_ssiu2", "src6_ssiu2", "src7_ssiu2", "src8_ssiu2", "src9_ssiu2", + "src5_ssiu3", "src6_ssiu3", "src7_ssiu3", "src8_ssiu3", "src9_ssiu3", + "src5_ssiu4", "src6_ssiu4", "src7_ssiu4", "src8_ssiu4", "src9_ssiu4", + "src5_ssiu5", "src6_ssiu5", "src7_ssiu5", "src8_ssiu5", "src9_ssiu5", + "src5_ssiu6", "src6_ssiu6", "src7_ssiu6", "src8_ssiu6", "src9_ssiu6", + "src5_ssiu7", "src6_ssiu7", "src7_ssiu7", "src8_ssiu7", "src9_ssiu7", + "src5_ssiu8", "src6_ssiu8", "src7_ssiu8", "src8_ssiu8", "src9_ssiu8", + "src5_ssiu9", "src6_ssiu9", "src7_ssiu9", "src8_ssiu9", "src9_ssiu9", + + "ssiu0_src0", "ssiu0_src1", "ssiu0_src2", "ssiu0_src3", "ssiu0_src4", + "ssiu1_src0", "ssiu1_src1", "ssiu1_src2", "ssiu1_src3", "ssiu1_src4", + "ssiu2_src0", "ssiu2_src1", "ssiu2_src2", "ssiu2_src3", "ssiu2_src4", + "ssiu3_src0", "ssiu3_src1", "ssiu3_src2", "ssiu3_src3", "ssiu3_src4", + "ssiu4_src0", "ssiu4_src1", "ssiu4_src2", "ssiu4_src3", "ssiu4_src4", + "ssiu5_src0", "ssiu5_src1", "ssiu5_src2", "ssiu5_src3", "ssiu5_src4", + "ssiu6_src0", "ssiu6_src1", "ssiu6_src2", "ssiu6_src3", "ssiu6_src4", + "ssiu7_src0", "ssiu7_src1", "ssiu7_src2", "ssiu7_src3", "ssiu7_src4", + "ssiu8_src0", "ssiu8_src1", "ssiu8_src2", "ssiu8_src3", "ssiu8_src4", + "ssiu9_src0", "ssiu9_src1", "ssiu9_src2", "ssiu9_src3", "ssiu9_src4", + + "ssiu0_src5", "ssiu0_src6", "ssiu0_src7", "ssiu0_src8", "ssiu0_src9", + "ssiu1_src5", "ssiu1_src6", "ssiu1_src7", "ssiu1_src8", "ssiu1_src9", + "ssiu2_src5", "ssiu2_src6", "ssiu2_src7", "ssiu2_src8", "ssiu2_src9", + "ssiu3_src5", "ssiu3_src6", "ssiu3_src7", "ssiu3_src8", "ssiu3_src9", + "ssiu4_src5", "ssiu4_src6", "ssiu4_src7", "ssiu4_src8", "ssiu4_src9", + "ssiu5_src5", "ssiu5_src6", "ssiu5_src7", "ssiu5_src8", "ssiu5_src9", + "ssiu6_src5", "ssiu6_src6", "ssiu6_src7", "ssiu6_src8", "ssiu6_src9", + "ssiu7_src5", "ssiu7_src6", "ssiu7_src7", "ssiu7_src8", "ssiu7_src9", + "ssiu8_src5", "ssiu8_src6", "ssiu8_src7", "ssiu8_src8", "ssiu8_src9", + "ssiu9_src5", "ssiu9_src6", "ssiu9_src7", "ssiu9_src8", "ssiu9_src9"; status = "disabled"; -- 2.1.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 08/25] ARM: shmobile: r8a7790: sound enables Audio DMAC peri peri entry on DTSI @ 2014-11-13 1:19 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-13 1:19 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7790.dtsi | 92 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 90 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/r8a7790.dtsi b/arch/arm/boot/dts/r8a7790.dtsi index 70daf91..0bab1d5 100644 --- a/arch/arm/boot/dts/r8a7790.dtsi +++ b/arch/arm/boot/dts/r8a7790.dtsi @@ -1437,7 +1437,51 @@ <&audma0 0x91>, <&audma1 0xb4>, <&audma0 0x93>, <&audma1 0xb6>, <&audma0 0x95>, <&audma1 0xb8>, - <&audma0 0x97>, <&audma1 0xba>; + <&audma0 0x97>, <&audma1 0xba>, + + <&audmapp 0x2d00>, <&audmapp 0x2e00>, <&audmapp 0x2f00>, <&audmapp 0x3000>, <&audmapp 0x3100>, + <&audmapp 0x2d04>, <&audmapp 0x2e04>, <&audmapp 0x2f04>, <&audmapp 0x3004>, <&audmapp 0x3104>, + <&audmapp 0x2d08>, <&audmapp 0x2e08>, <&audmapp 0x2f08>, <&audmapp 0x3008>, <&audmapp 0x3108>, + <&audmapp 0x2d0c>, <&audmapp 0x2e0c>, <&audmapp 0x2f0c>, <&audmapp 0x300c>, <&audmapp 0x310c>, + <&audmapp 0x2d0d>, <&audmapp 0x2e0d>, <&audmapp 0x2f0d>, <&audmapp 0x300d>, <&audmapp 0x310d>, + <&audmapp 0x2d0e>, <&audmapp 0x2e0e>, <&audmapp 0x2f0e>, <&audmapp 0x300e>, <&audmapp 0x310e>, + <&audmapp 0x2d0f>, <&audmapp 0x2e0f>, <&audmapp 0x2f0f>, <&audmapp 0x300f>, <&audmapp 0x310f>, + <&audmapp 0x2d10>, <&audmapp 0x2e10>, <&audmapp 0x2f10>, <&audmapp 0x3010>, <&audmapp 0x3110>, + <&audmapp 0x2d11>, <&audmapp 0x2e11>, <&audmapp 0x2f11>, <&audmapp 0x3011>, <&audmapp 0x3111>, + <&audmapp 0x2d12>, <&audmapp 0x2e12>, <&audmapp 0x2f12>, <&audmapp 0x3012>, <&audmapp 0x3112>, + + <&audmapp 0x3200>, <&audmapp 0x3300>, <&audmapp 0x3400>, <&audmapp 0x3500>, <&audmapp 0x3600>, + <&audmapp 0x3204>, <&audmapp 0x3304>, <&audmapp 0x3404>, <&audmapp 0x3504>, <&audmapp 0x3604>, + <&audmapp 0x3208>, <&audmapp 0x3308>, <&audmapp 0x3408>, <&audmapp 0x3508>, <&audmapp 0x3608>, + <&audmapp 0x320c>, <&audmapp 0x330c>, <&audmapp 0x340c>, <&audmapp 0x350c>, <&audmapp 0x360c>, + <&audmapp 0x320d>, <&audmapp 0x330d>, <&audmapp 0x340d>, <&audmapp 0x350d>, <&audmapp 0x360d>, + <&audmapp 0x320e>, <&audmapp 0x330e>, <&audmapp 0x340e>, <&audmapp 0x350e>, <&audmapp 0x360e>, + <&audmapp 0x320f>, <&audmapp 0x330f>, <&audmapp 0x340f>, <&audmapp 0x350f>, <&audmapp 0x360f>, + <&audmapp 0x3210>, <&audmapp 0x3310>, <&audmapp 0x3410>, <&audmapp 0x3510>, <&audmapp 0x3610>, + <&audmapp 0x3211>, <&audmapp 0x3311>, <&audmapp 0x3411>, <&audmapp 0x3511>, <&audmapp 0x3611>, + <&audmapp 0x3212>, <&audmapp 0x3312>, <&audmapp 0x3412>, <&audmapp 0x3512>, <&audmapp 0x3612>, + + <&audmapp 0x002d>, <&audmapp 0x002e>, <&audmapp 0x002f>, <&audmapp 0x0030>, <&audmapp 0x0031>, + <&audmapp 0x042d>, <&audmapp 0x042e>, <&audmapp 0x042f>, <&audmapp 0x0430>, <&audmapp 0x0431>, + <&audmapp 0x082d>, <&audmapp 0x082e>, <&audmapp 0x082f>, <&audmapp 0x0830>, <&audmapp 0x0831>, + <&audmapp 0x0c2d>, <&audmapp 0x0c2e>, <&audmapp 0x0c2f>, <&audmapp 0x0c30>, <&audmapp 0x0c31>, + <&audmapp 0x0d2d>, <&audmapp 0x0d2e>, <&audmapp 0x0d2f>, <&audmapp 0x0d30>, <&audmapp 0x0d31>, + <&audmapp 0x0e2d>, <&audmapp 0x0e2e>, <&audmapp 0x0e2f>, <&audmapp 0x0e30>, <&audmapp 0x0e31>, + <&audmapp 0x0f2d>, <&audmapp 0x0f2e>, <&audmapp 0x0f2f>, <&audmapp 0x0f30>, <&audmapp 0x0f31>, + <&audmapp 0x102d>, <&audmapp 0x102e>, <&audmapp 0x102f>, <&audmapp 0x1030>, <&audmapp 0x1031>, + <&audmapp 0x112d>, <&audmapp 0x112e>, <&audmapp 0x112f>, <&audmapp 0x1130>, <&audmapp 0x1131>, + <&audmapp 0x122d>, <&audmapp 0x122e>, <&audmapp 0x122f>, <&audmapp 0x1230>, <&audmapp 0x1231>, + + <&audmapp 0x0032>, <&audmapp 0x0033>, <&audmapp 0x0034>, <&audmapp 0x0035>, <&audmapp 0x0036>, + <&audmapp 0x0432>, <&audmapp 0x0433>, <&audmapp 0x0434>, <&audmapp 0x0435>, <&audmapp 0x0436>, + <&audmapp 0x0832>, <&audmapp 0x0833>, <&audmapp 0x0834>, <&audmapp 0x0835>, <&audmapp 0x0836>, + <&audmapp 0x0c32>, <&audmapp 0x0c33>, <&audmapp 0x0c34>, <&audmapp 0x0c35>, <&audmapp 0x0c36>, + <&audmapp 0x0d32>, <&audmapp 0x0d33>, <&audmapp 0x0d34>, <&audmapp 0x0d35>, <&audmapp 0x0d36>, + <&audmapp 0x0e32>, <&audmapp 0x0e33>, <&audmapp 0x0e34>, <&audmapp 0x0e35>, <&audmapp 0x0e36>, + <&audmapp 0x0f32>, <&audmapp 0x0f33>, <&audmapp 0x0f34>, <&audmapp 0x0f35>, <&audmapp 0x0f36>, + <&audmapp 0x1032>, <&audmapp 0x1033>, <&audmapp 0x1034>, <&audmapp 0x1035>, <&audmapp 0x1036>, + <&audmapp 0x1132>, <&audmapp 0x1133>, <&audmapp 0x1134>, <&audmapp 0x1135>, <&audmapp 0x1136>, + <&audmapp 0x1232>, <&audmapp 0x1233>, <&audmapp 0x1234>, <&audmapp 0x1235>, <&audmapp 0x1236>; dma-names = "mem_ssi0", "ssi0_mem", "mem_ssiu0", "ssiu0_mem", "mem_ssi1", "ssi1_mem", "mem_ssiu1", "ssiu1_mem", @@ -1459,7 +1503,51 @@ "mem_src6", "src6_mem", "mem_src7", "src7_mem", "mem_src8", "src8_mem", - "mem_src9", "src9_mem"; + "mem_src9", "src9_mem", + + "src0_ssiu0", "src1_ssiu0", "src2_ssiu0", "src3_ssiu0", "src4_ssiu0", + "src0_ssiu1", "src1_ssiu1", "src2_ssiu1", "src3_ssiu1", "src4_ssiu1", + "src0_ssiu2", "src1_ssiu2", "src2_ssiu2", "src3_ssiu2", "src4_ssiu2", + "src0_ssiu3", "src1_ssiu3", "src2_ssiu3", "src3_ssiu3", "src4_ssiu3", + "src0_ssiu4", "src1_ssiu4", "src2_ssiu4", "src3_ssiu4", "src4_ssiu4", + "src0_ssiu5", "src1_ssiu5", "src2_ssiu5", "src3_ssiu5", "src4_ssiu5", + "src0_ssiu6", "src1_ssiu6", "src2_ssiu6", "src3_ssiu6", "src4_ssiu6", + "src0_ssiu7", "src1_ssiu7", "src2_ssiu7", "src3_ssiu7", "src4_ssiu7", + "src0_ssiu8", "src1_ssiu8", "src2_ssiu8", "src3_ssiu8", "src4_ssiu8", + "src0_ssiu9", "src1_ssiu9", "src2_ssiu9", "src3_ssiu9", "src4_ssiu9", + + "src5_ssiu0", "src6_ssiu0", "src7_ssiu0", "src8_ssiu0", "src9_ssiu0", + "src5_ssiu1", "src6_ssiu1", "src7_ssiu1", "src8_ssiu1", "src9_ssiu1", + "src5_ssiu2", "src6_ssiu2", "src7_ssiu2", "src8_ssiu2", "src9_ssiu2", + "src5_ssiu3", "src6_ssiu3", "src7_ssiu3", "src8_ssiu3", "src9_ssiu3", + "src5_ssiu4", "src6_ssiu4", "src7_ssiu4", "src8_ssiu4", "src9_ssiu4", + "src5_ssiu5", "src6_ssiu5", "src7_ssiu5", "src8_ssiu5", "src9_ssiu5", + "src5_ssiu6", "src6_ssiu6", "src7_ssiu6", "src8_ssiu6", "src9_ssiu6", + "src5_ssiu7", "src6_ssiu7", "src7_ssiu7", "src8_ssiu7", "src9_ssiu7", + "src5_ssiu8", "src6_ssiu8", "src7_ssiu8", "src8_ssiu8", "src9_ssiu8", + "src5_ssiu9", "src6_ssiu9", "src7_ssiu9", "src8_ssiu9", "src9_ssiu9", + + "ssiu0_src0", "ssiu0_src1", "ssiu0_src2", "ssiu0_src3", "ssiu0_src4", + "ssiu1_src0", "ssiu1_src1", "ssiu1_src2", "ssiu1_src3", "ssiu1_src4", + "ssiu2_src0", "ssiu2_src1", "ssiu2_src2", "ssiu2_src3", "ssiu2_src4", + "ssiu3_src0", "ssiu3_src1", "ssiu3_src2", "ssiu3_src3", "ssiu3_src4", + "ssiu4_src0", "ssiu4_src1", "ssiu4_src2", "ssiu4_src3", "ssiu4_src4", + "ssiu5_src0", "ssiu5_src1", "ssiu5_src2", "ssiu5_src3", "ssiu5_src4", + "ssiu6_src0", "ssiu6_src1", "ssiu6_src2", "ssiu6_src3", "ssiu6_src4", + "ssiu7_src0", "ssiu7_src1", "ssiu7_src2", "ssiu7_src3", "ssiu7_src4", + "ssiu8_src0", "ssiu8_src1", "ssiu8_src2", "ssiu8_src3", "ssiu8_src4", + "ssiu9_src0", "ssiu9_src1", "ssiu9_src2", "ssiu9_src3", "ssiu9_src4", + + "ssiu0_src5", "ssiu0_src6", "ssiu0_src7", "ssiu0_src8", "ssiu0_src9", + "ssiu1_src5", "ssiu1_src6", "ssiu1_src7", "ssiu1_src8", "ssiu1_src9", + "ssiu2_src5", "ssiu2_src6", "ssiu2_src7", "ssiu2_src8", "ssiu2_src9", + "ssiu3_src5", "ssiu3_src6", "ssiu3_src7", "ssiu3_src8", "ssiu3_src9", + "ssiu4_src5", "ssiu4_src6", "ssiu4_src7", "ssiu4_src8", "ssiu4_src9", + "ssiu5_src5", "ssiu5_src6", "ssiu5_src7", "ssiu5_src8", "ssiu5_src9", + "ssiu6_src5", "ssiu6_src6", "ssiu6_src7", "ssiu6_src8", "ssiu6_src9", + "ssiu7_src5", "ssiu7_src6", "ssiu7_src7", "ssiu7_src8", "ssiu7_src9", + "ssiu8_src5", "ssiu8_src6", "ssiu8_src7", "ssiu8_src8", "ssiu8_src9", + "ssiu9_src5", "ssiu9_src6", "ssiu9_src7", "ssiu9_src8", "ssiu9_src9"; status = "disabled"; -- 2.1.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* Re: [PATCH 08/25] ARM: shmobile: r8a7790: sound enables Audio DMAC peri peri entry on DTSI 2014-11-13 1:19 ` Simon Horman @ 2014-11-17 11:29 ` Arnd Bergmann -1 siblings, 0 replies; 776+ messages in thread From: Arnd Bergmann @ 2014-11-17 11:29 UTC (permalink / raw) To: linux-arm-kernel On Thursday 13 November 2014 10:19:59 Simon Horman wrote: > "mem_src6", "src6_mem", > "mem_src7", "src7_mem", > "mem_src8", "src8_mem", > - "mem_src9", "src9_mem"; > + "mem_src9", "src9_mem", > + > + "src0_ssiu0", "src1_ssiu0", "src2_ssiu0", "src3_ssiu0", "src4_ssiu0", > + "src0_ssiu1", "src1_ssiu1", "src2_ssiu1", "src3_ssiu1", "src4_ssiu1", > + "src0_ssiu2", "src1_ssiu2", "src2_ssiu2", "src3_ssiu2", "src4_ssiu2", > I have to note that this looks rather weird and that none of the names are documented in the binding. Can you explain why this device uses over 100 DMA channels and put the exact naming rules into the binding? Do you expect all channels to be in use simultaneously? Arnd ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH 08/25] ARM: shmobile: r8a7790: sound enables Audio DMAC peri peri entry on DTSI @ 2014-11-17 11:29 ` Arnd Bergmann 0 siblings, 0 replies; 776+ messages in thread From: Arnd Bergmann @ 2014-11-17 11:29 UTC (permalink / raw) To: linux-arm-kernel On Thursday 13 November 2014 10:19:59 Simon Horman wrote: > "mem_src6", "src6_mem", > "mem_src7", "src7_mem", > "mem_src8", "src8_mem", > - "mem_src9", "src9_mem"; > + "mem_src9", "src9_mem", > + > + "src0_ssiu0", "src1_ssiu0", "src2_ssiu0", "src3_ssiu0", "src4_ssiu0", > + "src0_ssiu1", "src1_ssiu1", "src2_ssiu1", "src3_ssiu1", "src4_ssiu1", > + "src0_ssiu2", "src1_ssiu2", "src2_ssiu2", "src3_ssiu2", "src4_ssiu2", > I have to note that this looks rather weird and that none of the names are documented in the binding. Can you explain why this device uses over 100 DMA channels and put the exact naming rules into the binding? Do you expect all channels to be in use simultaneously? Arnd ^ permalink raw reply [flat|nested] 776+ messages in thread
* Re: [PATCH 08/25] ARM: shmobile: r8a7790: sound enables Audio DMAC peri peri entry on DTSI 2014-11-17 11:29 ` Arnd Bergmann @ 2014-11-18 0:03 ` Kuninori Morimoto -1 siblings, 0 replies; 776+ messages in thread From: Kuninori Morimoto @ 2014-11-18 0:03 UTC (permalink / raw) To: linux-arm-kernel Hi Arnd > > "mem_src6", "src6_mem", > > "mem_src7", "src7_mem", > > "mem_src8", "src8_mem", > > - "mem_src9", "src9_mem"; > > + "mem_src9", "src9_mem", > > + > > + "src0_ssiu0", "src1_ssiu0", "src2_ssiu0", "src3_ssiu0", "src4_ssiu0", > > + "src0_ssiu1", "src1_ssiu1", "src2_ssiu1", "src3_ssiu1", "src4_ssiu1", > > + "src0_ssiu2", "src1_ssiu2", "src2_ssiu2", "src3_ssiu2", "src4_ssiu2", > > > > I have to note that this looks rather weird and that none of the names > are documented in the binding. > > Can you explain why this device uses over 100 DMA channels and put the > exact naming rules into the binding? > Do you expect all channels to be in use simultaneously? This device has 10 sound channels, and using 3 kind of IPs. Then, data input/output needs DMA channel which needs specific ID to using. Above name has ID pair for it, so there is much combination. These specific ID is based on SoC, not board. Sound driver / DMAEngine can get specific ID from above. Indeed binding itself was not documented yet. I will add it ASAP. ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH 08/25] ARM: shmobile: r8a7790: sound enables Audio DMAC peri peri entry on DTSI @ 2014-11-18 0:03 ` Kuninori Morimoto 0 siblings, 0 replies; 776+ messages in thread From: Kuninori Morimoto @ 2014-11-18 0:03 UTC (permalink / raw) To: linux-arm-kernel Hi Arnd > > "mem_src6", "src6_mem", > > "mem_src7", "src7_mem", > > "mem_src8", "src8_mem", > > - "mem_src9", "src9_mem"; > > + "mem_src9", "src9_mem", > > + > > + "src0_ssiu0", "src1_ssiu0", "src2_ssiu0", "src3_ssiu0", "src4_ssiu0", > > + "src0_ssiu1", "src1_ssiu1", "src2_ssiu1", "src3_ssiu1", "src4_ssiu1", > > + "src0_ssiu2", "src1_ssiu2", "src2_ssiu2", "src3_ssiu2", "src4_ssiu2", > > > > I have to note that this looks rather weird and that none of the names > are documented in the binding. > > Can you explain why this device uses over 100 DMA channels and put the > exact naming rules into the binding? > Do you expect all channels to be in use simultaneously? This device has 10 sound channels, and using 3 kind of IPs. Then, data input/output needs DMA channel which needs specific ID to using. Above name has ID pair for it, so there is much combination. These specific ID is based on SoC, not board. Sound driver / DMAEngine can get specific ID from above. Indeed binding itself was not documented yet. I will add it ASAP. ^ permalink raw reply [flat|nested] 776+ messages in thread
* Re: [PATCH 08/25] ARM: shmobile: r8a7790: sound enables Audio DMAC peri peri entry on DTSI 2014-11-18 0:03 ` Kuninori Morimoto @ 2014-11-18 0:50 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-18 0:50 UTC (permalink / raw) To: linux-arm-kernel On Tue, Nov 18, 2014 at 12:03:50AM +0000, Kuninori Morimoto wrote: > > Hi Arnd > > > > "mem_src6", "src6_mem", > > > "mem_src7", "src7_mem", > > > "mem_src8", "src8_mem", > > > - "mem_src9", "src9_mem"; > > > + "mem_src9", "src9_mem", > > > + > > > + "src0_ssiu0", "src1_ssiu0", "src2_ssiu0", "src3_ssiu0", "src4_ssiu0", > > > + "src0_ssiu1", "src1_ssiu1", "src2_ssiu1", "src3_ssiu1", "src4_ssiu1", > > > + "src0_ssiu2", "src1_ssiu2", "src2_ssiu2", "src3_ssiu2", "src4_ssiu2", > > > > > > > I have to note that this looks rather weird and that none of the names > > are documented in the binding. > > > > Can you explain why this device uses over 100 DMA channels and put the > > exact naming rules into the binding? > > Do you expect all channels to be in use simultaneously? > > This device has 10 sound channels, and using 3 kind of IPs. > Then, data input/output needs DMA channel which needs specific ID to using. > Above name has ID pair for it, so there is much combination. > These specific ID is based on SoC, not board. > Sound driver / DMAEngine can get specific ID from above. > > Indeed binding itself was not documented yet. > I will add it ASAP. Hi Arnd, please let me know if a revised pull-request is in order. v3.18-rc6 is getting awfully close. ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH 08/25] ARM: shmobile: r8a7790: sound enables Audio DMAC peri peri entry on DTSI @ 2014-11-18 0:50 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-18 0:50 UTC (permalink / raw) To: linux-arm-kernel On Tue, Nov 18, 2014 at 12:03:50AM +0000, Kuninori Morimoto wrote: > > Hi Arnd > > > > "mem_src6", "src6_mem", > > > "mem_src7", "src7_mem", > > > "mem_src8", "src8_mem", > > > - "mem_src9", "src9_mem"; > > > + "mem_src9", "src9_mem", > > > + > > > + "src0_ssiu0", "src1_ssiu0", "src2_ssiu0", "src3_ssiu0", "src4_ssiu0", > > > + "src0_ssiu1", "src1_ssiu1", "src2_ssiu1", "src3_ssiu1", "src4_ssiu1", > > > + "src0_ssiu2", "src1_ssiu2", "src2_ssiu2", "src3_ssiu2", "src4_ssiu2", > > > > > > > I have to note that this looks rather weird and that none of the names > > are documented in the binding. > > > > Can you explain why this device uses over 100 DMA channels and put the > > exact naming rules into the binding? > > Do you expect all channels to be in use simultaneously? > > This device has 10 sound channels, and using 3 kind of IPs. > Then, data input/output needs DMA channel which needs specific ID to using. > Above name has ID pair for it, so there is much combination. > These specific ID is based on SoC, not board. > Sound driver / DMAEngine can get specific ID from above. > > Indeed binding itself was not documented yet. > I will add it ASAP. Hi Arnd, please let me know if a revised pull-request is in order. v3.18-rc6 is getting awfully close. ^ permalink raw reply [flat|nested] 776+ messages in thread
* Re: [PATCH 08/25] ARM: shmobile: r8a7790: sound enables Audio DMAC peri peri entry on DTSI 2014-11-18 0:50 ` Simon Horman @ 2014-11-18 12:56 ` Arnd Bergmann -1 siblings, 0 replies; 776+ messages in thread From: Arnd Bergmann @ 2014-11-18 12:56 UTC (permalink / raw) To: linux-arm-kernel On Tuesday 18 November 2014 09:50:40 Simon Horman wrote: > > Hi Arnd, > > please let me know if a revised pull-request is in order. > v3.18-rc6 is getting awfully close. Yes, I would prefer if you could leave out patches 6 to 9 for now. I assume we can work it out in time, and then you can send a follow-up with the new version. Arnd ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH 08/25] ARM: shmobile: r8a7790: sound enables Audio DMAC peri peri entry on DTSI @ 2014-11-18 12:56 ` Arnd Bergmann 0 siblings, 0 replies; 776+ messages in thread From: Arnd Bergmann @ 2014-11-18 12:56 UTC (permalink / raw) To: linux-arm-kernel On Tuesday 18 November 2014 09:50:40 Simon Horman wrote: > > Hi Arnd, > > please let me know if a revised pull-request is in order. > v3.18-rc6 is getting awfully close. Yes, I would prefer if you could leave out patches 6 to 9 for now. I assume we can work it out in time, and then you can send a follow-up with the new version. Arnd ^ permalink raw reply [flat|nested] 776+ messages in thread
* Re: [PATCH 08/25] ARM: shmobile: r8a7790: sound enables Audio DMAC peri peri entry on DTSI 2014-11-18 12:56 ` Arnd Bergmann @ 2014-11-19 0:10 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-19 0:10 UTC (permalink / raw) To: linux-arm-kernel On Tue, Nov 18, 2014 at 01:56:18PM +0100, Arnd Bergmann wrote: > On Tuesday 18 November 2014 09:50:40 Simon Horman wrote: > > > > Hi Arnd, > > > > please let me know if a revised pull-request is in order. > > v3.18-rc6 is getting awfully close. > > Yes, I would prefer if you could leave out patches 6 to 9 > for now. I assume we can work it out in time, and then you can > send a follow-up with the new version. Sure, will do. ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH 08/25] ARM: shmobile: r8a7790: sound enables Audio DMAC peri peri entry on DTSI @ 2014-11-19 0:10 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-19 0:10 UTC (permalink / raw) To: linux-arm-kernel On Tue, Nov 18, 2014 at 01:56:18PM +0100, Arnd Bergmann wrote: > On Tuesday 18 November 2014 09:50:40 Simon Horman wrote: > > > > Hi Arnd, > > > > please let me know if a revised pull-request is in order. > > v3.18-rc6 is getting awfully close. > > Yes, I would prefer if you could leave out patches 6 to 9 > for now. I assume we can work it out in time, and then you can > send a follow-up with the new version. Sure, will do. ^ permalink raw reply [flat|nested] 776+ messages in thread
* Re: [PATCH 08/25] ARM: shmobile: r8a7790: sound enables Audio DMAC peri peri entry on DTSI 2014-11-18 0:03 ` Kuninori Morimoto @ 2014-11-18 12:54 ` Arnd Bergmann -1 siblings, 0 replies; 776+ messages in thread From: Arnd Bergmann @ 2014-11-18 12:54 UTC (permalink / raw) To: linux-arm-kernel On Tuesday 18 November 2014 00:03:50 Kuninori Morimoto wrote: > Hi Arnd > > > > "mem_src6", "src6_mem", > > > "mem_src7", "src7_mem", > > > "mem_src8", "src8_mem", > > > - "mem_src9", "src9_mem"; > > > + "mem_src9", "src9_mem", > > > + > > > + "src0_ssiu0", "src1_ssiu0", "src2_ssiu0", "src3_ssiu0", "src4_ssiu0", > > > + "src0_ssiu1", "src1_ssiu1", "src2_ssiu1", "src3_ssiu1", "src4_ssiu1", > > > + "src0_ssiu2", "src1_ssiu2", "src2_ssiu2", "src3_ssiu2", "src4_ssiu2", > > > > > > > I have to note that this looks rather weird and that none of the names > > are documented in the binding. > > > > Can you explain why this device uses over 100 DMA channels and put the > > exact naming rules into the binding? > > Do you expect all channels to be in use simultaneously? > > This device has 10 sound channels, and using 3 kind of IPs. > Then, data input/output needs DMA channel which needs specific ID to using. > Above name has ID pair for it, so there is much combination. > These specific ID is based on SoC, not board. > Sound driver / DMAEngine can get specific ID from above. > > Indeed binding itself was not documented yet. > I will add it ASAP. It sounds like you have some device-to-device DMAs here, which isn't supported by the generic dmaengine binding at all, and I don't think the driver currently attempts to use them. Is that correct? Could you try to remove those from the binding and just leave the device-to-memory and memory-to-device channels there? If we ever want to support those, we probably have to extend the dmaengine binding first, and then the driver binding would also look different. Arnd ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH 08/25] ARM: shmobile: r8a7790: sound enables Audio DMAC peri peri entry on DTSI @ 2014-11-18 12:54 ` Arnd Bergmann 0 siblings, 0 replies; 776+ messages in thread From: Arnd Bergmann @ 2014-11-18 12:54 UTC (permalink / raw) To: linux-arm-kernel On Tuesday 18 November 2014 00:03:50 Kuninori Morimoto wrote: > Hi Arnd > > > > "mem_src6", "src6_mem", > > > "mem_src7", "src7_mem", > > > "mem_src8", "src8_mem", > > > - "mem_src9", "src9_mem"; > > > + "mem_src9", "src9_mem", > > > + > > > + "src0_ssiu0", "src1_ssiu0", "src2_ssiu0", "src3_ssiu0", "src4_ssiu0", > > > + "src0_ssiu1", "src1_ssiu1", "src2_ssiu1", "src3_ssiu1", "src4_ssiu1", > > > + "src0_ssiu2", "src1_ssiu2", "src2_ssiu2", "src3_ssiu2", "src4_ssiu2", > > > > > > > I have to note that this looks rather weird and that none of the names > > are documented in the binding. > > > > Can you explain why this device uses over 100 DMA channels and put the > > exact naming rules into the binding? > > Do you expect all channels to be in use simultaneously? > > This device has 10 sound channels, and using 3 kind of IPs. > Then, data input/output needs DMA channel which needs specific ID to using. > Above name has ID pair for it, so there is much combination. > These specific ID is based on SoC, not board. > Sound driver / DMAEngine can get specific ID from above. > > Indeed binding itself was not documented yet. > I will add it ASAP. It sounds like you have some device-to-device DMAs here, which isn't supported by the generic dmaengine binding at all, and I don't think the driver currently attempts to use them. Is that correct? Could you try to remove those from the binding and just leave the device-to-memory and memory-to-device channels there? If we ever want to support those, we probably have to extend the dmaengine binding first, and then the driver binding would also look different. Arnd ^ permalink raw reply [flat|nested] 776+ messages in thread
* Re: [PATCH 08/25] ARM: shmobile: r8a7790: sound enables Audio DMAC peri peri entry on DTSI 2014-11-18 12:54 ` Arnd Bergmann @ 2014-11-19 0:16 ` Kuninori Morimoto -1 siblings, 0 replies; 776+ messages in thread From: Kuninori Morimoto @ 2014-11-19 0:16 UTC (permalink / raw) To: linux-arm-kernel Hi Arnd > > This device has 10 sound channels, and using 3 kind of IPs. > > Then, data input/output needs DMA channel which needs specific ID to using. > > Above name has ID pair for it, so there is much combination. > > These specific ID is based on SoC, not board. > > Sound driver / DMAEngine can get specific ID from above. > > > > Indeed binding itself was not documented yet. > > I will add it ASAP. > > It sounds like you have some device-to-device DMAs here, which isn't > supported by the generic dmaengine binding at all, and I don't think > the driver currently attempts to use them. > > Is that correct? Could you try to remove those from the binding and > just leave the device-to-memory and memory-to-device channels there? > If we ever want to support those, we probably have to extend the > dmaengine binding first, and then the driver binding would also look > different. It depends sound data path. basically, sound data goes memory-to-device or device-to-memory. but, it needs special IP if you want to use special effect. In such case, sound data path will be memory-to-device-to-device, or device-to-device-to-memory. This path based on board, and, our reference board is using above path. ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH 08/25] ARM: shmobile: r8a7790: sound enables Audio DMAC peri peri entry on DTSI @ 2014-11-19 0:16 ` Kuninori Morimoto 0 siblings, 0 replies; 776+ messages in thread From: Kuninori Morimoto @ 2014-11-19 0:16 UTC (permalink / raw) To: linux-arm-kernel Hi Arnd > > This device has 10 sound channels, and using 3 kind of IPs. > > Then, data input/output needs DMA channel which needs specific ID to using. > > Above name has ID pair for it, so there is much combination. > > These specific ID is based on SoC, not board. > > Sound driver / DMAEngine can get specific ID from above. > > > > Indeed binding itself was not documented yet. > > I will add it ASAP. > > It sounds like you have some device-to-device DMAs here, which isn't > supported by the generic dmaengine binding at all, and I don't think > the driver currently attempts to use them. > > Is that correct? Could you try to remove those from the binding and > just leave the device-to-memory and memory-to-device channels there? > If we ever want to support those, we probably have to extend the > dmaengine binding first, and then the driver binding would also look > different. It depends sound data path. basically, sound data goes memory-to-device or device-to-memory. but, it needs special IP if you want to use special effect. In such case, sound data path will be memory-to-device-to-device, or device-to-device-to-memory. This path based on board, and, our reference board is using above path. ^ permalink raw reply [flat|nested] 776+ messages in thread
* Re: [PATCH 08/25] ARM: shmobile: r8a7790: sound enables Audio DMAC peri peri entry on DTSI 2014-11-19 0:16 ` Kuninori Morimoto @ 2014-11-19 8:05 ` Kuninori Morimoto -1 siblings, 0 replies; 776+ messages in thread From: Kuninori Morimoto @ 2014-11-19 8:05 UTC (permalink / raw) To: linux-arm-kernel Hi Arnd, again > > > This device has 10 sound channels, and using 3 kind of IPs. > > > Then, data input/output needs DMA channel which needs specific ID to using. > > > Above name has ID pair for it, so there is much combination. > > > These specific ID is based on SoC, not board. > > > Sound driver / DMAEngine can get specific ID from above. > > > > > > Indeed binding itself was not documented yet. > > > I will add it ASAP. > > > > It sounds like you have some device-to-device DMAs here, which isn't > > supported by the generic dmaengine binding at all, and I don't think > > the driver currently attempts to use them. > > > > Is that correct? Could you try to remove those from the binding and > > just leave the device-to-memory and memory-to-device channels there? > > If we ever want to support those, we probably have to extend the > > dmaengine binding first, and then the driver binding would also look > > different. > > It depends sound data path. basically, sound data goes memory-to-device > or device-to-memory. but, it needs special IP if you want to use special effect. > In such case, sound data path will be memory-to-device-to-device, or device-to-device-to-memory. > This path based on board, and, our reference board is using above path. memory-to-device-to-device case, it is indeed using memory-to-device and device-to-device. But, DMAEngine point of view, above device-to-device interface/style is same as memory-to-device. memory-to-device case needs ID + "memory address" + "register address". device-to-device case needs ID + "register address" + "register address". It is implemented in ${LINUX}/drivers/dma/sh/rcar-audmapp.c, and used from ${LINUX}/sound/soc/sh/rcar/core.c with generic dmaengine interface/binding. Best regards --- Kuninori Morimoto ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH 08/25] ARM: shmobile: r8a7790: sound enables Audio DMAC peri peri entry on DTSI @ 2014-11-19 8:05 ` Kuninori Morimoto 0 siblings, 0 replies; 776+ messages in thread From: Kuninori Morimoto @ 2014-11-19 8:05 UTC (permalink / raw) To: linux-arm-kernel Hi Arnd, again > > > This device has 10 sound channels, and using 3 kind of IPs. > > > Then, data input/output needs DMA channel which needs specific ID to using. > > > Above name has ID pair for it, so there is much combination. > > > These specific ID is based on SoC, not board. > > > Sound driver / DMAEngine can get specific ID from above. > > > > > > Indeed binding itself was not documented yet. > > > I will add it ASAP. > > > > It sounds like you have some device-to-device DMAs here, which isn't > > supported by the generic dmaengine binding at all, and I don't think > > the driver currently attempts to use them. > > > > Is that correct? Could you try to remove those from the binding and > > just leave the device-to-memory and memory-to-device channels there? > > If we ever want to support those, we probably have to extend the > > dmaengine binding first, and then the driver binding would also look > > different. > > It depends sound data path. basically, sound data goes memory-to-device > or device-to-memory. but, it needs special IP if you want to use special effect. > In such case, sound data path will be memory-to-device-to-device, or device-to-device-to-memory. > This path based on board, and, our reference board is using above path. memory-to-device-to-device case, it is indeed using memory-to-device and device-to-device. But, DMAEngine point of view, above device-to-device interface/style is same as memory-to-device. memory-to-device case needs ID + "memory address" + "register address". device-to-device case needs ID + "register address" + "register address". It is implemented in ${LINUX}/drivers/dma/sh/rcar-audmapp.c, and used from ${LINUX}/sound/soc/sh/rcar/core.c with generic dmaengine interface/binding. Best regards --- Kuninori Morimoto ^ permalink raw reply [flat|nested] 776+ messages in thread
* Re: [PATCH 08/25] ARM: shmobile: r8a7790: sound enables Audio DMAC peri peri entry on DTSI 2014-11-18 12:54 ` Arnd Bergmann @ 2014-11-25 0:59 ` Kuninori Morimoto -1 siblings, 0 replies; 776+ messages in thread From: Kuninori Morimoto @ 2014-11-25 0:59 UTC (permalink / raw) To: linux-arm-kernel Hi Arnd > > > > "mem_src6", "src6_mem", > > > > "mem_src7", "src7_mem", > > > > "mem_src8", "src8_mem", > > > > - "mem_src9", "src9_mem"; > > > > + "mem_src9", "src9_mem", > > > > + > > > > + "src0_ssiu0", "src1_ssiu0", "src2_ssiu0", "src3_ssiu0", "src4_ssiu0", > > > > + "src0_ssiu1", "src1_ssiu1", "src2_ssiu1", "src3_ssiu1", "src4_ssiu1", > > > > + "src0_ssiu2", "src1_ssiu2", "src2_ssiu2", "src3_ssiu2", "src4_ssiu2", (snip) > It sounds like you have some device-to-device DMAs here, which isn't > supported by the generic dmaengine binding at all, and I don't think > the driver currently attempts to use them. > > Is that correct? Could you try to remove those from the binding and > just leave the device-to-memory and memory-to-device channels there? > If we ever want to support those, we probably have to extend the > dmaengine binding first, and then the driver binding would also look > different. Indeed it is needed for device-to-device DMA transfer, but, it is using generic dmaengine style. (see linux/sound/soc/sh/rcar/core.c, linux/drivers/dma/sh/rcar-audmapp.c) If I exchange dmaengine binding style for device-to-device, I need to change both dmaengine driver and sound driver. But, I want to know why I should do it ? Indeed it needs many DMA binding entries now, but, it is using normal dmaengine bindings. ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH 08/25] ARM: shmobile: r8a7790: sound enables Audio DMAC peri peri entry on DTSI @ 2014-11-25 0:59 ` Kuninori Morimoto 0 siblings, 0 replies; 776+ messages in thread From: Kuninori Morimoto @ 2014-11-25 0:59 UTC (permalink / raw) To: linux-arm-kernel Hi Arnd > > > > "mem_src6", "src6_mem", > > > > "mem_src7", "src7_mem", > > > > "mem_src8", "src8_mem", > > > > - "mem_src9", "src9_mem"; > > > > + "mem_src9", "src9_mem", > > > > + > > > > + "src0_ssiu0", "src1_ssiu0", "src2_ssiu0", "src3_ssiu0", "src4_ssiu0", > > > > + "src0_ssiu1", "src1_ssiu1", "src2_ssiu1", "src3_ssiu1", "src4_ssiu1", > > > > + "src0_ssiu2", "src1_ssiu2", "src2_ssiu2", "src3_ssiu2", "src4_ssiu2", (snip) > It sounds like you have some device-to-device DMAs here, which isn't > supported by the generic dmaengine binding at all, and I don't think > the driver currently attempts to use them. > > Is that correct? Could you try to remove those from the binding and > just leave the device-to-memory and memory-to-device channels there? > If we ever want to support those, we probably have to extend the > dmaengine binding first, and then the driver binding would also look > different. Indeed it is needed for device-to-device DMA transfer, but, it is using generic dmaengine style. (see linux/sound/soc/sh/rcar/core.c, linux/drivers/dma/sh/rcar-audmapp.c) If I exchange dmaengine binding style for device-to-device, I need to change both dmaengine driver and sound driver. But, I want to know why I should do it ? Indeed it needs many DMA binding entries now, but, it is using normal dmaengine bindings. ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH 09/25] ARM: shmobile: r8a7791: sound enables Audio DMAC peri peri entry on DTSI 2014-11-13 1:20 ` Simon Horman @ 2014-11-13 1:20 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-13 1:20 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791.dtsi | 92 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 90 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/r8a7791.dtsi b/arch/arm/boot/dts/r8a7791.dtsi index e856afa..613970f 100644 --- a/arch/arm/boot/dts/r8a7791.dtsi +++ b/arch/arm/boot/dts/r8a7791.dtsi @@ -1419,7 +1419,51 @@ <&audma0 0x91>, <&audma1 0xb4>, <&audma0 0x93>, <&audma1 0xb6>, <&audma0 0x95>, <&audma1 0xb8>, - <&audma0 0x97>, <&audma1 0xba>; + <&audma0 0x97>, <&audma1 0xba>, + + <&audmapp 0x2d00>, <&audmapp 0x2e00>, <&audmapp 0x2f00>, <&audmapp 0x3000>, <&audmapp 0x3100>, + <&audmapp 0x2d04>, <&audmapp 0x2e04>, <&audmapp 0x2f04>, <&audmapp 0x3004>, <&audmapp 0x3104>, + <&audmapp 0x2d08>, <&audmapp 0x2e08>, <&audmapp 0x2f08>, <&audmapp 0x3008>, <&audmapp 0x3108>, + <&audmapp 0x2d0c>, <&audmapp 0x2e0c>, <&audmapp 0x2f0c>, <&audmapp 0x300c>, <&audmapp 0x310c>, + <&audmapp 0x2d0d>, <&audmapp 0x2e0d>, <&audmapp 0x2f0d>, <&audmapp 0x300d>, <&audmapp 0x310d>, + <&audmapp 0x2d0e>, <&audmapp 0x2e0e>, <&audmapp 0x2f0e>, <&audmapp 0x300e>, <&audmapp 0x310e>, + <&audmapp 0x2d0f>, <&audmapp 0x2e0f>, <&audmapp 0x2f0f>, <&audmapp 0x300f>, <&audmapp 0x310f>, + <&audmapp 0x2d10>, <&audmapp 0x2e10>, <&audmapp 0x2f10>, <&audmapp 0x3010>, <&audmapp 0x3110>, + <&audmapp 0x2d11>, <&audmapp 0x2e11>, <&audmapp 0x2f11>, <&audmapp 0x3011>, <&audmapp 0x3111>, + <&audmapp 0x2d12>, <&audmapp 0x2e12>, <&audmapp 0x2f12>, <&audmapp 0x3012>, <&audmapp 0x3112>, + + <&audmapp 0x3200>, <&audmapp 0x3300>, <&audmapp 0x3400>, <&audmapp 0x3500>, <&audmapp 0x3600>, + <&audmapp 0x3204>, <&audmapp 0x3304>, <&audmapp 0x3404>, <&audmapp 0x3504>, <&audmapp 0x3604>, + <&audmapp 0x3208>, <&audmapp 0x3308>, <&audmapp 0x3408>, <&audmapp 0x3508>, <&audmapp 0x3608>, + <&audmapp 0x320c>, <&audmapp 0x330c>, <&audmapp 0x340c>, <&audmapp 0x350c>, <&audmapp 0x360c>, + <&audmapp 0x320d>, <&audmapp 0x330d>, <&audmapp 0x340d>, <&audmapp 0x350d>, <&audmapp 0x360d>, + <&audmapp 0x320e>, <&audmapp 0x330e>, <&audmapp 0x340e>, <&audmapp 0x350e>, <&audmapp 0x360e>, + <&audmapp 0x320f>, <&audmapp 0x330f>, <&audmapp 0x340f>, <&audmapp 0x350f>, <&audmapp 0x360f>, + <&audmapp 0x3210>, <&audmapp 0x3310>, <&audmapp 0x3410>, <&audmapp 0x3510>, <&audmapp 0x3610>, + <&audmapp 0x3211>, <&audmapp 0x3311>, <&audmapp 0x3411>, <&audmapp 0x3511>, <&audmapp 0x3611>, + <&audmapp 0x3212>, <&audmapp 0x3312>, <&audmapp 0x3412>, <&audmapp 0x3512>, <&audmapp 0x3612>, + + <&audmapp 0x002d>, <&audmapp 0x002e>, <&audmapp 0x002f>, <&audmapp 0x0030>, <&audmapp 0x0031>, + <&audmapp 0x042d>, <&audmapp 0x042e>, <&audmapp 0x042f>, <&audmapp 0x0430>, <&audmapp 0x0431>, + <&audmapp 0x082d>, <&audmapp 0x082e>, <&audmapp 0x082f>, <&audmapp 0x0830>, <&audmapp 0x0831>, + <&audmapp 0x0c2d>, <&audmapp 0x0c2e>, <&audmapp 0x0c2f>, <&audmapp 0x0c30>, <&audmapp 0x0c31>, + <&audmapp 0x0d2d>, <&audmapp 0x0d2e>, <&audmapp 0x0d2f>, <&audmapp 0x0d30>, <&audmapp 0x0d31>, + <&audmapp 0x0e2d>, <&audmapp 0x0e2e>, <&audmapp 0x0e2f>, <&audmapp 0x0e30>, <&audmapp 0x0e31>, + <&audmapp 0x0f2d>, <&audmapp 0x0f2e>, <&audmapp 0x0f2f>, <&audmapp 0x0f30>, <&audmapp 0x0f31>, + <&audmapp 0x102d>, <&audmapp 0x102e>, <&audmapp 0x102f>, <&audmapp 0x1030>, <&audmapp 0x1031>, + <&audmapp 0x112d>, <&audmapp 0x112e>, <&audmapp 0x112f>, <&audmapp 0x1130>, <&audmapp 0x1131>, + <&audmapp 0x122d>, <&audmapp 0x122e>, <&audmapp 0x122f>, <&audmapp 0x1230>, <&audmapp 0x1231>, + + <&audmapp 0x0032>, <&audmapp 0x0033>, <&audmapp 0x0034>, <&audmapp 0x0035>, <&audmapp 0x0036>, + <&audmapp 0x0432>, <&audmapp 0x0433>, <&audmapp 0x0434>, <&audmapp 0x0435>, <&audmapp 0x0436>, + <&audmapp 0x0832>, <&audmapp 0x0833>, <&audmapp 0x0834>, <&audmapp 0x0835>, <&audmapp 0x0836>, + <&audmapp 0x0c32>, <&audmapp 0x0c33>, <&audmapp 0x0c34>, <&audmapp 0x0c35>, <&audmapp 0x0c36>, + <&audmapp 0x0d32>, <&audmapp 0x0d33>, <&audmapp 0x0d34>, <&audmapp 0x0d35>, <&audmapp 0x0d36>, + <&audmapp 0x0e32>, <&audmapp 0x0e33>, <&audmapp 0x0e34>, <&audmapp 0x0e35>, <&audmapp 0x0e36>, + <&audmapp 0x0f32>, <&audmapp 0x0f33>, <&audmapp 0x0f34>, <&audmapp 0x0f35>, <&audmapp 0x0f36>, + <&audmapp 0x1032>, <&audmapp 0x1033>, <&audmapp 0x1034>, <&audmapp 0x1035>, <&audmapp 0x1036>, + <&audmapp 0x1132>, <&audmapp 0x1133>, <&audmapp 0x1134>, <&audmapp 0x1135>, <&audmapp 0x1136>, + <&audmapp 0x1232>, <&audmapp 0x1233>, <&audmapp 0x1234>, <&audmapp 0x1235>, <&audmapp 0x1236>; dma-names = "mem_ssi0", "ssi0_mem", "mem_ssiu0", "ssiu0_mem", "mem_ssi1", "ssi1_mem", "mem_ssiu1", "ssiu1_mem", @@ -1441,7 +1485,51 @@ "mem_src6", "src6_mem", "mem_src7", "src7_mem", "mem_src8", "src8_mem", - "mem_src9", "src9_mem"; + "mem_src9", "src9_mem", + + "src0_ssiu0", "src1_ssiu0", "src2_ssiu0", "src3_ssiu0", "src4_ssiu0", + "src0_ssiu1", "src1_ssiu1", "src2_ssiu1", "src3_ssiu1", "src4_ssiu1", + "src0_ssiu2", "src1_ssiu2", "src2_ssiu2", "src3_ssiu2", "src4_ssiu2", + "src0_ssiu3", "src1_ssiu3", "src2_ssiu3", "src3_ssiu3", "src4_ssiu3", + "src0_ssiu4", "src1_ssiu4", "src2_ssiu4", "src3_ssiu4", "src4_ssiu4", + "src0_ssiu5", "src1_ssiu5", "src2_ssiu5", "src3_ssiu5", "src4_ssiu5", + "src0_ssiu6", "src1_ssiu6", "src2_ssiu6", "src3_ssiu6", "src4_ssiu6", + "src0_ssiu7", "src1_ssiu7", "src2_ssiu7", "src3_ssiu7", "src4_ssiu7", + "src0_ssiu8", "src1_ssiu8", "src2_ssiu8", "src3_ssiu8", "src4_ssiu8", + "src0_ssiu9", "src1_ssiu9", "src2_ssiu9", "src3_ssiu9", "src4_ssiu9", + + "src5_ssiu0", "src6_ssiu0", "src7_ssiu0", "src8_ssiu0", "src9_ssiu0", + "src5_ssiu1", "src6_ssiu1", "src7_ssiu1", "src8_ssiu1", "src9_ssiu1", + "src5_ssiu2", "src6_ssiu2", "src7_ssiu2", "src8_ssiu2", "src9_ssiu2", + "src5_ssiu3", "src6_ssiu3", "src7_ssiu3", "src8_ssiu3", "src9_ssiu3", + "src5_ssiu4", "src6_ssiu4", "src7_ssiu4", "src8_ssiu4", "src9_ssiu4", + "src5_ssiu5", "src6_ssiu5", "src7_ssiu5", "src8_ssiu5", "src9_ssiu5", + "src5_ssiu6", "src6_ssiu6", "src7_ssiu6", "src8_ssiu6", "src9_ssiu6", + "src5_ssiu7", "src6_ssiu7", "src7_ssiu7", "src8_ssiu7", "src9_ssiu7", + "src5_ssiu8", "src6_ssiu8", "src7_ssiu8", "src8_ssiu8", "src9_ssiu8", + "src5_ssiu9", "src6_ssiu9", "src7_ssiu9", "src8_ssiu9", "src9_ssiu9", + + "ssiu0_src0", "ssiu0_src1", "ssiu0_src2", "ssiu0_src3", "ssiu0_src4", + "ssiu1_src0", "ssiu1_src1", "ssiu1_src2", "ssiu1_src3", "ssiu1_src4", + "ssiu2_src0", "ssiu2_src1", "ssiu2_src2", "ssiu2_src3", "ssiu2_src4", + "ssiu3_src0", "ssiu3_src1", "ssiu3_src2", "ssiu3_src3", "ssiu3_src4", + "ssiu4_src0", "ssiu4_src1", "ssiu4_src2", "ssiu4_src3", "ssiu4_src4", + "ssiu5_src0", "ssiu5_src1", "ssiu5_src2", "ssiu5_src3", "ssiu5_src4", + "ssiu6_src0", "ssiu6_src1", "ssiu6_src2", "ssiu6_src3", "ssiu6_src4", + "ssiu7_src0", "ssiu7_src1", "ssiu7_src2", "ssiu7_src3", "ssiu7_src4", + "ssiu8_src0", "ssiu8_src1", "ssiu8_src2", "ssiu8_src3", "ssiu8_src4", + "ssiu9_src0", "ssiu9_src1", "ssiu9_src2", "ssiu9_src3", "ssiu9_src4", + + "ssiu0_src5", "ssiu0_src6", "ssiu0_src7", "ssiu0_src8", "ssiu0_src9", + "ssiu1_src5", "ssiu1_src6", "ssiu1_src7", "ssiu1_src8", "ssiu1_src9", + "ssiu2_src5", "ssiu2_src6", "ssiu2_src7", "ssiu2_src8", "ssiu2_src9", + "ssiu3_src5", "ssiu3_src6", "ssiu3_src7", "ssiu3_src8", "ssiu3_src9", + "ssiu4_src5", "ssiu4_src6", "ssiu4_src7", "ssiu4_src8", "ssiu4_src9", + "ssiu5_src5", "ssiu5_src6", "ssiu5_src7", "ssiu5_src8", "ssiu5_src9", + "ssiu6_src5", "ssiu6_src6", "ssiu6_src7", "ssiu6_src8", "ssiu6_src9", + "ssiu7_src5", "ssiu7_src6", "ssiu7_src7", "ssiu7_src8", "ssiu7_src9", + "ssiu8_src5", "ssiu8_src6", "ssiu8_src7", "ssiu8_src8", "ssiu8_src9", + "ssiu9_src5", "ssiu9_src6", "ssiu9_src7", "ssiu9_src8", "ssiu9_src9"; status = "disabled"; -- 2.1.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 09/25] ARM: shmobile: r8a7791: sound enables Audio DMAC peri peri entry on DTSI @ 2014-11-13 1:20 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-13 1:20 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791.dtsi | 92 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 90 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/r8a7791.dtsi b/arch/arm/boot/dts/r8a7791.dtsi index e856afa..613970f 100644 --- a/arch/arm/boot/dts/r8a7791.dtsi +++ b/arch/arm/boot/dts/r8a7791.dtsi @@ -1419,7 +1419,51 @@ <&audma0 0x91>, <&audma1 0xb4>, <&audma0 0x93>, <&audma1 0xb6>, <&audma0 0x95>, <&audma1 0xb8>, - <&audma0 0x97>, <&audma1 0xba>; + <&audma0 0x97>, <&audma1 0xba>, + + <&audmapp 0x2d00>, <&audmapp 0x2e00>, <&audmapp 0x2f00>, <&audmapp 0x3000>, <&audmapp 0x3100>, + <&audmapp 0x2d04>, <&audmapp 0x2e04>, <&audmapp 0x2f04>, <&audmapp 0x3004>, <&audmapp 0x3104>, + <&audmapp 0x2d08>, <&audmapp 0x2e08>, <&audmapp 0x2f08>, <&audmapp 0x3008>, <&audmapp 0x3108>, + <&audmapp 0x2d0c>, <&audmapp 0x2e0c>, <&audmapp 0x2f0c>, <&audmapp 0x300c>, <&audmapp 0x310c>, + <&audmapp 0x2d0d>, <&audmapp 0x2e0d>, <&audmapp 0x2f0d>, <&audmapp 0x300d>, <&audmapp 0x310d>, + <&audmapp 0x2d0e>, <&audmapp 0x2e0e>, <&audmapp 0x2f0e>, <&audmapp 0x300e>, <&audmapp 0x310e>, + <&audmapp 0x2d0f>, <&audmapp 0x2e0f>, <&audmapp 0x2f0f>, <&audmapp 0x300f>, <&audmapp 0x310f>, + <&audmapp 0x2d10>, <&audmapp 0x2e10>, <&audmapp 0x2f10>, <&audmapp 0x3010>, <&audmapp 0x3110>, + <&audmapp 0x2d11>, <&audmapp 0x2e11>, <&audmapp 0x2f11>, <&audmapp 0x3011>, <&audmapp 0x3111>, + <&audmapp 0x2d12>, <&audmapp 0x2e12>, <&audmapp 0x2f12>, <&audmapp 0x3012>, <&audmapp 0x3112>, + + <&audmapp 0x3200>, <&audmapp 0x3300>, <&audmapp 0x3400>, <&audmapp 0x3500>, <&audmapp 0x3600>, + <&audmapp 0x3204>, <&audmapp 0x3304>, <&audmapp 0x3404>, <&audmapp 0x3504>, <&audmapp 0x3604>, + <&audmapp 0x3208>, <&audmapp 0x3308>, <&audmapp 0x3408>, <&audmapp 0x3508>, <&audmapp 0x3608>, + <&audmapp 0x320c>, <&audmapp 0x330c>, <&audmapp 0x340c>, <&audmapp 0x350c>, <&audmapp 0x360c>, + <&audmapp 0x320d>, <&audmapp 0x330d>, <&audmapp 0x340d>, <&audmapp 0x350d>, <&audmapp 0x360d>, + <&audmapp 0x320e>, <&audmapp 0x330e>, <&audmapp 0x340e>, <&audmapp 0x350e>, <&audmapp 0x360e>, + <&audmapp 0x320f>, <&audmapp 0x330f>, <&audmapp 0x340f>, <&audmapp 0x350f>, <&audmapp 0x360f>, + <&audmapp 0x3210>, <&audmapp 0x3310>, <&audmapp 0x3410>, <&audmapp 0x3510>, <&audmapp 0x3610>, + <&audmapp 0x3211>, <&audmapp 0x3311>, <&audmapp 0x3411>, <&audmapp 0x3511>, <&audmapp 0x3611>, + <&audmapp 0x3212>, <&audmapp 0x3312>, <&audmapp 0x3412>, <&audmapp 0x3512>, <&audmapp 0x3612>, + + <&audmapp 0x002d>, <&audmapp 0x002e>, <&audmapp 0x002f>, <&audmapp 0x0030>, <&audmapp 0x0031>, + <&audmapp 0x042d>, <&audmapp 0x042e>, <&audmapp 0x042f>, <&audmapp 0x0430>, <&audmapp 0x0431>, + <&audmapp 0x082d>, <&audmapp 0x082e>, <&audmapp 0x082f>, <&audmapp 0x0830>, <&audmapp 0x0831>, + <&audmapp 0x0c2d>, <&audmapp 0x0c2e>, <&audmapp 0x0c2f>, <&audmapp 0x0c30>, <&audmapp 0x0c31>, + <&audmapp 0x0d2d>, <&audmapp 0x0d2e>, <&audmapp 0x0d2f>, <&audmapp 0x0d30>, <&audmapp 0x0d31>, + <&audmapp 0x0e2d>, <&audmapp 0x0e2e>, <&audmapp 0x0e2f>, <&audmapp 0x0e30>, <&audmapp 0x0e31>, + <&audmapp 0x0f2d>, <&audmapp 0x0f2e>, <&audmapp 0x0f2f>, <&audmapp 0x0f30>, <&audmapp 0x0f31>, + <&audmapp 0x102d>, <&audmapp 0x102e>, <&audmapp 0x102f>, <&audmapp 0x1030>, <&audmapp 0x1031>, + <&audmapp 0x112d>, <&audmapp 0x112e>, <&audmapp 0x112f>, <&audmapp 0x1130>, <&audmapp 0x1131>, + <&audmapp 0x122d>, <&audmapp 0x122e>, <&audmapp 0x122f>, <&audmapp 0x1230>, <&audmapp 0x1231>, + + <&audmapp 0x0032>, <&audmapp 0x0033>, <&audmapp 0x0034>, <&audmapp 0x0035>, <&audmapp 0x0036>, + <&audmapp 0x0432>, <&audmapp 0x0433>, <&audmapp 0x0434>, <&audmapp 0x0435>, <&audmapp 0x0436>, + <&audmapp 0x0832>, <&audmapp 0x0833>, <&audmapp 0x0834>, <&audmapp 0x0835>, <&audmapp 0x0836>, + <&audmapp 0x0c32>, <&audmapp 0x0c33>, <&audmapp 0x0c34>, <&audmapp 0x0c35>, <&audmapp 0x0c36>, + <&audmapp 0x0d32>, <&audmapp 0x0d33>, <&audmapp 0x0d34>, <&audmapp 0x0d35>, <&audmapp 0x0d36>, + <&audmapp 0x0e32>, <&audmapp 0x0e33>, <&audmapp 0x0e34>, <&audmapp 0x0e35>, <&audmapp 0x0e36>, + <&audmapp 0x0f32>, <&audmapp 0x0f33>, <&audmapp 0x0f34>, <&audmapp 0x0f35>, <&audmapp 0x0f36>, + <&audmapp 0x1032>, <&audmapp 0x1033>, <&audmapp 0x1034>, <&audmapp 0x1035>, <&audmapp 0x1036>, + <&audmapp 0x1132>, <&audmapp 0x1133>, <&audmapp 0x1134>, <&audmapp 0x1135>, <&audmapp 0x1136>, + <&audmapp 0x1232>, <&audmapp 0x1233>, <&audmapp 0x1234>, <&audmapp 0x1235>, <&audmapp 0x1236>; dma-names = "mem_ssi0", "ssi0_mem", "mem_ssiu0", "ssiu0_mem", "mem_ssi1", "ssi1_mem", "mem_ssiu1", "ssiu1_mem", @@ -1441,7 +1485,51 @@ "mem_src6", "src6_mem", "mem_src7", "src7_mem", "mem_src8", "src8_mem", - "mem_src9", "src9_mem"; + "mem_src9", "src9_mem", + + "src0_ssiu0", "src1_ssiu0", "src2_ssiu0", "src3_ssiu0", "src4_ssiu0", + "src0_ssiu1", "src1_ssiu1", "src2_ssiu1", "src3_ssiu1", "src4_ssiu1", + "src0_ssiu2", "src1_ssiu2", "src2_ssiu2", "src3_ssiu2", "src4_ssiu2", + "src0_ssiu3", "src1_ssiu3", "src2_ssiu3", "src3_ssiu3", "src4_ssiu3", + "src0_ssiu4", "src1_ssiu4", "src2_ssiu4", "src3_ssiu4", "src4_ssiu4", + "src0_ssiu5", "src1_ssiu5", "src2_ssiu5", "src3_ssiu5", "src4_ssiu5", + "src0_ssiu6", "src1_ssiu6", "src2_ssiu6", "src3_ssiu6", "src4_ssiu6", + "src0_ssiu7", "src1_ssiu7", "src2_ssiu7", "src3_ssiu7", "src4_ssiu7", + "src0_ssiu8", "src1_ssiu8", "src2_ssiu8", "src3_ssiu8", "src4_ssiu8", + "src0_ssiu9", "src1_ssiu9", "src2_ssiu9", "src3_ssiu9", "src4_ssiu9", + + "src5_ssiu0", "src6_ssiu0", "src7_ssiu0", "src8_ssiu0", "src9_ssiu0", + "src5_ssiu1", "src6_ssiu1", "src7_ssiu1", "src8_ssiu1", "src9_ssiu1", + "src5_ssiu2", "src6_ssiu2", "src7_ssiu2", "src8_ssiu2", "src9_ssiu2", + "src5_ssiu3", "src6_ssiu3", "src7_ssiu3", "src8_ssiu3", "src9_ssiu3", + "src5_ssiu4", "src6_ssiu4", "src7_ssiu4", "src8_ssiu4", "src9_ssiu4", + "src5_ssiu5", "src6_ssiu5", "src7_ssiu5", "src8_ssiu5", "src9_ssiu5", + "src5_ssiu6", "src6_ssiu6", "src7_ssiu6", "src8_ssiu6", "src9_ssiu6", + "src5_ssiu7", "src6_ssiu7", "src7_ssiu7", "src8_ssiu7", "src9_ssiu7", + "src5_ssiu8", "src6_ssiu8", "src7_ssiu8", "src8_ssiu8", "src9_ssiu8", + "src5_ssiu9", "src6_ssiu9", "src7_ssiu9", "src8_ssiu9", "src9_ssiu9", + + "ssiu0_src0", "ssiu0_src1", "ssiu0_src2", "ssiu0_src3", "ssiu0_src4", + "ssiu1_src0", "ssiu1_src1", "ssiu1_src2", "ssiu1_src3", "ssiu1_src4", + "ssiu2_src0", "ssiu2_src1", "ssiu2_src2", "ssiu2_src3", "ssiu2_src4", + "ssiu3_src0", "ssiu3_src1", "ssiu3_src2", "ssiu3_src3", "ssiu3_src4", + "ssiu4_src0", "ssiu4_src1", "ssiu4_src2", "ssiu4_src3", "ssiu4_src4", + "ssiu5_src0", "ssiu5_src1", "ssiu5_src2", "ssiu5_src3", "ssiu5_src4", + "ssiu6_src0", "ssiu6_src1", "ssiu6_src2", "ssiu6_src3", "ssiu6_src4", + "ssiu7_src0", "ssiu7_src1", "ssiu7_src2", "ssiu7_src3", "ssiu7_src4", + "ssiu8_src0", "ssiu8_src1", "ssiu8_src2", "ssiu8_src3", "ssiu8_src4", + "ssiu9_src0", "ssiu9_src1", "ssiu9_src2", "ssiu9_src3", "ssiu9_src4", + + "ssiu0_src5", "ssiu0_src6", "ssiu0_src7", "ssiu0_src8", "ssiu0_src9", + "ssiu1_src5", "ssiu1_src6", "ssiu1_src7", "ssiu1_src8", "ssiu1_src9", + "ssiu2_src5", "ssiu2_src6", "ssiu2_src7", "ssiu2_src8", "ssiu2_src9", + "ssiu3_src5", "ssiu3_src6", "ssiu3_src7", "ssiu3_src8", "ssiu3_src9", + "ssiu4_src5", "ssiu4_src6", "ssiu4_src7", "ssiu4_src8", "ssiu4_src9", + "ssiu5_src5", "ssiu5_src6", "ssiu5_src7", "ssiu5_src8", "ssiu5_src9", + "ssiu6_src5", "ssiu6_src6", "ssiu6_src7", "ssiu6_src8", "ssiu6_src9", + "ssiu7_src5", "ssiu7_src6", "ssiu7_src7", "ssiu7_src8", "ssiu7_src9", + "ssiu8_src5", "ssiu8_src6", "ssiu8_src7", "ssiu8_src8", "ssiu8_src9", + "ssiu9_src5", "ssiu9_src6", "ssiu9_src7", "ssiu9_src8", "ssiu9_src9"; status = "disabled"; -- 2.1.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 10/25] ARM: shmobile: lager: fixup IIC2 clock frequency 2014-11-13 1:20 ` Simon Horman @ 2014-11-13 1:20 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-13 1:20 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Current Lager IIC2 is using default clock frequency, but, ak4643 audio codec chip needs 100kHz This patch clarifies IIC2 clock frequency as 100kHz. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7790-lager.dts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/r8a7790-lager.dts b/arch/arm/boot/dts/r8a7790-lager.dts index 830f2e8..86fb2ee 100644 --- a/arch/arm/boot/dts/r8a7790-lager.dts +++ b/arch/arm/boot/dts/r8a7790-lager.dts @@ -429,6 +429,8 @@ pinctrl-0 = <&iic2_pins>; pinctrl-names = "default"; + clock-frequency = <100000>; + composite-in@20 { compatible = "adi,adv7180"; reg = <0x20>; -- 2.1.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 10/25] ARM: shmobile: lager: fixup IIC2 clock frequency @ 2014-11-13 1:20 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-13 1:20 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Current Lager IIC2 is using default clock frequency, but, ak4643 audio codec chip needs 100kHz This patch clarifies IIC2 clock frequency as 100kHz. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7790-lager.dts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/r8a7790-lager.dts b/arch/arm/boot/dts/r8a7790-lager.dts index 830f2e8..86fb2ee 100644 --- a/arch/arm/boot/dts/r8a7790-lager.dts +++ b/arch/arm/boot/dts/r8a7790-lager.dts @@ -429,6 +429,8 @@ pinctrl-0 = <&iic2_pins>; pinctrl-names = "default"; + clock-frequency = <100000>; + composite-in at 20 { compatible = "adi,adv7180"; reg = <0x20>; -- 2.1.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 11/25] ARM: shmobile: lager: Sound PIO support on DTS 2014-11-13 1:20 ` Simon Horman @ 2014-11-13 1:20 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-13 1:20 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7790-lager.dts | 70 +++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) diff --git a/arch/arm/boot/dts/r8a7790-lager.dts b/arch/arm/boot/dts/r8a7790-lager.dts index 86fb2ee..c2b4f65 100644 --- a/arch/arm/boot/dts/r8a7790-lager.dts +++ b/arch/arm/boot/dts/r8a7790-lager.dts @@ -9,6 +9,18 @@ * kind, whether express or implied. */ +/* + * SSI-AK4643 + * + * SW1: 1: AK4643 + * 2: CN22 + * 3: ADV7511 + * + * This command is required when Playback/Capture + * + * amixer set "LINEOUT Mixer DACL" on + */ + /dts-v1/; #include "r8a7790.dtsi" #include <dt-bindings/gpio/gpio.h> @@ -146,6 +158,23 @@ 1800000 0>; }; + sound { + compatible = "simple-audio-card"; + + simple-audio-card,format = "left_j"; + simple-audio-card,bitclock-master = <&sndcodec>; + simple-audio-card,frame-master = <&sndcodec>; + + sndcpu: simple-audio-card,cpu { + sound-dai = <&rcar_sound>; + }; + + sndcodec: simple-audio-card,codec { + sound-dai = <&ak4643>; + system-clock-frequency = <11289600>; + }; + }; + vga-encoder { compatible = "adi,adv7123"; @@ -292,6 +321,16 @@ renesas,groups = "vin1_data8", "vin1_clk"; renesas,function = "vin1"; }; + + sound_pins: sound { + renesas,groups = "ssi0129_ctrl", "ssi0_data", "ssi1_data"; + renesas,function = "ssi"; + }; + + sound_clk_pins: sound_clk { + renesas,groups = "audio_clk_a"; + renesas,function = "audio_clk"; + }; }; ðer { @@ -431,6 +470,12 @@ clock-frequency = <100000>; + ak4643: sound-codec@12 { + compatible = "asahi-kasei,ak4643"; + #sound-dai-cells = <0>; + reg = <0x12>; + }; + composite-in@20 { compatible = "adi,adv7180"; reg = <0x20>; @@ -513,3 +558,28 @@ }; }; }; + +&rcar_sound { + pinctrl-0 = <&sound_pins &sound_clk_pins>; + pinctrl-names = "default"; + + #sound-dai-cells = <0>; + + status = "okay"; + + rcar_sound,dai { + dai0 { + playback = <&ssi0>; + capture = <&ssi1>; + }; + }; +}; + +&ssi0 { + pio-transfer; +}; + +&ssi1 { + pio-transfer; + shared-pin; +}; -- 2.1.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 11/25] ARM: shmobile: lager: Sound PIO support on DTS @ 2014-11-13 1:20 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-13 1:20 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7790-lager.dts | 70 +++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) diff --git a/arch/arm/boot/dts/r8a7790-lager.dts b/arch/arm/boot/dts/r8a7790-lager.dts index 86fb2ee..c2b4f65 100644 --- a/arch/arm/boot/dts/r8a7790-lager.dts +++ b/arch/arm/boot/dts/r8a7790-lager.dts @@ -9,6 +9,18 @@ * kind, whether express or implied. */ +/* + * SSI-AK4643 + * + * SW1: 1: AK4643 + * 2: CN22 + * 3: ADV7511 + * + * This command is required when Playback/Capture + * + * amixer set "LINEOUT Mixer DACL" on + */ + /dts-v1/; #include "r8a7790.dtsi" #include <dt-bindings/gpio/gpio.h> @@ -146,6 +158,23 @@ 1800000 0>; }; + sound { + compatible = "simple-audio-card"; + + simple-audio-card,format = "left_j"; + simple-audio-card,bitclock-master = <&sndcodec>; + simple-audio-card,frame-master = <&sndcodec>; + + sndcpu: simple-audio-card,cpu { + sound-dai = <&rcar_sound>; + }; + + sndcodec: simple-audio-card,codec { + sound-dai = <&ak4643>; + system-clock-frequency = <11289600>; + }; + }; + vga-encoder { compatible = "adi,adv7123"; @@ -292,6 +321,16 @@ renesas,groups = "vin1_data8", "vin1_clk"; renesas,function = "vin1"; }; + + sound_pins: sound { + renesas,groups = "ssi0129_ctrl", "ssi0_data", "ssi1_data"; + renesas,function = "ssi"; + }; + + sound_clk_pins: sound_clk { + renesas,groups = "audio_clk_a"; + renesas,function = "audio_clk"; + }; }; ðer { @@ -431,6 +470,12 @@ clock-frequency = <100000>; + ak4643: sound-codec at 12 { + compatible = "asahi-kasei,ak4643"; + #sound-dai-cells = <0>; + reg = <0x12>; + }; + composite-in at 20 { compatible = "adi,adv7180"; reg = <0x20>; @@ -513,3 +558,28 @@ }; }; }; + +&rcar_sound { + pinctrl-0 = <&sound_pins &sound_clk_pins>; + pinctrl-names = "default"; + + #sound-dai-cells = <0>; + + status = "okay"; + + rcar_sound,dai { + dai0 { + playback = <&ssi0>; + capture = <&ssi1>; + }; + }; +}; + +&ssi0 { + pio-transfer; +}; + +&ssi1 { + pio-transfer; + shared-pin; +}; -- 2.1.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 12/25] ARM: shmobile: lager: Sound DMA support on DTS 2014-11-13 1:20 ` Simon Horman @ 2014-11-13 1:20 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-13 1:20 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> DMA transfer to/from SSI DMA [MEM] -> [SSI] DMA [MEM] <- [SSI] Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7790-lager.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/r8a7790-lager.dts b/arch/arm/boot/dts/r8a7790-lager.dts index c2b4f65..93630d0 100644 --- a/arch/arm/boot/dts/r8a7790-lager.dts +++ b/arch/arm/boot/dts/r8a7790-lager.dts @@ -576,10 +576,10 @@ }; &ssi0 { - pio-transfer; + no-busif; }; &ssi1 { - pio-transfer; + no-busif; shared-pin; }; -- 2.1.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 12/25] ARM: shmobile: lager: Sound DMA support on DTS @ 2014-11-13 1:20 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-13 1:20 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> DMA transfer to/from SSI DMA [MEM] -> [SSI] DMA [MEM] <- [SSI] Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7790-lager.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/r8a7790-lager.dts b/arch/arm/boot/dts/r8a7790-lager.dts index c2b4f65..93630d0 100644 --- a/arch/arm/boot/dts/r8a7790-lager.dts +++ b/arch/arm/boot/dts/r8a7790-lager.dts @@ -576,10 +576,10 @@ }; &ssi0 { - pio-transfer; + no-busif; }; &ssi1 { - pio-transfer; + no-busif; shared-pin; }; -- 2.1.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 13/25] ARM: shmobile: lager: Sound DMA support via BUSIF on DTS 2014-11-13 1:20 ` Simon Horman @ 2014-11-13 1:20 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-13 1:20 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> DMA transfer to/from SSIU DMA [MEM] -> [SSIU] -> [SSI] DMA [MEM] <- [SSIU] <- [SSI] Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7790-lager.dts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/arch/arm/boot/dts/r8a7790-lager.dts b/arch/arm/boot/dts/r8a7790-lager.dts index 93630d0..0634fff 100644 --- a/arch/arm/boot/dts/r8a7790-lager.dts +++ b/arch/arm/boot/dts/r8a7790-lager.dts @@ -575,11 +575,6 @@ }; }; -&ssi0 { - no-busif; -}; - &ssi1 { - no-busif; shared-pin; }; -- 2.1.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 13/25] ARM: shmobile: lager: Sound DMA support via BUSIF on DTS @ 2014-11-13 1:20 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-13 1:20 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> DMA transfer to/from SSIU DMA [MEM] -> [SSIU] -> [SSI] DMA [MEM] <- [SSIU] <- [SSI] Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7790-lager.dts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/arch/arm/boot/dts/r8a7790-lager.dts b/arch/arm/boot/dts/r8a7790-lager.dts index 93630d0..0634fff 100644 --- a/arch/arm/boot/dts/r8a7790-lager.dts +++ b/arch/arm/boot/dts/r8a7790-lager.dts @@ -575,11 +575,6 @@ }; }; -&ssi0 { - no-busif; -}; - &ssi1 { - no-busif; shared-pin; }; -- 2.1.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 14/25] ARM: shmobile: lager: Sound DMA support via SRC on DTS 2014-11-13 1:20 ` Simon Horman @ 2014-11-13 1:20 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-13 1:20 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> DMA transfer to/from SRC DMA DMApp [MEM] -> [SRC] -> [SSIU] -> [SSI] DMA DMApp [MEM] <- [SRC] <- [SSIU] <- [SSI] Current sound driver is supporting SSI/SRC random connection. So, this patch is tring SSI0 -> SRC2 SSI1 <- SRC3 Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7790-lager.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/r8a7790-lager.dts b/arch/arm/boot/dts/r8a7790-lager.dts index 0634fff..a249270 100644 --- a/arch/arm/boot/dts/r8a7790-lager.dts +++ b/arch/arm/boot/dts/r8a7790-lager.dts @@ -569,8 +569,8 @@ rcar_sound,dai { dai0 { - playback = <&ssi0>; - capture = <&ssi1>; + playback = <&ssi0 &src2>; + capture = <&ssi1 &src3>; }; }; }; -- 2.1.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 14/25] ARM: shmobile: lager: Sound DMA support via SRC on DTS @ 2014-11-13 1:20 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-13 1:20 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> DMA transfer to/from SRC DMA DMApp [MEM] -> [SRC] -> [SSIU] -> [SSI] DMA DMApp [MEM] <- [SRC] <- [SSIU] <- [SSI] Current sound driver is supporting SSI/SRC random connection. So, this patch is tring SSI0 -> SRC2 SSI1 <- SRC3 Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7790-lager.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/r8a7790-lager.dts b/arch/arm/boot/dts/r8a7790-lager.dts index 0634fff..a249270 100644 --- a/arch/arm/boot/dts/r8a7790-lager.dts +++ b/arch/arm/boot/dts/r8a7790-lager.dts @@ -569,8 +569,8 @@ rcar_sound,dai { dai0 { - playback = <&ssi0>; - capture = <&ssi1>; + playback = <&ssi0 &src2>; + capture = <&ssi1 &src3>; }; }; }; -- 2.1.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 15/25] ARM: shmobile: lager: Sound DMA support via DVC on DTS 2014-11-13 1:20 ` Simon Horman @ 2014-11-13 1:20 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-13 1:20 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> DMA transfer uses DVC DMA DMApp [MEM] -> [SRC] -> [DVC] -> [SSIU] -> [SSI] DMA DMApp [MEM] <- [DVC] <- [SRC] <- [SSIU] <- [SSI] Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7790-lager.dts | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/r8a7790-lager.dts b/arch/arm/boot/dts/r8a7790-lager.dts index a249270..2f91740 100644 --- a/arch/arm/boot/dts/r8a7790-lager.dts +++ b/arch/arm/boot/dts/r8a7790-lager.dts @@ -19,6 +19,13 @@ * This command is required when Playback/Capture * * amixer set "LINEOUT Mixer DACL" on + * amixer set "DVC Out" 100% + * amixer set "DVC In" 100% + * + * You can use Mute + * + * amixer set "DVC Out Mute" on + * amixer set "DVC In Mute" on */ /dts-v1/; @@ -569,8 +576,8 @@ rcar_sound,dai { dai0 { - playback = <&ssi0 &src2>; - capture = <&ssi1 &src3>; + playback = <&ssi0 &src2 &dvc0>; + capture = <&ssi1 &src3 &dvc1>; }; }; }; -- 2.1.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 15/25] ARM: shmobile: lager: Sound DMA support via DVC on DTS @ 2014-11-13 1:20 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-13 1:20 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> DMA transfer uses DVC DMA DMApp [MEM] -> [SRC] -> [DVC] -> [SSIU] -> [SSI] DMA DMApp [MEM] <- [DVC] <- [SRC] <- [SSIU] <- [SSI] Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7790-lager.dts | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/r8a7790-lager.dts b/arch/arm/boot/dts/r8a7790-lager.dts index a249270..2f91740 100644 --- a/arch/arm/boot/dts/r8a7790-lager.dts +++ b/arch/arm/boot/dts/r8a7790-lager.dts @@ -19,6 +19,13 @@ * This command is required when Playback/Capture * * amixer set "LINEOUT Mixer DACL" on + * amixer set "DVC Out" 100% + * amixer set "DVC In" 100% + * + * You can use Mute + * + * amixer set "DVC Out Mute" on + * amixer set "DVC In Mute" on */ /dts-v1/; @@ -569,8 +576,8 @@ rcar_sound,dai { dai0 { - playback = <&ssi0 &src2>; - capture = <&ssi1 &src3>; + playback = <&ssi0 &src2 &dvc0>; + capture = <&ssi1 &src3 &dvc1>; }; }; }; -- 2.1.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 16/25] ARM: shmobile: koelsch: fixup I2C2 clock frequency 2014-11-13 1:20 ` Simon Horman @ 2014-11-13 1:20 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-13 1:20 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Current Koelsch I2C2 has 400kHz settings, but, ak4643 audio codec chip which is connected to I2C2 can't work such frequency. Fixup I2C2 clock frequency to 100kHz. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791-koelsch.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/r8a7791-koelsch.dts b/arch/arm/boot/dts/r8a7791-koelsch.dts index 191f32b..59e4251 100644 --- a/arch/arm/boot/dts/r8a7791-koelsch.dts +++ b/arch/arm/boot/dts/r8a7791-koelsch.dts @@ -425,7 +425,7 @@ pinctrl-names = "default"; status = "okay"; - clock-frequency = <400000>; + clock-frequency = <100000>; composite-in@20 { compatible = "adi,adv7180"; -- 2.1.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 16/25] ARM: shmobile: koelsch: fixup I2C2 clock frequency @ 2014-11-13 1:20 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-13 1:20 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Current Koelsch I2C2 has 400kHz settings, but, ak4643 audio codec chip which is connected to I2C2 can't work such frequency. Fixup I2C2 clock frequency to 100kHz. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791-koelsch.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/r8a7791-koelsch.dts b/arch/arm/boot/dts/r8a7791-koelsch.dts index 191f32b..59e4251 100644 --- a/arch/arm/boot/dts/r8a7791-koelsch.dts +++ b/arch/arm/boot/dts/r8a7791-koelsch.dts @@ -425,7 +425,7 @@ pinctrl-names = "default"; status = "okay"; - clock-frequency = <400000>; + clock-frequency = <100000>; composite-in at 20 { compatible = "adi,adv7180"; -- 2.1.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 17/25] ARM: shmobile: koelsch: Sound PIO support on DTS 2014-11-13 1:20 ` Simon Horman @ 2014-11-13 1:20 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-13 1:20 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791-koelsch.dts | 70 +++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) diff --git a/arch/arm/boot/dts/r8a7791-koelsch.dts b/arch/arm/boot/dts/r8a7791-koelsch.dts index 59e4251..c92d0d7 100644 --- a/arch/arm/boot/dts/r8a7791-koelsch.dts +++ b/arch/arm/boot/dts/r8a7791-koelsch.dts @@ -10,6 +10,18 @@ * kind, whether express or implied. */ +/* + * SSI-AK4643 + * + * SW1: 1: AK4643 + * 2: CN22 + * 3: ADV7511 + * + * This command is required when Playback/Capture + * + * amixer set "LINEOUT Mixer DACL" on + */ + /dts-v1/; #include "r8a7791.dtsi" #include <dt-bindings/gpio/gpio.h> @@ -210,6 +222,23 @@ states = <3300000 1 1800000 0>; }; + + sound { + compatible = "simple-audio-card"; + + simple-audio-card,format = "left_j"; + simple-audio-card,bitclock-master = <&sndcodec>; + simple-audio-card,frame-master = <&sndcodec>; + + sndcpu: simple-audio-card,cpu { + sound-dai = <&rcar_sound>; + }; + + sndcodec: simple-audio-card,codec { + sound-dai = <&ak4643>; + system-clock-frequency = <11289600>; + }; + }; }; &du { @@ -300,6 +329,16 @@ renesas,groups = "vin1_data8", "vin1_clk"; renesas,function = "vin1"; }; + + sound_pins: sound { + renesas,groups = "ssi0129_ctrl", "ssi0_data", "ssi1_data"; + renesas,function = "ssi"; + }; + + sound_clk_pins: sound_clk { + renesas,groups = "audio_clk_a"; + renesas,function = "audio_clk"; + }; }; ðer { @@ -427,6 +466,12 @@ status = "okay"; clock-frequency = <100000>; + ak4643: sound-codec@12 { + compatible = "asahi-kasei,ak4643"; + #sound-dai-cells = <0>; + reg = <0x12>; + }; + composite-in@20 { compatible = "adi,adv7180"; reg = <0x20>; @@ -513,3 +558,28 @@ }; }; }; + +&rcar_sound { + pinctrl-0 = <&sound_pins &sound_clk_pins>; + pinctrl-names = "default"; + + #sound-dai-cells = <0>; + + status = "okay"; + + rcar_sound,dai { + dai0 { + playback = <&ssi0>; + capture = <&ssi1>; + }; + }; +}; + +&ssi0 { + pio-transfer; +}; + +&ssi1 { + pio-transfer; + shared-pin; +}; -- 2.1.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 17/25] ARM: shmobile: koelsch: Sound PIO support on DTS @ 2014-11-13 1:20 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-13 1:20 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791-koelsch.dts | 70 +++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) diff --git a/arch/arm/boot/dts/r8a7791-koelsch.dts b/arch/arm/boot/dts/r8a7791-koelsch.dts index 59e4251..c92d0d7 100644 --- a/arch/arm/boot/dts/r8a7791-koelsch.dts +++ b/arch/arm/boot/dts/r8a7791-koelsch.dts @@ -10,6 +10,18 @@ * kind, whether express or implied. */ +/* + * SSI-AK4643 + * + * SW1: 1: AK4643 + * 2: CN22 + * 3: ADV7511 + * + * This command is required when Playback/Capture + * + * amixer set "LINEOUT Mixer DACL" on + */ + /dts-v1/; #include "r8a7791.dtsi" #include <dt-bindings/gpio/gpio.h> @@ -210,6 +222,23 @@ states = <3300000 1 1800000 0>; }; + + sound { + compatible = "simple-audio-card"; + + simple-audio-card,format = "left_j"; + simple-audio-card,bitclock-master = <&sndcodec>; + simple-audio-card,frame-master = <&sndcodec>; + + sndcpu: simple-audio-card,cpu { + sound-dai = <&rcar_sound>; + }; + + sndcodec: simple-audio-card,codec { + sound-dai = <&ak4643>; + system-clock-frequency = <11289600>; + }; + }; }; &du { @@ -300,6 +329,16 @@ renesas,groups = "vin1_data8", "vin1_clk"; renesas,function = "vin1"; }; + + sound_pins: sound { + renesas,groups = "ssi0129_ctrl", "ssi0_data", "ssi1_data"; + renesas,function = "ssi"; + }; + + sound_clk_pins: sound_clk { + renesas,groups = "audio_clk_a"; + renesas,function = "audio_clk"; + }; }; ðer { @@ -427,6 +466,12 @@ status = "okay"; clock-frequency = <100000>; + ak4643: sound-codec at 12 { + compatible = "asahi-kasei,ak4643"; + #sound-dai-cells = <0>; + reg = <0x12>; + }; + composite-in at 20 { compatible = "adi,adv7180"; reg = <0x20>; @@ -513,3 +558,28 @@ }; }; }; + +&rcar_sound { + pinctrl-0 = <&sound_pins &sound_clk_pins>; + pinctrl-names = "default"; + + #sound-dai-cells = <0>; + + status = "okay"; + + rcar_sound,dai { + dai0 { + playback = <&ssi0>; + capture = <&ssi1>; + }; + }; +}; + +&ssi0 { + pio-transfer; +}; + +&ssi1 { + pio-transfer; + shared-pin; +}; -- 2.1.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 18/25] ARM: shmobile: koelsch: Sound DMA support on DTS 2014-11-13 1:20 ` Simon Horman @ 2014-11-13 1:20 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-13 1:20 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> DMA transfer to/from SSI DMA [MEM] -> [SSI] DMA [MEM] <- [SSI] Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791-koelsch.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/r8a7791-koelsch.dts b/arch/arm/boot/dts/r8a7791-koelsch.dts index c92d0d7..68628cf 100644 --- a/arch/arm/boot/dts/r8a7791-koelsch.dts +++ b/arch/arm/boot/dts/r8a7791-koelsch.dts @@ -576,10 +576,10 @@ }; &ssi0 { - pio-transfer; + no-busif; }; &ssi1 { - pio-transfer; + no-busif; shared-pin; }; -- 2.1.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 18/25] ARM: shmobile: koelsch: Sound DMA support on DTS @ 2014-11-13 1:20 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-13 1:20 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> DMA transfer to/from SSI DMA [MEM] -> [SSI] DMA [MEM] <- [SSI] Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791-koelsch.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/r8a7791-koelsch.dts b/arch/arm/boot/dts/r8a7791-koelsch.dts index c92d0d7..68628cf 100644 --- a/arch/arm/boot/dts/r8a7791-koelsch.dts +++ b/arch/arm/boot/dts/r8a7791-koelsch.dts @@ -576,10 +576,10 @@ }; &ssi0 { - pio-transfer; + no-busif; }; &ssi1 { - pio-transfer; + no-busif; shared-pin; }; -- 2.1.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 19/25] ARM: shmobile: koelsch: Sound DMA support via BUSIF on DTS 2014-11-13 1:20 ` Simon Horman @ 2014-11-13 1:20 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-13 1:20 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> DMA transfer to/from SSIU DMA [MEM] -> [SSIU] -> [SSI] DMA [MEM] <- [SSIU] <- [SSI] Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791-koelsch.dts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/arch/arm/boot/dts/r8a7791-koelsch.dts b/arch/arm/boot/dts/r8a7791-koelsch.dts index 68628cf..5bc675f 100644 --- a/arch/arm/boot/dts/r8a7791-koelsch.dts +++ b/arch/arm/boot/dts/r8a7791-koelsch.dts @@ -575,11 +575,6 @@ }; }; -&ssi0 { - no-busif; -}; - &ssi1 { - no-busif; shared-pin; }; -- 2.1.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 19/25] ARM: shmobile: koelsch: Sound DMA support via BUSIF on DTS @ 2014-11-13 1:20 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-13 1:20 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> DMA transfer to/from SSIU DMA [MEM] -> [SSIU] -> [SSI] DMA [MEM] <- [SSIU] <- [SSI] Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791-koelsch.dts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/arch/arm/boot/dts/r8a7791-koelsch.dts b/arch/arm/boot/dts/r8a7791-koelsch.dts index 68628cf..5bc675f 100644 --- a/arch/arm/boot/dts/r8a7791-koelsch.dts +++ b/arch/arm/boot/dts/r8a7791-koelsch.dts @@ -575,11 +575,6 @@ }; }; -&ssi0 { - no-busif; -}; - &ssi1 { - no-busif; shared-pin; }; -- 2.1.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 20/25] ARM: shmobile: koelsch: Sound DMA support via SRC on DTS 2014-11-13 1:20 ` Simon Horman @ 2014-11-13 1:20 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-13 1:20 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> DMA transfer to/from SRC DMA DMApp [MEM] -> [SRC] -> [SSIU] -> [SSI] DMA DMApp [MEM] <- [SRC] <- [SSIU] <- [SSI] Current sound driver is supporting SSI/SRC random connection. So, this patch is tring SSI0 -> SRC2 SSI1 <- SRC3 Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791-koelsch.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/r8a7791-koelsch.dts b/arch/arm/boot/dts/r8a7791-koelsch.dts index 5bc675f..d2fe677 100644 --- a/arch/arm/boot/dts/r8a7791-koelsch.dts +++ b/arch/arm/boot/dts/r8a7791-koelsch.dts @@ -569,8 +569,8 @@ rcar_sound,dai { dai0 { - playback = <&ssi0>; - capture = <&ssi1>; + playback = <&ssi0 &src2>; + capture = <&ssi1 &src3>; }; }; }; -- 2.1.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 20/25] ARM: shmobile: koelsch: Sound DMA support via SRC on DTS @ 2014-11-13 1:20 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-13 1:20 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> DMA transfer to/from SRC DMA DMApp [MEM] -> [SRC] -> [SSIU] -> [SSI] DMA DMApp [MEM] <- [SRC] <- [SSIU] <- [SSI] Current sound driver is supporting SSI/SRC random connection. So, this patch is tring SSI0 -> SRC2 SSI1 <- SRC3 Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791-koelsch.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/r8a7791-koelsch.dts b/arch/arm/boot/dts/r8a7791-koelsch.dts index 5bc675f..d2fe677 100644 --- a/arch/arm/boot/dts/r8a7791-koelsch.dts +++ b/arch/arm/boot/dts/r8a7791-koelsch.dts @@ -569,8 +569,8 @@ rcar_sound,dai { dai0 { - playback = <&ssi0>; - capture = <&ssi1>; + playback = <&ssi0 &src2>; + capture = <&ssi1 &src3>; }; }; }; -- 2.1.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 21/25] ARM: shmobile: koelsch: Sound DMA support via DVC on DTS 2014-11-13 1:20 ` Simon Horman @ 2014-11-13 1:20 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-13 1:20 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> DMA transfer uses DVC DMA DMApp [MEM] -> [SRC] -> [DVC] -> [SSIU] -> [SSI] DMA DMApp [MEM] <- [DVC] <- [SRC] <- [SSIU] <- [SSI] Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791-koelsch.dts | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/r8a7791-koelsch.dts b/arch/arm/boot/dts/r8a7791-koelsch.dts index d2fe677..f056e64 100644 --- a/arch/arm/boot/dts/r8a7791-koelsch.dts +++ b/arch/arm/boot/dts/r8a7791-koelsch.dts @@ -20,6 +20,13 @@ * This command is required when Playback/Capture * * amixer set "LINEOUT Mixer DACL" on + * amixer set "DVC Out" 100% + * amixer set "DVC In" 100% + * + * You can use Mute + * + * amixer set "DVC Out Mute" on + * amixer set "DVC In Mute" on */ /dts-v1/; @@ -569,8 +576,8 @@ rcar_sound,dai { dai0 { - playback = <&ssi0 &src2>; - capture = <&ssi1 &src3>; + playback = <&ssi0 &src2 &dvc0>; + capture = <&ssi1 &src3 &dvc1>; }; }; }; -- 2.1.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 21/25] ARM: shmobile: koelsch: Sound DMA support via DVC on DTS @ 2014-11-13 1:20 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-13 1:20 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> DMA transfer uses DVC DMA DMApp [MEM] -> [SRC] -> [DVC] -> [SSIU] -> [SSI] DMA DMApp [MEM] <- [DVC] <- [SRC] <- [SSIU] <- [SSI] Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791-koelsch.dts | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/r8a7791-koelsch.dts b/arch/arm/boot/dts/r8a7791-koelsch.dts index d2fe677..f056e64 100644 --- a/arch/arm/boot/dts/r8a7791-koelsch.dts +++ b/arch/arm/boot/dts/r8a7791-koelsch.dts @@ -20,6 +20,13 @@ * This command is required when Playback/Capture * * amixer set "LINEOUT Mixer DACL" on + * amixer set "DVC Out" 100% + * amixer set "DVC In" 100% + * + * You can use Mute + * + * amixer set "DVC Out Mute" on + * amixer set "DVC In Mute" on */ /dts-v1/; @@ -569,8 +576,8 @@ rcar_sound,dai { dai0 { - playback = <&ssi0 &src2>; - capture = <&ssi1 &src3>; + playback = <&ssi0 &src2 &dvc0>; + capture = <&ssi1 &src3 &dvc1>; }; }; }; -- 2.1.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 22/25] ARM: shmobile: r8a73a4 dtsi: Add SoC-specific IIC compatible properties 2014-11-13 1:20 ` Simon Horman @ 2014-11-13 1:20 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-13 1:20 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> The IIC nodes used the generic compatible properties only. This may cause the driver to fail when using Standard Speed on IIC masters where the operational clock is driven by the 130 MHz HP clock. Add the SoC-specific compatible property to fix this. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a73a4.dtsi | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/arch/arm/boot/dts/r8a73a4.dtsi b/arch/arm/boot/dts/r8a73a4.dtsi index b5ead84..01373ee 100644 --- a/arch/arm/boot/dts/r8a73a4.dtsi +++ b/arch/arm/boot/dts/r8a73a4.dtsi @@ -106,7 +106,7 @@ i2c5: i2c@e60b0000 { #address-cells = <1>; #size-cells = <0>; - compatible = "renesas,rmobile-iic"; + compatible = "renesas,iic-r8a73a4", "renesas,rmobile-iic"; reg = <0 0xe60b0000 0 0x428>; interrupts = <0 179 IRQ_TYPE_LEVEL_HIGH>; @@ -205,7 +205,7 @@ i2c0: i2c@e6500000 { #address-cells = <1>; #size-cells = <0>; - compatible = "renesas,rmobile-iic"; + compatible = "renesas,iic-r8a73a4", "renesas,rmobile-iic"; reg = <0 0xe6500000 0 0x428>; interrupts = <0 174 IRQ_TYPE_LEVEL_HIGH>; status = "disabled"; @@ -214,7 +214,7 @@ i2c1: i2c@e6510000 { #address-cells = <1>; #size-cells = <0>; - compatible = "renesas,rmobile-iic"; + compatible = "renesas,iic-r8a73a4", "renesas,rmobile-iic"; reg = <0 0xe6510000 0 0x428>; interrupts = <0 175 IRQ_TYPE_LEVEL_HIGH>; status = "disabled"; @@ -223,7 +223,7 @@ i2c2: i2c@e6520000 { #address-cells = <1>; #size-cells = <0>; - compatible = "renesas,rmobile-iic"; + compatible = "renesas,iic-r8a73a4", "renesas,rmobile-iic"; reg = <0 0xe6520000 0 0x428>; interrupts = <0 176 IRQ_TYPE_LEVEL_HIGH>; status = "disabled"; @@ -232,7 +232,7 @@ i2c3: i2c@e6530000 { #address-cells = <1>; #size-cells = <0>; - compatible = "renesas,rmobile-iic"; + compatible = "renesas,iic-r8a73a4", "renesas,rmobile-iic"; reg = <0 0xe6530000 0 0x428>; interrupts = <0 177 IRQ_TYPE_LEVEL_HIGH>; status = "disabled"; @@ -241,7 +241,7 @@ i2c4: i2c@e6540000 { #address-cells = <1>; #size-cells = <0>; - compatible = "renesas,rmobile-iic"; + compatible = "renesas,iic-r8a73a4", "renesas,rmobile-iic"; reg = <0 0xe6540000 0 0x428>; interrupts = <0 178 IRQ_TYPE_LEVEL_HIGH>; status = "disabled"; @@ -250,7 +250,7 @@ i2c6: i2c@e6550000 { #address-cells = <1>; #size-cells = <0>; - compatible = "renesas,rmobile-iic"; + compatible = "renesas,iic-r8a73a4", "renesas,rmobile-iic"; reg = <0 0xe6550000 0 0x428>; interrupts = <0 184 IRQ_TYPE_LEVEL_HIGH>; status = "disabled"; @@ -259,7 +259,7 @@ i2c7: i2c@e6560000 { #address-cells = <1>; #size-cells = <0>; - compatible = "renesas,rmobile-iic"; + compatible = "renesas,iic-r8a73a4", "renesas,rmobile-iic"; reg = <0 0xe6560000 0 0x428>; interrupts = <0 185 IRQ_TYPE_LEVEL_HIGH>; status = "disabled"; @@ -268,7 +268,7 @@ i2c8: i2c@e6570000 { #address-cells = <1>; #size-cells = <0>; - compatible = "renesas,rmobile-iic"; + compatible = "renesas,iic-r8a73a4", "renesas,rmobile-iic"; reg = <0 0xe6570000 0 0x428>; interrupts = <0 173 IRQ_TYPE_LEVEL_HIGH>; status = "disabled"; -- 2.1.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 22/25] ARM: shmobile: r8a73a4 dtsi: Add SoC-specific IIC compatible properties @ 2014-11-13 1:20 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-13 1:20 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> The IIC nodes used the generic compatible properties only. This may cause the driver to fail when using Standard Speed on IIC masters where the operational clock is driven by the 130 MHz HP clock. Add the SoC-specific compatible property to fix this. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a73a4.dtsi | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/arch/arm/boot/dts/r8a73a4.dtsi b/arch/arm/boot/dts/r8a73a4.dtsi index b5ead84..01373ee 100644 --- a/arch/arm/boot/dts/r8a73a4.dtsi +++ b/arch/arm/boot/dts/r8a73a4.dtsi @@ -106,7 +106,7 @@ i2c5: i2c at e60b0000 { #address-cells = <1>; #size-cells = <0>; - compatible = "renesas,rmobile-iic"; + compatible = "renesas,iic-r8a73a4", "renesas,rmobile-iic"; reg = <0 0xe60b0000 0 0x428>; interrupts = <0 179 IRQ_TYPE_LEVEL_HIGH>; @@ -205,7 +205,7 @@ i2c0: i2c at e6500000 { #address-cells = <1>; #size-cells = <0>; - compatible = "renesas,rmobile-iic"; + compatible = "renesas,iic-r8a73a4", "renesas,rmobile-iic"; reg = <0 0xe6500000 0 0x428>; interrupts = <0 174 IRQ_TYPE_LEVEL_HIGH>; status = "disabled"; @@ -214,7 +214,7 @@ i2c1: i2c at e6510000 { #address-cells = <1>; #size-cells = <0>; - compatible = "renesas,rmobile-iic"; + compatible = "renesas,iic-r8a73a4", "renesas,rmobile-iic"; reg = <0 0xe6510000 0 0x428>; interrupts = <0 175 IRQ_TYPE_LEVEL_HIGH>; status = "disabled"; @@ -223,7 +223,7 @@ i2c2: i2c at e6520000 { #address-cells = <1>; #size-cells = <0>; - compatible = "renesas,rmobile-iic"; + compatible = "renesas,iic-r8a73a4", "renesas,rmobile-iic"; reg = <0 0xe6520000 0 0x428>; interrupts = <0 176 IRQ_TYPE_LEVEL_HIGH>; status = "disabled"; @@ -232,7 +232,7 @@ i2c3: i2c at e6530000 { #address-cells = <1>; #size-cells = <0>; - compatible = "renesas,rmobile-iic"; + compatible = "renesas,iic-r8a73a4", "renesas,rmobile-iic"; reg = <0 0xe6530000 0 0x428>; interrupts = <0 177 IRQ_TYPE_LEVEL_HIGH>; status = "disabled"; @@ -241,7 +241,7 @@ i2c4: i2c at e6540000 { #address-cells = <1>; #size-cells = <0>; - compatible = "renesas,rmobile-iic"; + compatible = "renesas,iic-r8a73a4", "renesas,rmobile-iic"; reg = <0 0xe6540000 0 0x428>; interrupts = <0 178 IRQ_TYPE_LEVEL_HIGH>; status = "disabled"; @@ -250,7 +250,7 @@ i2c6: i2c at e6550000 { #address-cells = <1>; #size-cells = <0>; - compatible = "renesas,rmobile-iic"; + compatible = "renesas,iic-r8a73a4", "renesas,rmobile-iic"; reg = <0 0xe6550000 0 0x428>; interrupts = <0 184 IRQ_TYPE_LEVEL_HIGH>; status = "disabled"; @@ -259,7 +259,7 @@ i2c7: i2c at e6560000 { #address-cells = <1>; #size-cells = <0>; - compatible = "renesas,rmobile-iic"; + compatible = "renesas,iic-r8a73a4", "renesas,rmobile-iic"; reg = <0 0xe6560000 0 0x428>; interrupts = <0 185 IRQ_TYPE_LEVEL_HIGH>; status = "disabled"; @@ -268,7 +268,7 @@ i2c8: i2c at e6570000 { #address-cells = <1>; #size-cells = <0>; - compatible = "renesas,rmobile-iic"; + compatible = "renesas,iic-r8a73a4", "renesas,rmobile-iic"; reg = <0 0xe6570000 0 0x428>; interrupts = <0 173 IRQ_TYPE_LEVEL_HIGH>; status = "disabled"; -- 2.1.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 23/25] ARM: shmobile: sh73a0 dtsi: Add SoC-specific IIC compatible properties 2014-11-13 1:20 ` Simon Horman @ 2014-11-13 1:20 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-13 1:20 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> The IIC nodes used the generic compatible properties only. This causes the driver to fail when using Standard Speed, as the operational clock is driven by the 104 MHz HP clock: i2c-sh_mobile e6820000.i2c: timing values out of range: L/H=0x208/0x1bf i2c-sh_mobile: probe of e6820000.i2c failed with error -22 Add the SoC-specific compatible property to fix this. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/sh73a0.dtsi | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/arm/boot/dts/sh73a0.dtsi b/arch/arm/boot/dts/sh73a0.dtsi index 030a592..d8def5a 100644 --- a/arch/arm/boot/dts/sh73a0.dtsi +++ b/arch/arm/boot/dts/sh73a0.dtsi @@ -138,7 +138,7 @@ i2c0: i2c@e6820000 { #address-cells = <1>; #size-cells = <0>; - compatible = "renesas,rmobile-iic"; + compatible = "renesas,iic-sh73a0", "renesas,rmobile-iic"; reg = <0xe6820000 0x425>; interrupts = <0 167 IRQ_TYPE_LEVEL_HIGH 0 168 IRQ_TYPE_LEVEL_HIGH @@ -150,7 +150,7 @@ i2c1: i2c@e6822000 { #address-cells = <1>; #size-cells = <0>; - compatible = "renesas,rmobile-iic"; + compatible = "renesas,iic-sh73a0", "renesas,rmobile-iic"; reg = <0xe6822000 0x425>; interrupts = <0 51 IRQ_TYPE_LEVEL_HIGH 0 52 IRQ_TYPE_LEVEL_HIGH @@ -162,7 +162,7 @@ i2c2: i2c@e6824000 { #address-cells = <1>; #size-cells = <0>; - compatible = "renesas,rmobile-iic"; + compatible = "renesas,iic-sh73a0", "renesas,rmobile-iic"; reg = <0xe6824000 0x425>; interrupts = <0 171 IRQ_TYPE_LEVEL_HIGH 0 172 IRQ_TYPE_LEVEL_HIGH @@ -174,7 +174,7 @@ i2c3: i2c@e6826000 { #address-cells = <1>; #size-cells = <0>; - compatible = "renesas,rmobile-iic"; + compatible = "renesas,iic-sh73a0", "renesas,rmobile-iic"; reg = <0xe6826000 0x425>; interrupts = <0 183 IRQ_TYPE_LEVEL_HIGH 0 184 IRQ_TYPE_LEVEL_HIGH @@ -186,7 +186,7 @@ i2c4: i2c@e6828000 { #address-cells = <1>; #size-cells = <0>; - compatible = "renesas,rmobile-iic"; + compatible = "renesas,iic-sh73a0", "renesas,rmobile-iic"; reg = <0xe6828000 0x425>; interrupts = <0 187 IRQ_TYPE_LEVEL_HIGH 0 188 IRQ_TYPE_LEVEL_HIGH -- 2.1.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 23/25] ARM: shmobile: sh73a0 dtsi: Add SoC-specific IIC compatible properties @ 2014-11-13 1:20 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-13 1:20 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> The IIC nodes used the generic compatible properties only. This causes the driver to fail when using Standard Speed, as the operational clock is driven by the 104 MHz HP clock: i2c-sh_mobile e6820000.i2c: timing values out of range: L/H=0x208/0x1bf i2c-sh_mobile: probe of e6820000.i2c failed with error -22 Add the SoC-specific compatible property to fix this. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/sh73a0.dtsi | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/arm/boot/dts/sh73a0.dtsi b/arch/arm/boot/dts/sh73a0.dtsi index 030a592..d8def5a 100644 --- a/arch/arm/boot/dts/sh73a0.dtsi +++ b/arch/arm/boot/dts/sh73a0.dtsi @@ -138,7 +138,7 @@ i2c0: i2c at e6820000 { #address-cells = <1>; #size-cells = <0>; - compatible = "renesas,rmobile-iic"; + compatible = "renesas,iic-sh73a0", "renesas,rmobile-iic"; reg = <0xe6820000 0x425>; interrupts = <0 167 IRQ_TYPE_LEVEL_HIGH 0 168 IRQ_TYPE_LEVEL_HIGH @@ -150,7 +150,7 @@ i2c1: i2c@e6822000 { #address-cells = <1>; #size-cells = <0>; - compatible = "renesas,rmobile-iic"; + compatible = "renesas,iic-sh73a0", "renesas,rmobile-iic"; reg = <0xe6822000 0x425>; interrupts = <0 51 IRQ_TYPE_LEVEL_HIGH 0 52 IRQ_TYPE_LEVEL_HIGH @@ -162,7 +162,7 @@ i2c2: i2c@e6824000 { #address-cells = <1>; #size-cells = <0>; - compatible = "renesas,rmobile-iic"; + compatible = "renesas,iic-sh73a0", "renesas,rmobile-iic"; reg = <0xe6824000 0x425>; interrupts = <0 171 IRQ_TYPE_LEVEL_HIGH 0 172 IRQ_TYPE_LEVEL_HIGH @@ -174,7 +174,7 @@ i2c3: i2c@e6826000 { #address-cells = <1>; #size-cells = <0>; - compatible = "renesas,rmobile-iic"; + compatible = "renesas,iic-sh73a0", "renesas,rmobile-iic"; reg = <0xe6826000 0x425>; interrupts = <0 183 IRQ_TYPE_LEVEL_HIGH 0 184 IRQ_TYPE_LEVEL_HIGH @@ -186,7 +186,7 @@ i2c4: i2c@e6828000 { #address-cells = <1>; #size-cells = <0>; - compatible = "renesas,rmobile-iic"; + compatible = "renesas,iic-sh73a0", "renesas,rmobile-iic"; reg = <0xe6828000 0x425>; interrupts = <0 187 IRQ_TYPE_LEVEL_HIGH 0 188 IRQ_TYPE_LEVEL_HIGH -- 2.1.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 24/25] ARM: shmobile: koelsch dts: Add labels for the LEDs 2014-11-13 1:20 ` Simon Horman @ 2014-11-13 1:20 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-13 1:20 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> The LEDs on the koelsch board are labeled using upper-case characters. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791-koelsch.dts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/boot/dts/r8a7791-koelsch.dts b/arch/arm/boot/dts/r8a7791-koelsch.dts index f056e64..a10f534 100644 --- a/arch/arm/boot/dts/r8a7791-koelsch.dts +++ b/arch/arm/boot/dts/r8a7791-koelsch.dts @@ -149,12 +149,15 @@ compatible = "gpio-leds"; led6 { gpios = <&gpio2 19 GPIO_ACTIVE_HIGH>; + label = "LED6"; }; led7 { gpios = <&gpio2 20 GPIO_ACTIVE_HIGH>; + label = "LED7"; }; led8 { gpios = <&gpio2 21 GPIO_ACTIVE_HIGH>; + label = "LED8"; }; }; -- 2.1.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 24/25] ARM: shmobile: koelsch dts: Add labels for the LEDs @ 2014-11-13 1:20 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-13 1:20 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> The LEDs on the koelsch board are labeled using upper-case characters. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791-koelsch.dts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/boot/dts/r8a7791-koelsch.dts b/arch/arm/boot/dts/r8a7791-koelsch.dts index f056e64..a10f534 100644 --- a/arch/arm/boot/dts/r8a7791-koelsch.dts +++ b/arch/arm/boot/dts/r8a7791-koelsch.dts @@ -149,12 +149,15 @@ compatible = "gpio-leds"; led6 { gpios = <&gpio2 19 GPIO_ACTIVE_HIGH>; + label = "LED6"; }; led7 { gpios = <&gpio2 20 GPIO_ACTIVE_HIGH>; + label = "LED7"; }; led8 { gpios = <&gpio2 21 GPIO_ACTIVE_HIGH>; + label = "LED8"; }; }; -- 2.1.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 25/25] ARM: shmobile: kzm9g-reference dts: Add labels for the LEDs 2014-11-13 1:20 ` Simon Horman @ 2014-11-13 1:20 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-13 1:20 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> The LEDs on the kzm9g board are labeled using upper-case characters. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/sh73a0-kzm9g-reference.dts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/sh73a0-kzm9g-reference.dts b/arch/arm/boot/dts/sh73a0-kzm9g-reference.dts index 0dac0e6..e59e674 100644 --- a/arch/arm/boot/dts/sh73a0-kzm9g-reference.dts +++ b/arch/arm/boot/dts/sh73a0-kzm9g-reference.dts @@ -101,15 +101,19 @@ compatible = "gpio-leds"; led1 { gpios = <&pfc 20 GPIO_ACTIVE_LOW>; + label = "LED1"; }; led2 { gpios = <&pfc 21 GPIO_ACTIVE_LOW>; + label = "LED2"; }; led3 { gpios = <&pfc 22 GPIO_ACTIVE_LOW>; + label = "LED3"; }; led4 { gpios = <&pfc 23 GPIO_ACTIVE_LOW>; + label = "LED4"; }; }; -- 2.1.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 25/25] ARM: shmobile: kzm9g-reference dts: Add labels for the LEDs @ 2014-11-13 1:20 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-13 1:20 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> The LEDs on the kzm9g board are labeled using upper-case characters. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/sh73a0-kzm9g-reference.dts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/sh73a0-kzm9g-reference.dts b/arch/arm/boot/dts/sh73a0-kzm9g-reference.dts index 0dac0e6..e59e674 100644 --- a/arch/arm/boot/dts/sh73a0-kzm9g-reference.dts +++ b/arch/arm/boot/dts/sh73a0-kzm9g-reference.dts @@ -101,15 +101,19 @@ compatible = "gpio-leds"; led1 { gpios = <&pfc 20 GPIO_ACTIVE_LOW>; + label = "LED1"; }; led2 { gpios = <&pfc 21 GPIO_ACTIVE_LOW>; + label = "LED2"; }; led3 { gpios = <&pfc 22 GPIO_ACTIVE_LOW>; + label = "LED3"; }; led4 { gpios = <&pfc 23 GPIO_ACTIVE_LOW>; + label = "LED4"; }; }; -- 2.1.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* Re: [GIT PULL] Second Round of Renesas ARM Based SoC DT Updates for v3.19 2014-11-13 1:20 ` Simon Horman @ 2014-11-19 22:09 ` Arnd Bergmann -1 siblings, 0 replies; 776+ messages in thread From: Arnd Bergmann @ 2014-11-19 22:09 UTC (permalink / raw) To: linux-arm-kernel On Thursday 13 November 2014, Simon Horman wrote: > Hi Olof, Hi Kevin, Hi Arnd, > > Please consider these second round of Renesas ARM based SoC DT updates for > v3.19. > > This pull request is based on the previous round of > such requests, tagged as renesas-dt-for-v3.19, > which I have already sent a pull-request for. As discussed, I'm deferring this one and hope we can figure out a better binding for the asoc DMA channels. I think I've addressed all your pull requests, please check that I haven't missed any and they show up in for-next. Arnd ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC DT Updates for v3.19 @ 2014-11-19 22:09 ` Arnd Bergmann 0 siblings, 0 replies; 776+ messages in thread From: Arnd Bergmann @ 2014-11-19 22:09 UTC (permalink / raw) To: linux-arm-kernel On Thursday 13 November 2014, Simon Horman wrote: > Hi Olof, Hi Kevin, Hi Arnd, > > Please consider these second round of Renesas ARM based SoC DT updates for > v3.19. > > This pull request is based on the previous round of > such requests, tagged as renesas-dt-for-v3.19, > which I have already sent a pull-request for. As discussed, I'm deferring this one and hope we can figure out a better binding for the asoc DMA channels. I think I've addressed all your pull requests, please check that I haven't missed any and they show up in for-next. Arnd ^ permalink raw reply [flat|nested] 776+ messages in thread
* Re: [GIT PULL] Second Round of Renesas ARM Based SoC DT Updates for v3.19 2014-11-19 22:09 ` Arnd Bergmann @ 2014-11-20 0:56 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-20 0:56 UTC (permalink / raw) To: linux-arm-kernel On Wed, Nov 19, 2014 at 11:09:48PM +0100, Arnd Bergmann wrote: > On Thursday 13 November 2014, Simon Horman wrote: > > Hi Olof, Hi Kevin, Hi Arnd, > > > > Please consider these second round of Renesas ARM based SoC DT updates for > > v3.19. > > > > This pull request is based on the previous round of > > such requests, tagged as renesas-dt-for-v3.19, > > which I have already sent a pull-request for. > > As discussed, I'm deferring this one and hope we can figure out a better > binding for the asoc DMA channels. Thanks, I plan to repost this pull-request with the patches that are under discussion omitted. > I think I've addressed all your pull requests, please check that I haven't > missed any and they show up in for-next. Thanks! Will do. ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC DT Updates for v3.19 @ 2014-11-20 0:56 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-20 0:56 UTC (permalink / raw) To: linux-arm-kernel On Wed, Nov 19, 2014 at 11:09:48PM +0100, Arnd Bergmann wrote: > On Thursday 13 November 2014, Simon Horman wrote: > > Hi Olof, Hi Kevin, Hi Arnd, > > > > Please consider these second round of Renesas ARM based SoC DT updates for > > v3.19. > > > > This pull request is based on the previous round of > > such requests, tagged as renesas-dt-for-v3.19, > > which I have already sent a pull-request for. > > As discussed, I'm deferring this one and hope we can figure out a better > binding for the asoc DMA channels. Thanks, I plan to repost this pull-request with the patches that are under discussion omitted. > I think I've addressed all your pull requests, please check that I haven't > missed any and they show up in for-next. Thanks! Will do. ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC Cleanups for v3.19 @ 2014-11-21 0:55 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-21 0:55 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Hi Kevin, Hi Arnd, Please consider these second round of Renesas ARM based SoC cleanups for v3.19. This pull request is based on the previous round of such requests, tagged as renesas-soc-cleanups-for-v3.19, which I have already sent a pull-request for. The following changes since commit dac95365dc2683df55c4e221e2f669a056863307: ARM: shmobile: sh73a0: Remove wrapper sh73a0_init_delay() (2014-10-24 13:07:01 +0900) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-soc-cleanups2-for-v3.19 for you to fetch changes up to 3e940958ed3625187704f41129801800f70c2169: ARM: shmobile: r8a7779: Spelling/grammar s/entity/identity/, s/map/mapping/ (2014-11-17 10:35:07 +0900) ---------------------------------------------------------------- Second Round of Renesas ARM Based SoC Cleanups for v3.19 * Spelling and grammar fixes ---------------------------------------------------------------- Geert Uytterhoeven (3): ARM: shmobile: sh73a0: Spelling/grammar s/entity map/identity mapping/ ARM: shmobile: sh7372: Spelling/grammar s/entity map/identity mapping/ ARM: shmobile: r8a7779: Spelling/grammar s/entity/identity/, s/map/mapping/ arch/arm/mach-shmobile/setup-r8a7779.c | 6 +++--- arch/arm/mach-shmobile/setup-sh7372.c | 2 +- arch/arm/mach-shmobile/setup-sh73a0.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC Cleanups for v3.19 @ 2014-11-21 0:55 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-21 0:55 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Hi Kevin, Hi Arnd, Please consider these second round of Renesas ARM based SoC cleanups for v3.19. This pull request is based on the previous round of such requests, tagged as renesas-soc-cleanups-for-v3.19, which I have already sent a pull-request for. The following changes since commit dac95365dc2683df55c4e221e2f669a056863307: ARM: shmobile: sh73a0: Remove wrapper sh73a0_init_delay() (2014-10-24 13:07:01 +0900) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-soc-cleanups2-for-v3.19 for you to fetch changes up to 3e940958ed3625187704f41129801800f70c2169: ARM: shmobile: r8a7779: Spelling/grammar s/entity/identity/, s/map/mapping/ (2014-11-17 10:35:07 +0900) ---------------------------------------------------------------- Second Round of Renesas ARM Based SoC Cleanups for v3.19 * Spelling and grammar fixes ---------------------------------------------------------------- Geert Uytterhoeven (3): ARM: shmobile: sh73a0: Spelling/grammar s/entity map/identity mapping/ ARM: shmobile: sh7372: Spelling/grammar s/entity map/identity mapping/ ARM: shmobile: r8a7779: Spelling/grammar s/entity/identity/, s/map/mapping/ arch/arm/mach-shmobile/setup-r8a7779.c | 6 +++--- arch/arm/mach-shmobile/setup-sh7372.c | 2 +- arch/arm/mach-shmobile/setup-sh73a0.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH 1/3] ARM: shmobile: sh73a0: Spelling/grammar s/entity map/identity mapping/ 2014-11-21 0:55 ` Simon Horman @ 2014-11-21 0:55 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-21 0:55 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- 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 0754b12..1622fb2 100644 --- a/arch/arm/mach-shmobile/setup-sh73a0.c +++ b/arch/arm/mach-shmobile/setup-sh73a0.c @@ -45,7 +45,7 @@ #include "sh73a0.h" static struct map_desc sh73a0_io_desc[] __initdata = { - /* create a 1:1 entity map for 0xe6xxxxxx + /* create a 1:1 identity mapping for 0xe6xxxxxx * used by CPGA, INTC and PFC. */ { -- 2.1.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 1/3] ARM: shmobile: sh73a0: Spelling/grammar s/entity map/identity mapping/ @ 2014-11-21 0:55 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-21 0:55 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- 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 0754b12..1622fb2 100644 --- a/arch/arm/mach-shmobile/setup-sh73a0.c +++ b/arch/arm/mach-shmobile/setup-sh73a0.c @@ -45,7 +45,7 @@ #include "sh73a0.h" static struct map_desc sh73a0_io_desc[] __initdata = { - /* create a 1:1 entity map for 0xe6xxxxxx + /* create a 1:1 identity mapping for 0xe6xxxxxx * used by CPGA, INTC and PFC. */ { -- 2.1.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 2/3] ARM: shmobile: sh7372: Spelling/grammar s/entity map/identity mapping/ 2014-11-21 0:55 ` Simon Horman @ 2014-11-21 0:55 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-21 0:55 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/setup-sh7372.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-shmobile/setup-sh7372.c b/arch/arm/mach-shmobile/setup-sh7372.c index d646c8d..a811675 100644 --- a/arch/arm/mach-shmobile/setup-sh7372.c +++ b/arch/arm/mach-shmobile/setup-sh7372.c @@ -47,7 +47,7 @@ #include "sh7372.h" static struct map_desc sh7372_io_desc[] __initdata = { - /* create a 1:1 entity map for 0xe6xxxxxx + /* create a 1:1 identity mapping for 0xe6xxxxxx * used by CPGA, INTC and PFC. */ { -- 2.1.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 2/3] ARM: shmobile: sh7372: Spelling/grammar s/entity map/identity mapping/ @ 2014-11-21 0:55 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-21 0:55 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/setup-sh7372.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-shmobile/setup-sh7372.c b/arch/arm/mach-shmobile/setup-sh7372.c index d646c8d..a811675 100644 --- a/arch/arm/mach-shmobile/setup-sh7372.c +++ b/arch/arm/mach-shmobile/setup-sh7372.c @@ -47,7 +47,7 @@ #include "sh7372.h" static struct map_desc sh7372_io_desc[] __initdata = { - /* create a 1:1 entity map for 0xe6xxxxxx + /* create a 1:1 identity mapping for 0xe6xxxxxx * used by CPGA, INTC and PFC. */ { -- 2.1.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 3/3] ARM: shmobile: r8a7779: Spelling/grammar s/entity/identity/, s/map/mapping/ 2014-11-21 0:55 ` Simon Horman @ 2014-11-21 0:55 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-21 0:55 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/setup-r8a7779.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-shmobile/setup-r8a7779.c b/arch/arm/mach-shmobile/setup-r8a7779.c index 136078a..65635b1 100644 --- a/arch/arm/mach-shmobile/setup-r8a7779.c +++ b/arch/arm/mach-shmobile/setup-r8a7779.c @@ -52,14 +52,14 @@ #include "r8a7779.h" static struct map_desc r8a7779_io_desc[] __initdata = { - /* 2M entity map for 0xf0000000 (MPCORE) */ + /* 2M identity mapping for 0xf0000000 (MPCORE) */ { .virtual = 0xf0000000, .pfn = __phys_to_pfn(0xf0000000), .length = SZ_2M, .type = MT_DEVICE_NONSHARED }, - /* 16M entity map for 0xfexxxxxx (DMAC-S/HPBREG/INTC2/LRAM/DBSC) */ + /* 16M identity mapping for 0xfexxxxxx (DMAC-S/HPBREG/INTC2/LRAM/DBSC) */ { .virtual = 0xfe000000, .pfn = __phys_to_pfn(0xfe000000), @@ -683,7 +683,7 @@ void __init r8a7779_add_early_devices(void) /* Early serial console setup is not included here due to * memory map collisions. The SCIF serial ports in r8a7779 - * are difficult to entity map 1:1 due to collision with the + * are difficult to identity map 1:1 due to collision with the * virtual memory range used by the coherent DMA code on ARM. * * Anyone wanting to debug early can remove UPF_IOREMAP from -- 2.1.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 3/3] ARM: shmobile: r8a7779: Spelling/grammar s/entity/identity/, s/map/mapping/ @ 2014-11-21 0:55 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-21 0:55 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/setup-r8a7779.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-shmobile/setup-r8a7779.c b/arch/arm/mach-shmobile/setup-r8a7779.c index 136078a..65635b1 100644 --- a/arch/arm/mach-shmobile/setup-r8a7779.c +++ b/arch/arm/mach-shmobile/setup-r8a7779.c @@ -52,14 +52,14 @@ #include "r8a7779.h" static struct map_desc r8a7779_io_desc[] __initdata = { - /* 2M entity map for 0xf0000000 (MPCORE) */ + /* 2M identity mapping for 0xf0000000 (MPCORE) */ { .virtual = 0xf0000000, .pfn = __phys_to_pfn(0xf0000000), .length = SZ_2M, .type = MT_DEVICE_NONSHARED }, - /* 16M entity map for 0xfexxxxxx (DMAC-S/HPBREG/INTC2/LRAM/DBSC) */ + /* 16M identity mapping for 0xfexxxxxx (DMAC-S/HPBREG/INTC2/LRAM/DBSC) */ { .virtual = 0xfe000000, .pfn = __phys_to_pfn(0xfe000000), @@ -683,7 +683,7 @@ void __init r8a7779_add_early_devices(void) /* Early serial console setup is not included here due to * memory map collisions. The SCIF serial ports in r8a7779 - * are difficult to entity map 1:1 due to collision with the + * are difficult to identity map 1:1 due to collision with the * virtual memory range used by the coherent DMA code on ARM. * * Anyone wanting to debug early can remove UPF_IOREMAP from -- 2.1.1 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* Re: [GIT PULL] Second Round of Renesas ARM Based SoC Cleanups for v3.19 2014-11-21 0:55 ` Simon Horman @ 2014-11-21 12:06 ` Arnd Bergmann -1 siblings, 0 replies; 776+ messages in thread From: Arnd Bergmann @ 2014-11-21 12:06 UTC (permalink / raw) To: linux-arm-kernel On Friday 21 November 2014 09:55:08 Simon Horman wrote: > Hi Olof, Hi Kevin, Hi Arnd, > > Please consider these second round of Renesas ARM based SoC cleanups for v3.19. > > This pull request is based on the previous round of > such requests, tagged as renesas-soc-cleanups-for-v3.19, > which I have already sent a pull-request for. > Pulled into next/cleanup, thanks! Arnd ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC Cleanups for v3.19 @ 2014-11-21 12:06 ` Arnd Bergmann 0 siblings, 0 replies; 776+ messages in thread From: Arnd Bergmann @ 2014-11-21 12:06 UTC (permalink / raw) To: linux-arm-kernel On Friday 21 November 2014 09:55:08 Simon Horman wrote: > Hi Olof, Hi Kevin, Hi Arnd, > > Please consider these second round of Renesas ARM based SoC cleanups for v3.19. > > This pull request is based on the previous round of > such requests, tagged as renesas-soc-cleanups-for-v3.19, > which I have already sent a pull-request for. > Pulled into next/cleanup, thanks! Arnd ^ permalink raw reply [flat|nested] 776+ messages in thread
* Re: [GIT PULL] Second Round of Renesas ARM Based SoC Cleanups for v3.19 2014-11-21 12:06 ` Arnd Bergmann @ 2014-11-25 0:33 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-25 0:33 UTC (permalink / raw) To: linux-arm-kernel On Fri, Nov 21, 2014 at 01:06:30PM +0100, Arnd Bergmann wrote: > On Friday 21 November 2014 09:55:08 Simon Horman wrote: > > Hi Olof, Hi Kevin, Hi Arnd, > > > > Please consider these second round of Renesas ARM based SoC cleanups for v3.19. > > > > This pull request is based on the previous round of > > such requests, tagged as renesas-soc-cleanups-for-v3.19, > > which I have already sent a pull-request for. > > > > Pulled into next/cleanup, thanks! Thanks Arnd, I think that means everything I asked to be pulled for v3.19 is now in :) ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC Cleanups for v3.19 @ 2014-11-25 0:33 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-11-25 0:33 UTC (permalink / raw) To: linux-arm-kernel On Fri, Nov 21, 2014 at 01:06:30PM +0100, Arnd Bergmann wrote: > On Friday 21 November 2014 09:55:08 Simon Horman wrote: > > Hi Olof, Hi Kevin, Hi Arnd, > > > > Please consider these second round of Renesas ARM based SoC cleanups for v3.19. > > > > This pull request is based on the previous round of > > such requests, tagged as renesas-soc-cleanups-for-v3.19, > > which I have already sent a pull-request for. > > > > Pulled into next/cleanup, thanks! Thanks Arnd, I think that means everything I asked to be pulled for v3.19 is now in :) ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC DT Cleanups for v3.20 @ 2015-01-16 2:34 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-01-16 2:34 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Hi Kevin, Hi Arnd, Please consider this second round of Renesas ARM based SoC DT cleanups for v3.20. The following changes since commit 97bf6af1f928216fd6c5a66e8a57bfa95a659672: Linux 3.19-rc1 (2014-12-20 17:08:50 -0800) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-dt-cleanups2-for-v3.20 for you to fetch changes up to d2b541c98f5402ebb49ee1c636ef5bc31462b4ca: ARM: shmobile: r8a7791: tidyup #sound-dai-cells settings (2015-01-13 11:01:55 +0900) ---------------------------------------------------------------- Second Round of Renesas ARM Based SoC DT Cleanups for v3.20 * Tidy up #sound-dai-cells settings * Drop "renesas,rcar_sound" compatible value ---------------------------------------------------------------- Geert Uytterhoeven (2): ARM: shmobile: r8a7790 dtsi: Drop "renesas,rcar_sound" compatible value ARM: shmobile: r8a7791 dtsi: Drop "renesas,rcar_sound" compatible value Kuninori Morimoto (2): ARM: shmobile: r8a7790: tidyup #sound-dai-cells settings ARM: shmobile: r8a7791: tidyup #sound-dai-cells settings arch/arm/boot/dts/r8a7790-lager.dts | 1 + arch/arm/boot/dts/r8a7790.dtsi | 9 +++++++-- arch/arm/boot/dts/r8a7791-koelsch.dts | 1 + arch/arm/boot/dts/r8a7791.dtsi | 9 +++++++-- 4 files changed, 16 insertions(+), 4 deletions(-) ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC DT Cleanups for v3.20 @ 2015-01-16 2:34 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-01-16 2:34 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Hi Kevin, Hi Arnd, Please consider this second round of Renesas ARM based SoC DT cleanups for v3.20. The following changes since commit 97bf6af1f928216fd6c5a66e8a57bfa95a659672: Linux 3.19-rc1 (2014-12-20 17:08:50 -0800) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-dt-cleanups2-for-v3.20 for you to fetch changes up to d2b541c98f5402ebb49ee1c636ef5bc31462b4ca: ARM: shmobile: r8a7791: tidyup #sound-dai-cells settings (2015-01-13 11:01:55 +0900) ---------------------------------------------------------------- Second Round of Renesas ARM Based SoC DT Cleanups for v3.20 * Tidy up #sound-dai-cells settings * Drop "renesas,rcar_sound" compatible value ---------------------------------------------------------------- Geert Uytterhoeven (2): ARM: shmobile: r8a7790 dtsi: Drop "renesas,rcar_sound" compatible value ARM: shmobile: r8a7791 dtsi: Drop "renesas,rcar_sound" compatible value Kuninori Morimoto (2): ARM: shmobile: r8a7790: tidyup #sound-dai-cells settings ARM: shmobile: r8a7791: tidyup #sound-dai-cells settings arch/arm/boot/dts/r8a7790-lager.dts | 1 + arch/arm/boot/dts/r8a7790.dtsi | 9 +++++++-- arch/arm/boot/dts/r8a7791-koelsch.dts | 1 + arch/arm/boot/dts/r8a7791.dtsi | 9 +++++++-- 4 files changed, 16 insertions(+), 4 deletions(-) ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH 1/4] ARM: shmobile: r8a7790 dtsi: Drop "renesas,rcar_sound" compatible value 2015-01-16 2:34 ` Simon Horman @ 2015-01-16 2:34 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-01-16 2:34 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> The "renesas,rcar_sound" compatible property value was never processed nor documented. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7790.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/r8a7790.dtsi b/arch/arm/boot/dts/r8a7790.dtsi index af7e255..7cef4d9 100644 --- a/arch/arm/boot/dts/r8a7790.dtsi +++ b/arch/arm/boot/dts/r8a7790.dtsi @@ -1398,7 +1398,7 @@ rcar_sound: rcar_sound@ec500000 { #sound-dai-cells = <1>; - compatible = "renesas,rcar_sound-r8a7790", "renesas,rcar_sound-gen2", "renesas,rcar_sound"; + compatible = "renesas,rcar_sound-r8a7790", "renesas,rcar_sound-gen2"; reg = <0 0xec500000 0 0x1000>, /* SCU */ <0 0xec5a0000 0 0x100>, /* ADG */ <0 0xec540000 0 0x1000>, /* SSIU */ -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 1/4] ARM: shmobile: r8a7790 dtsi: Drop "renesas, rcar_sound" compatible value @ 2015-01-16 2:34 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-01-16 2:34 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> The "renesas,rcar_sound" compatible property value was never processed nor documented. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7790.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/r8a7790.dtsi b/arch/arm/boot/dts/r8a7790.dtsi index af7e255..7cef4d9 100644 --- a/arch/arm/boot/dts/r8a7790.dtsi +++ b/arch/arm/boot/dts/r8a7790.dtsi @@ -1398,7 +1398,7 @@ rcar_sound: rcar_sound at ec500000 { #sound-dai-cells = <1>; - compatible = "renesas,rcar_sound-r8a7790", "renesas,rcar_sound-gen2", "renesas,rcar_sound"; + compatible = "renesas,rcar_sound-r8a7790", "renesas,rcar_sound-gen2"; reg = <0 0xec500000 0 0x1000>, /* SCU */ <0 0xec5a0000 0 0x100>, /* ADG */ <0 0xec540000 0 0x1000>, /* SSIU */ -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 2/4] ARM: shmobile: r8a7791 dtsi: Drop "renesas,rcar_sound" compatible value 2015-01-16 2:34 ` Simon Horman @ 2015-01-16 2:34 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-01-16 2:34 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> The "renesas,rcar_sound" compatible property value was never processed nor documented. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/r8a7791.dtsi b/arch/arm/boot/dts/r8a7791.dtsi index 77c0bee..7fdd1a6 100644 --- a/arch/arm/boot/dts/r8a7791.dtsi +++ b/arch/arm/boot/dts/r8a7791.dtsi @@ -1382,7 +1382,7 @@ rcar_sound: rcar_sound@ec500000 { #sound-dai-cells = <1>; - compatible = "renesas,rcar_sound-r8a7791", "renesas,rcar_sound-gen2", "renesas,rcar_sound"; + compatible = "renesas,rcar_sound-r8a7791", "renesas,rcar_sound-gen2"; reg = <0 0xec500000 0 0x1000>, /* SCU */ <0 0xec5a0000 0 0x100>, /* ADG */ <0 0xec540000 0 0x1000>, /* SSIU */ -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 2/4] ARM: shmobile: r8a7791 dtsi: Drop "renesas, rcar_sound" compatible value @ 2015-01-16 2:34 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-01-16 2:34 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> The "renesas,rcar_sound" compatible property value was never processed nor documented. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/r8a7791.dtsi b/arch/arm/boot/dts/r8a7791.dtsi index 77c0bee..7fdd1a6 100644 --- a/arch/arm/boot/dts/r8a7791.dtsi +++ b/arch/arm/boot/dts/r8a7791.dtsi @@ -1382,7 +1382,7 @@ rcar_sound: rcar_sound at ec500000 { #sound-dai-cells = <1>; - compatible = "renesas,rcar_sound-r8a7791", "renesas,rcar_sound-gen2", "renesas,rcar_sound"; + compatible = "renesas,rcar_sound-r8a7791", "renesas,rcar_sound-gen2"; reg = <0 0xec500000 0 0x1000>, /* SCU */ <0 0xec5a0000 0 0x100>, /* ADG */ <0 0xec540000 0 0x1000>, /* SSIU */ -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 3/4] ARM: shmobile: r8a7790: tidyup #sound-dai-cells settings 2015-01-16 2:34 ` Simon Horman @ 2015-01-16 2:34 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-01-16 2:34 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Renesas sound driver needs #sound-dai-cells settings, but, this usage is a little bit confusable. It came from ALSA SoC historical reasons. The sound DAI naming method is different between Single/Multi DAI in the ALSA framework, and it is used for sound card matching. And this #sound-dai-cells has relationship to it. Current SoC dtsi has #sound-dai-cells = <1> as default settings (= it is assuming that board/platform has multi DAI), and board/platform side needs to overwrite it if board/platform was single DAI. This style is more confusable for users. This patch removes SoC side default settings, and force to set it by board/platform side. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7790-lager.dts | 1 + arch/arm/boot/dts/r8a7790.dtsi | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/r8a7790-lager.dts b/arch/arm/boot/dts/r8a7790-lager.dts index 636d53b..2bc20e4 100644 --- a/arch/arm/boot/dts/r8a7790-lager.dts +++ b/arch/arm/boot/dts/r8a7790-lager.dts @@ -579,6 +579,7 @@ pinctrl-0 = <&sound_pins &sound_clk_pins>; pinctrl-names = "default"; + /* Single DAI */ #sound-dai-cells = <0>; status = "okay"; diff --git a/arch/arm/boot/dts/r8a7790.dtsi b/arch/arm/boot/dts/r8a7790.dtsi index 7cef4d9..1543fa5 100644 --- a/arch/arm/boot/dts/r8a7790.dtsi +++ b/arch/arm/boot/dts/r8a7790.dtsi @@ -1397,7 +1397,12 @@ }; rcar_sound: rcar_sound@ec500000 { - #sound-dai-cells = <1>; + /* + * #sound-dai-cells is required + * + * Single DAI : #sound-dai-cells = <0>; <&rcar_sound>; + * Multi DAI : #sound-dai-cells = <1>; <&rcar_sound N>; + */ compatible = "renesas,rcar_sound-r8a7790", "renesas,rcar_sound-gen2"; reg = <0 0xec500000 0 0x1000>, /* SCU */ <0 0xec5a0000 0 0x100>, /* ADG */ -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 3/4] ARM: shmobile: r8a7790: tidyup #sound-dai-cells settings @ 2015-01-16 2:34 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-01-16 2:34 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Renesas sound driver needs #sound-dai-cells settings, but, this usage is a little bit confusable. It came from ALSA SoC historical reasons. The sound DAI naming method is different between Single/Multi DAI in the ALSA framework, and it is used for sound card matching. And this #sound-dai-cells has relationship to it. Current SoC dtsi has #sound-dai-cells = <1> as default settings (= it is assuming that board/platform has multi DAI), and board/platform side needs to overwrite it if board/platform was single DAI. This style is more confusable for users. This patch removes SoC side default settings, and force to set it by board/platform side. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7790-lager.dts | 1 + arch/arm/boot/dts/r8a7790.dtsi | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/r8a7790-lager.dts b/arch/arm/boot/dts/r8a7790-lager.dts index 636d53b..2bc20e4 100644 --- a/arch/arm/boot/dts/r8a7790-lager.dts +++ b/arch/arm/boot/dts/r8a7790-lager.dts @@ -579,6 +579,7 @@ pinctrl-0 = <&sound_pins &sound_clk_pins>; pinctrl-names = "default"; + /* Single DAI */ #sound-dai-cells = <0>; status = "okay"; diff --git a/arch/arm/boot/dts/r8a7790.dtsi b/arch/arm/boot/dts/r8a7790.dtsi index 7cef4d9..1543fa5 100644 --- a/arch/arm/boot/dts/r8a7790.dtsi +++ b/arch/arm/boot/dts/r8a7790.dtsi @@ -1397,7 +1397,12 @@ }; rcar_sound: rcar_sound at ec500000 { - #sound-dai-cells = <1>; + /* + * #sound-dai-cells is required + * + * Single DAI : #sound-dai-cells = <0>; <&rcar_sound>; + * Multi DAI : #sound-dai-cells = <1>; <&rcar_sound N>; + */ compatible = "renesas,rcar_sound-r8a7790", "renesas,rcar_sound-gen2"; reg = <0 0xec500000 0 0x1000>, /* SCU */ <0 0xec5a0000 0 0x100>, /* ADG */ -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 3/4] ARM: shmobile: r8a7790: tidyup SDHI register size on DTSI 2015-01-16 2:34 ` Simon Horman (?) @ 2015-01-22 4:09 ` Kuninori Morimoto -1 siblings, 0 replies; 776+ messages in thread From: Kuninori Morimoto @ 2015-01-22 4:09 UTC (permalink / raw) To: linux-sh From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> r8a7790 SDHI ch0/ch1 has SD_DMACR which is located in 0x324. This patch updates register size Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> --- arch/arm/boot/dts/r8a7790.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/r8a7790.dtsi b/arch/arm/boot/dts/r8a7790.dtsi index 3c12f78..56847bf 100644 --- a/arch/arm/boot/dts/r8a7790.dtsi +++ b/arch/arm/boot/dts/r8a7790.dtsi @@ -493,7 +493,7 @@ sdhi0: sd@ee100000 { compatible = "renesas,sdhi-r8a7790"; - reg = <0 0xee100000 0 0x200>; + reg = <0 0xee100000 0 0x328>; interrupts = <0 165 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp3_clks R8A7790_CLK_SDHI0>; dmas = <&dmac1 0xcd>, <&dmac1 0xce>; @@ -503,7 +503,7 @@ sdhi1: sd@ee120000 { compatible = "renesas,sdhi-r8a7790"; - reg = <0 0xee120000 0 0x200>; + reg = <0 0xee120000 0 0x328>; interrupts = <0 166 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp3_clks R8A7790_CLK_SDHI1>; dmas = <&dmac1 0xc9>, <&dmac1 0xca>; -- 1.7.9.5 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 4/4] ARM: shmobile: r8a7791: tidyup #sound-dai-cells settings 2015-01-16 2:34 ` Simon Horman @ 2015-01-16 2:34 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-01-16 2:34 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Renesas sound driver needs #sound-dai-cells settings, but, this usage is a little bit confusable. It came from ALSA SoC historical reasons. The sound DAI naming method is different between Single/Multi DAI in the ALSA framework, and it is used for sound card matching. And this #sound-dai-cells has relationship to it. Current SoC dtsi has #sound-dai-cells = <1> as default settings (= it is assuming that board/platform has multi DAI), and board/platform side needs to overwrite it if board/platform was single DAI. This style is more confusable for users. This patch removes SoC side default settings, and force to set it by board/platform side. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791-koelsch.dts | 1 + arch/arm/boot/dts/r8a7791.dtsi | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/r8a7791-koelsch.dts b/arch/arm/boot/dts/r8a7791-koelsch.dts index 990af16..9c651c0 100644 --- a/arch/arm/boot/dts/r8a7791-koelsch.dts +++ b/arch/arm/boot/dts/r8a7791-koelsch.dts @@ -582,6 +582,7 @@ pinctrl-0 = <&sound_pins &sound_clk_pins>; pinctrl-names = "default"; + /* Single DAI */ #sound-dai-cells = <0>; status = "okay"; diff --git a/arch/arm/boot/dts/r8a7791.dtsi b/arch/arm/boot/dts/r8a7791.dtsi index 7fdd1a6..002dbc5 100644 --- a/arch/arm/boot/dts/r8a7791.dtsi +++ b/arch/arm/boot/dts/r8a7791.dtsi @@ -1381,7 +1381,12 @@ }; rcar_sound: rcar_sound@ec500000 { - #sound-dai-cells = <1>; + /* + * #sound-dai-cells is required + * + * Single DAI : #sound-dai-cells = <0>; <&rcar_sound>; + * Multi DAI : #sound-dai-cells = <1>; <&rcar_sound N>; + */ compatible = "renesas,rcar_sound-r8a7791", "renesas,rcar_sound-gen2"; reg = <0 0xec500000 0 0x1000>, /* SCU */ <0 0xec5a0000 0 0x100>, /* ADG */ -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 4/4] ARM: shmobile: r8a7791: tidyup #sound-dai-cells settings @ 2015-01-16 2:34 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-01-16 2:34 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Renesas sound driver needs #sound-dai-cells settings, but, this usage is a little bit confusable. It came from ALSA SoC historical reasons. The sound DAI naming method is different between Single/Multi DAI in the ALSA framework, and it is used for sound card matching. And this #sound-dai-cells has relationship to it. Current SoC dtsi has #sound-dai-cells = <1> as default settings (= it is assuming that board/platform has multi DAI), and board/platform side needs to overwrite it if board/platform was single DAI. This style is more confusable for users. This patch removes SoC side default settings, and force to set it by board/platform side. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791-koelsch.dts | 1 + arch/arm/boot/dts/r8a7791.dtsi | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/r8a7791-koelsch.dts b/arch/arm/boot/dts/r8a7791-koelsch.dts index 990af16..9c651c0 100644 --- a/arch/arm/boot/dts/r8a7791-koelsch.dts +++ b/arch/arm/boot/dts/r8a7791-koelsch.dts @@ -582,6 +582,7 @@ pinctrl-0 = <&sound_pins &sound_clk_pins>; pinctrl-names = "default"; + /* Single DAI */ #sound-dai-cells = <0>; status = "okay"; diff --git a/arch/arm/boot/dts/r8a7791.dtsi b/arch/arm/boot/dts/r8a7791.dtsi index 7fdd1a6..002dbc5 100644 --- a/arch/arm/boot/dts/r8a7791.dtsi +++ b/arch/arm/boot/dts/r8a7791.dtsi @@ -1381,7 +1381,12 @@ }; rcar_sound: rcar_sound at ec500000 { - #sound-dai-cells = <1>; + /* + * #sound-dai-cells is required + * + * Single DAI : #sound-dai-cells = <0>; <&rcar_sound>; + * Multi DAI : #sound-dai-cells = <1>; <&rcar_sound N>; + */ compatible = "renesas,rcar_sound-r8a7791", "renesas,rcar_sound-gen2"; reg = <0 0xec500000 0 0x1000>, /* SCU */ <0 0xec5a0000 0 0x100>, /* ADG */ -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 4/4] ARM: shmobile: r8a7791: tidyup SDHI register size on DTSI 2015-01-16 2:34 ` Simon Horman (?) @ 2015-01-22 4:09 ` Kuninori Morimoto -1 siblings, 0 replies; 776+ messages in thread From: Kuninori Morimoto @ 2015-01-22 4:09 UTC (permalink / raw) To: linux-sh From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> r8a7791 SDHI ch0/ch1 has SD_DMACR which is located in 0x324. This patch updates register size Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> --- arch/arm/boot/dts/r8a7791.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/r8a7791.dtsi b/arch/arm/boot/dts/r8a7791.dtsi index 3c45d9b..8a2fc56 100644 --- a/arch/arm/boot/dts/r8a7791.dtsi +++ b/arch/arm/boot/dts/r8a7791.dtsi @@ -482,7 +482,7 @@ sdhi0: sd@ee100000 { compatible = "renesas,sdhi-r8a7791"; - reg = <0 0xee100000 0 0x200>; + reg = <0 0xee100000 0 0x328>; interrupts = <0 165 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp3_clks R8A7791_CLK_SDHI0>; dmas = <&dmac1 0xcd>, <&dmac1 0xce>; -- 1.7.9.5 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* Re: [GIT PULL] Second Round of Renesas ARM Based SoC DT Cleanups for v3.20 2015-01-16 2:34 ` Simon Horman @ 2015-01-20 0:34 ` Olof Johansson -1 siblings, 0 replies; 776+ messages in thread From: Olof Johansson @ 2015-01-20 0:34 UTC (permalink / raw) To: linux-arm-kernel On Fri, Jan 16, 2015 at 11:34:44AM +0900, Simon Horman wrote: > Hi Olof, Hi Kevin, Hi Arnd, > > Please consider this second round of Renesas ARM based SoC DT cleanups for > v3.20. > > > The following changes since commit 97bf6af1f928216fd6c5a66e8a57bfa95a659672: > > Linux 3.19-rc1 (2014-12-20 17:08:50 -0800) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-dt-cleanups2-for-v3.20 > > for you to fetch changes up to d2b541c98f5402ebb49ee1c636ef5bc31462b4ca: > > ARM: shmobile: r8a7791: tidyup #sound-dai-cells settings (2015-01-13 11:01:55 +0900) Merged, thanks. -Olof ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC DT Cleanups for v3.20 @ 2015-01-20 0:34 ` Olof Johansson 0 siblings, 0 replies; 776+ messages in thread From: Olof Johansson @ 2015-01-20 0:34 UTC (permalink / raw) To: linux-arm-kernel On Fri, Jan 16, 2015 at 11:34:44AM +0900, Simon Horman wrote: > Hi Olof, Hi Kevin, Hi Arnd, > > Please consider this second round of Renesas ARM based SoC DT cleanups for > v3.20. > > > The following changes since commit 97bf6af1f928216fd6c5a66e8a57bfa95a659672: > > Linux 3.19-rc1 (2014-12-20 17:08:50 -0800) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-dt-cleanups2-for-v3.20 > > for you to fetch changes up to d2b541c98f5402ebb49ee1c636ef5bc31462b4ca: > > ARM: shmobile: r8a7791: tidyup #sound-dai-cells settings (2015-01-13 11:01:55 +0900) Merged, thanks. -Olof ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC Defconfig Updates for v3.20 @ 2015-01-16 2:35 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-01-16 2:35 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Hi Kevin, Hi Arnd, Please consider these second round of Renesas ARM based SoC defconfig updates for v3.20. This pull request is based on the previous round of such requests, tagged as renesas-defconfig-for-v3.20, which I have already sent a pull-request for. This pull request has a minor conflict in arch/arm/configs/shmobile_defconfig with the pull-request "Renesas ARM Based SoC Lager Board Removal for v3.20", tagged as renesas-lager-board-removal-for-v3.20, which you have pulled into the next/cleanup branch. A resolution for this conflict is in the renesas-next-20150114-v3.19-rc1 tag of my renesas tree. In words the resolution is to add CONFIG_ARCH_SH73A0=y and remove CONFIG_MACH_LAGER=y. The resulting area of arch/arm/configs/shmobile_defconfig should look like this: CONFIG_ARCH_R8A7790=y CONFIG_ARCH_R8A7791=y CONFIG_ARCH_R8A7794=y CONFIG_ARCH_SH73A0=y CONFIG_MACH_MARZEN=y CONFIG_CPU_BPREDICT_DISABLE=y CONFIG_PL310_ERRATA_588369=y The following changes since commit db54d850b686c2ca81c10dd3582e98ee089a0e3a: ARM: shmobile: Enable DA9063 watchdog in multiplatform defconfig (2014-12-21 16:53:36 +0900) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-defconfig2-for-v3.20 for you to fetch changes up to eb4513482d1c4882e3633528ccc48d77581b7bb1: ARM: shmobile: Enable kzm9g board in multiplatform defconfig (2015-01-14 09:51:08 +0900) ---------------------------------------------------------------- Second Round of Renesas ARM Based SoC Defconfig Updates for v3.20 * Enable kzm9g board in multiplatform defconfig ---------------------------------------------------------------- Geert Uytterhoeven (1): ARM: shmobile: Enable kzm9g board in multiplatform defconfig arch/arm/configs/shmobile_defconfig | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC Defconfig Updates for v3.20 @ 2015-01-16 2:35 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-01-16 2:35 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Hi Kevin, Hi Arnd, Please consider these second round of Renesas ARM based SoC defconfig updates for v3.20. This pull request is based on the previous round of such requests, tagged as renesas-defconfig-for-v3.20, which I have already sent a pull-request for. This pull request has a minor conflict in arch/arm/configs/shmobile_defconfig with the pull-request "Renesas ARM Based SoC Lager Board Removal for v3.20", tagged as renesas-lager-board-removal-for-v3.20, which you have pulled into the next/cleanup branch. A resolution for this conflict is in the renesas-next-20150114-v3.19-rc1 tag of my renesas tree. In words the resolution is to add CONFIG_ARCH_SH73A0=y and remove CONFIG_MACH_LAGER=y. The resulting area of arch/arm/configs/shmobile_defconfig should look like this: CONFIG_ARCH_R8A7790=y CONFIG_ARCH_R8A7791=y CONFIG_ARCH_R8A7794=y CONFIG_ARCH_SH73A0=y CONFIG_MACH_MARZEN=y CONFIG_CPU_BPREDICT_DISABLE=y CONFIG_PL310_ERRATA_588369=y The following changes since commit db54d850b686c2ca81c10dd3582e98ee089a0e3a: ARM: shmobile: Enable DA9063 watchdog in multiplatform defconfig (2014-12-21 16:53:36 +0900) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-defconfig2-for-v3.20 for you to fetch changes up to eb4513482d1c4882e3633528ccc48d77581b7bb1: ARM: shmobile: Enable kzm9g board in multiplatform defconfig (2015-01-14 09:51:08 +0900) ---------------------------------------------------------------- Second Round of Renesas ARM Based SoC Defconfig Updates for v3.20 * Enable kzm9g board in multiplatform defconfig ---------------------------------------------------------------- Geert Uytterhoeven (1): ARM: shmobile: Enable kzm9g board in multiplatform defconfig arch/arm/configs/shmobile_defconfig | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH] ARM: shmobile: Enable kzm9g board in multiplatform defconfig 2015-01-16 2:35 ` Simon Horman @ 2015-01-16 2:35 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-01-16 2:35 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/configs/shmobile_defconfig | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/arch/arm/configs/shmobile_defconfig b/arch/arm/configs/shmobile_defconfig index 99e1226..4f9868d 100644 --- a/arch/arm/configs/shmobile_defconfig +++ b/arch/arm/configs/shmobile_defconfig @@ -17,6 +17,7 @@ CONFIG_ARCH_R8A7779=y CONFIG_ARCH_R8A7790=y CONFIG_ARCH_R8A7791=y CONFIG_ARCH_R8A7794=y +CONFIG_ARCH_SH73A0=y CONFIG_MACH_LAGER=y CONFIG_MACH_MARZEN=y CONFIG_CPU_BPREDICT_DISABLE=y @@ -45,7 +46,6 @@ CONFIG_CPUFREQ_DT=y CONFIG_VFP=y CONFIG_NEON=y # CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS is not set -CONFIG_PM=y CONFIG_NET=y CONFIG_PACKET=y CONFIG_UNIX=y @@ -55,6 +55,7 @@ CONFIG_IP_PNP_DHCP=y CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug" CONFIG_DEVTMPFS=y CONFIG_DEVTMPFS_MOUNT=y +CONFIG_SIMPLE_PM_BUS=y CONFIG_MTD=y CONFIG_MTD_BLOCK=y CONFIG_MTD_M25P80=y @@ -82,10 +83,13 @@ CONFIG_SMSC911X=y CONFIG_SMSC_PHY=y CONFIG_MICREL_PHY=y # CONFIG_INPUT_MOUSEDEV_PSAUX is not set +CONFIG_INPUT_EVDEV=y CONFIG_KEYBOARD_GPIO=y # CONFIG_INPUT_MOUSE is not set CONFIG_INPUT_TOUCHSCREEN=y CONFIG_TOUCHSCREEN_ST1232=y +CONFIG_INPUT_MISC=y +CONFIG_INPUT_ADXL34X=y # CONFIG_LEGACY_PTYS is not set CONFIG_SERIAL_8250=y CONFIG_SERIAL_8250_CONSOLE=y @@ -94,6 +98,7 @@ CONFIG_SERIAL_8250_EM=y CONFIG_SERIAL_SH_SCI=y CONFIG_SERIAL_SH_SCI_NR_UARTS CONFIG_SERIAL_SH_SCI_CONSOLE=y +CONFIG_I2C_CHARDEV=y CONFIG_I2C_GPIO=y CONFIG_I2C_RIIC=y CONFIG_I2C_SH_MOBILE=y @@ -104,14 +109,16 @@ CONFIG_SPI_SH_MSIOF=y CONFIG_SPI_SH_HSPI=y CONFIG_GPIO_EM=y CONFIG_GPIO_RCAR=y +CONFIG_GPIO_PCF857X=y # CONFIG_HWMON is not set CONFIG_THERMAL=y CONFIG_CPU_THERMAL=y CONFIG_RCAR_THERMAL=y CONFIG_WATCHDOG=y CONFIG_DA9063_WATCHDOG=y +CONFIG_MFD_AS3711=y CONFIG_MFD_DA9063=y -CONFIG_REGULATOR=y +CONFIG_REGULATOR_AS3711=y CONFIG_REGULATOR_DA9210=y CONFIG_REGULATOR_GPIO=y CONFIG_MEDIA_SUPPORT=y @@ -128,10 +135,12 @@ CONFIG_VIDEO_RENESAS_VSP1=y CONFIG_VIDEO_ADV7180=y CONFIG_DRM=y CONFIG_DRM_RCAR_DU=y -CONFIG_BACKLIGHT_LCD_SUPPORT=y +CONFIG_FB_SH_MOBILE_LCDC=y +CONFIG_FB_SH_MOBILE_MERAM=y # CONFIG_LCD_CLASS_DEVICE is not set # CONFIG_BACKLIGHT_GENERIC is not set CONFIG_BACKLIGHT_PWM=y +CONFIG_BACKLIGHT_AS3711=y CONFIG_SOUND=y CONFIG_SND=y CONFIG_SND_SOC=y @@ -142,6 +151,7 @@ CONFIG_SND_SOC_WM8978=y CONFIG_USB=y CONFIG_USB_EHCI_HCD=y CONFIG_USB_OHCI_HCD=y +CONFIG_USB_R8A66597_HCD=y CONFIG_USB_RENESAS_USBHS=y CONFIG_USB_RCAR_PHY=y CONFIG_USB_RCAR_GEN2_PHY=y @@ -155,11 +165,14 @@ CONFIG_NEW_LEDS=y CONFIG_LEDS_CLASS=y CONFIG_LEDS_GPIO=y CONFIG_RTC_CLASS=y +CONFIG_RTC_DRV_RS5C372=y CONFIG_RTC_DRV_S35390A=y CONFIG_DMADEVICES=y CONFIG_SH_DMAE=y CONFIG_RCAR_DMAC=y # CONFIG_IOMMU_SUPPORT is not set +CONFIG_IIO=y +CONFIG_AK8975=y CONFIG_PWM=y CONFIG_PWM_RENESAS_TPU=y # CONFIG_DNOTIFY is not set -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH] ARM: shmobile: Enable kzm9g board in multiplatform defconfig @ 2015-01-16 2:35 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-01-16 2:35 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/configs/shmobile_defconfig | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/arch/arm/configs/shmobile_defconfig b/arch/arm/configs/shmobile_defconfig index 99e1226..4f9868d 100644 --- a/arch/arm/configs/shmobile_defconfig +++ b/arch/arm/configs/shmobile_defconfig @@ -17,6 +17,7 @@ CONFIG_ARCH_R8A7779=y CONFIG_ARCH_R8A7790=y CONFIG_ARCH_R8A7791=y CONFIG_ARCH_R8A7794=y +CONFIG_ARCH_SH73A0=y CONFIG_MACH_LAGER=y CONFIG_MACH_MARZEN=y CONFIG_CPU_BPREDICT_DISABLE=y @@ -45,7 +46,6 @@ CONFIG_CPUFREQ_DT=y CONFIG_VFP=y CONFIG_NEON=y # CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS is not set -CONFIG_PM=y CONFIG_NET=y CONFIG_PACKET=y CONFIG_UNIX=y @@ -55,6 +55,7 @@ CONFIG_IP_PNP_DHCP=y CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug" CONFIG_DEVTMPFS=y CONFIG_DEVTMPFS_MOUNT=y +CONFIG_SIMPLE_PM_BUS=y CONFIG_MTD=y CONFIG_MTD_BLOCK=y CONFIG_MTD_M25P80=y @@ -82,10 +83,13 @@ CONFIG_SMSC911X=y CONFIG_SMSC_PHY=y CONFIG_MICREL_PHY=y # CONFIG_INPUT_MOUSEDEV_PSAUX is not set +CONFIG_INPUT_EVDEV=y CONFIG_KEYBOARD_GPIO=y # CONFIG_INPUT_MOUSE is not set CONFIG_INPUT_TOUCHSCREEN=y CONFIG_TOUCHSCREEN_ST1232=y +CONFIG_INPUT_MISC=y +CONFIG_INPUT_ADXL34X=y # CONFIG_LEGACY_PTYS is not set CONFIG_SERIAL_8250=y CONFIG_SERIAL_8250_CONSOLE=y @@ -94,6 +98,7 @@ CONFIG_SERIAL_8250_EM=y CONFIG_SERIAL_SH_SCI=y CONFIG_SERIAL_SH_SCI_NR_UARTS=20 CONFIG_SERIAL_SH_SCI_CONSOLE=y +CONFIG_I2C_CHARDEV=y CONFIG_I2C_GPIO=y CONFIG_I2C_RIIC=y CONFIG_I2C_SH_MOBILE=y @@ -104,14 +109,16 @@ CONFIG_SPI_SH_MSIOF=y CONFIG_SPI_SH_HSPI=y CONFIG_GPIO_EM=y CONFIG_GPIO_RCAR=y +CONFIG_GPIO_PCF857X=y # CONFIG_HWMON is not set CONFIG_THERMAL=y CONFIG_CPU_THERMAL=y CONFIG_RCAR_THERMAL=y CONFIG_WATCHDOG=y CONFIG_DA9063_WATCHDOG=y +CONFIG_MFD_AS3711=y CONFIG_MFD_DA9063=y -CONFIG_REGULATOR=y +CONFIG_REGULATOR_AS3711=y CONFIG_REGULATOR_DA9210=y CONFIG_REGULATOR_GPIO=y CONFIG_MEDIA_SUPPORT=y @@ -128,10 +135,12 @@ CONFIG_VIDEO_RENESAS_VSP1=y CONFIG_VIDEO_ADV7180=y CONFIG_DRM=y CONFIG_DRM_RCAR_DU=y -CONFIG_BACKLIGHT_LCD_SUPPORT=y +CONFIG_FB_SH_MOBILE_LCDC=y +CONFIG_FB_SH_MOBILE_MERAM=y # CONFIG_LCD_CLASS_DEVICE is not set # CONFIG_BACKLIGHT_GENERIC is not set CONFIG_BACKLIGHT_PWM=y +CONFIG_BACKLIGHT_AS3711=y CONFIG_SOUND=y CONFIG_SND=y CONFIG_SND_SOC=y @@ -142,6 +151,7 @@ CONFIG_SND_SOC_WM8978=y CONFIG_USB=y CONFIG_USB_EHCI_HCD=y CONFIG_USB_OHCI_HCD=y +CONFIG_USB_R8A66597_HCD=y CONFIG_USB_RENESAS_USBHS=y CONFIG_USB_RCAR_PHY=y CONFIG_USB_RCAR_GEN2_PHY=y @@ -155,11 +165,14 @@ CONFIG_NEW_LEDS=y CONFIG_LEDS_CLASS=y CONFIG_LEDS_GPIO=y CONFIG_RTC_CLASS=y +CONFIG_RTC_DRV_RS5C372=y CONFIG_RTC_DRV_S35390A=y CONFIG_DMADEVICES=y CONFIG_SH_DMAE=y CONFIG_RCAR_DMAC=y # CONFIG_IOMMU_SUPPORT is not set +CONFIG_IIO=y +CONFIG_AK8975=y CONFIG_PWM=y CONFIG_PWM_RENESAS_TPU=y # CONFIG_DNOTIFY is not set -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* Re: [GIT PULL] Second Round of Renesas ARM Based SoC Defconfig Updates for v3.20 2015-01-16 2:35 ` Simon Horman @ 2015-01-21 22:52 ` Olof Johansson -1 siblings, 0 replies; 776+ messages in thread From: Olof Johansson @ 2015-01-21 22:52 UTC (permalink / raw) To: linux-arm-kernel On Fri, Jan 16, 2015 at 11:35:15AM +0900, Simon Horman wrote: > Hi Olof, Hi Kevin, Hi Arnd, > > Please consider these second round of Renesas ARM based SoC defconfig updates for v3.20. > > This pull request is based on the previous round of > such requests, tagged as renesas-defconfig-for-v3.20, > which I have already sent a pull-request for. > > This pull request has a minor conflict in > arch/arm/configs/shmobile_defconfig with the pull-request > "Renesas ARM Based SoC Lager Board Removal for v3.20", tagged as > renesas-lager-board-removal-for-v3.20, which you have pulled into the > next/cleanup branch. > > A resolution for this conflict is in the renesas-next-20150114-v3.19-rc1 > tag of my renesas tree. > > In words the resolution is to add CONFIG_ARCH_SH73A0=y and > remove CONFIG_MACH_LAGER=y. > > The resulting area of arch/arm/configs/shmobile_defconfig should look like > this: > > CONFIG_ARCH_R8A7790=y > CONFIG_ARCH_R8A7791=y > CONFIG_ARCH_R8A7794=y > CONFIG_ARCH_SH73A0=y > CONFIG_MACH_MARZEN=y > CONFIG_CPU_BPREDICT_DISABLE=y > CONFIG_PL310_ERRATA_588369=y > > > The following changes since commit db54d850b686c2ca81c10dd3582e98ee089a0e3a: > > ARM: shmobile: Enable DA9063 watchdog in multiplatform defconfig (2014-12-21 16:53:36 +0900) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-defconfig2-for-v3.20 > > for you to fetch changes up to eb4513482d1c4882e3633528ccc48d77581b7bb1: > > ARM: shmobile: Enable kzm9g board in multiplatform defconfig (2015-01-14 09:51:08 +0900) Merged, thanks. -Olof ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC Defconfig Updates for v3.20 @ 2015-01-21 22:52 ` Olof Johansson 0 siblings, 0 replies; 776+ messages in thread From: Olof Johansson @ 2015-01-21 22:52 UTC (permalink / raw) To: linux-arm-kernel On Fri, Jan 16, 2015 at 11:35:15AM +0900, Simon Horman wrote: > Hi Olof, Hi Kevin, Hi Arnd, > > Please consider these second round of Renesas ARM based SoC defconfig updates for v3.20. > > This pull request is based on the previous round of > such requests, tagged as renesas-defconfig-for-v3.20, > which I have already sent a pull-request for. > > This pull request has a minor conflict in > arch/arm/configs/shmobile_defconfig with the pull-request > "Renesas ARM Based SoC Lager Board Removal for v3.20", tagged as > renesas-lager-board-removal-for-v3.20, which you have pulled into the > next/cleanup branch. > > A resolution for this conflict is in the renesas-next-20150114-v3.19-rc1 > tag of my renesas tree. > > In words the resolution is to add CONFIG_ARCH_SH73A0=y and > remove CONFIG_MACH_LAGER=y. > > The resulting area of arch/arm/configs/shmobile_defconfig should look like > this: > > CONFIG_ARCH_R8A7790=y > CONFIG_ARCH_R8A7791=y > CONFIG_ARCH_R8A7794=y > CONFIG_ARCH_SH73A0=y > CONFIG_MACH_MARZEN=y > CONFIG_CPU_BPREDICT_DISABLE=y > CONFIG_PL310_ERRATA_588369=y > > > The following changes since commit db54d850b686c2ca81c10dd3582e98ee089a0e3a: > > ARM: shmobile: Enable DA9063 watchdog in multiplatform defconfig (2014-12-21 16:53:36 +0900) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-defconfig2-for-v3.20 > > for you to fetch changes up to eb4513482d1c4882e3633528ccc48d77581b7bb1: > > ARM: shmobile: Enable kzm9g board in multiplatform defconfig (2015-01-14 09:51:08 +0900) Merged, thanks. -Olof ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC Sh73a0 CCF Updates for v3.20 @ 2015-01-16 2:45 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-01-16 2:45 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Hi Kevin, Hi Arnd, Please consider these second round of Renesas ARM based SoC sh73a0 CCF updates for v3.20. This pull request is based on the previous round of such requests, tagged as renesas-sh73a0-ccf-for-v3.20, which you have already pulled. The following changes since commit 09bd745b555c262d1e2c851777317f3adf3cf3d4: ARM: shmobile: sh73a0: disable legacy clock initialization (2014-12-21 17:09:25 +0900) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-sh73a0-ccf2-for-v3.20 for you to fetch changes up to 16bd794f9432b556ec797cbf16c5e575a18f7030: clk: shmobile: fix sparse NULL pointer warning (2015-01-14 13:13:24 +0900) ---------------------------------------------------------------- Second Round of Renesas ARM Based SoC Sh73a0 CCF Updates for v3.20 * Fix sparse NULL pointer warning ---------------------------------------------------------------- Wei Yongjun (1): clk: shmobile: fix sparse NULL pointer warning drivers/clk/shmobile/clk-sh73a0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC Sh73a0 CCF Updates for v3.20 @ 2015-01-16 2:45 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-01-16 2:45 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Hi Kevin, Hi Arnd, Please consider these second round of Renesas ARM based SoC sh73a0 CCF updates for v3.20. This pull request is based on the previous round of such requests, tagged as renesas-sh73a0-ccf-for-v3.20, which you have already pulled. The following changes since commit 09bd745b555c262d1e2c851777317f3adf3cf3d4: ARM: shmobile: sh73a0: disable legacy clock initialization (2014-12-21 17:09:25 +0900) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-sh73a0-ccf2-for-v3.20 for you to fetch changes up to 16bd794f9432b556ec797cbf16c5e575a18f7030: clk: shmobile: fix sparse NULL pointer warning (2015-01-14 13:13:24 +0900) ---------------------------------------------------------------- Second Round of Renesas ARM Based SoC Sh73a0 CCF Updates for v3.20 * Fix sparse NULL pointer warning ---------------------------------------------------------------- Wei Yongjun (1): clk: shmobile: fix sparse NULL pointer warning drivers/clk/shmobile/clk-sh73a0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH] clk: shmobile: fix sparse NULL pointer warning 2015-01-16 2:45 ` Simon Horman @ 2015-01-16 2:45 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-01-16 2:45 UTC (permalink / raw) To: linux-arm-kernel From: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Fixes the following sparse warnings: drivers/clk/shmobile/clk-sh73a0.c:57:17: warning: Using plain integer as NULL pointer Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- drivers/clk/shmobile/clk-sh73a0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/shmobile/clk-sh73a0.c b/drivers/clk/shmobile/clk-sh73a0.c index 8574a6d..cd529cf 100644 --- a/drivers/clk/shmobile/clk-sh73a0.c +++ b/drivers/clk/shmobile/clk-sh73a0.c @@ -54,7 +54,7 @@ static struct div4_clk div4_clks[] = { { "m2", "pll1", CPG_FRQCRA, 0 }, { "zx", "pll1", CPG_FRQCRB, 12 }, { "hp", "pll1", CPG_FRQCRB, 4 }, - { NULL, 0, 0, 0 }, + { NULL, NULL, 0, 0 }, }; static const struct clk_div_table div4_div_table[] = { -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH] clk: shmobile: fix sparse NULL pointer warning @ 2015-01-16 2:45 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-01-16 2:45 UTC (permalink / raw) To: linux-arm-kernel From: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Fixes the following sparse warnings: drivers/clk/shmobile/clk-sh73a0.c:57:17: warning: Using plain integer as NULL pointer Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- drivers/clk/shmobile/clk-sh73a0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/shmobile/clk-sh73a0.c b/drivers/clk/shmobile/clk-sh73a0.c index 8574a6d..cd529cf 100644 --- a/drivers/clk/shmobile/clk-sh73a0.c +++ b/drivers/clk/shmobile/clk-sh73a0.c @@ -54,7 +54,7 @@ static struct div4_clk div4_clks[] = { { "m2", "pll1", CPG_FRQCRA, 0 }, { "zx", "pll1", CPG_FRQCRB, 12 }, { "hp", "pll1", CPG_FRQCRB, 4 }, - { NULL, 0, 0, 0 }, + { NULL, NULL, 0, 0 }, }; static const struct clk_div_table div4_div_table[] = { -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* Re: [GIT PULL] Second Round of Renesas ARM Based SoC Sh73a0 CCF Updates for v3.20 2015-01-16 2:45 ` Simon Horman @ 2015-01-21 23:14 ` Olof Johansson -1 siblings, 0 replies; 776+ messages in thread From: Olof Johansson @ 2015-01-21 23:14 UTC (permalink / raw) To: linux-arm-kernel On Fri, Jan 16, 2015 at 11:45:50AM +0900, Simon Horman wrote: > Hi Olof, Hi Kevin, Hi Arnd, > > Please consider these second round of Renesas ARM based SoC sh73a0 CCF updates for v3.20. > > This pull request is based on the previous round of > such requests, tagged as renesas-sh73a0-ccf-for-v3.20, > which you have already pulled. > > > The following changes since commit 09bd745b555c262d1e2c851777317f3adf3cf3d4: > > ARM: shmobile: sh73a0: disable legacy clock initialization (2014-12-21 17:09:25 +0900) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-sh73a0-ccf2-for-v3.20 > > for you to fetch changes up to 16bd794f9432b556ec797cbf16c5e575a18f7030: > > clk: shmobile: fix sparse NULL pointer warning (2015-01-14 13:13:24 +0900) > > ---------------------------------------------------------------- > Second Round of Renesas ARM Based SoC Sh73a0 CCF Updates for v3.20 > > * Fix sparse NULL pointer warning Merged. -Olof ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC Sh73a0 CCF Updates for v3.20 @ 2015-01-21 23:14 ` Olof Johansson 0 siblings, 0 replies; 776+ messages in thread From: Olof Johansson @ 2015-01-21 23:14 UTC (permalink / raw) To: linux-arm-kernel On Fri, Jan 16, 2015 at 11:45:50AM +0900, Simon Horman wrote: > Hi Olof, Hi Kevin, Hi Arnd, > > Please consider these second round of Renesas ARM based SoC sh73a0 CCF updates for v3.20. > > This pull request is based on the previous round of > such requests, tagged as renesas-sh73a0-ccf-for-v3.20, > which you have already pulled. > > > The following changes since commit 09bd745b555c262d1e2c851777317f3adf3cf3d4: > > ARM: shmobile: sh73a0: disable legacy clock initialization (2014-12-21 17:09:25 +0900) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-sh73a0-ccf2-for-v3.20 > > for you to fetch changes up to 16bd794f9432b556ec797cbf16c5e575a18f7030: > > clk: shmobile: fix sparse NULL pointer warning (2015-01-14 13:13:24 +0900) > > ---------------------------------------------------------------- > Second Round of Renesas ARM Based SoC Sh73a0 CCF Updates for v3.20 > > * Fix sparse NULL pointer warning Merged. -Olof ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC DT Updates for v3.20 @ 2015-01-17 0:58 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-01-17 0:58 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Hi Kevin, Hi Arnd, Please consider these second round of Renesas ARM based SoC DT updates for v3.20. This pull request is based on the previous round of such requests, tagged as renesas-dt-for-v3.20, which you have previously pulled. The following changes since commit 7408d3061d2f04181820902fae6e92e4a73d5cc0: ARM: shmobile: r8a7791: add MLB+ clock (2014-12-23 09:18:23 +0900) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-dt2-for-v3.20 for you to fetch changes up to fbaa5e694a1240c5f6b829b1e17652e4e228ee12: PM / Domains: R-Mobile SYSC: Document SH-Mobile AG5 (sh73a0) binding (2015-01-16 10:59:37 +0900) ---------------------------------------------------------------- Second Round of Renesas ARM Based SoC DT Updates for v3.20 * Support Renesas memory controllers * Add SRC interrupt number on r8a779~ and r8a7791 SoCs * Fix MSTP8 input clocks on r8a7791 SoC * Add PM domain support to r8a7740 * Add DT bindings for the R-Mobile System Controller * Use Add sh73a0-specific FSI2 compatible property ---------------------------------------------------------------- Geert Uytterhoeven (8): ARM: shmobile: sh73a0 dtsi: Add SoC-specific FSI2 compatible property PM / Domains: Add DT bindings for the R-Mobile System Controller ARM: shmobile: r8a7740 dtsi: Add PM domain support ARM: shmobile: Add DT bindings for Renesas memory controllers ARM: shmobile: r8a73a4 dtsi: Add memory-controller nodes ARM: shmobile: r8a7740 dtsi: Add memory-controller node ARM: shmobile: sh73a0 dtsi: Add memory-controller nodes PM / Domains: R-Mobile SYSC: Document SH-Mobile AG5 (sh73a0) binding Kuninori Morimoto (2): ARM: shmobile: r8a7790: add SRC interrupt number on DTSI ARM: shmobile: r8a7791: add SRC interrupt number on DTSI Sergei Shtylyov (1): ARM: shmobile: r8a7791: fix MSTP8 input clocks .../renesas-memory-controllers.txt | 44 +++++++++ .../bindings/power/renesas,sysc-rmobile.txt | 99 +++++++++++++++++++ arch/arm/boot/dts/r8a73a4.dtsi | 10 ++ arch/arm/boot/dts/r8a7740.dtsi | 105 +++++++++++++++++++++ arch/arm/boot/dts/r8a7790.dtsi | 20 ++-- arch/arm/boot/dts/r8a7791.dtsi | 22 ++--- arch/arm/boot/dts/sh73a0.dtsi | 18 +++- 7 files changed, 296 insertions(+), 22 deletions(-) create mode 100644 Documentation/devicetree/bindings/memory-controllers/renesas-memory-controllers.txt create mode 100644 Documentation/devicetree/bindings/power/renesas,sysc-rmobile.txt ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC DT Updates for v3.20 @ 2015-01-17 0:58 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-01-17 0:58 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Hi Kevin, Hi Arnd, Please consider these second round of Renesas ARM based SoC DT updates for v3.20. This pull request is based on the previous round of such requests, tagged as renesas-dt-for-v3.20, which you have previously pulled. The following changes since commit 7408d3061d2f04181820902fae6e92e4a73d5cc0: ARM: shmobile: r8a7791: add MLB+ clock (2014-12-23 09:18:23 +0900) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-dt2-for-v3.20 for you to fetch changes up to fbaa5e694a1240c5f6b829b1e17652e4e228ee12: PM / Domains: R-Mobile SYSC: Document SH-Mobile AG5 (sh73a0) binding (2015-01-16 10:59:37 +0900) ---------------------------------------------------------------- Second Round of Renesas ARM Based SoC DT Updates for v3.20 * Support Renesas memory controllers * Add SRC interrupt number on r8a779~ and r8a7791 SoCs * Fix MSTP8 input clocks on r8a7791 SoC * Add PM domain support to r8a7740 * Add DT bindings for the R-Mobile System Controller * Use Add sh73a0-specific FSI2 compatible property ---------------------------------------------------------------- Geert Uytterhoeven (8): ARM: shmobile: sh73a0 dtsi: Add SoC-specific FSI2 compatible property PM / Domains: Add DT bindings for the R-Mobile System Controller ARM: shmobile: r8a7740 dtsi: Add PM domain support ARM: shmobile: Add DT bindings for Renesas memory controllers ARM: shmobile: r8a73a4 dtsi: Add memory-controller nodes ARM: shmobile: r8a7740 dtsi: Add memory-controller node ARM: shmobile: sh73a0 dtsi: Add memory-controller nodes PM / Domains: R-Mobile SYSC: Document SH-Mobile AG5 (sh73a0) binding Kuninori Morimoto (2): ARM: shmobile: r8a7790: add SRC interrupt number on DTSI ARM: shmobile: r8a7791: add SRC interrupt number on DTSI Sergei Shtylyov (1): ARM: shmobile: r8a7791: fix MSTP8 input clocks .../renesas-memory-controllers.txt | 44 +++++++++ .../bindings/power/renesas,sysc-rmobile.txt | 99 +++++++++++++++++++ arch/arm/boot/dts/r8a73a4.dtsi | 10 ++ arch/arm/boot/dts/r8a7740.dtsi | 105 +++++++++++++++++++++ arch/arm/boot/dts/r8a7790.dtsi | 20 ++-- arch/arm/boot/dts/r8a7791.dtsi | 22 ++--- arch/arm/boot/dts/sh73a0.dtsi | 18 +++- 7 files changed, 296 insertions(+), 22 deletions(-) create mode 100644 Documentation/devicetree/bindings/memory-controllers/renesas-memory-controllers.txt create mode 100644 Documentation/devicetree/bindings/power/renesas,sysc-rmobile.txt ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH 01/11] ARM: shmobile: sh73a0 dtsi: Add SoC-specific FSI2 compatible property 2015-01-17 0:58 ` Simon Horman @ 2015-01-17 0:58 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-01-17 0:58 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> The FSI2 sound node used the generic compatible property only. Add the SoC-specific one, to make it future proof. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/sh73a0.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/sh73a0.dtsi b/arch/arm/boot/dts/sh73a0.dtsi index d8def5a..d4cfb06 100644 --- a/arch/arm/boot/dts/sh73a0.dtsi +++ b/arch/arm/boot/dts/sh73a0.dtsi @@ -317,7 +317,7 @@ sh_fsi2: sound@ec230000 { #sound-dai-cells = <1>; - compatible = "renesas,sh_fsi2"; + compatible = "renesas,fsi2-sh73a0", "renesas,sh_fsi2"; reg = <0xec230000 0x400>; interrupts = <0 146 0x4>; status = "disabled"; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 01/11] ARM: shmobile: sh73a0 dtsi: Add SoC-specific FSI2 compatible property @ 2015-01-17 0:58 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-01-17 0:58 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> The FSI2 sound node used the generic compatible property only. Add the SoC-specific one, to make it future proof. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/sh73a0.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/sh73a0.dtsi b/arch/arm/boot/dts/sh73a0.dtsi index d8def5a..d4cfb06 100644 --- a/arch/arm/boot/dts/sh73a0.dtsi +++ b/arch/arm/boot/dts/sh73a0.dtsi @@ -317,7 +317,7 @@ sh_fsi2: sound at ec230000 { #sound-dai-cells = <1>; - compatible = "renesas,sh_fsi2"; + compatible = "renesas,fsi2-sh73a0", "renesas,sh_fsi2"; reg = <0xec230000 0x400>; interrupts = <0 146 0x4>; status = "disabled"; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 02/11] PM / Domains: Add DT bindings for the R-Mobile System Controller 2015-01-17 0:58 ` Simon Horman @ 2015-01-17 0:58 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-01-17 0:58 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> The Renesas R-Mobile System Controller provides a.o. power management support, following the generic PM domain bindings in Documentation/devicetree/bindings/power/power_domain.txt. For now this supports the R-Mobile A1 (r8a7740) only, but it should be sufficiently generic to handle other members of the SH-Mobile/R-Mobile family in the future. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- .../bindings/power/renesas,sysc-rmobile.txt | 98 ++++++++++++++++++++++ 1 file changed, 98 insertions(+) create mode 100644 Documentation/devicetree/bindings/power/renesas,sysc-rmobile.txt diff --git a/Documentation/devicetree/bindings/power/renesas,sysc-rmobile.txt b/Documentation/devicetree/bindings/power/renesas,sysc-rmobile.txt new file mode 100644 index 0000000..2460476 --- /dev/null +++ b/Documentation/devicetree/bindings/power/renesas,sysc-rmobile.txt @@ -0,0 +1,98 @@ +DT bindings for the Renesas R-Mobile System Controller + += System Controller Node = + +The R-Mobile System Controller provides the following functions: + - Boot mode management, + - Reset generation, + - Power management. + +Required properties: +- compatible: Should be "renesas,sysc-<soctype>", "renesas,sysc-rmobile" as + fallback. + Examples with soctypes are: + - "renesas,sysc-r8a7740" (R-Mobile A1) +- reg: Two address start and address range blocks for the device: + - The first block refers to the normally accessible registers, + - the second block refers to the registers protected by the HPB + semaphore. + +Optional nodes: +- pm-domains: This node contains a hierarchy of PM domain nodes, which should + match the Power Area Hierarchy in the Power Domain Specifications section of + the device's datasheet. + + += PM Domain Nodes = + +Each of the PM domain nodes represents a PM domain, as documented by the +generic PM domain bindings in +Documentation/devicetree/bindings/power/power_domain.txt. + +The nodes should be named by the real power area names, and thus their names +should be unique. + +Required properties: + - #power-domain-cells: Must be 0. + +Optional properties: +- reg: If the PM domain is not always-on, this property must contain the bit + index number for the corresponding power area in the various Power + Control and Status Registers. The parent's node must contain the + following two properties: + - #address-cells: Must be 1, + - #size-cells: Must be 0. + If the PM domain is always-on, this property must be omitted. + + +Example: + +This shows a subset of the r8a7740 PM domain hierarchy, containing the +C5 "always-on" domain, 2 of its subdomains (A4S and A4SU), and the A3SP domain, +which is a subdomain of A4S. + + sysc: system-controller@e6180000 { + compatible = "renesas,sysc-r8a7740", "renesas,sysc-rmobile"; + reg = <0xe6180000 0x8000>, <0xe6188000 0x8000>; + + pm-domains { + pd_c5: c5 { + #address-cells = <1>; + #size-cells = <0>; + #power-domain-cells = <0>; + + pd_a4s: a4s@10 { + reg = <10>; + #address-cells = <1>; + #size-cells = <0>; + #power-domain-cells = <0>; + + pd_a3sp: a3sp@11 { + reg = <11>; + #power-domain-cells = <0>; + }; + }; + + pd_a4su: a4su@20 { + reg = <20>; + #power-domain-cells = <0>; + }; + }; + }; + }; + + += PM Domain Consumers = + +Hardware blocks belonging to a PM domain should contain a "power-domains" +property that is a phandle pointing to the corresponding PM domain node. + +Example: + + tpu: pwm@e6600000 { + compatible = "renesas,tpu-r8a7740", "renesas,tpu"; + reg = <0xe6600000 0x100>; + clocks = <&mstp3_clks R8A7740_CLK_TPU0>; + power-domains = <&pd_a3sp>; + #pwm-cells = <3>; + }; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 02/11] PM / Domains: Add DT bindings for the R-Mobile System Controller @ 2015-01-17 0:58 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-01-17 0:58 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> The Renesas R-Mobile System Controller provides a.o. power management support, following the generic PM domain bindings in Documentation/devicetree/bindings/power/power_domain.txt. For now this supports the R-Mobile A1 (r8a7740) only, but it should be sufficiently generic to handle other members of the SH-Mobile/R-Mobile family in the future. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- .../bindings/power/renesas,sysc-rmobile.txt | 98 ++++++++++++++++++++++ 1 file changed, 98 insertions(+) create mode 100644 Documentation/devicetree/bindings/power/renesas,sysc-rmobile.txt diff --git a/Documentation/devicetree/bindings/power/renesas,sysc-rmobile.txt b/Documentation/devicetree/bindings/power/renesas,sysc-rmobile.txt new file mode 100644 index 0000000..2460476 --- /dev/null +++ b/Documentation/devicetree/bindings/power/renesas,sysc-rmobile.txt @@ -0,0 +1,98 @@ +DT bindings for the Renesas R-Mobile System Controller + +== System Controller Node == + +The R-Mobile System Controller provides the following functions: + - Boot mode management, + - Reset generation, + - Power management. + +Required properties: +- compatible: Should be "renesas,sysc-<soctype>", "renesas,sysc-rmobile" as + fallback. + Examples with soctypes are: + - "renesas,sysc-r8a7740" (R-Mobile A1) +- reg: Two address start and address range blocks for the device: + - The first block refers to the normally accessible registers, + - the second block refers to the registers protected by the HPB + semaphore. + +Optional nodes: +- pm-domains: This node contains a hierarchy of PM domain nodes, which should + match the Power Area Hierarchy in the Power Domain Specifications section of + the device's datasheet. + + +== PM Domain Nodes == + +Each of the PM domain nodes represents a PM domain, as documented by the +generic PM domain bindings in +Documentation/devicetree/bindings/power/power_domain.txt. + +The nodes should be named by the real power area names, and thus their names +should be unique. + +Required properties: + - #power-domain-cells: Must be 0. + +Optional properties: +- reg: If the PM domain is not always-on, this property must contain the bit + index number for the corresponding power area in the various Power + Control and Status Registers. The parent's node must contain the + following two properties: + - #address-cells: Must be 1, + - #size-cells: Must be 0. + If the PM domain is always-on, this property must be omitted. + + +Example: + +This shows a subset of the r8a7740 PM domain hierarchy, containing the +C5 "always-on" domain, 2 of its subdomains (A4S and A4SU), and the A3SP domain, +which is a subdomain of A4S. + + sysc: system-controller at e6180000 { + compatible = "renesas,sysc-r8a7740", "renesas,sysc-rmobile"; + reg = <0xe6180000 0x8000>, <0xe6188000 0x8000>; + + pm-domains { + pd_c5: c5 { + #address-cells = <1>; + #size-cells = <0>; + #power-domain-cells = <0>; + + pd_a4s: a4s at 10 { + reg = <10>; + #address-cells = <1>; + #size-cells = <0>; + #power-domain-cells = <0>; + + pd_a3sp: a3sp at 11 { + reg = <11>; + #power-domain-cells = <0>; + }; + }; + + pd_a4su: a4su at 20 { + reg = <20>; + #power-domain-cells = <0>; + }; + }; + }; + }; + + +== PM Domain Consumers == + +Hardware blocks belonging to a PM domain should contain a "power-domains" +property that is a phandle pointing to the corresponding PM domain node. + +Example: + + tpu: pwm at e6600000 { + compatible = "renesas,tpu-r8a7740", "renesas,tpu"; + reg = <0xe6600000 0x100>; + clocks = <&mstp3_clks R8A7740_CLK_TPU0>; + power-domains = <&pd_a3sp>; + #pwm-cells = <3>; + }; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 03/11] ARM: shmobile: r8a7740 dtsi: Add PM domain support 2015-01-17 0:58 ` Simon Horman @ 2015-01-17 0:58 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-01-17 0:58 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> Add a device node for the System Controller, with subnodes that represent the hardware power area hierarchy. Hook up all devices to their respective PM domains. Add a minimal device node for the Coresight-ETM hardware block, and hook it up to the D4 PM domain, so the R-Mobile System Controller driver can keep the domain powered, until the new Coresight code handles runtime PM. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7740.dtsi | 99 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 99 insertions(+) diff --git a/arch/arm/boot/dts/r8a7740.dtsi b/arch/arm/boot/dts/r8a7740.dtsi index 60ca622..52f2cf4 100644 --- a/arch/arm/boot/dts/r8a7740.dtsi +++ b/arch/arm/boot/dts/r8a7740.dtsi @@ -25,6 +25,7 @@ device_type = "cpu"; reg = <0x0>; clock-frequency = <800000000>; + power-domains = <&pd_a3sm>; }; }; @@ -41,12 +42,18 @@ interrupts = <0 83 IRQ_TYPE_LEVEL_HIGH>; }; + ptm { + compatible = "arm,coresight-etm3x"; + power-domains = <&pd_d4>; + }; + cmt1: timer@e6138000 { compatible = "renesas,cmt-48-r8a7740", "renesas,cmt-48"; reg = <0xe6138000 0x170>; interrupts = <0 58 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp3_clks R8A7740_CLK_CMT1>; clock-names = "fck"; + power-domains = <&pd_c5>; renesas,channels-mask = <0x3f>; @@ -72,6 +79,7 @@ 0 149 IRQ_TYPE_LEVEL_HIGH 0 149 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp2_clks R8A7740_CLK_INTCA>; + power-domains = <&pd_a4s>; }; /* irqpin1: IRQ8 - IRQ15 */ @@ -93,6 +101,7 @@ 0 149 IRQ_TYPE_LEVEL_HIGH 0 149 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp2_clks R8A7740_CLK_INTCA>; + power-domains = <&pd_a4s>; }; /* irqpin2: IRQ16 - IRQ23 */ @@ -114,6 +123,7 @@ 0 149 IRQ_TYPE_LEVEL_HIGH 0 149 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp2_clks R8A7740_CLK_INTCA>; + power-domains = <&pd_a4s>; }; /* irqpin3: IRQ24 - IRQ31 */ @@ -135,6 +145,7 @@ 0 149 IRQ_TYPE_LEVEL_HIGH 0 149 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp2_clks R8A7740_CLK_INTCA>; + power-domains = <&pd_a4s>; }; ether: ethernet@e9a00000 { @@ -143,6 +154,7 @@ <0xe9a01800 0x800>; interrupts = <0 110 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp3_clks R8A7740_CLK_GETHER>; + power-domains = <&pd_a4s>; phy-mode = "mii"; #address-cells = <1>; #size-cells = <0>; @@ -159,6 +171,7 @@ 0 203 IRQ_TYPE_LEVEL_HIGH 0 204 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp1_clks R8A7740_CLK_IIC0>; + power-domains = <&pd_a4r>; status = "disabled"; }; @@ -172,6 +185,7 @@ 0 72 IRQ_TYPE_LEVEL_HIGH 0 73 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp3_clks R8A7740_CLK_IIC1>; + power-domains = <&pd_a3sp>; status = "disabled"; }; @@ -181,6 +195,7 @@ interrupts = <0 100 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp2_clks R8A7740_CLK_SCIFA0>; clock-names = "sci_ick"; + power-domains = <&pd_a3sp>; status = "disabled"; }; @@ -190,6 +205,7 @@ interrupts = <0 101 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp2_clks R8A7740_CLK_SCIFA1>; clock-names = "sci_ick"; + power-domains = <&pd_a3sp>; status = "disabled"; }; @@ -199,6 +215,7 @@ interrupts = <0 102 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp2_clks R8A7740_CLK_SCIFA2>; clock-names = "sci_ick"; + power-domains = <&pd_a3sp>; status = "disabled"; }; @@ -208,6 +225,7 @@ interrupts = <0 103 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp2_clks R8A7740_CLK_SCIFA3>; clock-names = "sci_ick"; + power-domains = <&pd_a3sp>; status = "disabled"; }; @@ -217,6 +235,7 @@ interrupts = <0 104 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp2_clks R8A7740_CLK_SCIFA4>; clock-names = "sci_ick"; + power-domains = <&pd_a3sp>; status = "disabled"; }; @@ -226,6 +245,7 @@ interrupts = <0 105 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp2_clks R8A7740_CLK_SCIFA5>; clock-names = "sci_ick"; + power-domains = <&pd_a3sp>; status = "disabled"; }; @@ -235,6 +255,7 @@ interrupts = <0 106 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp2_clks R8A7740_CLK_SCIFA6>; clock-names = "sci_ick"; + power-domains = <&pd_a3sp>; status = "disabled"; }; @@ -244,6 +265,7 @@ interrupts = <0 107 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp2_clks R8A7740_CLK_SCIFA7>; clock-names = "sci_ick"; + power-domains = <&pd_a3sp>; status = "disabled"; }; @@ -253,6 +275,7 @@ interrupts = <0 108 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp2_clks R8A7740_CLK_SCIFB>; clock-names = "sci_ick"; + power-domains = <&pd_a3sp>; status = "disabled"; }; @@ -271,12 +294,14 @@ <&irqpin2 4 0>, <&irqpin2 5 0>, <&irqpin2 6 0>, <&irqpin2 7 0>, <&irqpin3 0 0>, <&irqpin3 1 0>, <&irqpin3 2 0>, <&irqpin3 3 0>, <&irqpin3 4 0>, <&irqpin3 5 0>, <&irqpin3 6 0>, <&irqpin3 7 0>; + power-domains = <&pd_c5>; }; tpu: pwm@e6600000 { compatible = "renesas,tpu-r8a7740", "renesas,tpu"; reg = <0xe6600000 0x100>; clocks = <&mstp3_clks R8A7740_CLK_TPU0>; + power-domains = <&pd_a3sp>; status = "disabled"; #pwm-cells = <3>; }; @@ -287,6 +312,7 @@ interrupts = <0 56 IRQ_TYPE_LEVEL_HIGH 0 57 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp3_clks R8A7740_CLK_MMC>; + power-domains = <&pd_a3sp>; status = "disabled"; }; @@ -297,6 +323,7 @@ 0 118 IRQ_TYPE_LEVEL_HIGH 0 119 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp3_clks R8A7740_CLK_SDHI0>; + power-domains = <&pd_a3sp>; cap-sd-highspeed; cap-sdio-irq; status = "disabled"; @@ -309,6 +336,7 @@ 0 122 IRQ_TYPE_LEVEL_HIGH 0 123 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp3_clks R8A7740_CLK_SDHI1>; + power-domains = <&pd_a3sp>; cap-sd-highspeed; cap-sdio-irq; status = "disabled"; @@ -321,6 +349,7 @@ 0 126 IRQ_TYPE_LEVEL_HIGH 0 127 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp4_clks R8A7740_CLK_SDHI2>; + power-domains = <&pd_a3sp>; cap-sd-highspeed; cap-sdio-irq; status = "disabled"; @@ -332,6 +361,7 @@ reg = <0xfe1f0000 0x400>; interrupts = <0 9 0x4>; clocks = <&mstp3_clks R8A7740_CLK_FSI>; + power-domains = <&pd_a4mp>; status = "disabled"; }; @@ -343,6 +373,7 @@ <0 200 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp1_clks R8A7740_CLK_TMU0>; clock-names = "fck"; + power-domains = <&pd_a4r>; #renesas,channels = <3>; @@ -357,6 +388,7 @@ <0 172 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp1_clks R8A7740_CLK_TMU1>; clock-names = "fck"; + power-domains = <&pd_a4r>; #renesas,channels = <3>; @@ -543,4 +575,71 @@ "usbhost", "sdhi2", "usbfunc", "usphy"; }; }; + + sysc: system-controller@e6180000 { + compatible = "renesas,sysc-r8a7740", "renesas,sysc-rmobile"; + reg = <0xe6180000 0x8000>, <0xe6188000 0x8000>; + + pm-domains { + pd_c5: c5 { + #address-cells = <1>; + #size-cells = <0>; + #power-domain-cells = <0>; + + pd_a4lc: a4lc@1 { + reg = <1>; + #power-domain-cells = <0>; + }; + + pd_a4mp: a4mp@2 { + reg = <2>; + #power-domain-cells = <0>; + }; + + pd_d4: d4@3 { + reg = <3>; + #power-domain-cells = <0>; + }; + + pd_a4r: a4r@5 { + reg = <5>; + #address-cells = <1>; + #size-cells = <0>; + #power-domain-cells = <0>; + + pd_a3rv: a3rv@6 { + reg = <6>; + #power-domain-cells = <0>; + }; + }; + + pd_a4s: a4s@10 { + reg = <10>; + #address-cells = <1>; + #size-cells = <0>; + #power-domain-cells = <0>; + + pd_a3sp: a3sp@11 { + reg = <11>; + #power-domain-cells = <0>; + }; + + pd_a3sm: a3sm@12 { + reg = <12>; + #power-domain-cells = <0>; + }; + + pd_a3sg: a3sg@13 { + reg = <13>; + #power-domain-cells = <0>; + }; + }; + + pd_a4su: a4su@20 { + reg = <20>; + #power-domain-cells = <0>; + }; + }; + }; + }; }; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 03/11] ARM: shmobile: r8a7740 dtsi: Add PM domain support @ 2015-01-17 0:58 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-01-17 0:58 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> Add a device node for the System Controller, with subnodes that represent the hardware power area hierarchy. Hook up all devices to their respective PM domains. Add a minimal device node for the Coresight-ETM hardware block, and hook it up to the D4 PM domain, so the R-Mobile System Controller driver can keep the domain powered, until the new Coresight code handles runtime PM. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7740.dtsi | 99 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 99 insertions(+) diff --git a/arch/arm/boot/dts/r8a7740.dtsi b/arch/arm/boot/dts/r8a7740.dtsi index 60ca622..52f2cf4 100644 --- a/arch/arm/boot/dts/r8a7740.dtsi +++ b/arch/arm/boot/dts/r8a7740.dtsi @@ -25,6 +25,7 @@ device_type = "cpu"; reg = <0x0>; clock-frequency = <800000000>; + power-domains = <&pd_a3sm>; }; }; @@ -41,12 +42,18 @@ interrupts = <0 83 IRQ_TYPE_LEVEL_HIGH>; }; + ptm { + compatible = "arm,coresight-etm3x"; + power-domains = <&pd_d4>; + }; + cmt1: timer at e6138000 { compatible = "renesas,cmt-48-r8a7740", "renesas,cmt-48"; reg = <0xe6138000 0x170>; interrupts = <0 58 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp3_clks R8A7740_CLK_CMT1>; clock-names = "fck"; + power-domains = <&pd_c5>; renesas,channels-mask = <0x3f>; @@ -72,6 +79,7 @@ 0 149 IRQ_TYPE_LEVEL_HIGH 0 149 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp2_clks R8A7740_CLK_INTCA>; + power-domains = <&pd_a4s>; }; /* irqpin1: IRQ8 - IRQ15 */ @@ -93,6 +101,7 @@ 0 149 IRQ_TYPE_LEVEL_HIGH 0 149 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp2_clks R8A7740_CLK_INTCA>; + power-domains = <&pd_a4s>; }; /* irqpin2: IRQ16 - IRQ23 */ @@ -114,6 +123,7 @@ 0 149 IRQ_TYPE_LEVEL_HIGH 0 149 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp2_clks R8A7740_CLK_INTCA>; + power-domains = <&pd_a4s>; }; /* irqpin3: IRQ24 - IRQ31 */ @@ -135,6 +145,7 @@ 0 149 IRQ_TYPE_LEVEL_HIGH 0 149 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp2_clks R8A7740_CLK_INTCA>; + power-domains = <&pd_a4s>; }; ether: ethernet at e9a00000 { @@ -143,6 +154,7 @@ <0xe9a01800 0x800>; interrupts = <0 110 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp3_clks R8A7740_CLK_GETHER>; + power-domains = <&pd_a4s>; phy-mode = "mii"; #address-cells = <1>; #size-cells = <0>; @@ -159,6 +171,7 @@ 0 203 IRQ_TYPE_LEVEL_HIGH 0 204 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp1_clks R8A7740_CLK_IIC0>; + power-domains = <&pd_a4r>; status = "disabled"; }; @@ -172,6 +185,7 @@ 0 72 IRQ_TYPE_LEVEL_HIGH 0 73 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp3_clks R8A7740_CLK_IIC1>; + power-domains = <&pd_a3sp>; status = "disabled"; }; @@ -181,6 +195,7 @@ interrupts = <0 100 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp2_clks R8A7740_CLK_SCIFA0>; clock-names = "sci_ick"; + power-domains = <&pd_a3sp>; status = "disabled"; }; @@ -190,6 +205,7 @@ interrupts = <0 101 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp2_clks R8A7740_CLK_SCIFA1>; clock-names = "sci_ick"; + power-domains = <&pd_a3sp>; status = "disabled"; }; @@ -199,6 +215,7 @@ interrupts = <0 102 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp2_clks R8A7740_CLK_SCIFA2>; clock-names = "sci_ick"; + power-domains = <&pd_a3sp>; status = "disabled"; }; @@ -208,6 +225,7 @@ interrupts = <0 103 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp2_clks R8A7740_CLK_SCIFA3>; clock-names = "sci_ick"; + power-domains = <&pd_a3sp>; status = "disabled"; }; @@ -217,6 +235,7 @@ interrupts = <0 104 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp2_clks R8A7740_CLK_SCIFA4>; clock-names = "sci_ick"; + power-domains = <&pd_a3sp>; status = "disabled"; }; @@ -226,6 +245,7 @@ interrupts = <0 105 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp2_clks R8A7740_CLK_SCIFA5>; clock-names = "sci_ick"; + power-domains = <&pd_a3sp>; status = "disabled"; }; @@ -235,6 +255,7 @@ interrupts = <0 106 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp2_clks R8A7740_CLK_SCIFA6>; clock-names = "sci_ick"; + power-domains = <&pd_a3sp>; status = "disabled"; }; @@ -244,6 +265,7 @@ interrupts = <0 107 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp2_clks R8A7740_CLK_SCIFA7>; clock-names = "sci_ick"; + power-domains = <&pd_a3sp>; status = "disabled"; }; @@ -253,6 +275,7 @@ interrupts = <0 108 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp2_clks R8A7740_CLK_SCIFB>; clock-names = "sci_ick"; + power-domains = <&pd_a3sp>; status = "disabled"; }; @@ -271,12 +294,14 @@ <&irqpin2 4 0>, <&irqpin2 5 0>, <&irqpin2 6 0>, <&irqpin2 7 0>, <&irqpin3 0 0>, <&irqpin3 1 0>, <&irqpin3 2 0>, <&irqpin3 3 0>, <&irqpin3 4 0>, <&irqpin3 5 0>, <&irqpin3 6 0>, <&irqpin3 7 0>; + power-domains = <&pd_c5>; }; tpu: pwm at e6600000 { compatible = "renesas,tpu-r8a7740", "renesas,tpu"; reg = <0xe6600000 0x100>; clocks = <&mstp3_clks R8A7740_CLK_TPU0>; + power-domains = <&pd_a3sp>; status = "disabled"; #pwm-cells = <3>; }; @@ -287,6 +312,7 @@ interrupts = <0 56 IRQ_TYPE_LEVEL_HIGH 0 57 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp3_clks R8A7740_CLK_MMC>; + power-domains = <&pd_a3sp>; status = "disabled"; }; @@ -297,6 +323,7 @@ 0 118 IRQ_TYPE_LEVEL_HIGH 0 119 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp3_clks R8A7740_CLK_SDHI0>; + power-domains = <&pd_a3sp>; cap-sd-highspeed; cap-sdio-irq; status = "disabled"; @@ -309,6 +336,7 @@ 0 122 IRQ_TYPE_LEVEL_HIGH 0 123 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp3_clks R8A7740_CLK_SDHI1>; + power-domains = <&pd_a3sp>; cap-sd-highspeed; cap-sdio-irq; status = "disabled"; @@ -321,6 +349,7 @@ 0 126 IRQ_TYPE_LEVEL_HIGH 0 127 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp4_clks R8A7740_CLK_SDHI2>; + power-domains = <&pd_a3sp>; cap-sd-highspeed; cap-sdio-irq; status = "disabled"; @@ -332,6 +361,7 @@ reg = <0xfe1f0000 0x400>; interrupts = <0 9 0x4>; clocks = <&mstp3_clks R8A7740_CLK_FSI>; + power-domains = <&pd_a4mp>; status = "disabled"; }; @@ -343,6 +373,7 @@ <0 200 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp1_clks R8A7740_CLK_TMU0>; clock-names = "fck"; + power-domains = <&pd_a4r>; #renesas,channels = <3>; @@ -357,6 +388,7 @@ <0 172 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp1_clks R8A7740_CLK_TMU1>; clock-names = "fck"; + power-domains = <&pd_a4r>; #renesas,channels = <3>; @@ -543,4 +575,71 @@ "usbhost", "sdhi2", "usbfunc", "usphy"; }; }; + + sysc: system-controller at e6180000 { + compatible = "renesas,sysc-r8a7740", "renesas,sysc-rmobile"; + reg = <0xe6180000 0x8000>, <0xe6188000 0x8000>; + + pm-domains { + pd_c5: c5 { + #address-cells = <1>; + #size-cells = <0>; + #power-domain-cells = <0>; + + pd_a4lc: a4lc at 1 { + reg = <1>; + #power-domain-cells = <0>; + }; + + pd_a4mp: a4mp at 2 { + reg = <2>; + #power-domain-cells = <0>; + }; + + pd_d4: d4 at 3 { + reg = <3>; + #power-domain-cells = <0>; + }; + + pd_a4r: a4r at 5 { + reg = <5>; + #address-cells = <1>; + #size-cells = <0>; + #power-domain-cells = <0>; + + pd_a3rv: a3rv at 6 { + reg = <6>; + #power-domain-cells = <0>; + }; + }; + + pd_a4s: a4s at 10 { + reg = <10>; + #address-cells = <1>; + #size-cells = <0>; + #power-domain-cells = <0>; + + pd_a3sp: a3sp at 11 { + reg = <11>; + #power-domain-cells = <0>; + }; + + pd_a3sm: a3sm at 12 { + reg = <12>; + #power-domain-cells = <0>; + }; + + pd_a3sg: a3sg at 13 { + reg = <13>; + #power-domain-cells = <0>; + }; + }; + + pd_a4su: a4su at 20 { + reg = <20>; + #power-domain-cells = <0>; + }; + }; + }; + }; }; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 04/11] ARM: shmobile: r8a7791: fix MSTP8 input clocks 2015-01-17 0:58 ` Simon Horman @ 2015-01-17 0:58 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-01-17 0:58 UTC (permalink / raw) To: linux-arm-kernel From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> I made a mistake when rebasing Andrey Gusakov's patch adding MLB+ clock to the R8A7791 device tree, inserting <&hp_clk> into the "clocks" property of the MSTP8 node at a wrong position, so that the input clocks for MLB+ and IPMMU-SGX got swapped... Fixes: 7408d3061d2f ("ARM: shmobile: r8a7791: add MLB+ clock") Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/r8a7791.dtsi b/arch/arm/boot/dts/r8a7791.dtsi index 2810226..946cd3a 100644 --- a/arch/arm/boot/dts/r8a7791.dtsi +++ b/arch/arm/boot/dts/r8a7791.dtsi @@ -1154,7 +1154,7 @@ mstp8_clks: mstp8_clks@e6150990 { compatible = "renesas,r8a7791-mstp-clocks", "renesas,cpg-mstp-clocks"; reg = <0 0xe6150990 0 4>, <0 0xe61509a0 0 4>; - clocks = <&hp_clk>, <&zg_clk>, <&zg_clk>, <&zg_clk>, + clocks = <&zg_clk>, <&hp_clk>, <&zg_clk>, <&zg_clk>, <&zg_clk>, <&p_clk>, <&zs_clk>, <&zs_clk>; #clock-cells = <1>; clock-indices = < -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 04/11] ARM: shmobile: r8a7791: fix MSTP8 input clocks @ 2015-01-17 0:58 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-01-17 0:58 UTC (permalink / raw) To: linux-arm-kernel From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> I made a mistake when rebasing Andrey Gusakov's patch adding MLB+ clock to the R8A7791 device tree, inserting <&hp_clk> into the "clocks" property of the MSTP8 node at a wrong position, so that the input clocks for MLB+ and IPMMU-SGX got swapped... Fixes: 7408d3061d2f ("ARM: shmobile: r8a7791: add MLB+ clock") Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/r8a7791.dtsi b/arch/arm/boot/dts/r8a7791.dtsi index 2810226..946cd3a 100644 --- a/arch/arm/boot/dts/r8a7791.dtsi +++ b/arch/arm/boot/dts/r8a7791.dtsi @@ -1154,7 +1154,7 @@ mstp8_clks: mstp8_clks at e6150990 { compatible = "renesas,r8a7791-mstp-clocks", "renesas,cpg-mstp-clocks"; reg = <0 0xe6150990 0 4>, <0 0xe61509a0 0 4>; - clocks = <&hp_clk>, <&zg_clk>, <&zg_clk>, <&zg_clk>, + clocks = <&zg_clk>, <&hp_clk>, <&zg_clk>, <&zg_clk>, <&zg_clk>, <&p_clk>, <&zs_clk>, <&zs_clk>; #clock-cells = <1>; clock-indices = < -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 05/11] ARM: shmobile: r8a7790: add SRC interrupt number on DTSI 2015-01-17 0:58 ` Simon Horman @ 2015-01-17 0:58 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-01-17 0:58 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7790.dtsi | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/arch/arm/boot/dts/r8a7790.dtsi b/arch/arm/boot/dts/r8a7790.dtsi index af30c24..637e4ee 100644 --- a/arch/arm/boot/dts/r8a7790.dtsi +++ b/arch/arm/boot/dts/r8a7790.dtsi @@ -1435,16 +1435,16 @@ }; rcar_sound,src { - src0: src@0 { }; - src1: src@1 { }; - src2: src@2 { }; - src3: src@3 { }; - src4: src@4 { }; - src5: src@5 { }; - src6: src@6 { }; - src7: src@7 { }; - src8: src@8 { }; - src9: src@9 { }; + src0: src@0 { interrupts = <0 352 IRQ_TYPE_LEVEL_HIGH>; }; + src1: src@1 { interrupts = <0 353 IRQ_TYPE_LEVEL_HIGH>; }; + src2: src@2 { interrupts = <0 354 IRQ_TYPE_LEVEL_HIGH>; }; + src3: src@3 { interrupts = <0 355 IRQ_TYPE_LEVEL_HIGH>; }; + src4: src@4 { interrupts = <0 356 IRQ_TYPE_LEVEL_HIGH>; }; + src5: src@5 { interrupts = <0 357 IRQ_TYPE_LEVEL_HIGH>; }; + src6: src@6 { interrupts = <0 358 IRQ_TYPE_LEVEL_HIGH>; }; + src7: src@7 { interrupts = <0 359 IRQ_TYPE_LEVEL_HIGH>; }; + src8: src@8 { interrupts = <0 360 IRQ_TYPE_LEVEL_HIGH>; }; + src9: src@9 { interrupts = <0 361 IRQ_TYPE_LEVEL_HIGH>; }; }; rcar_sound,ssi { -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 05/11] ARM: shmobile: r8a7790: add SRC interrupt number on DTSI @ 2015-01-17 0:58 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-01-17 0:58 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7790.dtsi | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/arch/arm/boot/dts/r8a7790.dtsi b/arch/arm/boot/dts/r8a7790.dtsi index af30c24..637e4ee 100644 --- a/arch/arm/boot/dts/r8a7790.dtsi +++ b/arch/arm/boot/dts/r8a7790.dtsi @@ -1435,16 +1435,16 @@ }; rcar_sound,src { - src0: src at 0 { }; - src1: src at 1 { }; - src2: src at 2 { }; - src3: src at 3 { }; - src4: src at 4 { }; - src5: src at 5 { }; - src6: src at 6 { }; - src7: src at 7 { }; - src8: src at 8 { }; - src9: src at 9 { }; + src0: src at 0 { interrupts = <0 352 IRQ_TYPE_LEVEL_HIGH>; }; + src1: src at 1 { interrupts = <0 353 IRQ_TYPE_LEVEL_HIGH>; }; + src2: src at 2 { interrupts = <0 354 IRQ_TYPE_LEVEL_HIGH>; }; + src3: src at 3 { interrupts = <0 355 IRQ_TYPE_LEVEL_HIGH>; }; + src4: src at 4 { interrupts = <0 356 IRQ_TYPE_LEVEL_HIGH>; }; + src5: src at 5 { interrupts = <0 357 IRQ_TYPE_LEVEL_HIGH>; }; + src6: src at 6 { interrupts = <0 358 IRQ_TYPE_LEVEL_HIGH>; }; + src7: src at 7 { interrupts = <0 359 IRQ_TYPE_LEVEL_HIGH>; }; + src8: src at 8 { interrupts = <0 360 IRQ_TYPE_LEVEL_HIGH>; }; + src9: src at 9 { interrupts = <0 361 IRQ_TYPE_LEVEL_HIGH>; }; }; rcar_sound,ssi { -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 06/11] ARM: shmobile: r8a7791: add SRC interrupt number on DTSI 2015-01-17 0:58 ` Simon Horman @ 2015-01-17 0:58 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-01-17 0:58 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791.dtsi | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/arch/arm/boot/dts/r8a7791.dtsi b/arch/arm/boot/dts/r8a7791.dtsi index 946cd3a..e3a60a2 100644 --- a/arch/arm/boot/dts/r8a7791.dtsi +++ b/arch/arm/boot/dts/r8a7791.dtsi @@ -1420,16 +1420,16 @@ }; rcar_sound,src { - src0: src@0 { }; - src1: src@1 { }; - src2: src@2 { }; - src3: src@3 { }; - src4: src@4 { }; - src5: src@5 { }; - src6: src@6 { }; - src7: src@7 { }; - src8: src@8 { }; - src9: src@9 { }; + src0: src@0 { interrupts = <0 352 IRQ_TYPE_LEVEL_HIGH>; }; + src1: src@1 { interrupts = <0 353 IRQ_TYPE_LEVEL_HIGH>; }; + src2: src@2 { interrupts = <0 354 IRQ_TYPE_LEVEL_HIGH>; }; + src3: src@3 { interrupts = <0 355 IRQ_TYPE_LEVEL_HIGH>; }; + src4: src@4 { interrupts = <0 356 IRQ_TYPE_LEVEL_HIGH>; }; + src5: src@5 { interrupts = <0 357 IRQ_TYPE_LEVEL_HIGH>; }; + src6: src@6 { interrupts = <0 358 IRQ_TYPE_LEVEL_HIGH>; }; + src7: src@7 { interrupts = <0 359 IRQ_TYPE_LEVEL_HIGH>; }; + src8: src@8 { interrupts = <0 360 IRQ_TYPE_LEVEL_HIGH>; }; + src9: src@9 { interrupts = <0 361 IRQ_TYPE_LEVEL_HIGH>; }; }; rcar_sound,ssi { -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 06/11] ARM: shmobile: r8a7791: add SRC interrupt number on DTSI @ 2015-01-17 0:58 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-01-17 0:58 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791.dtsi | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/arch/arm/boot/dts/r8a7791.dtsi b/arch/arm/boot/dts/r8a7791.dtsi index 946cd3a..e3a60a2 100644 --- a/arch/arm/boot/dts/r8a7791.dtsi +++ b/arch/arm/boot/dts/r8a7791.dtsi @@ -1420,16 +1420,16 @@ }; rcar_sound,src { - src0: src at 0 { }; - src1: src at 1 { }; - src2: src at 2 { }; - src3: src at 3 { }; - src4: src at 4 { }; - src5: src at 5 { }; - src6: src at 6 { }; - src7: src at 7 { }; - src8: src at 8 { }; - src9: src at 9 { }; + src0: src at 0 { interrupts = <0 352 IRQ_TYPE_LEVEL_HIGH>; }; + src1: src at 1 { interrupts = <0 353 IRQ_TYPE_LEVEL_HIGH>; }; + src2: src at 2 { interrupts = <0 354 IRQ_TYPE_LEVEL_HIGH>; }; + src3: src at 3 { interrupts = <0 355 IRQ_TYPE_LEVEL_HIGH>; }; + src4: src at 4 { interrupts = <0 356 IRQ_TYPE_LEVEL_HIGH>; }; + src5: src at 5 { interrupts = <0 357 IRQ_TYPE_LEVEL_HIGH>; }; + src6: src at 6 { interrupts = <0 358 IRQ_TYPE_LEVEL_HIGH>; }; + src7: src at 7 { interrupts = <0 359 IRQ_TYPE_LEVEL_HIGH>; }; + src8: src at 8 { interrupts = <0 360 IRQ_TYPE_LEVEL_HIGH>; }; + src9: src at 9 { interrupts = <0 361 IRQ_TYPE_LEVEL_HIGH>; }; }; rcar_sound,ssi { -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 07/11] ARM: shmobile: Add DT bindings for Renesas memory controllers 2015-01-17 0:58 ` Simon Horman @ 2015-01-17 0:58 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-01-17 0:58 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> Add DT bindings for Renesas R-Mobile and SH-Mobile memory controllers. Currently memory controller device nodes are used only to reference PM domains, and prevent these PM domains from being powered down, which would crash the system. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- .../renesas-memory-controllers.txt | 44 ++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 Documentation/devicetree/bindings/memory-controllers/renesas-memory-controllers.txt diff --git a/Documentation/devicetree/bindings/memory-controllers/renesas-memory-controllers.txt b/Documentation/devicetree/bindings/memory-controllers/renesas-memory-controllers.txt new file mode 100644 index 0000000..c64b792 --- /dev/null +++ b/Documentation/devicetree/bindings/memory-controllers/renesas-memory-controllers.txt @@ -0,0 +1,44 @@ +DT bindings for Renesas R-Mobile and SH-Mobile memory controllers +================================+ +Renesas R-Mobile and SH-Mobile SoCs contain one or more memory controllers. +These memory controllers differ from one SoC variant to another, and are called +by different names ("DDR Bus Controller (DBSC)", "DDR3 Bus State Controller +(DBSC3)", "SDRAM Bus State Controller (SBSC)"). + +Currently memory controller device nodes are used only to reference PM +domains, and prevent these PM domains from being powered down, which would +crash the system. + +As there exist no actual drivers for these controllers yet, these bindings +should be considered EXPERIMENTAL for now. + +Required properties: + - compatible: Must be one of the following SoC-specific values: + - "renesas,dbsc-r8a73a4" (R-Mobile APE6) + - "renesas,dbsc3-r8a7740" (R-Mobile A1) + - "renesas,sbsc-sh73a0" (SH-Mobile AG5) + - reg: Must contain the base address and length of the memory controller's + registers. + +Optional properties: + - interrupts: Must contain a list of interrupt specifiers for memory + controller interrupts, if available. + - interrupts-names: Must contain a list of interrupt names corresponding to + the interrupts in the interrupts property, if available. + Valid interrupt names are: + - "sec" (secure interrupt) + - "temp" (normal (temperature) interrupt) + - power-domains: Must contain a reference to the PM domain that the memory + controller belongs to, if available. + +Example: + + sbsc1: memory-controller@fe400000 { + compatible = "renesas,sbsc-sh73a0"; + reg = <0xfe400000 0x400>; + interrupts = <0 35 IRQ_TYPE_LEVEL_HIGH>, + <0 36 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "sec", "temp"; + power-domains = <&pd_a4bc0>; + }; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 07/11] ARM: shmobile: Add DT bindings for Renesas memory controllers @ 2015-01-17 0:58 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-01-17 0:58 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> Add DT bindings for Renesas R-Mobile and SH-Mobile memory controllers. Currently memory controller device nodes are used only to reference PM domains, and prevent these PM domains from being powered down, which would crash the system. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- .../renesas-memory-controllers.txt | 44 ++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 Documentation/devicetree/bindings/memory-controllers/renesas-memory-controllers.txt diff --git a/Documentation/devicetree/bindings/memory-controllers/renesas-memory-controllers.txt b/Documentation/devicetree/bindings/memory-controllers/renesas-memory-controllers.txt new file mode 100644 index 0000000..c64b792 --- /dev/null +++ b/Documentation/devicetree/bindings/memory-controllers/renesas-memory-controllers.txt @@ -0,0 +1,44 @@ +DT bindings for Renesas R-Mobile and SH-Mobile memory controllers +================================================================= + +Renesas R-Mobile and SH-Mobile SoCs contain one or more memory controllers. +These memory controllers differ from one SoC variant to another, and are called +by different names ("DDR Bus Controller (DBSC)", "DDR3 Bus State Controller +(DBSC3)", "SDRAM Bus State Controller (SBSC)"). + +Currently memory controller device nodes are used only to reference PM +domains, and prevent these PM domains from being powered down, which would +crash the system. + +As there exist no actual drivers for these controllers yet, these bindings +should be considered EXPERIMENTAL for now. + +Required properties: + - compatible: Must be one of the following SoC-specific values: + - "renesas,dbsc-r8a73a4" (R-Mobile APE6) + - "renesas,dbsc3-r8a7740" (R-Mobile A1) + - "renesas,sbsc-sh73a0" (SH-Mobile AG5) + - reg: Must contain the base address and length of the memory controller's + registers. + +Optional properties: + - interrupts: Must contain a list of interrupt specifiers for memory + controller interrupts, if available. + - interrupts-names: Must contain a list of interrupt names corresponding to + the interrupts in the interrupts property, if available. + Valid interrupt names are: + - "sec" (secure interrupt) + - "temp" (normal (temperature) interrupt) + - power-domains: Must contain a reference to the PM domain that the memory + controller belongs to, if available. + +Example: + + sbsc1: memory-controller at fe400000 { + compatible = "renesas,sbsc-sh73a0"; + reg = <0xfe400000 0x400>; + interrupts = <0 35 IRQ_TYPE_LEVEL_HIGH>, + <0 36 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "sec", "temp"; + power-domains = <&pd_a4bc0>; + }; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 08/11] ARM: shmobile: r8a73a4 dtsi: Add memory-controller nodes 2015-01-17 0:58 ` Simon Horman @ 2015-01-17 0:58 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-01-17 0:58 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> Add device nodes for the two DDR Bus State Controllers (DBSC). The DBSCs are located in the A3BC PM domain, which must not be powered down, else the system will crash. A reference to the A3BC PM domain will be added later. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a73a4.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/r8a73a4.dtsi b/arch/arm/boot/dts/r8a73a4.dtsi index 5ac57ba..38136d9 100644 --- a/arch/arm/boot/dts/r8a73a4.dtsi +++ b/arch/arm/boot/dts/r8a73a4.dtsi @@ -38,6 +38,16 @@ <1 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>; }; + dbsc1: memory-controller@e6790000 { + compatible = "renesas,dbsc-r8a73a4"; + reg = <0 0xe6790000 0 0x10000>; + }; + + dbsc2: memory-controller@e67a0000 { + compatible = "renesas,dbsc-r8a73a4"; + reg = <0 0xe67a0000 0 0x10000>; + }; + dmac: dma-multiplexer { compatible = "renesas,shdma-mux"; #dma-cells = <1>; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 08/11] ARM: shmobile: r8a73a4 dtsi: Add memory-controller nodes @ 2015-01-17 0:58 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-01-17 0:58 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> Add device nodes for the two DDR Bus State Controllers (DBSC). The DBSCs are located in the A3BC PM domain, which must not be powered down, else the system will crash. A reference to the A3BC PM domain will be added later. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a73a4.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/r8a73a4.dtsi b/arch/arm/boot/dts/r8a73a4.dtsi index 5ac57ba..38136d9 100644 --- a/arch/arm/boot/dts/r8a73a4.dtsi +++ b/arch/arm/boot/dts/r8a73a4.dtsi @@ -38,6 +38,16 @@ <1 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>; }; + dbsc1: memory-controller at e6790000 { + compatible = "renesas,dbsc-r8a73a4"; + reg = <0 0xe6790000 0 0x10000>; + }; + + dbsc2: memory-controller at e67a0000 { + compatible = "renesas,dbsc-r8a73a4"; + reg = <0 0xe67a0000 0 0x10000>; + }; + dmac: dma-multiplexer { compatible = "renesas,shdma-mux"; #dma-cells = <1>; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 09/11] ARM: shmobile: r8a7740 dtsi: Add memory-controller node 2015-01-17 0:58 ` Simon Horman @ 2015-01-17 0:58 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-01-17 0:58 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> Add a device node for the DDR3 Bus State Controller (DBSC3). The DBSC3 is located in the A4S PM domain, which must not be powered down, else the system will crash. This has no visible effect for now, as A4S was never turned off anyway because its child PM domain A3SM contains the CPU core. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7740.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/r8a7740.dtsi b/arch/arm/boot/dts/r8a7740.dtsi index 52f2cf4..8a09260 100644 --- a/arch/arm/boot/dts/r8a7740.dtsi +++ b/arch/arm/boot/dts/r8a7740.dtsi @@ -37,6 +37,12 @@ <0xc2000000 0x1000>; }; + dbsc3: memory-controller@fe400000 { + compatible = "renesas,dbsc3-r8a7740"; + reg = <0xfe400000 0x400>; + power-domains = <&pd_a4s>; + }; + pmu { compatible = "arm,cortex-a9-pmu"; interrupts = <0 83 IRQ_TYPE_LEVEL_HIGH>; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 09/11] ARM: shmobile: r8a7740 dtsi: Add memory-controller node @ 2015-01-17 0:58 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-01-17 0:58 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> Add a device node for the DDR3 Bus State Controller (DBSC3). The DBSC3 is located in the A4S PM domain, which must not be powered down, else the system will crash. This has no visible effect for now, as A4S was never turned off anyway because its child PM domain A3SM contains the CPU core. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7740.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/r8a7740.dtsi b/arch/arm/boot/dts/r8a7740.dtsi index 52f2cf4..8a09260 100644 --- a/arch/arm/boot/dts/r8a7740.dtsi +++ b/arch/arm/boot/dts/r8a7740.dtsi @@ -37,6 +37,12 @@ <0xc2000000 0x1000>; }; + dbsc3: memory-controller at fe400000 { + compatible = "renesas,dbsc3-r8a7740"; + reg = <0xfe400000 0x400>; + power-domains = <&pd_a4s>; + }; + pmu { compatible = "arm,cortex-a9-pmu"; interrupts = <0 83 IRQ_TYPE_LEVEL_HIGH>; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 10/11] ARM: shmobile: sh73a0 dtsi: Add memory-controller nodes 2015-01-17 0:58 ` Simon Horman @ 2015-01-17 0:58 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-01-17 0:58 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> Add device nodes for the two SDRAM Bus State Controllers. The SBSCs are located in the A4BC0 resp. A4BC1 PM domains, which must not be powered down, else the system will crash. References to the A4BC0 and A4BC1 PM domains will be added later. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/sh73a0.dtsi | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/arch/arm/boot/dts/sh73a0.dtsi b/arch/arm/boot/dts/sh73a0.dtsi index d4cfb06..37c8a76 100644 --- a/arch/arm/boot/dts/sh73a0.dtsi +++ b/arch/arm/boot/dts/sh73a0.dtsi @@ -42,6 +42,22 @@ <0xf0000100 0x100>; }; + sbsc2: memory-controller@fb400000 { + compatible = "renesas,sbsc-sh73a0"; + reg = <0xfb400000 0x400>; + interrupts = <0 37 IRQ_TYPE_LEVEL_HIGH>, + <0 38 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "sec", "temp"; + }; + + sbsc1: memory-controller@fe400000 { + compatible = "renesas,sbsc-sh73a0"; + reg = <0xfe400000 0x400>; + interrupts = <0 35 IRQ_TYPE_LEVEL_HIGH>, + <0 36 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "sec", "temp"; + }; + pmu { compatible = "arm,cortex-a9-pmu"; interrupts = <0 55 IRQ_TYPE_LEVEL_HIGH>, -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 10/11] ARM: shmobile: sh73a0 dtsi: Add memory-controller nodes @ 2015-01-17 0:58 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-01-17 0:58 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> Add device nodes for the two SDRAM Bus State Controllers. The SBSCs are located in the A4BC0 resp. A4BC1 PM domains, which must not be powered down, else the system will crash. References to the A4BC0 and A4BC1 PM domains will be added later. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/sh73a0.dtsi | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/arch/arm/boot/dts/sh73a0.dtsi b/arch/arm/boot/dts/sh73a0.dtsi index d4cfb06..37c8a76 100644 --- a/arch/arm/boot/dts/sh73a0.dtsi +++ b/arch/arm/boot/dts/sh73a0.dtsi @@ -42,6 +42,22 @@ <0xf0000100 0x100>; }; + sbsc2: memory-controller at fb400000 { + compatible = "renesas,sbsc-sh73a0"; + reg = <0xfb400000 0x400>; + interrupts = <0 37 IRQ_TYPE_LEVEL_HIGH>, + <0 38 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "sec", "temp"; + }; + + sbsc1: memory-controller at fe400000 { + compatible = "renesas,sbsc-sh73a0"; + reg = <0xfe400000 0x400>; + interrupts = <0 35 IRQ_TYPE_LEVEL_HIGH>, + <0 36 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "sec", "temp"; + }; + pmu { compatible = "arm,cortex-a9-pmu"; interrupts = <0 55 IRQ_TYPE_LEVEL_HIGH>, -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 11/11] PM / Domains: R-Mobile SYSC: Document SH-Mobile AG5 (sh73a0) binding 2015-01-17 0:58 ` Simon Horman @ 2015-01-17 0:58 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-01-17 0:58 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> SH-Mobile AG5 (sh73a0) can be handled by the existing bindings. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- Documentation/devicetree/bindings/power/renesas,sysc-rmobile.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/power/renesas,sysc-rmobile.txt b/Documentation/devicetree/bindings/power/renesas,sysc-rmobile.txt index 2460476..cc3b1f0 100644 --- a/Documentation/devicetree/bindings/power/renesas,sysc-rmobile.txt +++ b/Documentation/devicetree/bindings/power/renesas,sysc-rmobile.txt @@ -12,6 +12,7 @@ Required properties: fallback. Examples with soctypes are: - "renesas,sysc-r8a7740" (R-Mobile A1) + - "renesas,sysc-sh73a0" (SH-Mobile AG5) - reg: Two address start and address range blocks for the device: - The first block refers to the normally accessible registers, - the second block refers to the registers protected by the HPB -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 11/11] PM / Domains: R-Mobile SYSC: Document SH-Mobile AG5 (sh73a0) binding @ 2015-01-17 0:58 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-01-17 0:58 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> SH-Mobile AG5 (sh73a0) can be handled by the existing bindings. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- Documentation/devicetree/bindings/power/renesas,sysc-rmobile.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/power/renesas,sysc-rmobile.txt b/Documentation/devicetree/bindings/power/renesas,sysc-rmobile.txt index 2460476..cc3b1f0 100644 --- a/Documentation/devicetree/bindings/power/renesas,sysc-rmobile.txt +++ b/Documentation/devicetree/bindings/power/renesas,sysc-rmobile.txt @@ -12,6 +12,7 @@ Required properties: fallback. Examples with soctypes are: - "renesas,sysc-r8a7740" (R-Mobile A1) + - "renesas,sysc-sh73a0" (SH-Mobile AG5) - reg: Two address start and address range blocks for the device: - The first block refers to the normally accessible registers, - the second block refers to the registers protected by the HPB -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* Re: [GIT PULL] Second Round of Renesas ARM Based SoC DT Updates for v3.20 2015-01-17 0:58 ` Simon Horman @ 2015-01-22 1:01 ` Olof Johansson -1 siblings, 0 replies; 776+ messages in thread From: Olof Johansson @ 2015-01-22 1:01 UTC (permalink / raw) To: linux-arm-kernel On Sat, Jan 17, 2015 at 09:58:16AM +0900, Simon Horman wrote: > Hi Olof, Hi Kevin, Hi Arnd, > > Please consider these second round of Renesas ARM based SoC DT updates for v3.20. > > This pull request is based on the previous round of > such requests, tagged as renesas-dt-for-v3.20, > which you have previously pulled. > > > The following changes since commit 7408d3061d2f04181820902fae6e92e4a73d5cc0: > > ARM: shmobile: r8a7791: add MLB+ clock (2014-12-23 09:18:23 +0900) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-dt2-for-v3.20 > > for you to fetch changes up to fbaa5e694a1240c5f6b829b1e17652e4e228ee12: > > PM / Domains: R-Mobile SYSC: Document SH-Mobile AG5 (sh73a0) binding (2015-01-16 10:59:37 +0900) Merged, thanks. -Olof ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC DT Updates for v3.20 @ 2015-01-22 1:01 ` Olof Johansson 0 siblings, 0 replies; 776+ messages in thread From: Olof Johansson @ 2015-01-22 1:01 UTC (permalink / raw) To: linux-arm-kernel On Sat, Jan 17, 2015 at 09:58:16AM +0900, Simon Horman wrote: > Hi Olof, Hi Kevin, Hi Arnd, > > Please consider these second round of Renesas ARM based SoC DT updates for v3.20. > > This pull request is based on the previous round of > such requests, tagged as renesas-dt-for-v3.20, > which you have previously pulled. > > > The following changes since commit 7408d3061d2f04181820902fae6e92e4a73d5cc0: > > ARM: shmobile: r8a7791: add MLB+ clock (2014-12-23 09:18:23 +0900) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-dt2-for-v3.20 > > for you to fetch changes up to fbaa5e694a1240c5f6b829b1e17652e4e228ee12: > > PM / Domains: R-Mobile SYSC: Document SH-Mobile AG5 (sh73a0) binding (2015-01-16 10:59:37 +0900) Merged, thanks. -Olof ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC Updates for v3.20 @ 2015-01-17 0:59 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-01-17 0:59 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Hi Kevin, Hi Arnd, Please consider these second round of Renesas ARM based SoC updates for v3.20. This pull request is based on the previous round of such requests, tagged as renesas-soc-for-v3.20, which you have already pulled. The following changes since commit 39695882d3d642a73bca551e682426e4e3bcd158: ARM: shmobile: r8a73a4: Multiplatform support (2014-12-21 17:11:22 +0900) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-soc2-for-v3.20 for you to fetch changes up to 2173fc7cb681c38b9e5bc526211045caecf96e44: ARM: shmobile: R-Mobile: Add DT support for PM domains (2015-01-15 08:38:14 +0900) ---------------------------------------------------------------- Second Round of Renesas ARM Based SoC Updates for v3.20 * Add DT support for PM domains ---------------------------------------------------------------- Geert Uytterhoeven (3): ARM: shmobile: R-Mobile: Use generic_pm_domain.attach_dev() for pm_clk setup ARM: shmobile: R-Mobile: Store SYSC base address in rmobile_pm_domain ARM: shmobile: R-Mobile: Add DT support for PM domains arch/arm/mach-shmobile/Kconfig | 3 +- arch/arm/mach-shmobile/pm-r8a7740.c | 14 ++ arch/arm/mach-shmobile/pm-rmobile.c | 275 ++++++++++++++++++++++++++++++++++-- arch/arm/mach-shmobile/pm-rmobile.h | 3 +- arch/arm/mach-shmobile/pm-sh7372.c | 11 ++ 5 files changed, 289 insertions(+), 17 deletions(-) ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC Updates for v3.20 @ 2015-01-17 0:59 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-01-17 0:59 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Hi Kevin, Hi Arnd, Please consider these second round of Renesas ARM based SoC updates for v3.20. This pull request is based on the previous round of such requests, tagged as renesas-soc-for-v3.20, which you have already pulled. The following changes since commit 39695882d3d642a73bca551e682426e4e3bcd158: ARM: shmobile: r8a73a4: Multiplatform support (2014-12-21 17:11:22 +0900) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-soc2-for-v3.20 for you to fetch changes up to 2173fc7cb681c38b9e5bc526211045caecf96e44: ARM: shmobile: R-Mobile: Add DT support for PM domains (2015-01-15 08:38:14 +0900) ---------------------------------------------------------------- Second Round of Renesas ARM Based SoC Updates for v3.20 * Add DT support for PM domains ---------------------------------------------------------------- Geert Uytterhoeven (3): ARM: shmobile: R-Mobile: Use generic_pm_domain.attach_dev() for pm_clk setup ARM: shmobile: R-Mobile: Store SYSC base address in rmobile_pm_domain ARM: shmobile: R-Mobile: Add DT support for PM domains arch/arm/mach-shmobile/Kconfig | 3 +- arch/arm/mach-shmobile/pm-r8a7740.c | 14 ++ arch/arm/mach-shmobile/pm-rmobile.c | 275 ++++++++++++++++++++++++++++++++++-- arch/arm/mach-shmobile/pm-rmobile.h | 3 +- arch/arm/mach-shmobile/pm-sh7372.c | 11 ++ 5 files changed, 289 insertions(+), 17 deletions(-) ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH 1/3] ARM: shmobile: R-Mobile: Use generic_pm_domain.attach_dev() for pm_clk setup 2015-01-17 0:59 ` Simon Horman @ 2015-01-17 0:59 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-01-17 0:59 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> Use the just introduced genpd attach/detach callbacks to register the devices' module clocks, instead of doing it directly, to make it DT-proof. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/pm-rmobile.c | 34 ++++++++++++++++++++++++++++++++-- 1 file changed, 32 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-shmobile/pm-rmobile.c b/arch/arm/mach-shmobile/pm-rmobile.c index 6f7d56e..4ea458d 100644 --- a/arch/arm/mach-shmobile/pm-rmobile.c +++ b/arch/arm/mach-shmobile/pm-rmobile.c @@ -101,6 +101,36 @@ static bool rmobile_pd_active_wakeup(struct device *dev) return true; } +static int rmobile_pd_attach_dev(struct generic_pm_domain *domain, + struct device *dev) +{ + int error; + + error = pm_clk_create(dev); + if (error) { + dev_err(dev, "pm_clk_create failed %d\n", error); + return error; + } + + error = pm_clk_add(dev, NULL); + if (error) { + dev_err(dev, "pm_clk_add failed %d\n", error); + goto fail; + } + + return 0; + +fail: + pm_clk_destroy(dev); + return error; +} + +static void rmobile_pd_detach_dev(struct generic_pm_domain *domain, + struct device *dev) +{ + pm_clk_destroy(dev); +} + static void rmobile_init_pm_domain(struct rmobile_pm_domain *rmobile_pd) { struct generic_pm_domain *genpd = &rmobile_pd->genpd; @@ -111,6 +141,8 @@ static void rmobile_init_pm_domain(struct rmobile_pm_domain *rmobile_pd) genpd->dev_ops.active_wakeup = rmobile_pd_active_wakeup; genpd->power_off = rmobile_pd_power_down; genpd->power_on = rmobile_pd_power_up; + genpd->attach_dev = rmobile_pd_attach_dev; + genpd->detach_dev = rmobile_pd_detach_dev; __rmobile_pd_power_up(rmobile_pd, false); } @@ -129,8 +161,6 @@ void rmobile_add_device_to_domain_td(const char *domain_name, struct device *dev = &pdev->dev; __pm_genpd_name_add_device(domain_name, dev, td); - if (pm_clk_no_clocks(dev)) - pm_clk_add(dev, NULL); } void rmobile_add_devices_to_domains(struct pm_domain_device data[], -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 1/3] ARM: shmobile: R-Mobile: Use generic_pm_domain.attach_dev() for pm_clk setup @ 2015-01-17 0:59 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-01-17 0:59 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> Use the just introduced genpd attach/detach callbacks to register the devices' module clocks, instead of doing it directly, to make it DT-proof. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/pm-rmobile.c | 34 ++++++++++++++++++++++++++++++++-- 1 file changed, 32 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-shmobile/pm-rmobile.c b/arch/arm/mach-shmobile/pm-rmobile.c index 6f7d56e..4ea458d 100644 --- a/arch/arm/mach-shmobile/pm-rmobile.c +++ b/arch/arm/mach-shmobile/pm-rmobile.c @@ -101,6 +101,36 @@ static bool rmobile_pd_active_wakeup(struct device *dev) return true; } +static int rmobile_pd_attach_dev(struct generic_pm_domain *domain, + struct device *dev) +{ + int error; + + error = pm_clk_create(dev); + if (error) { + dev_err(dev, "pm_clk_create failed %d\n", error); + return error; + } + + error = pm_clk_add(dev, NULL); + if (error) { + dev_err(dev, "pm_clk_add failed %d\n", error); + goto fail; + } + + return 0; + +fail: + pm_clk_destroy(dev); + return error; +} + +static void rmobile_pd_detach_dev(struct generic_pm_domain *domain, + struct device *dev) +{ + pm_clk_destroy(dev); +} + static void rmobile_init_pm_domain(struct rmobile_pm_domain *rmobile_pd) { struct generic_pm_domain *genpd = &rmobile_pd->genpd; @@ -111,6 +141,8 @@ static void rmobile_init_pm_domain(struct rmobile_pm_domain *rmobile_pd) genpd->dev_ops.active_wakeup = rmobile_pd_active_wakeup; genpd->power_off = rmobile_pd_power_down; genpd->power_on = rmobile_pd_power_up; + genpd->attach_dev = rmobile_pd_attach_dev; + genpd->detach_dev = rmobile_pd_detach_dev; __rmobile_pd_power_up(rmobile_pd, false); } @@ -129,8 +161,6 @@ void rmobile_add_device_to_domain_td(const char *domain_name, struct device *dev = &pdev->dev; __pm_genpd_name_add_device(domain_name, dev, td); - if (pm_clk_no_clocks(dev)) - pm_clk_add(dev, NULL); } void rmobile_add_devices_to_domains(struct pm_domain_device data[], -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 2/3] ARM: shmobile: R-Mobile: Store SYSC base address in rmobile_pm_domain 2015-01-17 0:59 ` Simon Horman @ 2015-01-17 0:59 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-01-17 0:59 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> Replace the hardcoded addresses for accessing the SYSC PM domain registers by register offsets, relative to the SYSC base address stored in struct rmobile_pm_domain. In the future, the SYSC base address will come from DT. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/pm-r8a7740.c | 14 ++++++++++++++ arch/arm/mach-shmobile/pm-rmobile.c | 24 +++++++++++++----------- arch/arm/mach-shmobile/pm-rmobile.h | 1 + arch/arm/mach-shmobile/pm-sh7372.c | 11 +++++++++++ 4 files changed, 39 insertions(+), 11 deletions(-) diff --git a/arch/arm/mach-shmobile/pm-r8a7740.c b/arch/arm/mach-shmobile/pm-r8a7740.c index ac2eecd..34608fc 100644 --- a/arch/arm/mach-shmobile/pm-r8a7740.c +++ b/arch/arm/mach-shmobile/pm-r8a7740.c @@ -9,10 +9,14 @@ * for more details. */ #include <linux/console.h> +#include <linux/io.h> #include <linux/suspend.h> + #include "common.h" #include "pm-rmobile.h" +#define SYSC_BASE IOMEM(0xe6180000) + #if defined(CONFIG_PM) && !defined(CONFIG_ARCH_MULTIPLATFORM) static int r8a7740_pd_a3sm_suspend(void) { @@ -45,41 +49,51 @@ static int r8a7740_pd_d4_suspend(void) static struct rmobile_pm_domain r8a7740_pm_domains[] = { { .genpd.name = "A4LC", + .base = SYSC_BASE, .bit_shift = 1, }, { .genpd.name = "A4MP", + .base = SYSC_BASE, .bit_shift = 2, }, { .genpd.name = "D4", + .base = SYSC_BASE, .bit_shift = 3, .gov = &pm_domain_always_on_gov, .suspend = r8a7740_pd_d4_suspend, }, { .genpd.name = "A4R", + .base = SYSC_BASE, .bit_shift = 5, }, { .genpd.name = "A3RV", + .base = SYSC_BASE, .bit_shift = 6, }, { .genpd.name = "A4S", + .base = SYSC_BASE, .bit_shift = 10, .no_debug = true, }, { .genpd.name = "A3SP", + .base = SYSC_BASE, .bit_shift = 11, .gov = &pm_domain_always_on_gov, .no_debug = true, .suspend = r8a7740_pd_a3sp_suspend, }, { .genpd.name = "A3SM", + .base = SYSC_BASE, .bit_shift = 12, .gov = &pm_domain_always_on_gov, .suspend = r8a7740_pd_a3sm_suspend, }, { .genpd.name = "A3SG", + .base = SYSC_BASE, .bit_shift = 13, }, { .genpd.name = "A4SU", + .base = SYSC_BASE, .bit_shift = 20, }, }; diff --git a/arch/arm/mach-shmobile/pm-rmobile.c b/arch/arm/mach-shmobile/pm-rmobile.c index 4ea458d..a4fcd2c 100644 --- a/arch/arm/mach-shmobile/pm-rmobile.c +++ b/arch/arm/mach-shmobile/pm-rmobile.c @@ -20,9 +20,9 @@ #include "pm-rmobile.h" /* SYSC */ -#define SPDCR IOMEM(0xe6180008) -#define SWUCR IOMEM(0xe6180014) -#define PSTR IOMEM(0xe6180080) +#define SPDCR 0x08 /* SYS Power Down Control Register */ +#define SWUCR 0x14 /* SYS Wakeup Control Register */ +#define PSTR 0x80 /* Power Status Register */ #define PSTR_RETRIES 100 #define PSTR_DELAY_US 10 @@ -39,12 +39,12 @@ static int rmobile_pd_power_down(struct generic_pm_domain *genpd) return ret; } - if (__raw_readl(PSTR) & mask) { + if (__raw_readl(rmobile_pd->base + PSTR) & mask) { unsigned int retry_count; - __raw_writel(mask, SPDCR); + __raw_writel(mask, rmobile_pd->base + SPDCR); for (retry_count = PSTR_RETRIES; retry_count; retry_count--) { - if (!(__raw_readl(SPDCR) & mask)) + if (!(__raw_readl(rmobile_pd->base + SPDCR) & mask)) break; cpu_relax(); } @@ -52,7 +52,8 @@ static int rmobile_pd_power_down(struct generic_pm_domain *genpd) if (!rmobile_pd->no_debug) pr_debug("%s: Power off, 0x%08x -> PSTR = 0x%08x\n", - genpd->name, mask, __raw_readl(PSTR)); + genpd->name, mask, + __raw_readl(rmobile_pd->base + PSTR)); return 0; } @@ -64,13 +65,13 @@ static int __rmobile_pd_power_up(struct rmobile_pm_domain *rmobile_pd, unsigned int retry_count; int ret = 0; - if (__raw_readl(PSTR) & mask) + if (__raw_readl(rmobile_pd->base + PSTR) & mask) goto out; - __raw_writel(mask, SWUCR); + __raw_writel(mask, rmobile_pd->base + SWUCR); for (retry_count = 2 * PSTR_RETRIES; retry_count; retry_count--) { - if (!(__raw_readl(SWUCR) & mask)) + if (!(__raw_readl(rmobile_pd->base + SWUCR) & mask)) break; if (retry_count > PSTR_RETRIES) udelay(PSTR_DELAY_US); @@ -82,7 +83,8 @@ static int __rmobile_pd_power_up(struct rmobile_pm_domain *rmobile_pd, if (!rmobile_pd->no_debug) pr_debug("%s: Power on, 0x%08x -> PSTR = 0x%08x\n", - rmobile_pd->genpd.name, mask, __raw_readl(PSTR)); + rmobile_pd->genpd.name, mask, + __raw_readl(rmobile_pd->base + PSTR)); out: if (ret = 0 && rmobile_pd->resume && do_resume) diff --git a/arch/arm/mach-shmobile/pm-rmobile.h b/arch/arm/mach-shmobile/pm-rmobile.h index 8f66b34..0602130 100644 --- a/arch/arm/mach-shmobile/pm-rmobile.h +++ b/arch/arm/mach-shmobile/pm-rmobile.h @@ -21,6 +21,7 @@ struct rmobile_pm_domain { struct dev_power_governor *gov; int (*suspend)(void); void (*resume)(void); + void __iomem *base; unsigned int bit_shift; bool no_debug; }; diff --git a/arch/arm/mach-shmobile/pm-sh7372.c b/arch/arm/mach-shmobile/pm-sh7372.c index 0e37da6..c0293ae 100644 --- a/arch/arm/mach-shmobile/pm-sh7372.c +++ b/arch/arm/mach-shmobile/pm-sh7372.c @@ -45,6 +45,8 @@ #define PLLC01STPCR IOMEM(0xe61500c8) /* SYSC */ +#define SYSC_BASE IOMEM(0xe6180000) + #define SBAR IOMEM(0xe6180020) #define WUPRMSK IOMEM(0xe6180028) #define WUPSMSK IOMEM(0xe618002c) @@ -118,24 +120,28 @@ static struct rmobile_pm_domain sh7372_pm_domains[] = { .genpd.name = "A4LC", .genpd.power_on_latency_ns = PM_DOMAIN_ON_OFF_LATENCY_NS, .genpd.power_off_latency_ns = PM_DOMAIN_ON_OFF_LATENCY_NS, + .base = SYSC_BASE, .bit_shift = 1, }, { .genpd.name = "A4MP", .genpd.power_on_latency_ns = PM_DOMAIN_ON_OFF_LATENCY_NS, .genpd.power_off_latency_ns = PM_DOMAIN_ON_OFF_LATENCY_NS, + .base = SYSC_BASE, .bit_shift = 2, }, { .genpd.name = "D4", .genpd.power_on_latency_ns = PM_DOMAIN_ON_OFF_LATENCY_NS, .genpd.power_off_latency_ns = PM_DOMAIN_ON_OFF_LATENCY_NS, + .base = SYSC_BASE, .bit_shift = 3, }, { .genpd.name = "A4R", .genpd.power_on_latency_ns = PM_DOMAIN_ON_OFF_LATENCY_NS, .genpd.power_off_latency_ns = PM_DOMAIN_ON_OFF_LATENCY_NS, + .base = SYSC_BASE, .bit_shift = 5, .suspend = sh7372_a4r_pd_suspend, .resume = sh7372_intcs_resume, @@ -144,18 +150,21 @@ static struct rmobile_pm_domain sh7372_pm_domains[] = { .genpd.name = "A3RV", .genpd.power_on_latency_ns = PM_DOMAIN_ON_OFF_LATENCY_NS, .genpd.power_off_latency_ns = PM_DOMAIN_ON_OFF_LATENCY_NS, + .base = SYSC_BASE, .bit_shift = 6, }, { .genpd.name = "A3RI", .genpd.power_on_latency_ns = PM_DOMAIN_ON_OFF_LATENCY_NS, .genpd.power_off_latency_ns = PM_DOMAIN_ON_OFF_LATENCY_NS, + .base = SYSC_BASE, .bit_shift = 8, }, { .genpd.name = "A4S", .genpd.power_on_latency_ns = PM_DOMAIN_ON_OFF_LATENCY_NS, .genpd.power_off_latency_ns = PM_DOMAIN_ON_OFF_LATENCY_NS, + .base = SYSC_BASE, .bit_shift = 10, .gov = &pm_domain_always_on_gov, .no_debug = true, @@ -166,6 +175,7 @@ static struct rmobile_pm_domain sh7372_pm_domains[] = { .genpd.name = "A3SP", .genpd.power_on_latency_ns = PM_DOMAIN_ON_OFF_LATENCY_NS, .genpd.power_off_latency_ns = PM_DOMAIN_ON_OFF_LATENCY_NS, + .base = SYSC_BASE, .bit_shift = 11, .gov = &pm_domain_always_on_gov, .no_debug = true, @@ -175,6 +185,7 @@ static struct rmobile_pm_domain sh7372_pm_domains[] = { .genpd.name = "A3SG", .genpd.power_on_latency_ns = PM_DOMAIN_ON_OFF_LATENCY_NS, .genpd.power_off_latency_ns = PM_DOMAIN_ON_OFF_LATENCY_NS, + .base = SYSC_BASE, .bit_shift = 13, }, }; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 2/3] ARM: shmobile: R-Mobile: Store SYSC base address in rmobile_pm_domain @ 2015-01-17 0:59 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-01-17 0:59 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> Replace the hardcoded addresses for accessing the SYSC PM domain registers by register offsets, relative to the SYSC base address stored in struct rmobile_pm_domain. In the future, the SYSC base address will come from DT. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/pm-r8a7740.c | 14 ++++++++++++++ arch/arm/mach-shmobile/pm-rmobile.c | 24 +++++++++++++----------- arch/arm/mach-shmobile/pm-rmobile.h | 1 + arch/arm/mach-shmobile/pm-sh7372.c | 11 +++++++++++ 4 files changed, 39 insertions(+), 11 deletions(-) diff --git a/arch/arm/mach-shmobile/pm-r8a7740.c b/arch/arm/mach-shmobile/pm-r8a7740.c index ac2eecd..34608fc 100644 --- a/arch/arm/mach-shmobile/pm-r8a7740.c +++ b/arch/arm/mach-shmobile/pm-r8a7740.c @@ -9,10 +9,14 @@ * for more details. */ #include <linux/console.h> +#include <linux/io.h> #include <linux/suspend.h> + #include "common.h" #include "pm-rmobile.h" +#define SYSC_BASE IOMEM(0xe6180000) + #if defined(CONFIG_PM) && !defined(CONFIG_ARCH_MULTIPLATFORM) static int r8a7740_pd_a3sm_suspend(void) { @@ -45,41 +49,51 @@ static int r8a7740_pd_d4_suspend(void) static struct rmobile_pm_domain r8a7740_pm_domains[] = { { .genpd.name = "A4LC", + .base = SYSC_BASE, .bit_shift = 1, }, { .genpd.name = "A4MP", + .base = SYSC_BASE, .bit_shift = 2, }, { .genpd.name = "D4", + .base = SYSC_BASE, .bit_shift = 3, .gov = &pm_domain_always_on_gov, .suspend = r8a7740_pd_d4_suspend, }, { .genpd.name = "A4R", + .base = SYSC_BASE, .bit_shift = 5, }, { .genpd.name = "A3RV", + .base = SYSC_BASE, .bit_shift = 6, }, { .genpd.name = "A4S", + .base = SYSC_BASE, .bit_shift = 10, .no_debug = true, }, { .genpd.name = "A3SP", + .base = SYSC_BASE, .bit_shift = 11, .gov = &pm_domain_always_on_gov, .no_debug = true, .suspend = r8a7740_pd_a3sp_suspend, }, { .genpd.name = "A3SM", + .base = SYSC_BASE, .bit_shift = 12, .gov = &pm_domain_always_on_gov, .suspend = r8a7740_pd_a3sm_suspend, }, { .genpd.name = "A3SG", + .base = SYSC_BASE, .bit_shift = 13, }, { .genpd.name = "A4SU", + .base = SYSC_BASE, .bit_shift = 20, }, }; diff --git a/arch/arm/mach-shmobile/pm-rmobile.c b/arch/arm/mach-shmobile/pm-rmobile.c index 4ea458d..a4fcd2c 100644 --- a/arch/arm/mach-shmobile/pm-rmobile.c +++ b/arch/arm/mach-shmobile/pm-rmobile.c @@ -20,9 +20,9 @@ #include "pm-rmobile.h" /* SYSC */ -#define SPDCR IOMEM(0xe6180008) -#define SWUCR IOMEM(0xe6180014) -#define PSTR IOMEM(0xe6180080) +#define SPDCR 0x08 /* SYS Power Down Control Register */ +#define SWUCR 0x14 /* SYS Wakeup Control Register */ +#define PSTR 0x80 /* Power Status Register */ #define PSTR_RETRIES 100 #define PSTR_DELAY_US 10 @@ -39,12 +39,12 @@ static int rmobile_pd_power_down(struct generic_pm_domain *genpd) return ret; } - if (__raw_readl(PSTR) & mask) { + if (__raw_readl(rmobile_pd->base + PSTR) & mask) { unsigned int retry_count; - __raw_writel(mask, SPDCR); + __raw_writel(mask, rmobile_pd->base + SPDCR); for (retry_count = PSTR_RETRIES; retry_count; retry_count--) { - if (!(__raw_readl(SPDCR) & mask)) + if (!(__raw_readl(rmobile_pd->base + SPDCR) & mask)) break; cpu_relax(); } @@ -52,7 +52,8 @@ static int rmobile_pd_power_down(struct generic_pm_domain *genpd) if (!rmobile_pd->no_debug) pr_debug("%s: Power off, 0x%08x -> PSTR = 0x%08x\n", - genpd->name, mask, __raw_readl(PSTR)); + genpd->name, mask, + __raw_readl(rmobile_pd->base + PSTR)); return 0; } @@ -64,13 +65,13 @@ static int __rmobile_pd_power_up(struct rmobile_pm_domain *rmobile_pd, unsigned int retry_count; int ret = 0; - if (__raw_readl(PSTR) & mask) + if (__raw_readl(rmobile_pd->base + PSTR) & mask) goto out; - __raw_writel(mask, SWUCR); + __raw_writel(mask, rmobile_pd->base + SWUCR); for (retry_count = 2 * PSTR_RETRIES; retry_count; retry_count--) { - if (!(__raw_readl(SWUCR) & mask)) + if (!(__raw_readl(rmobile_pd->base + SWUCR) & mask)) break; if (retry_count > PSTR_RETRIES) udelay(PSTR_DELAY_US); @@ -82,7 +83,8 @@ static int __rmobile_pd_power_up(struct rmobile_pm_domain *rmobile_pd, if (!rmobile_pd->no_debug) pr_debug("%s: Power on, 0x%08x -> PSTR = 0x%08x\n", - rmobile_pd->genpd.name, mask, __raw_readl(PSTR)); + rmobile_pd->genpd.name, mask, + __raw_readl(rmobile_pd->base + PSTR)); out: if (ret == 0 && rmobile_pd->resume && do_resume) diff --git a/arch/arm/mach-shmobile/pm-rmobile.h b/arch/arm/mach-shmobile/pm-rmobile.h index 8f66b34..0602130 100644 --- a/arch/arm/mach-shmobile/pm-rmobile.h +++ b/arch/arm/mach-shmobile/pm-rmobile.h @@ -21,6 +21,7 @@ struct rmobile_pm_domain { struct dev_power_governor *gov; int (*suspend)(void); void (*resume)(void); + void __iomem *base; unsigned int bit_shift; bool no_debug; }; diff --git a/arch/arm/mach-shmobile/pm-sh7372.c b/arch/arm/mach-shmobile/pm-sh7372.c index 0e37da6..c0293ae 100644 --- a/arch/arm/mach-shmobile/pm-sh7372.c +++ b/arch/arm/mach-shmobile/pm-sh7372.c @@ -45,6 +45,8 @@ #define PLLC01STPCR IOMEM(0xe61500c8) /* SYSC */ +#define SYSC_BASE IOMEM(0xe6180000) + #define SBAR IOMEM(0xe6180020) #define WUPRMSK IOMEM(0xe6180028) #define WUPSMSK IOMEM(0xe618002c) @@ -118,24 +120,28 @@ static struct rmobile_pm_domain sh7372_pm_domains[] = { .genpd.name = "A4LC", .genpd.power_on_latency_ns = PM_DOMAIN_ON_OFF_LATENCY_NS, .genpd.power_off_latency_ns = PM_DOMAIN_ON_OFF_LATENCY_NS, + .base = SYSC_BASE, .bit_shift = 1, }, { .genpd.name = "A4MP", .genpd.power_on_latency_ns = PM_DOMAIN_ON_OFF_LATENCY_NS, .genpd.power_off_latency_ns = PM_DOMAIN_ON_OFF_LATENCY_NS, + .base = SYSC_BASE, .bit_shift = 2, }, { .genpd.name = "D4", .genpd.power_on_latency_ns = PM_DOMAIN_ON_OFF_LATENCY_NS, .genpd.power_off_latency_ns = PM_DOMAIN_ON_OFF_LATENCY_NS, + .base = SYSC_BASE, .bit_shift = 3, }, { .genpd.name = "A4R", .genpd.power_on_latency_ns = PM_DOMAIN_ON_OFF_LATENCY_NS, .genpd.power_off_latency_ns = PM_DOMAIN_ON_OFF_LATENCY_NS, + .base = SYSC_BASE, .bit_shift = 5, .suspend = sh7372_a4r_pd_suspend, .resume = sh7372_intcs_resume, @@ -144,18 +150,21 @@ static struct rmobile_pm_domain sh7372_pm_domains[] = { .genpd.name = "A3RV", .genpd.power_on_latency_ns = PM_DOMAIN_ON_OFF_LATENCY_NS, .genpd.power_off_latency_ns = PM_DOMAIN_ON_OFF_LATENCY_NS, + .base = SYSC_BASE, .bit_shift = 6, }, { .genpd.name = "A3RI", .genpd.power_on_latency_ns = PM_DOMAIN_ON_OFF_LATENCY_NS, .genpd.power_off_latency_ns = PM_DOMAIN_ON_OFF_LATENCY_NS, + .base = SYSC_BASE, .bit_shift = 8, }, { .genpd.name = "A4S", .genpd.power_on_latency_ns = PM_DOMAIN_ON_OFF_LATENCY_NS, .genpd.power_off_latency_ns = PM_DOMAIN_ON_OFF_LATENCY_NS, + .base = SYSC_BASE, .bit_shift = 10, .gov = &pm_domain_always_on_gov, .no_debug = true, @@ -166,6 +175,7 @@ static struct rmobile_pm_domain sh7372_pm_domains[] = { .genpd.name = "A3SP", .genpd.power_on_latency_ns = PM_DOMAIN_ON_OFF_LATENCY_NS, .genpd.power_off_latency_ns = PM_DOMAIN_ON_OFF_LATENCY_NS, + .base = SYSC_BASE, .bit_shift = 11, .gov = &pm_domain_always_on_gov, .no_debug = true, @@ -175,6 +185,7 @@ static struct rmobile_pm_domain sh7372_pm_domains[] = { .genpd.name = "A3SG", .genpd.power_on_latency_ns = PM_DOMAIN_ON_OFF_LATENCY_NS, .genpd.power_off_latency_ns = PM_DOMAIN_ON_OFF_LATENCY_NS, + .base = SYSC_BASE, .bit_shift = 13, }, }; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 3/3] ARM: shmobile: R-Mobile: Add DT support for PM domains 2015-01-17 0:59 ` Simon Horman @ 2015-01-17 0:59 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-01-17 0:59 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> Populate the PM domains from DT, and provide support to hook up devices to their respective PM domain. The always-on power area (e.g. C5 on r8a7740) is created as a PM domain without software control, to allow Run-Time management of module clocks for hardware blocks inside this area. Special cases like PM domains containing CPUs, the console device, or Coresight-ETM, are handled by scanning the DT topology. As long as the ARM debug/perf code doesn't use resource management with runtime PM support, the power area containing Coresight-ETM (e.g. D4 on r8a7740) must be kept powered to avoid a crash during resume from s2ram (dbg_cpu_pm_notify() calls reset_ctrl_regs() unconditionally, causing an undefined instruction oops). Initialization is done from core_initcall(), as the "renesas,intc-irqpin" driver uses postcore_initcall(). Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/Kconfig | 3 +- arch/arm/mach-shmobile/pm-rmobile.c | 217 +++++++++++++++++++++++++++++++++++- arch/arm/mach-shmobile/pm-rmobile.h | 2 +- 3 files changed, 218 insertions(+), 4 deletions(-) diff --git a/arch/arm/mach-shmobile/Kconfig b/arch/arm/mach-shmobile/Kconfig index d107b93..894c6876 100644 --- a/arch/arm/mach-shmobile/Kconfig +++ b/arch/arm/mach-shmobile/Kconfig @@ -7,6 +7,7 @@ config PM_RCAR config PM_RMOBILE bool + select PM_GENERIC_DOMAINS config ARCH_RCAR_GEN1 bool @@ -23,7 +24,7 @@ config ARCH_RCAR_GEN2 config ARCH_RMOBILE bool - select PM_RMOBILE if PM && !ARCH_SHMOBILE_MULTI + select PM_RMOBILE if PM select SYS_SUPPORTS_SH_CMT select SYS_SUPPORTS_SH_TMU diff --git a/arch/arm/mach-shmobile/pm-rmobile.c b/arch/arm/mach-shmobile/pm-rmobile.c index a4fcd2c..85a7fdd 100644 --- a/arch/arm/mach-shmobile/pm-rmobile.c +++ b/arch/arm/mach-shmobile/pm-rmobile.c @@ -3,6 +3,7 @@ * * Copyright (C) 2012 Renesas Solutions Corp. * Copyright (C) 2012 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> + * Copyright (C) 2014 Glider bvba * * based on pm-sh7372.c * Copyright (C) 2011 Magnus Damm @@ -13,10 +14,16 @@ */ #include <linux/console.h> #include <linux/delay.h> +#include <linux/of.h> +#include <linux/of_address.h> +#include <linux/of_platform.h> #include <linux/platform_device.h> #include <linux/pm.h> #include <linux/pm_clock.h> +#include <linux/slab.h> + #include <asm/io.h> + #include "pm-rmobile.h" /* SYSC */ @@ -30,8 +37,12 @@ static int rmobile_pd_power_down(struct generic_pm_domain *genpd) { struct rmobile_pm_domain *rmobile_pd = to_rmobile_pd(genpd); - unsigned int mask = 1 << rmobile_pd->bit_shift; + unsigned int mask; + + if (rmobile_pd->bit_shift = ~0) + return -EBUSY; + mask = 1 << rmobile_pd->bit_shift; if (rmobile_pd->suspend) { int ret = rmobile_pd->suspend(); @@ -61,10 +72,14 @@ static int rmobile_pd_power_down(struct generic_pm_domain *genpd) static int __rmobile_pd_power_up(struct rmobile_pm_domain *rmobile_pd, bool do_resume) { - unsigned int mask = 1 << rmobile_pd->bit_shift; + unsigned int mask; unsigned int retry_count; int ret = 0; + if (rmobile_pd->bit_shift = ~0) + return 0; + + mask = 1 << rmobile_pd->bit_shift; if (__raw_readl(rmobile_pd->base + PSTR) & mask) goto out; @@ -148,6 +163,8 @@ static void rmobile_init_pm_domain(struct rmobile_pm_domain *rmobile_pd) __rmobile_pd_power_up(rmobile_pd, false); } +#ifdef CONFIG_ARCH_SHMOBILE_LEGACY + void rmobile_init_domains(struct rmobile_pm_domain domains[], int num) { int j; @@ -180,3 +197,199 @@ void rmobile_add_devices_to_domains(struct pm_domain_device data[], rmobile_add_device_to_domain_td(data[j].domain_name, data[j].pdev, &latencies); } + +#else /* !CONFIG_ARCH_SHMOBILE_LEGACY */ + +static int rmobile_pd_suspend_cpu(void) +{ + /* + * This domain contains the CPU core and therefore it should + * only be turned off if the CPU is not in use. + */ + return -EBUSY; +} + +static int rmobile_pd_suspend_console(void) +{ + /* + * Serial consoles make use of SCIF hardware located in this domain, + * hence keep the power domain on if "no_console_suspend" is set. + */ + return console_suspend_enabled ? 0 : -EBUSY; +} + +static int rmobile_pd_suspend_debug(void) +{ + /* + * This domain contains the Coresight-ETM hardware block and + * therefore it should only be turned off if the debug module is + * not in use. + */ + return -EBUSY; +} + +#define MAX_NUM_CPU_PDS 8 + +static unsigned int num_cpu_pds __initdata; +static struct device_node *cpu_pds[MAX_NUM_CPU_PDS] __initdata; +static struct device_node *console_pd __initdata; +static struct device_node *debug_pd __initdata; + +static void __init get_special_pds(void) +{ + struct device_node *np, *pd; + unsigned int i; + + /* PM domains containing CPUs */ + for_each_node_by_type(np, "cpu") { + pd = of_parse_phandle(np, "power-domains", 0); + if (!pd) + continue; + + for (i = 0; i < num_cpu_pds; i++) + if (pd = cpu_pds[i]) + break; + + if (i < num_cpu_pds) { + of_node_put(pd); + continue; + } + + if (num_cpu_pds = MAX_NUM_CPU_PDS) { + pr_warn("Too many CPU PM domains\n"); + of_node_put(pd); + continue; + } + + cpu_pds[num_cpu_pds++] = pd; + } + + /* PM domain containing console */ + if (of_stdout) + console_pd = of_parse_phandle(of_stdout, "power-domains", 0); + + /* PM domain containing Coresight-ETM */ + np = of_find_compatible_node(NULL, NULL, "arm,coresight-etm3x"); + if (np) { + debug_pd = of_parse_phandle(np, "power-domains", 0); + of_node_put(np); + } +} + +static void __init put_special_pds(void) +{ + unsigned int i; + + for (i = 0; i < num_cpu_pds; i++) + of_node_put(cpu_pds[i]); + of_node_put(console_pd); + of_node_put(debug_pd); +} + +static bool __init pd_contains_cpu(const struct device_node *pd) +{ + unsigned int i; + + for (i = 0; i < num_cpu_pds; i++) + if (pd = cpu_pds[i]) + return true; + + return false; +} + +static void __init rmobile_setup_pm_domain(struct device_node *np, + struct rmobile_pm_domain *pd) +{ + const char *name = pd->genpd.name; + + if (pd_contains_cpu(np)) { + pr_debug("PM domain %s contains CPU\n", name); + pd->gov = &pm_domain_always_on_gov; + pd->suspend = rmobile_pd_suspend_cpu; + } else if (np = console_pd) { + pr_debug("PM domain %s contains serial console\n", name); + pd->gov = &pm_domain_always_on_gov; + pd->suspend = rmobile_pd_suspend_console; + } else if (np = debug_pd) { + pr_debug("PM domain %s contains Coresight-ETM\n", name); + pd->gov = &pm_domain_always_on_gov; + pd->suspend = rmobile_pd_suspend_debug; + } + + rmobile_init_pm_domain(pd); +} + +static int __init rmobile_add_pm_domains(void __iomem *base, + struct device_node *parent, + struct generic_pm_domain *genpd_parent) +{ + struct device_node *np; + + for_each_child_of_node(parent, np) { + struct rmobile_pm_domain *pd; + u32 idx = ~0; + + if (of_property_read_u32(np, "reg", &idx)) { + /* always-on domain */ + } + + pd = kzalloc(sizeof(*pd), GFP_KERNEL); + if (!pd) + return -ENOMEM; + + pd->genpd.name = np->name; + pd->base = base; + pd->bit_shift = idx; + + rmobile_setup_pm_domain(np, pd); + if (genpd_parent) + pm_genpd_add_subdomain(genpd_parent, &pd->genpd); + of_genpd_add_provider_simple(np, &pd->genpd); + + rmobile_add_pm_domains(base, np, &pd->genpd); + } + return 0; +} + +static int __init rmobile_init_pm_domains(void) +{ + struct device_node *np, *pmd; + bool scanned = false; + void __iomem *base; + int ret = 0; + + for_each_compatible_node(np, NULL, "renesas,sysc-rmobile") { + base = of_iomap(np, 0); + if (!base) { + pr_warn("%s cannot map reg 0\n", np->full_name); + continue; + } + + pmd = of_get_child_by_name(np, "pm-domains"); + if (!pmd) { + pr_warn("%s lacks pm-domains node\n", np->full_name); + continue; + } + + if (!scanned) { + /* Find PM domains containing special blocks */ + get_special_pds(); + scanned = true; + } + + ret = rmobile_add_pm_domains(base, pmd, NULL); + of_node_put(pmd); + if (ret) { + of_node_put(np); + break; + } + } + + put_special_pds(); + + return ret; +} + +core_initcall(rmobile_init_pm_domains); + +#endif /* !CONFIG_ARCH_SHMOBILE_LEGACY */ diff --git a/arch/arm/mach-shmobile/pm-rmobile.h b/arch/arm/mach-shmobile/pm-rmobile.h index 0602130..5321978 100644 --- a/arch/arm/mach-shmobile/pm-rmobile.h +++ b/arch/arm/mach-shmobile/pm-rmobile.h @@ -37,7 +37,7 @@ struct pm_domain_device { struct platform_device *pdev; }; -#ifdef CONFIG_PM_RMOBILE +#if defined(CONFIG_PM_RMOBILE) && defined(CONFIG_ARCH_SHMOBILE_LEGACY) extern void rmobile_init_domains(struct rmobile_pm_domain domains[], int num); extern void rmobile_add_device_to_domain_td(const char *domain_name, struct platform_device *pdev, -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 3/3] ARM: shmobile: R-Mobile: Add DT support for PM domains @ 2015-01-17 0:59 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-01-17 0:59 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> Populate the PM domains from DT, and provide support to hook up devices to their respective PM domain. The always-on power area (e.g. C5 on r8a7740) is created as a PM domain without software control, to allow Run-Time management of module clocks for hardware blocks inside this area. Special cases like PM domains containing CPUs, the console device, or Coresight-ETM, are handled by scanning the DT topology. As long as the ARM debug/perf code doesn't use resource management with runtime PM support, the power area containing Coresight-ETM (e.g. D4 on r8a7740) must be kept powered to avoid a crash during resume from s2ram (dbg_cpu_pm_notify() calls reset_ctrl_regs() unconditionally, causing an undefined instruction oops). Initialization is done from core_initcall(), as the "renesas,intc-irqpin" driver uses postcore_initcall(). Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/Kconfig | 3 +- arch/arm/mach-shmobile/pm-rmobile.c | 217 +++++++++++++++++++++++++++++++++++- arch/arm/mach-shmobile/pm-rmobile.h | 2 +- 3 files changed, 218 insertions(+), 4 deletions(-) diff --git a/arch/arm/mach-shmobile/Kconfig b/arch/arm/mach-shmobile/Kconfig index d107b93..894c6876 100644 --- a/arch/arm/mach-shmobile/Kconfig +++ b/arch/arm/mach-shmobile/Kconfig @@ -7,6 +7,7 @@ config PM_RCAR config PM_RMOBILE bool + select PM_GENERIC_DOMAINS config ARCH_RCAR_GEN1 bool @@ -23,7 +24,7 @@ config ARCH_RCAR_GEN2 config ARCH_RMOBILE bool - select PM_RMOBILE if PM && !ARCH_SHMOBILE_MULTI + select PM_RMOBILE if PM select SYS_SUPPORTS_SH_CMT select SYS_SUPPORTS_SH_TMU diff --git a/arch/arm/mach-shmobile/pm-rmobile.c b/arch/arm/mach-shmobile/pm-rmobile.c index a4fcd2c..85a7fdd 100644 --- a/arch/arm/mach-shmobile/pm-rmobile.c +++ b/arch/arm/mach-shmobile/pm-rmobile.c @@ -3,6 +3,7 @@ * * Copyright (C) 2012 Renesas Solutions Corp. * Copyright (C) 2012 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> + * Copyright (C) 2014 Glider bvba * * based on pm-sh7372.c * Copyright (C) 2011 Magnus Damm @@ -13,10 +14,16 @@ */ #include <linux/console.h> #include <linux/delay.h> +#include <linux/of.h> +#include <linux/of_address.h> +#include <linux/of_platform.h> #include <linux/platform_device.h> #include <linux/pm.h> #include <linux/pm_clock.h> +#include <linux/slab.h> + #include <asm/io.h> + #include "pm-rmobile.h" /* SYSC */ @@ -30,8 +37,12 @@ static int rmobile_pd_power_down(struct generic_pm_domain *genpd) { struct rmobile_pm_domain *rmobile_pd = to_rmobile_pd(genpd); - unsigned int mask = 1 << rmobile_pd->bit_shift; + unsigned int mask; + + if (rmobile_pd->bit_shift == ~0) + return -EBUSY; + mask = 1 << rmobile_pd->bit_shift; if (rmobile_pd->suspend) { int ret = rmobile_pd->suspend(); @@ -61,10 +72,14 @@ static int rmobile_pd_power_down(struct generic_pm_domain *genpd) static int __rmobile_pd_power_up(struct rmobile_pm_domain *rmobile_pd, bool do_resume) { - unsigned int mask = 1 << rmobile_pd->bit_shift; + unsigned int mask; unsigned int retry_count; int ret = 0; + if (rmobile_pd->bit_shift == ~0) + return 0; + + mask = 1 << rmobile_pd->bit_shift; if (__raw_readl(rmobile_pd->base + PSTR) & mask) goto out; @@ -148,6 +163,8 @@ static void rmobile_init_pm_domain(struct rmobile_pm_domain *rmobile_pd) __rmobile_pd_power_up(rmobile_pd, false); } +#ifdef CONFIG_ARCH_SHMOBILE_LEGACY + void rmobile_init_domains(struct rmobile_pm_domain domains[], int num) { int j; @@ -180,3 +197,199 @@ void rmobile_add_devices_to_domains(struct pm_domain_device data[], rmobile_add_device_to_domain_td(data[j].domain_name, data[j].pdev, &latencies); } + +#else /* !CONFIG_ARCH_SHMOBILE_LEGACY */ + +static int rmobile_pd_suspend_cpu(void) +{ + /* + * This domain contains the CPU core and therefore it should + * only be turned off if the CPU is not in use. + */ + return -EBUSY; +} + +static int rmobile_pd_suspend_console(void) +{ + /* + * Serial consoles make use of SCIF hardware located in this domain, + * hence keep the power domain on if "no_console_suspend" is set. + */ + return console_suspend_enabled ? 0 : -EBUSY; +} + +static int rmobile_pd_suspend_debug(void) +{ + /* + * This domain contains the Coresight-ETM hardware block and + * therefore it should only be turned off if the debug module is + * not in use. + */ + return -EBUSY; +} + +#define MAX_NUM_CPU_PDS 8 + +static unsigned int num_cpu_pds __initdata; +static struct device_node *cpu_pds[MAX_NUM_CPU_PDS] __initdata; +static struct device_node *console_pd __initdata; +static struct device_node *debug_pd __initdata; + +static void __init get_special_pds(void) +{ + struct device_node *np, *pd; + unsigned int i; + + /* PM domains containing CPUs */ + for_each_node_by_type(np, "cpu") { + pd = of_parse_phandle(np, "power-domains", 0); + if (!pd) + continue; + + for (i = 0; i < num_cpu_pds; i++) + if (pd == cpu_pds[i]) + break; + + if (i < num_cpu_pds) { + of_node_put(pd); + continue; + } + + if (num_cpu_pds == MAX_NUM_CPU_PDS) { + pr_warn("Too many CPU PM domains\n"); + of_node_put(pd); + continue; + } + + cpu_pds[num_cpu_pds++] = pd; + } + + /* PM domain containing console */ + if (of_stdout) + console_pd = of_parse_phandle(of_stdout, "power-domains", 0); + + /* PM domain containing Coresight-ETM */ + np = of_find_compatible_node(NULL, NULL, "arm,coresight-etm3x"); + if (np) { + debug_pd = of_parse_phandle(np, "power-domains", 0); + of_node_put(np); + } +} + +static void __init put_special_pds(void) +{ + unsigned int i; + + for (i = 0; i < num_cpu_pds; i++) + of_node_put(cpu_pds[i]); + of_node_put(console_pd); + of_node_put(debug_pd); +} + +static bool __init pd_contains_cpu(const struct device_node *pd) +{ + unsigned int i; + + for (i = 0; i < num_cpu_pds; i++) + if (pd == cpu_pds[i]) + return true; + + return false; +} + +static void __init rmobile_setup_pm_domain(struct device_node *np, + struct rmobile_pm_domain *pd) +{ + const char *name = pd->genpd.name; + + if (pd_contains_cpu(np)) { + pr_debug("PM domain %s contains CPU\n", name); + pd->gov = &pm_domain_always_on_gov; + pd->suspend = rmobile_pd_suspend_cpu; + } else if (np == console_pd) { + pr_debug("PM domain %s contains serial console\n", name); + pd->gov = &pm_domain_always_on_gov; + pd->suspend = rmobile_pd_suspend_console; + } else if (np == debug_pd) { + pr_debug("PM domain %s contains Coresight-ETM\n", name); + pd->gov = &pm_domain_always_on_gov; + pd->suspend = rmobile_pd_suspend_debug; + } + + rmobile_init_pm_domain(pd); +} + +static int __init rmobile_add_pm_domains(void __iomem *base, + struct device_node *parent, + struct generic_pm_domain *genpd_parent) +{ + struct device_node *np; + + for_each_child_of_node(parent, np) { + struct rmobile_pm_domain *pd; + u32 idx = ~0; + + if (of_property_read_u32(np, "reg", &idx)) { + /* always-on domain */ + } + + pd = kzalloc(sizeof(*pd), GFP_KERNEL); + if (!pd) + return -ENOMEM; + + pd->genpd.name = np->name; + pd->base = base; + pd->bit_shift = idx; + + rmobile_setup_pm_domain(np, pd); + if (genpd_parent) + pm_genpd_add_subdomain(genpd_parent, &pd->genpd); + of_genpd_add_provider_simple(np, &pd->genpd); + + rmobile_add_pm_domains(base, np, &pd->genpd); + } + return 0; +} + +static int __init rmobile_init_pm_domains(void) +{ + struct device_node *np, *pmd; + bool scanned = false; + void __iomem *base; + int ret = 0; + + for_each_compatible_node(np, NULL, "renesas,sysc-rmobile") { + base = of_iomap(np, 0); + if (!base) { + pr_warn("%s cannot map reg 0\n", np->full_name); + continue; + } + + pmd = of_get_child_by_name(np, "pm-domains"); + if (!pmd) { + pr_warn("%s lacks pm-domains node\n", np->full_name); + continue; + } + + if (!scanned) { + /* Find PM domains containing special blocks */ + get_special_pds(); + scanned = true; + } + + ret = rmobile_add_pm_domains(base, pmd, NULL); + of_node_put(pmd); + if (ret) { + of_node_put(np); + break; + } + } + + put_special_pds(); + + return ret; +} + +core_initcall(rmobile_init_pm_domains); + +#endif /* !CONFIG_ARCH_SHMOBILE_LEGACY */ diff --git a/arch/arm/mach-shmobile/pm-rmobile.h b/arch/arm/mach-shmobile/pm-rmobile.h index 0602130..5321978 100644 --- a/arch/arm/mach-shmobile/pm-rmobile.h +++ b/arch/arm/mach-shmobile/pm-rmobile.h @@ -37,7 +37,7 @@ struct pm_domain_device { struct platform_device *pdev; }; -#ifdef CONFIG_PM_RMOBILE +#if defined(CONFIG_PM_RMOBILE) && defined(CONFIG_ARCH_SHMOBILE_LEGACY) extern void rmobile_init_domains(struct rmobile_pm_domain domains[], int num); extern void rmobile_add_device_to_domain_td(const char *domain_name, struct platform_device *pdev, -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* Re: [GIT PULL] Second Round of Renesas ARM Based SoC Updates for v3.20 2015-01-17 0:59 ` Simon Horman @ 2015-01-22 1:02 ` Olof Johansson -1 siblings, 0 replies; 776+ messages in thread From: Olof Johansson @ 2015-01-22 1:02 UTC (permalink / raw) To: linux-arm-kernel On Sat, Jan 17, 2015 at 09:59:24AM +0900, Simon Horman wrote: > Hi Olof, Hi Kevin, Hi Arnd, > > Please consider these second round of Renesas ARM based SoC updates for v3.20. > > This pull request is based on the previous round of > such requests, tagged as renesas-soc-for-v3.20, > which you have already pulled. > > > The following changes since commit 39695882d3d642a73bca551e682426e4e3bcd158: > > ARM: shmobile: r8a73a4: Multiplatform support (2014-12-21 17:11:22 +0900) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-soc2-for-v3.20 > > for you to fetch changes up to 2173fc7cb681c38b9e5bc526211045caecf96e44: > > ARM: shmobile: R-Mobile: Add DT support for PM domains (2015-01-15 08:38:14 +0900) > Merged, thanks. -Olof ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC Updates for v3.20 @ 2015-01-22 1:02 ` Olof Johansson 0 siblings, 0 replies; 776+ messages in thread From: Olof Johansson @ 2015-01-22 1:02 UTC (permalink / raw) To: linux-arm-kernel On Sat, Jan 17, 2015 at 09:59:24AM +0900, Simon Horman wrote: > Hi Olof, Hi Kevin, Hi Arnd, > > Please consider these second round of Renesas ARM based SoC updates for v3.20. > > This pull request is based on the previous round of > such requests, tagged as renesas-soc-for-v3.20, > which you have already pulled. > > > The following changes since commit 39695882d3d642a73bca551e682426e4e3bcd158: > > ARM: shmobile: r8a73a4: Multiplatform support (2014-12-21 17:11:22 +0900) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-soc2-for-v3.20 > > for you to fetch changes up to 2173fc7cb681c38b9e5bc526211045caecf96e44: > > ARM: shmobile: R-Mobile: Add DT support for PM domains (2015-01-15 08:38:14 +0900) > Merged, thanks. -Olof ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC Fixes for v3.19 @ 2015-01-20 1:26 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-01-20 1:26 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Hi Kevin, Hi Arnd, Please consider these second round of Renesas ARM based SoC fixes for v3.19. This pull request is based on the previous round of such requests, tagged as renesas-soc-fixes-for-v3.19, which you have already pulled into your fixes branch. This fixes a regression in the r8a7779 and r8a7779 SoCs due to 9a1091ef0017c40a ("irqchip: gic: Support hierarchy irq domain.") which was included in v3.18-rc2. The following changes since commit b0ddb319db3d7a1943445f0de0a45c07a7f3457a: ARM: shmobile: sh73a0 legacy: Set .control_parent for all irqpin instances (2015-01-08 09:15:16 +0900) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-soc-fixes2-for-v3.19 for you to fetch changes up to f469cde20a7ee342070b4a459b6fce469a3186db: ARM: shmobile: r8a7779: Instantiate GIC from C board code in legacy builds (2015-01-17 09:28:41 +0900) ---------------------------------------------------------------- Second Round of Renesas ARM Based SoC Fixes for v3.19 * Instantiate GIC from C board code in legacy builds on r8a7778 and r8a7779 ---------------------------------------------------------------- Magnus Damm (2): ARM: shmobile: r8a7778: Instantiate GIC from C board code in legacy builds ARM: shmobile: r8a7779: Instantiate GIC from C board code in legacy builds arch/arm/mach-shmobile/setup-r8a7778.c | 9 ++++++++- arch/arm/mach-shmobile/setup-r8a7779.c | 9 ++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC Fixes for v3.19 @ 2015-01-20 1:26 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-01-20 1:26 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Hi Kevin, Hi Arnd, Please consider these second round of Renesas ARM based SoC fixes for v3.19. This pull request is based on the previous round of such requests, tagged as renesas-soc-fixes-for-v3.19, which you have already pulled into your fixes branch. This fixes a regression in the r8a7779 and r8a7779 SoCs due to 9a1091ef0017c40a ("irqchip: gic: Support hierarchy irq domain.") which was included in v3.18-rc2. The following changes since commit b0ddb319db3d7a1943445f0de0a45c07a7f3457a: ARM: shmobile: sh73a0 legacy: Set .control_parent for all irqpin instances (2015-01-08 09:15:16 +0900) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-soc-fixes2-for-v3.19 for you to fetch changes up to f469cde20a7ee342070b4a459b6fce469a3186db: ARM: shmobile: r8a7779: Instantiate GIC from C board code in legacy builds (2015-01-17 09:28:41 +0900) ---------------------------------------------------------------- Second Round of Renesas ARM Based SoC Fixes for v3.19 * Instantiate GIC from C board code in legacy builds on r8a7778 and r8a7779 ---------------------------------------------------------------- Magnus Damm (2): ARM: shmobile: r8a7778: Instantiate GIC from C board code in legacy builds ARM: shmobile: r8a7779: Instantiate GIC from C board code in legacy builds arch/arm/mach-shmobile/setup-r8a7778.c | 9 ++++++++- arch/arm/mach-shmobile/setup-r8a7779.c | 9 ++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH 1/2] ARM: shmobile: r8a7778: Instantiate GIC from C board code in legacy builds 2015-01-20 1:26 ` Simon Horman @ 2015-01-20 1:26 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-01-20 1:26 UTC (permalink / raw) To: linux-arm-kernel From: Magnus Damm <damm+renesas@opensource.se> As of commit 9a1091ef0017c40a ("irqchip: gic: Support hierarchy irq domain."), Bock-W legacy hangs during boot with: Unable to handle kernel paging request at virtual address cf86a128 pgd = c0004000 [cf86a128] *pgdo80041e(bad) Internal error: Oops: 8000000d [#1] SMP ARM CPU: 0 PID: 1 Comm: swapper/0 Not tainted 3.19.0-rc4 #1 Hardware name: bockw task: cf823b40 ti: cf824000 task.ti: cf824000 PC is at 0xcf86a128 LR is at request_threaded_irq+0xbc/0x124 This happens because the IRQ numbers of the GIC are now virtual, and no longer match the hardcoded hardware IRQ numbers in the platform board code. To fix this, instantiate the GIC from platform board code when compiling a legacy kernel, like is done for the sh73a0 and r8a7740 legacy code. Follows same style as the r8a7740 legacy GIC fix by Geert Uytterhoeven, thanks to him for the initial work. Signed-off-by: Magnus Damm <damm+renesas@opensource.se> Acked-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/setup-r8a7778.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-shmobile/setup-r8a7778.c b/arch/arm/mach-shmobile/setup-r8a7778.c index 85fe016..5d7a009 100644 --- a/arch/arm/mach-shmobile/setup-r8a7778.c +++ b/arch/arm/mach-shmobile/setup-r8a7778.c @@ -586,11 +586,18 @@ void __init r8a7778_init_delay(void) void __init r8a7778_init_irq_dt(void) { void __iomem *base = ioremap_nocache(0xfe700000, 0x00100000); +#ifdef CONFIG_ARCH_SHMOBILE_LEGACY + void __iomem *gic_dist_base = ioremap_nocache(0xfe438000, 0x1000); + void __iomem *gic_cpu_base = ioremap_nocache(0xfe430000, 0x1000); +#endif BUG_ON(!base); +#ifdef CONFIG_ARCH_SHMOBILE_LEGACY + gic_init(0, 29, gic_dist_base, gic_cpu_base); +#else irqchip_init(); - +#endif /* route all interrupts to ARM */ __raw_writel(0x73ffffff, base + INT2NTSR0); __raw_writel(0xffffffff, base + INT2NTSR1); -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 1/2] ARM: shmobile: r8a7778: Instantiate GIC from C board code in legacy builds @ 2015-01-20 1:26 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-01-20 1:26 UTC (permalink / raw) To: linux-arm-kernel From: Magnus Damm <damm+renesas@opensource.se> As of commit 9a1091ef0017c40a ("irqchip: gic: Support hierarchy irq domain."), Bock-W legacy hangs during boot with: Unable to handle kernel paging request at virtual address cf86a128 pgd = c0004000 [cf86a128] *pgd=6f80041e(bad) Internal error: Oops: 8000000d [#1] SMP ARM CPU: 0 PID: 1 Comm: swapper/0 Not tainted 3.19.0-rc4 #1 Hardware name: bockw task: cf823b40 ti: cf824000 task.ti: cf824000 PC is at 0xcf86a128 LR is at request_threaded_irq+0xbc/0x124 This happens because the IRQ numbers of the GIC are now virtual, and no longer match the hardcoded hardware IRQ numbers in the platform board code. To fix this, instantiate the GIC from platform board code when compiling a legacy kernel, like is done for the sh73a0 and r8a7740 legacy code. Follows same style as the r8a7740 legacy GIC fix by Geert Uytterhoeven, thanks to him for the initial work. Signed-off-by: Magnus Damm <damm+renesas@opensource.se> Acked-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/setup-r8a7778.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-shmobile/setup-r8a7778.c b/arch/arm/mach-shmobile/setup-r8a7778.c index 85fe016..5d7a009 100644 --- a/arch/arm/mach-shmobile/setup-r8a7778.c +++ b/arch/arm/mach-shmobile/setup-r8a7778.c @@ -586,11 +586,18 @@ void __init r8a7778_init_delay(void) void __init r8a7778_init_irq_dt(void) { void __iomem *base = ioremap_nocache(0xfe700000, 0x00100000); +#ifdef CONFIG_ARCH_SHMOBILE_LEGACY + void __iomem *gic_dist_base = ioremap_nocache(0xfe438000, 0x1000); + void __iomem *gic_cpu_base = ioremap_nocache(0xfe430000, 0x1000); +#endif BUG_ON(!base); +#ifdef CONFIG_ARCH_SHMOBILE_LEGACY + gic_init(0, 29, gic_dist_base, gic_cpu_base); +#else irqchip_init(); - +#endif /* route all interrupts to ARM */ __raw_writel(0x73ffffff, base + INT2NTSR0); __raw_writel(0xffffffff, base + INT2NTSR1); -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 2/2] ARM: shmobile: r8a7779: Instantiate GIC from C board code in legacy builds 2015-01-20 1:26 ` Simon Horman @ 2015-01-20 1:26 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-01-20 1:26 UTC (permalink / raw) To: linux-arm-kernel From: Magnus Damm <damm+renesas@opensource.se> As of commit 9a1091ef0017c40a ("irqchip: gic: Support hierarchy irq domain."), Marzen legacy hangs during boot with: Image Name: 'Linux-3.19.0-rc4' Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 3445880 Bytes = 3.3 MiB Load Address: 60008000 Entry Point: 60008000 Verifying Checksum ... OK Loading Kernel Image ... OK OK Starting kernel ... Enabling DEBUG_LL does not seem to change the situation, however this patch by itself fixes this issue and re-enables normal boot. This issue happens because the IRQ numbers of the GIC are now virtual, and no longer match the hardcoded hardware IRQ numbers in the platform board code. To fix this, instantiate the GIC from platform board code when compiling a legacy kernel, like is done for the sh73a0, r8a7740 and r8a7778 legacy code. Follows same style as the r8a7740 legacy GIC fix by Geert Uytterhoeven, thanks to him for the initial work. Signed-off-by: Magnus Damm <damm+renesas@opensource.se> Acked-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/setup-r8a7779.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-shmobile/setup-r8a7779.c b/arch/arm/mach-shmobile/setup-r8a7779.c index 434d150..ca60683 100644 --- a/arch/arm/mach-shmobile/setup-r8a7779.c +++ b/arch/arm/mach-shmobile/setup-r8a7779.c @@ -724,10 +724,17 @@ static int r8a7779_set_wake(struct irq_data *data, unsigned int on) void __init r8a7779_init_irq_dt(void) { +#ifdef CONFIG_ARCH_SHMOBILE_LEGACY + void __iomem *gic_dist_base = ioremap_nocache(0xf0001000, 0x1000); + void __iomem *gic_cpu_base = ioremap_nocache(0xf0000100, 0x1000); +#endif gic_arch_extn.irq_set_wake = r8a7779_set_wake; +#ifdef CONFIG_ARCH_SHMOBILE_LEGACY + gic_init(0, 29, gic_dist_base, gic_cpu_base); +#else irqchip_init(); - +#endif /* route all interrupts to ARM */ __raw_writel(0xffffffff, INT2NTSR0); __raw_writel(0x3fffffff, INT2NTSR1); -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 2/2] ARM: shmobile: r8a7779: Instantiate GIC from C board code in legacy builds @ 2015-01-20 1:26 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-01-20 1:26 UTC (permalink / raw) To: linux-arm-kernel From: Magnus Damm <damm+renesas@opensource.se> As of commit 9a1091ef0017c40a ("irqchip: gic: Support hierarchy irq domain."), Marzen legacy hangs during boot with: Image Name: 'Linux-3.19.0-rc4' Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 3445880 Bytes = 3.3 MiB Load Address: 60008000 Entry Point: 60008000 Verifying Checksum ... OK Loading Kernel Image ... OK OK Starting kernel ... Enabling DEBUG_LL does not seem to change the situation, however this patch by itself fixes this issue and re-enables normal boot. This issue happens because the IRQ numbers of the GIC are now virtual, and no longer match the hardcoded hardware IRQ numbers in the platform board code. To fix this, instantiate the GIC from platform board code when compiling a legacy kernel, like is done for the sh73a0, r8a7740 and r8a7778 legacy code. Follows same style as the r8a7740 legacy GIC fix by Geert Uytterhoeven, thanks to him for the initial work. Signed-off-by: Magnus Damm <damm+renesas@opensource.se> Acked-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/setup-r8a7779.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-shmobile/setup-r8a7779.c b/arch/arm/mach-shmobile/setup-r8a7779.c index 434d150..ca60683 100644 --- a/arch/arm/mach-shmobile/setup-r8a7779.c +++ b/arch/arm/mach-shmobile/setup-r8a7779.c @@ -724,10 +724,17 @@ static int r8a7779_set_wake(struct irq_data *data, unsigned int on) void __init r8a7779_init_irq_dt(void) { +#ifdef CONFIG_ARCH_SHMOBILE_LEGACY + void __iomem *gic_dist_base = ioremap_nocache(0xf0001000, 0x1000); + void __iomem *gic_cpu_base = ioremap_nocache(0xf0000100, 0x1000); +#endif gic_arch_extn.irq_set_wake = r8a7779_set_wake; +#ifdef CONFIG_ARCH_SHMOBILE_LEGACY + gic_init(0, 29, gic_dist_base, gic_cpu_base); +#else irqchip_init(); - +#endif /* route all interrupts to ARM */ __raw_writel(0xffffffff, INT2NTSR0); __raw_writel(0x3fffffff, INT2NTSR1); -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* Re: [GIT PULL] Second Round of Renesas ARM Based SoC Fixes for v3.19 2015-01-20 1:26 ` Simon Horman @ 2015-01-20 9:42 ` Geert Uytterhoeven -1 siblings, 0 replies; 776+ messages in thread From: Geert Uytterhoeven @ 2015-01-20 9:42 UTC (permalink / raw) To: linux-arm-kernel On Tue, Jan 20, 2015 at 2:26 AM, Simon Horman <horms+renesas@verge.net.au> wrote: > Please consider these second round of Renesas ARM based SoC fixes for v3.19. > > This pull request is based on the previous round of > such requests, tagged as renesas-soc-fixes-for-v3.19, > which you have already pulled into your fixes branch. > > This fixes a regression in the r8a7779 and r8a7779 SoCs due to > 9a1091ef0017c40a ("irqchip: gic: Support hierarchy irq domain.") > which was included in v3.18-rc2. Before people start backporting to -stable: it was introduced in v3.19-rc1. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@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 ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC Fixes for v3.19 @ 2015-01-20 9:42 ` Geert Uytterhoeven 0 siblings, 0 replies; 776+ messages in thread From: Geert Uytterhoeven @ 2015-01-20 9:42 UTC (permalink / raw) To: linux-arm-kernel On Tue, Jan 20, 2015 at 2:26 AM, Simon Horman <horms+renesas@verge.net.au> wrote: > Please consider these second round of Renesas ARM based SoC fixes for v3.19. > > This pull request is based on the previous round of > such requests, tagged as renesas-soc-fixes-for-v3.19, > which you have already pulled into your fixes branch. > > This fixes a regression in the r8a7779 and r8a7779 SoCs due to > 9a1091ef0017c40a ("irqchip: gic: Support hierarchy irq domain.") > which was included in v3.18-rc2. Before people start backporting to -stable: it was introduced in v3.19-rc1. 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 ^ permalink raw reply [flat|nested] 776+ messages in thread
* Re: [GIT PULL] Second Round of Renesas ARM Based SoC Fixes for v3.19 2015-01-20 1:26 ` Simon Horman @ 2015-01-22 1:16 ` Olof Johansson -1 siblings, 0 replies; 776+ messages in thread From: Olof Johansson @ 2015-01-22 1:16 UTC (permalink / raw) To: linux-arm-kernel On Tue, Jan 20, 2015 at 10:26:39AM +0900, Simon Horman wrote: > Hi Olof, Hi Kevin, Hi Arnd, > > Please consider these second round of Renesas ARM based SoC fixes for v3.19. > > This pull request is based on the previous round of > such requests, tagged as renesas-soc-fixes-for-v3.19, > which you have already pulled into your fixes branch. > > This fixes a regression in the r8a7779 and r8a7779 SoCs due to > 9a1091ef0017c40a ("irqchip: gic: Support hierarchy irq domain.") > which was included in v3.18-rc2. > > > The following changes since commit b0ddb319db3d7a1943445f0de0a45c07a7f3457a: > > ARM: shmobile: sh73a0 legacy: Set .control_parent for all irqpin instances (2015-01-08 09:15:16 +0900) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-soc-fixes2-for-v3.19 > > for you to fetch changes up to f469cde20a7ee342070b4a459b6fce469a3186db: > > ARM: shmobile: r8a7779: Instantiate GIC from C board code in legacy builds (2015-01-17 09:28:41 +0900) Merged, thanks. -Olof ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC Fixes for v3.19 @ 2015-01-22 1:16 ` Olof Johansson 0 siblings, 0 replies; 776+ messages in thread From: Olof Johansson @ 2015-01-22 1:16 UTC (permalink / raw) To: linux-arm-kernel On Tue, Jan 20, 2015 at 10:26:39AM +0900, Simon Horman wrote: > Hi Olof, Hi Kevin, Hi Arnd, > > Please consider these second round of Renesas ARM based SoC fixes for v3.19. > > This pull request is based on the previous round of > such requests, tagged as renesas-soc-fixes-for-v3.19, > which you have already pulled into your fixes branch. > > This fixes a regression in the r8a7779 and r8a7779 SoCs due to > 9a1091ef0017c40a ("irqchip: gic: Support hierarchy irq domain.") > which was included in v3.18-rc2. > > > The following changes since commit b0ddb319db3d7a1943445f0de0a45c07a7f3457a: > > ARM: shmobile: sh73a0 legacy: Set .control_parent for all irqpin instances (2015-01-08 09:15:16 +0900) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-soc-fixes2-for-v3.19 > > for you to fetch changes up to f469cde20a7ee342070b4a459b6fce469a3186db: > > ARM: shmobile: r8a7779: Instantiate GIC from C board code in legacy builds (2015-01-17 09:28:41 +0900) Merged, thanks. -Olof ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC sh73a0 Multiplatform Updates for v3.20 @ 2015-01-20 1:27 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-01-20 1:27 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Hi Kevin, Hi Arnd, Please consider these second round of Renesas ARM based SoC sh73a0 multiplatform updates for v3.20. This pull request is based on the previous round of such requests, tagged as renesas-sh73a0-multiplatform-for-v3.20, which I have already sent a pull-request for. My understanding from Geert Uytterhoeven is that the above dependency is required to avoid a lock-up. The following changes since commit 93c9f0228a3d0a14640f86b3e8aeaf3c9b449bb7: ARM: shmobile: kzm9g-reference: Remove board C code and DT file (2015-01-14 09:46:48 +0900) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-sh73a0-multiplatform2-for-v3.20 for you to fetch changes up to e42c8385cfec0579a103b365d61748f199bfe239: ARM: shmobile: sh73a0 dtsi: Add Cortex-A9 TWD node (2015-01-17 09:36:35 +0900) ---------------------------------------------------------------- Second Round of Renesas ARM Based SoC sh73a0 Multiplatform Updates for v3.20 * Add Cortex-A9 TWD node ---------------------------------------------------------------- Geert Uytterhoeven (1): ARM: shmobile: sh73a0 dtsi: Add Cortex-A9 TWD node arch/arm/boot/dts/sh73a0.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC sh73a0 Multiplatform Updates for v3.20 @ 2015-01-20 1:27 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-01-20 1:27 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Hi Kevin, Hi Arnd, Please consider these second round of Renesas ARM based SoC sh73a0 multiplatform updates for v3.20. This pull request is based on the previous round of such requests, tagged as renesas-sh73a0-multiplatform-for-v3.20, which I have already sent a pull-request for. My understanding from Geert Uytterhoeven is that the above dependency is required to avoid a lock-up. The following changes since commit 93c9f0228a3d0a14640f86b3e8aeaf3c9b449bb7: ARM: shmobile: kzm9g-reference: Remove board C code and DT file (2015-01-14 09:46:48 +0900) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-sh73a0-multiplatform2-for-v3.20 for you to fetch changes up to e42c8385cfec0579a103b365d61748f199bfe239: ARM: shmobile: sh73a0 dtsi: Add Cortex-A9 TWD node (2015-01-17 09:36:35 +0900) ---------------------------------------------------------------- Second Round of Renesas ARM Based SoC sh73a0 Multiplatform Updates for v3.20 * Add Cortex-A9 TWD node ---------------------------------------------------------------- Geert Uytterhoeven (1): ARM: shmobile: sh73a0 dtsi: Add Cortex-A9 TWD node arch/arm/boot/dts/sh73a0.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH] ARM: shmobile: sh73a0 dtsi: Add Cortex-A9 TWD node 2015-01-20 1:27 ` Simon Horman @ 2015-01-20 1:27 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-01-20 1:27 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> Add a node for the Private Timer and Watchdog, as found in the Cortex-A9 MPCore. Without this, there's no clocksource available during early kernel initialization, before cmt1 is initialized, leading to a lock-up if CONFIG_CPU_IDLE=y. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/sh73a0.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/sh73a0.dtsi b/arch/arm/boot/dts/sh73a0.dtsi index 0c9a357..2558bf4 100644 --- a/arch/arm/boot/dts/sh73a0.dtsi +++ b/arch/arm/boot/dts/sh73a0.dtsi @@ -11,6 +11,7 @@ /include/ "skeleton.dtsi" #include <dt-bindings/clock/sh73a0-clock.h> +#include <dt-bindings/interrupt-controller/arm-gic.h> #include <dt-bindings/interrupt-controller/irq.h> / { @@ -35,6 +36,13 @@ }; }; + timer@f0000600 { + compatible = "arm,cortex-a9-twd-timer"; + reg = <0xf0000600 0x20>; + interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_HIGH)>; + clocks = <&twd_clk>; + }; + gic: interrupt-controller@f0001000 { compatible = "arm,cortex-a9-gic"; #interrupt-cells = <3>; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH] ARM: shmobile: sh73a0 dtsi: Add Cortex-A9 TWD node @ 2015-01-20 1:27 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-01-20 1:27 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> Add a node for the Private Timer and Watchdog, as found in the Cortex-A9 MPCore. Without this, there's no clocksource available during early kernel initialization, before cmt1 is initialized, leading to a lock-up if CONFIG_CPU_IDLE=y. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/sh73a0.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/sh73a0.dtsi b/arch/arm/boot/dts/sh73a0.dtsi index 0c9a357..2558bf4 100644 --- a/arch/arm/boot/dts/sh73a0.dtsi +++ b/arch/arm/boot/dts/sh73a0.dtsi @@ -11,6 +11,7 @@ /include/ "skeleton.dtsi" #include <dt-bindings/clock/sh73a0-clock.h> +#include <dt-bindings/interrupt-controller/arm-gic.h> #include <dt-bindings/interrupt-controller/irq.h> / { @@ -35,6 +36,13 @@ }; }; + timer at f0000600 { + compatible = "arm,cortex-a9-twd-timer"; + reg = <0xf0000600 0x20>; + interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_HIGH)>; + clocks = <&twd_clk>; + }; + gic: interrupt-controller at f0001000 { compatible = "arm,cortex-a9-gic"; #interrupt-cells = <3>; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* Re: [GIT PULL] Second Round of Renesas ARM Based SoC sh73a0 Multiplatform Updates for v3.20 2015-01-20 1:27 ` Simon Horman @ 2015-01-22 1:03 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-01-22 1:03 UTC (permalink / raw) To: linux-arm-kernel On Tue, Jan 20, 2015 at 10:27:32AM +0900, Simon Horman wrote: > Hi Olof, Hi Kevin, Hi Arnd, > > Please consider these second round of Renesas ARM based SoC sh73a0 multiplatform updates for v3.20. > > This pull request is based on the previous round of > such requests, tagged as renesas-sh73a0-multiplatform-for-v3.20, > which I have already sent a pull-request for. As Olof has have asked for further work on the above I am withdrawing this pull-request. > My understanding from Geert Uytterhoeven is that the above dependency > is required to avoid a lock-up. > > > The following changes since commit 93c9f0228a3d0a14640f86b3e8aeaf3c9b449bb7: > > ARM: shmobile: kzm9g-reference: Remove board C code and DT file (2015-01-14 09:46:48 +0900) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-sh73a0-multiplatform2-for-v3.20 > > for you to fetch changes up to e42c8385cfec0579a103b365d61748f199bfe239: > > ARM: shmobile: sh73a0 dtsi: Add Cortex-A9 TWD node (2015-01-17 09:36:35 +0900) > > ---------------------------------------------------------------- > Second Round of Renesas ARM Based SoC sh73a0 Multiplatform Updates for v3.20 > > * Add Cortex-A9 TWD node > > ---------------------------------------------------------------- > Geert Uytterhoeven (1): > ARM: shmobile: sh73a0 dtsi: Add Cortex-A9 TWD node > > arch/arm/boot/dts/sh73a0.dtsi | 8 ++++++++ > 1 file changed, 8 insertions(+) > ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC sh73a0 Multiplatform Updates for v3.20 @ 2015-01-22 1:03 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-01-22 1:03 UTC (permalink / raw) To: linux-arm-kernel On Tue, Jan 20, 2015 at 10:27:32AM +0900, Simon Horman wrote: > Hi Olof, Hi Kevin, Hi Arnd, > > Please consider these second round of Renesas ARM based SoC sh73a0 multiplatform updates for v3.20. > > This pull request is based on the previous round of > such requests, tagged as renesas-sh73a0-multiplatform-for-v3.20, > which I have already sent a pull-request for. As Olof has have asked for further work on the above I am withdrawing this pull-request. > My understanding from Geert Uytterhoeven is that the above dependency > is required to avoid a lock-up. > > > The following changes since commit 93c9f0228a3d0a14640f86b3e8aeaf3c9b449bb7: > > ARM: shmobile: kzm9g-reference: Remove board C code and DT file (2015-01-14 09:46:48 +0900) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-sh73a0-multiplatform2-for-v3.20 > > for you to fetch changes up to e42c8385cfec0579a103b365d61748f199bfe239: > > ARM: shmobile: sh73a0 dtsi: Add Cortex-A9 TWD node (2015-01-17 09:36:35 +0900) > > ---------------------------------------------------------------- > Second Round of Renesas ARM Based SoC sh73a0 Multiplatform Updates for v3.20 > > * Add Cortex-A9 TWD node > > ---------------------------------------------------------------- > Geert Uytterhoeven (1): > ARM: shmobile: sh73a0 dtsi: Add Cortex-A9 TWD node > > arch/arm/boot/dts/sh73a0.dtsi | 8 ++++++++ > 1 file changed, 8 insertions(+) > ^ permalink raw reply [flat|nested] 776+ messages in thread
* Re: [GIT PULL] Second Round of Renesas ARM Based SoC sh73a0 Multiplatform Updates for v3.20 2015-01-20 1:27 ` Simon Horman @ 2015-01-22 1:34 ` Olof Johansson -1 siblings, 0 replies; 776+ messages in thread From: Olof Johansson @ 2015-01-22 1:34 UTC (permalink / raw) To: linux-arm-kernel On Tue, Jan 20, 2015 at 10:27:32AM +0900, Simon Horman wrote: > Hi Olof, Hi Kevin, Hi Arnd, > > Please consider these second round of Renesas ARM based SoC sh73a0 multiplatform updates for v3.20. > > This pull request is based on the previous round of > such requests, tagged as renesas-sh73a0-multiplatform-for-v3.20, > which I have already sent a pull-request for. > > My understanding from Geert Uytterhoeven is that the above dependency > is required to avoid a lock-up. > > > The following changes since commit 93c9f0228a3d0a14640f86b3e8aeaf3c9b449bb7: > > ARM: shmobile: kzm9g-reference: Remove board C code and DT file (2015-01-14 09:46:48 +0900) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-sh73a0-multiplatform2-for-v3.20 > > for you to fetch changes up to e42c8385cfec0579a103b365d61748f199bfe239: > > ARM: shmobile: sh73a0 dtsi: Add Cortex-A9 TWD node (2015-01-17 09:36:35 +0900) Not pulled based on earlier feedback on preceding branch. Seems like you removed the tag already as well. ;) Thanks, -Olof ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC sh73a0 Multiplatform Updates for v3.20 @ 2015-01-22 1:34 ` Olof Johansson 0 siblings, 0 replies; 776+ messages in thread From: Olof Johansson @ 2015-01-22 1:34 UTC (permalink / raw) To: linux-arm-kernel On Tue, Jan 20, 2015 at 10:27:32AM +0900, Simon Horman wrote: > Hi Olof, Hi Kevin, Hi Arnd, > > Please consider these second round of Renesas ARM based SoC sh73a0 multiplatform updates for v3.20. > > This pull request is based on the previous round of > such requests, tagged as renesas-sh73a0-multiplatform-for-v3.20, > which I have already sent a pull-request for. > > My understanding from Geert Uytterhoeven is that the above dependency > is required to avoid a lock-up. > > > The following changes since commit 93c9f0228a3d0a14640f86b3e8aeaf3c9b449bb7: > > ARM: shmobile: kzm9g-reference: Remove board C code and DT file (2015-01-14 09:46:48 +0900) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-sh73a0-multiplatform2-for-v3.20 > > for you to fetch changes up to e42c8385cfec0579a103b365d61748f199bfe239: > > ARM: shmobile: sh73a0 dtsi: Add Cortex-A9 TWD node (2015-01-17 09:36:35 +0900) Not pulled based on earlier feedback on preceding branch. Seems like you removed the tag already as well. ;) Thanks, -Olof ^ permalink raw reply [flat|nested] 776+ messages in thread
* Re: [GIT PULL] Second Round of Renesas ARM Based SoC sh73a0 Multiplatform Updates for v3.20 2015-01-22 1:34 ` Olof Johansson @ 2015-01-22 2:01 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-01-22 2:01 UTC (permalink / raw) To: linux-arm-kernel On Wed, Jan 21, 2015 at 05:34:26PM -0800, Olof Johansson wrote: > On Tue, Jan 20, 2015 at 10:27:32AM +0900, Simon Horman wrote: > > Hi Olof, Hi Kevin, Hi Arnd, > > > > Please consider these second round of Renesas ARM based SoC sh73a0 multiplatform updates for v3.20. > > > > This pull request is based on the previous round of > > such requests, tagged as renesas-sh73a0-multiplatform-for-v3.20, > > which I have already sent a pull-request for. > > > > My understanding from Geert Uytterhoeven is that the above dependency > > is required to avoid a lock-up. > > > > > > The following changes since commit 93c9f0228a3d0a14640f86b3e8aeaf3c9b449bb7: > > > > ARM: shmobile: kzm9g-reference: Remove board C code and DT file (2015-01-14 09:46:48 +0900) > > > > are available in the git repository at: > > > > git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-sh73a0-multiplatform2-for-v3.20 > > > > for you to fetch changes up to e42c8385cfec0579a103b365d61748f199bfe239: > > > > ARM: shmobile: sh73a0 dtsi: Add Cortex-A9 TWD node (2015-01-17 09:36:35 +0900) > > > Not pulled based on earlier feedback on preceding branch. Seems like you > removed the tag already as well. ;) Yes, I think our emails crossed in flight. ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC sh73a0 Multiplatform Updates for v3.20 @ 2015-01-22 2:01 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-01-22 2:01 UTC (permalink / raw) To: linux-arm-kernel On Wed, Jan 21, 2015 at 05:34:26PM -0800, Olof Johansson wrote: > On Tue, Jan 20, 2015 at 10:27:32AM +0900, Simon Horman wrote: > > Hi Olof, Hi Kevin, Hi Arnd, > > > > Please consider these second round of Renesas ARM based SoC sh73a0 multiplatform updates for v3.20. > > > > This pull request is based on the previous round of > > such requests, tagged as renesas-sh73a0-multiplatform-for-v3.20, > > which I have already sent a pull-request for. > > > > My understanding from Geert Uytterhoeven is that the above dependency > > is required to avoid a lock-up. > > > > > > The following changes since commit 93c9f0228a3d0a14640f86b3e8aeaf3c9b449bb7: > > > > ARM: shmobile: kzm9g-reference: Remove board C code and DT file (2015-01-14 09:46:48 +0900) > > > > are available in the git repository at: > > > > git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-sh73a0-multiplatform2-for-v3.20 > > > > for you to fetch changes up to e42c8385cfec0579a103b365d61748f199bfe239: > > > > ARM: shmobile: sh73a0 dtsi: Add Cortex-A9 TWD node (2015-01-17 09:36:35 +0900) > > > Not pulled based on earlier feedback on preceding branch. Seems like you > removed the tag already as well. ;) Yes, I think our emails crossed in flight. ^ permalink raw reply [flat|nested] 776+ messages in thread
* Re: [GIT PULL] Second Round of Renesas ARM Based SoC sh73a0 Multiplatform Updates for v3.20 2015-01-22 2:01 ` Simon Horman @ 2015-01-22 6:36 ` Olof Johansson -1 siblings, 0 replies; 776+ messages in thread From: Olof Johansson @ 2015-01-22 6:36 UTC (permalink / raw) To: linux-arm-kernel On Wed, Jan 21, 2015 at 6:01 PM, Simon Horman <horms@verge.net.au> wrote: > On Wed, Jan 21, 2015 at 05:34:26PM -0800, Olof Johansson wrote: >> On Tue, Jan 20, 2015 at 10:27:32AM +0900, Simon Horman wrote: >> > Hi Olof, Hi Kevin, Hi Arnd, >> > >> > Please consider these second round of Renesas ARM based SoC sh73a0 multiplatform updates for v3.20. >> > >> > This pull request is based on the previous round of >> > such requests, tagged as renesas-sh73a0-multiplatform-for-v3.20, >> > which I have already sent a pull-request for. >> > >> > My understanding from Geert Uytterhoeven is that the above dependency >> > is required to avoid a lock-up. >> > >> > >> > The following changes since commit 93c9f0228a3d0a14640f86b3e8aeaf3c9b449bb7: >> > >> > ARM: shmobile: kzm9g-reference: Remove board C code and DT file (2015-01-14 09:46:48 +0900) >> > >> > are available in the git repository at: >> > >> > git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-sh73a0-multiplatform2-for-v3.20 >> > >> > for you to fetch changes up to e42c8385cfec0579a103b365d61748f199bfe239: >> > >> > ARM: shmobile: sh73a0 dtsi: Add Cortex-A9 TWD node (2015-01-17 09:36:35 +0900) >> >> >> Not pulled based on earlier feedback on preceding branch. Seems like you >> removed the tag already as well. ;) > > Yes, I think our emails crossed in flight. Yep, I often work with an offlineimap-synced mailbox that might be a few hours out of date when I do merges. :) -Olof ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC sh73a0 Multiplatform Updates for v3.20 @ 2015-01-22 6:36 ` Olof Johansson 0 siblings, 0 replies; 776+ messages in thread From: Olof Johansson @ 2015-01-22 6:36 UTC (permalink / raw) To: linux-arm-kernel On Wed, Jan 21, 2015 at 6:01 PM, Simon Horman <horms@verge.net.au> wrote: > On Wed, Jan 21, 2015 at 05:34:26PM -0800, Olof Johansson wrote: >> On Tue, Jan 20, 2015 at 10:27:32AM +0900, Simon Horman wrote: >> > Hi Olof, Hi Kevin, Hi Arnd, >> > >> > Please consider these second round of Renesas ARM based SoC sh73a0 multiplatform updates for v3.20. >> > >> > This pull request is based on the previous round of >> > such requests, tagged as renesas-sh73a0-multiplatform-for-v3.20, >> > which I have already sent a pull-request for. >> > >> > My understanding from Geert Uytterhoeven is that the above dependency >> > is required to avoid a lock-up. >> > >> > >> > The following changes since commit 93c9f0228a3d0a14640f86b3e8aeaf3c9b449bb7: >> > >> > ARM: shmobile: kzm9g-reference: Remove board C code and DT file (2015-01-14 09:46:48 +0900) >> > >> > are available in the git repository at: >> > >> > git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-sh73a0-multiplatform2-for-v3.20 >> > >> > for you to fetch changes up to e42c8385cfec0579a103b365d61748f199bfe239: >> > >> > ARM: shmobile: sh73a0 dtsi: Add Cortex-A9 TWD node (2015-01-17 09:36:35 +0900) >> >> >> Not pulled based on earlier feedback on preceding branch. Seems like you >> removed the tag already as well. ;) > > Yes, I think our emails crossed in flight. Yep, I often work with an offlineimap-synced mailbox that might be a few hours out of date when I do merges. :) -Olof ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC Cleanup for v4.1 @ 2015-03-10 0:42 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-03-10 0:42 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Hi Kevin, Hi Arnd, Please consider these second round of Renesas ARM based SoC cleanup for v4.1. This pull request is based on the previous round of such requests, tagged as renesas-soc-cleanup-for-v4.1, which you have already pulled. The following changes since commit fd9454ab51fa92f43ae5b7a71c42f2ee8417c2a2: ARM: shmobile: r8a7779: Remove redundant cpu_disable implementation (2015-02-24 07:12:16 +0900) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-soc-cleanup2-for-v4.1 for you to fetch changes up to 82fbf29f26733dd38bd2ab17db04e0aa46ef3857: ARM: shmobile: r8a7740: Remove restart callback (2015-03-01 10:59:16 +0900) ---------------------------------------------------------------- Second Round of Renesas ARM Based SoC Cleanup for v4.1 * Remove restart callback from r8a7740 SoC * Remove unecessary check on always set CONFIG_COMMON_CLK from shared R-Car Gen2 SoC code * Remove stray closing parenthesis in SCIF debug description for R-Car Gen2 SoCa ---------------------------------------------------------------- Geert Uytterhoeven (3): ARM: shmobile: Remove stray closing parenthesis in debug description ARM: shmobile: R-Car Gen2: CONFIG_COMMON_CLK is always set ARM: shmobile: r8a7740: Remove restart callback arch/arm/Kconfig.debug | 2 +- arch/arm/mach-shmobile/setup-r8a7740.c | 8 -------- arch/arm/mach-shmobile/setup-rcar-gen2.c | 4 ---- 3 files changed, 1 insertion(+), 13 deletions(-) ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC Cleanup for v4.1 @ 2015-03-10 0:42 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-03-10 0:42 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Hi Kevin, Hi Arnd, Please consider these second round of Renesas ARM based SoC cleanup for v4.1. This pull request is based on the previous round of such requests, tagged as renesas-soc-cleanup-for-v4.1, which you have already pulled. The following changes since commit fd9454ab51fa92f43ae5b7a71c42f2ee8417c2a2: ARM: shmobile: r8a7779: Remove redundant cpu_disable implementation (2015-02-24 07:12:16 +0900) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-soc-cleanup2-for-v4.1 for you to fetch changes up to 82fbf29f26733dd38bd2ab17db04e0aa46ef3857: ARM: shmobile: r8a7740: Remove restart callback (2015-03-01 10:59:16 +0900) ---------------------------------------------------------------- Second Round of Renesas ARM Based SoC Cleanup for v4.1 * Remove restart callback from r8a7740 SoC * Remove unecessary check on always set CONFIG_COMMON_CLK from shared R-Car Gen2 SoC code * Remove stray closing parenthesis in SCIF debug description for R-Car Gen2 SoCa ---------------------------------------------------------------- Geert Uytterhoeven (3): ARM: shmobile: Remove stray closing parenthesis in debug description ARM: shmobile: R-Car Gen2: CONFIG_COMMON_CLK is always set ARM: shmobile: r8a7740: Remove restart callback arch/arm/Kconfig.debug | 2 +- arch/arm/mach-shmobile/setup-r8a7740.c | 8 -------- arch/arm/mach-shmobile/setup-rcar-gen2.c | 4 ---- 3 files changed, 1 insertion(+), 13 deletions(-) ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH 1/3] ARM: shmobile: Remove stray closing parenthesis in debug description 2015-03-10 0:42 ` Simon Horman @ 2015-03-10 0:43 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-03-10 0:43 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> Remove the stray closing parenthesis in the config description for the DEBUG_RCAR_GEN2_SCIF0 option. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/Kconfig.debug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug index 1ca8dc7..3809ac9 100644 --- a/arch/arm/Kconfig.debug +++ b/arch/arm/Kconfig.debug @@ -806,7 +806,7 @@ choice via SCIF2 on Renesas R-Car H1 (R8A7779). config DEBUG_RCAR_GEN2_SCIF0 - bool "Kernel low-level debugging messages via SCIF0 on R8A7790/R8A7791/R8A7793)" + bool "Kernel low-level debugging messages via SCIF0 on R8A7790/R8A7791/R8A7793" depends on ARCH_R8A7790 || ARCH_R8A7791 || ARCH_R8A7793 help Say Y here if you want kernel low-level debugging support -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 1/3] ARM: shmobile: Remove stray closing parenthesis in debug description @ 2015-03-10 0:43 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-03-10 0:43 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> Remove the stray closing parenthesis in the config description for the DEBUG_RCAR_GEN2_SCIF0 option. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/Kconfig.debug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug index 1ca8dc7..3809ac9 100644 --- a/arch/arm/Kconfig.debug +++ b/arch/arm/Kconfig.debug @@ -806,7 +806,7 @@ choice via SCIF2 on Renesas R-Car H1 (R8A7779). config DEBUG_RCAR_GEN2_SCIF0 - bool "Kernel low-level debugging messages via SCIF0 on R8A7790/R8A7791/R8A7793)" + bool "Kernel low-level debugging messages via SCIF0 on R8A7790/R8A7791/R8A7793" depends on ARCH_R8A7790 || ARCH_R8A7791 || ARCH_R8A7793 help Say Y here if you want kernel low-level debugging support -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 2/3] ARM: shmobile: R-Car Gen2: CONFIG_COMMON_CLK is always set 2015-03-10 0:42 ` Simon Horman @ 2015-03-10 0:43 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-03-10 0:43 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> Since commit e042681894b62d60 ("ARM: shmobile: r8a7790: Remove legacy code"), all R-Car Gen2 SoCs are supported by multiplatform kernels only. As CONFIG_COMMON_CLK is always set for multiplatform kernels, we can remove related #ifdefs in code specific to R-Car Gen2 SoCs. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/setup-rcar-gen2.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/arch/arm/mach-shmobile/setup-rcar-gen2.c b/arch/arm/mach-shmobile/setup-rcar-gen2.c index d1fa625..51464cc 100644 --- a/arch/arm/mach-shmobile/setup-rcar-gen2.c +++ b/arch/arm/mach-shmobile/setup-rcar-gen2.c @@ -50,9 +50,7 @@ u32 rcar_gen2_read_mode_pins(void) void __init rcar_gen2_timer_init(void) { -#if defined(CONFIG_ARM_ARCH_TIMER) || defined(CONFIG_COMMON_CLK) u32 mode = rcar_gen2_read_mode_pins(); -#endif #ifdef CONFIG_ARM_ARCH_TIMER void __iomem *base; int extal_mhz = 0; @@ -128,9 +126,7 @@ void __init rcar_gen2_timer_init(void) iounmap(base); #endif /* CONFIG_ARM_ARCH_TIMER */ -#ifdef CONFIG_COMMON_CLK rcar_gen2_clocks_init(mode); -#endif #ifdef CONFIG_ARCH_SHMOBILE_MULTI clocksource_of_init(); #endif -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 2/3] ARM: shmobile: R-Car Gen2: CONFIG_COMMON_CLK is always set @ 2015-03-10 0:43 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-03-10 0:43 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> Since commit e042681894b62d60 ("ARM: shmobile: r8a7790: Remove legacy code"), all R-Car Gen2 SoCs are supported by multiplatform kernels only. As CONFIG_COMMON_CLK is always set for multiplatform kernels, we can remove related #ifdefs in code specific to R-Car Gen2 SoCs. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/setup-rcar-gen2.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/arch/arm/mach-shmobile/setup-rcar-gen2.c b/arch/arm/mach-shmobile/setup-rcar-gen2.c index d1fa625..51464cc 100644 --- a/arch/arm/mach-shmobile/setup-rcar-gen2.c +++ b/arch/arm/mach-shmobile/setup-rcar-gen2.c @@ -50,9 +50,7 @@ u32 rcar_gen2_read_mode_pins(void) void __init rcar_gen2_timer_init(void) { -#if defined(CONFIG_ARM_ARCH_TIMER) || defined(CONFIG_COMMON_CLK) u32 mode = rcar_gen2_read_mode_pins(); -#endif #ifdef CONFIG_ARM_ARCH_TIMER void __iomem *base; int extal_mhz = 0; @@ -128,9 +126,7 @@ void __init rcar_gen2_timer_init(void) iounmap(base); #endif /* CONFIG_ARM_ARCH_TIMER */ -#ifdef CONFIG_COMMON_CLK rcar_gen2_clocks_init(mode); -#endif #ifdef CONFIG_ARCH_SHMOBILE_MULTI clocksource_of_init(); #endif -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 3/3] ARM: shmobile: r8a7740: Remove restart callback 2015-03-10 0:42 ` Simon Horman @ 2015-03-10 0:43 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-03-10 0:43 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> Remove the restart handling hack from the r8a7740 generic multiplatform case. Restart on DT-based r8a7740 platforms is now handled through the R-Mobile reset driver. This reverts commit 1174c712afa2779f ("ARM: shmobile: r8a7740: Add restart callback"). Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/setup-r8a7740.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/arch/arm/mach-shmobile/setup-r8a7740.c b/arch/arm/mach-shmobile/setup-r8a7740.c index dd64caf..9832e48 100644 --- a/arch/arm/mach-shmobile/setup-r8a7740.c +++ b/arch/arm/mach-shmobile/setup-r8a7740.c @@ -842,13 +842,6 @@ static void __init r8a7740_generic_init(void) of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); } -#define RESCNT2 IOMEM(0xe6188020) -static void r8a7740_restart(enum reboot_mode mode, const char *cmd) -{ - /* Do soft power on reset */ - writel(1 << 31, RESCNT2); -} - static const char *r8a7740_boards_compat_dt[] __initdata = { "renesas,r8a7740", NULL, @@ -861,7 +854,6 @@ DT_MACHINE_START(R8A7740_DT, "Generic R8A7740 (Flattened Device Tree)") .init_machine = r8a7740_generic_init, .init_late = shmobile_init_late, .dt_compat = r8a7740_boards_compat_dt, - .restart = r8a7740_restart, MACHINE_END #endif /* CONFIG_USE_OF */ -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 3/3] ARM: shmobile: r8a7740: Remove restart callback @ 2015-03-10 0:43 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-03-10 0:43 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> Remove the restart handling hack from the r8a7740 generic multiplatform case. Restart on DT-based r8a7740 platforms is now handled through the R-Mobile reset driver. This reverts commit 1174c712afa2779f ("ARM: shmobile: r8a7740: Add restart callback"). Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/setup-r8a7740.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/arch/arm/mach-shmobile/setup-r8a7740.c b/arch/arm/mach-shmobile/setup-r8a7740.c index dd64caf..9832e48 100644 --- a/arch/arm/mach-shmobile/setup-r8a7740.c +++ b/arch/arm/mach-shmobile/setup-r8a7740.c @@ -842,13 +842,6 @@ static void __init r8a7740_generic_init(void) of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); } -#define RESCNT2 IOMEM(0xe6188020) -static void r8a7740_restart(enum reboot_mode mode, const char *cmd) -{ - /* Do soft power on reset */ - writel(1 << 31, RESCNT2); -} - static const char *r8a7740_boards_compat_dt[] __initdata = { "renesas,r8a7740", NULL, @@ -861,7 +854,6 @@ DT_MACHINE_START(R8A7740_DT, "Generic R8A7740 (Flattened Device Tree)") .init_machine = r8a7740_generic_init, .init_late = shmobile_init_late, .dt_compat = r8a7740_boards_compat_dt, - .restart = r8a7740_restart, MACHINE_END #endif /* CONFIG_USE_OF */ -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* Re: [GIT PULL] Second Round of Renesas ARM Based SoC Cleanup for v4.1 2015-03-10 0:42 ` Simon Horman @ 2015-03-11 22:08 ` Arnd Bergmann -1 siblings, 0 replies; 776+ messages in thread From: Arnd Bergmann @ 2015-03-11 22:08 UTC (permalink / raw) To: linux-arm-kernel On Tuesday 10 March 2015 09:42:09 Simon Horman wrote: > Please consider these second round of Renesas ARM based SoC cleanup for v4.1. > > This pull request is based on the previous round of > such requests, tagged as renesas-soc-cleanup-for-v4.1, > which you have already pulled. > I had grouped the renesas-soc-cleanup-for-v4.1 into next/multiplatform rather than next/cleanup, and would like to keep the two separate unless there is a good reason not to. If you haven't already based other work on top of renesas-soc-cleanup2-for-v4.1 and there are no other conflicts, could you rebase it to -rc1? Arnd ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC Cleanup for v4.1 @ 2015-03-11 22:08 ` Arnd Bergmann 0 siblings, 0 replies; 776+ messages in thread From: Arnd Bergmann @ 2015-03-11 22:08 UTC (permalink / raw) To: linux-arm-kernel On Tuesday 10 March 2015 09:42:09 Simon Horman wrote: > Please consider these second round of Renesas ARM based SoC cleanup for v4.1. > > This pull request is based on the previous round of > such requests, tagged as renesas-soc-cleanup-for-v4.1, > which you have already pulled. > I had grouped the renesas-soc-cleanup-for-v4.1 into next/multiplatform rather than next/cleanup, and would like to keep the two separate unless there is a good reason not to. If you haven't already based other work on top of renesas-soc-cleanup2-for-v4.1 and there are no other conflicts, could you rebase it to -rc1? Arnd ^ permalink raw reply [flat|nested] 776+ messages in thread
* Re: [GIT PULL] Second Round of Renesas ARM Based SoC Cleanup for v4.1 2015-03-11 22:08 ` Arnd Bergmann @ 2015-03-11 23:30 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-03-11 23:30 UTC (permalink / raw) To: linux-arm-kernel On Wed, Mar 11, 2015 at 11:08:18PM +0100, Arnd Bergmann wrote: > On Tuesday 10 March 2015 09:42:09 Simon Horman wrote: > > Please consider these second round of Renesas ARM based SoC cleanup for v4.1. > > > > This pull request is based on the previous round of > > such requests, tagged as renesas-soc-cleanup-for-v4.1, > > which you have already pulled. > > > > I had grouped the renesas-soc-cleanup-for-v4.1 into next/multiplatform > rather than next/cleanup, and would like to keep the two separate > unless there is a good reason not to. > > If you haven't already based other work on top of renesas-soc-cleanup2-for-v4.1 > and there are no other conflicts, could you rebase it to -rc1? Sure, I think that should be clean on my side. I'll let you know if it turns out otherwise. ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC Cleanup for v4.1 @ 2015-03-11 23:30 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-03-11 23:30 UTC (permalink / raw) To: linux-arm-kernel On Wed, Mar 11, 2015 at 11:08:18PM +0100, Arnd Bergmann wrote: > On Tuesday 10 March 2015 09:42:09 Simon Horman wrote: > > Please consider these second round of Renesas ARM based SoC cleanup for v4.1. > > > > This pull request is based on the previous round of > > such requests, tagged as renesas-soc-cleanup-for-v4.1, > > which you have already pulled. > > > > I had grouped the renesas-soc-cleanup-for-v4.1 into next/multiplatform > rather than next/cleanup, and would like to keep the two separate > unless there is a good reason not to. > > If you haven't already based other work on top of renesas-soc-cleanup2-for-v4.1 > and there are no other conflicts, could you rebase it to -rc1? Sure, I think that should be clean on my side. I'll let you know if it turns out otherwise. ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC DT Updates for v4.1 @ 2015-03-10 0:44 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-03-10 0:44 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Hi Kevin, Hi Arnd, Please consider these second round of Renesas ARM based SoC DT updates for v4.1. This pull request is based on the previous round of such requests, tagged as renesas-dt-for-v4.1, which you have already pulled. The following changes since commit b8e8ea127d00f1b0c18d8c1ae1b8388e190d5052: ARM: shmobile: r8a7794: add SDHI DT support (2015-02-24 08:18:47 +0900) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-dt2-for-v4.1 for you to fetch changes up to 90ca409a1e6b9b72d1b6ae716cd7a63335fd0e87: ARM: shmobile: ape6evm dts: Configure the custom switch as wake-up source (2015-03-07 10:07:30 +0900) ---------------------------------------------------------------- Second Round of Renesas ARM Based SoC DT Updates for v4.1 * ape6evm board - Configure GPIO keys as wake-up source - Enable pull-up for GPIO switches - Correct polarity of LEDs * r8a7791 SoC - Correct IPMMU-GP clock to device tree * r8a7794 SoC - Correct ethernet controller PHY IRQ * lager, koelsch and marzen boards - Add DU external pixel clock to DT * lager board - Add HDMI output support to DT * r8a7791 and r8a7790 SoCs - Tidy up SDHI register size in DT - Reference DMA channels for SDHI in DT ---------------------------------------------------------------- Geert Uytterhoeven (3): ARM: shmobile: ape6evm dts: Fix polarity of LEDs ARM: shmobile: ape6evm dts: Enable pull-up for GPIO switches ARM: shmobile: ape6evm dts: Configure the custom switch as wake-up source Kazuya Mizuguchi (2): ARM: shmobile: r8a7790: Fix HSUSB clock to hp_clk from mp_clk ARM: shmobile: r8a7791: Fix HSUSB clock to hp_clk from mp_clk Kuninori Morimoto (2): ARM: shmobile: r8a7790: tidyup SDHI register size on DTSI ARM: shmobile: r8a7791: tidyup SDHI register size on DTSI Laurent Pinchart (7): ARM: shmobile: r8a7790: Reference DMA channels in SDHI DT nodes ARM: shmobile: r8a7791: Reference DMA channels in SDHI DT nodes ARM: shmobile: lager: Add DU HDMI output support ARM: shmobile: marzen: Add DU external pixel clock to DT ARM: shmobile: koelsch: Add DU external pixel clocks to DT ARM: shmobile: lager: Add DU external pixel clocks to DT ARM: shmobile: r8a7794: alt: Fix ethernet controller PHY IRQ line Ryo Kataoka (1): ARM: shmobile: r8a7791: Fix IPMMU-GP clock to device tree arch/arm/boot/dts/r8a73a4-ape6evm.dts | 22 ++++++++--- arch/arm/boot/dts/r8a7779-marzen.dts | 9 +++++ arch/arm/boot/dts/r8a7790-lager.dts | 69 +++++++++++++++++++++++++++++++++++ arch/arm/boot/dts/r8a7790.dtsi | 15 ++++++-- arch/arm/boot/dts/r8a7791-koelsch.dts | 19 ++++++++++ arch/arm/boot/dts/r8a7791.dtsi | 14 +++++-- arch/arm/boot/dts/r8a7794-alt.dts | 2 +- 7 files changed, 136 insertions(+), 14 deletions(-) ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC DT Updates for v4.1 @ 2015-03-10 0:44 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-03-10 0:44 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Hi Kevin, Hi Arnd, Please consider these second round of Renesas ARM based SoC DT updates for v4.1. This pull request is based on the previous round of such requests, tagged as renesas-dt-for-v4.1, which you have already pulled. The following changes since commit b8e8ea127d00f1b0c18d8c1ae1b8388e190d5052: ARM: shmobile: r8a7794: add SDHI DT support (2015-02-24 08:18:47 +0900) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-dt2-for-v4.1 for you to fetch changes up to 90ca409a1e6b9b72d1b6ae716cd7a63335fd0e87: ARM: shmobile: ape6evm dts: Configure the custom switch as wake-up source (2015-03-07 10:07:30 +0900) ---------------------------------------------------------------- Second Round of Renesas ARM Based SoC DT Updates for v4.1 * ape6evm board - Configure GPIO keys as wake-up source - Enable pull-up for GPIO switches - Correct polarity of LEDs * r8a7791 SoC - Correct IPMMU-GP clock to device tree * r8a7794 SoC - Correct ethernet controller PHY IRQ * lager, koelsch and marzen boards - Add DU external pixel clock to DT * lager board - Add HDMI output support to DT * r8a7791 and r8a7790 SoCs - Tidy up SDHI register size in DT - Reference DMA channels for SDHI in DT ---------------------------------------------------------------- Geert Uytterhoeven (3): ARM: shmobile: ape6evm dts: Fix polarity of LEDs ARM: shmobile: ape6evm dts: Enable pull-up for GPIO switches ARM: shmobile: ape6evm dts: Configure the custom switch as wake-up source Kazuya Mizuguchi (2): ARM: shmobile: r8a7790: Fix HSUSB clock to hp_clk from mp_clk ARM: shmobile: r8a7791: Fix HSUSB clock to hp_clk from mp_clk Kuninori Morimoto (2): ARM: shmobile: r8a7790: tidyup SDHI register size on DTSI ARM: shmobile: r8a7791: tidyup SDHI register size on DTSI Laurent Pinchart (7): ARM: shmobile: r8a7790: Reference DMA channels in SDHI DT nodes ARM: shmobile: r8a7791: Reference DMA channels in SDHI DT nodes ARM: shmobile: lager: Add DU HDMI output support ARM: shmobile: marzen: Add DU external pixel clock to DT ARM: shmobile: koelsch: Add DU external pixel clocks to DT ARM: shmobile: lager: Add DU external pixel clocks to DT ARM: shmobile: r8a7794: alt: Fix ethernet controller PHY IRQ line Ryo Kataoka (1): ARM: shmobile: r8a7791: Fix IPMMU-GP clock to device tree arch/arm/boot/dts/r8a73a4-ape6evm.dts | 22 ++++++++--- arch/arm/boot/dts/r8a7779-marzen.dts | 9 +++++ arch/arm/boot/dts/r8a7790-lager.dts | 69 +++++++++++++++++++++++++++++++++++ arch/arm/boot/dts/r8a7790.dtsi | 15 ++++++-- arch/arm/boot/dts/r8a7791-koelsch.dts | 19 ++++++++++ arch/arm/boot/dts/r8a7791.dtsi | 14 +++++-- arch/arm/boot/dts/r8a7794-alt.dts | 2 +- 7 files changed, 136 insertions(+), 14 deletions(-) ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH 01/15] ARM: shmobile: r8a7790: Reference DMA channels in SDHI DT nodes 2015-03-10 0:44 ` Simon Horman @ 2015-03-10 0:44 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-03-10 0:44 UTC (permalink / raw) To: linux-arm-kernel From: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Add references to the transmit and receive DMA channels in the four SDHI nodes. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Acked-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7790.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/r8a7790.dtsi b/arch/arm/boot/dts/r8a7790.dtsi index c6c0a0c..5ce3564 100644 --- a/arch/arm/boot/dts/r8a7790.dtsi +++ b/arch/arm/boot/dts/r8a7790.dtsi @@ -496,6 +496,8 @@ reg = <0 0xee100000 0 0x200>; interrupts = <0 165 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp3_clks R8A7790_CLK_SDHI0>; + dmas = <&dmac1 0xcd>, <&dmac1 0xce>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -504,6 +506,8 @@ reg = <0 0xee120000 0 0x200>; interrupts = <0 166 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp3_clks R8A7790_CLK_SDHI1>; + dmas = <&dmac1 0xc9>, <&dmac1 0xca>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -512,6 +516,8 @@ reg = <0 0xee140000 0 0x100>; interrupts = <0 167 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp3_clks R8A7790_CLK_SDHI2>; + dmas = <&dmac1 0xc1>, <&dmac1 0xc2>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -520,6 +526,8 @@ reg = <0 0xee160000 0 0x100>; interrupts = <0 168 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp3_clks R8A7790_CLK_SDHI3>; + dmas = <&dmac1 0xd3>, <&dmac1 0xd4>; + dma-names = "tx", "rx"; status = "disabled"; }; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 01/15] ARM: shmobile: r8a7790: Reference DMA channels in SDHI DT nodes @ 2015-03-10 0:44 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-03-10 0:44 UTC (permalink / raw) To: linux-arm-kernel From: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Add references to the transmit and receive DMA channels in the four SDHI nodes. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Acked-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7790.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/r8a7790.dtsi b/arch/arm/boot/dts/r8a7790.dtsi index c6c0a0c..5ce3564 100644 --- a/arch/arm/boot/dts/r8a7790.dtsi +++ b/arch/arm/boot/dts/r8a7790.dtsi @@ -496,6 +496,8 @@ reg = <0 0xee100000 0 0x200>; interrupts = <0 165 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp3_clks R8A7790_CLK_SDHI0>; + dmas = <&dmac1 0xcd>, <&dmac1 0xce>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -504,6 +506,8 @@ reg = <0 0xee120000 0 0x200>; interrupts = <0 166 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp3_clks R8A7790_CLK_SDHI1>; + dmas = <&dmac1 0xc9>, <&dmac1 0xca>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -512,6 +516,8 @@ reg = <0 0xee140000 0 0x100>; interrupts = <0 167 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp3_clks R8A7790_CLK_SDHI2>; + dmas = <&dmac1 0xc1>, <&dmac1 0xc2>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -520,6 +526,8 @@ reg = <0 0xee160000 0 0x100>; interrupts = <0 168 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp3_clks R8A7790_CLK_SDHI3>; + dmas = <&dmac1 0xd3>, <&dmac1 0xd4>; + dma-names = "tx", "rx"; status = "disabled"; }; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 02/15] ARM: shmobile: r8a7791: Reference DMA channels in SDHI DT nodes 2015-03-10 0:44 ` Simon Horman @ 2015-03-10 0:44 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-03-10 0:44 UTC (permalink / raw) To: linux-arm-kernel From: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Add references to the transmit and receive DMA channels in the three SDHI nodes. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Acked-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/r8a7791.dtsi b/arch/arm/boot/dts/r8a7791.dtsi index 1e593a2..32f0506 100644 --- a/arch/arm/boot/dts/r8a7791.dtsi +++ b/arch/arm/boot/dts/r8a7791.dtsi @@ -485,6 +485,8 @@ reg = <0 0xee100000 0 0x200>; interrupts = <0 165 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp3_clks R8A7791_CLK_SDHI0>; + dmas = <&dmac1 0xcd>, <&dmac1 0xce>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -493,6 +495,8 @@ reg = <0 0xee140000 0 0x100>; interrupts = <0 167 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp3_clks R8A7791_CLK_SDHI1>; + dmas = <&dmac1 0xc1>, <&dmac1 0xc2>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -501,6 +505,8 @@ reg = <0 0xee160000 0 0x100>; interrupts = <0 168 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp3_clks R8A7791_CLK_SDHI2>; + dmas = <&dmac1 0xd3>, <&dmac1 0xd4>; + dma-names = "tx", "rx"; status = "disabled"; }; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 02/15] ARM: shmobile: r8a7791: Reference DMA channels in SDHI DT nodes @ 2015-03-10 0:44 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-03-10 0:44 UTC (permalink / raw) To: linux-arm-kernel From: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Add references to the transmit and receive DMA channels in the three SDHI nodes. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Acked-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/r8a7791.dtsi b/arch/arm/boot/dts/r8a7791.dtsi index 1e593a2..32f0506 100644 --- a/arch/arm/boot/dts/r8a7791.dtsi +++ b/arch/arm/boot/dts/r8a7791.dtsi @@ -485,6 +485,8 @@ reg = <0 0xee100000 0 0x200>; interrupts = <0 165 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp3_clks R8A7791_CLK_SDHI0>; + dmas = <&dmac1 0xcd>, <&dmac1 0xce>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -493,6 +495,8 @@ reg = <0 0xee140000 0 0x100>; interrupts = <0 167 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp3_clks R8A7791_CLK_SDHI1>; + dmas = <&dmac1 0xc1>, <&dmac1 0xc2>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -501,6 +505,8 @@ reg = <0 0xee160000 0 0x100>; interrupts = <0 168 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp3_clks R8A7791_CLK_SDHI2>; + dmas = <&dmac1 0xd3>, <&dmac1 0xd4>; + dma-names = "tx", "rx"; status = "disabled"; }; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 03/15] ARM: shmobile: r8a7790: tidyup SDHI register size on DTSI 2015-03-10 0:44 ` Simon Horman @ 2015-03-10 0:44 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-03-10 0:44 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> r8a7790 SDHI ch0/ch1 has SD_DMACR which is located in 0x324. This patch updates register size Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7790.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/r8a7790.dtsi b/arch/arm/boot/dts/r8a7790.dtsi index 5ce3564..31569ac 100644 --- a/arch/arm/boot/dts/r8a7790.dtsi +++ b/arch/arm/boot/dts/r8a7790.dtsi @@ -493,7 +493,7 @@ sdhi0: sd@ee100000 { compatible = "renesas,sdhi-r8a7790"; - reg = <0 0xee100000 0 0x200>; + reg = <0 0xee100000 0 0x328>; interrupts = <0 165 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp3_clks R8A7790_CLK_SDHI0>; dmas = <&dmac1 0xcd>, <&dmac1 0xce>; @@ -503,7 +503,7 @@ sdhi1: sd@ee120000 { compatible = "renesas,sdhi-r8a7790"; - reg = <0 0xee120000 0 0x200>; + reg = <0 0xee120000 0 0x328>; interrupts = <0 166 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp3_clks R8A7790_CLK_SDHI1>; dmas = <&dmac1 0xc9>, <&dmac1 0xca>; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 03/15] ARM: shmobile: r8a7790: tidyup SDHI register size on DTSI @ 2015-03-10 0:44 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-03-10 0:44 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> r8a7790 SDHI ch0/ch1 has SD_DMACR which is located in 0x324. This patch updates register size Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7790.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/r8a7790.dtsi b/arch/arm/boot/dts/r8a7790.dtsi index 5ce3564..31569ac 100644 --- a/arch/arm/boot/dts/r8a7790.dtsi +++ b/arch/arm/boot/dts/r8a7790.dtsi @@ -493,7 +493,7 @@ sdhi0: sd at ee100000 { compatible = "renesas,sdhi-r8a7790"; - reg = <0 0xee100000 0 0x200>; + reg = <0 0xee100000 0 0x328>; interrupts = <0 165 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp3_clks R8A7790_CLK_SDHI0>; dmas = <&dmac1 0xcd>, <&dmac1 0xce>; @@ -503,7 +503,7 @@ sdhi1: sd at ee120000 { compatible = "renesas,sdhi-r8a7790"; - reg = <0 0xee120000 0 0x200>; + reg = <0 0xee120000 0 0x328>; interrupts = <0 166 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp3_clks R8A7790_CLK_SDHI1>; dmas = <&dmac1 0xc9>, <&dmac1 0xca>; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 04/15] ARM: shmobile: r8a7791: tidyup SDHI register size on DTSI 2015-03-10 0:44 ` Simon Horman @ 2015-03-10 0:44 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-03-10 0:44 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> r8a7791 SDHI ch0/ch1 has SD_DMACR which is located in 0x324. This patch updates register size Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/r8a7791.dtsi b/arch/arm/boot/dts/r8a7791.dtsi index 32f0506..fbb33bb 100644 --- a/arch/arm/boot/dts/r8a7791.dtsi +++ b/arch/arm/boot/dts/r8a7791.dtsi @@ -482,7 +482,7 @@ sdhi0: sd@ee100000 { compatible = "renesas,sdhi-r8a7791"; - reg = <0 0xee100000 0 0x200>; + reg = <0 0xee100000 0 0x328>; interrupts = <0 165 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp3_clks R8A7791_CLK_SDHI0>; dmas = <&dmac1 0xcd>, <&dmac1 0xce>; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 04/15] ARM: shmobile: r8a7791: tidyup SDHI register size on DTSI @ 2015-03-10 0:44 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-03-10 0:44 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> r8a7791 SDHI ch0/ch1 has SD_DMACR which is located in 0x324. This patch updates register size Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/r8a7791.dtsi b/arch/arm/boot/dts/r8a7791.dtsi index 32f0506..fbb33bb 100644 --- a/arch/arm/boot/dts/r8a7791.dtsi +++ b/arch/arm/boot/dts/r8a7791.dtsi @@ -482,7 +482,7 @@ sdhi0: sd at ee100000 { compatible = "renesas,sdhi-r8a7791"; - reg = <0 0xee100000 0 0x200>; + reg = <0 0xee100000 0 0x328>; interrupts = <0 165 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp3_clks R8A7791_CLK_SDHI0>; dmas = <&dmac1 0xcd>, <&dmac1 0xce>; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 05/15] ARM: shmobile: r8a7790: Fix HSUSB clock to hp_clk from mp_clk 2015-03-10 0:44 ` Simon Horman @ 2015-03-10 0:44 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-03-10 0:44 UTC (permalink / raw) To: linux-arm-kernel From: Kazuya Mizuguchi <kazuya.mizuguchi.ks@renesas.com> HSUSB uses hp_clk rather than mp_clk for H/W register access. Signed-off-by: Kazuya Mizuguchi <kazuya.mizuguchi.ks@renesas.com> Signed-off-by: Yoshihiro Kaneko <ykaneko0929@gmail.com> [horms: updated changelog] Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7790.dtsi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/r8a7790.dtsi b/arch/arm/boot/dts/r8a7790.dtsi index 31569ac..b320252 100644 --- a/arch/arm/boot/dts/r8a7790.dtsi +++ b/arch/arm/boot/dts/r8a7790.dtsi @@ -1,6 +1,7 @@ /* * Device Tree Source for the r8a7790 SoC * + * Copyright (C) 2015 Renesas Electronics Corporation * Copyright (C) 2013-2014 Renesas Solutions Corp. * Copyright (C) 2014 Cogent Embedded Inc. * @@ -1181,7 +1182,7 @@ mstp7_clks: mstp7_clks@e615014c { compatible = "renesas,r8a7790-mstp-clocks", "renesas,cpg-mstp-clocks"; reg = <0 0xe615014c 0 4>, <0 0xe61501c4 0 4>; - clocks = <&mp_clk>, <&mp_clk>, <&zs_clk>, <&zs_clk>, <&p_clk>, + clocks = <&mp_clk>, <&hp_clk>, <&zs_clk>, <&zs_clk>, <&p_clk>, <&p_clk>, <&zx_clk>, <&zx_clk>, <&zx_clk>, <&zx_clk>, <&zx_clk>; #clock-cells = <1>; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 05/15] ARM: shmobile: r8a7790: Fix HSUSB clock to hp_clk from mp_clk @ 2015-03-10 0:44 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-03-10 0:44 UTC (permalink / raw) To: linux-arm-kernel From: Kazuya Mizuguchi <kazuya.mizuguchi.ks@renesas.com> HSUSB uses hp_clk rather than mp_clk for H/W register access. Signed-off-by: Kazuya Mizuguchi <kazuya.mizuguchi.ks@renesas.com> Signed-off-by: Yoshihiro Kaneko <ykaneko0929@gmail.com> [horms: updated changelog] Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7790.dtsi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/r8a7790.dtsi b/arch/arm/boot/dts/r8a7790.dtsi index 31569ac..b320252 100644 --- a/arch/arm/boot/dts/r8a7790.dtsi +++ b/arch/arm/boot/dts/r8a7790.dtsi @@ -1,6 +1,7 @@ /* * Device Tree Source for the r8a7790 SoC * + * Copyright (C) 2015 Renesas Electronics Corporation * Copyright (C) 2013-2014 Renesas Solutions Corp. * Copyright (C) 2014 Cogent Embedded Inc. * @@ -1181,7 +1182,7 @@ mstp7_clks: mstp7_clks at e615014c { compatible = "renesas,r8a7790-mstp-clocks", "renesas,cpg-mstp-clocks"; reg = <0 0xe615014c 0 4>, <0 0xe61501c4 0 4>; - clocks = <&mp_clk>, <&mp_clk>, <&zs_clk>, <&zs_clk>, <&p_clk>, + clocks = <&mp_clk>, <&hp_clk>, <&zs_clk>, <&zs_clk>, <&p_clk>, <&p_clk>, <&zx_clk>, <&zx_clk>, <&zx_clk>, <&zx_clk>, <&zx_clk>; #clock-cells = <1>; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 06/15] ARM: shmobile: r8a7791: Fix HSUSB clock to hp_clk from mp_clk 2015-03-10 0:44 ` Simon Horman @ 2015-03-10 0:44 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-03-10 0:44 UTC (permalink / raw) To: linux-arm-kernel From: Kazuya Mizuguchi <kazuya.mizuguchi.ks@renesas.com> HSUSB uses hp_clk rather than mp_clk for H/W register access. Signed-off-by: Kazuya Mizuguchi <kazuya.mizuguchi.ks@renesas.com> Signed-off-by: Yoshihiro Kaneko <ykaneko0929@gmail.com> [horms: updated changelog] Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/r8a7791.dtsi b/arch/arm/boot/dts/r8a7791.dtsi index fbb33bb..de42fc5 100644 --- a/arch/arm/boot/dts/r8a7791.dtsi +++ b/arch/arm/boot/dts/r8a7791.dtsi @@ -1,7 +1,7 @@ /* * Device Tree Source for the r8a7791 SoC * - * Copyright (C) 2013-2014 Renesas Electronics Corporation + * Copyright (C) 2013-2015 Renesas Electronics Corporation * Copyright (C) 2013-2014 Renesas Solutions Corp. * Copyright (C) 2014 Cogent Embedded Inc. * @@ -1184,7 +1184,7 @@ mstp7_clks: mstp7_clks@e615014c { compatible = "renesas,r8a7791-mstp-clocks", "renesas,cpg-mstp-clocks"; reg = <0 0xe615014c 0 4>, <0 0xe61501c4 0 4>; - clocks = <&mp_clk>, <&mp_clk>, <&zs_clk>, <&p_clk>, <&p_clk>, <&zs_clk>, + clocks = <&mp_clk>, <&hp_clk>, <&zs_clk>, <&p_clk>, <&p_clk>, <&zs_clk>, <&zs_clk>, <&p_clk>, <&p_clk>, <&p_clk>, <&p_clk>, <&zx_clk>, <&zx_clk>, <&zx_clk>; #clock-cells = <1>; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 06/15] ARM: shmobile: r8a7791: Fix HSUSB clock to hp_clk from mp_clk @ 2015-03-10 0:44 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-03-10 0:44 UTC (permalink / raw) To: linux-arm-kernel From: Kazuya Mizuguchi <kazuya.mizuguchi.ks@renesas.com> HSUSB uses hp_clk rather than mp_clk for H/W register access. Signed-off-by: Kazuya Mizuguchi <kazuya.mizuguchi.ks@renesas.com> Signed-off-by: Yoshihiro Kaneko <ykaneko0929@gmail.com> [horms: updated changelog] Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/r8a7791.dtsi b/arch/arm/boot/dts/r8a7791.dtsi index fbb33bb..de42fc5 100644 --- a/arch/arm/boot/dts/r8a7791.dtsi +++ b/arch/arm/boot/dts/r8a7791.dtsi @@ -1,7 +1,7 @@ /* * Device Tree Source for the r8a7791 SoC * - * Copyright (C) 2013-2014 Renesas Electronics Corporation + * Copyright (C) 2013-2015 Renesas Electronics Corporation * Copyright (C) 2013-2014 Renesas Solutions Corp. * Copyright (C) 2014 Cogent Embedded Inc. * @@ -1184,7 +1184,7 @@ mstp7_clks: mstp7_clks at e615014c { compatible = "renesas,r8a7791-mstp-clocks", "renesas,cpg-mstp-clocks"; reg = <0 0xe615014c 0 4>, <0 0xe61501c4 0 4>; - clocks = <&mp_clk>, <&mp_clk>, <&zs_clk>, <&p_clk>, <&p_clk>, <&zs_clk>, + clocks = <&mp_clk>, <&hp_clk>, <&zs_clk>, <&p_clk>, <&p_clk>, <&zs_clk>, <&zs_clk>, <&p_clk>, <&p_clk>, <&p_clk>, <&p_clk>, <&zx_clk>, <&zx_clk>, <&zx_clk>; #clock-cells = <1>; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 07/15] ARM: shmobile: lager: Add DU HDMI output support 2015-03-10 0:44 ` Simon Horman @ 2015-03-10 0:44 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-03-10 0:44 UTC (permalink / raw) To: linux-arm-kernel From: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Add DT nodes for the ADV7511 HDMI encoder and its HDMI output connector. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7790-lager.dts | 48 +++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/arch/arm/boot/dts/r8a7790-lager.dts b/arch/arm/boot/dts/r8a7790-lager.dts index 0c3b678..631b3f5 100644 --- a/arch/arm/boot/dts/r8a7790-lager.dts +++ b/arch/arm/boot/dts/r8a7790-lager.dts @@ -222,6 +222,17 @@ }; }; }; + + hdmi-out { + compatible = "hdmi-connector"; + type = "a"; + + port { + hdmi_con: endpoint { + remote-endpoint = <&adv7511_out>; + }; + }; + }; }; &du { @@ -235,6 +246,11 @@ remote-endpoint = <&adv7123_in>; }; }; + port@1 { + endpoint { + remote-endpoint = <&adv7511_in>; + }; + }; port@2 { lvds_connector: endpoint { }; @@ -506,6 +522,38 @@ }; }; }; + + hdmi@39 { + compatible = "adi,adv7511w"; + reg = <0x39>; + interrupt-parent = <&gpio1>; + interrupts = <15 IRQ_TYPE_EDGE_FALLING>; + + adi,input-depth = <8>; + adi,input-colorspace = "rgb"; + adi,input-clock = "1x"; + adi,input-style = <1>; + adi,input-justification = "evenly"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + adv7511_in: endpoint { + remote-endpoint = <&du_out_lvds0>; + }; + }; + + port@1 { + reg = <1>; + adv7511_out: endpoint { + remote-endpoint = <&hdmi_con>; + }; + }; + }; + }; }; &iic3 { -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 07/15] ARM: shmobile: lager: Add DU HDMI output support @ 2015-03-10 0:44 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-03-10 0:44 UTC (permalink / raw) To: linux-arm-kernel From: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Add DT nodes for the ADV7511 HDMI encoder and its HDMI output connector. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7790-lager.dts | 48 +++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/arch/arm/boot/dts/r8a7790-lager.dts b/arch/arm/boot/dts/r8a7790-lager.dts index 0c3b678..631b3f5 100644 --- a/arch/arm/boot/dts/r8a7790-lager.dts +++ b/arch/arm/boot/dts/r8a7790-lager.dts @@ -222,6 +222,17 @@ }; }; }; + + hdmi-out { + compatible = "hdmi-connector"; + type = "a"; + + port { + hdmi_con: endpoint { + remote-endpoint = <&adv7511_out>; + }; + }; + }; }; &du { @@ -235,6 +246,11 @@ remote-endpoint = <&adv7123_in>; }; }; + port at 1 { + endpoint { + remote-endpoint = <&adv7511_in>; + }; + }; port at 2 { lvds_connector: endpoint { }; @@ -506,6 +522,38 @@ }; }; }; + + hdmi at 39 { + compatible = "adi,adv7511w"; + reg = <0x39>; + interrupt-parent = <&gpio1>; + interrupts = <15 IRQ_TYPE_EDGE_FALLING>; + + adi,input-depth = <8>; + adi,input-colorspace = "rgb"; + adi,input-clock = "1x"; + adi,input-style = <1>; + adi,input-justification = "evenly"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port at 0 { + reg = <0>; + adv7511_in: endpoint { + remote-endpoint = <&du_out_lvds0>; + }; + }; + + port at 1 { + reg = <1>; + adv7511_out: endpoint { + remote-endpoint = <&hdmi_con>; + }; + }; + }; + }; }; &iic3 { -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 08/15] ARM: shmobile: ape6evm dts: Fix polarity of LEDs 2015-03-10 0:44 ` Simon Horman @ 2015-03-10 0:44 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-03-10 0:44 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> While the LEDs on r8a73a4/ape6evm are tied to VSUPPLY, they're driven by an N-channel MOSFET. Hence the GPIO signal should be active high. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a73a4-ape6evm.dts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/arm/boot/dts/r8a73a4-ape6evm.dts b/arch/arm/boot/dts/r8a73a4-ape6evm.dts index 0d50bef..e8f3f38 100644 --- a/arch/arm/boot/dts/r8a73a4-ape6evm.dts +++ b/arch/arm/boot/dts/r8a73a4-ape6evm.dts @@ -95,27 +95,27 @@ leds { compatible = "gpio-leds"; led1 { - gpios = <&pfc 28 GPIO_ACTIVE_LOW>; + gpios = <&pfc 28 GPIO_ACTIVE_HIGH>; label = "GNSS_EN"; }; led2 { - gpios = <&pfc 126 GPIO_ACTIVE_LOW>; + gpios = <&pfc 126 GPIO_ACTIVE_HIGH>; label = "NFC_NRST"; }; led3 { - gpios = <&pfc 132 GPIO_ACTIVE_LOW>; + gpios = <&pfc 132 GPIO_ACTIVE_HIGH>; label = "GNSS_NRST"; }; led4 { - gpios = <&pfc 232 GPIO_ACTIVE_LOW>; + gpios = <&pfc 232 GPIO_ACTIVE_HIGH>; label = "BT_WAKEUP"; }; led5 { - gpios = <&pfc 250 GPIO_ACTIVE_LOW>; + gpios = <&pfc 250 GPIO_ACTIVE_HIGH>; label = "STROBE"; }; led6 { - gpios = <&pfc 288 GPIO_ACTIVE_LOW>; + gpios = <&pfc 288 GPIO_ACTIVE_HIGH>; label = "BBRESETOUT"; }; }; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 08/15] ARM: shmobile: ape6evm dts: Fix polarity of LEDs @ 2015-03-10 0:44 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-03-10 0:44 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> While the LEDs on r8a73a4/ape6evm are tied to VSUPPLY, they're driven by an N-channel MOSFET. Hence the GPIO signal should be active high. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a73a4-ape6evm.dts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/arm/boot/dts/r8a73a4-ape6evm.dts b/arch/arm/boot/dts/r8a73a4-ape6evm.dts index 0d50bef..e8f3f38 100644 --- a/arch/arm/boot/dts/r8a73a4-ape6evm.dts +++ b/arch/arm/boot/dts/r8a73a4-ape6evm.dts @@ -95,27 +95,27 @@ leds { compatible = "gpio-leds"; led1 { - gpios = <&pfc 28 GPIO_ACTIVE_LOW>; + gpios = <&pfc 28 GPIO_ACTIVE_HIGH>; label = "GNSS_EN"; }; led2 { - gpios = <&pfc 126 GPIO_ACTIVE_LOW>; + gpios = <&pfc 126 GPIO_ACTIVE_HIGH>; label = "NFC_NRST"; }; led3 { - gpios = <&pfc 132 GPIO_ACTIVE_LOW>; + gpios = <&pfc 132 GPIO_ACTIVE_HIGH>; label = "GNSS_NRST"; }; led4 { - gpios = <&pfc 232 GPIO_ACTIVE_LOW>; + gpios = <&pfc 232 GPIO_ACTIVE_HIGH>; label = "BT_WAKEUP"; }; led5 { - gpios = <&pfc 250 GPIO_ACTIVE_LOW>; + gpios = <&pfc 250 GPIO_ACTIVE_HIGH>; label = "STROBE"; }; led6 { - gpios = <&pfc 288 GPIO_ACTIVE_LOW>; + gpios = <&pfc 288 GPIO_ACTIVE_HIGH>; label = "BBRESETOUT"; }; }; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 09/15] ARM: shmobile: marzen: Add DU external pixel clock to DT 2015-03-10 0:44 ` Simon Horman @ 2015-03-10 0:44 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-03-10 0:44 UTC (permalink / raw) To: linux-arm-kernel From: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Declare the fixed 65MHz pixel clock connected to the DU clock input. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7779-marzen.dts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/r8a7779-marzen.dts b/arch/arm/boot/dts/r8a7779-marzen.dts index e83d40e..540756c 100644 --- a/arch/arm/boot/dts/r8a7779-marzen.dts +++ b/arch/arm/boot/dts/r8a7779-marzen.dts @@ -122,6 +122,12 @@ }; }; }; + + x3_clk: x3-clock { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <65000000>; + }; }; &du { @@ -129,6 +135,9 @@ pinctrl-names = "default"; status = "okay"; + clocks = <&mstp1_clks R8A7779_CLK_DU>, <&x3_clk>; + clock-names = "du", "dclkin.0"; + ports { port@0 { endpoint { -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 09/15] ARM: shmobile: marzen: Add DU external pixel clock to DT @ 2015-03-10 0:44 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-03-10 0:44 UTC (permalink / raw) To: linux-arm-kernel From: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Declare the fixed 65MHz pixel clock connected to the DU clock input. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7779-marzen.dts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/r8a7779-marzen.dts b/arch/arm/boot/dts/r8a7779-marzen.dts index e83d40e..540756c 100644 --- a/arch/arm/boot/dts/r8a7779-marzen.dts +++ b/arch/arm/boot/dts/r8a7779-marzen.dts @@ -122,6 +122,12 @@ }; }; }; + + x3_clk: x3-clock { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <65000000>; + }; }; &du { @@ -129,6 +135,9 @@ pinctrl-names = "default"; status = "okay"; + clocks = <&mstp1_clks R8A7779_CLK_DU>, <&x3_clk>; + clock-names = "du", "dclkin.0"; + ports { port at 0 { endpoint { -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 10/15] ARM: shmobile: koelsch: Add DU external pixel clocks to DT 2015-03-10 0:44 ` Simon Horman @ 2015-03-10 0:44 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-03-10 0:44 UTC (permalink / raw) To: linux-arm-kernel From: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Declare the fixed 148.5MHz pixel clocks connected to the DU clock inputs. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791-koelsch.dts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/arch/arm/boot/dts/r8a7791-koelsch.dts b/arch/arm/boot/dts/r8a7791-koelsch.dts index 624bb2c..75fa985 100644 --- a/arch/arm/boot/dts/r8a7791-koelsch.dts +++ b/arch/arm/boot/dts/r8a7791-koelsch.dts @@ -269,6 +269,18 @@ }; }; }; + + x2_clk: x2-clock { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <148500000>; + }; + + x13_clk: x13-clock { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <148500000>; + }; }; &du { @@ -276,6 +288,13 @@ pinctrl-names = "default"; status = "okay"; + clocks = <&mstp7_clks R8A7791_CLK_DU0>, + <&mstp7_clks R8A7791_CLK_DU1>, + <&mstp7_clks R8A7791_CLK_LVDS0>, + <&x13_clk>, <&x2_clk>; + clock-names = "du.0", "du.1", "lvds.0", + "dclkin.0", "dclkin.1"; + ports { port@0 { endpoint { -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 10/15] ARM: shmobile: koelsch: Add DU external pixel clocks to DT @ 2015-03-10 0:44 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-03-10 0:44 UTC (permalink / raw) To: linux-arm-kernel From: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Declare the fixed 148.5MHz pixel clocks connected to the DU clock inputs. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791-koelsch.dts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/arch/arm/boot/dts/r8a7791-koelsch.dts b/arch/arm/boot/dts/r8a7791-koelsch.dts index 624bb2c..75fa985 100644 --- a/arch/arm/boot/dts/r8a7791-koelsch.dts +++ b/arch/arm/boot/dts/r8a7791-koelsch.dts @@ -269,6 +269,18 @@ }; }; }; + + x2_clk: x2-clock { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <148500000>; + }; + + x13_clk: x13-clock { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <148500000>; + }; }; &du { @@ -276,6 +288,13 @@ pinctrl-names = "default"; status = "okay"; + clocks = <&mstp7_clks R8A7791_CLK_DU0>, + <&mstp7_clks R8A7791_CLK_DU1>, + <&mstp7_clks R8A7791_CLK_LVDS0>, + <&x13_clk>, <&x2_clk>; + clock-names = "du.0", "du.1", "lvds.0", + "dclkin.0", "dclkin.1"; + ports { port at 0 { endpoint { -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 11/15] ARM: shmobile: lager: Add DU external pixel clocks to DT 2015-03-10 0:44 ` Simon Horman @ 2015-03-10 0:44 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-03-10 0:44 UTC (permalink / raw) To: linux-arm-kernel From: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Declare the fixed 148.5MHz pixel clocks connected to the DU clock inputs. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7790-lager.dts | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/arch/arm/boot/dts/r8a7790-lager.dts b/arch/arm/boot/dts/r8a7790-lager.dts index 631b3f5..329bb99 100644 --- a/arch/arm/boot/dts/r8a7790-lager.dts +++ b/arch/arm/boot/dts/r8a7790-lager.dts @@ -233,6 +233,18 @@ }; }; }; + + x2_clk: x2-clock { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <148500000>; + }; + + x13_clk: x13-clock { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <148500000>; + }; }; &du { @@ -240,6 +252,15 @@ pinctrl-names = "default"; status = "okay"; + clocks = <&mstp7_clks R8A7790_CLK_DU0>, + <&mstp7_clks R8A7790_CLK_DU1>, + <&mstp7_clks R8A7790_CLK_DU2>, + <&mstp7_clks R8A7790_CLK_LVDS0>, + <&mstp7_clks R8A7790_CLK_LVDS1>, + <&x13_clk>, <&x2_clk>; + clock-names = "du.0", "du.1", "du.2", "lvds.0", "lvds.1", + "dclkin.0", "dclkin.1"; + ports { port@0 { endpoint { -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 11/15] ARM: shmobile: lager: Add DU external pixel clocks to DT @ 2015-03-10 0:44 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-03-10 0:44 UTC (permalink / raw) To: linux-arm-kernel From: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Declare the fixed 148.5MHz pixel clocks connected to the DU clock inputs. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7790-lager.dts | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/arch/arm/boot/dts/r8a7790-lager.dts b/arch/arm/boot/dts/r8a7790-lager.dts index 631b3f5..329bb99 100644 --- a/arch/arm/boot/dts/r8a7790-lager.dts +++ b/arch/arm/boot/dts/r8a7790-lager.dts @@ -233,6 +233,18 @@ }; }; }; + + x2_clk: x2-clock { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <148500000>; + }; + + x13_clk: x13-clock { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <148500000>; + }; }; &du { @@ -240,6 +252,15 @@ pinctrl-names = "default"; status = "okay"; + clocks = <&mstp7_clks R8A7790_CLK_DU0>, + <&mstp7_clks R8A7790_CLK_DU1>, + <&mstp7_clks R8A7790_CLK_DU2>, + <&mstp7_clks R8A7790_CLK_LVDS0>, + <&mstp7_clks R8A7790_CLK_LVDS1>, + <&x13_clk>, <&x2_clk>; + clock-names = "du.0", "du.1", "du.2", "lvds.0", "lvds.1", + "dclkin.0", "dclkin.1"; + ports { port at 0 { endpoint { -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 12/15] ARM: shmobile: r8a7794: alt: Fix ethernet controller PHY IRQ line 2015-03-10 0:44 ` Simon Horman @ 2015-03-10 0:44 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-03-10 0:44 UTC (permalink / raw) To: linux-arm-kernel From: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> The PHY IRQ line is connected to external IRQ8, not IRQ0. Fix DT accordingly. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7794-alt.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/r8a7794-alt.dts b/arch/arm/boot/dts/r8a7794-alt.dts index 25bf434..928cfa6 100644 --- a/arch/arm/boot/dts/r8a7794-alt.dts +++ b/arch/arm/boot/dts/r8a7794-alt.dts @@ -51,7 +51,7 @@ phy1: ethernet-phy@1 { reg = <1>; interrupt-parent = <&irqc0>; - interrupts = <0 IRQ_TYPE_LEVEL_LOW>; + interrupts = <8 IRQ_TYPE_LEVEL_LOW>; micrel,led-mode = <1>; }; }; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 12/15] ARM: shmobile: r8a7794: alt: Fix ethernet controller PHY IRQ line @ 2015-03-10 0:44 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-03-10 0:44 UTC (permalink / raw) To: linux-arm-kernel From: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> The PHY IRQ line is connected to external IRQ8, not IRQ0. Fix DT accordingly. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7794-alt.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/r8a7794-alt.dts b/arch/arm/boot/dts/r8a7794-alt.dts index 25bf434..928cfa6 100644 --- a/arch/arm/boot/dts/r8a7794-alt.dts +++ b/arch/arm/boot/dts/r8a7794-alt.dts @@ -51,7 +51,7 @@ phy1: ethernet-phy at 1 { reg = <1>; interrupt-parent = <&irqc0>; - interrupts = <0 IRQ_TYPE_LEVEL_LOW>; + interrupts = <8 IRQ_TYPE_LEVEL_LOW>; micrel,led-mode = <1>; }; }; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 13/15] ARM: shmobile: r8a7791: Fix IPMMU-GP clock to device tree 2015-03-10 0:44 ` Simon Horman @ 2015-03-10 0:44 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-03-10 0:44 UTC (permalink / raw) To: linux-arm-kernel From: Ryo Kataoka <ryo.kataoka.wt@renesas.com> Signed-off-by: Ryo Kataoka <ryo.kataoka.wt@renesas.com> Signed-off-by: Yoshihiro Kaneko <ykaneko0929@gmail.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/r8a7791.dtsi b/arch/arm/boot/dts/r8a7791.dtsi index de42fc5..e899f79 100644 --- a/arch/arm/boot/dts/r8a7791.dtsi +++ b/arch/arm/boot/dts/r8a7791.dtsi @@ -1202,7 +1202,7 @@ mstp8_clks: mstp8_clks@e6150990 { compatible = "renesas,r8a7791-mstp-clocks", "renesas,cpg-mstp-clocks"; reg = <0 0xe6150990 0 4>, <0 0xe61509a0 0 4>; - clocks = <&zg_clk>, <&hp_clk>, <&zg_clk>, <&zg_clk>, + clocks = <&zx_clk>, <&hp_clk>, <&zg_clk>, <&zg_clk>, <&zg_clk>, <&p_clk>, <&zs_clk>, <&zs_clk>; #clock-cells = <1>; clock-indices = < -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 13/15] ARM: shmobile: r8a7791: Fix IPMMU-GP clock to device tree @ 2015-03-10 0:44 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-03-10 0:44 UTC (permalink / raw) To: linux-arm-kernel From: Ryo Kataoka <ryo.kataoka.wt@renesas.com> Signed-off-by: Ryo Kataoka <ryo.kataoka.wt@renesas.com> Signed-off-by: Yoshihiro Kaneko <ykaneko0929@gmail.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/r8a7791.dtsi b/arch/arm/boot/dts/r8a7791.dtsi index de42fc5..e899f79 100644 --- a/arch/arm/boot/dts/r8a7791.dtsi +++ b/arch/arm/boot/dts/r8a7791.dtsi @@ -1202,7 +1202,7 @@ mstp8_clks: mstp8_clks at e6150990 { compatible = "renesas,r8a7791-mstp-clocks", "renesas,cpg-mstp-clocks"; reg = <0 0xe6150990 0 4>, <0 0xe61509a0 0 4>; - clocks = <&zg_clk>, <&hp_clk>, <&zg_clk>, <&zg_clk>, + clocks = <&zx_clk>, <&hp_clk>, <&zg_clk>, <&zg_clk>, <&zg_clk>, <&p_clk>, <&zs_clk>, <&zs_clk>; #clock-cells = <1>; clock-indices = < -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 14/15] ARM: shmobile: ape6evm dts: Enable pull-up for GPIO switches 2015-03-10 0:44 ` Simon Horman @ 2015-03-10 0:44 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-03-10 0:44 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> The switches on r8a73a4/ape6evm do not have pull-up registers. The schematics say: "Need to use APE6 internal PullUp", hence enable pull-up using pinctrl. Without this, the switches don't really work, as the GPIO inputs are more likely to pick up ghost signals through capacitive coupling than actual keypresses. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a73a4-ape6evm.dts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/r8a73a4-ape6evm.dts b/arch/arm/boot/dts/r8a73a4-ape6evm.dts index e8f3f38..9734dd7 100644 --- a/arch/arm/boot/dts/r8a73a4-ape6evm.dts +++ b/arch/arm/boot/dts/r8a73a4-ape6evm.dts @@ -123,6 +123,9 @@ keyboard { compatible = "gpio-keys"; + pinctrl-names = "default"; + pinctrl-0 = <&keyboard_pins>; + zero-key { gpios = <&pfc 324 GPIO_ACTIVE_LOW>; linux,code = <KEY_0>; @@ -208,6 +211,12 @@ renesas,groups = "sdhi1_data4", "sdhi1_ctrl"; renesas,function = "sdhi1"; }; + + keyboard_pins: keyboard { + renesas,pins = "PORT324", "PORT325", "PORT326", "PORT327", + "PORT328", "PORT329"; + bias-pull-up; + }; }; &mmcif0 { -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 14/15] ARM: shmobile: ape6evm dts: Enable pull-up for GPIO switches @ 2015-03-10 0:44 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-03-10 0:44 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> The switches on r8a73a4/ape6evm do not have pull-up registers. The schematics say: "Need to use APE6 internal PullUp", hence enable pull-up using pinctrl. Without this, the switches don't really work, as the GPIO inputs are more likely to pick up ghost signals through capacitive coupling than actual keypresses. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a73a4-ape6evm.dts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/r8a73a4-ape6evm.dts b/arch/arm/boot/dts/r8a73a4-ape6evm.dts index e8f3f38..9734dd7 100644 --- a/arch/arm/boot/dts/r8a73a4-ape6evm.dts +++ b/arch/arm/boot/dts/r8a73a4-ape6evm.dts @@ -123,6 +123,9 @@ keyboard { compatible = "gpio-keys"; + pinctrl-names = "default"; + pinctrl-0 = <&keyboard_pins>; + zero-key { gpios = <&pfc 324 GPIO_ACTIVE_LOW>; linux,code = <KEY_0>; @@ -208,6 +211,12 @@ renesas,groups = "sdhi1_data4", "sdhi1_ctrl"; renesas,function = "sdhi1"; }; + + keyboard_pins: keyboard { + renesas,pins = "PORT324", "PORT325", "PORT326", "PORT327", + "PORT328", "PORT329"; + bias-pull-up; + }; }; &mmcif0 { -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 15/15] ARM: shmobile: ape6evm dts: Configure the custom switch as wake-up source 2015-03-10 0:44 ` Simon Horman @ 2015-03-10 0:44 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-03-10 0:44 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a73a4-ape6evm.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/r8a73a4-ape6evm.dts b/arch/arm/boot/dts/r8a73a4-ape6evm.dts index 9734dd7..d1b6a07 100644 --- a/arch/arm/boot/dts/r8a73a4-ape6evm.dts +++ b/arch/arm/boot/dts/r8a73a4-ape6evm.dts @@ -130,6 +130,7 @@ gpios = <&pfc 324 GPIO_ACTIVE_LOW>; linux,code = <KEY_0>; label = "S16"; + gpio-key,wakeup; }; menu-key { -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 15/15] ARM: shmobile: ape6evm dts: Configure the custom switch as wake-up source @ 2015-03-10 0:44 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-03-10 0:44 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a73a4-ape6evm.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/r8a73a4-ape6evm.dts b/arch/arm/boot/dts/r8a73a4-ape6evm.dts index 9734dd7..d1b6a07 100644 --- a/arch/arm/boot/dts/r8a73a4-ape6evm.dts +++ b/arch/arm/boot/dts/r8a73a4-ape6evm.dts @@ -130,6 +130,7 @@ gpios = <&pfc 324 GPIO_ACTIVE_LOW>; linux,code = <KEY_0>; label = "S16"; + gpio-key,wakeup; }; menu-key { -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* Re: [GIT PULL] Second Round of Renesas ARM Based SoC DT Updates for v4.1 2015-03-10 0:44 ` Simon Horman @ 2015-03-11 21:56 ` Arnd Bergmann -1 siblings, 0 replies; 776+ messages in thread From: Arnd Bergmann @ 2015-03-11 21:56 UTC (permalink / raw) To: linux-arm-kernel On Tuesday 10 March 2015 09:44:46 Simon Horman wrote: > * ape6evm board > - Configure GPIO keys as wake-up source > - Enable pull-up for GPIO switches > - Correct polarity of LEDs > * r8a7791 SoC > - Correct IPMMU-GP clock to device tree > * r8a7794 SoC > - Correct ethernet controller PHY IRQ > * lager, koelsch and marzen boards > - Add DU external pixel clock to DT > * lager board > - Add HDMI output support to DT > * r8a7791 and r8a7790 SoCs > - Tidy up SDHI register size in DT > - Reference DMA channels for SDHI in DT > Pulled into next/dt, thanks! Arnd ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC DT Updates for v4.1 @ 2015-03-11 21:56 ` Arnd Bergmann 0 siblings, 0 replies; 776+ messages in thread From: Arnd Bergmann @ 2015-03-11 21:56 UTC (permalink / raw) To: linux-arm-kernel On Tuesday 10 March 2015 09:44:46 Simon Horman wrote: > * ape6evm board > - Configure GPIO keys as wake-up source > - Enable pull-up for GPIO switches > - Correct polarity of LEDs > * r8a7791 SoC > - Correct IPMMU-GP clock to device tree > * r8a7794 SoC > - Correct ethernet controller PHY IRQ > * lager, koelsch and marzen boards > - Add DU external pixel clock to DT > * lager board > - Add HDMI output support to DT > * r8a7791 and r8a7790 SoCs > - Tidy up SDHI register size in DT > - Reference DMA channels for SDHI in DT > Pulled into next/dt, thanks! Arnd ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC Defconfig Updates for v4.2 @ 2015-05-29 0:53 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-05-29 0:53 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Hi Kevin, Hi Arnd, Please consider these second round of Renesas ARM based SoC defconfig updates for v4.2. This pull request is based on the previous round of such requests, tagged as renesas-defconfig-for-v4.2, which I have already sent a pull-request for. The following changes since commit 90037558d5ed25a63499c3973cc1af25da02f673: ARM: shmobile: defconfig: Replace USB_RCAR_GEN2_PHY by PHY_RCAR_GEN2 (2015-05-01 21:25:43 +0900) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-defconfig2-for-v4.2 for you to fetch changes up to f2a5cefbbb2c69253a8a8aa7f7f77b22f0595811: ARM: multi_v7_defconfig: Enable shmobile r8a7778/bockw platform (2015-05-25 10:10:48 +0900) ---------------------------------------------------------------- Second Round of Renesas ARM Based SoC Defconfig Updates for v4.2 * Enable shmobile r8a7778/bockw platform ---------------------------------------------------------------- Geert Uytterhoeven (1): ARM: multi_v7_defconfig: Enable shmobile r8a7778/bockw platform arch/arm/configs/multi_v7_defconfig | 3 +++ 1 file changed, 3 insertions(+) ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC Defconfig Updates for v4.2 @ 2015-05-29 0:53 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-05-29 0:53 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Hi Kevin, Hi Arnd, Please consider these second round of Renesas ARM based SoC defconfig updates for v4.2. This pull request is based on the previous round of such requests, tagged as renesas-defconfig-for-v4.2, which I have already sent a pull-request for. The following changes since commit 90037558d5ed25a63499c3973cc1af25da02f673: ARM: shmobile: defconfig: Replace USB_RCAR_GEN2_PHY by PHY_RCAR_GEN2 (2015-05-01 21:25:43 +0900) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-defconfig2-for-v4.2 for you to fetch changes up to f2a5cefbbb2c69253a8a8aa7f7f77b22f0595811: ARM: multi_v7_defconfig: Enable shmobile r8a7778/bockw platform (2015-05-25 10:10:48 +0900) ---------------------------------------------------------------- Second Round of Renesas ARM Based SoC Defconfig Updates for v4.2 * Enable shmobile r8a7778/bockw platform ---------------------------------------------------------------- Geert Uytterhoeven (1): ARM: multi_v7_defconfig: Enable shmobile r8a7778/bockw platform arch/arm/configs/multi_v7_defconfig | 3 +++ 1 file changed, 3 insertions(+) ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH] ARM: multi_v7_defconfig: Enable shmobile r8a7778/bockw platform 2015-05-29 0:53 ` Simon Horman @ 2015-05-29 0:54 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-05-29 0:54 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/configs/multi_v7_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig index ab86655c1f4b..06e7e887fea5 100644 --- a/arch/arm/configs/multi_v7_defconfig +++ b/arch/arm/configs/multi_v7_defconfig @@ -69,6 +69,7 @@ CONFIG_ARCH_EMEV2=y CONFIG_ARCH_R7S72100=y CONFIG_ARCH_R8A73A4=y CONFIG_ARCH_R8A7740=y +CONFIG_ARCH_R8A7778=y CONFIG_ARCH_R8A7779=y CONFIG_ARCH_R8A7790=y CONFIG_ARCH_R8A7791=y @@ -387,6 +388,7 @@ CONFIG_V4L_MEM2MEM_DRIVERS=y CONFIG_VIDEO_RENESAS_VSP1=m # CONFIG_MEDIA_SUBDRV_AUTOSELECT is not set CONFIG_VIDEO_ADV7180=m +CONFIG_VIDEO_ML86V7667=m CONFIG_DRM=y CONFIG_DRM_RCAR_DU=m CONFIG_DRM_TEGRA=y @@ -503,6 +505,7 @@ CONFIG_RTC_DRV_TWL4030=y CONFIG_RTC_DRV_TPS6586X=y CONFIG_RTC_DRV_TPS65910=y CONFIG_RTC_DRV_S35390A=m +CONFIG_RTC_DRV_RX8581=m CONFIG_RTC_DRV_EM3027=y CONFIG_RTC_DRV_PL031=y CONFIG_RTC_DRV_VT8500=y -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH] ARM: multi_v7_defconfig: Enable shmobile r8a7778/bockw platform @ 2015-05-29 0:54 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-05-29 0:54 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/configs/multi_v7_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig index ab86655c1f4b..06e7e887fea5 100644 --- a/arch/arm/configs/multi_v7_defconfig +++ b/arch/arm/configs/multi_v7_defconfig @@ -69,6 +69,7 @@ CONFIG_ARCH_EMEV2=y CONFIG_ARCH_R7S72100=y CONFIG_ARCH_R8A73A4=y CONFIG_ARCH_R8A7740=y +CONFIG_ARCH_R8A7778=y CONFIG_ARCH_R8A7779=y CONFIG_ARCH_R8A7790=y CONFIG_ARCH_R8A7791=y @@ -387,6 +388,7 @@ CONFIG_V4L_MEM2MEM_DRIVERS=y CONFIG_VIDEO_RENESAS_VSP1=m # CONFIG_MEDIA_SUBDRV_AUTOSELECT is not set CONFIG_VIDEO_ADV7180=m +CONFIG_VIDEO_ML86V7667=m CONFIG_DRM=y CONFIG_DRM_RCAR_DU=m CONFIG_DRM_TEGRA=y @@ -503,6 +505,7 @@ CONFIG_RTC_DRV_TWL4030=y CONFIG_RTC_DRV_TPS6586X=y CONFIG_RTC_DRV_TPS65910=y CONFIG_RTC_DRV_S35390A=m +CONFIG_RTC_DRV_RX8581=m CONFIG_RTC_DRV_EM3027=y CONFIG_RTC_DRV_PL031=y CONFIG_RTC_DRV_VT8500=y -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* Re: [GIT PULL] Second Round of Renesas ARM Based SoC Defconfig Updates for v4.2 2015-05-29 0:53 ` Simon Horman @ 2015-05-29 14:25 ` Arnd Bergmann -1 siblings, 0 replies; 776+ messages in thread From: Arnd Bergmann @ 2015-05-29 14:25 UTC (permalink / raw) To: linux-arm-kernel On Friday 29 May 2015 09:53:56 Simon Horman wrote: > This pull request is based on the previous round of > such requests, tagged as renesas-defconfig-for-v4.2, > which I have already sent a pull-request for. > Pulled into next/defconfig, thanks! Arnd ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC Defconfig Updates for v4.2 @ 2015-05-29 14:25 ` Arnd Bergmann 0 siblings, 0 replies; 776+ messages in thread From: Arnd Bergmann @ 2015-05-29 14:25 UTC (permalink / raw) To: linux-arm-kernel On Friday 29 May 2015 09:53:56 Simon Horman wrote: > This pull request is based on the previous round of > such requests, tagged as renesas-defconfig-for-v4.2, > which I have already sent a pull-request for. > Pulled into next/defconfig, thanks! Arnd ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC DT Updates for v4.2 @ 2015-05-29 0:54 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-05-29 0:54 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Hi Kevin, Hi Arnd, Please consider these second round of Renesas ARM based SoC DT updates for v4.2. This pull request is based on the previous round of such requests, tagged as renesas-dt-for-v4.2, which I have already sent a pull-request for. The change from using "nor-jedec" instead of "jedec,spi-nor" should be safe as the usage of "nor-jedec" was added earlier in the v4.2 release cycle and thus has not been present in a release. The following changes since commit 7706993e2deb75022dbcfc3043890aa1a0020189: ARM: shmobile: r8a7791: Enable DMA for HSUSB (2015-05-12 08:55:16 +0900) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-dt2-for-v4.2 for you to fetch changes up to acea43fcb02746e907725c6dbd2eb95b32d79ea5: ARM: shmobile: r8a7790 dtsi: Describe DMA for the serial ports (2015-05-26 10:02:43 +0900) ---------------------------------------------------------------- Second Round of Renesas ARM Based SoC DT Updates for v4.2 * Describe DMA for the serial ports of R-Car Gen2 SoCs * Add MMCIF max-frequency to R-Car Gen2 SoCs * Use "nor-jedec" instead of "jedec,spi-nor" ---------------------------------------------------------------- Geert Uytterhoeven (8): ARM: shmobile: lager dts: Replace "nor-jedec" by "jedec,spi-nor" ARM: shmobile: koelsch dts: Replace "nor-jedec" by "jedec,spi-nor" ARM: shmobile: bockw-reference dts: Replace "nor-jedec" by "jedec,spi-nor" ARM: shmobile: henninger dts: Replace "nor-jedec" by "jedec,spi-nor" ARM: shmobile: bockw dts: Replace "nor-jedec" by "jedec,spi-nor" ARM: shmobile: r8a7794 dtsi: Describe DMA for the serial ports ARM: shmobile: r8a7791 dtsi: Describe DMA for the serial ports ARM: shmobile: r8a7790 dtsi: Describe DMA for the serial ports Kuninori Morimoto (2): ARM: shmobile: r8a7790: add MMCIF max-frequency ARM: shmobile: r8a7791: add MMCIF max-frequency arch/arm/boot/dts/r8a7778-bockw-reference.dts | 2 +- arch/arm/boot/dts/r8a7778-bockw.dts | 2 +- arch/arm/boot/dts/r8a7790-lager.dts | 2 +- arch/arm/boot/dts/r8a7790.dtsi | 22 ++++++++++++++++ arch/arm/boot/dts/r8a7791-henninger.dts | 2 +- arch/arm/boot/dts/r8a7791-koelsch.dts | 2 +- arch/arm/boot/dts/r8a7791.dtsi | 37 +++++++++++++++++++++++++++ arch/arm/boot/dts/r8a7794.dtsi | 36 ++++++++++++++++++++++++++ 8 files changed, 100 insertions(+), 5 deletions(-) ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC DT Updates for v4.2 @ 2015-05-29 0:54 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-05-29 0:54 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Hi Kevin, Hi Arnd, Please consider these second round of Renesas ARM based SoC DT updates for v4.2. This pull request is based on the previous round of such requests, tagged as renesas-dt-for-v4.2, which I have already sent a pull-request for. The change from using "nor-jedec" instead of "jedec,spi-nor" should be safe as the usage of "nor-jedec" was added earlier in the v4.2 release cycle and thus has not been present in a release. The following changes since commit 7706993e2deb75022dbcfc3043890aa1a0020189: ARM: shmobile: r8a7791: Enable DMA for HSUSB (2015-05-12 08:55:16 +0900) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-dt2-for-v4.2 for you to fetch changes up to acea43fcb02746e907725c6dbd2eb95b32d79ea5: ARM: shmobile: r8a7790 dtsi: Describe DMA for the serial ports (2015-05-26 10:02:43 +0900) ---------------------------------------------------------------- Second Round of Renesas ARM Based SoC DT Updates for v4.2 * Describe DMA for the serial ports of R-Car Gen2 SoCs * Add MMCIF max-frequency to R-Car Gen2 SoCs * Use "nor-jedec" instead of "jedec,spi-nor" ---------------------------------------------------------------- Geert Uytterhoeven (8): ARM: shmobile: lager dts: Replace "nor-jedec" by "jedec,spi-nor" ARM: shmobile: koelsch dts: Replace "nor-jedec" by "jedec,spi-nor" ARM: shmobile: bockw-reference dts: Replace "nor-jedec" by "jedec,spi-nor" ARM: shmobile: henninger dts: Replace "nor-jedec" by "jedec,spi-nor" ARM: shmobile: bockw dts: Replace "nor-jedec" by "jedec,spi-nor" ARM: shmobile: r8a7794 dtsi: Describe DMA for the serial ports ARM: shmobile: r8a7791 dtsi: Describe DMA for the serial ports ARM: shmobile: r8a7790 dtsi: Describe DMA for the serial ports Kuninori Morimoto (2): ARM: shmobile: r8a7790: add MMCIF max-frequency ARM: shmobile: r8a7791: add MMCIF max-frequency arch/arm/boot/dts/r8a7778-bockw-reference.dts | 2 +- arch/arm/boot/dts/r8a7778-bockw.dts | 2 +- arch/arm/boot/dts/r8a7790-lager.dts | 2 +- arch/arm/boot/dts/r8a7790.dtsi | 22 ++++++++++++++++ arch/arm/boot/dts/r8a7791-henninger.dts | 2 +- arch/arm/boot/dts/r8a7791-koelsch.dts | 2 +- arch/arm/boot/dts/r8a7791.dtsi | 37 +++++++++++++++++++++++++++ arch/arm/boot/dts/r8a7794.dtsi | 36 ++++++++++++++++++++++++++ 8 files changed, 100 insertions(+), 5 deletions(-) ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH 01/10] ARM: shmobile: lager dts: Replace "nor-jedec" by "jedec,spi-nor" 2015-05-29 0:54 ` Simon Horman @ 2015-05-29 0:54 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-05-29 0:54 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> Cfr. commit 8947e396a8296c52 ('Documentation: dt: mtd: replace "nor-jedec" binding with "jedec, spi-nor"') Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Acked-by: Brian Norris <computersforpeace@gmail.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7790-lager.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/r8a7790-lager.dts b/arch/arm/boot/dts/r8a7790-lager.dts index b6cffcedd116..2eb8a995ae9f 100644 --- a/arch/arm/boot/dts/r8a7790-lager.dts +++ b/arch/arm/boot/dts/r8a7790-lager.dts @@ -429,7 +429,7 @@ flash: flash@0 { #address-cells = <1>; #size-cells = <1>; - compatible = "spansion,s25fl512s", "nor-jedec"; + compatible = "spansion,s25fl512s", "jedec,spi-nor"; reg = <0>; spi-max-frequency = <30000000>; spi-tx-bus-width = <4>; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 01/10] ARM: shmobile: lager dts: Replace "nor-jedec" by "jedec, spi-nor" @ 2015-05-29 0:54 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-05-29 0:54 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> Cfr. commit 8947e396a8296c52 ('Documentation: dt: mtd: replace "nor-jedec" binding with "jedec, spi-nor"') Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Acked-by: Brian Norris <computersforpeace@gmail.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7790-lager.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/r8a7790-lager.dts b/arch/arm/boot/dts/r8a7790-lager.dts index b6cffcedd116..2eb8a995ae9f 100644 --- a/arch/arm/boot/dts/r8a7790-lager.dts +++ b/arch/arm/boot/dts/r8a7790-lager.dts @@ -429,7 +429,7 @@ flash: flash at 0 { #address-cells = <1>; #size-cells = <1>; - compatible = "spansion,s25fl512s", "nor-jedec"; + compatible = "spansion,s25fl512s", "jedec,spi-nor"; reg = <0>; spi-max-frequency = <30000000>; spi-tx-bus-width = <4>; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 02/10] ARM: shmobile: koelsch dts: Replace "nor-jedec" by "jedec,spi-nor" 2015-05-29 0:54 ` Simon Horman @ 2015-05-29 0:54 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-05-29 0:54 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> Cfr. commit 8947e396a8296c52 ('Documentation: dt: mtd: replace "nor-jedec" binding with "jedec, spi-nor"') Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Acked-by: Brian Norris <computersforpeace@gmail.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791-koelsch.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/r8a7791-koelsch.dts b/arch/arm/boot/dts/r8a7791-koelsch.dts index 9cb8a6c8e3f1..f8cd86b9d27f 100644 --- a/arch/arm/boot/dts/r8a7791-koelsch.dts +++ b/arch/arm/boot/dts/r8a7791-koelsch.dts @@ -474,7 +474,7 @@ flash: flash@0 { #address-cells = <1>; #size-cells = <1>; - compatible = "spansion,s25fl512s", "nor-jedec"; + compatible = "spansion,s25fl512s", "jedec,spi-nor"; reg = <0>; spi-max-frequency = <30000000>; spi-tx-bus-width = <4>; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 02/10] ARM: shmobile: koelsch dts: Replace "nor-jedec" by "jedec, spi-nor" @ 2015-05-29 0:54 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-05-29 0:54 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> Cfr. commit 8947e396a8296c52 ('Documentation: dt: mtd: replace "nor-jedec" binding with "jedec, spi-nor"') Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Acked-by: Brian Norris <computersforpeace@gmail.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791-koelsch.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/r8a7791-koelsch.dts b/arch/arm/boot/dts/r8a7791-koelsch.dts index 9cb8a6c8e3f1..f8cd86b9d27f 100644 --- a/arch/arm/boot/dts/r8a7791-koelsch.dts +++ b/arch/arm/boot/dts/r8a7791-koelsch.dts @@ -474,7 +474,7 @@ flash: flash at 0 { #address-cells = <1>; #size-cells = <1>; - compatible = "spansion,s25fl512s", "nor-jedec"; + compatible = "spansion,s25fl512s", "jedec,spi-nor"; reg = <0>; spi-max-frequency = <30000000>; spi-tx-bus-width = <4>; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 03/10] ARM: shmobile: bockw-reference dts: Replace "nor-jedec" by "jedec,spi-nor" 2015-05-29 0:54 ` Simon Horman @ 2015-05-29 0:54 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-05-29 0:54 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> Cfr. commit 8947e396a8296c52 ('Documentation: dt: mtd: replace "nor-jedec" binding with "jedec, spi-nor"') Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Acked-by: Brian Norris <computersforpeace@gmail.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7778-bockw-reference.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/r8a7778-bockw-reference.dts b/arch/arm/boot/dts/r8a7778-bockw-reference.dts index f9422d887b44..dffa6ff30360 100644 --- a/arch/arm/boot/dts/r8a7778-bockw-reference.dts +++ b/arch/arm/boot/dts/r8a7778-bockw-reference.dts @@ -119,7 +119,7 @@ flash: flash@0 { #address-cells = <1>; #size-cells = <1>; - compatible = "spansion,s25fl008k", "nor-jedec"; + compatible = "spansion,s25fl008k", "jedec,spi-nor"; reg = <0>; spi-max-frequency = <104000000>; m25p,fast-read; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 03/10] ARM: shmobile: bockw-reference dts: Replace "nor-jedec" by "jedec, spi-nor" @ 2015-05-29 0:54 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-05-29 0:54 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> Cfr. commit 8947e396a8296c52 ('Documentation: dt: mtd: replace "nor-jedec" binding with "jedec, spi-nor"') Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Acked-by: Brian Norris <computersforpeace@gmail.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7778-bockw-reference.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/r8a7778-bockw-reference.dts b/arch/arm/boot/dts/r8a7778-bockw-reference.dts index f9422d887b44..dffa6ff30360 100644 --- a/arch/arm/boot/dts/r8a7778-bockw-reference.dts +++ b/arch/arm/boot/dts/r8a7778-bockw-reference.dts @@ -119,7 +119,7 @@ flash: flash at 0 { #address-cells = <1>; #size-cells = <1>; - compatible = "spansion,s25fl008k", "nor-jedec"; + compatible = "spansion,s25fl008k", "jedec,spi-nor"; reg = <0>; spi-max-frequency = <104000000>; m25p,fast-read; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 04/10] ARM: shmobile: henninger dts: Replace "nor-jedec" by "jedec,spi-nor" 2015-05-29 0:54 ` Simon Horman @ 2015-05-29 0:54 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-05-29 0:54 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> Cfr. commit 8947e396a8296c52 ('Documentation: dt: mtd: replace "nor-jedec" binding with "jedec, spi-nor"') Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Acked-by: Brian Norris <computersforpeace@gmail.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791-henninger.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/r8a7791-henninger.dts b/arch/arm/boot/dts/r8a7791-henninger.dts index bb80122b4113..655d1804e5e9 100644 --- a/arch/arm/boot/dts/r8a7791-henninger.dts +++ b/arch/arm/boot/dts/r8a7791-henninger.dts @@ -226,7 +226,7 @@ flash@0 { #address-cells = <1>; #size-cells = <1>; - compatible = "spansion,s25fl512s", "nor-jedec"; + compatible = "spansion,s25fl512s", "jedec,spi-nor"; reg = <0>; spi-max-frequency = <30000000>; spi-tx-bus-width = <4>; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 04/10] ARM: shmobile: henninger dts: Replace "nor-jedec" by "jedec, spi-nor" @ 2015-05-29 0:54 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-05-29 0:54 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> Cfr. commit 8947e396a8296c52 ('Documentation: dt: mtd: replace "nor-jedec" binding with "jedec, spi-nor"') Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Acked-by: Brian Norris <computersforpeace@gmail.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791-henninger.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/r8a7791-henninger.dts b/arch/arm/boot/dts/r8a7791-henninger.dts index bb80122b4113..655d1804e5e9 100644 --- a/arch/arm/boot/dts/r8a7791-henninger.dts +++ b/arch/arm/boot/dts/r8a7791-henninger.dts @@ -226,7 +226,7 @@ flash at 0 { #address-cells = <1>; #size-cells = <1>; - compatible = "spansion,s25fl512s", "nor-jedec"; + compatible = "spansion,s25fl512s", "jedec,spi-nor"; reg = <0>; spi-max-frequency = <30000000>; spi-tx-bus-width = <4>; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 05/10] ARM: shmobile: bockw dts: Replace "nor-jedec" by "jedec,spi-nor" 2015-05-29 0:54 ` Simon Horman @ 2015-05-29 0:54 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-05-29 0:54 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> Cfr. commit 8947e396a8296c52 ('Documentation: dt: mtd: replace "nor-jedec" binding with "jedec, spi-nor"') Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Acked-by: Brian Norris <computersforpeace@gmail.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7778-bockw.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/r8a7778-bockw.dts b/arch/arm/boot/dts/r8a7778-bockw.dts index dfbb12e4fef4..90543b12d7e2 100644 --- a/arch/arm/boot/dts/r8a7778-bockw.dts +++ b/arch/arm/boot/dts/r8a7778-bockw.dts @@ -186,7 +186,7 @@ flash: flash@0 { #address-cells = <1>; #size-cells = <1>; - compatible = "spansion,s25fl008k", "nor-jedec"; + compatible = "spansion,s25fl008k", "jedec,spi-nor"; reg = <0>; spi-max-frequency = <104000000>; m25p,fast-read; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 05/10] ARM: shmobile: bockw dts: Replace "nor-jedec" by "jedec, spi-nor" @ 2015-05-29 0:54 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-05-29 0:54 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> Cfr. commit 8947e396a8296c52 ('Documentation: dt: mtd: replace "nor-jedec" binding with "jedec, spi-nor"') Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Acked-by: Brian Norris <computersforpeace@gmail.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7778-bockw.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/r8a7778-bockw.dts b/arch/arm/boot/dts/r8a7778-bockw.dts index dfbb12e4fef4..90543b12d7e2 100644 --- a/arch/arm/boot/dts/r8a7778-bockw.dts +++ b/arch/arm/boot/dts/r8a7778-bockw.dts @@ -186,7 +186,7 @@ flash: flash at 0 { #address-cells = <1>; #size-cells = <1>; - compatible = "spansion,s25fl008k", "nor-jedec"; + compatible = "spansion,s25fl008k", "jedec,spi-nor"; reg = <0>; spi-max-frequency = <104000000>; m25p,fast-read; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 06/10] ARM: shmobile: r8a7790: add MMCIF max-frequency 2015-05-29 0:54 ` Simon Horman @ 2015-05-29 0:54 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-05-29 0:54 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Tested-by: Keita Kobayashi <keita.kobayashi.ym@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7790.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/r8a7790.dtsi b/arch/arm/boot/dts/r8a7790.dtsi index 62a9086b133d..70248df02342 100644 --- a/arch/arm/boot/dts/r8a7790.dtsi +++ b/arch/arm/boot/dts/r8a7790.dtsi @@ -490,6 +490,7 @@ dma-names = "tx", "rx"; reg-io-width = <4>; status = "disabled"; + max-frequency = <97500000>; }; mmcif1: mmc@ee220000 { @@ -501,6 +502,7 @@ dma-names = "tx", "rx"; reg-io-width = <4>; status = "disabled"; + max-frequency = <97500000>; }; pfc: pfc@e6060000 { -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 06/10] ARM: shmobile: r8a7790: add MMCIF max-frequency @ 2015-05-29 0:54 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-05-29 0:54 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Tested-by: Keita Kobayashi <keita.kobayashi.ym@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7790.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/r8a7790.dtsi b/arch/arm/boot/dts/r8a7790.dtsi index 62a9086b133d..70248df02342 100644 --- a/arch/arm/boot/dts/r8a7790.dtsi +++ b/arch/arm/boot/dts/r8a7790.dtsi @@ -490,6 +490,7 @@ dma-names = "tx", "rx"; reg-io-width = <4>; status = "disabled"; + max-frequency = <97500000>; }; mmcif1: mmc at ee220000 { @@ -501,6 +502,7 @@ dma-names = "tx", "rx"; reg-io-width = <4>; status = "disabled"; + max-frequency = <97500000>; }; pfc: pfc at e6060000 { -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 07/10] ARM: shmobile: r8a7791: add MMCIF max-frequency 2015-05-29 0:54 ` Simon Horman @ 2015-05-29 0:54 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-05-29 0:54 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/r8a7791.dtsi b/arch/arm/boot/dts/r8a7791.dtsi index 7613abea13d7..bbef666596e5 100644 --- a/arch/arm/boot/dts/r8a7791.dtsi +++ b/arch/arm/boot/dts/r8a7791.dtsi @@ -494,6 +494,7 @@ dma-names = "tx", "rx"; reg-io-width = <4>; status = "disabled"; + max-frequency = <97500000>; }; sdhi0: sd@ee100000 { -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 07/10] ARM: shmobile: r8a7791: add MMCIF max-frequency @ 2015-05-29 0:54 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-05-29 0:54 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/r8a7791.dtsi b/arch/arm/boot/dts/r8a7791.dtsi index 7613abea13d7..bbef666596e5 100644 --- a/arch/arm/boot/dts/r8a7791.dtsi +++ b/arch/arm/boot/dts/r8a7791.dtsi @@ -494,6 +494,7 @@ dma-names = "tx", "rx"; reg-io-width = <4>; status = "disabled"; + max-frequency = <97500000>; }; sdhi0: sd at ee100000 { -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 08/10] ARM: shmobile: r8a7794 dtsi: Describe DMA for the serial ports 2015-05-29 0:54 ` Simon Horman @ 2015-05-29 0:54 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-05-29 0:54 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> Add DMA properties to all SCIF, SCIFA, SCIFB, and HSCIF device nodes. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7794.dtsi | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/arch/arm/boot/dts/r8a7794.dtsi b/arch/arm/boot/dts/r8a7794.dtsi index 01cf54f70501..b73819423311 100644 --- a/arch/arm/boot/dts/r8a7794.dtsi +++ b/arch/arm/boot/dts/r8a7794.dtsi @@ -174,6 +174,8 @@ interrupts = <0 144 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp2_clks R8A7794_CLK_SCIFA0>; clock-names = "sci_ick"; + dmas = <&dmac0 0x21>, <&dmac0 0x22>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -183,6 +185,8 @@ interrupts = <0 145 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp2_clks R8A7794_CLK_SCIFA1>; clock-names = "sci_ick"; + dmas = <&dmac0 0x25>, <&dmac0 0x26>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -192,6 +196,8 @@ interrupts = <0 151 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp2_clks R8A7794_CLK_SCIFA2>; clock-names = "sci_ick"; + dmas = <&dmac0 0x27>, <&dmac0 0x28>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -201,6 +207,8 @@ interrupts = <0 29 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp11_clks R8A7794_CLK_SCIFA3>; clock-names = "sci_ick"; + dmas = <&dmac0 0x1b>, <&dmac0 0x1c>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -210,6 +218,8 @@ interrupts = <0 30 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp11_clks R8A7794_CLK_SCIFA4>; clock-names = "sci_ick"; + dmas = <&dmac0 0x1f>, <&dmac0 0x20>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -219,6 +229,8 @@ interrupts = <0 31 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp11_clks R8A7794_CLK_SCIFA5>; clock-names = "sci_ick"; + dmas = <&dmac0 0x23>, <&dmac0 0x24>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -228,6 +240,8 @@ interrupts = <0 148 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp2_clks R8A7794_CLK_SCIFB0>; clock-names = "sci_ick"; + dmas = <&dmac0 0x3d>, <&dmac0 0x3e>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -237,6 +251,8 @@ interrupts = <0 149 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp2_clks R8A7794_CLK_SCIFB1>; clock-names = "sci_ick"; + dmas = <&dmac0 0x19>, <&dmac0 0x1a>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -246,6 +262,8 @@ interrupts = <0 150 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp2_clks R8A7794_CLK_SCIFB2>; clock-names = "sci_ick"; + dmas = <&dmac0 0x1d>, <&dmac0 0x1e>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -255,6 +273,8 @@ interrupts = <0 152 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp7_clks R8A7794_CLK_SCIF0>; clock-names = "sci_ick"; + dmas = <&dmac0 0x29>, <&dmac0 0x2a>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -264,6 +284,8 @@ interrupts = <0 153 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp7_clks R8A7794_CLK_SCIF1>; clock-names = "sci_ick"; + dmas = <&dmac0 0x2d>, <&dmac0 0x2e>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -273,6 +295,8 @@ interrupts = <0 22 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp7_clks R8A7794_CLK_SCIF2>; clock-names = "sci_ick"; + dmas = <&dmac0 0x2b>, <&dmac0 0x2c>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -282,6 +306,8 @@ interrupts = <0 23 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp7_clks R8A7794_CLK_SCIF3>; clock-names = "sci_ick"; + dmas = <&dmac0 0x2f>, <&dmac0 0x30>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -291,6 +317,8 @@ interrupts = <0 24 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp7_clks R8A7794_CLK_SCIF4>; clock-names = "sci_ick"; + dmas = <&dmac0 0xfb>, <&dmac0 0xfc>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -300,6 +328,8 @@ interrupts = <0 25 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp7_clks R8A7794_CLK_SCIF5>; clock-names = "sci_ick"; + dmas = <&dmac0 0xfd>, <&dmac0 0xfe>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -309,6 +339,8 @@ interrupts = <0 154 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp7_clks R8A7794_CLK_HSCIF0>; clock-names = "sci_ick"; + dmas = <&dmac0 0x39>, <&dmac0 0x3a>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -318,6 +350,8 @@ interrupts = <0 155 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp7_clks R8A7794_CLK_HSCIF1>; clock-names = "sci_ick"; + dmas = <&dmac0 0x4d>, <&dmac0 0x4e>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -327,6 +361,8 @@ interrupts = <0 21 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp7_clks R8A7794_CLK_HSCIF2>; clock-names = "sci_ick"; + dmas = <&dmac0 0x3b>, <&dmac0 0x3c>; + dma-names = "tx", "rx"; status = "disabled"; }; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 08/10] ARM: shmobile: r8a7794 dtsi: Describe DMA for the serial ports @ 2015-05-29 0:54 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-05-29 0:54 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> Add DMA properties to all SCIF, SCIFA, SCIFB, and HSCIF device nodes. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7794.dtsi | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/arch/arm/boot/dts/r8a7794.dtsi b/arch/arm/boot/dts/r8a7794.dtsi index 01cf54f70501..b73819423311 100644 --- a/arch/arm/boot/dts/r8a7794.dtsi +++ b/arch/arm/boot/dts/r8a7794.dtsi @@ -174,6 +174,8 @@ interrupts = <0 144 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp2_clks R8A7794_CLK_SCIFA0>; clock-names = "sci_ick"; + dmas = <&dmac0 0x21>, <&dmac0 0x22>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -183,6 +185,8 @@ interrupts = <0 145 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp2_clks R8A7794_CLK_SCIFA1>; clock-names = "sci_ick"; + dmas = <&dmac0 0x25>, <&dmac0 0x26>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -192,6 +196,8 @@ interrupts = <0 151 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp2_clks R8A7794_CLK_SCIFA2>; clock-names = "sci_ick"; + dmas = <&dmac0 0x27>, <&dmac0 0x28>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -201,6 +207,8 @@ interrupts = <0 29 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp11_clks R8A7794_CLK_SCIFA3>; clock-names = "sci_ick"; + dmas = <&dmac0 0x1b>, <&dmac0 0x1c>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -210,6 +218,8 @@ interrupts = <0 30 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp11_clks R8A7794_CLK_SCIFA4>; clock-names = "sci_ick"; + dmas = <&dmac0 0x1f>, <&dmac0 0x20>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -219,6 +229,8 @@ interrupts = <0 31 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp11_clks R8A7794_CLK_SCIFA5>; clock-names = "sci_ick"; + dmas = <&dmac0 0x23>, <&dmac0 0x24>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -228,6 +240,8 @@ interrupts = <0 148 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp2_clks R8A7794_CLK_SCIFB0>; clock-names = "sci_ick"; + dmas = <&dmac0 0x3d>, <&dmac0 0x3e>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -237,6 +251,8 @@ interrupts = <0 149 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp2_clks R8A7794_CLK_SCIFB1>; clock-names = "sci_ick"; + dmas = <&dmac0 0x19>, <&dmac0 0x1a>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -246,6 +262,8 @@ interrupts = <0 150 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp2_clks R8A7794_CLK_SCIFB2>; clock-names = "sci_ick"; + dmas = <&dmac0 0x1d>, <&dmac0 0x1e>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -255,6 +273,8 @@ interrupts = <0 152 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp7_clks R8A7794_CLK_SCIF0>; clock-names = "sci_ick"; + dmas = <&dmac0 0x29>, <&dmac0 0x2a>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -264,6 +284,8 @@ interrupts = <0 153 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp7_clks R8A7794_CLK_SCIF1>; clock-names = "sci_ick"; + dmas = <&dmac0 0x2d>, <&dmac0 0x2e>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -273,6 +295,8 @@ interrupts = <0 22 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp7_clks R8A7794_CLK_SCIF2>; clock-names = "sci_ick"; + dmas = <&dmac0 0x2b>, <&dmac0 0x2c>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -282,6 +306,8 @@ interrupts = <0 23 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp7_clks R8A7794_CLK_SCIF3>; clock-names = "sci_ick"; + dmas = <&dmac0 0x2f>, <&dmac0 0x30>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -291,6 +317,8 @@ interrupts = <0 24 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp7_clks R8A7794_CLK_SCIF4>; clock-names = "sci_ick"; + dmas = <&dmac0 0xfb>, <&dmac0 0xfc>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -300,6 +328,8 @@ interrupts = <0 25 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp7_clks R8A7794_CLK_SCIF5>; clock-names = "sci_ick"; + dmas = <&dmac0 0xfd>, <&dmac0 0xfe>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -309,6 +339,8 @@ interrupts = <0 154 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp7_clks R8A7794_CLK_HSCIF0>; clock-names = "sci_ick"; + dmas = <&dmac0 0x39>, <&dmac0 0x3a>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -318,6 +350,8 @@ interrupts = <0 155 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp7_clks R8A7794_CLK_HSCIF1>; clock-names = "sci_ick"; + dmas = <&dmac0 0x4d>, <&dmac0 0x4e>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -327,6 +361,8 @@ interrupts = <0 21 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp7_clks R8A7794_CLK_HSCIF2>; clock-names = "sci_ick"; + dmas = <&dmac0 0x3b>, <&dmac0 0x3c>; + dma-names = "tx", "rx"; status = "disabled"; }; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 09/10] ARM: shmobile: r8a7791 dtsi: Describe DMA for the serial ports 2015-05-29 0:54 ` Simon Horman @ 2015-05-29 0:54 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-05-29 0:54 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> Add DMA properties to all SCIF, SCIFA, SCIFB, and HSCIF device nodes. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791.dtsi | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/arch/arm/boot/dts/r8a7791.dtsi b/arch/arm/boot/dts/r8a7791.dtsi index bbef666596e5..dc1cd3f16606 100644 --- a/arch/arm/boot/dts/r8a7791.dtsi +++ b/arch/arm/boot/dts/r8a7791.dtsi @@ -533,6 +533,8 @@ interrupts = <0 144 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp2_clks R8A7791_CLK_SCIFA0>; clock-names = "sci_ick"; + dmas = <&dmac0 0x21>, <&dmac0 0x22>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -542,6 +544,8 @@ interrupts = <0 145 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp2_clks R8A7791_CLK_SCIFA1>; clock-names = "sci_ick"; + dmas = <&dmac0 0x25>, <&dmac0 0x26>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -551,6 +555,8 @@ interrupts = <0 151 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp2_clks R8A7791_CLK_SCIFA2>; clock-names = "sci_ick"; + dmas = <&dmac0 0x27>, <&dmac0 0x28>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -560,6 +566,8 @@ interrupts = <0 29 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp11_clks R8A7791_CLK_SCIFA3>; clock-names = "sci_ick"; + dmas = <&dmac0 0x1b>, <&dmac0 0x1c>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -569,6 +577,8 @@ interrupts = <0 30 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp11_clks R8A7791_CLK_SCIFA4>; clock-names = "sci_ick"; + dmas = <&dmac0 0x1f>, <&dmac0 0x20>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -578,6 +588,8 @@ interrupts = <0 31 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp11_clks R8A7791_CLK_SCIFA5>; clock-names = "sci_ick"; + dmas = <&dmac0 0x23>, <&dmac0 0x24>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -587,6 +599,8 @@ interrupts = <0 148 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp2_clks R8A7791_CLK_SCIFB0>; clock-names = "sci_ick"; + dmas = <&dmac0 0x3d>, <&dmac0 0x3e>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -596,6 +610,8 @@ interrupts = <0 149 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp2_clks R8A7791_CLK_SCIFB1>; clock-names = "sci_ick"; + dmas = <&dmac0 0x19>, <&dmac0 0x1a>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -605,6 +621,8 @@ interrupts = <0 150 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp2_clks R8A7791_CLK_SCIFB2>; clock-names = "sci_ick"; + dmas = <&dmac0 0x1d>, <&dmac0 0x1e>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -614,6 +632,8 @@ interrupts = <0 152 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp7_clks R8A7791_CLK_SCIF0>; clock-names = "sci_ick"; + dmas = <&dmac0 0x29>, <&dmac0 0x2a>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -623,6 +643,8 @@ interrupts = <0 153 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp7_clks R8A7791_CLK_SCIF1>; clock-names = "sci_ick"; + dmas = <&dmac0 0x2d>, <&dmac0 0x2e>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -632,6 +654,8 @@ interrupts = <0 22 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp7_clks R8A7791_CLK_SCIF2>; clock-names = "sci_ick"; + dmas = <&dmac0 0x2b>, <&dmac0 0x2c>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -641,6 +665,8 @@ interrupts = <0 23 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp7_clks R8A7791_CLK_SCIF3>; clock-names = "sci_ick"; + dmas = <&dmac0 0x2f>, <&dmac0 0x30>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -650,6 +676,8 @@ interrupts = <0 24 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp7_clks R8A7791_CLK_SCIF4>; clock-names = "sci_ick"; + dmas = <&dmac0 0xfb>, <&dmac0 0xfc>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -659,6 +687,8 @@ interrupts = <0 25 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp7_clks R8A7791_CLK_SCIF5>; clock-names = "sci_ick"; + dmas = <&dmac0 0xfd>, <&dmac0 0xfe>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -668,6 +698,8 @@ interrupts = <0 154 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp7_clks R8A7791_CLK_HSCIF0>; clock-names = "sci_ick"; + dmas = <&dmac0 0x39>, <&dmac0 0x3a>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -677,6 +709,8 @@ interrupts = <0 155 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp7_clks R8A7791_CLK_HSCIF1>; clock-names = "sci_ick"; + dmas = <&dmac0 0x4d>, <&dmac0 0x4e>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -686,6 +720,8 @@ interrupts = <0 21 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp7_clks R8A7791_CLK_HSCIF2>; clock-names = "sci_ick"; + dmas = <&dmac0 0x3b>, <&dmac0 0x3c>; + dma-names = "tx", "rx"; status = "disabled"; }; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 09/10] ARM: shmobile: r8a7791 dtsi: Describe DMA for the serial ports @ 2015-05-29 0:54 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-05-29 0:54 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> Add DMA properties to all SCIF, SCIFA, SCIFB, and HSCIF device nodes. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791.dtsi | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/arch/arm/boot/dts/r8a7791.dtsi b/arch/arm/boot/dts/r8a7791.dtsi index bbef666596e5..dc1cd3f16606 100644 --- a/arch/arm/boot/dts/r8a7791.dtsi +++ b/arch/arm/boot/dts/r8a7791.dtsi @@ -533,6 +533,8 @@ interrupts = <0 144 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp2_clks R8A7791_CLK_SCIFA0>; clock-names = "sci_ick"; + dmas = <&dmac0 0x21>, <&dmac0 0x22>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -542,6 +544,8 @@ interrupts = <0 145 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp2_clks R8A7791_CLK_SCIFA1>; clock-names = "sci_ick"; + dmas = <&dmac0 0x25>, <&dmac0 0x26>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -551,6 +555,8 @@ interrupts = <0 151 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp2_clks R8A7791_CLK_SCIFA2>; clock-names = "sci_ick"; + dmas = <&dmac0 0x27>, <&dmac0 0x28>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -560,6 +566,8 @@ interrupts = <0 29 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp11_clks R8A7791_CLK_SCIFA3>; clock-names = "sci_ick"; + dmas = <&dmac0 0x1b>, <&dmac0 0x1c>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -569,6 +577,8 @@ interrupts = <0 30 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp11_clks R8A7791_CLK_SCIFA4>; clock-names = "sci_ick"; + dmas = <&dmac0 0x1f>, <&dmac0 0x20>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -578,6 +588,8 @@ interrupts = <0 31 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp11_clks R8A7791_CLK_SCIFA5>; clock-names = "sci_ick"; + dmas = <&dmac0 0x23>, <&dmac0 0x24>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -587,6 +599,8 @@ interrupts = <0 148 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp2_clks R8A7791_CLK_SCIFB0>; clock-names = "sci_ick"; + dmas = <&dmac0 0x3d>, <&dmac0 0x3e>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -596,6 +610,8 @@ interrupts = <0 149 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp2_clks R8A7791_CLK_SCIFB1>; clock-names = "sci_ick"; + dmas = <&dmac0 0x19>, <&dmac0 0x1a>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -605,6 +621,8 @@ interrupts = <0 150 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp2_clks R8A7791_CLK_SCIFB2>; clock-names = "sci_ick"; + dmas = <&dmac0 0x1d>, <&dmac0 0x1e>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -614,6 +632,8 @@ interrupts = <0 152 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp7_clks R8A7791_CLK_SCIF0>; clock-names = "sci_ick"; + dmas = <&dmac0 0x29>, <&dmac0 0x2a>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -623,6 +643,8 @@ interrupts = <0 153 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp7_clks R8A7791_CLK_SCIF1>; clock-names = "sci_ick"; + dmas = <&dmac0 0x2d>, <&dmac0 0x2e>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -632,6 +654,8 @@ interrupts = <0 22 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp7_clks R8A7791_CLK_SCIF2>; clock-names = "sci_ick"; + dmas = <&dmac0 0x2b>, <&dmac0 0x2c>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -641,6 +665,8 @@ interrupts = <0 23 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp7_clks R8A7791_CLK_SCIF3>; clock-names = "sci_ick"; + dmas = <&dmac0 0x2f>, <&dmac0 0x30>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -650,6 +676,8 @@ interrupts = <0 24 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp7_clks R8A7791_CLK_SCIF4>; clock-names = "sci_ick"; + dmas = <&dmac0 0xfb>, <&dmac0 0xfc>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -659,6 +687,8 @@ interrupts = <0 25 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp7_clks R8A7791_CLK_SCIF5>; clock-names = "sci_ick"; + dmas = <&dmac0 0xfd>, <&dmac0 0xfe>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -668,6 +698,8 @@ interrupts = <0 154 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp7_clks R8A7791_CLK_HSCIF0>; clock-names = "sci_ick"; + dmas = <&dmac0 0x39>, <&dmac0 0x3a>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -677,6 +709,8 @@ interrupts = <0 155 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp7_clks R8A7791_CLK_HSCIF1>; clock-names = "sci_ick"; + dmas = <&dmac0 0x4d>, <&dmac0 0x4e>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -686,6 +720,8 @@ interrupts = <0 21 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp7_clks R8A7791_CLK_HSCIF2>; clock-names = "sci_ick"; + dmas = <&dmac0 0x3b>, <&dmac0 0x3c>; + dma-names = "tx", "rx"; status = "disabled"; }; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 10/10] ARM: shmobile: r8a7790 dtsi: Describe DMA for the serial ports 2015-05-29 0:54 ` Simon Horman @ 2015-05-29 0:54 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-05-29 0:54 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> Add DMA properties to all SCIF, SCIFA, SCIFB, and HSCIF device nodes. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7790.dtsi | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/arch/arm/boot/dts/r8a7790.dtsi b/arch/arm/boot/dts/r8a7790.dtsi index 70248df02342..51ab8865ea37 100644 --- a/arch/arm/boot/dts/r8a7790.dtsi +++ b/arch/arm/boot/dts/r8a7790.dtsi @@ -556,6 +556,8 @@ interrupts = <0 144 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp2_clks R8A7790_CLK_SCIFA0>; clock-names = "sci_ick"; + dmas = <&dmac0 0x21>, <&dmac0 0x22>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -565,6 +567,8 @@ interrupts = <0 145 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp2_clks R8A7790_CLK_SCIFA1>; clock-names = "sci_ick"; + dmas = <&dmac0 0x25>, <&dmac0 0x26>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -574,6 +578,8 @@ interrupts = <0 151 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp2_clks R8A7790_CLK_SCIFA2>; clock-names = "sci_ick"; + dmas = <&dmac0 0x27>, <&dmac0 0x28>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -583,6 +589,8 @@ interrupts = <0 148 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp2_clks R8A7790_CLK_SCIFB0>; clock-names = "sci_ick"; + dmas = <&dmac0 0x3d>, <&dmac0 0x3e>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -592,6 +600,8 @@ interrupts = <0 149 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp2_clks R8A7790_CLK_SCIFB1>; clock-names = "sci_ick"; + dmas = <&dmac0 0x19>, <&dmac0 0x1a>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -601,6 +611,8 @@ interrupts = <0 150 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp2_clks R8A7790_CLK_SCIFB2>; clock-names = "sci_ick"; + dmas = <&dmac0 0x1d>, <&dmac0 0x1e>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -610,6 +622,8 @@ interrupts = <0 152 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp7_clks R8A7790_CLK_SCIF0>; clock-names = "sci_ick"; + dmas = <&dmac0 0x29>, <&dmac0 0x2a>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -619,6 +633,8 @@ interrupts = <0 153 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp7_clks R8A7790_CLK_SCIF1>; clock-names = "sci_ick"; + dmas = <&dmac0 0x2d>, <&dmac0 0x2e>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -628,6 +644,8 @@ interrupts = <0 154 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp7_clks R8A7790_CLK_HSCIF0>; clock-names = "sci_ick"; + dmas = <&dmac0 0x39>, <&dmac0 0x3a>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -637,6 +655,8 @@ interrupts = <0 155 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp7_clks R8A7790_CLK_HSCIF1>; clock-names = "sci_ick"; + dmas = <&dmac0 0x4d>, <&dmac0 0x4e>; + dma-names = "tx", "rx"; status = "disabled"; }; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 10/10] ARM: shmobile: r8a7790 dtsi: Describe DMA for the serial ports @ 2015-05-29 0:54 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-05-29 0:54 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> Add DMA properties to all SCIF, SCIFA, SCIFB, and HSCIF device nodes. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7790.dtsi | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/arch/arm/boot/dts/r8a7790.dtsi b/arch/arm/boot/dts/r8a7790.dtsi index 70248df02342..51ab8865ea37 100644 --- a/arch/arm/boot/dts/r8a7790.dtsi +++ b/arch/arm/boot/dts/r8a7790.dtsi @@ -556,6 +556,8 @@ interrupts = <0 144 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp2_clks R8A7790_CLK_SCIFA0>; clock-names = "sci_ick"; + dmas = <&dmac0 0x21>, <&dmac0 0x22>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -565,6 +567,8 @@ interrupts = <0 145 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp2_clks R8A7790_CLK_SCIFA1>; clock-names = "sci_ick"; + dmas = <&dmac0 0x25>, <&dmac0 0x26>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -574,6 +578,8 @@ interrupts = <0 151 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp2_clks R8A7790_CLK_SCIFA2>; clock-names = "sci_ick"; + dmas = <&dmac0 0x27>, <&dmac0 0x28>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -583,6 +589,8 @@ interrupts = <0 148 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp2_clks R8A7790_CLK_SCIFB0>; clock-names = "sci_ick"; + dmas = <&dmac0 0x3d>, <&dmac0 0x3e>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -592,6 +600,8 @@ interrupts = <0 149 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp2_clks R8A7790_CLK_SCIFB1>; clock-names = "sci_ick"; + dmas = <&dmac0 0x19>, <&dmac0 0x1a>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -601,6 +611,8 @@ interrupts = <0 150 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp2_clks R8A7790_CLK_SCIFB2>; clock-names = "sci_ick"; + dmas = <&dmac0 0x1d>, <&dmac0 0x1e>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -610,6 +622,8 @@ interrupts = <0 152 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp7_clks R8A7790_CLK_SCIF0>; clock-names = "sci_ick"; + dmas = <&dmac0 0x29>, <&dmac0 0x2a>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -619,6 +633,8 @@ interrupts = <0 153 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp7_clks R8A7790_CLK_SCIF1>; clock-names = "sci_ick"; + dmas = <&dmac0 0x2d>, <&dmac0 0x2e>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -628,6 +644,8 @@ interrupts = <0 154 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp7_clks R8A7790_CLK_HSCIF0>; clock-names = "sci_ick"; + dmas = <&dmac0 0x39>, <&dmac0 0x3a>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -637,6 +655,8 @@ interrupts = <0 155 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp7_clks R8A7790_CLK_HSCIF1>; clock-names = "sci_ick"; + dmas = <&dmac0 0x4d>, <&dmac0 0x4e>; + dma-names = "tx", "rx"; status = "disabled"; }; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* Re: [GIT PULL] Second Round of Renesas ARM Based SoC DT Updates for v4.2 2015-05-29 0:54 ` Simon Horman @ 2015-05-29 12:00 ` Arnd Bergmann -1 siblings, 0 replies; 776+ messages in thread From: Arnd Bergmann @ 2015-05-29 12:00 UTC (permalink / raw) To: linux-arm-kernel On Friday 29 May 2015 09:54:16 Simon Horman wrote: > This pull request is based on the previous round of > such requests, tagged as renesas-dt-for-v4.2, > which I have already sent a pull-request for. > > The change from using "nor-jedec" instead of "jedec,spi-nor" should > be safe as the usage of "nor-jedec" was added earlier in the v4.2 release > cycle and thus has not been present in a release. > > Pulled into next/dt, thanks! Arnd ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC DT Updates for v4.2 @ 2015-05-29 12:00 ` Arnd Bergmann 0 siblings, 0 replies; 776+ messages in thread From: Arnd Bergmann @ 2015-05-29 12:00 UTC (permalink / raw) To: linux-arm-kernel On Friday 29 May 2015 09:54:16 Simon Horman wrote: > This pull request is based on the previous round of > such requests, tagged as renesas-dt-for-v4.2, > which I have already sent a pull-request for. > > The change from using "nor-jedec" instead of "jedec,spi-nor" should > be safe as the usage of "nor-jedec" was added earlier in the v4.2 release > cycle and thus has not been present in a release. > > Pulled into next/dt, thanks! Arnd ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC Cleanup for v4.3 @ 2015-07-24 8:41 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-07-24 8:41 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Hi Kevin, Hi Arnd, Please consider these second round of Renesas ARM based SoC cleanup for v4.3. This pull request is based on the previous round of such requests, tagged as renesas-cleanup-for-v4.3, which I have already sent a pull-request for. The following changes since commit 20834a406ee20b57c796f9911f06600b71c75788: ARM: shmobile: timer: r8a73a4 and r8a7790 are multi-platform only (2015-07-06 09:29:46 +0900) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-cleanup2-for-v4.3 for you to fetch changes up to 151dd346a2dadaa151d5110553e3fb08774c888e: ARM: shmobile: apmu: silence build warnings (2015-07-14 16:35:24 +0900) ---------------------------------------------------------------- Second Round of Renesas ARM Based SoC Cleanup for v4.3 * Silence APMU build warnings ---------------------------------------------------------------- Wolfram Sang (1): ARM: shmobile: apmu: silence build warnings arch/arm/mach-shmobile/platsmp-apmu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC Cleanup for v4.3 @ 2015-07-24 8:41 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-07-24 8:41 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Hi Kevin, Hi Arnd, Please consider these second round of Renesas ARM based SoC cleanup for v4.3. This pull request is based on the previous round of such requests, tagged as renesas-cleanup-for-v4.3, which I have already sent a pull-request for. The following changes since commit 20834a406ee20b57c796f9911f06600b71c75788: ARM: shmobile: timer: r8a73a4 and r8a7790 are multi-platform only (2015-07-06 09:29:46 +0900) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-cleanup2-for-v4.3 for you to fetch changes up to 151dd346a2dadaa151d5110553e3fb08774c888e: ARM: shmobile: apmu: silence build warnings (2015-07-14 16:35:24 +0900) ---------------------------------------------------------------- Second Round of Renesas ARM Based SoC Cleanup for v4.3 * Silence APMU build warnings ---------------------------------------------------------------- Wolfram Sang (1): ARM: shmobile: apmu: silence build warnings arch/arm/mach-shmobile/platsmp-apmu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH] ARM: shmobile: apmu: silence build warnings 2015-07-24 8:41 ` Simon Horman @ 2015-07-24 8:41 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-07-24 8:41 UTC (permalink / raw) To: linux-arm-kernel From: Wolfram Sang <wsa+renesas@sang-engineering.com> With shmobile_defconfig but SMP=n && SUSPEND=n, I get: arch/arm/mach-shmobile/platsmp-apmu.c:49:12: warning: 'apmu_power_off' defined but not used [-Wunused-function] arch/arm/mach-shmobile/platsmp-apmu.c:70:12: warning: 'apmu_wrap' defined but not used [-Wunused-function] Annotate those functions like the functions around it. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/platsmp-apmu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-shmobile/platsmp-apmu.c b/arch/arm/mach-shmobile/platsmp-apmu.c index b0790fc32282..4e54512bee30 100644 --- a/arch/arm/mach-shmobile/platsmp-apmu.c +++ b/arch/arm/mach-shmobile/platsmp-apmu.c @@ -46,7 +46,7 @@ static int __maybe_unused apmu_power_on(void __iomem *p, int bit) return 0; } -static int apmu_power_off(void __iomem *p, int bit) +static int __maybe_unused apmu_power_off(void __iomem *p, int bit) { /* request Core Standby for next WFI */ writel_relaxed(3, p + CPUNCR_OFFS(bit)); @@ -67,7 +67,7 @@ static int __maybe_unused apmu_power_off_poll(void __iomem *p, int bit) return 0; } -static int apmu_wrap(int cpu, int (*fn)(void __iomem *p, int cpu)) +static int __maybe_unused apmu_wrap(int cpu, int (*fn)(void __iomem *p, int cpu)) { void __iomem *p = apmu_cpus[cpu].iomem; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH] ARM: shmobile: apmu: silence build warnings @ 2015-07-24 8:41 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-07-24 8:41 UTC (permalink / raw) To: linux-arm-kernel From: Wolfram Sang <wsa+renesas@sang-engineering.com> With shmobile_defconfig but SMP=n && SUSPEND=n, I get: arch/arm/mach-shmobile/platsmp-apmu.c:49:12: warning: 'apmu_power_off' defined but not used [-Wunused-function] arch/arm/mach-shmobile/platsmp-apmu.c:70:12: warning: 'apmu_wrap' defined but not used [-Wunused-function] Annotate those functions like the functions around it. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/platsmp-apmu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-shmobile/platsmp-apmu.c b/arch/arm/mach-shmobile/platsmp-apmu.c index b0790fc32282..4e54512bee30 100644 --- a/arch/arm/mach-shmobile/platsmp-apmu.c +++ b/arch/arm/mach-shmobile/platsmp-apmu.c @@ -46,7 +46,7 @@ static int __maybe_unused apmu_power_on(void __iomem *p, int bit) return 0; } -static int apmu_power_off(void __iomem *p, int bit) +static int __maybe_unused apmu_power_off(void __iomem *p, int bit) { /* request Core Standby for next WFI */ writel_relaxed(3, p + CPUNCR_OFFS(bit)); @@ -67,7 +67,7 @@ static int __maybe_unused apmu_power_off_poll(void __iomem *p, int bit) return 0; } -static int apmu_wrap(int cpu, int (*fn)(void __iomem *p, int cpu)) +static int __maybe_unused apmu_wrap(int cpu, int (*fn)(void __iomem *p, int cpu)) { void __iomem *p = apmu_cpus[cpu].iomem; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* Re: [GIT PULL] Second Round of Renesas ARM Based SoC Cleanup for v4.3 2015-07-24 8:41 ` Simon Horman @ 2015-07-27 12:27 ` Olof Johansson -1 siblings, 0 replies; 776+ messages in thread From: Olof Johansson @ 2015-07-27 12:27 UTC (permalink / raw) To: linux-arm-kernel On Fri, Jul 24, 2015 at 05:41:15PM +0900, Simon Horman wrote: > Hi Olof, Hi Kevin, Hi Arnd, > > Please consider these second round of Renesas ARM based SoC cleanup for v4.3. > > This pull request is based on the previous round of > such requests, tagged as renesas-cleanup-for-v4.3, > which I have already sent a pull-request for. > > > The following changes since commit 20834a406ee20b57c796f9911f06600b71c75788: > > ARM: shmobile: timer: r8a73a4 and r8a7790 are multi-platform only (2015-07-06 09:29:46 +0900) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-cleanup2-for-v4.3 > > for you to fetch changes up to 151dd346a2dadaa151d5110553e3fb08774c888e: > > ARM: shmobile: apmu: silence build warnings (2015-07-14 16:35:24 +0900) Thanks, merged. -Olof ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC Cleanup for v4.3 @ 2015-07-27 12:27 ` Olof Johansson 0 siblings, 0 replies; 776+ messages in thread From: Olof Johansson @ 2015-07-27 12:27 UTC (permalink / raw) To: linux-arm-kernel On Fri, Jul 24, 2015 at 05:41:15PM +0900, Simon Horman wrote: > Hi Olof, Hi Kevin, Hi Arnd, > > Please consider these second round of Renesas ARM based SoC cleanup for v4.3. > > This pull request is based on the previous round of > such requests, tagged as renesas-cleanup-for-v4.3, > which I have already sent a pull-request for. > > > The following changes since commit 20834a406ee20b57c796f9911f06600b71c75788: > > ARM: shmobile: timer: r8a73a4 and r8a7790 are multi-platform only (2015-07-06 09:29:46 +0900) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-cleanup2-for-v4.3 > > for you to fetch changes up to 151dd346a2dadaa151d5110553e3fb08774c888e: > > ARM: shmobile: apmu: silence build warnings (2015-07-14 16:35:24 +0900) Thanks, merged. -Olof ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC DT Updates for v4.3 @ 2015-07-24 8:41 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-07-24 8:41 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Hi Kevin, Hi Arnd, Please consider these second round of Renesas ARM based SoC DT updates for v4.3. This pull request is based on the previous round of such requests, tagged as renesas-dt-for-v4.3, which I have already sent a pull-request for. The following changes since commit 7bf46d0be278a3586c78322c65ceff5fd03bb95d: ARM: shmobile: r8a7779: Configure IRLM mode via DT (2015-07-06 09:33:41 +0900) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-dt2-for-v4.3 for you to fetch changes up to 7fd6e11dca09b21efbe2b9db4eff08c8f4a16125: ARM: shmobile: r8a7791: Add Audio MIX support on DTSI (2015-07-22 09:36:49 +0900) ---------------------------------------------------------------- Second Round of Renesas ARM Based SoC DT Updates for v4.3 * Add Audio MIX and CTU support to r8a779[01] SoCs * Correct IRQ sense for adv7511 on lager board * Add sound label to koelsch and lager boards * Add IIC support to emev2 SoC ---------------------------------------------------------------- Kuninori Morimoto (6): ARM: shmobile: lager: add sound label on DTS ARM: shmobile: koelsch: add sound label on DTS ARM: shmobile: r8a7790: Add Audio CTU support on DTSI ARM: shmobile: r8a7790: Add Audio MIX support on DTSI ARM: shmobile: r8a7791: Add Audio CTU support on DTSI ARM: shmobile: r8a7791: Add Audio MIX support on DTSI Laurent Pinchart (1): ARM: shmobile: lager: Fix adv7511 IRQ sensing Wolfram Sang (2): ARM: shmobile: emev2: add IIC cores to dtsi ARM: shmobile: emev2: kzm9d: enable IIC busses arch/arm/boot/dts/emev2-kzm9d.dts | 8 ++++++ arch/arm/boot/dts/emev2.dtsi | 48 +++++++++++++++++++++++++++++++ arch/arm/boot/dts/r8a7790-lager.dts | 4 +-- arch/arm/boot/dts/r8a7790.dtsi | 23 +++++++++++++++ arch/arm/boot/dts/r8a7791-koelsch.dts | 2 +- arch/arm/boot/dts/r8a7791.dtsi | 23 +++++++++++++++ include/dt-bindings/clock/r8a7790-clock.h | 2 ++ include/dt-bindings/clock/r8a7791-clock.h | 2 ++ 8 files changed, 109 insertions(+), 3 deletions(-) ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC DT Updates for v4.3 @ 2015-07-24 8:41 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-07-24 8:41 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Hi Kevin, Hi Arnd, Please consider these second round of Renesas ARM based SoC DT updates for v4.3. This pull request is based on the previous round of such requests, tagged as renesas-dt-for-v4.3, which I have already sent a pull-request for. The following changes since commit 7bf46d0be278a3586c78322c65ceff5fd03bb95d: ARM: shmobile: r8a7779: Configure IRLM mode via DT (2015-07-06 09:33:41 +0900) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-dt2-for-v4.3 for you to fetch changes up to 7fd6e11dca09b21efbe2b9db4eff08c8f4a16125: ARM: shmobile: r8a7791: Add Audio MIX support on DTSI (2015-07-22 09:36:49 +0900) ---------------------------------------------------------------- Second Round of Renesas ARM Based SoC DT Updates for v4.3 * Add Audio MIX and CTU support to r8a779[01] SoCs * Correct IRQ sense for adv7511 on lager board * Add sound label to koelsch and lager boards * Add IIC support to emev2 SoC ---------------------------------------------------------------- Kuninori Morimoto (6): ARM: shmobile: lager: add sound label on DTS ARM: shmobile: koelsch: add sound label on DTS ARM: shmobile: r8a7790: Add Audio CTU support on DTSI ARM: shmobile: r8a7790: Add Audio MIX support on DTSI ARM: shmobile: r8a7791: Add Audio CTU support on DTSI ARM: shmobile: r8a7791: Add Audio MIX support on DTSI Laurent Pinchart (1): ARM: shmobile: lager: Fix adv7511 IRQ sensing Wolfram Sang (2): ARM: shmobile: emev2: add IIC cores to dtsi ARM: shmobile: emev2: kzm9d: enable IIC busses arch/arm/boot/dts/emev2-kzm9d.dts | 8 ++++++ arch/arm/boot/dts/emev2.dtsi | 48 +++++++++++++++++++++++++++++++ arch/arm/boot/dts/r8a7790-lager.dts | 4 +-- arch/arm/boot/dts/r8a7790.dtsi | 23 +++++++++++++++ arch/arm/boot/dts/r8a7791-koelsch.dts | 2 +- arch/arm/boot/dts/r8a7791.dtsi | 23 +++++++++++++++ include/dt-bindings/clock/r8a7790-clock.h | 2 ++ include/dt-bindings/clock/r8a7791-clock.h | 2 ++ 8 files changed, 109 insertions(+), 3 deletions(-) ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH 1/9] ARM: shmobile: emev2: add IIC cores to dtsi 2015-07-24 8:41 ` Simon Horman @ 2015-07-24 8:41 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-07-24 8:41 UTC (permalink / raw) To: linux-arm-kernel From: Wolfram Sang <wsa+renesas@sang-engineering.com> Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/emev2.dtsi | 48 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/arch/arm/boot/dts/emev2.dtsi b/arch/arm/boot/dts/emev2.dtsi index bb45694d91bc..edad0c4eea35 100644 --- a/arch/arm/boot/dts/emev2.dtsi +++ b/arch/arm/boot/dts/emev2.dtsi @@ -21,6 +21,8 @@ gpio2 = &gpio2; gpio3 = &gpio3; gpio4 = &gpio4; + i2c0 = &iic0; + i2c1 = &iic1; }; cpus { @@ -66,6 +68,30 @@ clock-frequency = <32768>; #clock-cells = <0>; }; + iic0_sclkdiv: iic0_sclkdiv { + compatible = "renesas,emev2-smu-clkdiv"; + reg = <0x624 0>; + clocks = <&pll3_fo>; + #clock-cells = <0>; + }; + iic0_sclk: iic0_sclk { + compatible = "renesas,emev2-smu-gclk"; + reg = <0x48c 1>; + clocks = <&iic0_sclkdiv>; + #clock-cells = <0>; + }; + iic1_sclkdiv: iic1_sclkdiv { + compatible = "renesas,emev2-smu-clkdiv"; + reg = <0x624 16>; + clocks = <&pll3_fo>; + #clock-cells = <0>; + }; + iic1_sclk: iic1_sclk { + compatible = "renesas,emev2-smu-gclk"; + reg = <0x490 1>; + clocks = <&iic1_sclkdiv>; + #clock-cells = <0>; + }; pll3_fo: pll3_fo { compatible = "fixed-factor-clock"; clocks = <&c32ki>; @@ -234,4 +260,26 @@ interrupt-controller; #interrupt-cells = <2>; }; + + iic0: i2c@e0070000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "renesas,iic-emev2"; + reg = <0xe0070000 0x28>; + interrupts = <0 32 IRQ_TYPE_EDGE_RISING>; + clocks = <&iic0_sclk>; + clock-names = "sclk"; + status = "disabled"; + }; + + iic1: i2c@e10a0000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "renesas,iic-emev2"; + reg = <0xe10a0000 0x28>; + interrupts = <0 33 IRQ_TYPE_EDGE_RISING>; + clocks = <&iic1_sclk>; + clock-names = "sclk"; + status = "disabled"; + }; }; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 1/9] ARM: shmobile: emev2: add IIC cores to dtsi @ 2015-07-24 8:41 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-07-24 8:41 UTC (permalink / raw) To: linux-arm-kernel From: Wolfram Sang <wsa+renesas@sang-engineering.com> Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/emev2.dtsi | 48 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/arch/arm/boot/dts/emev2.dtsi b/arch/arm/boot/dts/emev2.dtsi index bb45694d91bc..edad0c4eea35 100644 --- a/arch/arm/boot/dts/emev2.dtsi +++ b/arch/arm/boot/dts/emev2.dtsi @@ -21,6 +21,8 @@ gpio2 = &gpio2; gpio3 = &gpio3; gpio4 = &gpio4; + i2c0 = &iic0; + i2c1 = &iic1; }; cpus { @@ -66,6 +68,30 @@ clock-frequency = <32768>; #clock-cells = <0>; }; + iic0_sclkdiv: iic0_sclkdiv { + compatible = "renesas,emev2-smu-clkdiv"; + reg = <0x624 0>; + clocks = <&pll3_fo>; + #clock-cells = <0>; + }; + iic0_sclk: iic0_sclk { + compatible = "renesas,emev2-smu-gclk"; + reg = <0x48c 1>; + clocks = <&iic0_sclkdiv>; + #clock-cells = <0>; + }; + iic1_sclkdiv: iic1_sclkdiv { + compatible = "renesas,emev2-smu-clkdiv"; + reg = <0x624 16>; + clocks = <&pll3_fo>; + #clock-cells = <0>; + }; + iic1_sclk: iic1_sclk { + compatible = "renesas,emev2-smu-gclk"; + reg = <0x490 1>; + clocks = <&iic1_sclkdiv>; + #clock-cells = <0>; + }; pll3_fo: pll3_fo { compatible = "fixed-factor-clock"; clocks = <&c32ki>; @@ -234,4 +260,26 @@ interrupt-controller; #interrupt-cells = <2>; }; + + iic0: i2c at e0070000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "renesas,iic-emev2"; + reg = <0xe0070000 0x28>; + interrupts = <0 32 IRQ_TYPE_EDGE_RISING>; + clocks = <&iic0_sclk>; + clock-names = "sclk"; + status = "disabled"; + }; + + iic1: i2c at e10a0000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "renesas,iic-emev2"; + reg = <0xe10a0000 0x28>; + interrupts = <0 33 IRQ_TYPE_EDGE_RISING>; + clocks = <&iic1_sclk>; + clock-names = "sclk"; + status = "disabled"; + }; }; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 2/9] ARM: shmobile: emev2: kzm9d: enable IIC busses 2015-07-24 8:41 ` Simon Horman @ 2015-07-24 8:41 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-07-24 8:41 UTC (permalink / raw) To: linux-arm-kernel From: Wolfram Sang <wsa+renesas@sang-engineering.com> Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/emev2-kzm9d.dts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/emev2-kzm9d.dts b/arch/arm/boot/dts/emev2-kzm9d.dts index 1dee0aa4f40c..955c24ee4a8c 100644 --- a/arch/arm/boot/dts/emev2-kzm9d.dts +++ b/arch/arm/boot/dts/emev2-kzm9d.dts @@ -95,6 +95,14 @@ }; }; +&iic0 { + status = "okay"; +}; + +&iic1 { + status = "okay"; +}; + &pfc { uart1_pins: serial@e1030000 { renesas,groups = "uart1_ctrl", "uart1_data"; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 2/9] ARM: shmobile: emev2: kzm9d: enable IIC busses @ 2015-07-24 8:41 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-07-24 8:41 UTC (permalink / raw) To: linux-arm-kernel From: Wolfram Sang <wsa+renesas@sang-engineering.com> Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/emev2-kzm9d.dts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/emev2-kzm9d.dts b/arch/arm/boot/dts/emev2-kzm9d.dts index 1dee0aa4f40c..955c24ee4a8c 100644 --- a/arch/arm/boot/dts/emev2-kzm9d.dts +++ b/arch/arm/boot/dts/emev2-kzm9d.dts @@ -95,6 +95,14 @@ }; }; +&iic0 { + status = "okay"; +}; + +&iic1 { + status = "okay"; +}; + &pfc { uart1_pins: serial at e1030000 { renesas,groups = "uart1_ctrl", "uart1_data"; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 3/9] ARM: shmobile: lager: add sound label on DTS 2015-07-24 8:41 ` Simon Horman @ 2015-07-24 8:41 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-07-24 8:41 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> It is easy to modify settings for Test or other purpose if sound has label Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7790-lager.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/r8a7790-lager.dts b/arch/arm/boot/dts/r8a7790-lager.dts index 2eb8a995ae9f..5ae07a8385c5 100644 --- a/arch/arm/boot/dts/r8a7790-lager.dts +++ b/arch/arm/boot/dts/r8a7790-lager.dts @@ -174,7 +174,7 @@ 1800000 0>; }; - sound { + rsnd_ak4643: sound { compatible = "simple-audio-card"; simple-audio-card,format = "left_j"; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 3/9] ARM: shmobile: lager: add sound label on DTS @ 2015-07-24 8:41 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-07-24 8:41 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> It is easy to modify settings for Test or other purpose if sound has label Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7790-lager.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/r8a7790-lager.dts b/arch/arm/boot/dts/r8a7790-lager.dts index 2eb8a995ae9f..5ae07a8385c5 100644 --- a/arch/arm/boot/dts/r8a7790-lager.dts +++ b/arch/arm/boot/dts/r8a7790-lager.dts @@ -174,7 +174,7 @@ 1800000 0>; }; - sound { + rsnd_ak4643: sound { compatible = "simple-audio-card"; simple-audio-card,format = "left_j"; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 4/9] ARM: shmobile: koelsch: add sound label on DTS 2015-07-24 8:41 ` Simon Horman @ 2015-07-24 8:41 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-07-24 8:41 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> It is easy to modify settings for Test or other purpose if sound has label Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791-koelsch.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/r8a7791-koelsch.dts b/arch/arm/boot/dts/r8a7791-koelsch.dts index cffe33ff4d16..dc158845afdc 100644 --- a/arch/arm/boot/dts/r8a7791-koelsch.dts +++ b/arch/arm/boot/dts/r8a7791-koelsch.dts @@ -242,7 +242,7 @@ 1800000 0>; }; - sound { + rsnd_ak4643: sound { compatible = "simple-audio-card"; simple-audio-card,format = "left_j"; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 4/9] ARM: shmobile: koelsch: add sound label on DTS @ 2015-07-24 8:41 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-07-24 8:41 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> It is easy to modify settings for Test or other purpose if sound has label Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791-koelsch.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/r8a7791-koelsch.dts b/arch/arm/boot/dts/r8a7791-koelsch.dts index cffe33ff4d16..dc158845afdc 100644 --- a/arch/arm/boot/dts/r8a7791-koelsch.dts +++ b/arch/arm/boot/dts/r8a7791-koelsch.dts @@ -242,7 +242,7 @@ 1800000 0>; }; - sound { + rsnd_ak4643: sound { compatible = "simple-audio-card"; simple-audio-card,format = "left_j"; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 5/9] ARM: shmobile: lager: Fix adv7511 IRQ sensing 2015-07-24 8:41 ` Simon Horman @ 2015-07-24 8:41 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-07-24 8:41 UTC (permalink / raw) To: linux-arm-kernel From: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> The adv7511 IRQ is low level triggered, not falling edge triggered. The wrong sense configuration results in no interrupt being triggered at all, breaking hotplug detection. Fix it. Reported-by: Ben Hutchings <ben.hutchings@codethink.co.uk> Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Tested-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7790-lager.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/r8a7790-lager.dts b/arch/arm/boot/dts/r8a7790-lager.dts index 5ae07a8385c5..37dec5269491 100644 --- a/arch/arm/boot/dts/r8a7790-lager.dts +++ b/arch/arm/boot/dts/r8a7790-lager.dts @@ -548,7 +548,7 @@ compatible = "adi,adv7511w"; reg = <0x39>; interrupt-parent = <&gpio1>; - interrupts = <15 IRQ_TYPE_EDGE_FALLING>; + interrupts = <15 IRQ_TYPE_LEVEL_LOW>; adi,input-depth = <8>; adi,input-colorspace = "rgb"; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 5/9] ARM: shmobile: lager: Fix adv7511 IRQ sensing @ 2015-07-24 8:41 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-07-24 8:41 UTC (permalink / raw) To: linux-arm-kernel From: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> The adv7511 IRQ is low level triggered, not falling edge triggered. The wrong sense configuration results in no interrupt being triggered at all, breaking hotplug detection. Fix it. Reported-by: Ben Hutchings <ben.hutchings@codethink.co.uk> Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Tested-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7790-lager.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/r8a7790-lager.dts b/arch/arm/boot/dts/r8a7790-lager.dts index 5ae07a8385c5..37dec5269491 100644 --- a/arch/arm/boot/dts/r8a7790-lager.dts +++ b/arch/arm/boot/dts/r8a7790-lager.dts @@ -548,7 +548,7 @@ compatible = "adi,adv7511w"; reg = <0x39>; interrupt-parent = <&gpio1>; - interrupts = <15 IRQ_TYPE_EDGE_FALLING>; + interrupts = <15 IRQ_TYPE_LEVEL_LOW>; adi,input-depth = <8>; adi,input-colorspace = "rgb"; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 6/9] ARM: shmobile: r8a7790: Add Audio CTU support on DTSI 2015-07-24 8:41 ` Simon Horman @ 2015-07-24 8:41 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-07-24 8:41 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Tested-by: Keita Kobayashi <keita.kobayashi.ym@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7790.dtsi | 16 ++++++++++++++++ include/dt-bindings/clock/r8a7790-clock.h | 2 ++ 2 files changed, 18 insertions(+) diff --git a/arch/arm/boot/dts/r8a7790.dtsi b/arch/arm/boot/dts/r8a7790.dtsi index 3ae0c3bfb9b9..6aa1d759690b 100644 --- a/arch/arm/boot/dts/r8a7790.dtsi +++ b/arch/arm/boot/dts/r8a7790.dtsi @@ -1303,6 +1303,7 @@ <&mstp10_clks R8A7790_CLK_SCU_ALL>, <&mstp10_clks R8A7790_CLK_SCU_ALL>, <&mstp10_clks R8A7790_CLK_SCU_ALL>, <&mstp10_clks R8A7790_CLK_SCU_ALL>, <&mstp10_clks R8A7790_CLK_SCU_ALL>, <&mstp10_clks R8A7790_CLK_SCU_ALL>, + <&mstp10_clks R8A7790_CLK_SCU_ALL>, <&mstp10_clks R8A7790_CLK_SCU_ALL>, <&mstp10_clks R8A7790_CLK_SCU_ALL>, <&mstp10_clks R8A7790_CLK_SCU_ALL>; #clock-cells = <1>; @@ -1312,6 +1313,7 @@ R8A7790_CLK_SSI4 R8A7790_CLK_SSI3 R8A7790_CLK_SSI2 R8A7790_CLK_SSI1 R8A7790_CLK_SSI0 R8A7790_CLK_SCU_ALL R8A7790_CLK_SCU_DVC1 R8A7790_CLK_SCU_DVC0 + R8A7790_CLK_SCU_CTU1_MIX1 R8A7790_CLK_SCU_CTU0_MIX0 R8A7790_CLK_SCU_SRC9 R8A7790_CLK_SCU_SRC8 R8A7790_CLK_SCU_SRC7 R8A7790_CLK_SCU_SRC6 R8A7790_CLK_SCU_SRC5 R8A7790_CLK_SCU_SRC4 R8A7790_CLK_SCU_SRC3 R8A7790_CLK_SCU_SRC2 R8A7790_CLK_SCU_SRC1 R8A7790_CLK_SCU_SRC0 >; @@ -1321,6 +1323,7 @@ "ssi4", "ssi3", "ssi2", "ssi1", "ssi0", "scu-all", "scu-dvc1", "scu-dvc0", + "scu-ctu1-mix1", "scu-ctu0-mix0", "scu-src9", "scu-src8", "scu-src7", "scu-src6", "scu-src5", "scu-src4", "scu-src3", "scu-src2", "scu-src1", "scu-src0"; }; @@ -1536,6 +1539,7 @@ <&mstp10_clks R8A7790_CLK_SCU_SRC5>, <&mstp10_clks R8A7790_CLK_SCU_SRC4>, <&mstp10_clks R8A7790_CLK_SCU_SRC3>, <&mstp10_clks R8A7790_CLK_SCU_SRC2>, <&mstp10_clks R8A7790_CLK_SCU_SRC1>, <&mstp10_clks R8A7790_CLK_SCU_SRC0>, + <&mstp10_clks R8A7790_CLK_SCU_CTU0_MIX0>, <&mstp10_clks R8A7790_CLK_SCU_CTU1_MIX1>, <&mstp10_clks R8A7790_CLK_SCU_DVC0>, <&mstp10_clks R8A7790_CLK_SCU_DVC1>, <&audio_clk_a>, <&audio_clk_b>, <&audio_clk_c>, <&m2_clk>; clock-names = "ssi-all", @@ -1543,6 +1547,7 @@ "ssi.4", "ssi.3", "ssi.2", "ssi.1", "ssi.0", "src.9", "src.8", "src.7", "src.6", "src.5", "src.4", "src.3", "src.2", "src.1", "src.0", + "ctu.0", "ctu.1", "dvc.0", "dvc.1", "clk_a", "clk_b", "clk_c", "clk_i"; @@ -1559,6 +1564,17 @@ }; }; + rcar_sound,ctu { + ctu00: ctu@0 { }; + ctu01: ctu@1 { }; + ctu02: ctu@2 { }; + ctu03: ctu@3 { }; + ctu10: ctu@4 { }; + ctu11: ctu@5 { }; + ctu12: ctu@6 { }; + ctu13: ctu@7 { }; + }; + rcar_sound,src { src0: src@0 { interrupts = <0 352 IRQ_TYPE_LEVEL_HIGH>; diff --git a/include/dt-bindings/clock/r8a7790-clock.h b/include/dt-bindings/clock/r8a7790-clock.h index e119ef372ba3..7b1ad8922eec 100644 --- a/include/dt-bindings/clock/r8a7790-clock.h +++ b/include/dt-bindings/clock/r8a7790-clock.h @@ -144,6 +144,8 @@ #define R8A7790_CLK_SCU_ALL 17 #define R8A7790_CLK_SCU_DVC1 18 #define R8A7790_CLK_SCU_DVC0 19 +#define R8A7790_CLK_SCU_CTU1_MIX1 20 +#define R8A7790_CLK_SCU_CTU0_MIX0 21 #define R8A7790_CLK_SCU_SRC9 22 #define R8A7790_CLK_SCU_SRC8 23 #define R8A7790_CLK_SCU_SRC7 24 -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 6/9] ARM: shmobile: r8a7790: Add Audio CTU support on DTSI @ 2015-07-24 8:41 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-07-24 8:41 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Tested-by: Keita Kobayashi <keita.kobayashi.ym@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7790.dtsi | 16 ++++++++++++++++ include/dt-bindings/clock/r8a7790-clock.h | 2 ++ 2 files changed, 18 insertions(+) diff --git a/arch/arm/boot/dts/r8a7790.dtsi b/arch/arm/boot/dts/r8a7790.dtsi index 3ae0c3bfb9b9..6aa1d759690b 100644 --- a/arch/arm/boot/dts/r8a7790.dtsi +++ b/arch/arm/boot/dts/r8a7790.dtsi @@ -1303,6 +1303,7 @@ <&mstp10_clks R8A7790_CLK_SCU_ALL>, <&mstp10_clks R8A7790_CLK_SCU_ALL>, <&mstp10_clks R8A7790_CLK_SCU_ALL>, <&mstp10_clks R8A7790_CLK_SCU_ALL>, <&mstp10_clks R8A7790_CLK_SCU_ALL>, <&mstp10_clks R8A7790_CLK_SCU_ALL>, + <&mstp10_clks R8A7790_CLK_SCU_ALL>, <&mstp10_clks R8A7790_CLK_SCU_ALL>, <&mstp10_clks R8A7790_CLK_SCU_ALL>, <&mstp10_clks R8A7790_CLK_SCU_ALL>; #clock-cells = <1>; @@ -1312,6 +1313,7 @@ R8A7790_CLK_SSI4 R8A7790_CLK_SSI3 R8A7790_CLK_SSI2 R8A7790_CLK_SSI1 R8A7790_CLK_SSI0 R8A7790_CLK_SCU_ALL R8A7790_CLK_SCU_DVC1 R8A7790_CLK_SCU_DVC0 + R8A7790_CLK_SCU_CTU1_MIX1 R8A7790_CLK_SCU_CTU0_MIX0 R8A7790_CLK_SCU_SRC9 R8A7790_CLK_SCU_SRC8 R8A7790_CLK_SCU_SRC7 R8A7790_CLK_SCU_SRC6 R8A7790_CLK_SCU_SRC5 R8A7790_CLK_SCU_SRC4 R8A7790_CLK_SCU_SRC3 R8A7790_CLK_SCU_SRC2 R8A7790_CLK_SCU_SRC1 R8A7790_CLK_SCU_SRC0 >; @@ -1321,6 +1323,7 @@ "ssi4", "ssi3", "ssi2", "ssi1", "ssi0", "scu-all", "scu-dvc1", "scu-dvc0", + "scu-ctu1-mix1", "scu-ctu0-mix0", "scu-src9", "scu-src8", "scu-src7", "scu-src6", "scu-src5", "scu-src4", "scu-src3", "scu-src2", "scu-src1", "scu-src0"; }; @@ -1536,6 +1539,7 @@ <&mstp10_clks R8A7790_CLK_SCU_SRC5>, <&mstp10_clks R8A7790_CLK_SCU_SRC4>, <&mstp10_clks R8A7790_CLK_SCU_SRC3>, <&mstp10_clks R8A7790_CLK_SCU_SRC2>, <&mstp10_clks R8A7790_CLK_SCU_SRC1>, <&mstp10_clks R8A7790_CLK_SCU_SRC0>, + <&mstp10_clks R8A7790_CLK_SCU_CTU0_MIX0>, <&mstp10_clks R8A7790_CLK_SCU_CTU1_MIX1>, <&mstp10_clks R8A7790_CLK_SCU_DVC0>, <&mstp10_clks R8A7790_CLK_SCU_DVC1>, <&audio_clk_a>, <&audio_clk_b>, <&audio_clk_c>, <&m2_clk>; clock-names = "ssi-all", @@ -1543,6 +1547,7 @@ "ssi.4", "ssi.3", "ssi.2", "ssi.1", "ssi.0", "src.9", "src.8", "src.7", "src.6", "src.5", "src.4", "src.3", "src.2", "src.1", "src.0", + "ctu.0", "ctu.1", "dvc.0", "dvc.1", "clk_a", "clk_b", "clk_c", "clk_i"; @@ -1559,6 +1564,17 @@ }; }; + rcar_sound,ctu { + ctu00: ctu at 0 { }; + ctu01: ctu at 1 { }; + ctu02: ctu at 2 { }; + ctu03: ctu at 3 { }; + ctu10: ctu at 4 { }; + ctu11: ctu at 5 { }; + ctu12: ctu at 6 { }; + ctu13: ctu at 7 { }; + }; + rcar_sound,src { src0: src at 0 { interrupts = <0 352 IRQ_TYPE_LEVEL_HIGH>; diff --git a/include/dt-bindings/clock/r8a7790-clock.h b/include/dt-bindings/clock/r8a7790-clock.h index e119ef372ba3..7b1ad8922eec 100644 --- a/include/dt-bindings/clock/r8a7790-clock.h +++ b/include/dt-bindings/clock/r8a7790-clock.h @@ -144,6 +144,8 @@ #define R8A7790_CLK_SCU_ALL 17 #define R8A7790_CLK_SCU_DVC1 18 #define R8A7790_CLK_SCU_DVC0 19 +#define R8A7790_CLK_SCU_CTU1_MIX1 20 +#define R8A7790_CLK_SCU_CTU0_MIX0 21 #define R8A7790_CLK_SCU_SRC9 22 #define R8A7790_CLK_SCU_SRC8 23 #define R8A7790_CLK_SCU_SRC7 24 -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 7/9] ARM: shmobile: r8a7790: Add Audio MIX support on DTSI 2015-07-24 8:41 ` Simon Horman @ 2015-07-24 8:41 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-07-24 8:41 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Tested-by: Keita Kobayashi <keita.kobayashi.ym@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7790.dtsi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/r8a7790.dtsi b/arch/arm/boot/dts/r8a7790.dtsi index 6aa1d759690b..f1cdccc0a8c8 100644 --- a/arch/arm/boot/dts/r8a7790.dtsi +++ b/arch/arm/boot/dts/r8a7790.dtsi @@ -1540,6 +1540,7 @@ <&mstp10_clks R8A7790_CLK_SCU_SRC3>, <&mstp10_clks R8A7790_CLK_SCU_SRC2>, <&mstp10_clks R8A7790_CLK_SCU_SRC1>, <&mstp10_clks R8A7790_CLK_SCU_SRC0>, <&mstp10_clks R8A7790_CLK_SCU_CTU0_MIX0>, <&mstp10_clks R8A7790_CLK_SCU_CTU1_MIX1>, + <&mstp10_clks R8A7790_CLK_SCU_CTU0_MIX0>, <&mstp10_clks R8A7790_CLK_SCU_CTU1_MIX1>, <&mstp10_clks R8A7790_CLK_SCU_DVC0>, <&mstp10_clks R8A7790_CLK_SCU_DVC1>, <&audio_clk_a>, <&audio_clk_b>, <&audio_clk_c>, <&m2_clk>; clock-names = "ssi-all", @@ -1548,6 +1549,7 @@ "src.9", "src.8", "src.7", "src.6", "src.5", "src.4", "src.3", "src.2", "src.1", "src.0", "ctu.0", "ctu.1", + "mix.0", "mix.1", "dvc.0", "dvc.1", "clk_a", "clk_b", "clk_c", "clk_i"; @@ -1564,6 +1566,11 @@ }; }; + rcar_sound,mix { + mix0: mix@0 { }; + mix1: mix@1 { }; + }; + rcar_sound,ctu { ctu00: ctu@0 { }; ctu01: ctu@1 { }; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 7/9] ARM: shmobile: r8a7790: Add Audio MIX support on DTSI @ 2015-07-24 8:41 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-07-24 8:41 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Tested-by: Keita Kobayashi <keita.kobayashi.ym@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7790.dtsi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/r8a7790.dtsi b/arch/arm/boot/dts/r8a7790.dtsi index 6aa1d759690b..f1cdccc0a8c8 100644 --- a/arch/arm/boot/dts/r8a7790.dtsi +++ b/arch/arm/boot/dts/r8a7790.dtsi @@ -1540,6 +1540,7 @@ <&mstp10_clks R8A7790_CLK_SCU_SRC3>, <&mstp10_clks R8A7790_CLK_SCU_SRC2>, <&mstp10_clks R8A7790_CLK_SCU_SRC1>, <&mstp10_clks R8A7790_CLK_SCU_SRC0>, <&mstp10_clks R8A7790_CLK_SCU_CTU0_MIX0>, <&mstp10_clks R8A7790_CLK_SCU_CTU1_MIX1>, + <&mstp10_clks R8A7790_CLK_SCU_CTU0_MIX0>, <&mstp10_clks R8A7790_CLK_SCU_CTU1_MIX1>, <&mstp10_clks R8A7790_CLK_SCU_DVC0>, <&mstp10_clks R8A7790_CLK_SCU_DVC1>, <&audio_clk_a>, <&audio_clk_b>, <&audio_clk_c>, <&m2_clk>; clock-names = "ssi-all", @@ -1548,6 +1549,7 @@ "src.9", "src.8", "src.7", "src.6", "src.5", "src.4", "src.3", "src.2", "src.1", "src.0", "ctu.0", "ctu.1", + "mix.0", "mix.1", "dvc.0", "dvc.1", "clk_a", "clk_b", "clk_c", "clk_i"; @@ -1564,6 +1566,11 @@ }; }; + rcar_sound,mix { + mix0: mix at 0 { }; + mix1: mix at 1 { }; + }; + rcar_sound,ctu { ctu00: ctu at 0 { }; ctu01: ctu at 1 { }; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 8/9] ARM: shmobile: r8a7791: Add Audio CTU support on DTSI 2015-07-24 8:41 ` Simon Horman @ 2015-07-24 8:41 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-07-24 8:41 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791.dtsi | 16 ++++++++++++++++ include/dt-bindings/clock/r8a7791-clock.h | 2 ++ 2 files changed, 18 insertions(+) diff --git a/arch/arm/boot/dts/r8a7791.dtsi b/arch/arm/boot/dts/r8a7791.dtsi index 07ea2bebe496..cdd55b82ba4e 100644 --- a/arch/arm/boot/dts/r8a7791.dtsi +++ b/arch/arm/boot/dts/r8a7791.dtsi @@ -1311,6 +1311,7 @@ <&mstp10_clks R8A7791_CLK_SCU_ALL>, <&mstp10_clks R8A7791_CLK_SCU_ALL>, <&mstp10_clks R8A7791_CLK_SCU_ALL>, <&mstp10_clks R8A7791_CLK_SCU_ALL>, <&mstp10_clks R8A7791_CLK_SCU_ALL>, <&mstp10_clks R8A7791_CLK_SCU_ALL>, + <&mstp10_clks R8A7791_CLK_SCU_ALL>, <&mstp10_clks R8A7791_CLK_SCU_ALL>, <&mstp10_clks R8A7791_CLK_SCU_ALL>, <&mstp10_clks R8A7791_CLK_SCU_ALL>; #clock-cells = <1>; @@ -1320,6 +1321,7 @@ R8A7791_CLK_SSI4 R8A7791_CLK_SSI3 R8A7791_CLK_SSI2 R8A7791_CLK_SSI1 R8A7791_CLK_SSI0 R8A7791_CLK_SCU_ALL R8A7791_CLK_SCU_DVC1 R8A7791_CLK_SCU_DVC0 + R8A7791_CLK_SCU_CTU1_MIX1 R8A7791_CLK_SCU_CTU0_MIX0 R8A7791_CLK_SCU_SRC9 R8A7791_CLK_SCU_SRC8 R8A7791_CLK_SCU_SRC7 R8A7791_CLK_SCU_SRC6 R8A7791_CLK_SCU_SRC5 R8A7791_CLK_SCU_SRC4 R8A7791_CLK_SCU_SRC3 R8A7791_CLK_SCU_SRC2 R8A7791_CLK_SCU_SRC1 R8A7791_CLK_SCU_SRC0 >; @@ -1329,6 +1331,7 @@ "ssi4", "ssi3", "ssi2", "ssi1", "ssi0", "scu-all", "scu-dvc1", "scu-dvc0", + "scu-ctu1-mix1", "scu-ctu0-mix0", "scu-src9", "scu-src8", "scu-src7", "scu-src6", "scu-src5", "scu-src4", "scu-src3", "scu-src2", "scu-src1", "scu-src0"; }; @@ -1582,6 +1585,7 @@ <&mstp10_clks R8A7791_CLK_SCU_SRC5>, <&mstp10_clks R8A7791_CLK_SCU_SRC4>, <&mstp10_clks R8A7791_CLK_SCU_SRC3>, <&mstp10_clks R8A7791_CLK_SCU_SRC2>, <&mstp10_clks R8A7791_CLK_SCU_SRC1>, <&mstp10_clks R8A7791_CLK_SCU_SRC0>, + <&mstp10_clks R8A7791_CLK_SCU_CTU0_MIX0>, <&mstp10_clks R8A7791_CLK_SCU_CTU1_MIX1>, <&mstp10_clks R8A7791_CLK_SCU_DVC0>, <&mstp10_clks R8A7791_CLK_SCU_DVC1>, <&audio_clk_a>, <&audio_clk_b>, <&audio_clk_c>, <&m2_clk>; clock-names = "ssi-all", @@ -1589,6 +1593,7 @@ "ssi.4", "ssi.3", "ssi.2", "ssi.1", "ssi.0", "src.9", "src.8", "src.7", "src.6", "src.5", "src.4", "src.3", "src.2", "src.1", "src.0", + "ctu.0", "ctu.1", "dvc.0", "dvc.1", "clk_a", "clk_b", "clk_c", "clk_i"; @@ -1605,6 +1610,17 @@ }; }; + rcar_sound,ctu { + ctu00: ctu@0 { }; + ctu01: ctu@1 { }; + ctu02: ctu@2 { }; + ctu03: ctu@3 { }; + ctu10: ctu@4 { }; + ctu11: ctu@5 { }; + ctu12: ctu@6 { }; + ctu13: ctu@7 { }; + }; + rcar_sound,src { src0: src@0 { interrupts = <0 352 IRQ_TYPE_LEVEL_HIGH>; diff --git a/include/dt-bindings/clock/r8a7791-clock.h b/include/dt-bindings/clock/r8a7791-clock.h index 402268384b99..dd09b73c4aaf 100644 --- a/include/dt-bindings/clock/r8a7791-clock.h +++ b/include/dt-bindings/clock/r8a7791-clock.h @@ -141,6 +141,8 @@ #define R8A7791_CLK_SCU_ALL 17 #define R8A7791_CLK_SCU_DVC1 18 #define R8A7791_CLK_SCU_DVC0 19 +#define R8A7791_CLK_SCU_CTU1_MIX1 20 +#define R8A7791_CLK_SCU_CTU0_MIX0 21 #define R8A7791_CLK_SCU_SRC9 22 #define R8A7791_CLK_SCU_SRC8 23 #define R8A7791_CLK_SCU_SRC7 24 -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 8/9] ARM: shmobile: r8a7791: Add Audio CTU support on DTSI @ 2015-07-24 8:41 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-07-24 8:41 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791.dtsi | 16 ++++++++++++++++ include/dt-bindings/clock/r8a7791-clock.h | 2 ++ 2 files changed, 18 insertions(+) diff --git a/arch/arm/boot/dts/r8a7791.dtsi b/arch/arm/boot/dts/r8a7791.dtsi index 07ea2bebe496..cdd55b82ba4e 100644 --- a/arch/arm/boot/dts/r8a7791.dtsi +++ b/arch/arm/boot/dts/r8a7791.dtsi @@ -1311,6 +1311,7 @@ <&mstp10_clks R8A7791_CLK_SCU_ALL>, <&mstp10_clks R8A7791_CLK_SCU_ALL>, <&mstp10_clks R8A7791_CLK_SCU_ALL>, <&mstp10_clks R8A7791_CLK_SCU_ALL>, <&mstp10_clks R8A7791_CLK_SCU_ALL>, <&mstp10_clks R8A7791_CLK_SCU_ALL>, + <&mstp10_clks R8A7791_CLK_SCU_ALL>, <&mstp10_clks R8A7791_CLK_SCU_ALL>, <&mstp10_clks R8A7791_CLK_SCU_ALL>, <&mstp10_clks R8A7791_CLK_SCU_ALL>; #clock-cells = <1>; @@ -1320,6 +1321,7 @@ R8A7791_CLK_SSI4 R8A7791_CLK_SSI3 R8A7791_CLK_SSI2 R8A7791_CLK_SSI1 R8A7791_CLK_SSI0 R8A7791_CLK_SCU_ALL R8A7791_CLK_SCU_DVC1 R8A7791_CLK_SCU_DVC0 + R8A7791_CLK_SCU_CTU1_MIX1 R8A7791_CLK_SCU_CTU0_MIX0 R8A7791_CLK_SCU_SRC9 R8A7791_CLK_SCU_SRC8 R8A7791_CLK_SCU_SRC7 R8A7791_CLK_SCU_SRC6 R8A7791_CLK_SCU_SRC5 R8A7791_CLK_SCU_SRC4 R8A7791_CLK_SCU_SRC3 R8A7791_CLK_SCU_SRC2 R8A7791_CLK_SCU_SRC1 R8A7791_CLK_SCU_SRC0 >; @@ -1329,6 +1331,7 @@ "ssi4", "ssi3", "ssi2", "ssi1", "ssi0", "scu-all", "scu-dvc1", "scu-dvc0", + "scu-ctu1-mix1", "scu-ctu0-mix0", "scu-src9", "scu-src8", "scu-src7", "scu-src6", "scu-src5", "scu-src4", "scu-src3", "scu-src2", "scu-src1", "scu-src0"; }; @@ -1582,6 +1585,7 @@ <&mstp10_clks R8A7791_CLK_SCU_SRC5>, <&mstp10_clks R8A7791_CLK_SCU_SRC4>, <&mstp10_clks R8A7791_CLK_SCU_SRC3>, <&mstp10_clks R8A7791_CLK_SCU_SRC2>, <&mstp10_clks R8A7791_CLK_SCU_SRC1>, <&mstp10_clks R8A7791_CLK_SCU_SRC0>, + <&mstp10_clks R8A7791_CLK_SCU_CTU0_MIX0>, <&mstp10_clks R8A7791_CLK_SCU_CTU1_MIX1>, <&mstp10_clks R8A7791_CLK_SCU_DVC0>, <&mstp10_clks R8A7791_CLK_SCU_DVC1>, <&audio_clk_a>, <&audio_clk_b>, <&audio_clk_c>, <&m2_clk>; clock-names = "ssi-all", @@ -1589,6 +1593,7 @@ "ssi.4", "ssi.3", "ssi.2", "ssi.1", "ssi.0", "src.9", "src.8", "src.7", "src.6", "src.5", "src.4", "src.3", "src.2", "src.1", "src.0", + "ctu.0", "ctu.1", "dvc.0", "dvc.1", "clk_a", "clk_b", "clk_c", "clk_i"; @@ -1605,6 +1610,17 @@ }; }; + rcar_sound,ctu { + ctu00: ctu at 0 { }; + ctu01: ctu at 1 { }; + ctu02: ctu at 2 { }; + ctu03: ctu at 3 { }; + ctu10: ctu at 4 { }; + ctu11: ctu at 5 { }; + ctu12: ctu at 6 { }; + ctu13: ctu at 7 { }; + }; + rcar_sound,src { src0: src at 0 { interrupts = <0 352 IRQ_TYPE_LEVEL_HIGH>; diff --git a/include/dt-bindings/clock/r8a7791-clock.h b/include/dt-bindings/clock/r8a7791-clock.h index 402268384b99..dd09b73c4aaf 100644 --- a/include/dt-bindings/clock/r8a7791-clock.h +++ b/include/dt-bindings/clock/r8a7791-clock.h @@ -141,6 +141,8 @@ #define R8A7791_CLK_SCU_ALL 17 #define R8A7791_CLK_SCU_DVC1 18 #define R8A7791_CLK_SCU_DVC0 19 +#define R8A7791_CLK_SCU_CTU1_MIX1 20 +#define R8A7791_CLK_SCU_CTU0_MIX0 21 #define R8A7791_CLK_SCU_SRC9 22 #define R8A7791_CLK_SCU_SRC8 23 #define R8A7791_CLK_SCU_SRC7 24 -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 9/9] ARM: shmobile: r8a7791: Add Audio MIX support on DTSI 2015-07-24 8:41 ` Simon Horman @ 2015-07-24 8:41 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-07-24 8:41 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791.dtsi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/r8a7791.dtsi b/arch/arm/boot/dts/r8a7791.dtsi index cdd55b82ba4e..d37339bd7cdb 100644 --- a/arch/arm/boot/dts/r8a7791.dtsi +++ b/arch/arm/boot/dts/r8a7791.dtsi @@ -1586,6 +1586,7 @@ <&mstp10_clks R8A7791_CLK_SCU_SRC3>, <&mstp10_clks R8A7791_CLK_SCU_SRC2>, <&mstp10_clks R8A7791_CLK_SCU_SRC1>, <&mstp10_clks R8A7791_CLK_SCU_SRC0>, <&mstp10_clks R8A7791_CLK_SCU_CTU0_MIX0>, <&mstp10_clks R8A7791_CLK_SCU_CTU1_MIX1>, + <&mstp10_clks R8A7791_CLK_SCU_CTU0_MIX0>, <&mstp10_clks R8A7791_CLK_SCU_CTU1_MIX1>, <&mstp10_clks R8A7791_CLK_SCU_DVC0>, <&mstp10_clks R8A7791_CLK_SCU_DVC1>, <&audio_clk_a>, <&audio_clk_b>, <&audio_clk_c>, <&m2_clk>; clock-names = "ssi-all", @@ -1594,6 +1595,7 @@ "src.9", "src.8", "src.7", "src.6", "src.5", "src.4", "src.3", "src.2", "src.1", "src.0", "ctu.0", "ctu.1", + "mix.0", "mix.1", "dvc.0", "dvc.1", "clk_a", "clk_b", "clk_c", "clk_i"; @@ -1610,6 +1612,11 @@ }; }; + rcar_sound,mix { + mix0: mix@0 { }; + mix1: mix@1 { }; + }; + rcar_sound,ctu { ctu00: ctu@0 { }; ctu01: ctu@1 { }; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 9/9] ARM: shmobile: r8a7791: Add Audio MIX support on DTSI @ 2015-07-24 8:41 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-07-24 8:41 UTC (permalink / raw) To: linux-arm-kernel From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791.dtsi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/r8a7791.dtsi b/arch/arm/boot/dts/r8a7791.dtsi index cdd55b82ba4e..d37339bd7cdb 100644 --- a/arch/arm/boot/dts/r8a7791.dtsi +++ b/arch/arm/boot/dts/r8a7791.dtsi @@ -1586,6 +1586,7 @@ <&mstp10_clks R8A7791_CLK_SCU_SRC3>, <&mstp10_clks R8A7791_CLK_SCU_SRC2>, <&mstp10_clks R8A7791_CLK_SCU_SRC1>, <&mstp10_clks R8A7791_CLK_SCU_SRC0>, <&mstp10_clks R8A7791_CLK_SCU_CTU0_MIX0>, <&mstp10_clks R8A7791_CLK_SCU_CTU1_MIX1>, + <&mstp10_clks R8A7791_CLK_SCU_CTU0_MIX0>, <&mstp10_clks R8A7791_CLK_SCU_CTU1_MIX1>, <&mstp10_clks R8A7791_CLK_SCU_DVC0>, <&mstp10_clks R8A7791_CLK_SCU_DVC1>, <&audio_clk_a>, <&audio_clk_b>, <&audio_clk_c>, <&m2_clk>; clock-names = "ssi-all", @@ -1594,6 +1595,7 @@ "src.9", "src.8", "src.7", "src.6", "src.5", "src.4", "src.3", "src.2", "src.1", "src.0", "ctu.0", "ctu.1", + "mix.0", "mix.1", "dvc.0", "dvc.1", "clk_a", "clk_b", "clk_c", "clk_i"; @@ -1610,6 +1612,11 @@ }; }; + rcar_sound,mix { + mix0: mix at 0 { }; + mix1: mix at 1 { }; + }; + rcar_sound,ctu { ctu00: ctu at 0 { }; ctu01: ctu at 1 { }; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC Defconfig Updates for v4.3 @ 2015-07-30 0:23 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-07-30 0:23 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Hi Kevin, Hi Arnd, Please consider these second round of Renesas ARM based SoC defconfig updates for v4.3. This pull request is based on the previous round of such requests, tagged as renesas-defconfig-for-v4.3, which I have already sent a pull-request for. The following changes since commit 821e79cb5686695f0adaef61587a184e953a937e: ARM: shmobile: Remove marzen_defconfig (2015-07-17 08:29:45 +0900) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-defconfig2-for-v4.3 for you to fetch changes up to 4055a722d260ca30610fc52238d0aa49ff5bffa9: ARM: shmobile: Enable fixed voltage regulator in shmobile_defconfig (2015-07-28 09:27:00 +0900) ---------------------------------------------------------------- Second Round of Renesas ARM Based SoC Defconfig Updates for v4.3 * Enable fixed voltage regulator in shmobile_defconfig ---------------------------------------------------------------- Simon Horman (1): ARM: shmobile: Enable fixed voltage regulator in shmobile_defconfig arch/arm/configs/shmobile_defconfig | 1 + 1 file changed, 1 insertion(+) ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC Defconfig Updates for v4.3 @ 2015-07-30 0:23 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-07-30 0:23 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Hi Kevin, Hi Arnd, Please consider these second round of Renesas ARM based SoC defconfig updates for v4.3. This pull request is based on the previous round of such requests, tagged as renesas-defconfig-for-v4.3, which I have already sent a pull-request for. The following changes since commit 821e79cb5686695f0adaef61587a184e953a937e: ARM: shmobile: Remove marzen_defconfig (2015-07-17 08:29:45 +0900) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-defconfig2-for-v4.3 for you to fetch changes up to 4055a722d260ca30610fc52238d0aa49ff5bffa9: ARM: shmobile: Enable fixed voltage regulator in shmobile_defconfig (2015-07-28 09:27:00 +0900) ---------------------------------------------------------------- Second Round of Renesas ARM Based SoC Defconfig Updates for v4.3 * Enable fixed voltage regulator in shmobile_defconfig ---------------------------------------------------------------- Simon Horman (1): ARM: shmobile: Enable fixed voltage regulator in shmobile_defconfig arch/arm/configs/shmobile_defconfig | 1 + 1 file changed, 1 insertion(+) ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH] ARM: shmobile: Enable fixed voltage regulator in shmobile_defconfig 2015-07-30 0:23 ` Simon Horman @ 2015-07-30 0:23 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-07-30 0:23 UTC (permalink / raw) To: linux-arm-kernel This is selected by MACH_MARZEN which is enabled in shmobile_defconfig, however, MACH_MARZEN is going away along with the board code it enables. Acked-by: Magnus Damm <damm@opensource.se> Acked-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/configs/shmobile_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/shmobile_defconfig b/arch/arm/configs/shmobile_defconfig index 8da509327265..89bf31ccfbfa 100644 --- a/arch/arm/configs/shmobile_defconfig +++ b/arch/arm/configs/shmobile_defconfig @@ -122,6 +122,7 @@ CONFIG_WATCHDOG=y CONFIG_DA9063_WATCHDOG=y CONFIG_MFD_AS3711=y CONFIG_MFD_DA9063=y +CONFIG_REGULATOR_FIXED_VOLTAGE=y CONFIG_REGULATOR_AS3711=y CONFIG_REGULATOR_DA9210=y CONFIG_REGULATOR_GPIO=y -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH] ARM: shmobile: Enable fixed voltage regulator in shmobile_defconfig @ 2015-07-30 0:23 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-07-30 0:23 UTC (permalink / raw) To: linux-arm-kernel This is selected by MACH_MARZEN which is enabled in shmobile_defconfig, however, MACH_MARZEN is going away along with the board code it enables. Acked-by: Magnus Damm <damm@opensource.se> Acked-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/configs/shmobile_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/shmobile_defconfig b/arch/arm/configs/shmobile_defconfig index 8da509327265..89bf31ccfbfa 100644 --- a/arch/arm/configs/shmobile_defconfig +++ b/arch/arm/configs/shmobile_defconfig @@ -122,6 +122,7 @@ CONFIG_WATCHDOG=y CONFIG_DA9063_WATCHDOG=y CONFIG_MFD_AS3711=y CONFIG_MFD_DA9063=y +CONFIG_REGULATOR_FIXED_VOLTAGE=y CONFIG_REGULATOR_AS3711=y CONFIG_REGULATOR_DA9210=y CONFIG_REGULATOR_GPIO=y -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* Re: [GIT PULL] Second Round of Renesas ARM Based SoC Defconfig Updates for v4.3 2015-07-30 0:23 ` Simon Horman @ 2015-08-05 8:36 ` Olof Johansson -1 siblings, 0 replies; 776+ messages in thread From: Olof Johansson @ 2015-08-05 8:36 UTC (permalink / raw) To: linux-arm-kernel On Thu, Jul 30, 2015 at 09:23:50AM +0900, Simon Horman wrote: > Hi Olof, Hi Kevin, Hi Arnd, > > Please consider these second round of Renesas ARM based SoC defconfig updates for v4.3. > > This pull request is based on the previous round of > such requests, tagged as renesas-defconfig-for-v4.3, > which I have already sent a pull-request for. > > > The following changes since commit 821e79cb5686695f0adaef61587a184e953a937e: > > ARM: shmobile: Remove marzen_defconfig (2015-07-17 08:29:45 +0900) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-defconfig2-for-v4.3 > > for you to fetch changes up to 4055a722d260ca30610fc52238d0aa49ff5bffa9: > > ARM: shmobile: Enable fixed voltage regulator in shmobile_defconfig (2015-07-28 09:27:00 +0900) Merged, thanks. -Olof ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC Defconfig Updates for v4.3 @ 2015-08-05 8:36 ` Olof Johansson 0 siblings, 0 replies; 776+ messages in thread From: Olof Johansson @ 2015-08-05 8:36 UTC (permalink / raw) To: linux-arm-kernel On Thu, Jul 30, 2015 at 09:23:50AM +0900, Simon Horman wrote: > Hi Olof, Hi Kevin, Hi Arnd, > > Please consider these second round of Renesas ARM based SoC defconfig updates for v4.3. > > This pull request is based on the previous round of > such requests, tagged as renesas-defconfig-for-v4.3, > which I have already sent a pull-request for. > > > The following changes since commit 821e79cb5686695f0adaef61587a184e953a937e: > > ARM: shmobile: Remove marzen_defconfig (2015-07-17 08:29:45 +0900) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-defconfig2-for-v4.3 > > for you to fetch changes up to 4055a722d260ca30610fc52238d0aa49ff5bffa9: > > ARM: shmobile: Enable fixed voltage regulator in shmobile_defconfig (2015-07-28 09:27:00 +0900) Merged, thanks. -Olof ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC Cleanup for v4.4 @ 2015-10-15 0:33 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-10-15 0:33 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Hi Kevin, Hi Arnd, Please consider these second round of Renesas ARM based SoC cleanup for v4.4. This pull request is based on the previous round of such requests, tagged as renesas-cleanup-for-v4.4, which you have already pulled. The following changes since commit 04418c23a9411b85b8789eab5f4397bcbd62b7b4: ARM: shmobile: Remove legacy clock support leftovers (2015-09-14 10:06:56 +0900) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-cleanup2-for-v4.4 for you to fetch changes up to 1fd377b3fc1e071702e27b2f828e3abd8b31c74d: ARM: shmobile: R-Mobile: add missing of_node_put (2015-10-12 09:15:29 +0900) ---------------------------------------------------------------- Second Round of Renesas ARM Based SoC Cleanup for v4.4 * Remove now unused legacy pm domain code * Add missing of_node_put to pm-rmobile * Corresct spelling of interrupt-names in renesas-memory-controller binding documentation * Correct signdness of CPU id in shmobile apmu implementation * Make some functions static as appropriate ---------------------------------------------------------------- Andrzej Hajda (1): ARM: shmobile: apmu: correct type of CPU id Geert Uytterhoeven (3): ARM: shmobile: smp: Make shmobile_smp_apmu_cpu_shutdown() static ARM: shmobile: r8a7778: Make r8a7778_init_irq_dt() static ARM: shmobile: r8a7779: Remove legacy PM Domain remainings Julia Lawall (1): ARM: shmobile: R-Mobile: add missing of_node_put Lee Jones (1): ARM: shmobile: dt: Rename incorrect interrupt related binding .../renesas-memory-controllers.txt | 6 +- arch/arm/mach-shmobile/platsmp-apmu.c | 4 +- arch/arm/mach-shmobile/pm-r8a7779.c | 99 ---------------------- arch/arm/mach-shmobile/pm-rmobile.c | 4 +- arch/arm/mach-shmobile/r8a7779.h | 6 -- arch/arm/mach-shmobile/setup-r8a7778.c | 3 +- 6 files changed, 10 insertions(+), 112 deletions(-) ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC Cleanup for v4.4 @ 2015-10-15 0:33 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-10-15 0:33 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Hi Kevin, Hi Arnd, Please consider these second round of Renesas ARM based SoC cleanup for v4.4. This pull request is based on the previous round of such requests, tagged as renesas-cleanup-for-v4.4, which you have already pulled. The following changes since commit 04418c23a9411b85b8789eab5f4397bcbd62b7b4: ARM: shmobile: Remove legacy clock support leftovers (2015-09-14 10:06:56 +0900) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-cleanup2-for-v4.4 for you to fetch changes up to 1fd377b3fc1e071702e27b2f828e3abd8b31c74d: ARM: shmobile: R-Mobile: add missing of_node_put (2015-10-12 09:15:29 +0900) ---------------------------------------------------------------- Second Round of Renesas ARM Based SoC Cleanup for v4.4 * Remove now unused legacy pm domain code * Add missing of_node_put to pm-rmobile * Corresct spelling of interrupt-names in renesas-memory-controller binding documentation * Correct signdness of CPU id in shmobile apmu implementation * Make some functions static as appropriate ---------------------------------------------------------------- Andrzej Hajda (1): ARM: shmobile: apmu: correct type of CPU id Geert Uytterhoeven (3): ARM: shmobile: smp: Make shmobile_smp_apmu_cpu_shutdown() static ARM: shmobile: r8a7778: Make r8a7778_init_irq_dt() static ARM: shmobile: r8a7779: Remove legacy PM Domain remainings Julia Lawall (1): ARM: shmobile: R-Mobile: add missing of_node_put Lee Jones (1): ARM: shmobile: dt: Rename incorrect interrupt related binding .../renesas-memory-controllers.txt | 6 +- arch/arm/mach-shmobile/platsmp-apmu.c | 4 +- arch/arm/mach-shmobile/pm-r8a7779.c | 99 ---------------------- arch/arm/mach-shmobile/pm-rmobile.c | 4 +- arch/arm/mach-shmobile/r8a7779.h | 6 -- arch/arm/mach-shmobile/setup-r8a7778.c | 3 +- 6 files changed, 10 insertions(+), 112 deletions(-) ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH 1/6] ARM: shmobile: smp: Make shmobile_smp_apmu_cpu_shutdown() static 2015-10-15 0:33 ` Simon Horman @ 2015-10-15 0:33 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-10-15 0:33 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> shmobile_smp_apmu_cpu_shutdown() is used inside platsmp-apmu.c only. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/platsmp-apmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-shmobile/platsmp-apmu.c b/arch/arm/mach-shmobile/platsmp-apmu.c index 4e54512bee30..bcf4cc51b926 100644 --- a/arch/arm/mach-shmobile/platsmp-apmu.c +++ b/arch/arm/mach-shmobile/platsmp-apmu.c @@ -170,7 +170,7 @@ static inline void cpu_enter_lowpower_a15(void) dsb(); } -void shmobile_smp_apmu_cpu_shutdown(unsigned int cpu) +static void shmobile_smp_apmu_cpu_shutdown(unsigned int cpu) { /* Select next sleep mode using the APMU */ -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 1/6] ARM: shmobile: smp: Make shmobile_smp_apmu_cpu_shutdown() static @ 2015-10-15 0:33 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-10-15 0:33 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> shmobile_smp_apmu_cpu_shutdown() is used inside platsmp-apmu.c only. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/platsmp-apmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-shmobile/platsmp-apmu.c b/arch/arm/mach-shmobile/platsmp-apmu.c index 4e54512bee30..bcf4cc51b926 100644 --- a/arch/arm/mach-shmobile/platsmp-apmu.c +++ b/arch/arm/mach-shmobile/platsmp-apmu.c @@ -170,7 +170,7 @@ static inline void cpu_enter_lowpower_a15(void) dsb(); } -void shmobile_smp_apmu_cpu_shutdown(unsigned int cpu) +static void shmobile_smp_apmu_cpu_shutdown(unsigned int cpu) { /* Select next sleep mode using the APMU */ -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 2/6] ARM: shmobile: r8a7778: Make r8a7778_init_irq_dt() static 2015-10-15 0:33 ` Simon Horman @ 2015-10-15 0:33 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-10-15 0:33 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> As of commit 4baadb9e05c68962 ("ARM: shmobile: r8a7778: remove obsolete setup code"), r8a7778_init_irq_dt() is no longer used outside setup-r8a7778.c. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/setup-r8a7778.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-shmobile/setup-r8a7778.c b/arch/arm/mach-shmobile/setup-r8a7778.c index b0c9986d022d..0ab9d3272875 100644 --- a/arch/arm/mach-shmobile/setup-r8a7778.c +++ b/arch/arm/mach-shmobile/setup-r8a7778.c @@ -42,7 +42,8 @@ static void __init r8a7778_timer_init(void) #define INT2NTSR0 0x00018 /* 0xfe700018 */ #define INT2NTSR1 0x0002c /* 0xfe70002c */ -void __init r8a7778_init_irq_dt(void) + +static void __init r8a7778_init_irq_dt(void) { void __iomem *base = ioremap_nocache(0xfe700000, 0x00100000); -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 2/6] ARM: shmobile: r8a7778: Make r8a7778_init_irq_dt() static @ 2015-10-15 0:33 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-10-15 0:33 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> As of commit 4baadb9e05c68962 ("ARM: shmobile: r8a7778: remove obsolete setup code"), r8a7778_init_irq_dt() is no longer used outside setup-r8a7778.c. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/setup-r8a7778.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-shmobile/setup-r8a7778.c b/arch/arm/mach-shmobile/setup-r8a7778.c index b0c9986d022d..0ab9d3272875 100644 --- a/arch/arm/mach-shmobile/setup-r8a7778.c +++ b/arch/arm/mach-shmobile/setup-r8a7778.c @@ -42,7 +42,8 @@ static void __init r8a7778_timer_init(void) #define INT2NTSR0 0x00018 /* 0xfe700018 */ #define INT2NTSR1 0x0002c /* 0xfe70002c */ -void __init r8a7778_init_irq_dt(void) + +static void __init r8a7778_init_irq_dt(void) { void __iomem *base = ioremap_nocache(0xfe700000, 0x00100000); -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 3/6] ARM: shmobile: r8a7779: Remove legacy PM Domain remainings 2015-10-15 0:33 ` Simon Horman @ 2015-10-15 0:33 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-10-15 0:33 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> As of commit c99cd90d98a98aa1 ("ARM: shmobile: r8a7779: Remove legacy SoC code"), r8a7779_init_pm_domains() is no longer called. Remove all related legacy PM Domain code. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/pm-r8a7779.c | 99 ------------------------------------- arch/arm/mach-shmobile/r8a7779.h | 6 --- 2 files changed, 105 deletions(-) diff --git a/arch/arm/mach-shmobile/pm-r8a7779.c b/arch/arm/mach-shmobile/pm-r8a7779.c index 47a862e7f8ba..14c42a1bdf1e 100644 --- a/arch/arm/mach-shmobile/pm-r8a7779.c +++ b/arch/arm/mach-shmobile/pm-r8a7779.c @@ -9,20 +9,8 @@ * for more details. */ -#include <linux/pm.h> -#include <linux/suspend.h> -#include <linux/err.h> -#include <linux/pm_clock.h> -#include <linux/pm_domain.h> -#include <linux/platform_device.h> -#include <linux/delay.h> -#include <linux/irq.h> -#include <linux/interrupt.h> -#include <linux/console.h> - #include <asm/io.h> -#include "common.h" #include "pm-rcar.h" #include "r8a7779.h" @@ -30,17 +18,6 @@ #define SYSCIER 0x0c #define SYSCIMR 0x10 -struct r8a7779_pm_domain { - struct generic_pm_domain genpd; - struct rcar_sysc_ch ch; -}; - -static inline -const struct rcar_sysc_ch *to_r8a7779_ch(struct generic_pm_domain *d) -{ - return &container_of(d, struct r8a7779_pm_domain, genpd)->ch; -} - #if defined(CONFIG_PM) || defined(CONFIG_SMP) static void __init r8a7779_sysc_init(void) @@ -58,82 +35,6 @@ static inline void r8a7779_sysc_init(void) {} #endif /* CONFIG_PM || CONFIG_SMP */ -#ifdef CONFIG_PM - -static int pd_power_down(struct generic_pm_domain *genpd) -{ - return rcar_sysc_power_down(to_r8a7779_ch(genpd)); -} - -static int pd_power_up(struct generic_pm_domain *genpd) -{ - return rcar_sysc_power_up(to_r8a7779_ch(genpd)); -} - -static bool pd_is_off(struct generic_pm_domain *genpd) -{ - return rcar_sysc_power_is_off(to_r8a7779_ch(genpd)); -} - -static bool pd_active_wakeup(struct device *dev) -{ - return true; -} - -static void r8a7779_init_pm_domain(struct r8a7779_pm_domain *r8a7779_pd) -{ - struct generic_pm_domain *genpd = &r8a7779_pd->genpd; - - pm_genpd_init(genpd, NULL, false); - genpd->dev_ops.active_wakeup = pd_active_wakeup; - genpd->power_off = pd_power_down; - genpd->power_on = pd_power_up; - - if (pd_is_off(&r8a7779_pd->genpd)) - pd_power_up(&r8a7779_pd->genpd); -} - -static struct r8a7779_pm_domain r8a7779_pm_domains[] = { - { - .genpd.name = "SH4A", - .ch = { - .chan_offs = 0x80, /* PWRSR1 .. PWRER1 */ - .isr_bit = 16, /* SH4A */ - }, - }, - { - .genpd.name = "SGX", - .ch = { - .chan_offs = 0xc0, /* PWRSR2 .. PWRER2 */ - .isr_bit = 20, /* SGX */ - }, - }, - { - .genpd.name = "VDP1", - .ch = { - .chan_offs = 0x100, /* PWRSR3 .. PWRER3 */ - .isr_bit = 21, /* VDP */ - }, - }, - { - .genpd.name = "IMPX3", - .ch = { - .chan_offs = 0x140, /* PWRSR4 .. PWRER4 */ - .isr_bit = 24, /* IMP */ - }, - }, -}; - -void __init r8a7779_init_pm_domains(void) -{ - int j; - - for (j = 0; j < ARRAY_SIZE(r8a7779_pm_domains); j++) - r8a7779_init_pm_domain(&r8a7779_pm_domains[j]); -} - -#endif /* CONFIG_PM */ - void __init r8a7779_pm_init(void) { static int once; diff --git a/arch/arm/mach-shmobile/r8a7779.h b/arch/arm/mach-shmobile/r8a7779.h index aad833a8f0b8..e1aaa2ef9376 100644 --- a/arch/arm/mach-shmobile/r8a7779.h +++ b/arch/arm/mach-shmobile/r8a7779.h @@ -3,12 +3,6 @@ extern void r8a7779_pm_init(void); -#ifdef CONFIG_PM -extern void __init r8a7779_init_pm_domains(void); -#else -static inline void r8a7779_init_pm_domains(void) {} -#endif /* CONFIG_PM */ - extern struct smp_operations r8a7779_smp_ops; #endif /* __ASM_R8A7779_H__ */ -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 3/6] ARM: shmobile: r8a7779: Remove legacy PM Domain remainings @ 2015-10-15 0:33 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-10-15 0:33 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> As of commit c99cd90d98a98aa1 ("ARM: shmobile: r8a7779: Remove legacy SoC code"), r8a7779_init_pm_domains() is no longer called. Remove all related legacy PM Domain code. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/pm-r8a7779.c | 99 ------------------------------------- arch/arm/mach-shmobile/r8a7779.h | 6 --- 2 files changed, 105 deletions(-) diff --git a/arch/arm/mach-shmobile/pm-r8a7779.c b/arch/arm/mach-shmobile/pm-r8a7779.c index 47a862e7f8ba..14c42a1bdf1e 100644 --- a/arch/arm/mach-shmobile/pm-r8a7779.c +++ b/arch/arm/mach-shmobile/pm-r8a7779.c @@ -9,20 +9,8 @@ * for more details. */ -#include <linux/pm.h> -#include <linux/suspend.h> -#include <linux/err.h> -#include <linux/pm_clock.h> -#include <linux/pm_domain.h> -#include <linux/platform_device.h> -#include <linux/delay.h> -#include <linux/irq.h> -#include <linux/interrupt.h> -#include <linux/console.h> - #include <asm/io.h> -#include "common.h" #include "pm-rcar.h" #include "r8a7779.h" @@ -30,17 +18,6 @@ #define SYSCIER 0x0c #define SYSCIMR 0x10 -struct r8a7779_pm_domain { - struct generic_pm_domain genpd; - struct rcar_sysc_ch ch; -}; - -static inline -const struct rcar_sysc_ch *to_r8a7779_ch(struct generic_pm_domain *d) -{ - return &container_of(d, struct r8a7779_pm_domain, genpd)->ch; -} - #if defined(CONFIG_PM) || defined(CONFIG_SMP) static void __init r8a7779_sysc_init(void) @@ -58,82 +35,6 @@ static inline void r8a7779_sysc_init(void) {} #endif /* CONFIG_PM || CONFIG_SMP */ -#ifdef CONFIG_PM - -static int pd_power_down(struct generic_pm_domain *genpd) -{ - return rcar_sysc_power_down(to_r8a7779_ch(genpd)); -} - -static int pd_power_up(struct generic_pm_domain *genpd) -{ - return rcar_sysc_power_up(to_r8a7779_ch(genpd)); -} - -static bool pd_is_off(struct generic_pm_domain *genpd) -{ - return rcar_sysc_power_is_off(to_r8a7779_ch(genpd)); -} - -static bool pd_active_wakeup(struct device *dev) -{ - return true; -} - -static void r8a7779_init_pm_domain(struct r8a7779_pm_domain *r8a7779_pd) -{ - struct generic_pm_domain *genpd = &r8a7779_pd->genpd; - - pm_genpd_init(genpd, NULL, false); - genpd->dev_ops.active_wakeup = pd_active_wakeup; - genpd->power_off = pd_power_down; - genpd->power_on = pd_power_up; - - if (pd_is_off(&r8a7779_pd->genpd)) - pd_power_up(&r8a7779_pd->genpd); -} - -static struct r8a7779_pm_domain r8a7779_pm_domains[] = { - { - .genpd.name = "SH4A", - .ch = { - .chan_offs = 0x80, /* PWRSR1 .. PWRER1 */ - .isr_bit = 16, /* SH4A */ - }, - }, - { - .genpd.name = "SGX", - .ch = { - .chan_offs = 0xc0, /* PWRSR2 .. PWRER2 */ - .isr_bit = 20, /* SGX */ - }, - }, - { - .genpd.name = "VDP1", - .ch = { - .chan_offs = 0x100, /* PWRSR3 .. PWRER3 */ - .isr_bit = 21, /* VDP */ - }, - }, - { - .genpd.name = "IMPX3", - .ch = { - .chan_offs = 0x140, /* PWRSR4 .. PWRER4 */ - .isr_bit = 24, /* IMP */ - }, - }, -}; - -void __init r8a7779_init_pm_domains(void) -{ - int j; - - for (j = 0; j < ARRAY_SIZE(r8a7779_pm_domains); j++) - r8a7779_init_pm_domain(&r8a7779_pm_domains[j]); -} - -#endif /* CONFIG_PM */ - void __init r8a7779_pm_init(void) { static int once; diff --git a/arch/arm/mach-shmobile/r8a7779.h b/arch/arm/mach-shmobile/r8a7779.h index aad833a8f0b8..e1aaa2ef9376 100644 --- a/arch/arm/mach-shmobile/r8a7779.h +++ b/arch/arm/mach-shmobile/r8a7779.h @@ -3,12 +3,6 @@ extern void r8a7779_pm_init(void); -#ifdef CONFIG_PM -extern void __init r8a7779_init_pm_domains(void); -#else -static inline void r8a7779_init_pm_domains(void) {} -#endif /* CONFIG_PM */ - extern struct smp_operations r8a7779_smp_ops; #endif /* __ASM_R8A7779_H__ */ -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 4/6] ARM: shmobile: apmu: correct type of CPU id 2015-10-15 0:33 ` Simon Horman @ 2015-10-15 0:33 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-10-15 0:33 UTC (permalink / raw) To: linux-arm-kernel From: Andrzej Hajda <a.hajda@samsung.com> CPU id can be negative, so it cannot be assigned to unsigned variable. The problem has been detected using proposed semantic patch scripts/coccinelle/tests/unsigned_lesser_than_zero.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2038576 Signed-off-by: Andrzej Hajda <a.hajda@samsung.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/platsmp-apmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-shmobile/platsmp-apmu.c b/arch/arm/mach-shmobile/platsmp-apmu.c index bcf4cc51b926..911884f7e28b 100644 --- a/arch/arm/mach-shmobile/platsmp-apmu.c +++ b/arch/arm/mach-shmobile/platsmp-apmu.c @@ -88,7 +88,7 @@ static void apmu_init_cpu(struct resource *res, int cpu, int bit) static void apmu_parse_cfg(void (*fn)(struct resource *res, int cpu, int bit), struct rcar_apmu_config *apmu_config, int num) { - u32 id; + int id; int k; int bit, index; bool is_allowed; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 4/6] ARM: shmobile: apmu: correct type of CPU id @ 2015-10-15 0:33 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-10-15 0:33 UTC (permalink / raw) To: linux-arm-kernel From: Andrzej Hajda <a.hajda@samsung.com> CPU id can be negative, so it cannot be assigned to unsigned variable. The problem has been detected using proposed semantic patch scripts/coccinelle/tests/unsigned_lesser_than_zero.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2038576 Signed-off-by: Andrzej Hajda <a.hajda@samsung.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/platsmp-apmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-shmobile/platsmp-apmu.c b/arch/arm/mach-shmobile/platsmp-apmu.c index bcf4cc51b926..911884f7e28b 100644 --- a/arch/arm/mach-shmobile/platsmp-apmu.c +++ b/arch/arm/mach-shmobile/platsmp-apmu.c @@ -88,7 +88,7 @@ static void apmu_init_cpu(struct resource *res, int cpu, int bit) static void apmu_parse_cfg(void (*fn)(struct resource *res, int cpu, int bit), struct rcar_apmu_config *apmu_config, int num) { - u32 id; + int id; int k; int bit, index; bool is_allowed; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 5/6] ARM: shmobile: dt: Rename incorrect interrupt related binding 2015-10-15 0:33 ` Simon Horman @ 2015-10-15 0:33 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-10-15 0:33 UTC (permalink / raw) To: linux-arm-kernel From: Lee Jones <lee.jones@linaro.org> interrupts-names => interrupt-names Other line changes are re-aligning. Signed-off-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- .../bindings/memory-controllers/renesas-memory-controllers.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/memory-controllers/renesas-memory-controllers.txt b/Documentation/devicetree/bindings/memory-controllers/renesas-memory-controllers.txt index c64b7925cd09..9f78e6c82740 100644 --- a/Documentation/devicetree/bindings/memory-controllers/renesas-memory-controllers.txt +++ b/Documentation/devicetree/bindings/memory-controllers/renesas-memory-controllers.txt @@ -24,9 +24,9 @@ Required properties: Optional properties: - interrupts: Must contain a list of interrupt specifiers for memory controller interrupts, if available. - - interrupts-names: Must contain a list of interrupt names corresponding to - the interrupts in the interrupts property, if available. - Valid interrupt names are: + - interrupt-names: Must contain a list of interrupt names corresponding to + the interrupts in the interrupts property, if available. + Valid interrupt names are: - "sec" (secure interrupt) - "temp" (normal (temperature) interrupt) - power-domains: Must contain a reference to the PM domain that the memory -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 5/6] ARM: shmobile: dt: Rename incorrect interrupt related binding @ 2015-10-15 0:33 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-10-15 0:33 UTC (permalink / raw) To: linux-arm-kernel From: Lee Jones <lee.jones@linaro.org> interrupts-names => interrupt-names Other line changes are re-aligning. Signed-off-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- .../bindings/memory-controllers/renesas-memory-controllers.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/memory-controllers/renesas-memory-controllers.txt b/Documentation/devicetree/bindings/memory-controllers/renesas-memory-controllers.txt index c64b7925cd09..9f78e6c82740 100644 --- a/Documentation/devicetree/bindings/memory-controllers/renesas-memory-controllers.txt +++ b/Documentation/devicetree/bindings/memory-controllers/renesas-memory-controllers.txt @@ -24,9 +24,9 @@ Required properties: Optional properties: - interrupts: Must contain a list of interrupt specifiers for memory controller interrupts, if available. - - interrupts-names: Must contain a list of interrupt names corresponding to - the interrupts in the interrupts property, if available. - Valid interrupt names are: + - interrupt-names: Must contain a list of interrupt names corresponding to + the interrupts in the interrupts property, if available. + Valid interrupt names are: - "sec" (secure interrupt) - "temp" (normal (temperature) interrupt) - power-domains: Must contain a reference to the PM domain that the memory -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* Re: [PATCH 5/6] ARM: shmobile: dt: Rename incorrect interrupt related binding 2015-10-15 0:33 ` Simon Horman @ 2015-10-15 8:06 ` Lee Jones -1 siblings, 0 replies; 776+ messages in thread From: Lee Jones @ 2015-10-15 8:06 UTC (permalink / raw) To: linux-arm-kernel On Thu, 15 Oct 2015, Simon Horman wrote: > From: Lee Jones <lee.jones@linaro.org> > > interrupts-names => interrupt-names > > Other line changes are re-aligning. > > Signed-off-by: Lee Jones <lee.jones@linaro.org> > Signed-off-by: Simon Horman <horms+renesas@verge.net.au> > --- > .../bindings/memory-controllers/renesas-memory-controllers.txt | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) Thanks for resending this Simon. > diff --git a/Documentation/devicetree/bindings/memory-controllers/renesas-memory-controllers.txt b/Documentation/devicetree/bindings/memory-controllers/renesas-memory-controllers.txt > index c64b7925cd09..9f78e6c82740 100644 > --- a/Documentation/devicetree/bindings/memory-controllers/renesas-memory-controllers.txt > +++ b/Documentation/devicetree/bindings/memory-controllers/renesas-memory-controllers.txt > @@ -24,9 +24,9 @@ Required properties: > Optional properties: > - interrupts: Must contain a list of interrupt specifiers for memory > controller interrupts, if available. > - - interrupts-names: Must contain a list of interrupt names corresponding to > - the interrupts in the interrupts property, if available. > - Valid interrupt names are: > + - interrupt-names: Must contain a list of interrupt names corresponding to > + the interrupts in the interrupts property, if available. > + Valid interrupt names are: > - "sec" (secure interrupt) > - "temp" (normal (temperature) interrupt) > - power-domains: Must contain a reference to the PM domain that the memory -- Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH 5/6] ARM: shmobile: dt: Rename incorrect interrupt related binding @ 2015-10-15 8:06 ` Lee Jones 0 siblings, 0 replies; 776+ messages in thread From: Lee Jones @ 2015-10-15 8:06 UTC (permalink / raw) To: linux-arm-kernel On Thu, 15 Oct 2015, Simon Horman wrote: > From: Lee Jones <lee.jones@linaro.org> > > interrupts-names => interrupt-names > > Other line changes are re-aligning. > > Signed-off-by: Lee Jones <lee.jones@linaro.org> > Signed-off-by: Simon Horman <horms+renesas@verge.net.au> > --- > .../bindings/memory-controllers/renesas-memory-controllers.txt | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) Thanks for resending this Simon. > diff --git a/Documentation/devicetree/bindings/memory-controllers/renesas-memory-controllers.txt b/Documentation/devicetree/bindings/memory-controllers/renesas-memory-controllers.txt > index c64b7925cd09..9f78e6c82740 100644 > --- a/Documentation/devicetree/bindings/memory-controllers/renesas-memory-controllers.txt > +++ b/Documentation/devicetree/bindings/memory-controllers/renesas-memory-controllers.txt > @@ -24,9 +24,9 @@ Required properties: > Optional properties: > - interrupts: Must contain a list of interrupt specifiers for memory > controller interrupts, if available. > - - interrupts-names: Must contain a list of interrupt names corresponding to > - the interrupts in the interrupts property, if available. > - Valid interrupt names are: > + - interrupt-names: Must contain a list of interrupt names corresponding to > + the interrupts in the interrupts property, if available. > + Valid interrupt names are: > - "sec" (secure interrupt) > - "temp" (normal (temperature) interrupt) > - power-domains: Must contain a reference to the PM domain that the memory -- Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org ? Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH 6/6] ARM: shmobile: R-Mobile: add missing of_node_put 2015-10-15 0:33 ` Simon Horman @ 2015-10-15 0:33 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-10-15 0:33 UTC (permalink / raw) To: linux-arm-kernel From: Julia Lawall <Julia.Lawall@lip6.fr> for_each_child_of_node performs an of_node_get on each iteration, so a break out of the loop requires an of_node_put. The semantic patch that fixes this problem is as follows (http://coccinelle.lip6.fr): // <smpl> @@ expression root,e; local idexpression child; @@ for_each_child_of_node(root, child) { ... when != of_node_put(child) when != e = child ( return child; | + of_node_put(child); ? return ...; ) ... } // </smpl> Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/pm-rmobile.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-shmobile/pm-rmobile.c b/arch/arm/mach-shmobile/pm-rmobile.c index a5b96b990aea..424155b0cfe9 100644 --- a/arch/arm/mach-shmobile/pm-rmobile.c +++ b/arch/arm/mach-shmobile/pm-rmobile.c @@ -342,8 +342,10 @@ static int __init rmobile_add_pm_domains(void __iomem *base, } pd = kzalloc(sizeof(*pd), GFP_KERNEL); - if (!pd) + if (!pd) { + of_node_put(np); return -ENOMEM; + } pd->genpd.name = np->name; pd->base = base; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 6/6] ARM: shmobile: R-Mobile: add missing of_node_put @ 2015-10-15 0:33 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-10-15 0:33 UTC (permalink / raw) To: linux-arm-kernel From: Julia Lawall <Julia.Lawall@lip6.fr> for_each_child_of_node performs an of_node_get on each iteration, so a break out of the loop requires an of_node_put. The semantic patch that fixes this problem is as follows (http://coccinelle.lip6.fr): // <smpl> @@ expression root,e; local idexpression child; @@ for_each_child_of_node(root, child) { ... when != of_node_put(child) when != e = child ( return child; | + of_node_put(child); ? return ...; ) ... } // </smpl> Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/pm-rmobile.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-shmobile/pm-rmobile.c b/arch/arm/mach-shmobile/pm-rmobile.c index a5b96b990aea..424155b0cfe9 100644 --- a/arch/arm/mach-shmobile/pm-rmobile.c +++ b/arch/arm/mach-shmobile/pm-rmobile.c @@ -342,8 +342,10 @@ static int __init rmobile_add_pm_domains(void __iomem *base, } pd = kzalloc(sizeof(*pd), GFP_KERNEL); - if (!pd) + if (!pd) { + of_node_put(np); return -ENOMEM; + } pd->genpd.name = np->name; pd->base = base; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* Re: [GIT PULL] Second Round of Renesas ARM Based SoC Cleanup for v4.4 2015-10-15 0:33 ` Simon Horman @ 2015-10-22 16:48 ` Olof Johansson -1 siblings, 0 replies; 776+ messages in thread From: Olof Johansson @ 2015-10-22 16:48 UTC (permalink / raw) To: linux-arm-kernel On Thu, Oct 15, 2015 at 09:33:02AM +0900, Simon Horman wrote: > Hi Olof, Hi Kevin, Hi Arnd, > > Please consider these second round of Renesas ARM based SoC cleanup for v4.4. > > This pull request is based on the previous round of > such requests, tagged as renesas-cleanup-for-v4.4, > which you have already pulled. > > > The following changes since commit 04418c23a9411b85b8789eab5f4397bcbd62b7b4: > > ARM: shmobile: Remove legacy clock support leftovers (2015-09-14 10:06:56 +0900) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-cleanup2-for-v4.4 > > for you to fetch changes up to 1fd377b3fc1e071702e27b2f828e3abd8b31c74d: > > ARM: shmobile: R-Mobile: add missing of_node_put (2015-10-12 09:15:29 +0900) Merged, thanks! -Olof ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC Cleanup for v4.4 @ 2015-10-22 16:48 ` Olof Johansson 0 siblings, 0 replies; 776+ messages in thread From: Olof Johansson @ 2015-10-22 16:48 UTC (permalink / raw) To: linux-arm-kernel On Thu, Oct 15, 2015 at 09:33:02AM +0900, Simon Horman wrote: > Hi Olof, Hi Kevin, Hi Arnd, > > Please consider these second round of Renesas ARM based SoC cleanup for v4.4. > > This pull request is based on the previous round of > such requests, tagged as renesas-cleanup-for-v4.4, > which you have already pulled. > > > The following changes since commit 04418c23a9411b85b8789eab5f4397bcbd62b7b4: > > ARM: shmobile: Remove legacy clock support leftovers (2015-09-14 10:06:56 +0900) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-cleanup2-for-v4.4 > > for you to fetch changes up to 1fd377b3fc1e071702e27b2f828e3abd8b31c74d: > > ARM: shmobile: R-Mobile: add missing of_node_put (2015-10-12 09:15:29 +0900) Merged, thanks! -Olof ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC Defconfig Updates for v4.4 @ 2015-10-15 0:34 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-10-15 0:34 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Hi Kevin, Hi Arnd, Please consider these second round of Renesas ARM based SoC defconfig updates for v4.4. This pull request is based on the previous round of such requests, tagged as renesas-defconfig-for-v4.4, which I have already sent a pull-request for. The following changes since commit 0a8b0695f4c490c349ee12956d6946576c44a419: ARM: multi_v7_defconfig: Remove Marzen (2015-09-14 10:12:59 +0900) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-defconfig2-for-v4.4 for you to fetch changes up to fec3fb4734b4d2c33975077c250ebd4a3a9f8e34: ARM: multi_v7_defconfig: enable HDMI output for Renesas RCar (2015-10-13 10:42:17 +0900) ---------------------------------------------------------------- Second Round of Renesas ARM Based SoC Defconfig Updates for v4.4 * Enable HDMI output for Renesas RCar ---------------------------------------------------------------- Wolfram Sang (2): ARM: shmobile: defconfig: enable HDMI output for RCar ARM: multi_v7_defconfig: enable HDMI output for Renesas RCar arch/arm/configs/multi_v7_defconfig | 3 +++ arch/arm/configs/shmobile_defconfig | 3 +++ 2 files changed, 6 insertions(+) ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC Defconfig Updates for v4.4 @ 2015-10-15 0:34 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-10-15 0:34 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Hi Kevin, Hi Arnd, Please consider these second round of Renesas ARM based SoC defconfig updates for v4.4. This pull request is based on the previous round of such requests, tagged as renesas-defconfig-for-v4.4, which I have already sent a pull-request for. The following changes since commit 0a8b0695f4c490c349ee12956d6946576c44a419: ARM: multi_v7_defconfig: Remove Marzen (2015-09-14 10:12:59 +0900) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-defconfig2-for-v4.4 for you to fetch changes up to fec3fb4734b4d2c33975077c250ebd4a3a9f8e34: ARM: multi_v7_defconfig: enable HDMI output for Renesas RCar (2015-10-13 10:42:17 +0900) ---------------------------------------------------------------- Second Round of Renesas ARM Based SoC Defconfig Updates for v4.4 * Enable HDMI output for Renesas RCar ---------------------------------------------------------------- Wolfram Sang (2): ARM: shmobile: defconfig: enable HDMI output for RCar ARM: multi_v7_defconfig: enable HDMI output for Renesas RCar arch/arm/configs/multi_v7_defconfig | 3 +++ arch/arm/configs/shmobile_defconfig | 3 +++ 2 files changed, 6 insertions(+) ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH 1/2] ARM: shmobile: defconfig: enable HDMI output for RCar 2015-10-15 0:34 ` Simon Horman @ 2015-10-15 0:34 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-10-15 0:34 UTC (permalink / raw) To: linux-arm-kernel From: Wolfram Sang <wsa+renesas@sang-engineering.com> Actviate HDMI output of the RCar DU (and LVDS while we are here). Enable the HDMI encoder chip found on Lager/Koelsch boards. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/configs/shmobile_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/configs/shmobile_defconfig b/arch/arm/configs/shmobile_defconfig index 0bdeb4925be4..3aef019c0de7 100644 --- a/arch/arm/configs/shmobile_defconfig +++ b/arch/arm/configs/shmobile_defconfig @@ -140,7 +140,10 @@ CONFIG_VIDEO_RENESAS_VSP1=y CONFIG_VIDEO_ADV7180=y CONFIG_VIDEO_ML86V7667=y CONFIG_DRM=y +CONFIG_DRM_I2C_ADV7511=y CONFIG_DRM_RCAR_DU=y +CONFIG_DRM_RCAR_HDMI=y +CONFIG_DRM_RCAR_LVDS=y CONFIG_FB_SH_MOBILE_LCDC=y CONFIG_FB_SH_MOBILE_MERAM=y # CONFIG_LCD_CLASS_DEVICE is not set -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 1/2] ARM: shmobile: defconfig: enable HDMI output for RCar @ 2015-10-15 0:34 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-10-15 0:34 UTC (permalink / raw) To: linux-arm-kernel From: Wolfram Sang <wsa+renesas@sang-engineering.com> Actviate HDMI output of the RCar DU (and LVDS while we are here). Enable the HDMI encoder chip found on Lager/Koelsch boards. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/configs/shmobile_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/configs/shmobile_defconfig b/arch/arm/configs/shmobile_defconfig index 0bdeb4925be4..3aef019c0de7 100644 --- a/arch/arm/configs/shmobile_defconfig +++ b/arch/arm/configs/shmobile_defconfig @@ -140,7 +140,10 @@ CONFIG_VIDEO_RENESAS_VSP1=y CONFIG_VIDEO_ADV7180=y CONFIG_VIDEO_ML86V7667=y CONFIG_DRM=y +CONFIG_DRM_I2C_ADV7511=y CONFIG_DRM_RCAR_DU=y +CONFIG_DRM_RCAR_HDMI=y +CONFIG_DRM_RCAR_LVDS=y CONFIG_FB_SH_MOBILE_LCDC=y CONFIG_FB_SH_MOBILE_MERAM=y # CONFIG_LCD_CLASS_DEVICE is not set -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 2/2] ARM: multi_v7_defconfig: enable HDMI output for Renesas RCar 2015-10-15 0:34 ` Simon Horman @ 2015-10-15 0:34 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-10-15 0:34 UTC (permalink / raw) To: linux-arm-kernel From: Wolfram Sang <wsa+renesas@sang-engineering.com> Actviate HDMI output of the RCar DU (and LVDS while we are here). Enable the HDMI encoder chip found on Lager/Koelsch boards. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/configs/multi_v7_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig index e682da3f9d42..a5c6ebf39b0a 100644 --- a/arch/arm/configs/multi_v7_defconfig +++ b/arch/arm/configs/multi_v7_defconfig @@ -440,6 +440,7 @@ CONFIG_VIDEO_RENESAS_VSP1=m CONFIG_VIDEO_ADV7180=m CONFIG_VIDEO_ML86V7667=m CONFIG_DRM=y +CONFIG_DRM_I2C_ADV7511=m # CONFIG_DRM_I2C_CH7006 is not set # CONFIG_DRM_I2C_SIL164 is not set CONFIG_DRM_NXP_PTN3460=m @@ -450,6 +451,8 @@ CONFIG_DRM_EXYNOS_DSI=y CONFIG_DRM_EXYNOS_FIMD=y CONFIG_DRM_EXYNOS_HDMI=y CONFIG_DRM_RCAR_DU=m +CONFIG_DRM_RCAR_HDMI=y +CONFIG_DRM_RCAR_LVDS=y CONFIG_DRM_TEGRA=y CONFIG_DRM_PANEL_SAMSUNG_S6E8AA0=m CONFIG_DRM_PANEL_SIMPLE=y -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 2/2] ARM: multi_v7_defconfig: enable HDMI output for Renesas RCar @ 2015-10-15 0:34 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-10-15 0:34 UTC (permalink / raw) To: linux-arm-kernel From: Wolfram Sang <wsa+renesas@sang-engineering.com> Actviate HDMI output of the RCar DU (and LVDS while we are here). Enable the HDMI encoder chip found on Lager/Koelsch boards. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/configs/multi_v7_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig index e682da3f9d42..a5c6ebf39b0a 100644 --- a/arch/arm/configs/multi_v7_defconfig +++ b/arch/arm/configs/multi_v7_defconfig @@ -440,6 +440,7 @@ CONFIG_VIDEO_RENESAS_VSP1=m CONFIG_VIDEO_ADV7180=m CONFIG_VIDEO_ML86V7667=m CONFIG_DRM=y +CONFIG_DRM_I2C_ADV7511=m # CONFIG_DRM_I2C_CH7006 is not set # CONFIG_DRM_I2C_SIL164 is not set CONFIG_DRM_NXP_PTN3460=m @@ -450,6 +451,8 @@ CONFIG_DRM_EXYNOS_DSI=y CONFIG_DRM_EXYNOS_FIMD=y CONFIG_DRM_EXYNOS_HDMI=y CONFIG_DRM_RCAR_DU=m +CONFIG_DRM_RCAR_HDMI=y +CONFIG_DRM_RCAR_LVDS=y CONFIG_DRM_TEGRA=y CONFIG_DRM_PANEL_SAMSUNG_S6E8AA0=m CONFIG_DRM_PANEL_SIMPLE=y -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* Re: [GIT PULL] Second Round of Renesas ARM Based SoC Defconfig Updates for v4.4 2015-10-15 0:34 ` Simon Horman @ 2015-10-22 16:47 ` Olof Johansson -1 siblings, 0 replies; 776+ messages in thread From: Olof Johansson @ 2015-10-22 16:47 UTC (permalink / raw) To: linux-arm-kernel On Thu, Oct 15, 2015 at 09:34:02AM +0900, Simon Horman wrote: > Hi Olof, Hi Kevin, Hi Arnd, > > Please consider these second round of Renesas ARM based SoC defconfig > updates for v4.4. > > This pull request is based on the previous round of > such requests, tagged as renesas-defconfig-for-v4.4, > which I have already sent a pull-request for. > > > The following changes since commit 0a8b0695f4c490c349ee12956d6946576c44a419: > > ARM: multi_v7_defconfig: Remove Marzen (2015-09-14 10:12:59 +0900) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-defconfig2-for-v4.4 > > for you to fetch changes up to fec3fb4734b4d2c33975077c250ebd4a3a9f8e34: > > ARM: multi_v7_defconfig: enable HDMI output for Renesas RCar (2015-10-13 10:42:17 +0900) Merged, thanks. -Olof ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC Defconfig Updates for v4.4 @ 2015-10-22 16:47 ` Olof Johansson 0 siblings, 0 replies; 776+ messages in thread From: Olof Johansson @ 2015-10-22 16:47 UTC (permalink / raw) To: linux-arm-kernel On Thu, Oct 15, 2015 at 09:34:02AM +0900, Simon Horman wrote: > Hi Olof, Hi Kevin, Hi Arnd, > > Please consider these second round of Renesas ARM based SoC defconfig > updates for v4.4. > > This pull request is based on the previous round of > such requests, tagged as renesas-defconfig-for-v4.4, > which I have already sent a pull-request for. > > > The following changes since commit 0a8b0695f4c490c349ee12956d6946576c44a419: > > ARM: multi_v7_defconfig: Remove Marzen (2015-09-14 10:12:59 +0900) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-defconfig2-for-v4.4 > > for you to fetch changes up to fec3fb4734b4d2c33975077c250ebd4a3a9f8e34: > > ARM: multi_v7_defconfig: enable HDMI output for Renesas RCar (2015-10-13 10:42:17 +0900) Merged, thanks. -Olof ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC DT Updates for v4.4 @ 2015-10-15 0:34 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-10-15 0:34 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Hi Kevin, Hi Arnd, Please consider these second round of Renesas ARM based SoC DT updates for v4.4. This pull request is based on the previous round of such requests, tagged as renesas-dt-for-v4.4, which I have already sent a pull-request for. The following changes since commit 0877098d82fd1823878534b116a4a725e729701f: ARM: shmobile: porter: add Ether DT support (2015-10-06 09:44:53 +0900) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-dt2-for-v4.4 for you to fetch changes up to 99f7445ea41c0187cd2e78bcb58cdd9e6c1756e5: ARM: shmobile: porter: enable internal PCI and USB PHY (2015-10-13 10:00:12 +0900) ---------------------------------------------------------------- Second Round of Renesas ARM Based SoC DT Updates for v4.4 * Enable the following on the porter board: I2C2, PCI, PCIe, QSPI, SATA0, SDHI0/2, USB PHY and VIN0/ADV7180. ---------------------------------------------------------------- Sergei Shtylyov (7): ARM: shmobile: porter: add SDHI0/2 DT support ARM: shmobile: porter: enable SATA0 ARM: shmobile: porter: add I2C2 DT support ARM: shmobile: porter: add VIN0/ADV7180 DT support ARM: shmobile: porter: add QSPI DT support ARM: shmobile: porter: enable PCIe ARM: shmobile: porter: enable internal PCI and USB PHY arch/arm/boot/dts/r8a7791-porter.dts | 202 +++++++++++++++++++++++++++++++++++ 1 file changed, 202 insertions(+) ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC DT Updates for v4.4 @ 2015-10-15 0:34 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-10-15 0:34 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Hi Kevin, Hi Arnd, Please consider these second round of Renesas ARM based SoC DT updates for v4.4. This pull request is based on the previous round of such requests, tagged as renesas-dt-for-v4.4, which I have already sent a pull-request for. The following changes since commit 0877098d82fd1823878534b116a4a725e729701f: ARM: shmobile: porter: add Ether DT support (2015-10-06 09:44:53 +0900) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-dt2-for-v4.4 for you to fetch changes up to 99f7445ea41c0187cd2e78bcb58cdd9e6c1756e5: ARM: shmobile: porter: enable internal PCI and USB PHY (2015-10-13 10:00:12 +0900) ---------------------------------------------------------------- Second Round of Renesas ARM Based SoC DT Updates for v4.4 * Enable the following on the porter board: I2C2, PCI, PCIe, QSPI, SATA0, SDHI0/2, USB PHY and VIN0/ADV7180. ---------------------------------------------------------------- Sergei Shtylyov (7): ARM: shmobile: porter: add SDHI0/2 DT support ARM: shmobile: porter: enable SATA0 ARM: shmobile: porter: add I2C2 DT support ARM: shmobile: porter: add VIN0/ADV7180 DT support ARM: shmobile: porter: add QSPI DT support ARM: shmobile: porter: enable PCIe ARM: shmobile: porter: enable internal PCI and USB PHY arch/arm/boot/dts/r8a7791-porter.dts | 202 +++++++++++++++++++++++++++++++++++ 1 file changed, 202 insertions(+) ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH 1/7] ARM: shmobile: porter: add SDHI0/2 DT support 2015-10-15 0:34 ` Simon Horman @ 2015-10-15 0:34 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-10-15 0:34 UTC (permalink / raw) To: linux-arm-kernel From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Define the Porter board dependent part of the SDHI0/2 device nodes along with the necessary voltage regulators (note that the Vcc regulators are dummy -- they are required but don't actually exist on the board). Also, GPIOs have to be used for the CD and WP signals due to the SDHI driver constraints... This patch is analogous to the commit 1299df03d719 ("ARM: shmobile: henninger: add SDHI0/2 DT support") as there are no differences between those boards in this respect. Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791-porter.dts | 76 ++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) diff --git a/arch/arm/boot/dts/r8a7791-porter.dts b/arch/arm/boot/dts/r8a7791-porter.dts index ca59ff861923..5bc4d23c1edb 100644 --- a/arch/arm/boot/dts/r8a7791-porter.dts +++ b/arch/arm/boot/dts/r8a7791-porter.dts @@ -10,6 +10,7 @@ /dts-v1/; #include "r8a7791.dtsi" +#include <dt-bindings/gpio/gpio.h> / { model = "Porter"; @@ -33,6 +34,50 @@ device_type = "memory"; reg = <2 0x00000000 0 0x40000000>; }; + + vcc_sdhi0: regulator@0 { + compatible = "regulator-fixed"; + + regulator-name = "SDHI0 Vcc"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + }; + + vccq_sdhi0: regulator@1 { + compatible = "regulator-gpio"; + + regulator-name = "SDHI0 VccQ"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + + gpios = <&gpio2 12 GPIO_ACTIVE_HIGH>; + gpios-states = <1>; + states = <3300000 1 + 1800000 0>; + }; + + vcc_sdhi2: regulator@2 { + compatible = "regulator-fixed"; + + regulator-name = "SDHI2 Vcc"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + }; + + vccq_sdhi2: regulator@3 { + compatible = "regulator-gpio"; + + regulator-name = "SDHI2 VccQ"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + + gpios = <&gpio2 26 GPIO_ACTIVE_HIGH>; + gpios-states = <1>; + states = <3300000 1 + 1800000 0>; + }; }; &extal_clk { @@ -54,6 +99,16 @@ renesas,groups = "intc_irq0"; renesas,function = "intc"; }; + + sdhi0_pins: sd0 { + renesas,groups = "sdhi0_data4", "sdhi0_ctrl"; + renesas,function = "sdhi0"; + }; + + sdhi2_pins: sd2 { + renesas,groups = "sdhi2_data4", "sdhi2_ctrl"; + renesas,function = "sdhi2"; + }; }; &scif0 { @@ -78,3 +133,24 @@ micrel,led-mode = <1>; }; }; + +&sdhi0 { + pinctrl-0 = <&sdhi0_pins>; + pinctrl-names = "default"; + + vmmc-supply = <&vcc_sdhi0>; + vqmmc-supply = <&vccq_sdhi0>; + cd-gpios = <&gpio6 6 GPIO_ACTIVE_LOW>; + wp-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>; + status = "okay"; +}; + +&sdhi2 { + pinctrl-0 = <&sdhi2_pins>; + pinctrl-names = "default"; + + vmmc-supply = <&vcc_sdhi2>; + vqmmc-supply = <&vccq_sdhi2>; + cd-gpios = <&gpio6 22 GPIO_ACTIVE_LOW>; + status = "okay"; +}; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 1/7] ARM: shmobile: porter: add SDHI0/2 DT support @ 2015-10-15 0:34 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-10-15 0:34 UTC (permalink / raw) To: linux-arm-kernel From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Define the Porter board dependent part of the SDHI0/2 device nodes along with the necessary voltage regulators (note that the Vcc regulators are dummy -- they are required but don't actually exist on the board). Also, GPIOs have to be used for the CD and WP signals due to the SDHI driver constraints... This patch is analogous to the commit 1299df03d719 ("ARM: shmobile: henninger: add SDHI0/2 DT support") as there are no differences between those boards in this respect. Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791-porter.dts | 76 ++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) diff --git a/arch/arm/boot/dts/r8a7791-porter.dts b/arch/arm/boot/dts/r8a7791-porter.dts index ca59ff861923..5bc4d23c1edb 100644 --- a/arch/arm/boot/dts/r8a7791-porter.dts +++ b/arch/arm/boot/dts/r8a7791-porter.dts @@ -10,6 +10,7 @@ /dts-v1/; #include "r8a7791.dtsi" +#include <dt-bindings/gpio/gpio.h> / { model = "Porter"; @@ -33,6 +34,50 @@ device_type = "memory"; reg = <2 0x00000000 0 0x40000000>; }; + + vcc_sdhi0: regulator at 0 { + compatible = "regulator-fixed"; + + regulator-name = "SDHI0 Vcc"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + }; + + vccq_sdhi0: regulator at 1 { + compatible = "regulator-gpio"; + + regulator-name = "SDHI0 VccQ"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + + gpios = <&gpio2 12 GPIO_ACTIVE_HIGH>; + gpios-states = <1>; + states = <3300000 1 + 1800000 0>; + }; + + vcc_sdhi2: regulator at 2 { + compatible = "regulator-fixed"; + + regulator-name = "SDHI2 Vcc"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + }; + + vccq_sdhi2: regulator at 3 { + compatible = "regulator-gpio"; + + regulator-name = "SDHI2 VccQ"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + + gpios = <&gpio2 26 GPIO_ACTIVE_HIGH>; + gpios-states = <1>; + states = <3300000 1 + 1800000 0>; + }; }; &extal_clk { @@ -54,6 +99,16 @@ renesas,groups = "intc_irq0"; renesas,function = "intc"; }; + + sdhi0_pins: sd0 { + renesas,groups = "sdhi0_data4", "sdhi0_ctrl"; + renesas,function = "sdhi0"; + }; + + sdhi2_pins: sd2 { + renesas,groups = "sdhi2_data4", "sdhi2_ctrl"; + renesas,function = "sdhi2"; + }; }; &scif0 { @@ -78,3 +133,24 @@ micrel,led-mode = <1>; }; }; + +&sdhi0 { + pinctrl-0 = <&sdhi0_pins>; + pinctrl-names = "default"; + + vmmc-supply = <&vcc_sdhi0>; + vqmmc-supply = <&vccq_sdhi0>; + cd-gpios = <&gpio6 6 GPIO_ACTIVE_LOW>; + wp-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>; + status = "okay"; +}; + +&sdhi2 { + pinctrl-0 = <&sdhi2_pins>; + pinctrl-names = "default"; + + vmmc-supply = <&vcc_sdhi2>; + vqmmc-supply = <&vccq_sdhi2>; + cd-gpios = <&gpio6 22 GPIO_ACTIVE_LOW>; + status = "okay"; +}; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 2/7] ARM: shmobile: porter: enable SATA0 2015-10-15 0:34 ` Simon Horman @ 2015-10-15 0:34 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-10-15 0:34 UTC (permalink / raw) To: linux-arm-kernel From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Enable SATA0 device for the Porter board. This patch is analogous to the commit 5a62ec57004f ("ARM: shmobile: henninger: enable SATA0") as there are no differences between the boards in this respect. Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791-porter.dts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/r8a7791-porter.dts b/arch/arm/boot/dts/r8a7791-porter.dts index 5bc4d23c1edb..7f46980ffd12 100644 --- a/arch/arm/boot/dts/r8a7791-porter.dts +++ b/arch/arm/boot/dts/r8a7791-porter.dts @@ -154,3 +154,7 @@ cd-gpios = <&gpio6 22 GPIO_ACTIVE_LOW>; status = "okay"; }; + +&sata0 { + status = "okay"; +}; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 2/7] ARM: shmobile: porter: enable SATA0 @ 2015-10-15 0:34 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-10-15 0:34 UTC (permalink / raw) To: linux-arm-kernel From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Enable SATA0 device for the Porter board. This patch is analogous to the commit 5a62ec57004f ("ARM: shmobile: henninger: enable SATA0") as there are no differences between the boards in this respect. Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791-porter.dts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/r8a7791-porter.dts b/arch/arm/boot/dts/r8a7791-porter.dts index 5bc4d23c1edb..7f46980ffd12 100644 --- a/arch/arm/boot/dts/r8a7791-porter.dts +++ b/arch/arm/boot/dts/r8a7791-porter.dts @@ -154,3 +154,7 @@ cd-gpios = <&gpio6 22 GPIO_ACTIVE_LOW>; status = "okay"; }; + +&sata0 { + status = "okay"; +}; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 3/7] ARM: shmobile: porter: add I2C2 DT support 2015-10-15 0:34 ` Simon Horman @ 2015-10-15 0:34 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-10-15 0:34 UTC (permalink / raw) To: linux-arm-kernel From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Define the Porter board dependent part of the I2C2 device node. This patch is analogous to the commit 29a647c396a0 ("ARM: shmobile: henninger: add I2C2 DT support") as there are no differences between the boards in this respect. Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791-porter.dts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/arm/boot/dts/r8a7791-porter.dts b/arch/arm/boot/dts/r8a7791-porter.dts index 7f46980ffd12..03edb8424ef5 100644 --- a/arch/arm/boot/dts/r8a7791-porter.dts +++ b/arch/arm/boot/dts/r8a7791-porter.dts @@ -109,6 +109,11 @@ renesas,groups = "sdhi2_data4", "sdhi2_ctrl"; renesas,function = "sdhi2"; }; + + i2c2_pins: i2c2 { + renesas,groups = "i2c2"; + renesas,function = "i2c2"; + }; }; &scif0 { @@ -155,6 +160,14 @@ status = "okay"; }; +&i2c2 { + pinctrl-0 = <&i2c2_pins>; + pinctrl-names = "default"; + + status = "okay"; + clock-frequency = <400000>; +}; + &sata0 { status = "okay"; }; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 3/7] ARM: shmobile: porter: add I2C2 DT support @ 2015-10-15 0:34 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-10-15 0:34 UTC (permalink / raw) To: linux-arm-kernel From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Define the Porter board dependent part of the I2C2 device node. This patch is analogous to the commit 29a647c396a0 ("ARM: shmobile: henninger: add I2C2 DT support") as there are no differences between the boards in this respect. Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791-porter.dts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/arm/boot/dts/r8a7791-porter.dts b/arch/arm/boot/dts/r8a7791-porter.dts index 7f46980ffd12..03edb8424ef5 100644 --- a/arch/arm/boot/dts/r8a7791-porter.dts +++ b/arch/arm/boot/dts/r8a7791-porter.dts @@ -109,6 +109,11 @@ renesas,groups = "sdhi2_data4", "sdhi2_ctrl"; renesas,function = "sdhi2"; }; + + i2c2_pins: i2c2 { + renesas,groups = "i2c2"; + renesas,function = "i2c2"; + }; }; &scif0 { @@ -155,6 +160,14 @@ status = "okay"; }; +&i2c2 { + pinctrl-0 = <&i2c2_pins>; + pinctrl-names = "default"; + + status = "okay"; + clock-frequency = <400000>; +}; + &sata0 { status = "okay"; }; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 4/7] ARM: shmobile: porter: add VIN0/ADV7180 DT support 2015-10-15 0:34 ` Simon Horman @ 2015-10-15 0:34 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-10-15 0:34 UTC (permalink / raw) To: linux-arm-kernel From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Define the Porter board dependent part of the VIN0 device node. Add the device node for Analog Devices ADV7180 video decoder to I2C2 bus. Add the necessary subnodes to interconnect VIN0 and ADV7180 devices. This patch is analogous to the commit 8d62f4f75320 ("ARM: shmobile: henninger: add VIN0/ADV7180 DT support") as there are no differences between the boards in this respect. Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791-porter.dts | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/arch/arm/boot/dts/r8a7791-porter.dts b/arch/arm/boot/dts/r8a7791-porter.dts index 03edb8424ef5..b7fa8261e02f 100644 --- a/arch/arm/boot/dts/r8a7791-porter.dts +++ b/arch/arm/boot/dts/r8a7791-porter.dts @@ -114,6 +114,11 @@ renesas,groups = "i2c2"; renesas,function = "i2c2"; }; + + vin0_pins: vin0 { + renesas,groups = "vin0_data8", "vin0_clk"; + renesas,function = "vin0"; + }; }; &scif0 { @@ -166,8 +171,38 @@ status = "okay"; clock-frequency = <400000>; + + composite-in@20 { + compatible = "adi,adv7180"; + reg = <0x20>; + remote = <&vin0>; + + port { + adv7180: endpoint { + bus-width = <8>; + remote-endpoint = <&vin0ep>; + }; + }; + }; }; &sata0 { status = "okay"; }; + +/* composite video input */ +&vin0 { + status = "ok"; + pinctrl-0 = <&vin0_pins>; + pinctrl-names = "default"; + + port { + #address-cells = <1>; + #size-cells = <0>; + + vin0ep: endpoint { + remote-endpoint = <&adv7180>; + bus-width = <8>; + }; + }; +}; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 4/7] ARM: shmobile: porter: add VIN0/ADV7180 DT support @ 2015-10-15 0:34 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-10-15 0:34 UTC (permalink / raw) To: linux-arm-kernel From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Define the Porter board dependent part of the VIN0 device node. Add the device node for Analog Devices ADV7180 video decoder to I2C2 bus. Add the necessary subnodes to interconnect VIN0 and ADV7180 devices. This patch is analogous to the commit 8d62f4f75320 ("ARM: shmobile: henninger: add VIN0/ADV7180 DT support") as there are no differences between the boards in this respect. Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791-porter.dts | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/arch/arm/boot/dts/r8a7791-porter.dts b/arch/arm/boot/dts/r8a7791-porter.dts index 03edb8424ef5..b7fa8261e02f 100644 --- a/arch/arm/boot/dts/r8a7791-porter.dts +++ b/arch/arm/boot/dts/r8a7791-porter.dts @@ -114,6 +114,11 @@ renesas,groups = "i2c2"; renesas,function = "i2c2"; }; + + vin0_pins: vin0 { + renesas,groups = "vin0_data8", "vin0_clk"; + renesas,function = "vin0"; + }; }; &scif0 { @@ -166,8 +171,38 @@ status = "okay"; clock-frequency = <400000>; + + composite-in at 20 { + compatible = "adi,adv7180"; + reg = <0x20>; + remote = <&vin0>; + + port { + adv7180: endpoint { + bus-width = <8>; + remote-endpoint = <&vin0ep>; + }; + }; + }; }; &sata0 { status = "okay"; }; + +/* composite video input */ +&vin0 { + status = "ok"; + pinctrl-0 = <&vin0_pins>; + pinctrl-names = "default"; + + port { + #address-cells = <1>; + #size-cells = <0>; + + vin0ep: endpoint { + remote-endpoint = <&adv7180>; + bus-width = <8>; + }; + }; +}; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 5/7] ARM: shmobile: porter: add QSPI DT support 2015-10-15 0:34 ` Simon Horman @ 2015-10-15 0:34 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-10-15 0:34 UTC (permalink / raw) To: linux-arm-kernel From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Define the Porter board dependent part of the QSPI device node. Add device nodes for Spansion S25FL512S SPI flash and the MTD partitions on it. This patch is mostly analogous to the commit f59838d44835 ("ARM: shmobile: henninger: add QSPI DT support") as there are no differences between the boards in this respect. Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791-porter.dts | 38 ++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/arch/arm/boot/dts/r8a7791-porter.dts b/arch/arm/boot/dts/r8a7791-porter.dts index b7fa8261e02f..4eebc67773d2 100644 --- a/arch/arm/boot/dts/r8a7791-porter.dts +++ b/arch/arm/boot/dts/r8a7791-porter.dts @@ -110,6 +110,11 @@ renesas,function = "sdhi2"; }; + qspi_pins: spi0 { + renesas,groups = "qspi_ctrl", "qspi_data4"; + renesas,function = "qspi"; + }; + i2c2_pins: i2c2 { renesas,groups = "i2c2"; renesas,function = "i2c2"; @@ -165,6 +170,39 @@ status = "okay"; }; +&qspi { + pinctrl-0 = <&qspi_pins>; + pinctrl-names = "default"; + + status = "okay"; + + flash@0 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "spansion,s25fl512s", "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <30000000>; + spi-tx-bus-width = <4>; + spi-rx-bus-width = <4>; + m25p,fast-read; + + partition@0 { + label = "loader_prg"; + reg = <0x00000000 0x00040000>; + read-only; + }; + partition@40000 { + label = "user_prg"; + reg = <0x00040000 0x00400000>; + read-only; + }; + partition@440000 { + label = "flash_fs"; + reg = <0x00440000 0x03bc0000>; + }; + }; +}; + &i2c2 { pinctrl-0 = <&i2c2_pins>; pinctrl-names = "default"; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 5/7] ARM: shmobile: porter: add QSPI DT support @ 2015-10-15 0:34 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-10-15 0:34 UTC (permalink / raw) To: linux-arm-kernel From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Define the Porter board dependent part of the QSPI device node. Add device nodes for Spansion S25FL512S SPI flash and the MTD partitions on it. This patch is mostly analogous to the commit f59838d44835 ("ARM: shmobile: henninger: add QSPI DT support") as there are no differences between the boards in this respect. Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791-porter.dts | 38 ++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/arch/arm/boot/dts/r8a7791-porter.dts b/arch/arm/boot/dts/r8a7791-porter.dts index b7fa8261e02f..4eebc67773d2 100644 --- a/arch/arm/boot/dts/r8a7791-porter.dts +++ b/arch/arm/boot/dts/r8a7791-porter.dts @@ -110,6 +110,11 @@ renesas,function = "sdhi2"; }; + qspi_pins: spi0 { + renesas,groups = "qspi_ctrl", "qspi_data4"; + renesas,function = "qspi"; + }; + i2c2_pins: i2c2 { renesas,groups = "i2c2"; renesas,function = "i2c2"; @@ -165,6 +170,39 @@ status = "okay"; }; +&qspi { + pinctrl-0 = <&qspi_pins>; + pinctrl-names = "default"; + + status = "okay"; + + flash at 0 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "spansion,s25fl512s", "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <30000000>; + spi-tx-bus-width = <4>; + spi-rx-bus-width = <4>; + m25p,fast-read; + + partition at 0 { + label = "loader_prg"; + reg = <0x00000000 0x00040000>; + read-only; + }; + partition at 40000 { + label = "user_prg"; + reg = <0x00040000 0x00400000>; + read-only; + }; + partition at 440000 { + label = "flash_fs"; + reg = <0x00440000 0x03bc0000>; + }; + }; +}; + &i2c2 { pinctrl-0 = <&i2c2_pins>; pinctrl-names = "default"; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 6/7] ARM: shmobile: porter: enable PCIe 2015-10-15 0:34 ` Simon Horman @ 2015-10-15 0:34 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-10-15 0:34 UTC (permalink / raw) To: linux-arm-kernel From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Enable the PCIe controller and clock for the Porter board. This patch is analogous to the commit 485f3ce67c11 ("ARM: shmobile: henninger: Enable PCIe Controller & PCIe bus clock") as there are no differences between the boards in this respect. Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791-porter.dts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/r8a7791-porter.dts b/arch/arm/boot/dts/r8a7791-porter.dts index 4eebc67773d2..c46aad3954f4 100644 --- a/arch/arm/boot/dts/r8a7791-porter.dts +++ b/arch/arm/boot/dts/r8a7791-porter.dts @@ -244,3 +244,11 @@ }; }; }; + +&pcie_bus_clk { + status = "okay"; +}; + +&pciec { + status = "okay"; +}; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 6/7] ARM: shmobile: porter: enable PCIe @ 2015-10-15 0:34 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-10-15 0:34 UTC (permalink / raw) To: linux-arm-kernel From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Enable the PCIe controller and clock for the Porter board. This patch is analogous to the commit 485f3ce67c11 ("ARM: shmobile: henninger: Enable PCIe Controller & PCIe bus clock") as there are no differences between the boards in this respect. Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791-porter.dts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/r8a7791-porter.dts b/arch/arm/boot/dts/r8a7791-porter.dts index 4eebc67773d2..c46aad3954f4 100644 --- a/arch/arm/boot/dts/r8a7791-porter.dts +++ b/arch/arm/boot/dts/r8a7791-porter.dts @@ -244,3 +244,11 @@ }; }; }; + +&pcie_bus_clk { + status = "okay"; +}; + +&pciec { + status = "okay"; +}; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 7/7] ARM: shmobile: porter: enable internal PCI and USB PHY 2015-10-15 0:34 ` Simon Horman @ 2015-10-15 0:34 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-10-15 0:34 UTC (permalink / raw) To: linux-arm-kernel From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Enable internal AHB-PCI bridges for the USB EHCI/OHCI controllers attached to them and also enable USB PHY device for the Porter board. We have to enable everything in one patch since EHCI/OHCI devices are already linked to the USB PHY device. Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791-porter.dts | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/arch/arm/boot/dts/r8a7791-porter.dts b/arch/arm/boot/dts/r8a7791-porter.dts index c46aad3954f4..fe0f12fc02a1 100644 --- a/arch/arm/boot/dts/r8a7791-porter.dts +++ b/arch/arm/boot/dts/r8a7791-porter.dts @@ -120,6 +120,16 @@ renesas,function = "i2c2"; }; + usb0_pins: usb0 { + renesas,groups = "usb0"; + renesas,function = "usb0"; + }; + + usb1_pins: usb1 { + renesas,groups = "usb1"; + renesas,function = "usb1"; + }; + vin0_pins: vin0 { renesas,groups = "vin0_data8", "vin0_clk"; renesas,function = "vin0"; @@ -245,6 +255,24 @@ }; }; +&pci0 { + pinctrl-0 = <&usb0_pins>; + pinctrl-names = "default"; + + status = "okay"; +}; + +&pci1 { + pinctrl-0 = <&usb1_pins>; + pinctrl-names = "default"; + + status = "okay"; +}; + +&usbphy { + status = "okay"; +}; + &pcie_bus_clk { status = "okay"; }; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 7/7] ARM: shmobile: porter: enable internal PCI and USB PHY @ 2015-10-15 0:34 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-10-15 0:34 UTC (permalink / raw) To: linux-arm-kernel From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Enable internal AHB-PCI bridges for the USB EHCI/OHCI controllers attached to them and also enable USB PHY device for the Porter board. We have to enable everything in one patch since EHCI/OHCI devices are already linked to the USB PHY device. Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791-porter.dts | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/arch/arm/boot/dts/r8a7791-porter.dts b/arch/arm/boot/dts/r8a7791-porter.dts index c46aad3954f4..fe0f12fc02a1 100644 --- a/arch/arm/boot/dts/r8a7791-porter.dts +++ b/arch/arm/boot/dts/r8a7791-porter.dts @@ -120,6 +120,16 @@ renesas,function = "i2c2"; }; + usb0_pins: usb0 { + renesas,groups = "usb0"; + renesas,function = "usb0"; + }; + + usb1_pins: usb1 { + renesas,groups = "usb1"; + renesas,function = "usb1"; + }; + vin0_pins: vin0 { renesas,groups = "vin0_data8", "vin0_clk"; renesas,function = "vin0"; @@ -245,6 +255,24 @@ }; }; +&pci0 { + pinctrl-0 = <&usb0_pins>; + pinctrl-names = "default"; + + status = "okay"; +}; + +&pci1 { + pinctrl-0 = <&usb1_pins>; + pinctrl-names = "default"; + + status = "okay"; +}; + +&usbphy { + status = "okay"; +}; + &pcie_bus_clk { status = "okay"; }; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* Re: [GIT PULL] Second Round of Renesas ARM Based SoC DT Updates for v4.4 2015-10-15 0:34 ` Simon Horman @ 2015-10-15 15:19 ` Arnd Bergmann -1 siblings, 0 replies; 776+ messages in thread From: Arnd Bergmann @ 2015-10-15 15:19 UTC (permalink / raw) To: linux-arm-kernel On Thursday 15 October 2015 09:34:15 Simon Horman wrote: > Please consider these second round of Renesas ARM based SoC DT updates for v4.4. > > This pull request is based on the previous round of > such requests, tagged as renesas-dt-for-v4.4, > which I have already sent a pull-request for. > Pulled into next/dt, thanks! Arnd ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC DT Updates for v4.4 @ 2015-10-15 15:19 ` Arnd Bergmann 0 siblings, 0 replies; 776+ messages in thread From: Arnd Bergmann @ 2015-10-15 15:19 UTC (permalink / raw) To: linux-arm-kernel On Thursday 15 October 2015 09:34:15 Simon Horman wrote: > Please consider these second round of Renesas ARM based SoC DT updates for v4.4. > > This pull request is based on the previous round of > such requests, tagged as renesas-dt-for-v4.4, > which I have already sent a pull-request for. > Pulled into next/dt, thanks! Arnd ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC DT Updates for v4.5 @ 2015-11-27 1:55 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-11-27 1:55 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Hi Kevin, Hi Arnd, Please consider these second round of Renesas ARM based SoC DT updates for v4.5. This pull request extends support for Renesas ARM Based SoCs via DT and includes several minor fixes and cleanups. The following changes since commit 998f468f34f41905051556a9897dbc204b1b75b4: Merge tag 'v4.4-rc1' into HEAD (2015-11-24 12:00:02 +0900) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-dt2-for-v4.5 for you to fetch changes up to c8d9fdbe2d648caaa510d45dc13eba2e9957140b: ARM: shmobile: sh73a0 dtsi: Add L2 cache-controller node (2015-11-25 10:42:38 +0900) ---------------------------------------------------------------- Second Round of Renesas ARM Based SoC DT Updates for v4.5 * sh73a0, r8a7740: Add L2 cache-controller node * r8a7791, r8a7794: remove deprecated #gpio-range-cells * r8a7793: Add DU support and enable for VGA port * r8a7790: switch console back to scif0 * alt: Correct ether and scif2 pinmux * koelsch: Correct hdmi pinmux * silk, lager, porter, bockw: Move SPI FLASH partitions to subnode * bockw: Add schi0 pinmux ---------------------------------------------------------------- Geert Uytterhoeven (6): ARM: shmobile: bockw: Move SPI FLASH partition to subnode ARM: shmobile: porter: Move SPI FLASH partitions to subnode ARM: shmobile: lager: Move SPI FLASH partitions to subnode ARM: shmobile: silk: Move SPI FLASH partitions to subnode ARM: shmobile: r8a7740 dtsi: Add L2 cache-controller node ARM: shmobile: sh73a0 dtsi: Add L2 cache-controller node Laurent Pinchart (2): ARM: shmobile: r8a7793: Add DU node to device tree ARM: shmobile: r8a7791: koelsch: Fix pinmux for HDMI Magnus Damm (1): ARM: shmobile: r8a7794: alt: Enable PFC DU for the VGA port Simon Horman (2): ARM: shmobile: alt: Correct scif2 pfc ARM: shmobile: alt: Correct ether pfc Ulrich Hecht (2): ARM: shmobile: r8a7790: switch console back to scif0 ARM: shmobile: bockw dts: define sdhi0 pins with pull-ups Wolfram Sang (2): ARM: shmobile: r8a7791: remove deprecated #gpio-range-cells from dtsi ARM: shmobile: r8a7794: remove deprecated #gpio-range-cells from dtsi arch/arm/boot/dts/r8a7740.dtsi | 13 ++++++++++ arch/arm/boot/dts/r8a7778-bockw.dts | 23 +++++++++++------ arch/arm/boot/dts/r8a7790-lager.dts | 47 +++++++++++++++++++---------------- arch/arm/boot/dts/r8a7791-koelsch.dts | 2 +- arch/arm/boot/dts/r8a7791-porter.dts | 33 +++++++++++++----------- arch/arm/boot/dts/r8a7791.dtsi | 1 - arch/arm/boot/dts/r8a7793.dtsi | 30 ++++++++++++++++++++++ arch/arm/boot/dts/r8a7794-alt.dts | 19 +++++++++++--- arch/arm/boot/dts/r8a7794-silk.dts | 33 +++++++++++++----------- arch/arm/boot/dts/r8a7794.dtsi | 1 - arch/arm/boot/dts/sh73a0.dtsi | 14 +++++++++++ 11 files changed, 150 insertions(+), 66 deletions(-) ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC DT Updates for v4.5 @ 2015-11-27 1:55 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-11-27 1:55 UTC (permalink / raw) To: linux-arm-kernel Hi Olof, Hi Kevin, Hi Arnd, Please consider these second round of Renesas ARM based SoC DT updates for v4.5. This pull request extends support for Renesas ARM Based SoCs via DT and includes several minor fixes and cleanups. The following changes since commit 998f468f34f41905051556a9897dbc204b1b75b4: Merge tag 'v4.4-rc1' into HEAD (2015-11-24 12:00:02 +0900) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-dt2-for-v4.5 for you to fetch changes up to c8d9fdbe2d648caaa510d45dc13eba2e9957140b: ARM: shmobile: sh73a0 dtsi: Add L2 cache-controller node (2015-11-25 10:42:38 +0900) ---------------------------------------------------------------- Second Round of Renesas ARM Based SoC DT Updates for v4.5 * sh73a0, r8a7740: Add L2 cache-controller node * r8a7791, r8a7794: remove deprecated #gpio-range-cells * r8a7793: Add DU support and enable for VGA port * r8a7790: switch console back to scif0 * alt: Correct ether and scif2 pinmux * koelsch: Correct hdmi pinmux * silk, lager, porter, bockw: Move SPI FLASH partitions to subnode * bockw: Add schi0 pinmux ---------------------------------------------------------------- Geert Uytterhoeven (6): ARM: shmobile: bockw: Move SPI FLASH partition to subnode ARM: shmobile: porter: Move SPI FLASH partitions to subnode ARM: shmobile: lager: Move SPI FLASH partitions to subnode ARM: shmobile: silk: Move SPI FLASH partitions to subnode ARM: shmobile: r8a7740 dtsi: Add L2 cache-controller node ARM: shmobile: sh73a0 dtsi: Add L2 cache-controller node Laurent Pinchart (2): ARM: shmobile: r8a7793: Add DU node to device tree ARM: shmobile: r8a7791: koelsch: Fix pinmux for HDMI Magnus Damm (1): ARM: shmobile: r8a7794: alt: Enable PFC DU for the VGA port Simon Horman (2): ARM: shmobile: alt: Correct scif2 pfc ARM: shmobile: alt: Correct ether pfc Ulrich Hecht (2): ARM: shmobile: r8a7790: switch console back to scif0 ARM: shmobile: bockw dts: define sdhi0 pins with pull-ups Wolfram Sang (2): ARM: shmobile: r8a7791: remove deprecated #gpio-range-cells from dtsi ARM: shmobile: r8a7794: remove deprecated #gpio-range-cells from dtsi arch/arm/boot/dts/r8a7740.dtsi | 13 ++++++++++ arch/arm/boot/dts/r8a7778-bockw.dts | 23 +++++++++++------ arch/arm/boot/dts/r8a7790-lager.dts | 47 +++++++++++++++++++---------------- arch/arm/boot/dts/r8a7791-koelsch.dts | 2 +- arch/arm/boot/dts/r8a7791-porter.dts | 33 +++++++++++++----------- arch/arm/boot/dts/r8a7791.dtsi | 1 - arch/arm/boot/dts/r8a7793.dtsi | 30 ++++++++++++++++++++++ arch/arm/boot/dts/r8a7794-alt.dts | 19 +++++++++++--- arch/arm/boot/dts/r8a7794-silk.dts | 33 +++++++++++++----------- arch/arm/boot/dts/r8a7794.dtsi | 1 - arch/arm/boot/dts/sh73a0.dtsi | 14 +++++++++++ 11 files changed, 150 insertions(+), 66 deletions(-) ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH 01/15] ARM: shmobile: r8a7790: switch console back to scif0 2015-11-27 1:55 ` Simon Horman @ 2015-11-27 1:55 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-11-27 1:55 UTC (permalink / raw) To: linux-arm-kernel From: Ulrich Hecht <ulrich.hecht+renesas@gmail.com> The boot loader uses scif0, and so must we if we want earlycon to work. Partially reverts 7c0558941 ("ARM: shmobile: r8a7790: switch from scif to scifa"). Signed-off-by: Ulrich Hecht <ulrich.hecht+renesas@gmail.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7790-lager.dts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/arch/arm/boot/dts/r8a7790-lager.dts b/arch/arm/boot/dts/r8a7790-lager.dts index e2174d816e78..79f141188d99 100644 --- a/arch/arm/boot/dts/r8a7790-lager.dts +++ b/arch/arm/boot/dts/r8a7790-lager.dts @@ -47,13 +47,13 @@ compatible = "renesas,lager", "renesas,r8a7790"; aliases { - serial0 = &scifa0; + serial0 = &scif0; serial1 = &scifa1; }; chosen { bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp"; - stdout-path = &scifa0; + stdout-path = &scif0; }; memory@40000000 { @@ -296,9 +296,9 @@ renesas,function = "du"; }; - scifa0_pins: serial0 { - renesas,groups = "scifa0_data"; - renesas,function = "scifa0"; + scif0_pins: serial0 { + renesas,groups = "scif0_data"; + renesas,function = "scif0"; }; ether_pins: ether { @@ -467,8 +467,8 @@ }; }; -&scifa0 { - pinctrl-0 = <&scifa0_pins>; +&scif0 { + pinctrl-0 = <&scif0_pins>; pinctrl-names = "default"; status = "okay"; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 01/15] ARM: shmobile: r8a7790: switch console back to scif0 @ 2015-11-27 1:55 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-11-27 1:55 UTC (permalink / raw) To: linux-arm-kernel From: Ulrich Hecht <ulrich.hecht+renesas@gmail.com> The boot loader uses scif0, and so must we if we want earlycon to work. Partially reverts 7c0558941 ("ARM: shmobile: r8a7790: switch from scif to scifa"). Signed-off-by: Ulrich Hecht <ulrich.hecht+renesas@gmail.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7790-lager.dts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/arch/arm/boot/dts/r8a7790-lager.dts b/arch/arm/boot/dts/r8a7790-lager.dts index e2174d816e78..79f141188d99 100644 --- a/arch/arm/boot/dts/r8a7790-lager.dts +++ b/arch/arm/boot/dts/r8a7790-lager.dts @@ -47,13 +47,13 @@ compatible = "renesas,lager", "renesas,r8a7790"; aliases { - serial0 = &scifa0; + serial0 = &scif0; serial1 = &scifa1; }; chosen { bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp"; - stdout-path = &scifa0; + stdout-path = &scif0; }; memory at 40000000 { @@ -296,9 +296,9 @@ renesas,function = "du"; }; - scifa0_pins: serial0 { - renesas,groups = "scifa0_data"; - renesas,function = "scifa0"; + scif0_pins: serial0 { + renesas,groups = "scif0_data"; + renesas,function = "scif0"; }; ether_pins: ether { @@ -467,8 +467,8 @@ }; }; -&scifa0 { - pinctrl-0 = <&scifa0_pins>; +&scif0 { + pinctrl-0 = <&scif0_pins>; pinctrl-names = "default"; status = "okay"; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 02/15] ARM: shmobile: bockw dts: define sdhi0 pins with pull-ups 2015-11-27 1:55 ` Simon Horman @ 2015-11-27 1:55 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-11-27 1:55 UTC (permalink / raw) To: linux-arm-kernel From: Ulrich Hecht <ulrich.hecht+renesas@gmail.com> Ensures that the pull-ups for pins SD0_CD and SD0_WP are enabled. This is one of two features from the DT reference platform that are still missing in MP. Signed-off-by: Ulrich Hecht <ulrich.hecht+renesas@gmail.com> Acked-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7778-bockw.dts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/r8a7778-bockw.dts b/arch/arm/boot/dts/r8a7778-bockw.dts index 90543b12d7e2..8a5407678717 100644 --- a/arch/arm/boot/dts/r8a7778-bockw.dts +++ b/arch/arm/boot/dts/r8a7778-bockw.dts @@ -137,10 +137,14 @@ }; sdhi0_pins: sd0 { - renesas,groups = "sdhi0_data4", "sdhi0_ctrl", - "sdhi0_cd"; + renesas,groups = "sdhi0_data4", "sdhi0_ctrl"; renesas,function = "sdhi0"; }; + sdhi0_pup_pins: sd0_pup { + renesas,groups = "sdhi0_cd", "sdhi0_wp"; + renesas,function = "sdhi0"; + bias-pull-up; + }; hspi0_pins: hspi0 { renesas,groups = "hspi0_a"; @@ -169,7 +173,7 @@ }; &sdhi0 { - pinctrl-0 = <&sdhi0_pins>; + pinctrl-0 = <&sdhi0_pins>, <&sdhi0_pup_pins>; pinctrl-names = "default"; vmmc-supply = <&fixedregulator3v3>; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 02/15] ARM: shmobile: bockw dts: define sdhi0 pins with pull-ups @ 2015-11-27 1:55 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-11-27 1:55 UTC (permalink / raw) To: linux-arm-kernel From: Ulrich Hecht <ulrich.hecht+renesas@gmail.com> Ensures that the pull-ups for pins SD0_CD and SD0_WP are enabled. This is one of two features from the DT reference platform that are still missing in MP. Signed-off-by: Ulrich Hecht <ulrich.hecht+renesas@gmail.com> Acked-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7778-bockw.dts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/r8a7778-bockw.dts b/arch/arm/boot/dts/r8a7778-bockw.dts index 90543b12d7e2..8a5407678717 100644 --- a/arch/arm/boot/dts/r8a7778-bockw.dts +++ b/arch/arm/boot/dts/r8a7778-bockw.dts @@ -137,10 +137,14 @@ }; sdhi0_pins: sd0 { - renesas,groups = "sdhi0_data4", "sdhi0_ctrl", - "sdhi0_cd"; + renesas,groups = "sdhi0_data4", "sdhi0_ctrl"; renesas,function = "sdhi0"; }; + sdhi0_pup_pins: sd0_pup { + renesas,groups = "sdhi0_cd", "sdhi0_wp"; + renesas,function = "sdhi0"; + bias-pull-up; + }; hspi0_pins: hspi0 { renesas,groups = "hspi0_a"; @@ -169,7 +173,7 @@ }; &sdhi0 { - pinctrl-0 = <&sdhi0_pins>; + pinctrl-0 = <&sdhi0_pins>, <&sdhi0_pup_pins>; pinctrl-names = "default"; vmmc-supply = <&fixedregulator3v3>; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 03/15] ARM: shmobile: r8a7794: alt: Enable PFC DU for the VGA port 2015-11-27 1:55 ` Simon Horman @ 2015-11-27 1:55 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-11-27 1:55 UTC (permalink / raw) To: linux-arm-kernel From: Magnus Damm <damm+renesas@opensource.se> Tie in r8a7794 PFC DU support to the VGA port on the r8a7794 ALT board. Signed-off-by: Magnus Damm <damm+renesas@opensource.se> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7794-alt.dts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/r8a7794-alt.dts b/arch/arm/boot/dts/r8a7794-alt.dts index fd1cfcdd65ef..b255a8791841 100644 --- a/arch/arm/boot/dts/r8a7794-alt.dts +++ b/arch/arm/boot/dts/r8a7794-alt.dts @@ -80,6 +80,8 @@ }; &du { + pinctrl-0 = <&du_pins>; + pinctrl-names = "default"; status = "okay"; clocks = <&mstp7_clks R8A7794_CLK_DU0>, @@ -101,6 +103,11 @@ }; &pfc { + du_pins: du { + renesas,groups = "du1_rgb666", "du1_sync", "du1_disp", "du1_dotclkout0"; + renesas,function = "du"; + }; + scif2_pins: serial2 { renesas,groups = "scif2_data"; renesas,function = "scif2"; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 03/15] ARM: shmobile: r8a7794: alt: Enable PFC DU for the VGA port @ 2015-11-27 1:55 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-11-27 1:55 UTC (permalink / raw) To: linux-arm-kernel From: Magnus Damm <damm+renesas@opensource.se> Tie in r8a7794 PFC DU support to the VGA port on the r8a7794 ALT board. Signed-off-by: Magnus Damm <damm+renesas@opensource.se> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7794-alt.dts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/r8a7794-alt.dts b/arch/arm/boot/dts/r8a7794-alt.dts index fd1cfcdd65ef..b255a8791841 100644 --- a/arch/arm/boot/dts/r8a7794-alt.dts +++ b/arch/arm/boot/dts/r8a7794-alt.dts @@ -80,6 +80,8 @@ }; &du { + pinctrl-0 = <&du_pins>; + pinctrl-names = "default"; status = "okay"; clocks = <&mstp7_clks R8A7794_CLK_DU0>, @@ -101,6 +103,11 @@ }; &pfc { + du_pins: du { + renesas,groups = "du1_rgb666", "du1_sync", "du1_disp", "du1_dotclkout0"; + renesas,function = "du"; + }; + scif2_pins: serial2 { renesas,groups = "scif2_data"; renesas,function = "scif2"; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 04/15] ARM: shmobile: r8a7793: Add DU node to device tree 2015-11-27 1:55 ` Simon Horman @ 2015-11-27 1:55 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-11-27 1:55 UTC (permalink / raw) To: linux-arm-kernel From: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Add the DU device with a disabled state. Boards that want to enable the DU need to specify the output topology. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Magnus Damm <damm+renesas@opensource.se> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7793.dtsi | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/arch/arm/boot/dts/r8a7793.dtsi b/arch/arm/boot/dts/r8a7793.dtsi index 2378df52aa32..cbcda80f4658 100644 --- a/arch/arm/boot/dts/r8a7793.dtsi +++ b/arch/arm/boot/dts/r8a7793.dtsi @@ -344,6 +344,36 @@ status = "disabled"; }; + du: display@feb00000 { + compatible = "renesas,du-r8a7793"; + reg = <0 0xfeb00000 0 0x40000>, + <0 0xfeb90000 0 0x1c>; + reg-names = "du", "lvds.0"; + interrupts = <0 256 IRQ_TYPE_LEVEL_HIGH>, + <0 268 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&mstp7_clks R8A7793_CLK_DU0>, + <&mstp7_clks R8A7793_CLK_DU1>, + <&mstp7_clks R8A7793_CLK_LVDS0>; + clock-names = "du.0", "du.1", "lvds.0"; + status = "disabled"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + du_out_rgb: endpoint { + }; + }; + port@1 { + reg = <1>; + du_out_lvds0: endpoint { + }; + }; + }; + }; + clocks { #address-cells = <2>; #size-cells = <2>; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 04/15] ARM: shmobile: r8a7793: Add DU node to device tree @ 2015-11-27 1:55 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-11-27 1:55 UTC (permalink / raw) To: linux-arm-kernel From: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Add the DU device with a disabled state. Boards that want to enable the DU need to specify the output topology. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Magnus Damm <damm+renesas@opensource.se> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7793.dtsi | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/arch/arm/boot/dts/r8a7793.dtsi b/arch/arm/boot/dts/r8a7793.dtsi index 2378df52aa32..cbcda80f4658 100644 --- a/arch/arm/boot/dts/r8a7793.dtsi +++ b/arch/arm/boot/dts/r8a7793.dtsi @@ -344,6 +344,36 @@ status = "disabled"; }; + du: display at feb00000 { + compatible = "renesas,du-r8a7793"; + reg = <0 0xfeb00000 0 0x40000>, + <0 0xfeb90000 0 0x1c>; + reg-names = "du", "lvds.0"; + interrupts = <0 256 IRQ_TYPE_LEVEL_HIGH>, + <0 268 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&mstp7_clks R8A7793_CLK_DU0>, + <&mstp7_clks R8A7793_CLK_DU1>, + <&mstp7_clks R8A7793_CLK_LVDS0>; + clock-names = "du.0", "du.1", "lvds.0"; + status = "disabled"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port at 0 { + reg = <0>; + du_out_rgb: endpoint { + }; + }; + port at 1 { + reg = <1>; + du_out_lvds0: endpoint { + }; + }; + }; + }; + clocks { #address-cells = <2>; #size-cells = <2>; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 05/15] ARM: shmobile: r8a7791: remove deprecated #gpio-range-cells from dtsi 2015-11-27 1:55 ` Simon Horman @ 2015-11-27 1:55 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-11-27 1:55 UTC (permalink / raw) To: linux-arm-kernel From: Wolfram Sang <wsa+renesas@sang-engineering.com> Commit a1bc260bb5f5d9 ("gpio: clean up gpio-ranges documentation") declares the above property deprecated. That was more than 2 years ago. Remove it, so it doesn't get copied around needlessly. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791.dtsi | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/boot/dts/r8a7791.dtsi b/arch/arm/boot/dts/r8a7791.dtsi index 3776974e3273..12b2b0f95806 100644 --- a/arch/arm/boot/dts/r8a7791.dtsi +++ b/arch/arm/boot/dts/r8a7791.dtsi @@ -509,7 +509,6 @@ pfc: pfc@e6060000 { compatible = "renesas,pfc-r8a7791"; reg = <0 0xe6060000 0 0x250>; - #gpio-range-cells = <3>; }; mmcif0: mmc@ee200000 { -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 05/15] ARM: shmobile: r8a7791: remove deprecated #gpio-range-cells from dtsi @ 2015-11-27 1:55 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-11-27 1:55 UTC (permalink / raw) To: linux-arm-kernel From: Wolfram Sang <wsa+renesas@sang-engineering.com> Commit a1bc260bb5f5d9 ("gpio: clean up gpio-ranges documentation") declares the above property deprecated. That was more than 2 years ago. Remove it, so it doesn't get copied around needlessly. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791.dtsi | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/boot/dts/r8a7791.dtsi b/arch/arm/boot/dts/r8a7791.dtsi index 3776974e3273..12b2b0f95806 100644 --- a/arch/arm/boot/dts/r8a7791.dtsi +++ b/arch/arm/boot/dts/r8a7791.dtsi @@ -509,7 +509,6 @@ pfc: pfc at e6060000 { compatible = "renesas,pfc-r8a7791"; reg = <0 0xe6060000 0 0x250>; - #gpio-range-cells = <3>; }; mmcif0: mmc at ee200000 { -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 06/15] ARM: shmobile: r8a7794: remove deprecated #gpio-range-cells from dtsi 2015-11-27 1:55 ` Simon Horman @ 2015-11-27 1:55 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-11-27 1:55 UTC (permalink / raw) To: linux-arm-kernel From: Wolfram Sang <wsa+renesas@sang-engineering.com> Commit a1bc260bb5f5d9 ("gpio: clean up gpio-ranges documentation") declares the above property deprecated. That was more than 2 years ago. Remove it, so it doesn't get copied around needlessly. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7794.dtsi | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/boot/dts/r8a7794.dtsi b/arch/arm/boot/dts/r8a7794.dtsi index 57d188c2bf6d..89e914f2a2cf 100644 --- a/arch/arm/boot/dts/r8a7794.dtsi +++ b/arch/arm/boot/dts/r8a7794.dtsi @@ -217,7 +217,6 @@ pfc: pin-controller@e6060000 { compatible = "renesas,pfc-r8a7794"; reg = <0 0xe6060000 0 0x11c>; - #gpio-range-cells = <3>; }; dmac0: dma-controller@e6700000 { -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 06/15] ARM: shmobile: r8a7794: remove deprecated #gpio-range-cells from dtsi @ 2015-11-27 1:55 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-11-27 1:55 UTC (permalink / raw) To: linux-arm-kernel From: Wolfram Sang <wsa+renesas@sang-engineering.com> Commit a1bc260bb5f5d9 ("gpio: clean up gpio-ranges documentation") declares the above property deprecated. That was more than 2 years ago. Remove it, so it doesn't get copied around needlessly. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7794.dtsi | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/boot/dts/r8a7794.dtsi b/arch/arm/boot/dts/r8a7794.dtsi index 57d188c2bf6d..89e914f2a2cf 100644 --- a/arch/arm/boot/dts/r8a7794.dtsi +++ b/arch/arm/boot/dts/r8a7794.dtsi @@ -217,7 +217,6 @@ pfc: pin-controller at e6060000 { compatible = "renesas,pfc-r8a7794"; reg = <0 0xe6060000 0 0x11c>; - #gpio-range-cells = <3>; }; dmac0: dma-controller at e6700000 { -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 07/15] ARM: shmobile: r8a7791: koelsch: Fix pinmux for HDMI 2015-11-27 1:55 ` Simon Horman @ 2015-11-27 1:55 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-11-27 1:55 UTC (permalink / raw) To: linux-arm-kernel From: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> The signals output by the DU to the HDMI transmitter use full 24-bit RGB. Make sure all pins are properly muxed. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791-koelsch.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/r8a7791-koelsch.dts b/arch/arm/boot/dts/r8a7791-koelsch.dts index 4ec2d1fba7c9..50d7b17c6ebd 100644 --- a/arch/arm/boot/dts/r8a7791-koelsch.dts +++ b/arch/arm/boot/dts/r8a7791-koelsch.dts @@ -326,7 +326,7 @@ }; du_pins: du { - renesas,groups = "du_rgb666", "du_sync", "du_disp", "du_clk_out_0"; + renesas,groups = "du_rgb888", "du_sync", "du_disp", "du_clk_out_0"; renesas,function = "du"; }; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 07/15] ARM: shmobile: r8a7791: koelsch: Fix pinmux for HDMI @ 2015-11-27 1:55 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-11-27 1:55 UTC (permalink / raw) To: linux-arm-kernel From: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> The signals output by the DU to the HDMI transmitter use full 24-bit RGB. Make sure all pins are properly muxed. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791-koelsch.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/r8a7791-koelsch.dts b/arch/arm/boot/dts/r8a7791-koelsch.dts index 4ec2d1fba7c9..50d7b17c6ebd 100644 --- a/arch/arm/boot/dts/r8a7791-koelsch.dts +++ b/arch/arm/boot/dts/r8a7791-koelsch.dts @@ -326,7 +326,7 @@ }; du_pins: du { - renesas,groups = "du_rgb666", "du_sync", "du_disp", "du_clk_out_0"; + renesas,groups = "du_rgb888", "du_sync", "du_disp", "du_clk_out_0"; renesas,function = "du"; }; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 08/15] ARM: shmobile: bockw: Move SPI FLASH partition to subnode 2015-11-27 1:55 ` Simon Horman @ 2015-11-27 1:55 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-11-27 1:55 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> As of commits 5cfdedb7b9a0fe38 ("mtd: ofpart: move ofpart partitions to a dedicated dt node") and fe2585e9c29a650a ("doc: dt: mtd: support partitions in a special 'partitions' subnode"), having partitions as direct subnodes of an mtd device is discouraged. Hence move the SPI FLASH partition to a "partitions" subnode. Based on similar work for the koelsch board by Geert Uytterhoeven. Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7778-bockw.dts | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/arch/arm/boot/dts/r8a7778-bockw.dts b/arch/arm/boot/dts/r8a7778-bockw.dts index 8a5407678717..3c03e6b8261e 100644 --- a/arch/arm/boot/dts/r8a7778-bockw.dts +++ b/arch/arm/boot/dts/r8a7778-bockw.dts @@ -188,16 +188,19 @@ status = "okay"; flash: flash@0 { - #address-cells = <1>; - #size-cells = <1>; compatible = "spansion,s25fl008k", "jedec,spi-nor"; reg = <0>; spi-max-frequency = <104000000>; m25p,fast-read; - partition@0 { - label = "data(spi)"; - reg = <0x00000000 0x00100000>; + partitions { + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "data(spi)"; + reg = <0x00000000 0x00100000>; + }; }; }; }; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 08/15] ARM: shmobile: bockw: Move SPI FLASH partition to subnode @ 2015-11-27 1:55 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-11-27 1:55 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> As of commits 5cfdedb7b9a0fe38 ("mtd: ofpart: move ofpart partitions to a dedicated dt node") and fe2585e9c29a650a ("doc: dt: mtd: support partitions in a special 'partitions' subnode"), having partitions as direct subnodes of an mtd device is discouraged. Hence move the SPI FLASH partition to a "partitions" subnode. Based on similar work for the koelsch board by Geert Uytterhoeven. Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7778-bockw.dts | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/arch/arm/boot/dts/r8a7778-bockw.dts b/arch/arm/boot/dts/r8a7778-bockw.dts index 8a5407678717..3c03e6b8261e 100644 --- a/arch/arm/boot/dts/r8a7778-bockw.dts +++ b/arch/arm/boot/dts/r8a7778-bockw.dts @@ -188,16 +188,19 @@ status = "okay"; flash: flash at 0 { - #address-cells = <1>; - #size-cells = <1>; compatible = "spansion,s25fl008k", "jedec,spi-nor"; reg = <0>; spi-max-frequency = <104000000>; m25p,fast-read; - partition at 0 { - label = "data(spi)"; - reg = <0x00000000 0x00100000>; + partitions { + #address-cells = <1>; + #size-cells = <1>; + + partition at 0 { + label = "data(spi)"; + reg = <0x00000000 0x00100000>; + }; }; }; }; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 09/15] ARM: shmobile: porter: Move SPI FLASH partitions to subnode 2015-11-27 1:55 ` Simon Horman @ 2015-11-27 1:55 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-11-27 1:55 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> As of commits 5cfdedb7b9a0fe38 ("mtd: ofpart: move ofpart partitions to a dedicated dt node") and fe2585e9c29a650a ("doc: dt: mtd: support partitions in a special 'partitions' subnode"), having partitions as direct subnodes of an mtd device is discouraged. Hence move the SPI FLASH partitions to a "partitions" subnode. Based on similar work for the koelsch board by Geert Uytterhoeven. Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791-porter.dts | 33 ++++++++++++++++++--------------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/arch/arm/boot/dts/r8a7791-porter.dts b/arch/arm/boot/dts/r8a7791-porter.dts index 3e198e7b3ee4..f2dd5356eac8 100644 --- a/arch/arm/boot/dts/r8a7791-porter.dts +++ b/arch/arm/boot/dts/r8a7791-porter.dts @@ -192,8 +192,6 @@ status = "okay"; flash@0 { - #address-cells = <1>; - #size-cells = <1>; compatible = "spansion,s25fl512s", "jedec,spi-nor"; reg = <0>; spi-max-frequency = <30000000>; @@ -201,19 +199,24 @@ spi-rx-bus-width = <4>; m25p,fast-read; - partition@0 { - label = "loader_prg"; - reg = <0x00000000 0x00040000>; - read-only; - }; - partition@40000 { - label = "user_prg"; - reg = <0x00040000 0x00400000>; - read-only; - }; - partition@440000 { - label = "flash_fs"; - reg = <0x00440000 0x03bc0000>; + partitions { + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "loader_prg"; + reg = <0x00000000 0x00040000>; + read-only; + }; + partition@40000 { + label = "user_prg"; + reg = <0x00040000 0x00400000>; + read-only; + }; + partition@440000 { + label = "flash_fs"; + reg = <0x00440000 0x03bc0000>; + }; }; }; }; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 09/15] ARM: shmobile: porter: Move SPI FLASH partitions to subnode @ 2015-11-27 1:55 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-11-27 1:55 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> As of commits 5cfdedb7b9a0fe38 ("mtd: ofpart: move ofpart partitions to a dedicated dt node") and fe2585e9c29a650a ("doc: dt: mtd: support partitions in a special 'partitions' subnode"), having partitions as direct subnodes of an mtd device is discouraged. Hence move the SPI FLASH partitions to a "partitions" subnode. Based on similar work for the koelsch board by Geert Uytterhoeven. Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7791-porter.dts | 33 ++++++++++++++++++--------------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/arch/arm/boot/dts/r8a7791-porter.dts b/arch/arm/boot/dts/r8a7791-porter.dts index 3e198e7b3ee4..f2dd5356eac8 100644 --- a/arch/arm/boot/dts/r8a7791-porter.dts +++ b/arch/arm/boot/dts/r8a7791-porter.dts @@ -192,8 +192,6 @@ status = "okay"; flash at 0 { - #address-cells = <1>; - #size-cells = <1>; compatible = "spansion,s25fl512s", "jedec,spi-nor"; reg = <0>; spi-max-frequency = <30000000>; @@ -201,19 +199,24 @@ spi-rx-bus-width = <4>; m25p,fast-read; - partition at 0 { - label = "loader_prg"; - reg = <0x00000000 0x00040000>; - read-only; - }; - partition at 40000 { - label = "user_prg"; - reg = <0x00040000 0x00400000>; - read-only; - }; - partition at 440000 { - label = "flash_fs"; - reg = <0x00440000 0x03bc0000>; + partitions { + #address-cells = <1>; + #size-cells = <1>; + + partition at 0 { + label = "loader_prg"; + reg = <0x00000000 0x00040000>; + read-only; + }; + partition at 40000 { + label = "user_prg"; + reg = <0x00040000 0x00400000>; + read-only; + }; + partition at 440000 { + label = "flash_fs"; + reg = <0x00440000 0x03bc0000>; + }; }; }; }; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 10/15] ARM: shmobile: lager: Move SPI FLASH partitions to subnode 2015-11-27 1:55 ` Simon Horman @ 2015-11-27 1:55 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-11-27 1:55 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> As of commits 5cfdedb7b9a0fe38 ("mtd: ofpart: move ofpart partitions to a dedicated dt node") and fe2585e9c29a650a ("doc: dt: mtd: support partitions in a special 'partitions' subnode"), having partitions as direct subnodes of an mtd device is discouraged. Hence move the SPI FLASH partitions to a "partitions" subnode. Based on similar work for the koelsch board by Geert Uytterhoeven. Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7790-lager.dts | 33 ++++++++++++++++++--------------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/arch/arm/boot/dts/r8a7790-lager.dts b/arch/arm/boot/dts/r8a7790-lager.dts index 79f141188d99..c46295afb08a 100644 --- a/arch/arm/boot/dts/r8a7790-lager.dts +++ b/arch/arm/boot/dts/r8a7790-lager.dts @@ -439,8 +439,6 @@ status = "okay"; flash: flash@0 { - #address-cells = <1>; - #size-cells = <1>; compatible = "spansion,s25fl512s", "jedec,spi-nor"; reg = <0>; spi-max-frequency = <30000000>; @@ -450,19 +448,24 @@ spi-cpol; m25p,fast-read; - partition@0 { - label = "loader"; - reg = <0x00000000 0x00040000>; - read-only; - }; - partition@40000 { - label = "user"; - reg = <0x00040000 0x00400000>; - read-only; - }; - partition@440000 { - label = "flash"; - reg = <0x00440000 0x03bc0000>; + partitions { + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "loader"; + reg = <0x00000000 0x00040000>; + read-only; + }; + partition@40000 { + label = "user"; + reg = <0x00040000 0x00400000>; + read-only; + }; + partition@440000 { + label = "flash"; + reg = <0x00440000 0x03bc0000>; + }; }; }; }; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 10/15] ARM: shmobile: lager: Move SPI FLASH partitions to subnode @ 2015-11-27 1:55 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-11-27 1:55 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> As of commits 5cfdedb7b9a0fe38 ("mtd: ofpart: move ofpart partitions to a dedicated dt node") and fe2585e9c29a650a ("doc: dt: mtd: support partitions in a special 'partitions' subnode"), having partitions as direct subnodes of an mtd device is discouraged. Hence move the SPI FLASH partitions to a "partitions" subnode. Based on similar work for the koelsch board by Geert Uytterhoeven. Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7790-lager.dts | 33 ++++++++++++++++++--------------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/arch/arm/boot/dts/r8a7790-lager.dts b/arch/arm/boot/dts/r8a7790-lager.dts index 79f141188d99..c46295afb08a 100644 --- a/arch/arm/boot/dts/r8a7790-lager.dts +++ b/arch/arm/boot/dts/r8a7790-lager.dts @@ -439,8 +439,6 @@ status = "okay"; flash: flash at 0 { - #address-cells = <1>; - #size-cells = <1>; compatible = "spansion,s25fl512s", "jedec,spi-nor"; reg = <0>; spi-max-frequency = <30000000>; @@ -450,19 +448,24 @@ spi-cpol; m25p,fast-read; - partition at 0 { - label = "loader"; - reg = <0x00000000 0x00040000>; - read-only; - }; - partition at 40000 { - label = "user"; - reg = <0x00040000 0x00400000>; - read-only; - }; - partition at 440000 { - label = "flash"; - reg = <0x00440000 0x03bc0000>; + partitions { + #address-cells = <1>; + #size-cells = <1>; + + partition at 0 { + label = "loader"; + reg = <0x00000000 0x00040000>; + read-only; + }; + partition at 40000 { + label = "user"; + reg = <0x00040000 0x00400000>; + read-only; + }; + partition at 440000 { + label = "flash"; + reg = <0x00440000 0x03bc0000>; + }; }; }; }; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 11/15] ARM: shmobile: silk: Move SPI FLASH partitions to subnode 2015-11-27 1:55 ` Simon Horman @ 2015-11-27 1:55 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-11-27 1:55 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> As of commits 5cfdedb7b9a0fe38 ("mtd: ofpart: move ofpart partitions to a dedicated dt node") and fe2585e9c29a650a ("doc: dt: mtd: support partitions in a special 'partitions' subnode"), having partitions as direct subnodes of an mtd device is discouraged. Hence move the SPI FLASH partitions to a "partitions" subnode. Based on similar work for the koelsch board by Geert Uytterhoeven. Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7794-silk.dts | 33 ++++++++++++++++++--------------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/arch/arm/boot/dts/r8a7794-silk.dts b/arch/arm/boot/dts/r8a7794-silk.dts index a49942b626c8..58f0ddf21c17 100644 --- a/arch/arm/boot/dts/r8a7794-silk.dts +++ b/arch/arm/boot/dts/r8a7794-silk.dts @@ -194,8 +194,6 @@ status = "okay"; flash@0 { - #address-cells = <1>; - #size-cells = <1>; compatible = "spansion,s25fl512s", "jedec,spi-nor"; reg = <0>; spi-max-frequency = <30000000>; @@ -205,19 +203,24 @@ spi-cpha; m25p,fast-read; - partition@0 { - label = "loader"; - reg = <0x00000000 0x00040000>; - read-only; - }; - partition@40000 { - label = "user"; - reg = <0x00040000 0x00400000>; - read-only; - }; - partition@440000 { - label = "flash"; - reg = <0x00440000 0x03bc0000>; + partitions { + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "loader"; + reg = <0x00000000 0x00040000>; + read-only; + }; + partition@40000 { + label = "user"; + reg = <0x00040000 0x00400000>; + read-only; + }; + partition@440000 { + label = "flash"; + reg = <0x00440000 0x03bc0000>; + }; }; }; }; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 11/15] ARM: shmobile: silk: Move SPI FLASH partitions to subnode @ 2015-11-27 1:55 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-11-27 1:55 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> As of commits 5cfdedb7b9a0fe38 ("mtd: ofpart: move ofpart partitions to a dedicated dt node") and fe2585e9c29a650a ("doc: dt: mtd: support partitions in a special 'partitions' subnode"), having partitions as direct subnodes of an mtd device is discouraged. Hence move the SPI FLASH partitions to a "partitions" subnode. Based on similar work for the koelsch board by Geert Uytterhoeven. Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7794-silk.dts | 33 ++++++++++++++++++--------------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/arch/arm/boot/dts/r8a7794-silk.dts b/arch/arm/boot/dts/r8a7794-silk.dts index a49942b626c8..58f0ddf21c17 100644 --- a/arch/arm/boot/dts/r8a7794-silk.dts +++ b/arch/arm/boot/dts/r8a7794-silk.dts @@ -194,8 +194,6 @@ status = "okay"; flash at 0 { - #address-cells = <1>; - #size-cells = <1>; compatible = "spansion,s25fl512s", "jedec,spi-nor"; reg = <0>; spi-max-frequency = <30000000>; @@ -205,19 +203,24 @@ spi-cpha; m25p,fast-read; - partition at 0 { - label = "loader"; - reg = <0x00000000 0x00040000>; - read-only; - }; - partition at 40000 { - label = "user"; - reg = <0x00040000 0x00400000>; - read-only; - }; - partition at 440000 { - label = "flash"; - reg = <0x00440000 0x03bc0000>; + partitions { + #address-cells = <1>; + #size-cells = <1>; + + partition at 0 { + label = "loader"; + reg = <0x00000000 0x00040000>; + read-only; + }; + partition at 40000 { + label = "user"; + reg = <0x00040000 0x00400000>; + read-only; + }; + partition at 440000 { + label = "flash"; + reg = <0x00440000 0x03bc0000>; + }; }; }; }; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 12/15] ARM: shmobile: alt: Correct scif2 pfc 2015-11-27 1:55 ` Simon Horman @ 2015-11-27 1:55 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-11-27 1:55 UTC (permalink / raw) To: linux-arm-kernel 22b160713cb6 ("ARM: shmobile: alt: Add pfc pins to DT") introduced pfc pins to the alt device tree but did not reference them. This patch fixes scif2 pfc by adding references to the scif2 pins. Reported-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7794-alt.dts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/boot/dts/r8a7794-alt.dts b/arch/arm/boot/dts/r8a7794-alt.dts index b255a8791841..c8cafc1d55c3 100644 --- a/arch/arm/boot/dts/r8a7794-alt.dts +++ b/arch/arm/boot/dts/r8a7794-alt.dts @@ -189,5 +189,8 @@ }; &scif2 { + pinctrl-0 = <&scif2_pins>; + pinctrl-names = "default"; + status = "okay"; }; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 12/15] ARM: shmobile: alt: Correct scif2 pfc @ 2015-11-27 1:55 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-11-27 1:55 UTC (permalink / raw) To: linux-arm-kernel 22b160713cb6 ("ARM: shmobile: alt: Add pfc pins to DT") introduced pfc pins to the alt device tree but did not reference them. This patch fixes scif2 pfc by adding references to the scif2 pins. Reported-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7794-alt.dts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/boot/dts/r8a7794-alt.dts b/arch/arm/boot/dts/r8a7794-alt.dts index b255a8791841..c8cafc1d55c3 100644 --- a/arch/arm/boot/dts/r8a7794-alt.dts +++ b/arch/arm/boot/dts/r8a7794-alt.dts @@ -189,5 +189,8 @@ }; &scif2 { + pinctrl-0 = <&scif2_pins>; + pinctrl-names = "default"; + status = "okay"; }; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 13/15] ARM: shmobile: alt: Correct ether pfc 2015-11-27 1:55 ` Simon Horman @ 2015-11-27 1:55 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-11-27 1:55 UTC (permalink / raw) To: linux-arm-kernel 22b160713cb6 ("ARM: shmobile: alt: Add pfc pins to DT") introduced pfc pins to the alt device tree but did not reference them. This patch fixes ether pfc by: * Referencing ether pins * Adding and referencing phy1 pins * Removing ether b pins. These are not used in the configuration of the alt board used for testing and empirically their presence prevents ethernet from functioning correctly in that environment. Reported-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7794-alt.dts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/r8a7794-alt.dts b/arch/arm/boot/dts/r8a7794-alt.dts index c8cafc1d55c3..767d9224d6cc 100644 --- a/arch/arm/boot/dts/r8a7794-alt.dts +++ b/arch/arm/boot/dts/r8a7794-alt.dts @@ -118,9 +118,9 @@ renesas,function = "eth"; }; - ether_b_pins: ether { - renesas,groups = "eth_link_b", "eth_mdio_b", "eth_rmii_b"; - renesas,function = "eth"; + phy1_pins: phy1 { + renesas,groups = "intc_irq8"; + renesas,function = "intc"; }; i2c1_pins: i2c1 { @@ -139,6 +139,9 @@ }; ðer { + pinctrl-0 = <ðer_pins &phy1_pins>; + pinctrl-names = "default"; + phy-handle = <&phy1>; renesas,ether-link-active-low; status = "okay"; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 13/15] ARM: shmobile: alt: Correct ether pfc @ 2015-11-27 1:55 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-11-27 1:55 UTC (permalink / raw) To: linux-arm-kernel 22b160713cb6 ("ARM: shmobile: alt: Add pfc pins to DT") introduced pfc pins to the alt device tree but did not reference them. This patch fixes ether pfc by: * Referencing ether pins * Adding and referencing phy1 pins * Removing ether b pins. These are not used in the configuration of the alt board used for testing and empirically their presence prevents ethernet from functioning correctly in that environment. Reported-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7794-alt.dts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/r8a7794-alt.dts b/arch/arm/boot/dts/r8a7794-alt.dts index c8cafc1d55c3..767d9224d6cc 100644 --- a/arch/arm/boot/dts/r8a7794-alt.dts +++ b/arch/arm/boot/dts/r8a7794-alt.dts @@ -118,9 +118,9 @@ renesas,function = "eth"; }; - ether_b_pins: ether { - renesas,groups = "eth_link_b", "eth_mdio_b", "eth_rmii_b"; - renesas,function = "eth"; + phy1_pins: phy1 { + renesas,groups = "intc_irq8"; + renesas,function = "intc"; }; i2c1_pins: i2c1 { @@ -139,6 +139,9 @@ }; ðer { + pinctrl-0 = <ðer_pins &phy1_pins>; + pinctrl-names = "default"; + phy-handle = <&phy1>; renesas,ether-link-active-low; status = "okay"; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 14/15] ARM: shmobile: r8a7740 dtsi: Add L2 cache-controller node 2015-11-27 1:55 ` Simon Horman @ 2015-11-27 1:55 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-11-27 1:55 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> Add the missing L2 cache-controller node, and link the CPU node to it. This will allow migration to the generic l2c OF initialization. The L2 cache is an ARM L2C-310 (r3p1-150rel0), of size 256 KiB (32 KiB x 8 ways). Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7740.dtsi | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/arm/boot/dts/r8a7740.dtsi b/arch/arm/boot/dts/r8a7740.dtsi index e14cb1438216..7676646f7085 100644 --- a/arch/arm/boot/dts/r8a7740.dtsi +++ b/arch/arm/boot/dts/r8a7740.dtsi @@ -26,6 +26,7 @@ reg = <0x0>; clock-frequency = <800000000>; power-domains = <&pd_a3sm>; + next-level-cache = <&L2>; }; }; @@ -37,6 +38,18 @@ <0xc2000000 0x1000>; }; + L2: cache-controller { + compatible = "arm,pl310-cache"; + reg = <0xf0100000 0x1000>; + interrupts = <0 84 IRQ_TYPE_LEVEL_HIGH>; + power-domains = <&pd_a3sm>; + arm,data-latency = <3 3 3>; + arm,tag-latency = <2 2 2>; + arm,shared-override; + cache-unified; + cache-level = <2>; + }; + dbsc3: memory-controller@fe400000 { compatible = "renesas,dbsc3-r8a7740"; reg = <0xfe400000 0x400>; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 14/15] ARM: shmobile: r8a7740 dtsi: Add L2 cache-controller node @ 2015-11-27 1:55 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-11-27 1:55 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> Add the missing L2 cache-controller node, and link the CPU node to it. This will allow migration to the generic l2c OF initialization. The L2 cache is an ARM L2C-310 (r3p1-150rel0), of size 256 KiB (32 KiB x 8 ways). Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7740.dtsi | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/arm/boot/dts/r8a7740.dtsi b/arch/arm/boot/dts/r8a7740.dtsi index e14cb1438216..7676646f7085 100644 --- a/arch/arm/boot/dts/r8a7740.dtsi +++ b/arch/arm/boot/dts/r8a7740.dtsi @@ -26,6 +26,7 @@ reg = <0x0>; clock-frequency = <800000000>; power-domains = <&pd_a3sm>; + next-level-cache = <&L2>; }; }; @@ -37,6 +38,18 @@ <0xc2000000 0x1000>; }; + L2: cache-controller { + compatible = "arm,pl310-cache"; + reg = <0xf0100000 0x1000>; + interrupts = <0 84 IRQ_TYPE_LEVEL_HIGH>; + power-domains = <&pd_a3sm>; + arm,data-latency = <3 3 3>; + arm,tag-latency = <2 2 2>; + arm,shared-override; + cache-unified; + cache-level = <2>; + }; + dbsc3: memory-controller at fe400000 { compatible = "renesas,dbsc3-r8a7740"; reg = <0xfe400000 0x400>; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 15/15] ARM: shmobile: sh73a0 dtsi: Add L2 cache-controller node 2015-11-27 1:55 ` Simon Horman @ 2015-11-27 1:55 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-11-27 1:55 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> Add the missing L2 cache-controller node, and link the CPU nodes to it. This will allow migration to the generic l2c OF initialization. The L2 cache is an ARM L2C-310 (r3p1), of size 512 KiB (64 KiB x 8 ways). Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/sh73a0.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/boot/dts/sh73a0.dtsi b/arch/arm/boot/dts/sh73a0.dtsi index ff7c8f298f30..319551f0fcdb 100644 --- a/arch/arm/boot/dts/sh73a0.dtsi +++ b/arch/arm/boot/dts/sh73a0.dtsi @@ -28,6 +28,7 @@ reg = <0>; clock-frequency = <1196000000>; power-domains = <&pd_a2sl>; + next-level-cache = <&L2>; }; cpu@1 { device_type = "cpu"; @@ -35,6 +36,7 @@ reg = <1>; clock-frequency = <1196000000>; power-domains = <&pd_a2sl>; + next-level-cache = <&L2>; }; }; @@ -53,6 +55,18 @@ <0xf0000100 0x100>; }; + L2: cache-controller { + compatible = "arm,pl310-cache"; + reg = <0xf0100000 0x1000>; + interrupts = <0 44 IRQ_TYPE_LEVEL_HIGH>; + power-domains = <&pd_a3sm>; + arm,data-latency = <3 3 3>; + arm,tag-latency = <2 2 2>; + arm,shared-override; + cache-unified; + cache-level = <2>; + }; + sbsc2: memory-controller@fb400000 { compatible = "renesas,sbsc-sh73a0"; reg = <0xfb400000 0x400>; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 15/15] ARM: shmobile: sh73a0 dtsi: Add L2 cache-controller node @ 2015-11-27 1:55 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2015-11-27 1:55 UTC (permalink / raw) To: linux-arm-kernel From: Geert Uytterhoeven <geert+renesas@glider.be> Add the missing L2 cache-controller node, and link the CPU nodes to it. This will allow migration to the generic l2c OF initialization. The L2 cache is an ARM L2C-310 (r3p1), of size 512 KiB (64 KiB x 8 ways). Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/sh73a0.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/boot/dts/sh73a0.dtsi b/arch/arm/boot/dts/sh73a0.dtsi index ff7c8f298f30..319551f0fcdb 100644 --- a/arch/arm/boot/dts/sh73a0.dtsi +++ b/arch/arm/boot/dts/sh73a0.dtsi @@ -28,6 +28,7 @@ reg = <0>; clock-frequency = <1196000000>; power-domains = <&pd_a2sl>; + next-level-cache = <&L2>; }; cpu at 1 { device_type = "cpu"; @@ -35,6 +36,7 @@ reg = <1>; clock-frequency = <1196000000>; power-domains = <&pd_a2sl>; + next-level-cache = <&L2>; }; }; @@ -53,6 +55,18 @@ <0xf0000100 0x100>; }; + L2: cache-controller { + compatible = "arm,pl310-cache"; + reg = <0xf0100000 0x1000>; + interrupts = <0 44 IRQ_TYPE_LEVEL_HIGH>; + power-domains = <&pd_a3sm>; + arm,data-latency = <3 3 3>; + arm,tag-latency = <2 2 2>; + arm,shared-override; + cache-unified; + cache-level = <2>; + }; + sbsc2: memory-controller at fb400000 { compatible = "renesas,sbsc-sh73a0"; reg = <0xfb400000 0x400>; -- 2.1.4 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* Re: [GIT PULL] Second Round of Renesas ARM Based SoC DT Updates for v4.5 2015-11-27 1:55 ` Simon Horman @ 2015-12-11 23:16 ` Arnd Bergmann -1 siblings, 0 replies; 776+ messages in thread From: Arnd Bergmann @ 2015-12-11 23:16 UTC (permalink / raw) To: linux-arm-kernel On Friday 27 November 2015 10:55:56 Simon Horman wrote: > Hi Olof, Hi Kevin, Hi Arnd, > > Please consider these second round of Renesas ARM based SoC DT updates for v4.5. > > This pull request extends support for Renesas ARM Based SoCs via DT > and includes several minor fixes and cleanups. > Pulled first and second round of this into next/dt, thanks! Arnd ^ permalink raw reply [flat|nested] 776+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC DT Updates for v4.5 @ 2015-12-11 23:16 ` Arnd Bergmann 0 siblings, 0 replies; 776+ messages in thread From: Arnd Bergmann @ 2015-12-11 23:16 UTC (permalink / raw) To: linux-arm-kernel On Friday 27 November 2015 10:55:56 Simon Horman wrote: > Hi Olof, Hi Kevin, Hi Arnd, > > Please consider these second round of Renesas ARM based SoC DT updates for v4.5. > > This pull request extends support for Renesas ARM Based SoCs via DT > and includes several minor fixes and cleanups. > Pulled first and second round of this into next/dt, thanks! Arnd ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH 0/4] Add Ether DT support for R8A7778/BOCK-W reference board @ 2013-08-31 23:11 ` Sergei Shtylyov 0 siblings, 0 replies; 776+ messages in thread From: Sergei Shtylyov @ 2013-08-31 23:11 UTC (permalink / raw) To: linux-arm-kernel Hello. Here's the set of 4 patches against Simon Horman's 'renesas.git' repo, 'renesas-devel-20130830' tag. Here we add the Ether device tree support working on the R8A7778/BOCK-W reference board. The patchset requires the 'sh_eth' driver device tree support posted earlier in order to work. [1/4] ARM: shmobile: r8a7778: add Ether DT support [2/4] ARM: shmobile: r8a7778: add Ether clock for DT case [3/4] ARM: shmobile: bockw-reference: add Ether DT support [4/4] ARM: shmobile: BOCK-W reference: add Ether PFC settings WBR, Sergei ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH 0/4] Add Ether DT support for R8A7778/BOCK-W reference board @ 2013-08-31 23:11 ` Sergei Shtylyov 0 siblings, 0 replies; 776+ messages in thread From: Sergei Shtylyov @ 2013-08-31 23:11 UTC (permalink / raw) To: linux-arm-kernel Hello. Here's the set of 4 patches against Simon Horman's 'renesas.git' repo, 'renesas-devel-20130830' tag. Here we add the Ether device tree support working on the R8A7778/BOCK-W reference board. The patchset requires the 'sh_eth' driver device tree support posted earlier in order to work. [1/4] ARM: shmobile: r8a7778: add Ether DT support [2/4] ARM: shmobile: r8a7778: add Ether clock for DT case [3/4] ARM: shmobile: bockw-reference: add Ether DT support [4/4] ARM: shmobile: BOCK-W reference: add Ether PFC settings WBR, Sergei ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH 2/4] ARM: shmobile: r8a7778: add Ether clock for DT case 2013-08-31 23:11 ` Sergei Shtylyov @ 2013-08-31 23:18 ` Sergei Shtylyov -1 siblings, 0 replies; 776+ messages in thread From: Sergei Shtylyov @ 2013-08-31 23:18 UTC (permalink / raw) To: linux-arm-kernel Add extra Ether clock lookup entry in the device tree case. Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> --- arch/arm/mach-shmobile/clock-r8a7778.c | 1 + 1 file changed, 1 insertion(+) Index: renesas/arch/arm/mach-shmobile/clock-r8a7778.c =================================--- renesas.orig/arch/arm/mach-shmobile/clock-r8a7778.c +++ renesas/arch/arm/mach-shmobile/clock-r8a7778.c @@ -146,6 +146,7 @@ static struct clk_lookup lookups[] = { CLKDEV_DEV_ID("sh_mobile_sdhi.1", &mstp_clks[MSTP322]), /* SDHI1 */ CLKDEV_DEV_ID("sh_mobile_sdhi.2", &mstp_clks[MSTP321]), /* SDHI2 */ CLKDEV_DEV_ID("r8a777x-ether", &mstp_clks[MSTP114]), /* Ether */ + CLKDEV_DEV_ID("fde00000.ethernet", &mstp_clks[MSTP114]), /* Ether w/DT */ CLKDEV_DEV_ID("ehci-platform", &mstp_clks[MSTP100]), /* USB EHCI port0/1 */ CLKDEV_DEV_ID("ohci-platform", &mstp_clks[MSTP100]), /* USB OHCI port0/1 */ CLKDEV_DEV_ID("i2c-rcar.0", &mstp_clks[MSTP030]), /* I2C0 */ ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH 2/4] ARM: shmobile: r8a7778: add Ether clock for DT case @ 2013-08-31 23:18 ` Sergei Shtylyov 0 siblings, 0 replies; 776+ messages in thread From: Sergei Shtylyov @ 2013-08-31 23:18 UTC (permalink / raw) To: linux-arm-kernel Add extra Ether clock lookup entry in the device tree case. Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> --- arch/arm/mach-shmobile/clock-r8a7778.c | 1 + 1 file changed, 1 insertion(+) Index: renesas/arch/arm/mach-shmobile/clock-r8a7778.c =================================================================== --- renesas.orig/arch/arm/mach-shmobile/clock-r8a7778.c +++ renesas/arch/arm/mach-shmobile/clock-r8a7778.c @@ -146,6 +146,7 @@ static struct clk_lookup lookups[] = { CLKDEV_DEV_ID("sh_mobile_sdhi.1", &mstp_clks[MSTP322]), /* SDHI1 */ CLKDEV_DEV_ID("sh_mobile_sdhi.2", &mstp_clks[MSTP321]), /* SDHI2 */ CLKDEV_DEV_ID("r8a777x-ether", &mstp_clks[MSTP114]), /* Ether */ + CLKDEV_DEV_ID("fde00000.ethernet", &mstp_clks[MSTP114]), /* Ether w/DT */ CLKDEV_DEV_ID("ehci-platform", &mstp_clks[MSTP100]), /* USB EHCI port0/1 */ CLKDEV_DEV_ID("ohci-platform", &mstp_clks[MSTP100]), /* USB OHCI port0/1 */ CLKDEV_DEV_ID("i2c-rcar.0", &mstp_clks[MSTP030]), /* I2C0 */ ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH 3/4] ARM: shmobile: bockw-reference: add Ether DT support 2013-08-31 23:11 ` Sergei Shtylyov (?) @ 2013-08-31 23:22 ` Sergei Shtylyov -1 siblings, 0 replies; 776+ messages in thread From: Sergei Shtylyov @ 2013-08-31 23:22 UTC (permalink / raw) To: linux-arm-kernel Define the BOCK-W board dependent part of the Ether device node. Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> --- arch/arm/boot/dts/r8a7778-bockw-reference.dts | 11 +++++++++++ 1 file changed, 11 insertions(+) Index: renesas/arch/arm/boot/dts/r8a7778-bockw-reference.dts =================================--- renesas.orig/arch/arm/boot/dts/r8a7778-bockw-reference.dts +++ renesas/arch/arm/boot/dts/r8a7778-bockw-reference.dts @@ -30,3 +30,14 @@ reg = <0x60000000 0x10000000>; }; }; + +ðer { + status = "ok"; + phy-mode = "rmii"; + phy-handle = <&phy1>; + renesas,no-ether-link; + + phy1: ethernet-phy@1 { + reg = <1>; + }; +}; ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH 3/4] ARM: shmobile: bockw-reference: add Ether DT support @ 2013-08-31 23:22 ` Sergei Shtylyov 0 siblings, 0 replies; 776+ messages in thread From: Sergei Shtylyov @ 2013-08-31 23:22 UTC (permalink / raw) To: linux-arm-kernel Define the BOCK-W board dependent part of the Ether device node. Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> --- arch/arm/boot/dts/r8a7778-bockw-reference.dts | 11 +++++++++++ 1 file changed, 11 insertions(+) Index: renesas/arch/arm/boot/dts/r8a7778-bockw-reference.dts =================================================================== --- renesas.orig/arch/arm/boot/dts/r8a7778-bockw-reference.dts +++ renesas/arch/arm/boot/dts/r8a7778-bockw-reference.dts @@ -30,3 +30,14 @@ reg = <0x60000000 0x10000000>; }; }; + +ðer { + status = "ok"; + phy-mode = "rmii"; + phy-handle = <&phy1>; + renesas,no-ether-link; + + phy1: ethernet-phy at 1 { + reg = <1>; + }; +}; ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH 3/4] ARM: shmobile: bockw-reference: add Ether DT support @ 2013-08-31 23:22 ` Sergei Shtylyov 0 siblings, 0 replies; 776+ messages in thread From: Sergei Shtylyov @ 2013-08-31 23:22 UTC (permalink / raw) To: horms, rob.herring, pawel.moll, mark.rutland, swarren, ian.campbell, devicetree Cc: linux-sh, magnus.damm, linux, linux-arm-kernel Define the BOCK-W board dependent part of the Ether device node. Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> --- arch/arm/boot/dts/r8a7778-bockw-reference.dts | 11 +++++++++++ 1 file changed, 11 insertions(+) Index: renesas/arch/arm/boot/dts/r8a7778-bockw-reference.dts =================================================================== --- renesas.orig/arch/arm/boot/dts/r8a7778-bockw-reference.dts +++ renesas/arch/arm/boot/dts/r8a7778-bockw-reference.dts @@ -30,3 +30,14 @@ reg = <0x60000000 0x10000000>; }; }; + +ðer { + status = "ok"; + phy-mode = "rmii"; + phy-handle = <&phy1>; + renesas,no-ether-link; + + phy1: ethernet-phy@1 { + reg = <1>; + }; +}; ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH 4/4] ARM: shmobile: BOCK-W reference: add Ether PFC settings 2013-08-31 23:11 ` Sergei Shtylyov @ 2013-08-31 23:24 ` Sergei Shtylyov -1 siblings, 0 replies; 776+ messages in thread From: Sergei Shtylyov @ 2013-08-31 23:24 UTC (permalink / raw) To: linux-arm-kernel Add the Ether pin group to bockw_pinctrl_map[]. Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> --- arch/arm/mach-shmobile/board-bockw-reference.c | 3 +++ 1 file changed, 3 insertions(+) Index: renesas/arch/arm/mach-shmobile/board-bockw-reference.c =================================--- renesas.orig/arch/arm/mach-shmobile/board-bockw-reference.c +++ renesas/arch/arm/mach-shmobile/board-bockw-reference.c @@ -29,6 +29,9 @@ */ static const struct pinctrl_map bockw_pinctrl_map[] = { + /* Ether */ + PIN_MAP_MUX_GROUP_DEFAULT("fde00000.ethernet", "pfc-r8a7778", + "ether_rmii", "ether"), /* SCIF0 */ PIN_MAP_MUX_GROUP_DEFAULT("sh-sci.0", "pfc-r8a7778", "scif0_data_a", "scif0"), ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH 4/4] ARM: shmobile: BOCK-W reference: add Ether PFC settings @ 2013-08-31 23:24 ` Sergei Shtylyov 0 siblings, 0 replies; 776+ messages in thread From: Sergei Shtylyov @ 2013-08-31 23:24 UTC (permalink / raw) To: linux-arm-kernel Add the Ether pin group to bockw_pinctrl_map[]. Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> --- arch/arm/mach-shmobile/board-bockw-reference.c | 3 +++ 1 file changed, 3 insertions(+) Index: renesas/arch/arm/mach-shmobile/board-bockw-reference.c =================================================================== --- renesas.orig/arch/arm/mach-shmobile/board-bockw-reference.c +++ renesas/arch/arm/mach-shmobile/board-bockw-reference.c @@ -29,6 +29,9 @@ */ static const struct pinctrl_map bockw_pinctrl_map[] = { + /* Ether */ + PIN_MAP_MUX_GROUP_DEFAULT("fde00000.ethernet", "pfc-r8a7778", + "ether_rmii", "ether"), /* SCIF0 */ PIN_MAP_MUX_GROUP_DEFAULT("sh-sci.0", "pfc-r8a7778", "scif0_data_a", "scif0"), ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH 1/4] ARM: shmobile: r8a7778: add usb phy power control function @ 2013-07-09 5:52 Kuninori Morimoto 2013-07-09 11:52 ` Sergei Shtylyov ` (19 more replies) 0 siblings, 20 replies; 776+ messages in thread From: Kuninori Morimoto @ 2013-07-09 5:52 UTC (permalink / raw) To: linux-sh USB phy initialisation function is needed from not only USB Host but also USB Function too. This patch adds usb phy common control function. Tested-by: Yusuke Goda <yusuke.goda.sx@renesas.com> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> --- arch/arm/mach-shmobile/setup-r8a7778.c | 35 ++++++++++++++++++++++---------- 1 file changed, 24 insertions(+), 11 deletions(-) diff --git a/arch/arm/mach-shmobile/setup-r8a7778.c b/arch/arm/mach-shmobile/setup-r8a7778.c index 2a101eb..cd98079 100644 --- a/arch/arm/mach-shmobile/setup-r8a7778.c +++ b/arch/arm/mach-shmobile/setup-r8a7778.c @@ -109,29 +109,44 @@ void __init r8a7778_add_usb_phy_device(struct rcar_phy_platform_data *pdata) pdata, sizeof(*pdata)); } -/* USB */ -static struct usb_phy *phy; - -static int usb_power_on(struct platform_device *pdev) +static int r8a7778_usb_phy_power(int enable) { + static struct usb_phy *phy = NULL; + int ret = 0; + + if (!phy) + phy = usb_get_phy(USB_PHY_TYPE_USB2); + if (IS_ERR(phy)) return PTR_ERR(phy); + if (enable) + ret = usb_phy_init(phy); + else + usb_phy_shutdown(phy); + + return ret; +} + +/* USB */ +static int usb_power_on(struct platform_device *pdev) +{ + int ret = r8a7778_usb_phy_power(1); + + if (ret) + return ret; + pm_runtime_enable(&pdev->dev); pm_runtime_get_sync(&pdev->dev); - usb_phy_init(phy); - return 0; } static void usb_power_off(struct platform_device *pdev) { - if (IS_ERR(phy)) + if (r8a7778_usb_phy_power(0)) return; - usb_phy_shutdown(phy); - pm_runtime_put_sync(&pdev->dev); pm_runtime_disable(&pdev->dev); } @@ -359,8 +374,6 @@ void __init r8a7778_add_standard_devices(void) void __init r8a7778_init_late(void) { - phy = usb_get_phy(USB_PHY_TYPE_USB2); - platform_device_register_full(&ehci_info); platform_device_register_full(&ohci_info); } -- 1.7.9.5 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* Re: [PATCH 1/4] ARM: shmobile: r8a7778: add usb phy power control function 2013-07-09 5:52 [PATCH 1/4] ARM: shmobile: r8a7778: add usb phy power control function Kuninori Morimoto @ 2013-07-09 11:52 ` Sergei Shtylyov 2013-07-10 1:07 ` Simon Horman ` (18 subsequent siblings) 19 siblings, 0 replies; 776+ messages in thread From: Sergei Shtylyov @ 2013-07-09 11:52 UTC (permalink / raw) To: linux-sh Hello. On 09-07-2013 9:52, Kuninori Morimoto wrote: > USB phy initialisation function is needed from not only > USB Host but also USB Function too. > This patch adds usb phy common control function. > Tested-by: Yusuke Goda <yusuke.goda.sx@renesas.com> > Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> > --- > arch/arm/mach-shmobile/setup-r8a7778.c | 35 ++++++++++++++++++++++---------- > 1 file changed, 24 insertions(+), 11 deletions(-) > diff --git a/arch/arm/mach-shmobile/setup-r8a7778.c b/arch/arm/mach-shmobile/setup-r8a7778.c > index 2a101eb..cd98079 100644 > --- a/arch/arm/mach-shmobile/setup-r8a7778.c > +++ b/arch/arm/mach-shmobile/setup-r8a7778.c > @@ -109,29 +109,44 @@ void __init r8a7778_add_usb_phy_device(struct rcar_phy_platform_data *pdata) > pdata, sizeof(*pdata)); > } > > -/* USB */ Why move this comment? > -static struct usb_phy *phy; > - > -static int usb_power_on(struct platform_device *pdev) > +static int r8a7778_usb_phy_power(int enable) Why not 'bool enable'? WBR, Sergei ^ permalink raw reply [flat|nested] 776+ messages in thread
* Re: [PATCH 1/4] ARM: shmobile: r8a7778: add usb phy power control function 2013-07-09 5:52 [PATCH 1/4] ARM: shmobile: r8a7778: add usb phy power control function Kuninori Morimoto 2013-07-09 11:52 ` Sergei Shtylyov @ 2013-07-10 1:07 ` Simon Horman 2013-07-10 1:11 ` Kuninori Morimoto ` (17 subsequent siblings) 19 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-07-10 1:07 UTC (permalink / raw) To: linux-sh On Tue, Jul 09, 2013 at 03:52:48PM +0400, Sergei Shtylyov wrote: > Hello. > > On 09-07-2013 9:52, Kuninori Morimoto wrote: > > >USB phy initialisation function is needed from not only > >USB Host but also USB Function too. > >This patch adds usb phy common control function. > > >Tested-by: Yusuke Goda <yusuke.goda.sx@renesas.com> > >Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> > >--- > > arch/arm/mach-shmobile/setup-r8a7778.c | 35 ++++++++++++++++++++++---------- > > 1 file changed, 24 insertions(+), 11 deletions(-) > > >diff --git a/arch/arm/mach-shmobile/setup-r8a7778.c b/arch/arm/mach-shmobile/setup-r8a7778.c > >index 2a101eb..cd98079 100644 > >--- a/arch/arm/mach-shmobile/setup-r8a7778.c > >+++ b/arch/arm/mach-shmobile/setup-r8a7778.c > >@@ -109,29 +109,44 @@ void __init r8a7778_add_usb_phy_device(struct rcar_phy_platform_data *pdata) > > pdata, sizeof(*pdata)); > > } > > > >-/* USB */ > > Why move this comment? > > >-static struct usb_phy *phy; > >- > >-static int usb_power_on(struct platform_device *pdev) > >+static int r8a7778_usb_phy_power(int enable) > > Why not 'bool enable'? Morimoto-san, these requests seem reasonable to me. Could you update your patch and repost with the rest of the series? ^ permalink raw reply [flat|nested] 776+ messages in thread
* Re: [PATCH 1/4] ARM: shmobile: r8a7778: add usb phy power control function 2013-07-09 5:52 [PATCH 1/4] ARM: shmobile: r8a7778: add usb phy power control function Kuninori Morimoto 2013-07-09 11:52 ` Sergei Shtylyov 2013-07-10 1:07 ` Simon Horman @ 2013-07-10 1:11 ` Kuninori Morimoto 2013-07-10 1:27 ` Kuninori Morimoto ` (16 subsequent siblings) 19 siblings, 0 replies; 776+ messages in thread From: Kuninori Morimoto @ 2013-07-10 1:11 UTC (permalink / raw) To: linux-sh Hi Simon > > Why not 'bool enable'? > > Morimoto-san, these requests seem reasonable to me. > Could you update your patch and repost with the rest of the series? Sure. I will send v2 patch soon. Best regards --- Kuninori Morimoto ^ permalink raw reply [flat|nested] 776+ messages in thread
* Re: [PATCH 1/4] ARM: shmobile: r8a7778: add usb phy power control function 2013-07-09 5:52 [PATCH 1/4] ARM: shmobile: r8a7778: add usb phy power control function Kuninori Morimoto ` (2 preceding siblings ...) 2013-07-10 1:11 ` Kuninori Morimoto @ 2013-07-10 1:27 ` Kuninori Morimoto 2013-08-31 23:15 ` Sergei Shtylyov ` (15 subsequent siblings) 19 siblings, 0 replies; 776+ messages in thread From: Kuninori Morimoto @ 2013-07-10 1:27 UTC (permalink / raw) To: linux-sh Hi > > diff --git a/arch/arm/mach-shmobile/setup-r8a7778.c b/arch/arm/mach-shmobile/setup-r8a7778.c > > index 2a101eb..cd98079 100644 > > --- a/arch/arm/mach-shmobile/setup-r8a7778.c > > +++ b/arch/arm/mach-shmobile/setup-r8a7778.c > > @@ -109,29 +109,44 @@ void __init r8a7778_add_usb_phy_device(struct rcar_phy_platform_data *pdata) > > pdata, sizeof(*pdata)); > > } > > > > -/* USB */ > > Why move this comment? Current setup-r8a7778.c already has /* USB PHY */ above here > > -static struct usb_phy *phy; > > - > > -static int usb_power_on(struct platform_device *pdev) > > +static int r8a7778_usb_phy_power(int enable) > > Why not 'bool enable'? will fix in v2 Best regards --- Kuninori Morimoto ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH 1/4] ARM: shmobile: r8a7778: add Ether DT support 2013-08-31 23:11 ` Sergei Shtylyov (?) @ 2013-08-31 23:15 ` Sergei Shtylyov -1 siblings, 0 replies; 776+ messages in thread From: Sergei Shtylyov @ 2013-08-31 23:15 UTC (permalink / raw) To: linux-sh Define the generic R8A777x part of the Ether device node. Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> --- arch/arm/boot/dts/r8a7778.dtsi | 11 +++++++++++ 1 file changed, 11 insertions(+) Index: renesas/arch/arm/boot/dts/r8a7778.dtsi =================================--- renesas.orig/arch/arm/boot/dts/r8a7778.dtsi +++ renesas/arch/arm/boot/dts/r8a7778.dtsi @@ -98,4 +98,15 @@ reg = <0xfffc000 0x118>; #gpio-range-cells = <3>; }; + + ether: ethernet@fde00000 { + device_type = "network"; + compatible = "renesas,ether-r8a7779"; + reg = <0xfde00000 0x400>; + interrupt-parent = <&gic>; + interrupts = <0 105 0x4>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; }; ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH 1/4] ARM: shmobile: r8a7778: add Ether DT support @ 2013-08-31 23:15 ` Sergei Shtylyov 0 siblings, 0 replies; 776+ messages in thread From: Sergei Shtylyov @ 2013-08-31 23:15 UTC (permalink / raw) To: linux-arm-kernel Define the generic R8A777x part of the Ether device node. Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> --- arch/arm/boot/dts/r8a7778.dtsi | 11 +++++++++++ 1 file changed, 11 insertions(+) Index: renesas/arch/arm/boot/dts/r8a7778.dtsi =================================================================== --- renesas.orig/arch/arm/boot/dts/r8a7778.dtsi +++ renesas/arch/arm/boot/dts/r8a7778.dtsi @@ -98,4 +98,15 @@ reg = <0xfffc000 0x118>; #gpio-range-cells = <3>; }; + + ether: ethernet at fde00000 { + device_type = "network"; + compatible = "renesas,ether-r8a7779"; + reg = <0xfde00000 0x400>; + interrupt-parent = <&gic>; + interrupts = <0 105 0x4>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; }; ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH 1/4] ARM: shmobile: r8a7778: add Ether DT support @ 2013-08-31 23:15 ` Sergei Shtylyov 0 siblings, 0 replies; 776+ messages in thread From: Sergei Shtylyov @ 2013-08-31 23:15 UTC (permalink / raw) To: horms, linux-sh, rob.herring, pawel.moll, mark.rutland, swarren, ian.campbell, devicetree Cc: magnus.damm, linux, linux-arm-kernel Define the generic R8A777x part of the Ether device node. Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> --- arch/arm/boot/dts/r8a7778.dtsi | 11 +++++++++++ 1 file changed, 11 insertions(+) Index: renesas/arch/arm/boot/dts/r8a7778.dtsi =================================================================== --- renesas.orig/arch/arm/boot/dts/r8a7778.dtsi +++ renesas/arch/arm/boot/dts/r8a7778.dtsi @@ -98,4 +98,15 @@ reg = <0xfffc000 0x118>; #gpio-range-cells = <3>; }; + + ether: ethernet@fde00000 { + device_type = "network"; + compatible = "renesas,ether-r8a7779"; + reg = <0xfde00000 0x400>; + interrupt-parent = <&gic>; + interrupts = <0 105 0x4>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; }; ^ permalink raw reply [flat|nested] 776+ messages in thread
* Re: [PATCH 1/4] ARM: shmobile: r8a7778: add Ether DT support 2013-08-31 23:15 ` Sergei Shtylyov (?) @ 2013-09-02 13:14 ` Laurent Pinchart -1 siblings, 0 replies; 776+ messages in thread From: Laurent Pinchart @ 2013-09-02 13:14 UTC (permalink / raw) To: linux-sh Hi Sergei, Thank you for the patch. On Sunday 01 September 2013 03:15:48 Sergei Shtylyov wrote: > Define the generic R8A777x part of the Ether device node. > > Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> > > --- > arch/arm/boot/dts/r8a7778.dtsi | 11 +++++++++++ > 1 file changed, 11 insertions(+) > > Index: renesas/arch/arm/boot/dts/r8a7778.dtsi > =================================> --- renesas.orig/arch/arm/boot/dts/r8a7778.dtsi > +++ renesas/arch/arm/boot/dts/r8a7778.dtsi > @@ -98,4 +98,15 @@ > reg = <0xfffc000 0x118>; > #gpio-range-cells = <3>; > }; > + > + ether: ethernet@fde00000 { > + device_type = "network"; Documentation/devicetree/bindings/net/sh_eth.txt from "[PATCH 2/2] sh_eth: add device tree support" doesn't document this property, should you update it ? > + compatible = "renesas,ether-r8a7779"; > + reg = <0xfde00000 0x400>; > + interrupt-parent = <&gic>; > + interrupts = <0 105 0x4>; > + #address-cells = <1>; > + #size-cells = <0>; > + status = "disabled"; > + }; > }; -- Regards, Laurent Pinchart ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH 1/4] ARM: shmobile: r8a7778: add Ether DT support @ 2013-09-02 13:14 ` Laurent Pinchart 0 siblings, 0 replies; 776+ messages in thread From: Laurent Pinchart @ 2013-09-02 13:14 UTC (permalink / raw) To: linux-arm-kernel Hi Sergei, Thank you for the patch. On Sunday 01 September 2013 03:15:48 Sergei Shtylyov wrote: > Define the generic R8A777x part of the Ether device node. > > Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> > > --- > arch/arm/boot/dts/r8a7778.dtsi | 11 +++++++++++ > 1 file changed, 11 insertions(+) > > Index: renesas/arch/arm/boot/dts/r8a7778.dtsi > =================================================================== > --- renesas.orig/arch/arm/boot/dts/r8a7778.dtsi > +++ renesas/arch/arm/boot/dts/r8a7778.dtsi > @@ -98,4 +98,15 @@ > reg = <0xfffc000 0x118>; > #gpio-range-cells = <3>; > }; > + > + ether: ethernet at fde00000 { > + device_type = "network"; Documentation/devicetree/bindings/net/sh_eth.txt from "[PATCH 2/2] sh_eth: add device tree support" doesn't document this property, should you update it ? > + compatible = "renesas,ether-r8a7779"; > + reg = <0xfde00000 0x400>; > + interrupt-parent = <&gic>; > + interrupts = <0 105 0x4>; > + #address-cells = <1>; > + #size-cells = <0>; > + status = "disabled"; > + }; > }; -- Regards, Laurent Pinchart ^ permalink raw reply [flat|nested] 776+ messages in thread
* Re: [PATCH 1/4] ARM: shmobile: r8a7778: add Ether DT support @ 2013-09-02 13:14 ` Laurent Pinchart 0 siblings, 0 replies; 776+ messages in thread From: Laurent Pinchart @ 2013-09-02 13:14 UTC (permalink / raw) To: Sergei Shtylyov Cc: horms, linux-sh, rob.herring, pawel.moll, mark.rutland, swarren, ian.campbell, devicetree, magnus.damm, linux, linux-arm-kernel Hi Sergei, Thank you for the patch. On Sunday 01 September 2013 03:15:48 Sergei Shtylyov wrote: > Define the generic R8A777x part of the Ether device node. > > Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> > > --- > arch/arm/boot/dts/r8a7778.dtsi | 11 +++++++++++ > 1 file changed, 11 insertions(+) > > Index: renesas/arch/arm/boot/dts/r8a7778.dtsi > =================================================================== > --- renesas.orig/arch/arm/boot/dts/r8a7778.dtsi > +++ renesas/arch/arm/boot/dts/r8a7778.dtsi > @@ -98,4 +98,15 @@ > reg = <0xfffc000 0x118>; > #gpio-range-cells = <3>; > }; > + > + ether: ethernet@fde00000 { > + device_type = "network"; Documentation/devicetree/bindings/net/sh_eth.txt from "[PATCH 2/2] sh_eth: add device tree support" doesn't document this property, should you update it ? > + compatible = "renesas,ether-r8a7779"; > + reg = <0xfde00000 0x400>; > + interrupt-parent = <&gic>; > + interrupts = <0 105 0x4>; > + #address-cells = <1>; > + #size-cells = <0>; > + status = "disabled"; > + }; > }; -- Regards, Laurent Pinchart ^ permalink raw reply [flat|nested] 776+ messages in thread
* Re: [PATCH 1/4] ARM: shmobile: r8a7778: add Ether DT support 2013-09-02 13:14 ` Laurent Pinchart (?) @ 2013-09-02 14:05 ` Sergei Shtylyov -1 siblings, 0 replies; 776+ messages in thread From: Sergei Shtylyov @ 2013-09-02 14:05 UTC (permalink / raw) To: linux-sh On 09/02/2013 05:14 PM, Laurent Pinchart wrote: >> Define the generic R8A777x part of the Ether device node. >> Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> >> --- >> arch/arm/boot/dts/r8a7778.dtsi | 11 +++++++++++ >> 1 file changed, 11 insertions(+) >> Index: renesas/arch/arm/boot/dts/r8a7778.dtsi >> =================================>> --- renesas.orig/arch/arm/boot/dts/r8a7778.dtsi >> +++ renesas/arch/arm/boot/dts/r8a7778.dtsi >> @@ -98,4 +98,15 @@ >> reg = <0xfffc000 0x118>; >> #gpio-range-cells = <3>; >> }; >> + >> + ether: ethernet@fde00000 { >> + device_type = "network"; > Documentation/devicetree/bindings/net/sh_eth.txt from "[PATCH 2/2] sh_eth: add > device tree support" doesn't document this property, should you update it ? It's a standard property but completely optional for non-OF systems. I've not seen anybody document it but I should grep for it... WBR, Sergei ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH 1/4] ARM: shmobile: r8a7778: add Ether DT support @ 2013-09-02 14:05 ` Sergei Shtylyov 0 siblings, 0 replies; 776+ messages in thread From: Sergei Shtylyov @ 2013-09-02 14:05 UTC (permalink / raw) To: linux-arm-kernel On 09/02/2013 05:14 PM, Laurent Pinchart wrote: >> Define the generic R8A777x part of the Ether device node. >> Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> >> --- >> arch/arm/boot/dts/r8a7778.dtsi | 11 +++++++++++ >> 1 file changed, 11 insertions(+) >> Index: renesas/arch/arm/boot/dts/r8a7778.dtsi >> =================================================================== >> --- renesas.orig/arch/arm/boot/dts/r8a7778.dtsi >> +++ renesas/arch/arm/boot/dts/r8a7778.dtsi >> @@ -98,4 +98,15 @@ >> reg = <0xfffc000 0x118>; >> #gpio-range-cells = <3>; >> }; >> + >> + ether: ethernet at fde00000 { >> + device_type = "network"; > Documentation/devicetree/bindings/net/sh_eth.txt from "[PATCH 2/2] sh_eth: add > device tree support" doesn't document this property, should you update it ? It's a standard property but completely optional for non-OF systems. I've not seen anybody document it but I should grep for it... WBR, Sergei ^ permalink raw reply [flat|nested] 776+ messages in thread
* Re: [PATCH 1/4] ARM: shmobile: r8a7778: add Ether DT support @ 2013-09-02 14:05 ` Sergei Shtylyov 0 siblings, 0 replies; 776+ messages in thread From: Sergei Shtylyov @ 2013-09-02 14:05 UTC (permalink / raw) To: Laurent Pinchart Cc: horms, linux-sh, rob.herring, pawel.moll, mark.rutland, swarren, ian.campbell, devicetree, magnus.damm, linux, linux-arm-kernel On 09/02/2013 05:14 PM, Laurent Pinchart wrote: >> Define the generic R8A777x part of the Ether device node. >> Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> >> --- >> arch/arm/boot/dts/r8a7778.dtsi | 11 +++++++++++ >> 1 file changed, 11 insertions(+) >> Index: renesas/arch/arm/boot/dts/r8a7778.dtsi >> =================================================================== >> --- renesas.orig/arch/arm/boot/dts/r8a7778.dtsi >> +++ renesas/arch/arm/boot/dts/r8a7778.dtsi >> @@ -98,4 +98,15 @@ >> reg = <0xfffc000 0x118>; >> #gpio-range-cells = <3>; >> }; >> + >> + ether: ethernet@fde00000 { >> + device_type = "network"; > Documentation/devicetree/bindings/net/sh_eth.txt from "[PATCH 2/2] sh_eth: add > device tree support" doesn't document this property, should you update it ? It's a standard property but completely optional for non-OF systems. I've not seen anybody document it but I should grep for it... WBR, Sergei ^ permalink raw reply [flat|nested] 776+ messages in thread
* Re: [PATCH 1/4] ARM: shmobile: r8a7778: add Ether DT support 2013-09-02 14:05 ` Sergei Shtylyov (?) @ 2013-09-02 14:18 ` Laurent Pinchart -1 siblings, 0 replies; 776+ messages in thread From: Laurent Pinchart @ 2013-09-02 14:18 UTC (permalink / raw) To: linux-sh On Monday 02 September 2013 18:05:10 Sergei Shtylyov wrote: > On 09/02/2013 05:14 PM, Laurent Pinchart wrote: > >> Define the generic R8A777x part of the Ether device node. > >> > >> Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> > >> > >> --- > >> > >> arch/arm/boot/dts/r8a7778.dtsi | 11 +++++++++++ > >> 1 file changed, 11 insertions(+) > >> > >> Index: renesas/arch/arm/boot/dts/r8a7778.dtsi > >> =================================> >> --- renesas.orig/arch/arm/boot/dts/r8a7778.dtsi > >> +++ renesas/arch/arm/boot/dts/r8a7778.dtsi > >> @@ -98,4 +98,15 @@ > >> > >> reg = <0xfffc000 0x118>; > >> #gpio-range-cells = <3>; > >> > >> }; > >> > >> + > >> + ether: ethernet@fde00000 { > >> + device_type = "network"; > > > > Documentation/devicetree/bindings/net/sh_eth.txt from "[PATCH 2/2] sh_eth: > > add device tree support" doesn't document this property, should you > > update it ? > It's a standard property but completely optional for non-OF systems. > I've not seen anybody document it but I should grep for it... Documentation/devicetree/booting-without-of.txt mentions it, as well as a couple of other DT bindings document, but there's no clear documentation of what device_type should be for network device, and whether the property is mandatory or optional. Clarifying the documentation would be great. -- Regards, Laurent Pinchart ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH 1/4] ARM: shmobile: r8a7778: add Ether DT support @ 2013-09-02 14:18 ` Laurent Pinchart 0 siblings, 0 replies; 776+ messages in thread From: Laurent Pinchart @ 2013-09-02 14:18 UTC (permalink / raw) To: linux-arm-kernel On Monday 02 September 2013 18:05:10 Sergei Shtylyov wrote: > On 09/02/2013 05:14 PM, Laurent Pinchart wrote: > >> Define the generic R8A777x part of the Ether device node. > >> > >> Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> > >> > >> --- > >> > >> arch/arm/boot/dts/r8a7778.dtsi | 11 +++++++++++ > >> 1 file changed, 11 insertions(+) > >> > >> Index: renesas/arch/arm/boot/dts/r8a7778.dtsi > >> =================================================================== > >> --- renesas.orig/arch/arm/boot/dts/r8a7778.dtsi > >> +++ renesas/arch/arm/boot/dts/r8a7778.dtsi > >> @@ -98,4 +98,15 @@ > >> > >> reg = <0xfffc000 0x118>; > >> #gpio-range-cells = <3>; > >> > >> }; > >> > >> + > >> + ether: ethernet at fde00000 { > >> + device_type = "network"; > > > > Documentation/devicetree/bindings/net/sh_eth.txt from "[PATCH 2/2] sh_eth: > > add device tree support" doesn't document this property, should you > > update it ? > It's a standard property but completely optional for non-OF systems. > I've not seen anybody document it but I should grep for it... Documentation/devicetree/booting-without-of.txt mentions it, as well as a couple of other DT bindings document, but there's no clear documentation of what device_type should be for network device, and whether the property is mandatory or optional. Clarifying the documentation would be great. -- Regards, Laurent Pinchart ^ permalink raw reply [flat|nested] 776+ messages in thread
* Re: [PATCH 1/4] ARM: shmobile: r8a7778: add Ether DT support @ 2013-09-02 14:18 ` Laurent Pinchart 0 siblings, 0 replies; 776+ messages in thread From: Laurent Pinchart @ 2013-09-02 14:18 UTC (permalink / raw) To: Sergei Shtylyov Cc: horms, linux-sh, rob.herring, pawel.moll, mark.rutland, swarren, ian.campbell, devicetree, magnus.damm, linux, linux-arm-kernel On Monday 02 September 2013 18:05:10 Sergei Shtylyov wrote: > On 09/02/2013 05:14 PM, Laurent Pinchart wrote: > >> Define the generic R8A777x part of the Ether device node. > >> > >> Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> > >> > >> --- > >> > >> arch/arm/boot/dts/r8a7778.dtsi | 11 +++++++++++ > >> 1 file changed, 11 insertions(+) > >> > >> Index: renesas/arch/arm/boot/dts/r8a7778.dtsi > >> =================================================================== > >> --- renesas.orig/arch/arm/boot/dts/r8a7778.dtsi > >> +++ renesas/arch/arm/boot/dts/r8a7778.dtsi > >> @@ -98,4 +98,15 @@ > >> > >> reg = <0xfffc000 0x118>; > >> #gpio-range-cells = <3>; > >> > >> }; > >> > >> + > >> + ether: ethernet@fde00000 { > >> + device_type = "network"; > > > > Documentation/devicetree/bindings/net/sh_eth.txt from "[PATCH 2/2] sh_eth: > > add device tree support" doesn't document this property, should you > > update it ? > It's a standard property but completely optional for non-OF systems. > I've not seen anybody document it but I should grep for it... Documentation/devicetree/booting-without-of.txt mentions it, as well as a couple of other DT bindings document, but there's no clear documentation of what device_type should be for network device, and whether the property is mandatory or optional. Clarifying the documentation would be great. -- Regards, Laurent Pinchart ^ permalink raw reply [flat|nested] 776+ messages in thread
* Re: [PATCH 1/4] ARM: shmobile: r8a7778: add Ether DT support 2013-09-02 14:18 ` Laurent Pinchart (?) @ 2013-09-02 15:32 ` Pawel Moll -1 siblings, 0 replies; 776+ messages in thread From: Pawel Moll @ 2013-09-02 15:32 UTC (permalink / raw) To: linux-sh On Mon, 2013-09-02 at 15:18 +0100, Laurent Pinchart wrote: > Documentation/devicetree/booting-without-of.txt mentions it, as well as a > couple of other DT bindings document, but there's no clear documentation of > what device_type should be for network device, and whether the property is > mandatory or optional. Clarifying the documentation would be great. It's documented in the ePAPR spec: "The device_type property was used in IEEE 1275 to describe the device’s FCode programming model. Because ePAPR does not have FCode, new use of the property is deprecated, and it should be included only on cpu and memory nodes for compatibility with IEEE 1275–derived device trees." The bottom line is - don't use it, unless you've good good reasons? Paweł ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH 1/4] ARM: shmobile: r8a7778: add Ether DT support @ 2013-09-02 15:32 ` Pawel Moll 0 siblings, 0 replies; 776+ messages in thread From: Pawel Moll @ 2013-09-02 15:32 UTC (permalink / raw) To: linux-arm-kernel On Mon, 2013-09-02 at 15:18 +0100, Laurent Pinchart wrote: > Documentation/devicetree/booting-without-of.txt mentions it, as well as a > couple of other DT bindings document, but there's no clear documentation of > what device_type should be for network device, and whether the property is > mandatory or optional. Clarifying the documentation would be great. It's documented in the ePAPR spec: "The device_type property was used in IEEE 1275 to describe the device?s FCode programming model. Because ePAPR does not have FCode, new use of the property is deprecated, and it should be included only on cpu and memory nodes for compatibility with IEEE 1275?derived device trees." The bottom line is - don't use it, unless you've good good reasons? Pawe? ^ permalink raw reply [flat|nested] 776+ messages in thread
* Re: [PATCH 1/4] ARM: shmobile: r8a7778: add Ether DT support @ 2013-09-02 15:32 ` Pawel Moll 0 siblings, 0 replies; 776+ messages in thread From: Pawel Moll @ 2013-09-02 15:32 UTC (permalink / raw) To: Laurent Pinchart Cc: Sergei Shtylyov, horms, linux-sh, rob.herring, Mark Rutland, swarren, ian.campbell, devicetree, magnus.damm, linux, linux-arm-kernel On Mon, 2013-09-02 at 15:18 +0100, Laurent Pinchart wrote: > Documentation/devicetree/booting-without-of.txt mentions it, as well as a > couple of other DT bindings document, but there's no clear documentation of > what device_type should be for network device, and whether the property is > mandatory or optional. Clarifying the documentation would be great. It's documented in the ePAPR spec: "The device_type property was used in IEEE 1275 to describe the device’s FCode programming model. Because ePAPR does not have FCode, new use of the property is deprecated, and it should be included only on cpu and memory nodes for compatibility with IEEE 1275–derived device trees." The bottom line is - don't use it, unless you've good good reasons? Paweł ^ permalink raw reply [flat|nested] 776+ messages in thread
* Re: [PATCH 1/4] ARM: shmobile: r8a7778: add Ether DT support 2013-09-02 15:32 ` Pawel Moll (?) @ 2013-09-03 12:11 ` Laurent Pinchart -1 siblings, 0 replies; 776+ messages in thread From: Laurent Pinchart @ 2013-09-03 12:11 UTC (permalink / raw) To: linux-sh Hi Paweł, On Monday 02 September 2013 16:32:34 Pawel Moll wrote: > On Mon, 2013-09-02 at 15:18 +0100, Laurent Pinchart wrote: > > Documentation/devicetree/booting-without-of.txt mentions it, as well as a > > couple of other DT bindings document, but there's no clear documentation > > of what device_type should be for network device, and whether the property > > is mandatory or optional. Clarifying the documentation would be great. > > It's documented in the ePAPR spec: > > "The device_type property was used in IEEE 1275 to describe the device’s > FCode programming model. Because ePAPR does not have FCode, new use of > the property is deprecated, and it should be included only on cpu and > memory nodes for compatibility with IEEE 1275–derived device trees." Thank you for the clarification. > The bottom line is - don't use it, unless you've good good reasons? I'll let Sergei share his opinion on whether we've got good reasons :-) -- Regards, Laurent Pinchart ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH 1/4] ARM: shmobile: r8a7778: add Ether DT support @ 2013-09-03 12:11 ` Laurent Pinchart 0 siblings, 0 replies; 776+ messages in thread From: Laurent Pinchart @ 2013-09-03 12:11 UTC (permalink / raw) To: linux-arm-kernel Hi Pawe?, On Monday 02 September 2013 16:32:34 Pawel Moll wrote: > On Mon, 2013-09-02 at 15:18 +0100, Laurent Pinchart wrote: > > Documentation/devicetree/booting-without-of.txt mentions it, as well as a > > couple of other DT bindings document, but there's no clear documentation > > of what device_type should be for network device, and whether the property > > is mandatory or optional. Clarifying the documentation would be great. > > It's documented in the ePAPR spec: > > "The device_type property was used in IEEE 1275 to describe the device?s > FCode programming model. Because ePAPR does not have FCode, new use of > the property is deprecated, and it should be included only on cpu and > memory nodes for compatibility with IEEE 1275?derived device trees." Thank you for the clarification. > The bottom line is - don't use it, unless you've good good reasons? I'll let Sergei share his opinion on whether we've got good reasons :-) -- Regards, Laurent Pinchart ^ permalink raw reply [flat|nested] 776+ messages in thread
* Re: [PATCH 1/4] ARM: shmobile: r8a7778: add Ether DT support @ 2013-09-03 12:11 ` Laurent Pinchart 0 siblings, 0 replies; 776+ messages in thread From: Laurent Pinchart @ 2013-09-03 12:11 UTC (permalink / raw) To: Pawel Moll Cc: Sergei Shtylyov, horms, linux-sh, rob.herring, Mark Rutland, swarren, ian.campbell, devicetree, magnus.damm, linux, linux-arm-kernel Hi Paweł, On Monday 02 September 2013 16:32:34 Pawel Moll wrote: > On Mon, 2013-09-02 at 15:18 +0100, Laurent Pinchart wrote: > > Documentation/devicetree/booting-without-of.txt mentions it, as well as a > > couple of other DT bindings document, but there's no clear documentation > > of what device_type should be for network device, and whether the property > > is mandatory or optional. Clarifying the documentation would be great. > > It's documented in the ePAPR spec: > > "The device_type property was used in IEEE 1275 to describe the device’s > FCode programming model. Because ePAPR does not have FCode, new use of > the property is deprecated, and it should be included only on cpu and > memory nodes for compatibility with IEEE 1275–derived device trees." Thank you for the clarification. > The bottom line is - don't use it, unless you've good good reasons? I'll let Sergei share his opinion on whether we've got good reasons :-) -- Regards, Laurent Pinchart ^ permalink raw reply [flat|nested] 776+ messages in thread
* Re: [PATCH 1/4] ARM: shmobile: r8a7778: add Ether DT support 2013-09-03 12:11 ` Laurent Pinchart (?) @ 2013-09-03 13:53 ` Sergei Shtylyov -1 siblings, 0 replies; 776+ messages in thread From: Sergei Shtylyov @ 2013-09-03 13:53 UTC (permalink / raw) To: linux-sh Hello. On 03-09-2013 16:11, Laurent Pinchart wrote: >>> Documentation/devicetree/booting-without-of.txt mentions it, as well as a >>> couple of other DT bindings document, but there's no clear documentation >>> of what device_type should be for network device, and whether the property >>> is mandatory or optional. Clarifying the documentation would be great. >> It's documented in the ePAPR spec: >> "The device_type property was used in IEEE 1275 to describe the device’s >> FCode programming model. Because ePAPR does not have FCode, new use of >> the property is deprecated, and it should be included only on cpu and >> memory nodes for compatibility with IEEE 1275–derived device trees." > Thank you for the clarification. >> The bottom line is - don't use it, unless you've good good reasons? > I'll let Sergei share his opinion on whether we've got good reasons :-) No, we don't, I'll remove the prop. WBR, Sergei ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH 1/4] ARM: shmobile: r8a7778: add Ether DT support @ 2013-09-03 13:53 ` Sergei Shtylyov 0 siblings, 0 replies; 776+ messages in thread From: Sergei Shtylyov @ 2013-09-03 13:53 UTC (permalink / raw) To: linux-arm-kernel Hello. On 03-09-2013 16:11, Laurent Pinchart wrote: >>> Documentation/devicetree/booting-without-of.txt mentions it, as well as a >>> couple of other DT bindings document, but there's no clear documentation >>> of what device_type should be for network device, and whether the property >>> is mandatory or optional. Clarifying the documentation would be great. >> It's documented in the ePAPR spec: >> "The device_type property was used in IEEE 1275 to describe the device?s >> FCode programming model. Because ePAPR does not have FCode, new use of >> the property is deprecated, and it should be included only on cpu and >> memory nodes for compatibility with IEEE 1275?derived device trees." > Thank you for the clarification. >> The bottom line is - don't use it, unless you've good good reasons? > I'll let Sergei share his opinion on whether we've got good reasons :-) No, we don't, I'll remove the prop. WBR, Sergei ^ permalink raw reply [flat|nested] 776+ messages in thread
* Re: [PATCH 1/4] ARM: shmobile: r8a7778: add Ether DT support @ 2013-09-03 13:53 ` Sergei Shtylyov 0 siblings, 0 replies; 776+ messages in thread From: Sergei Shtylyov @ 2013-09-03 13:53 UTC (permalink / raw) To: Laurent Pinchart Cc: Pawel Moll, horms, linux-sh, rob.herring, Mark Rutland, swarren, ian.campbell, devicetree, magnus.damm, linux, linux-arm-kernel Hello. On 03-09-2013 16:11, Laurent Pinchart wrote: >>> Documentation/devicetree/booting-without-of.txt mentions it, as well as a >>> couple of other DT bindings document, but there's no clear documentation >>> of what device_type should be for network device, and whether the property >>> is mandatory or optional. Clarifying the documentation would be great. >> It's documented in the ePAPR spec: >> "The device_type property was used in IEEE 1275 to describe the device’s >> FCode programming model. Because ePAPR does not have FCode, new use of >> the property is deprecated, and it should be included only on cpu and >> memory nodes for compatibility with IEEE 1275–derived device trees." > Thank you for the clarification. >> The bottom line is - don't use it, unless you've good good reasons? > I'll let Sergei share his opinion on whether we've got good reasons :-) No, we don't, I'll remove the prop. WBR, Sergei ^ permalink raw reply [flat|nested] 776+ messages in thread
* Re: [PATCH 1/4] ARM: shmobile: r8a7778: add Ether DT support 2013-08-31 23:15 ` Sergei Shtylyov (?) @ 2013-09-03 15:17 ` Magnus Damm -1 siblings, 0 replies; 776+ messages in thread From: Magnus Damm @ 2013-09-03 15:17 UTC (permalink / raw) To: linux-sh On Sun, Sep 1, 2013 at 8:15 AM, Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> wrote: > Define the generic R8A777x part of the Ether device node. > > Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> > > --- > arch/arm/boot/dts/r8a7778.dtsi | 11 +++++++++++ > 1 file changed, 11 insertions(+) > > Index: renesas/arch/arm/boot/dts/r8a7778.dtsi > =================================> --- renesas.orig/arch/arm/boot/dts/r8a7778.dtsi > +++ renesas/arch/arm/boot/dts/r8a7778.dtsi > @@ -98,4 +98,15 @@ > reg = <0xfffc000 0x118>; > #gpio-range-cells = <3>; > }; > + > + ether: ethernet@fde00000 { > + device_type = "network"; > + compatible = "renesas,ether-r8a7779"; Hi Sergei, Thanks for your patch. What's the reason behind the r8a7778 SoC using a compatible string for r8a7779 like "renesas,ether-r8a7779"? It seems that you assume that the r8a7778 ethernet controller is 100% compatible with r8a7779. Is that really true? For earlier versions the sh_eth hardware documentation was anything but accurate, so it seems to me that it must be more safe that r8a7778 would be using "renesas,ether-r8a7778". What do you think? Thanks, / magnus ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH 1/4] ARM: shmobile: r8a7778: add Ether DT support @ 2013-09-03 15:17 ` Magnus Damm 0 siblings, 0 replies; 776+ messages in thread From: Magnus Damm @ 2013-09-03 15:17 UTC (permalink / raw) To: linux-arm-kernel On Sun, Sep 1, 2013 at 8:15 AM, Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> wrote: > Define the generic R8A777x part of the Ether device node. > > Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> > > --- > arch/arm/boot/dts/r8a7778.dtsi | 11 +++++++++++ > 1 file changed, 11 insertions(+) > > Index: renesas/arch/arm/boot/dts/r8a7778.dtsi > =================================================================== > --- renesas.orig/arch/arm/boot/dts/r8a7778.dtsi > +++ renesas/arch/arm/boot/dts/r8a7778.dtsi > @@ -98,4 +98,15 @@ > reg = <0xfffc000 0x118>; > #gpio-range-cells = <3>; > }; > + > + ether: ethernet at fde00000 { > + device_type = "network"; > + compatible = "renesas,ether-r8a7779"; Hi Sergei, Thanks for your patch. What's the reason behind the r8a7778 SoC using a compatible string for r8a7779 like "renesas,ether-r8a7779"? It seems that you assume that the r8a7778 ethernet controller is 100% compatible with r8a7779. Is that really true? For earlier versions the sh_eth hardware documentation was anything but accurate, so it seems to me that it must be more safe that r8a7778 would be using "renesas,ether-r8a7778". What do you think? Thanks, / magnus ^ permalink raw reply [flat|nested] 776+ messages in thread
* Re: [PATCH 1/4] ARM: shmobile: r8a7778: add Ether DT support @ 2013-09-03 15:17 ` Magnus Damm 0 siblings, 0 replies; 776+ messages in thread From: Magnus Damm @ 2013-09-03 15:17 UTC (permalink / raw) To: Sergei Shtylyov Cc: Simon Horman [Horms], SH-Linux, Rob Herring, Pawel Moll, Mark Rutland, Stephen Warren, ian.campbell, devicetree, Russell King - ARM Linux, linux-arm-kernel On Sun, Sep 1, 2013 at 8:15 AM, Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> wrote: > Define the generic R8A777x part of the Ether device node. > > Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> > > --- > arch/arm/boot/dts/r8a7778.dtsi | 11 +++++++++++ > 1 file changed, 11 insertions(+) > > Index: renesas/arch/arm/boot/dts/r8a7778.dtsi > =================================================================== > --- renesas.orig/arch/arm/boot/dts/r8a7778.dtsi > +++ renesas/arch/arm/boot/dts/r8a7778.dtsi > @@ -98,4 +98,15 @@ > reg = <0xfffc000 0x118>; > #gpio-range-cells = <3>; > }; > + > + ether: ethernet@fde00000 { > + device_type = "network"; > + compatible = "renesas,ether-r8a7779"; Hi Sergei, Thanks for your patch. What's the reason behind the r8a7778 SoC using a compatible string for r8a7779 like "renesas,ether-r8a7779"? It seems that you assume that the r8a7778 ethernet controller is 100% compatible with r8a7779. Is that really true? For earlier versions the sh_eth hardware documentation was anything but accurate, so it seems to me that it must be more safe that r8a7778 would be using "renesas,ether-r8a7778". What do you think? Thanks, / magnus ^ permalink raw reply [flat|nested] 776+ messages in thread
* Re: [PATCH 1/4] ARM: shmobile: r8a7778: add Ether DT support 2013-09-03 15:17 ` Magnus Damm (?) @ 2013-09-03 18:27 ` Sergei Shtylyov -1 siblings, 0 replies; 776+ messages in thread From: Sergei Shtylyov @ 2013-09-03 18:27 UTC (permalink / raw) To: linux-sh Hello. On 09/03/2013 07:17 PM, Magnus Damm wrote: >> Define the generic R8A777x part of the Ether device node. >> Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> >> --- >> arch/arm/boot/dts/r8a7778.dtsi | 11 +++++++++++ >> 1 file changed, 11 insertions(+) >> >> Index: renesas/arch/arm/boot/dts/r8a7778.dtsi >> =================================>> --- renesas.orig/arch/arm/boot/dts/r8a7778.dtsi >> +++ renesas/arch/arm/boot/dts/r8a7778.dtsi >> @@ -98,4 +98,15 @@ >> reg = <0xfffc000 0x118>; >> #gpio-range-cells = <3>; >> }; >> + >> + ether: ethernet@fde00000 { >> + device_type = "network"; >> + compatible = "renesas,ether-r8a7779"; > Hi Sergei, > Thanks for your patch. What's the reason behind the r8a7778 SoC using > a compatible string for r8a7779 like "renesas,ether-r8a7779"? R8A7779 support has appeared first in Linux and as R8A7778 Ether is identical to R8A7779 and no wildcards are allowed in the device tree, I decided to use this "compatible" prop. > It seems that you assume that the r8a7778 ethernet controller is 100% > compatible with r8a7779. Is that really true? For earlier versions the > sh_eth hardware documentation was anything but accurate, so it seems > to me that it must be more safe that r8a7778 would be using > "renesas,ether-r8a7778". What do you think? I think R8A7778 and R8A7779 EtherMACs are identical. I've cross checked the documentation at the start of the development and the registers appeared to be the same. > Thanks, > / magnus WBR, Sergei ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH 1/4] ARM: shmobile: r8a7778: add Ether DT support @ 2013-09-03 18:27 ` Sergei Shtylyov 0 siblings, 0 replies; 776+ messages in thread From: Sergei Shtylyov @ 2013-09-03 18:27 UTC (permalink / raw) To: linux-arm-kernel Hello. On 09/03/2013 07:17 PM, Magnus Damm wrote: >> Define the generic R8A777x part of the Ether device node. >> Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> >> --- >> arch/arm/boot/dts/r8a7778.dtsi | 11 +++++++++++ >> 1 file changed, 11 insertions(+) >> >> Index: renesas/arch/arm/boot/dts/r8a7778.dtsi >> =================================================================== >> --- renesas.orig/arch/arm/boot/dts/r8a7778.dtsi >> +++ renesas/arch/arm/boot/dts/r8a7778.dtsi >> @@ -98,4 +98,15 @@ >> reg = <0xfffc000 0x118>; >> #gpio-range-cells = <3>; >> }; >> + >> + ether: ethernet at fde00000 { >> + device_type = "network"; >> + compatible = "renesas,ether-r8a7779"; > Hi Sergei, > Thanks for your patch. What's the reason behind the r8a7778 SoC using > a compatible string for r8a7779 like "renesas,ether-r8a7779"? R8A7779 support has appeared first in Linux and as R8A7778 Ether is identical to R8A7779 and no wildcards are allowed in the device tree, I decided to use this "compatible" prop. > It seems that you assume that the r8a7778 ethernet controller is 100% > compatible with r8a7779. Is that really true? For earlier versions the > sh_eth hardware documentation was anything but accurate, so it seems > to me that it must be more safe that r8a7778 would be using > "renesas,ether-r8a7778". What do you think? I think R8A7778 and R8A7779 EtherMACs are identical. I've cross checked the documentation at the start of the development and the registers appeared to be the same. > Thanks, > / magnus WBR, Sergei ^ permalink raw reply [flat|nested] 776+ messages in thread
* Re: [PATCH 1/4] ARM: shmobile: r8a7778: add Ether DT support @ 2013-09-03 18:27 ` Sergei Shtylyov 0 siblings, 0 replies; 776+ messages in thread From: Sergei Shtylyov @ 2013-09-03 18:27 UTC (permalink / raw) To: Magnus Damm Cc: Mark Rutland, devicetree, Russell King - ARM Linux, ian.campbell, Pawel Moll, Stephen Warren, SH-Linux, Rob Herring, Simon Horman [Horms], linux-arm-kernel Hello. On 09/03/2013 07:17 PM, Magnus Damm wrote: >> Define the generic R8A777x part of the Ether device node. >> Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> >> --- >> arch/arm/boot/dts/r8a7778.dtsi | 11 +++++++++++ >> 1 file changed, 11 insertions(+) >> >> Index: renesas/arch/arm/boot/dts/r8a7778.dtsi >> =================================================================== >> --- renesas.orig/arch/arm/boot/dts/r8a7778.dtsi >> +++ renesas/arch/arm/boot/dts/r8a7778.dtsi >> @@ -98,4 +98,15 @@ >> reg = <0xfffc000 0x118>; >> #gpio-range-cells = <3>; >> }; >> + >> + ether: ethernet@fde00000 { >> + device_type = "network"; >> + compatible = "renesas,ether-r8a7779"; > Hi Sergei, > Thanks for your patch. What's the reason behind the r8a7778 SoC using > a compatible string for r8a7779 like "renesas,ether-r8a7779"? R8A7779 support has appeared first in Linux and as R8A7778 Ether is identical to R8A7779 and no wildcards are allowed in the device tree, I decided to use this "compatible" prop. > It seems that you assume that the r8a7778 ethernet controller is 100% > compatible with r8a7779. Is that really true? For earlier versions the > sh_eth hardware documentation was anything but accurate, so it seems > to me that it must be more safe that r8a7778 would be using > "renesas,ether-r8a7778". What do you think? I think R8A7778 and R8A7779 EtherMACs are identical. I've cross checked the documentation at the start of the development and the registers appeared to be the same. > Thanks, > / magnus WBR, Sergei ^ permalink raw reply [flat|nested] 776+ messages in thread
* Re: [PATCH 1/4] ARM: shmobile: r8a7778: add Ether DT support 2013-09-03 18:27 ` Sergei Shtylyov (?) @ 2013-09-04 5:35 ` Magnus Damm -1 siblings, 0 replies; 776+ messages in thread From: Magnus Damm @ 2013-09-04 5:35 UTC (permalink / raw) To: linux-sh Hi Sergei, [CC Laurent] On Wed, Sep 4, 2013 at 3:27 AM, Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> wrote: > Hello. > > > On 09/03/2013 07:17 PM, Magnus Damm wrote: > >>> Define the generic R8A777x part of the Ether device node. > > >>> Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> > > >>> --- >>> arch/arm/boot/dts/r8a7778.dtsi | 11 +++++++++++ >>> 1 file changed, 11 insertions(+) >>> >>> Index: renesas/arch/arm/boot/dts/r8a7778.dtsi >>> =================================>>> --- renesas.orig/arch/arm/boot/dts/r8a7778.dtsi >>> +++ renesas/arch/arm/boot/dts/r8a7778.dtsi >>> @@ -98,4 +98,15 @@ >>> reg = <0xfffc000 0x118>; >>> #gpio-range-cells = <3>; >>> }; >>> + >>> + ether: ethernet@fde00000 { >>> + device_type = "network"; >>> + compatible = "renesas,ether-r8a7779"; > > >> Hi Sergei, > > >> Thanks for your patch. What's the reason behind the r8a7778 SoC using >> a compatible string for r8a7779 like "renesas,ether-r8a7779"? > > > R8A7779 support has appeared first in Linux and as R8A7778 Ether is > identical to R8A7779 and no wildcards are allowed in the device tree, I > decided to use this "compatible" prop. Thanks for your reply, I see. >> It seems that you assume that the r8a7778 ethernet controller is 100% >> compatible with r8a7779. Is that really true? For earlier versions the >> sh_eth hardware documentation was anything but accurate, so it seems >> to me that it must be more safe that r8a7778 would be using >> "renesas,ether-r8a7778". What do you think? > > > I think R8A7778 and R8A7779 EtherMACs are identical. I've cross checked > the documentation at the start of the development and the registers appeared > to be the same. But even if the current version of the documentation happens to be similar in it still doesn't guarantee that the IP is the same. And using the "correct" SoC compatible value doesn't really hurt in any way, does it? My feeling is that using the identical SoC as compatible value must be the best option - unless we know for sure they are identical that is. So unless we're 100% certain about IP compatibility I'm trying to enforce that we either use a strict matching for exactly the same SoC version or IP block. Using a different maybe-compatible SoC string seems to be begging for future trouble IMO. Laurent, any opinion? Cheers, / manus ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH 1/4] ARM: shmobile: r8a7778: add Ether DT support @ 2013-09-04 5:35 ` Magnus Damm 0 siblings, 0 replies; 776+ messages in thread From: Magnus Damm @ 2013-09-04 5:35 UTC (permalink / raw) To: linux-arm-kernel Hi Sergei, [CC Laurent] On Wed, Sep 4, 2013 at 3:27 AM, Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> wrote: > Hello. > > > On 09/03/2013 07:17 PM, Magnus Damm wrote: > >>> Define the generic R8A777x part of the Ether device node. > > >>> Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> > > >>> --- >>> arch/arm/boot/dts/r8a7778.dtsi | 11 +++++++++++ >>> 1 file changed, 11 insertions(+) >>> >>> Index: renesas/arch/arm/boot/dts/r8a7778.dtsi >>> =================================================================== >>> --- renesas.orig/arch/arm/boot/dts/r8a7778.dtsi >>> +++ renesas/arch/arm/boot/dts/r8a7778.dtsi >>> @@ -98,4 +98,15 @@ >>> reg = <0xfffc000 0x118>; >>> #gpio-range-cells = <3>; >>> }; >>> + >>> + ether: ethernet at fde00000 { >>> + device_type = "network"; >>> + compatible = "renesas,ether-r8a7779"; > > >> Hi Sergei, > > >> Thanks for your patch. What's the reason behind the r8a7778 SoC using >> a compatible string for r8a7779 like "renesas,ether-r8a7779"? > > > R8A7779 support has appeared first in Linux and as R8A7778 Ether is > identical to R8A7779 and no wildcards are allowed in the device tree, I > decided to use this "compatible" prop. Thanks for your reply, I see. >> It seems that you assume that the r8a7778 ethernet controller is 100% >> compatible with r8a7779. Is that really true? For earlier versions the >> sh_eth hardware documentation was anything but accurate, so it seems >> to me that it must be more safe that r8a7778 would be using >> "renesas,ether-r8a7778". What do you think? > > > I think R8A7778 and R8A7779 EtherMACs are identical. I've cross checked > the documentation at the start of the development and the registers appeared > to be the same. But even if the current version of the documentation happens to be similar in it still doesn't guarantee that the IP is the same. And using the "correct" SoC compatible value doesn't really hurt in any way, does it? My feeling is that using the identical SoC as compatible value must be the best option - unless we know for sure they are identical that is. So unless we're 100% certain about IP compatibility I'm trying to enforce that we either use a strict matching for exactly the same SoC version or IP block. Using a different maybe-compatible SoC string seems to be begging for future trouble IMO. Laurent, any opinion? Cheers, / manus ^ permalink raw reply [flat|nested] 776+ messages in thread
* Re: [PATCH 1/4] ARM: shmobile: r8a7778: add Ether DT support @ 2013-09-04 5:35 ` Magnus Damm 0 siblings, 0 replies; 776+ messages in thread From: Magnus Damm @ 2013-09-04 5:35 UTC (permalink / raw) To: Sergei Shtylyov Cc: Simon Horman [Horms], SH-Linux, Rob Herring, Pawel Moll, Mark Rutland, Stephen Warren, ian.campbell, devicetree, Russell King - ARM Linux, linux-arm-kernel, Laurent Pinchart Hi Sergei, [CC Laurent] On Wed, Sep 4, 2013 at 3:27 AM, Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> wrote: > Hello. > > > On 09/03/2013 07:17 PM, Magnus Damm wrote: > >>> Define the generic R8A777x part of the Ether device node. > > >>> Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> > > >>> --- >>> arch/arm/boot/dts/r8a7778.dtsi | 11 +++++++++++ >>> 1 file changed, 11 insertions(+) >>> >>> Index: renesas/arch/arm/boot/dts/r8a7778.dtsi >>> =================================================================== >>> --- renesas.orig/arch/arm/boot/dts/r8a7778.dtsi >>> +++ renesas/arch/arm/boot/dts/r8a7778.dtsi >>> @@ -98,4 +98,15 @@ >>> reg = <0xfffc000 0x118>; >>> #gpio-range-cells = <3>; >>> }; >>> + >>> + ether: ethernet@fde00000 { >>> + device_type = "network"; >>> + compatible = "renesas,ether-r8a7779"; > > >> Hi Sergei, > > >> Thanks for your patch. What's the reason behind the r8a7778 SoC using >> a compatible string for r8a7779 like "renesas,ether-r8a7779"? > > > R8A7779 support has appeared first in Linux and as R8A7778 Ether is > identical to R8A7779 and no wildcards are allowed in the device tree, I > decided to use this "compatible" prop. Thanks for your reply, I see. >> It seems that you assume that the r8a7778 ethernet controller is 100% >> compatible with r8a7779. Is that really true? For earlier versions the >> sh_eth hardware documentation was anything but accurate, so it seems >> to me that it must be more safe that r8a7778 would be using >> "renesas,ether-r8a7778". What do you think? > > > I think R8A7778 and R8A7779 EtherMACs are identical. I've cross checked > the documentation at the start of the development and the registers appeared > to be the same. But even if the current version of the documentation happens to be similar in it still doesn't guarantee that the IP is the same. And using the "correct" SoC compatible value doesn't really hurt in any way, does it? My feeling is that using the identical SoC as compatible value must be the best option - unless we know for sure they are identical that is. So unless we're 100% certain about IP compatibility I'm trying to enforce that we either use a strict matching for exactly the same SoC version or IP block. Using a different maybe-compatible SoC string seems to be begging for future trouble IMO. Laurent, any opinion? Cheers, / manus ^ permalink raw reply [flat|nested] 776+ messages in thread
* Re: [PATCH 1/4] ARM: shmobile: r8a7778: add Ether DT support 2013-09-04 5:35 ` Magnus Damm (?) @ 2013-09-04 9:39 ` Laurent Pinchart -1 siblings, 0 replies; 776+ messages in thread From: Laurent Pinchart @ 2013-09-04 9:39 UTC (permalink / raw) To: linux-sh On Wednesday 04 September 2013 14:35:14 Magnus Damm wrote: > On Wed, Sep 4, 2013 at 3:27 AM, Sergei Shtylyov wrote: > > On 09/03/2013 07:17 PM, Magnus Damm wrote: > >>> Define the generic R8A777x part of the Ether device node. > >>> > >>> Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> > >>> > >>> --- > >>> > >>> arch/arm/boot/dts/r8a7778.dtsi | 11 +++++++++++ > >>> 1 file changed, 11 insertions(+) > >>> > >>> Index: renesas/arch/arm/boot/dts/r8a7778.dtsi > >>> =================================> >>> --- renesas.orig/arch/arm/boot/dts/r8a7778.dtsi > >>> +++ renesas/arch/arm/boot/dts/r8a7778.dtsi > >>> @@ -98,4 +98,15 @@ > >>> reg = <0xfffc000 0x118>; > >>> #gpio-range-cells = <3>; > >>> }; > >>> + > >>> + ether: ethernet@fde00000 { > >>> + device_type = "network"; > >>> + compatible = "renesas,ether-r8a7779"; > >> > >> Hi Sergei, > >> > >> Thanks for your patch. What's the reason behind the r8a7778 SoC using > >> a compatible string for r8a7779 like "renesas,ether-r8a7779"? > > > > R8A7779 support has appeared first in Linux and as R8A7778 Ether is > > identical to R8A7779 and no wildcards are allowed in the device tree, I > > decided to use this "compatible" prop. > > Thanks for your reply, I see. > > >> It seems that you assume that the r8a7778 ethernet controller is 100% > >> compatible with r8a7779. Is that really true? For earlier versions the > >> sh_eth hardware documentation was anything but accurate, so it seems > >> to me that it must be more safe that r8a7778 would be using > >> "renesas,ether-r8a7778". What do you think? > > > > I think R8A7778 and R8A7779 EtherMACs are identical. I've cross checked > > the documentation at the start of the development and the registers > > appeared to be the same. > > But even if the current version of the documentation happens to be > similar in it still doesn't guarantee that the IP is the same. And > using the "correct" SoC compatible value doesn't really hurt in any > way, does it? > > My feeling is that using the identical SoC as compatible value must be > the best option - unless we know for sure they are identical that is. > > So unless we're 100% certain about IP compatibility I'm trying to > enforce that we either use a strict matching for exactly the same SoC > version or IP block. Using a different maybe-compatible SoC string > seems to be begging for future trouble IMO. > > Laurent, any opinion? I agree. If we had access to IP version information we could use that to construct the compatible name. As we don't, the SoC name is the best option, and to ensure future compatibility we should use the exact SoC version. -- Regards, Laurent Pinchart ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH 1/4] ARM: shmobile: r8a7778: add Ether DT support @ 2013-09-04 9:39 ` Laurent Pinchart 0 siblings, 0 replies; 776+ messages in thread From: Laurent Pinchart @ 2013-09-04 9:39 UTC (permalink / raw) To: linux-arm-kernel On Wednesday 04 September 2013 14:35:14 Magnus Damm wrote: > On Wed, Sep 4, 2013 at 3:27 AM, Sergei Shtylyov wrote: > > On 09/03/2013 07:17 PM, Magnus Damm wrote: > >>> Define the generic R8A777x part of the Ether device node. > >>> > >>> Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> > >>> > >>> --- > >>> > >>> arch/arm/boot/dts/r8a7778.dtsi | 11 +++++++++++ > >>> 1 file changed, 11 insertions(+) > >>> > >>> Index: renesas/arch/arm/boot/dts/r8a7778.dtsi > >>> =================================================================== > >>> --- renesas.orig/arch/arm/boot/dts/r8a7778.dtsi > >>> +++ renesas/arch/arm/boot/dts/r8a7778.dtsi > >>> @@ -98,4 +98,15 @@ > >>> reg = <0xfffc000 0x118>; > >>> #gpio-range-cells = <3>; > >>> }; > >>> + > >>> + ether: ethernet at fde00000 { > >>> + device_type = "network"; > >>> + compatible = "renesas,ether-r8a7779"; > >> > >> Hi Sergei, > >> > >> Thanks for your patch. What's the reason behind the r8a7778 SoC using > >> a compatible string for r8a7779 like "renesas,ether-r8a7779"? > > > > R8A7779 support has appeared first in Linux and as R8A7778 Ether is > > identical to R8A7779 and no wildcards are allowed in the device tree, I > > decided to use this "compatible" prop. > > Thanks for your reply, I see. > > >> It seems that you assume that the r8a7778 ethernet controller is 100% > >> compatible with r8a7779. Is that really true? For earlier versions the > >> sh_eth hardware documentation was anything but accurate, so it seems > >> to me that it must be more safe that r8a7778 would be using > >> "renesas,ether-r8a7778". What do you think? > > > > I think R8A7778 and R8A7779 EtherMACs are identical. I've cross checked > > the documentation at the start of the development and the registers > > appeared to be the same. > > But even if the current version of the documentation happens to be > similar in it still doesn't guarantee that the IP is the same. And > using the "correct" SoC compatible value doesn't really hurt in any > way, does it? > > My feeling is that using the identical SoC as compatible value must be > the best option - unless we know for sure they are identical that is. > > So unless we're 100% certain about IP compatibility I'm trying to > enforce that we either use a strict matching for exactly the same SoC > version or IP block. Using a different maybe-compatible SoC string > seems to be begging for future trouble IMO. > > Laurent, any opinion? I agree. If we had access to IP version information we could use that to construct the compatible name. As we don't, the SoC name is the best option, and to ensure future compatibility we should use the exact SoC version. -- Regards, Laurent Pinchart ^ permalink raw reply [flat|nested] 776+ messages in thread
* Re: [PATCH 1/4] ARM: shmobile: r8a7778: add Ether DT support @ 2013-09-04 9:39 ` Laurent Pinchart 0 siblings, 0 replies; 776+ messages in thread From: Laurent Pinchart @ 2013-09-04 9:39 UTC (permalink / raw) To: Magnus Damm Cc: Sergei Shtylyov, Simon Horman [Horms], SH-Linux, Rob Herring, Pawel Moll, Mark Rutland, Stephen Warren, ian.campbell, devicetree, Russell King - ARM Linux, linux-arm-kernel On Wednesday 04 September 2013 14:35:14 Magnus Damm wrote: > On Wed, Sep 4, 2013 at 3:27 AM, Sergei Shtylyov wrote: > > On 09/03/2013 07:17 PM, Magnus Damm wrote: > >>> Define the generic R8A777x part of the Ether device node. > >>> > >>> Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> > >>> > >>> --- > >>> > >>> arch/arm/boot/dts/r8a7778.dtsi | 11 +++++++++++ > >>> 1 file changed, 11 insertions(+) > >>> > >>> Index: renesas/arch/arm/boot/dts/r8a7778.dtsi > >>> =================================================================== > >>> --- renesas.orig/arch/arm/boot/dts/r8a7778.dtsi > >>> +++ renesas/arch/arm/boot/dts/r8a7778.dtsi > >>> @@ -98,4 +98,15 @@ > >>> reg = <0xfffc000 0x118>; > >>> #gpio-range-cells = <3>; > >>> }; > >>> + > >>> + ether: ethernet@fde00000 { > >>> + device_type = "network"; > >>> + compatible = "renesas,ether-r8a7779"; > >> > >> Hi Sergei, > >> > >> Thanks for your patch. What's the reason behind the r8a7778 SoC using > >> a compatible string for r8a7779 like "renesas,ether-r8a7779"? > > > > R8A7779 support has appeared first in Linux and as R8A7778 Ether is > > identical to R8A7779 and no wildcards are allowed in the device tree, I > > decided to use this "compatible" prop. > > Thanks for your reply, I see. > > >> It seems that you assume that the r8a7778 ethernet controller is 100% > >> compatible with r8a7779. Is that really true? For earlier versions the > >> sh_eth hardware documentation was anything but accurate, so it seems > >> to me that it must be more safe that r8a7778 would be using > >> "renesas,ether-r8a7778". What do you think? > > > > I think R8A7778 and R8A7779 EtherMACs are identical. I've cross checked > > the documentation at the start of the development and the registers > > appeared to be the same. > > But even if the current version of the documentation happens to be > similar in it still doesn't guarantee that the IP is the same. And > using the "correct" SoC compatible value doesn't really hurt in any > way, does it? > > My feeling is that using the identical SoC as compatible value must be > the best option - unless we know for sure they are identical that is. > > So unless we're 100% certain about IP compatibility I'm trying to > enforce that we either use a strict matching for exactly the same SoC > version or IP block. Using a different maybe-compatible SoC string > seems to be begging for future trouble IMO. > > Laurent, any opinion? I agree. If we had access to IP version information we could use that to construct the compatible name. As we don't, the SoC name is the best option, and to ensure future compatibility we should use the exact SoC version. -- Regards, Laurent Pinchart ^ permalink raw reply [flat|nested] 776+ messages in thread
* Re: [PATCH 1/4] ARM: shmobile: r8a7778: add Ether DT support 2013-09-04 9:39 ` Laurent Pinchart (?) @ 2013-09-05 6:03 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-09-05 6:03 UTC (permalink / raw) To: linux-sh On Wed, Sep 04, 2013 at 11:39:59AM +0200, Laurent Pinchart wrote: > On Wednesday 04 September 2013 14:35:14 Magnus Damm wrote: > > On Wed, Sep 4, 2013 at 3:27 AM, Sergei Shtylyov wrote: > > > On 09/03/2013 07:17 PM, Magnus Damm wrote: > > >>> Define the generic R8A777x part of the Ether device node. > > >>> > > >>> Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> > > >>> > > >>> --- > > >>> > > >>> arch/arm/boot/dts/r8a7778.dtsi | 11 +++++++++++ > > >>> 1 file changed, 11 insertions(+) > > >>> > > >>> Index: renesas/arch/arm/boot/dts/r8a7778.dtsi > > >>> =================================> > >>> --- renesas.orig/arch/arm/boot/dts/r8a7778.dtsi > > >>> +++ renesas/arch/arm/boot/dts/r8a7778.dtsi > > >>> @@ -98,4 +98,15 @@ > > >>> reg = <0xfffc000 0x118>; > > >>> #gpio-range-cells = <3>; > > >>> }; > > >>> + > > >>> + ether: ethernet@fde00000 { > > >>> + device_type = "network"; > > >>> + compatible = "renesas,ether-r8a7779"; > > >> > > >> Hi Sergei, > > >> > > >> Thanks for your patch. What's the reason behind the r8a7778 SoC using > > >> a compatible string for r8a7779 like "renesas,ether-r8a7779"? > > > > > > R8A7779 support has appeared first in Linux and as R8A7778 Ether is > > > identical to R8A7779 and no wildcards are allowed in the device tree, I > > > decided to use this "compatible" prop. > > > > Thanks for your reply, I see. > > > > >> It seems that you assume that the r8a7778 ethernet controller is 100% > > >> compatible with r8a7779. Is that really true? For earlier versions the > > >> sh_eth hardware documentation was anything but accurate, so it seems > > >> to me that it must be more safe that r8a7778 would be using > > >> "renesas,ether-r8a7778". What do you think? > > > > > > I think R8A7778 and R8A7779 EtherMACs are identical. I've cross checked > > > the documentation at the start of the development and the registers > > > appeared to be the same. > > > > But even if the current version of the documentation happens to be > > similar in it still doesn't guarantee that the IP is the same. And > > using the "correct" SoC compatible value doesn't really hurt in any > > way, does it? > > > > My feeling is that using the identical SoC as compatible value must be > > the best option - unless we know for sure they are identical that is. > > > > So unless we're 100% certain about IP compatibility I'm trying to > > enforce that we either use a strict matching for exactly the same SoC > > version or IP block. Using a different maybe-compatible SoC string > > seems to be begging for future trouble IMO. > > > > Laurent, any opinion? > > I agree. If we had access to IP version information we could use that to > construct the compatible name. As we don't, the SoC name is the best option, > and to ensure future compatibility we should use the exact SoC version. Using the SoC name is in keeping with recent discussions that we have had about compat string names for shmobile. So I agree with both Magnus and Laurent here (no surprise!). ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH 1/4] ARM: shmobile: r8a7778: add Ether DT support @ 2013-09-05 6:03 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-09-05 6:03 UTC (permalink / raw) To: linux-arm-kernel On Wed, Sep 04, 2013 at 11:39:59AM +0200, Laurent Pinchart wrote: > On Wednesday 04 September 2013 14:35:14 Magnus Damm wrote: > > On Wed, Sep 4, 2013 at 3:27 AM, Sergei Shtylyov wrote: > > > On 09/03/2013 07:17 PM, Magnus Damm wrote: > > >>> Define the generic R8A777x part of the Ether device node. > > >>> > > >>> Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> > > >>> > > >>> --- > > >>> > > >>> arch/arm/boot/dts/r8a7778.dtsi | 11 +++++++++++ > > >>> 1 file changed, 11 insertions(+) > > >>> > > >>> Index: renesas/arch/arm/boot/dts/r8a7778.dtsi > > >>> =================================================================== > > >>> --- renesas.orig/arch/arm/boot/dts/r8a7778.dtsi > > >>> +++ renesas/arch/arm/boot/dts/r8a7778.dtsi > > >>> @@ -98,4 +98,15 @@ > > >>> reg = <0xfffc000 0x118>; > > >>> #gpio-range-cells = <3>; > > >>> }; > > >>> + > > >>> + ether: ethernet at fde00000 { > > >>> + device_type = "network"; > > >>> + compatible = "renesas,ether-r8a7779"; > > >> > > >> Hi Sergei, > > >> > > >> Thanks for your patch. What's the reason behind the r8a7778 SoC using > > >> a compatible string for r8a7779 like "renesas,ether-r8a7779"? > > > > > > R8A7779 support has appeared first in Linux and as R8A7778 Ether is > > > identical to R8A7779 and no wildcards are allowed in the device tree, I > > > decided to use this "compatible" prop. > > > > Thanks for your reply, I see. > > > > >> It seems that you assume that the r8a7778 ethernet controller is 100% > > >> compatible with r8a7779. Is that really true? For earlier versions the > > >> sh_eth hardware documentation was anything but accurate, so it seems > > >> to me that it must be more safe that r8a7778 would be using > > >> "renesas,ether-r8a7778". What do you think? > > > > > > I think R8A7778 and R8A7779 EtherMACs are identical. I've cross checked > > > the documentation at the start of the development and the registers > > > appeared to be the same. > > > > But even if the current version of the documentation happens to be > > similar in it still doesn't guarantee that the IP is the same. And > > using the "correct" SoC compatible value doesn't really hurt in any > > way, does it? > > > > My feeling is that using the identical SoC as compatible value must be > > the best option - unless we know for sure they are identical that is. > > > > So unless we're 100% certain about IP compatibility I'm trying to > > enforce that we either use a strict matching for exactly the same SoC > > version or IP block. Using a different maybe-compatible SoC string > > seems to be begging for future trouble IMO. > > > > Laurent, any opinion? > > I agree. If we had access to IP version information we could use that to > construct the compatible name. As we don't, the SoC name is the best option, > and to ensure future compatibility we should use the exact SoC version. Using the SoC name is in keeping with recent discussions that we have had about compat string names for shmobile. So I agree with both Magnus and Laurent here (no surprise!). ^ permalink raw reply [flat|nested] 776+ messages in thread
* Re: [PATCH 1/4] ARM: shmobile: r8a7778: add Ether DT support @ 2013-09-05 6:03 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-09-05 6:03 UTC (permalink / raw) To: Laurent Pinchart Cc: Magnus Damm, Sergei Shtylyov, SH-Linux, Rob Herring, Pawel Moll, Mark Rutland, Stephen Warren, ian.campbell, devicetree, Russell King - ARM Linux, linux-arm-kernel On Wed, Sep 04, 2013 at 11:39:59AM +0200, Laurent Pinchart wrote: > On Wednesday 04 September 2013 14:35:14 Magnus Damm wrote: > > On Wed, Sep 4, 2013 at 3:27 AM, Sergei Shtylyov wrote: > > > On 09/03/2013 07:17 PM, Magnus Damm wrote: > > >>> Define the generic R8A777x part of the Ether device node. > > >>> > > >>> Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> > > >>> > > >>> --- > > >>> > > >>> arch/arm/boot/dts/r8a7778.dtsi | 11 +++++++++++ > > >>> 1 file changed, 11 insertions(+) > > >>> > > >>> Index: renesas/arch/arm/boot/dts/r8a7778.dtsi > > >>> =================================================================== > > >>> --- renesas.orig/arch/arm/boot/dts/r8a7778.dtsi > > >>> +++ renesas/arch/arm/boot/dts/r8a7778.dtsi > > >>> @@ -98,4 +98,15 @@ > > >>> reg = <0xfffc000 0x118>; > > >>> #gpio-range-cells = <3>; > > >>> }; > > >>> + > > >>> + ether: ethernet@fde00000 { > > >>> + device_type = "network"; > > >>> + compatible = "renesas,ether-r8a7779"; > > >> > > >> Hi Sergei, > > >> > > >> Thanks for your patch. What's the reason behind the r8a7778 SoC using > > >> a compatible string for r8a7779 like "renesas,ether-r8a7779"? > > > > > > R8A7779 support has appeared first in Linux and as R8A7778 Ether is > > > identical to R8A7779 and no wildcards are allowed in the device tree, I > > > decided to use this "compatible" prop. > > > > Thanks for your reply, I see. > > > > >> It seems that you assume that the r8a7778 ethernet controller is 100% > > >> compatible with r8a7779. Is that really true? For earlier versions the > > >> sh_eth hardware documentation was anything but accurate, so it seems > > >> to me that it must be more safe that r8a7778 would be using > > >> "renesas,ether-r8a7778". What do you think? > > > > > > I think R8A7778 and R8A7779 EtherMACs are identical. I've cross checked > > > the documentation at the start of the development and the registers > > > appeared to be the same. > > > > But even if the current version of the documentation happens to be > > similar in it still doesn't guarantee that the IP is the same. And > > using the "correct" SoC compatible value doesn't really hurt in any > > way, does it? > > > > My feeling is that using the identical SoC as compatible value must be > > the best option - unless we know for sure they are identical that is. > > > > So unless we're 100% certain about IP compatibility I'm trying to > > enforce that we either use a strict matching for exactly the same SoC > > version or IP block. Using a different maybe-compatible SoC string > > seems to be begging for future trouble IMO. > > > > Laurent, any opinion? > > I agree. If we had access to IP version information we could use that to > construct the compatible name. As we don't, the SoC name is the best option, > and to ensure future compatibility we should use the exact SoC version. Using the SoC name is in keeping with recent discussions that we have had about compat string names for shmobile. So I agree with both Magnus and Laurent here (no surprise!). ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH 1/4] ARM: shmobile: r8a7778: add I2C clock for DT 2013-07-09 5:52 [PATCH 1/4] ARM: shmobile: r8a7778: add usb phy power control function Kuninori Morimoto ` (15 preceding siblings ...) 2013-09-05 6:03 ` Simon Horman @ 2013-10-04 6:43 ` Kuninori Morimoto 2013-10-08 1:49 ` Simon Horman ` (2 subsequent siblings) 19 siblings, 0 replies; 776+ messages in thread From: Kuninori Morimoto @ 2013-10-04 6:43 UTC (permalink / raw) To: linux-sh Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> --- arch/arm/mach-shmobile/clock-r8a7778.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/mach-shmobile/clock-r8a7778.c b/arch/arm/mach-shmobile/clock-r8a7778.c index 3590cd5..e043715 100644 --- a/arch/arm/mach-shmobile/clock-r8a7778.c +++ b/arch/arm/mach-shmobile/clock-r8a7778.c @@ -184,9 +184,13 @@ static struct clk_lookup lookups[] = { CLKDEV_DEV_ID("ohci-platform", &mstp_clks[MSTP100]), /* USB OHCI port0/1 */ CLKDEV_DEV_ID("renesas_usbhs", &mstp_clks[MSTP100]), /* USB FUNC */ CLKDEV_DEV_ID("i2c-rcar.0", &mstp_clks[MSTP030]), /* I2C0 */ + CLKDEV_DEV_ID("ffc70000.i2c", &mstp_clks[MSTP030]), /* I2C0 */ CLKDEV_DEV_ID("i2c-rcar.1", &mstp_clks[MSTP029]), /* I2C1 */ + CLKDEV_DEV_ID("ffc71000.i2c", &mstp_clks[MSTP029]), /* I2C1 */ CLKDEV_DEV_ID("i2c-rcar.2", &mstp_clks[MSTP028]), /* I2C2 */ + CLKDEV_DEV_ID("ffc72000.i2c", &mstp_clks[MSTP028]), /* I2C2 */ CLKDEV_DEV_ID("i2c-rcar.3", &mstp_clks[MSTP027]), /* I2C3 */ + CLKDEV_DEV_ID("ffc73000.i2c", &mstp_clks[MSTP027]), /* I2C3 */ CLKDEV_DEV_ID("sh-sci.0", &mstp_clks[MSTP026]), /* SCIF0 */ CLKDEV_DEV_ID("sh-sci.1", &mstp_clks[MSTP025]), /* SCIF1 */ CLKDEV_DEV_ID("sh-sci.2", &mstp_clks[MSTP024]), /* SCIF2 */ -- 1.7.9.5 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* Re: [PATCH 1/4] ARM: shmobile: r8a7778: add I2C clock for DT 2013-07-09 5:52 [PATCH 1/4] ARM: shmobile: r8a7778: add usb phy power control function Kuninori Morimoto ` (16 preceding siblings ...) 2013-10-04 6:43 ` [PATCH 1/4] ARM: shmobile: r8a7778: add I2C clock for DT Kuninori Morimoto @ 2013-10-08 1:49 ` Simon Horman 2014-01-14 2:25 ` [PATCH 1/4] ARM: shmobile: r8a7778: add audio clock in new style Kuninori Morimoto 2014-07-15 9:16 ` Simon Horman 19 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2013-10-08 1:49 UTC (permalink / raw) To: linux-sh On Thu, Oct 03, 2013 at 11:43:54PM -0700, Kuninori Morimoto wrote: > Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> > --- > arch/arm/mach-shmobile/clock-r8a7778.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/arch/arm/mach-shmobile/clock-r8a7778.c b/arch/arm/mach-shmobile/clock-r8a7778.c > index 3590cd5..e043715 100644 > --- a/arch/arm/mach-shmobile/clock-r8a7778.c > +++ b/arch/arm/mach-shmobile/clock-r8a7778.c > @@ -184,9 +184,13 @@ static struct clk_lookup lookups[] = { > CLKDEV_DEV_ID("ohci-platform", &mstp_clks[MSTP100]), /* USB OHCI port0/1 */ > CLKDEV_DEV_ID("renesas_usbhs", &mstp_clks[MSTP100]), /* USB FUNC */ > CLKDEV_DEV_ID("i2c-rcar.0", &mstp_clks[MSTP030]), /* I2C0 */ > + CLKDEV_DEV_ID("ffc70000.i2c", &mstp_clks[MSTP030]), /* I2C0 */ > CLKDEV_DEV_ID("i2c-rcar.1", &mstp_clks[MSTP029]), /* I2C1 */ > + CLKDEV_DEV_ID("ffc71000.i2c", &mstp_clks[MSTP029]), /* I2C1 */ > CLKDEV_DEV_ID("i2c-rcar.2", &mstp_clks[MSTP028]), /* I2C2 */ > + CLKDEV_DEV_ID("ffc72000.i2c", &mstp_clks[MSTP028]), /* I2C2 */ > CLKDEV_DEV_ID("i2c-rcar.3", &mstp_clks[MSTP027]), /* I2C3 */ > + CLKDEV_DEV_ID("ffc73000.i2c", &mstp_clks[MSTP027]), /* I2C3 */ > CLKDEV_DEV_ID("sh-sci.0", &mstp_clks[MSTP026]), /* SCIF0 */ > CLKDEV_DEV_ID("sh-sci.1", &mstp_clks[MSTP025]), /* SCIF1 */ > CLKDEV_DEV_ID("sh-sci.2", &mstp_clks[MSTP024]), /* SCIF2 */ Thanks, I have queued this up but I am unsure if it will end up in v3.13 or v3.14. ^ permalink raw reply [flat|nested] 776+ messages in thread
* [PATCH 1/4] ARM: shmobile: r8a7778: add audio clock in new style 2013-07-09 5:52 [PATCH 1/4] ARM: shmobile: r8a7778: add usb phy power control function Kuninori Morimoto ` (17 preceding siblings ...) 2013-10-08 1:49 ` Simon Horman @ 2014-01-14 2:25 ` Kuninori Morimoto 2014-07-15 9:16 ` Simon Horman 19 siblings, 0 replies; 776+ messages in thread From: Kuninori Morimoto @ 2014-01-14 2:25 UTC (permalink / raw) To: linux-sh From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Current audio clock doesn't have dependency to device/driver, but, it is not good design for DT support. To avoid branch merge conflict issue, it uses this load map, and this patch is 1) part. 1) add new style clock in platform 2) add new style clock method in driver 3) remove old tyle clock from platform Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> --- arch/arm/mach-shmobile/clock-r8a7778.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/mach-shmobile/clock-r8a7778.c b/arch/arm/mach-shmobile/clock-r8a7778.c index 9783945..2009a9b 100644 --- a/arch/arm/mach-shmobile/clock-r8a7778.c +++ b/arch/arm/mach-shmobile/clock-r8a7778.c @@ -221,6 +221,10 @@ static struct clk_lookup lookups[] = { CLKDEV_DEV_ID("fffc6000.spi", &mstp_clks[MSTP007]), /* HSPI2 */ CLKDEV_DEV_ID("rcar_sound", &mstp_clks[MSTP008]), /* SRU */ + CLKDEV_ICK_ID("clk_a", "rcar_sound", &audio_clk_a), + CLKDEV_ICK_ID("clk_b", "rcar_sound", &audio_clk_b), + CLKDEV_ICK_ID("clk_c", "rcar_sound", &audio_clk_c), + CLKDEV_ICK_ID("clk_i", "rcar_sound", &s1_clk), CLKDEV_ICK_ID("ssi.0", "rcar_sound", &mstp_clks[MSTP012]), CLKDEV_ICK_ID("ssi.1", "rcar_sound", &mstp_clks[MSTP011]), CLKDEV_ICK_ID("ssi.2", "rcar_sound", &mstp_clks[MSTP010]), -- 1.7.9.5 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 1/4] ARM: shmobile: r8a7778: add SCI clock support for DT 2014-07-15 9:16 ` Simon Horman @ 2014-07-15 9:16 ` Simon Horman -1 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-07-15 9:16 UTC (permalink / raw) To: linux-sh This will be used when initialising SCI devices using DT until common clock framework support is added. Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/clock-r8a7778.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/mach-shmobile/clock-r8a7778.c b/arch/arm/mach-shmobile/clock-r8a7778.c index 13f8f3a..a6dd601 100644 --- a/arch/arm/mach-shmobile/clock-r8a7778.c +++ b/arch/arm/mach-shmobile/clock-r8a7778.c @@ -202,11 +202,17 @@ static struct clk_lookup lookups[] = { CLKDEV_DEV_ID("i2c-rcar.3", &mstp_clks[MSTP027]), /* I2C3 */ CLKDEV_DEV_ID("ffc73000.i2c", &mstp_clks[MSTP027]), /* I2C3 */ CLKDEV_DEV_ID("sh-sci.0", &mstp_clks[MSTP026]), /* SCIF0 */ + CLKDEV_DEV_ID("ffe40000.serial", &mstp_clks[MSTP026]), /* SCIF0 */ CLKDEV_DEV_ID("sh-sci.1", &mstp_clks[MSTP025]), /* SCIF1 */ + CLKDEV_DEV_ID("ffe41000.serial", &mstp_clks[MSTP025]), /* SCIF1 */ CLKDEV_DEV_ID("sh-sci.2", &mstp_clks[MSTP024]), /* SCIF2 */ + CLKDEV_DEV_ID("ffe42000.serial", &mstp_clks[MSTP024]), /* SCIF2 */ CLKDEV_DEV_ID("sh-sci.3", &mstp_clks[MSTP023]), /* SCIF3 */ + CLKDEV_DEV_ID("ffe43000.serial", &mstp_clks[MSTP023]), /* SCIF3 */ CLKDEV_DEV_ID("sh-sci.4", &mstp_clks[MSTP022]), /* SCIF4 */ + CLKDEV_DEV_ID("ffe44000.serial", &mstp_clks[MSTP022]), /* SCIF4 */ CLKDEV_DEV_ID("sh-sci.5", &mstp_clks[MSTP021]), /* SCIF6 */ + CLKDEV_DEV_ID("ffe45000.serial", &mstp_clks[MSTP021]), /* SCIF5 */ CLKDEV_DEV_ID("sh-hspi.0", &mstp_clks[MSTP007]), /* HSPI0 */ CLKDEV_DEV_ID("fffc7000.spi", &mstp_clks[MSTP007]), /* HSPI0 */ CLKDEV_DEV_ID("sh-hspi.1", &mstp_clks[MSTP007]), /* HSPI1 */ -- 2.0.0 ^ permalink raw reply related [flat|nested] 776+ messages in thread
* [PATCH 1/4] ARM: shmobile: r8a7778: add SCI clock support for DT @ 2014-07-15 9:16 ` Simon Horman 0 siblings, 0 replies; 776+ messages in thread From: Simon Horman @ 2014-07-15 9:16 UTC (permalink / raw) To: linux-arm-kernel This will be used when initialising SCI devices using DT until common clock framework support is added. Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/mach-shmobile/clock-r8a7778.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/mach-shmobile/clock-r8a7778.c b/arch/arm/mach-shmobile/clock-r8a7778.c index 13f8f3a..a6dd601 100644 --- a/arch/arm/mach-shmobile/clock-r8a7778.c +++ b/arch/arm/mach-shmobile/clock-r8a7778.c @@ -202,11 +202,17 @@ static struct clk_lookup lookups[] = { CLKDEV_DEV_ID("i2c-rcar.3", &mstp_clks[MSTP027]), /* I2C3 */ CLKDEV_DEV_ID("ffc73000.i2c", &mstp_clks[MSTP027]), /* I2C3 */ CLKDEV_DEV_ID("sh-sci.0", &mstp_clks[MSTP026]), /* SCIF0 */ + CLKDEV_DEV_ID("ffe40000.serial", &mstp_clks[MSTP026]), /* SCIF0 */ CLKDEV_DEV_ID("sh-sci.1", &mstp_clks[MSTP025]), /* SCIF1 */ + CLKDEV_DEV_ID("ffe41000.serial", &mstp_clks[MSTP025]), /* SCIF1 */ CLKDEV_DEV_ID("sh-sci.2", &mstp_clks[MSTP024]), /* SCIF2 */ + CLKDEV_DEV_ID("ffe42000.serial", &mstp_clks[MSTP024]), /* SCIF2 */ CLKDEV_DEV_ID("sh-sci.3", &mstp_clks[MSTP023]), /* SCIF3 */ + CLKDEV_DEV_ID("ffe43000.serial", &mstp_clks[MSTP023]), /* SCIF3 */ CLKDEV_DEV_ID("sh-sci.4", &mstp_clks[MSTP022]), /* SCIF4 */ + CLKDEV_DEV_ID("ffe44000.serial", &mstp_clks[MSTP022]), /* SCIF4 */ CLKDEV_DEV_ID("sh-sci.5", &mstp_clks[MSTP021]), /* SCIF6 */ + CLKDEV_DEV_ID("ffe45000.serial", &mstp_clks[MSTP021]), /* SCIF5 */ CLKDEV_DEV_ID("sh-hspi.0", &mstp_clks[MSTP007]), /* HSPI0 */ CLKDEV_DEV_ID("fffc7000.spi", &mstp_clks[MSTP007]), /* HSPI0 */ CLKDEV_DEV_ID("sh-hspi.1", &mstp_clks[MSTP007]), /* HSPI1 */ -- 2.0.0 ^ permalink raw reply related [flat|nested] 776+ messages in thread
end of thread, other threads:[~2015-12-11 23:16 UTC | newest] Thread overview: 776+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2013-10-08 9:05 [GIT PULL] Second round of Renesas ARM based SoC cleanups for v3.13 Simon Horman 2013-10-08 9:05 ` Simon Horman 2013-10-08 9:05 ` [PATCH 1/4] ARM: shmobile: r8a7778: cleanup registration of vin Simon Horman 2013-10-08 9:05 ` Simon Horman 2013-10-08 9:05 ` [PATCH 2/4] ARM: shmobile: r8a7778: cleanup registration of sh_eth Simon Horman 2013-10-08 9:05 ` Simon Horman 2013-10-08 9:05 ` [PATCH 3/4] ARM: shmobile: r8a7778: r8a7778_register_hspi() become static Simon Horman 2013-10-08 9:05 ` Simon Horman 2013-10-08 9:05 ` [PATCH 4/4] ARM: shmobile: lager: Constify platform data and resources Simon Horman 2013-10-08 9:05 ` Simon Horman 2013-10-09 4:53 ` [GIT PULL] Second round of Renesas ARM based SoC cleanups for v3.13 Simon Horman 2013-10-09 4:53 ` Simon Horman 2013-10-10 22:02 ` Kevin Hilman 2013-10-10 22:02 ` Kevin Hilman 2013-10-10 22:14 ` Kevin Hilman 2013-10-10 22:14 ` Kevin Hilman 2013-10-09 6:49 ` [GIT PULL] Second round of Renesas ARM based SoC updates " Simon Horman 2013-10-09 6:49 ` Simon Horman 2013-10-09 6:49 ` [PATCH 01/14] ARM: shmobile: r8a73a4: add a DMAC platform device and clock for it Simon Horman 2013-10-09 6:49 ` Simon Horman 2013-10-09 6:49 ` [PATCH 02/14] ARM: shmobile: r8a7778: add HPB-DMAC support Simon Horman 2013-10-09 6:49 ` Simon Horman 2013-10-09 6:49 ` [PATCH 03/14] ARM: shmobile: r8a7779: " Simon Horman 2013-10-09 6:49 ` Simon Horman 2013-11-11 20:43 ` Sergei Shtylyov 2013-11-11 21:43 ` Sergei Shtylyov 2013-11-11 20:45 ` Sergei Shtylyov 2013-11-11 21:46 ` Sergei Shtylyov 2013-11-12 1:58 ` Simon Horman 2013-11-12 1:58 ` Simon Horman 2013-11-12 16:13 ` Sergei Shtylyov 2013-11-12 16:13 ` Sergei Shtylyov 2013-11-13 2:41 ` Simon Horman 2013-11-13 2:41 ` Simon Horman 2013-10-09 6:49 ` [PATCH 04/14] ARM: shmobile: r8a7790: add I2C clocks and aliases for the DT mode Simon Horman 2013-10-09 6:49 ` Simon Horman 2013-10-09 6:49 ` [PATCH 05/14] ARM: shmobile: r8a73a4: add a clock alias for the DMAC in " Simon Horman 2013-10-09 6:49 ` Simon Horman 2013-10-09 6:49 ` [PATCH 06/14] ARM: shmobile: Break out R-Car Gen2 setup code Simon Horman 2013-10-09 6:49 ` Simon Horman 2013-10-09 6:49 ` [PATCH 07/14] ARM: shmobile: Introduce r8a7791_add_standard_devices() Simon Horman 2013-10-09 6:49 ` Simon Horman 2013-10-09 6:49 ` [PATCH 08/14] ARM: shmobile: r8a7791 IRQC platform device support Simon Horman 2013-10-09 6:49 ` Simon Horman 2013-10-09 6:49 ` [PATCH 09/14] ARM: shmobile: r8a7791 Arch timer workaround Simon Horman 2013-10-09 6:49 ` Simon Horman 2013-10-09 6:49 ` [PATCH 10/14] ARM: shmobile: Initial r7s72100 SoC support Simon Horman 2013-10-09 6:49 ` Simon Horman 2013-10-09 6:49 ` [PATCH 11/14] ARM: shmobile: r7s72100 SCIF support Simon Horman 2013-10-09 6:49 ` Simon Horman 2013-10-09 6:49 ` [PATCH 12/14] ARM: shmobile: r8a7778: split r8a7778_init_irq_extpin() for DT Simon Horman 2013-10-09 6:49 ` Simon Horman 2013-10-09 6:49 ` [PATCH 13/14] ARM: shmobile: r8a7779: split r8a7779_init_irq_extpin() " Simon Horman 2013-10-09 6:49 ` Simon Horman 2013-10-09 6:49 ` [PATCH 14/14] ARM: shmobile: r8a7791 SMP support Simon Horman 2013-10-09 6:49 ` Simon Horman 2013-10-10 23:04 ` [GIT PULL] Second round of Renesas ARM based SoC updates for v3.13 Kevin Hilman 2013-10-10 23:04 ` Kevin Hilman 2013-10-09 6:50 ` [GIT PULL] Second Round of Renesas ARM based SoC board " Simon Horman 2013-10-09 6:50 ` Simon Horman 2013-10-09 6:50 ` [PATCH 01/14] ARM: shmobile: ape6evm: add DMA support to MMCIF Simon Horman 2013-10-09 6:50 ` Simon Horman 2013-10-09 6:50 ` [PATCH 02/14] ARM: shmobile: bockw: enable DMA for SDHI0 Simon Horman 2013-10-09 6:50 ` Simon Horman 2013-10-09 6:50 ` [PATCH 03/14] ARM: shmobile: marzen: " Simon Horman 2013-10-09 6:50 ` Simon Horman 2013-10-09 6:50 ` [PATCH 04/14] ARM: shmobile: Genmai support Simon Horman 2013-10-09 6:50 ` Simon Horman 2013-10-09 6:50 ` [PATCH 05/14] ARM: shmobile: Use r8a7791_add_standard_devices() on Koelsch Simon Horman 2013-10-09 6:50 ` Simon Horman 2013-10-09 6:50 ` [PATCH 06/14] ARM: shmobile: Use arch timer " Simon Horman 2013-10-09 6:50 ` Simon Horman 2013-10-09 6:50 ` [PATCH 07/14] ARM: shmobile: Sync KZM9D DTS with KZM9D reference DTS Simon Horman 2013-10-09 6:50 ` Simon Horman 2013-10-09 6:50 ` [PATCH 08/14] ARM: shmobile: Use KZM9D without reference for multiplatform Simon Horman 2013-10-09 6:50 ` Simon Horman 2013-10-09 6:50 ` [PATCH 09/14] ARM: shmobile: Remove non-multiplatform KZM9D reference support Simon Horman 2013-10-09 6:50 ` Simon Horman 2013-10-09 6:51 ` [PATCH 10/14] ARM: shmobile: Let KZM9D multiplatform boot with KZM9D DTB Simon Horman 2013-10-09 6:51 ` Simon Horman 2013-10-09 6:51 ` [PATCH 11/14] ARM: shmobile: Remove KZM9D reference DTS Simon Horman 2013-10-09 6:51 ` Simon Horman 2013-10-09 6:51 ` [PATCH 12/14] ARM: shmobile: Use SMP on Koelsch Simon Horman 2013-10-09 6:51 ` Simon Horman 2013-10-09 6:51 ` [PATCH 13/14] ARM: shmobile: bockw: add SMSC support on reference Simon Horman 2013-10-09 6:51 ` Simon Horman 2013-10-09 6:51 ` [PATCH 14/14] ARM: shmobile: marzen: enable INTC IRQ Simon Horman 2013-10-09 6:51 ` Simon Horman 2013-10-14 22:02 ` [GIT PULL] Second Round of Renesas ARM based SoC board updates for v3.13 Kevin Hilman 2013-10-14 22:02 ` Kevin Hilman 2013-10-09 6:51 ` [GIT PULL] Second Round of Renesas ARM based SoC defconfig " Simon Horman 2013-10-09 6:51 ` Simon Horman 2013-10-09 6:51 ` [PATCH] ARM: shmobile: Genmai defconfig Simon Horman 2013-10-09 6:51 ` Simon Horman 2013-10-14 22:09 ` Kevin Hilman 2013-10-14 22:09 ` Kevin Hilman 2013-10-15 0:27 ` Simon Horman 2013-10-15 0:27 ` Simon Horman 2013-10-15 2:00 ` Magnus Damm 2013-10-15 2:00 ` Magnus Damm 2013-10-15 14:13 ` Kevin Hilman 2013-10-15 14:13 ` Kevin Hilman 2013-10-10 22:19 ` [GIT PULL] Second round of Renesas ARM based SoC cleanups for v3.13 Kevin Hilman 2013-10-10 22:19 ` Kevin Hilman 2013-12-23 2:07 ` [GIT PULL] Second Round of Renesas ARM based SoC cleanups for v3.14 Simon Horman 2013-12-23 2:07 ` Simon Horman 2013-12-23 2:07 ` [PATCH] ARM: shmobile: remove unnecessary platform_device as header cleanup Simon Horman 2013-12-23 2:07 ` Simon Horman 2013-12-29 21:19 ` [GIT PULL] Second Round of Renesas ARM based SoC cleanups for v3.14 Olof Johansson 2013-12-29 21:19 ` Olof Johansson 2014-01-24 1:14 ` [GIT PULL] Second Round of Renesas ARM Based SoC DT Fixes " Simon Horman 2014-01-24 1:14 ` Simon Horman 2014-01-24 1:14 ` [PATCH] ARM: shmobile: r8a7790.dtsi: ficx i2c[0-3] clock reference Simon Horman 2014-01-24 1:14 ` Simon Horman 2014-03-06 5:05 ` [GIT PULL] Second Round of Renesas ARM Based SoC Clock Updates for v3.15 Simon Horman 2014-03-06 5:05 ` Simon Horman 2014-03-06 5:05 ` [PATCH 1/2] ARM: shmobile: r8a7791: Remove legacy clock aliases for DT devices Simon Horman 2014-03-06 5:05 ` Simon Horman 2015-11-24 21:32 ` [PATCH 1/2] ARM: shmobile: r8a7791: remove deprecated #gpio-range-cells from dtsi Wolfram Sang 2015-11-25 0:31 ` Simon Horman 2014-03-06 5:05 ` [PATCH 2/2] ARM: shmobile: r8a7790: add sound SCU clock support Simon Horman 2014-03-06 5:05 ` Simon Horman 2014-03-17 7:48 ` [GIT PULL] Second Round of Renesas ARM Based SoC Clock Updates for v3.15 Olof Johansson 2014-03-17 7:48 ` Olof Johansson 2014-04-29 2:15 ` [GIT PULL] Second Round of Renesas ARM Based SoC DT Updates for v3.16 Simon Horman 2014-04-29 2:15 ` Simon Horman 2014-04-29 2:15 ` [PATCH 1/3] ARM: shmobile: henninger: initial device tree Simon Horman 2014-04-29 2:15 ` Simon Horman 2014-04-29 2:15 ` [PATCH 2/3] ARM: shmobile: henninger: add Ether DT support Simon Horman 2014-04-29 2:15 ` Simon Horman 2014-04-29 2:15 ` [PATCH 3/3] ARM: shmobile: henninger: enable SATA0 Simon Horman 2014-04-29 2:15 ` Simon Horman 2014-05-06 1:44 ` [GIT PULL] Second Round of Renesas ARM Based SoC DT Updates for v3.16 Olof Johansson 2014-05-06 1:44 ` Olof Johansson 2014-04-29 2:15 ` [GIT PULL] Second Round of Renesas ARM Based SoC " Simon Horman 2014-04-29 2:15 ` Simon Horman 2014-04-29 2:15 ` [PATCH] ARM: shmobile: Ignore callbacks for subsys generic_pm_domain_data Simon Horman 2014-04-29 2:15 ` Simon Horman 2014-05-06 1:46 ` [GIT PULL] Second Round of Renesas ARM Based SoC Updates for v3.16 Olof Johansson 2014-05-06 1:46 ` Olof Johansson 2014-05-07 4:54 ` Simon Horman 2014-05-07 4:54 ` Simon Horman 2014-05-13 8:03 ` [GIT PULL] Second Round of Renesas ARM Based SoC Clock " Simon Horman 2014-05-13 8:03 ` Simon Horman 2014-05-13 8:03 ` [PATCH 1/2] ARM: shmobile: r8a7740: Correct name of DT Ethernet clock Simon Horman 2014-05-13 8:03 ` Simon Horman 2014-05-13 8:03 ` [PATCH 2/2] ARM: shmobile: r8a7791: Correct SYS-DMAC clock defines Simon Horman 2014-05-13 8:03 ` Simon Horman 2014-05-20 5:36 ` [GIT PULL] Second Round of Renesas ARM Based SoC Clock Updates for v3.16 Olof Johansson 2014-05-20 5:36 ` Olof Johansson 2014-05-14 7:26 ` [GIT PULL] Second Round of Renesas ARM Based SoC Boards " Simon Horman 2014-05-14 7:26 ` Simon Horman 2014-05-14 7:26 ` [PATCH] ARM: shmobile: Minor cleanup of the Armadillo legacy board code Simon Horman 2014-05-14 7:26 ` Simon Horman 2014-05-20 5:39 ` [GIT PULL] Second Round of Renesas ARM Based SoC Boards Updates for v3.16 Olof Johansson 2014-05-20 5:39 ` Olof Johansson 2014-05-17 1:24 ` [GIT PULL] Second Round of Renesas ARM Based SoC r7s72100-ccf " Simon Horman 2014-05-17 1:24 ` Simon Horman 2014-05-17 1:24 ` [PATCH 1/5] ARM: shmobile: Remove non-multiplatform Genmai reference support Simon Horman 2014-05-17 1:24 ` Simon Horman 2014-05-17 1:24 ` [PATCH 2/5] ARM: shmobile: genmai-reference: Remove legacy clock support Simon Horman 2014-05-17 1:24 ` Simon Horman 2014-05-17 1:24 ` [PATCH 3/5] ARM: shmobile: Sync Genmai DTS with Genmai reference DTS Simon Horman 2014-05-17 1:24 ` Simon Horman 2014-05-17 1:24 ` [PATCH 4/5] ARM: shmobile: Let Genmai multiplatform boot with Genmai DTB Simon Horman 2014-05-17 1:24 ` Simon Horman 2014-05-17 1:24 ` [PATCH 5/5] ARM: shmobile: Remove Genmai reference DTS Simon Horman 2014-05-17 1:24 ` Simon Horman 2014-05-22 5:08 ` [GIT PULL] Second Round of Renesas ARM Based SoC r7s72100-ccf Updates for v3.16 Olof Johansson 2014-05-22 5:08 ` Olof Johansson 2014-05-22 5:42 ` Simon Horman 2014-05-22 5:42 ` Simon Horman 2014-07-01 0:28 ` [GIT PULL] Second Round of Renesas ARM Based SoC Defconfig Updates for v3.17 Simon Horman 2014-07-01 0:28 ` Simon Horman 2014-07-01 0:28 ` [PATCH] ARM: shmobile: Enable genmai board in multiplatform defconfig Simon Horman 2014-07-01 0:28 ` Simon Horman 2014-07-12 16:34 ` [GIT PULL] Second Round of Renesas ARM Based SoC Defconfig Updates for v3.17 Olof Johansson 2014-07-12 16:34 ` Olof Johansson 2014-07-01 0:28 ` [GIT PULL] Second Round of Renesas ARM Based SoC DT " Simon Horman 2014-07-01 0:28 ` Simon Horman 2014-07-01 0:28 ` [PATCH 1/4] ARM: shmobile: r8a7790: add internal PCI bridge nodes Simon Horman 2014-07-01 0:28 ` Simon Horman 2014-07-01 0:28 ` [PATCH 2/4] ARM: shmobile: lager: enable internal PCI Simon Horman 2014-07-01 0:28 ` Simon Horman 2014-07-01 0:28 ` [PATCH 3/4] ARM: shmobile: r8a7790: add DVC support for sound node on DTSI Simon Horman 2014-07-01 0:28 ` Simon Horman 2014-07-01 0:28 ` [PATCH 4/4] ARM: shmobile: r8a7791: " Simon Horman 2014-07-01 0:28 ` Simon Horman 2014-07-12 16:35 ` [GIT PULL] Second Round of Renesas ARM Based SoC DT Updates for v3.17 Olof Johansson 2014-07-12 16:35 ` Olof Johansson 2014-07-01 0:28 ` [GIT PULL] Second Round of Renesas ARM Based SoC r8a7779 Multiplatform " Simon Horman 2014-07-01 0:28 ` Simon Horman 2014-07-01 0:28 ` [PATCH] ARM: shmobile: Move r8a7779.h Simon Horman 2014-07-01 0:28 ` Simon Horman 2014-07-12 16:36 ` [GIT PULL] Second Round of Renesas ARM Based SoC r8a7779 Multiplatform Updates for v3.17 Olof Johansson 2014-07-12 16:36 ` Olof Johansson 2014-07-01 0:28 ` [GIT PULL] Second Round of Renesas ARM Based SoC soc-cleanup " Simon Horman 2014-07-01 0:28 ` Simon Horman 2014-07-01 0:28 ` [PATCH 1/7] ARM: shmobile: Move r7s72100.h Simon Horman 2014-07-01 0:28 ` Simon Horman 2014-07-01 0:28 ` [PATCH 2/7] ARM: shmobile: Move r8a73a4.h Simon Horman 2014-07-01 0:28 ` Simon Horman 2014-07-01 0:28 ` [PATCH 3/7] ARM: shmobile: Move r8a7740.h Simon Horman 2014-07-01 0:28 ` Simon Horman 2014-07-01 0:28 ` [PATCH 4/7] ARM: shmobile: Move r8a7778.h Simon Horman 2014-07-01 0:28 ` Simon Horman 2014-07-01 0:28 ` [PATCH 5/7] ARM: shmobile: Move r8a7790.h Simon Horman 2014-07-01 0:28 ` Simon Horman 2014-07-01 0:28 ` [PATCH 6/7] ARM: shmobile: Move sh73a0.h Simon Horman 2014-07-01 0:28 ` Simon Horman 2014-07-01 0:28 ` [PATCH 7/7] ARM: shmobile: Move sh7372.h Simon Horman 2014-07-01 0:28 ` Simon Horman 2014-07-12 16:37 ` [GIT PULL] Second Round of Renesas ARM Based SoC soc-cleanup Updates for v3.17 Olof Johansson 2014-07-12 16:37 ` Olof Johansson 2014-07-01 0:28 ` [GIT PULL] Second Round of Renesas ARM Based SoC " Simon Horman 2014-07-01 0:28 ` Simon Horman 2014-07-01 0:28 ` [PATCH 1/8] ARM: shmobile: Move r8a7791.h Simon Horman 2014-07-01 0:28 ` Simon Horman 2014-07-01 0:28 ` [PATCH 2/8] ARM: shmobile: Allow use of boot code for non-SMP case Simon Horman 2014-07-01 0:28 ` Simon Horman 2014-07-01 0:28 ` [PATCH 3/8] ARM: shmobile: Adjust APMU code to build for non-SMP Simon Horman 2014-07-01 0:28 ` Simon Horman 2014-07-01 0:28 ` [PATCH 4/8] ARM: shmobile: Use __init for APMU suspend init function Simon Horman 2014-07-01 0:28 ` Simon Horman 2014-07-01 0:28 ` [PATCH 5/8] ARM: shmobile: Move r8a7790 reset code to pm-r8a7790.c Simon Horman 2014-07-01 0:28 ` Simon Horman 2014-07-01 0:28 ` [PATCH 6/8] ARM: shmobile: Allow r8a7790 to build non-SMP APMU code Simon Horman 2014-07-01 0:28 ` Simon Horman 2014-07-01 0:28 ` [PATCH 7/8] ARM: shmobile: Move r8a7791 reset code to pm-r8a7791.c Simon Horman 2014-07-01 0:28 ` Simon Horman 2014-07-01 0:28 ` [PATCH 8/8] ARM: shmobile: Allow r8a7791 to build non-SMP APMU code Simon Horman 2014-07-01 0:28 ` Simon Horman 2014-07-12 16:46 ` [GIT PULL] Second Round of Renesas ARM Based SoC Updates for v3.17 Olof Johansson 2014-07-12 16:46 ` Olof Johansson 2014-07-12 20:55 ` Simon Horman 2014-07-12 20:55 ` Simon Horman 2014-07-12 13:53 ` [GIT PULL] Second Round of Renesas ARM Based SoC CPUFreq " Simon Horman 2014-07-12 13:53 ` Simon Horman 2014-07-12 13:53 ` [PATCH] ARM: shmobile: Remove opps table check for cpufreq Simon Horman 2014-07-12 13:53 ` Simon Horman 2014-07-13 4:47 ` [GIT PULL] Second Round of Renesas ARM Based SoC CPUFreq Updates for v3.17 Olof Johansson 2014-07-13 4:47 ` Olof Johansson 2014-07-15 9:16 ` [GIT PULL] Second Round of Renesas ARM Based SoC Clock " Simon Horman 2014-07-15 9:16 ` Simon Horman 2014-07-15 9:16 ` [PATCH 2/4] ARM: shmobile: r8a73a4: add SCI clock support for DT Simon Horman 2014-07-15 9:16 ` Simon Horman 2014-07-15 9:16 ` [PATCH 3/4] ARM: shmobile: r8a7740: correct " Simon Horman 2014-07-15 9:16 ` Simon Horman 2014-07-15 9:16 ` [PATCH 4/4] ARM: shmobile: sh73a0: add " Simon Horman 2014-07-15 9:16 ` Simon Horman 2014-07-15 13:19 ` Sergei Shtylyov 2014-07-15 13:19 ` Sergei Shtylyov 2014-07-15 23:52 ` Simon Horman 2014-07-15 23:52 ` Simon Horman 2014-07-19 4:31 ` [GIT PULL] Second Round of Renesas ARM Based SoC Clock Updates for v3.17 Olof Johansson 2014-07-19 4:31 ` Olof Johansson 2014-07-24 1:57 ` [GIT PULL] Second Round of Renesas ARM Based SoC Fixes for v3.16 Simon Horman 2014-07-24 1:57 ` Simon Horman 2014-07-24 1:57 ` [PATCH] ARM: shmobile: r8a7791: Fix SD2CKCR register address Simon Horman 2014-07-24 1:57 ` Simon Horman 2014-07-31 0:34 ` [GIT PULL] Second Round of Renesas ARM Based SoC Shdma Updates for v3.17 Simon Horman 2014-07-31 0:34 ` [PATCH 4/6] dmaengine: rcar-dmac: Add device tree bindings documentation Simon Horman 2014-07-31 0:34 ` Simon Horman 2014-08-04 8:05 ` Geert Uytterhoeven 2014-08-04 8:05 ` Geert Uytterhoeven 2014-08-04 14:01 ` Laurent Pinchart 2014-08-04 14:01 ` Laurent Pinchart 2014-08-05 1:46 ` Simon Horman 2014-08-05 1:46 ` Simon Horman 2014-08-05 13:33 ` Laurent Pinchart 2014-08-05 13:33 ` Laurent Pinchart 2014-07-31 11:59 ` [GIT PULL] Second Round of Renesas ARM Based SoC Shdma Updates for v3.17 Vinod Koul 2014-08-01 4:12 ` Simon Horman 2014-08-01 16:49 ` Vinod Koul 2014-08-04 7:08 ` Simon Horman 2014-08-25 1:09 ` [GIT PULL] Second Round Of Renesas ARM Based SoC Defconfig Updates For v3.18 Simon Horman 2014-08-25 1:09 ` Simon Horman 2014-08-25 1:10 ` [PATCH] ARM: shmobile: bockw: Do not disable SUSPEND in defconfig Simon Horman 2014-08-25 1:10 ` Simon Horman 2014-08-25 1:10 ` [GIT PULL] Second Round Of Renesas ARM Based SoC DT Updates For v3.18 Simon Horman 2014-08-25 1:10 ` Simon Horman 2014-08-25 1:10 ` [PATCH 1/7] ARM: shmobile: r8a7790: Add JPU clock dt and CPG define Simon Horman 2014-08-25 1:10 ` Simon Horman 2014-08-25 1:10 ` [PATCH 2/7] ARM: shmobile: r8a7791: " Simon Horman 2014-08-25 1:10 ` Simon Horman 2014-08-25 1:10 ` [PATCH 3/7] ARM: shmobile: r8a7740: clock register bits Simon Horman 2014-08-25 1:10 ` Simon Horman 2014-08-25 1:10 ` [PATCH 4/7] ARM: shmobile: r8a7779 dtsi: Remove superfluous interrupt-parent Simon Horman 2014-08-25 1:10 ` Simon Horman 2014-08-25 1:10 ` [PATCH 5/7] ARM: shmobile: r8a7790 " Simon Horman 2014-08-25 1:10 ` Simon Horman 2014-08-25 1:10 ` [PATCH 6/7] ARM: shmobile: r8a7791 " Simon Horman 2014-08-25 1:10 ` Simon Horman 2014-08-25 1:10 ` [PATCH 7/7] ARM: shmobile: sh73a0 dtsi: Move interrupt-parent to the top Simon Horman 2014-08-25 1:10 ` Simon Horman 2014-08-25 1:10 ` [GIT PULL] Second Round Of Renesas ARM Based SoC Updates For v3.18 Simon Horman 2014-08-25 1:10 ` Simon Horman 2014-08-25 1:10 ` [PATCH 1/3] ARM: shmobile: sh73a0: Remove duplicate CPUFreq bits Simon Horman 2014-08-25 1:10 ` Simon Horman 2014-08-25 1:10 ` [PATCH 2/3] ARM: shmobile: ape6evm: " Simon Horman 2014-08-25 1:10 ` Simon Horman 2014-08-25 1:10 ` [PATCH 3/3] ARM: shmobile: Move legacy INTC definitions from irqs.h to intc.h Simon Horman 2014-08-25 1:10 ` Simon Horman 2014-09-05 16:04 ` [GIT PULL] Second Round Of Renesas ARM Based SoC Updates For v3.18 Arnd Bergmann 2014-09-05 16:04 ` Arnd Bergmann 2014-09-11 0:57 ` [GIT PULL] Second Round of Renesas ARM Based SoC DT Timers Updates for v3.18 Simon Horman 2014-09-11 0:57 ` Simon Horman 2014-09-11 0:56 ` [PATCH 1/7] ARM: shmobile: r8a7790: Use SoC-specific 48-bit CMT compat string Simon Horman 2014-09-11 0:56 ` Simon Horman 2014-09-11 0:56 ` [PATCH 2/7] ARM: shmobile: r7s72100: Use SoC-specific MTU2 " Simon Horman 2014-09-11 0:56 ` Simon Horman 2014-09-11 0:57 ` [PATCH 3/7] ARM: shmobile: r8a7791: Use SoC-specific 48-bit CMT " Simon Horman 2014-09-11 0:57 ` Simon Horman 2014-09-11 0:57 ` [PATCH 4/7] ARM: shmobile: r8a7779: Use SoC-specific TMU " Simon Horman 2014-09-11 0:57 ` Simon Horman 2014-09-11 0:57 ` [PATCH 5/7] ARM: shmobile: r8a7740: Use SoC-specific 48-bit CMT " Simon Horman 2014-09-11 0:57 ` Simon Horman 2014-09-11 0:57 ` [PATCH 6/7] ARM: shmobile: sh73a0: Add CMT1 device to DT Simon Horman 2014-09-11 0:57 ` Simon Horman 2014-09-11 0:57 ` [PATCH 7/7] ARM: shmobile: kzm9g-reference: Enable CMT1 in device tree Simon Horman 2014-09-11 0:57 ` Simon Horman 2014-09-11 8:19 ` [GIT PULL] Second Round of Renesas ARM Based SoC DT Timers Updates for v3.18 Arnd Bergmann 2014-09-11 8:19 ` Arnd Bergmann 2014-09-12 1:23 ` [GIT PULL] Second Round of Renesas ARM Based SoC Clk " Simon Horman 2014-09-12 1:23 ` Simon Horman 2014-09-12 1:23 ` [PATCH] clk: shmobile: Add r8a7740, sh73a0 SoCs to MSTP bindings Simon Horman 2014-09-12 1:23 ` Simon Horman 2014-09-24 5:15 ` [GIT PULL] Second Round of Renesas ARM Based SoC Clk Updates for v3.18 Olof Johansson 2014-09-24 5:15 ` Olof Johansson 2014-11-04 1:50 ` [GIT PULL] Second Round of Renesas ARM Based SoC Boards Cleanups for v3.19 Simon Horman 2014-11-04 1:50 ` Simon Horman 2014-11-04 1:50 ` [PATCH] ARM: shmobile: marzen-reference: Don't include legacy clock.h Simon Horman 2014-11-04 1:50 ` Simon Horman 2014-11-19 21:30 ` [GIT PULL] Second Round of Renesas ARM Based SoC Boards Cleanups for v3.19 Arnd Bergmann 2014-11-19 21:30 ` Arnd Bergmann 2014-11-10 1:32 ` [GIT PULL] Second Round of Renesas ARM Based SoC DT " Simon Horman 2014-11-10 1:32 ` Simon Horman 2014-11-10 1:32 ` [PATCH 1/8] ARM: shmobile: r8a7778 dtsi: Remove unnecessary MMC options Simon Horman 2014-11-10 1:32 ` Simon Horman 2014-11-10 1:32 ` [PATCH 2/8] ARM: shmobile: r8a7779 " Simon Horman 2014-11-10 1:32 ` Simon Horman 2014-11-10 1:32 ` [PATCH 3/8] ARM: shmobile: r8a7790 " Simon Horman 2014-11-10 1:32 ` Simon Horman 2014-11-10 1:32 ` [PATCH 4/8] ARM: shmobile: r8a7790 dtsi: Drop bogus 0x unit-address prefix Simon Horman 2014-11-10 1:32 ` Simon Horman 2014-11-10 1:32 ` [PATCH 5/8] ARM: shmobile: r8a7791 " Simon Horman 2014-11-10 1:32 ` Simon Horman 2014-11-10 1:32 ` [PATCH 6/8] ARM: shmobile: kzm9g-reference dts: " Simon Horman 2014-11-10 1:32 ` Simon Horman 2014-11-10 1:32 ` [PATCH 7/8] ARM: shmobile: r8a73a4: fix scifb* naming Simon Horman 2014-11-10 1:32 ` Simon Horman 2014-11-10 1:32 ` [PATCH 8/8] ARM: shmobile: alt dts: Drop console= bootargs parameter Simon Horman 2014-11-10 1:32 ` Simon Horman 2014-11-19 21:48 ` [GIT PULL] Second Round of Renesas ARM Based SoC DT Cleanups for v3.19 Arnd Bergmann 2014-11-19 21:48 ` Arnd Bergmann 2014-11-10 1:32 ` [GIT PULL] Second Round of Renesas ARM Based SoC Soc Updates " Simon Horman 2014-11-10 1:32 ` Simon Horman 2014-11-10 1:32 ` [PATCH 1/3] ARM: shmobile: Separate APMU resource data into CPU dependant part Simon Horman 2014-11-10 1:32 ` Simon Horman 2014-11-10 1:32 ` [PATCH 2/3] ARM: shmobile: r8a7791: Correct number of CPU cores Simon Horman 2014-11-10 1:32 ` Simon Horman 2014-11-10 1:32 ` [PATCH 3/3] ARM: shmobile: Enable PCI domains for R-Car Gen2 devices Simon Horman 2014-11-10 1:32 ` Simon Horman 2014-11-19 21:10 ` [GIT PULL] Second Round of Renesas ARM Based SoC Soc Updates for v3.19 Arnd Bergmann 2014-11-19 21:10 ` Arnd Bergmann 2014-11-13 1:20 ` [GIT PULL] Second Round of Renesas ARM Based SoC DT " Simon Horman 2014-11-13 1:20 ` Simon Horman 2014-11-13 1:19 ` [PATCH 01/25] ARM: shmobile: r8a7794: Add VIN clock to device tree Simon Horman 2014-11-13 1:19 ` Simon Horman 2014-11-13 1:19 ` [PATCH 02/25] ARM: shmobile: r8a7790: Add Audio DMAC devices to DT Simon Horman 2014-11-13 1:19 ` Simon Horman 2014-11-13 1:19 ` [PATCH 03/25] ARM: shmobile: r8a7791: " Simon Horman 2014-11-13 1:19 ` Simon Horman 2014-11-13 1:19 ` [PATCH 04/25] ARM: shmobile: r8a7790: Add Audio DMAC peri peri " Simon Horman 2014-11-13 1:19 ` Simon Horman 2014-11-13 1:19 ` [PATCH 05/25] ARM: shmobile: r8a7791: " Simon Horman 2014-11-13 1:19 ` Simon Horman 2014-11-13 1:19 ` [PATCH 06/25] ARM: shmobile: r8a7790: sound enables Audio DMAC entry on DTSI Simon Horman 2014-11-13 1:19 ` Simon Horman 2014-11-13 1:19 ` [PATCH 07/25] ARM: shmobile: r8a7791: " Simon Horman 2014-11-13 1:19 ` Simon Horman 2014-11-13 1:19 ` [PATCH 08/25] ARM: shmobile: r8a7790: sound enables Audio DMAC peri peri " Simon Horman 2014-11-13 1:19 ` Simon Horman 2014-11-17 11:29 ` Arnd Bergmann 2014-11-17 11:29 ` Arnd Bergmann 2014-11-18 0:03 ` Kuninori Morimoto 2014-11-18 0:03 ` Kuninori Morimoto 2014-11-18 0:50 ` Simon Horman 2014-11-18 0:50 ` Simon Horman 2014-11-18 12:56 ` Arnd Bergmann 2014-11-18 12:56 ` Arnd Bergmann 2014-11-19 0:10 ` Simon Horman 2014-11-19 0:10 ` Simon Horman 2014-11-18 12:54 ` Arnd Bergmann 2014-11-18 12:54 ` Arnd Bergmann 2014-11-19 0:16 ` Kuninori Morimoto 2014-11-19 0:16 ` Kuninori Morimoto 2014-11-19 8:05 ` Kuninori Morimoto 2014-11-19 8:05 ` Kuninori Morimoto 2014-11-25 0:59 ` Kuninori Morimoto 2014-11-25 0:59 ` Kuninori Morimoto 2014-11-13 1:20 ` [PATCH 09/25] ARM: shmobile: r8a7791: " Simon Horman 2014-11-13 1:20 ` Simon Horman 2014-11-13 1:20 ` [PATCH 10/25] ARM: shmobile: lager: fixup IIC2 clock frequency Simon Horman 2014-11-13 1:20 ` Simon Horman 2014-11-13 1:20 ` [PATCH 11/25] ARM: shmobile: lager: Sound PIO support on DTS Simon Horman 2014-11-13 1:20 ` Simon Horman 2014-11-13 1:20 ` [PATCH 12/25] ARM: shmobile: lager: Sound DMA " Simon Horman 2014-11-13 1:20 ` Simon Horman 2014-11-13 1:20 ` [PATCH 13/25] ARM: shmobile: lager: Sound DMA support via BUSIF " Simon Horman 2014-11-13 1:20 ` Simon Horman 2014-11-13 1:20 ` [PATCH 14/25] ARM: shmobile: lager: Sound DMA support via SRC " Simon Horman 2014-11-13 1:20 ` Simon Horman 2014-11-13 1:20 ` [PATCH 15/25] ARM: shmobile: lager: Sound DMA support via DVC " Simon Horman 2014-11-13 1:20 ` Simon Horman 2014-11-13 1:20 ` [PATCH 16/25] ARM: shmobile: koelsch: fixup I2C2 clock frequency Simon Horman 2014-11-13 1:20 ` Simon Horman 2014-11-13 1:20 ` [PATCH 17/25] ARM: shmobile: koelsch: Sound PIO support on DTS Simon Horman 2014-11-13 1:20 ` Simon Horman 2014-11-13 1:20 ` [PATCH 18/25] ARM: shmobile: koelsch: Sound DMA " Simon Horman 2014-11-13 1:20 ` Simon Horman 2014-11-13 1:20 ` [PATCH 19/25] ARM: shmobile: koelsch: Sound DMA support via BUSIF " Simon Horman 2014-11-13 1:20 ` Simon Horman 2014-11-13 1:20 ` [PATCH 20/25] ARM: shmobile: koelsch: Sound DMA support via SRC " Simon Horman 2014-11-13 1:20 ` Simon Horman 2014-11-13 1:20 ` [PATCH 21/25] ARM: shmobile: koelsch: Sound DMA support via DVC " Simon Horman 2014-11-13 1:20 ` Simon Horman 2014-11-13 1:20 ` [PATCH 22/25] ARM: shmobile: r8a73a4 dtsi: Add SoC-specific IIC compatible properties Simon Horman 2014-11-13 1:20 ` Simon Horman 2014-11-13 1:20 ` [PATCH 23/25] ARM: shmobile: sh73a0 " Simon Horman 2014-11-13 1:20 ` Simon Horman 2014-11-13 1:20 ` [PATCH 24/25] ARM: shmobile: koelsch dts: Add labels for the LEDs Simon Horman 2014-11-13 1:20 ` Simon Horman 2014-11-13 1:20 ` [PATCH 25/25] ARM: shmobile: kzm9g-reference " Simon Horman 2014-11-13 1:20 ` Simon Horman 2014-11-19 22:09 ` [GIT PULL] Second Round of Renesas ARM Based SoC DT Updates for v3.19 Arnd Bergmann 2014-11-19 22:09 ` Arnd Bergmann 2014-11-20 0:56 ` Simon Horman 2014-11-20 0:56 ` Simon Horman 2014-11-21 0:55 ` [GIT PULL] Second Round of Renesas ARM Based SoC Cleanups " Simon Horman 2014-11-21 0:55 ` Simon Horman 2014-11-21 0:55 ` [PATCH 1/3] ARM: shmobile: sh73a0: Spelling/grammar s/entity map/identity mapping/ Simon Horman 2014-11-21 0:55 ` Simon Horman 2014-11-21 0:55 ` [PATCH 2/3] ARM: shmobile: sh7372: " Simon Horman 2014-11-21 0:55 ` Simon Horman 2014-11-21 0:55 ` [PATCH 3/3] ARM: shmobile: r8a7779: Spelling/grammar s/entity/identity/, s/map/mapping/ Simon Horman 2014-11-21 0:55 ` Simon Horman 2014-11-21 12:06 ` [GIT PULL] Second Round of Renesas ARM Based SoC Cleanups for v3.19 Arnd Bergmann 2014-11-21 12:06 ` Arnd Bergmann 2014-11-25 0:33 ` Simon Horman 2014-11-25 0:33 ` Simon Horman 2015-01-16 2:34 ` [GIT PULL] Second Round of Renesas ARM Based SoC DT Cleanups for v3.20 Simon Horman 2015-01-16 2:34 ` Simon Horman 2015-01-16 2:34 ` [PATCH 1/4] ARM: shmobile: r8a7790 dtsi: Drop "renesas,rcar_sound" compatible value Simon Horman 2015-01-16 2:34 ` [PATCH 1/4] ARM: shmobile: r8a7790 dtsi: Drop "renesas, rcar_sound" " Simon Horman 2015-01-16 2:34 ` [PATCH 2/4] ARM: shmobile: r8a7791 dtsi: Drop "renesas,rcar_sound" " Simon Horman 2015-01-16 2:34 ` [PATCH 2/4] ARM: shmobile: r8a7791 dtsi: Drop "renesas, rcar_sound" " Simon Horman 2015-01-16 2:34 ` [PATCH 3/4] ARM: shmobile: r8a7790: tidyup #sound-dai-cells settings Simon Horman 2015-01-16 2:34 ` Simon Horman 2015-01-22 4:09 ` [PATCH 3/4] ARM: shmobile: r8a7790: tidyup SDHI register size on DTSI Kuninori Morimoto 2015-01-16 2:34 ` [PATCH 4/4] ARM: shmobile: r8a7791: tidyup #sound-dai-cells settings Simon Horman 2015-01-16 2:34 ` Simon Horman 2015-01-22 4:09 ` [PATCH 4/4] ARM: shmobile: r8a7791: tidyup SDHI register size on DTSI Kuninori Morimoto 2015-01-20 0:34 ` [GIT PULL] Second Round of Renesas ARM Based SoC DT Cleanups for v3.20 Olof Johansson 2015-01-20 0:34 ` Olof Johansson 2015-01-16 2:35 ` [GIT PULL] Second Round of Renesas ARM Based SoC Defconfig Updates " Simon Horman 2015-01-16 2:35 ` Simon Horman 2015-01-16 2:35 ` [PATCH] ARM: shmobile: Enable kzm9g board in multiplatform defconfig Simon Horman 2015-01-16 2:35 ` Simon Horman 2015-01-21 22:52 ` [GIT PULL] Second Round of Renesas ARM Based SoC Defconfig Updates for v3.20 Olof Johansson 2015-01-21 22:52 ` Olof Johansson 2015-01-16 2:45 ` [GIT PULL] Second Round of Renesas ARM Based SoC Sh73a0 CCF " Simon Horman 2015-01-16 2:45 ` Simon Horman 2015-01-16 2:45 ` [PATCH] clk: shmobile: fix sparse NULL pointer warning Simon Horman 2015-01-16 2:45 ` Simon Horman 2015-01-21 23:14 ` [GIT PULL] Second Round of Renesas ARM Based SoC Sh73a0 CCF Updates for v3.20 Olof Johansson 2015-01-21 23:14 ` Olof Johansson 2015-01-17 0:58 ` [GIT PULL] Second Round of Renesas ARM Based SoC DT " Simon Horman 2015-01-17 0:58 ` Simon Horman 2015-01-17 0:58 ` [PATCH 01/11] ARM: shmobile: sh73a0 dtsi: Add SoC-specific FSI2 compatible property Simon Horman 2015-01-17 0:58 ` Simon Horman 2015-01-17 0:58 ` [PATCH 02/11] PM / Domains: Add DT bindings for the R-Mobile System Controller Simon Horman 2015-01-17 0:58 ` Simon Horman 2015-01-17 0:58 ` [PATCH 03/11] ARM: shmobile: r8a7740 dtsi: Add PM domain support Simon Horman 2015-01-17 0:58 ` Simon Horman 2015-01-17 0:58 ` [PATCH 04/11] ARM: shmobile: r8a7791: fix MSTP8 input clocks Simon Horman 2015-01-17 0:58 ` Simon Horman 2015-01-17 0:58 ` [PATCH 05/11] ARM: shmobile: r8a7790: add SRC interrupt number on DTSI Simon Horman 2015-01-17 0:58 ` Simon Horman 2015-01-17 0:58 ` [PATCH 06/11] ARM: shmobile: r8a7791: " Simon Horman 2015-01-17 0:58 ` Simon Horman 2015-01-17 0:58 ` [PATCH 07/11] ARM: shmobile: Add DT bindings for Renesas memory controllers Simon Horman 2015-01-17 0:58 ` Simon Horman 2015-01-17 0:58 ` [PATCH 08/11] ARM: shmobile: r8a73a4 dtsi: Add memory-controller nodes Simon Horman 2015-01-17 0:58 ` Simon Horman 2015-01-17 0:58 ` [PATCH 09/11] ARM: shmobile: r8a7740 dtsi: Add memory-controller node Simon Horman 2015-01-17 0:58 ` Simon Horman 2015-01-17 0:58 ` [PATCH 10/11] ARM: shmobile: sh73a0 dtsi: Add memory-controller nodes Simon Horman 2015-01-17 0:58 ` Simon Horman 2015-01-17 0:58 ` [PATCH 11/11] PM / Domains: R-Mobile SYSC: Document SH-Mobile AG5 (sh73a0) binding Simon Horman 2015-01-17 0:58 ` Simon Horman 2015-01-22 1:01 ` [GIT PULL] Second Round of Renesas ARM Based SoC DT Updates for v3.20 Olof Johansson 2015-01-22 1:01 ` Olof Johansson 2015-01-17 0:59 ` [GIT PULL] Second Round of Renesas ARM Based SoC " Simon Horman 2015-01-17 0:59 ` Simon Horman 2015-01-17 0:59 ` [PATCH 1/3] ARM: shmobile: R-Mobile: Use generic_pm_domain.attach_dev() for pm_clk setup Simon Horman 2015-01-17 0:59 ` Simon Horman 2015-01-17 0:59 ` [PATCH 2/3] ARM: shmobile: R-Mobile: Store SYSC base address in rmobile_pm_domain Simon Horman 2015-01-17 0:59 ` Simon Horman 2015-01-17 0:59 ` [PATCH 3/3] ARM: shmobile: R-Mobile: Add DT support for PM domains Simon Horman 2015-01-17 0:59 ` Simon Horman 2015-01-22 1:02 ` [GIT PULL] Second Round of Renesas ARM Based SoC Updates for v3.20 Olof Johansson 2015-01-22 1:02 ` Olof Johansson 2015-01-20 1:26 ` [GIT PULL] Second Round of Renesas ARM Based SoC Fixes for v3.19 Simon Horman 2015-01-20 1:26 ` Simon Horman 2015-01-20 1:26 ` [PATCH 1/2] ARM: shmobile: r8a7778: Instantiate GIC from C board code in legacy builds Simon Horman 2015-01-20 1:26 ` Simon Horman 2015-01-20 1:26 ` [PATCH 2/2] ARM: shmobile: r8a7779: " Simon Horman 2015-01-20 1:26 ` Simon Horman 2015-01-20 9:42 ` [GIT PULL] Second Round of Renesas ARM Based SoC Fixes for v3.19 Geert Uytterhoeven 2015-01-20 9:42 ` Geert Uytterhoeven 2015-01-22 1:16 ` Olof Johansson 2015-01-22 1:16 ` Olof Johansson 2015-01-20 1:27 ` [GIT PULL] Second Round of Renesas ARM Based SoC sh73a0 Multiplatform Updates for v3.20 Simon Horman 2015-01-20 1:27 ` Simon Horman 2015-01-20 1:27 ` [PATCH] ARM: shmobile: sh73a0 dtsi: Add Cortex-A9 TWD node Simon Horman 2015-01-20 1:27 ` Simon Horman 2015-01-22 1:03 ` [GIT PULL] Second Round of Renesas ARM Based SoC sh73a0 Multiplatform Updates for v3.20 Simon Horman 2015-01-22 1:03 ` Simon Horman 2015-01-22 1:34 ` Olof Johansson 2015-01-22 1:34 ` Olof Johansson 2015-01-22 2:01 ` Simon Horman 2015-01-22 2:01 ` Simon Horman 2015-01-22 6:36 ` Olof Johansson 2015-01-22 6:36 ` Olof Johansson 2015-03-10 0:42 ` [GIT PULL] Second Round of Renesas ARM Based SoC Cleanup for v4.1 Simon Horman 2015-03-10 0:42 ` Simon Horman 2015-03-10 0:43 ` [PATCH 1/3] ARM: shmobile: Remove stray closing parenthesis in debug description Simon Horman 2015-03-10 0:43 ` Simon Horman 2015-03-10 0:43 ` [PATCH 2/3] ARM: shmobile: R-Car Gen2: CONFIG_COMMON_CLK is always set Simon Horman 2015-03-10 0:43 ` Simon Horman 2015-03-10 0:43 ` [PATCH 3/3] ARM: shmobile: r8a7740: Remove restart callback Simon Horman 2015-03-10 0:43 ` Simon Horman 2015-03-11 22:08 ` [GIT PULL] Second Round of Renesas ARM Based SoC Cleanup for v4.1 Arnd Bergmann 2015-03-11 22:08 ` Arnd Bergmann 2015-03-11 23:30 ` Simon Horman 2015-03-11 23:30 ` Simon Horman 2015-03-10 0:44 ` [GIT PULL] Second Round of Renesas ARM Based SoC DT Updates " Simon Horman 2015-03-10 0:44 ` Simon Horman 2015-03-10 0:44 ` [PATCH 01/15] ARM: shmobile: r8a7790: Reference DMA channels in SDHI DT nodes Simon Horman 2015-03-10 0:44 ` Simon Horman 2015-03-10 0:44 ` [PATCH 02/15] ARM: shmobile: r8a7791: " Simon Horman 2015-03-10 0:44 ` Simon Horman 2015-03-10 0:44 ` [PATCH 03/15] ARM: shmobile: r8a7790: tidyup SDHI register size on DTSI Simon Horman 2015-03-10 0:44 ` Simon Horman 2015-03-10 0:44 ` [PATCH 04/15] ARM: shmobile: r8a7791: " Simon Horman 2015-03-10 0:44 ` Simon Horman 2015-03-10 0:44 ` [PATCH 05/15] ARM: shmobile: r8a7790: Fix HSUSB clock to hp_clk from mp_clk Simon Horman 2015-03-10 0:44 ` Simon Horman 2015-03-10 0:44 ` [PATCH 06/15] ARM: shmobile: r8a7791: " Simon Horman 2015-03-10 0:44 ` Simon Horman 2015-03-10 0:44 ` [PATCH 07/15] ARM: shmobile: lager: Add DU HDMI output support Simon Horman 2015-03-10 0:44 ` Simon Horman 2015-03-10 0:44 ` [PATCH 08/15] ARM: shmobile: ape6evm dts: Fix polarity of LEDs Simon Horman 2015-03-10 0:44 ` Simon Horman 2015-03-10 0:44 ` [PATCH 09/15] ARM: shmobile: marzen: Add DU external pixel clock to DT Simon Horman 2015-03-10 0:44 ` Simon Horman 2015-03-10 0:44 ` [PATCH 10/15] ARM: shmobile: koelsch: Add DU external pixel clocks " Simon Horman 2015-03-10 0:44 ` Simon Horman 2015-03-10 0:44 ` [PATCH 11/15] ARM: shmobile: lager: " Simon Horman 2015-03-10 0:44 ` Simon Horman 2015-03-10 0:44 ` [PATCH 12/15] ARM: shmobile: r8a7794: alt: Fix ethernet controller PHY IRQ line Simon Horman 2015-03-10 0:44 ` Simon Horman 2015-03-10 0:44 ` [PATCH 13/15] ARM: shmobile: r8a7791: Fix IPMMU-GP clock to device tree Simon Horman 2015-03-10 0:44 ` Simon Horman 2015-03-10 0:44 ` [PATCH 14/15] ARM: shmobile: ape6evm dts: Enable pull-up for GPIO switches Simon Horman 2015-03-10 0:44 ` Simon Horman 2015-03-10 0:44 ` [PATCH 15/15] ARM: shmobile: ape6evm dts: Configure the custom switch as wake-up source Simon Horman 2015-03-10 0:44 ` Simon Horman 2015-03-11 21:56 ` [GIT PULL] Second Round of Renesas ARM Based SoC DT Updates for v4.1 Arnd Bergmann 2015-03-11 21:56 ` Arnd Bergmann 2015-05-29 0:53 ` [GIT PULL] Second Round of Renesas ARM Based SoC Defconfig Updates for v4.2 Simon Horman 2015-05-29 0:53 ` Simon Horman 2015-05-29 0:54 ` [PATCH] ARM: multi_v7_defconfig: Enable shmobile r8a7778/bockw platform Simon Horman 2015-05-29 0:54 ` Simon Horman 2015-05-29 14:25 ` [GIT PULL] Second Round of Renesas ARM Based SoC Defconfig Updates for v4.2 Arnd Bergmann 2015-05-29 14:25 ` Arnd Bergmann 2015-05-29 0:54 ` [GIT PULL] Second Round of Renesas ARM Based SoC DT " Simon Horman 2015-05-29 0:54 ` Simon Horman 2015-05-29 0:54 ` [PATCH 01/10] ARM: shmobile: lager dts: Replace "nor-jedec" by "jedec,spi-nor" Simon Horman 2015-05-29 0:54 ` [PATCH 01/10] ARM: shmobile: lager dts: Replace "nor-jedec" by "jedec, spi-nor" Simon Horman 2015-05-29 0:54 ` [PATCH 02/10] ARM: shmobile: koelsch dts: Replace "nor-jedec" by "jedec,spi-nor" Simon Horman 2015-05-29 0:54 ` [PATCH 02/10] ARM: shmobile: koelsch dts: Replace "nor-jedec" by "jedec, spi-nor" Simon Horman 2015-05-29 0:54 ` [PATCH 03/10] ARM: shmobile: bockw-reference dts: Replace "nor-jedec" by "jedec,spi-nor" Simon Horman 2015-05-29 0:54 ` [PATCH 03/10] ARM: shmobile: bockw-reference dts: Replace "nor-jedec" by "jedec, spi-nor" Simon Horman 2015-05-29 0:54 ` [PATCH 04/10] ARM: shmobile: henninger dts: Replace "nor-jedec" by "jedec,spi-nor" Simon Horman 2015-05-29 0:54 ` [PATCH 04/10] ARM: shmobile: henninger dts: Replace "nor-jedec" by "jedec, spi-nor" Simon Horman 2015-05-29 0:54 ` [PATCH 05/10] ARM: shmobile: bockw dts: Replace "nor-jedec" by "jedec,spi-nor" Simon Horman 2015-05-29 0:54 ` [PATCH 05/10] ARM: shmobile: bockw dts: Replace "nor-jedec" by "jedec, spi-nor" Simon Horman 2015-05-29 0:54 ` [PATCH 06/10] ARM: shmobile: r8a7790: add MMCIF max-frequency Simon Horman 2015-05-29 0:54 ` Simon Horman 2015-05-29 0:54 ` [PATCH 07/10] ARM: shmobile: r8a7791: " Simon Horman 2015-05-29 0:54 ` Simon Horman 2015-05-29 0:54 ` [PATCH 08/10] ARM: shmobile: r8a7794 dtsi: Describe DMA for the serial ports Simon Horman 2015-05-29 0:54 ` Simon Horman 2015-05-29 0:54 ` [PATCH 09/10] ARM: shmobile: r8a7791 " Simon Horman 2015-05-29 0:54 ` Simon Horman 2015-05-29 0:54 ` [PATCH 10/10] ARM: shmobile: r8a7790 " Simon Horman 2015-05-29 0:54 ` Simon Horman 2015-05-29 12:00 ` [GIT PULL] Second Round of Renesas ARM Based SoC DT Updates for v4.2 Arnd Bergmann 2015-05-29 12:00 ` Arnd Bergmann 2015-07-24 8:41 ` [GIT PULL] Second Round of Renesas ARM Based SoC Cleanup for v4.3 Simon Horman 2015-07-24 8:41 ` Simon Horman 2015-07-24 8:41 ` [PATCH] ARM: shmobile: apmu: silence build warnings Simon Horman 2015-07-24 8:41 ` Simon Horman 2015-07-27 12:27 ` [GIT PULL] Second Round of Renesas ARM Based SoC Cleanup for v4.3 Olof Johansson 2015-07-27 12:27 ` Olof Johansson 2015-07-24 8:41 ` [GIT PULL] Second Round of Renesas ARM Based SoC DT Updates " Simon Horman 2015-07-24 8:41 ` Simon Horman 2015-07-24 8:41 ` [PATCH 1/9] ARM: shmobile: emev2: add IIC cores to dtsi Simon Horman 2015-07-24 8:41 ` Simon Horman 2015-07-24 8:41 ` [PATCH 2/9] ARM: shmobile: emev2: kzm9d: enable IIC busses Simon Horman 2015-07-24 8:41 ` Simon Horman 2015-07-24 8:41 ` [PATCH 3/9] ARM: shmobile: lager: add sound label on DTS Simon Horman 2015-07-24 8:41 ` Simon Horman 2015-07-24 8:41 ` [PATCH 4/9] ARM: shmobile: koelsch: " Simon Horman 2015-07-24 8:41 ` Simon Horman 2015-07-24 8:41 ` [PATCH 5/9] ARM: shmobile: lager: Fix adv7511 IRQ sensing Simon Horman 2015-07-24 8:41 ` Simon Horman 2015-07-24 8:41 ` [PATCH 6/9] ARM: shmobile: r8a7790: Add Audio CTU support on DTSI Simon Horman 2015-07-24 8:41 ` Simon Horman 2015-07-24 8:41 ` [PATCH 7/9] ARM: shmobile: r8a7790: Add Audio MIX " Simon Horman 2015-07-24 8:41 ` Simon Horman 2015-07-24 8:41 ` [PATCH 8/9] ARM: shmobile: r8a7791: Add Audio CTU " Simon Horman 2015-07-24 8:41 ` Simon Horman 2015-07-24 8:41 ` [PATCH 9/9] ARM: shmobile: r8a7791: Add Audio MIX " Simon Horman 2015-07-24 8:41 ` Simon Horman 2015-07-30 0:23 ` [GIT PULL] Second Round of Renesas ARM Based SoC Defconfig Updates for v4.3 Simon Horman 2015-07-30 0:23 ` Simon Horman 2015-07-30 0:23 ` [PATCH] ARM: shmobile: Enable fixed voltage regulator in shmobile_defconfig Simon Horman 2015-07-30 0:23 ` Simon Horman 2015-08-05 8:36 ` [GIT PULL] Second Round of Renesas ARM Based SoC Defconfig Updates for v4.3 Olof Johansson 2015-08-05 8:36 ` Olof Johansson 2015-10-15 0:33 ` [GIT PULL] Second Round of Renesas ARM Based SoC Cleanup for v4.4 Simon Horman 2015-10-15 0:33 ` Simon Horman 2015-10-15 0:33 ` [PATCH 1/6] ARM: shmobile: smp: Make shmobile_smp_apmu_cpu_shutdown() static Simon Horman 2015-10-15 0:33 ` Simon Horman 2015-10-15 0:33 ` [PATCH 2/6] ARM: shmobile: r8a7778: Make r8a7778_init_irq_dt() static Simon Horman 2015-10-15 0:33 ` Simon Horman 2015-10-15 0:33 ` [PATCH 3/6] ARM: shmobile: r8a7779: Remove legacy PM Domain remainings Simon Horman 2015-10-15 0:33 ` Simon Horman 2015-10-15 0:33 ` [PATCH 4/6] ARM: shmobile: apmu: correct type of CPU id Simon Horman 2015-10-15 0:33 ` Simon Horman 2015-10-15 0:33 ` [PATCH 5/6] ARM: shmobile: dt: Rename incorrect interrupt related binding Simon Horman 2015-10-15 0:33 ` Simon Horman 2015-10-15 8:06 ` Lee Jones 2015-10-15 8:06 ` Lee Jones 2015-10-15 0:33 ` [PATCH 6/6] ARM: shmobile: R-Mobile: add missing of_node_put Simon Horman 2015-10-15 0:33 ` Simon Horman 2015-10-22 16:48 ` [GIT PULL] Second Round of Renesas ARM Based SoC Cleanup for v4.4 Olof Johansson 2015-10-22 16:48 ` Olof Johansson 2015-10-15 0:34 ` [GIT PULL] Second Round of Renesas ARM Based SoC Defconfig Updates " Simon Horman 2015-10-15 0:34 ` Simon Horman 2015-10-15 0:34 ` [PATCH 1/2] ARM: shmobile: defconfig: enable HDMI output for RCar Simon Horman 2015-10-15 0:34 ` Simon Horman 2015-10-15 0:34 ` [PATCH 2/2] ARM: multi_v7_defconfig: enable HDMI output for Renesas RCar Simon Horman 2015-10-15 0:34 ` Simon Horman 2015-10-22 16:47 ` [GIT PULL] Second Round of Renesas ARM Based SoC Defconfig Updates for v4.4 Olof Johansson 2015-10-22 16:47 ` Olof Johansson 2015-10-15 0:34 ` [GIT PULL] Second Round of Renesas ARM Based SoC DT " Simon Horman 2015-10-15 0:34 ` Simon Horman 2015-10-15 0:34 ` [PATCH 1/7] ARM: shmobile: porter: add SDHI0/2 DT support Simon Horman 2015-10-15 0:34 ` Simon Horman 2015-10-15 0:34 ` [PATCH 2/7] ARM: shmobile: porter: enable SATA0 Simon Horman 2015-10-15 0:34 ` Simon Horman 2015-10-15 0:34 ` [PATCH 3/7] ARM: shmobile: porter: add I2C2 DT support Simon Horman 2015-10-15 0:34 ` Simon Horman 2015-10-15 0:34 ` [PATCH 4/7] ARM: shmobile: porter: add VIN0/ADV7180 " Simon Horman 2015-10-15 0:34 ` Simon Horman 2015-10-15 0:34 ` [PATCH 5/7] ARM: shmobile: porter: add QSPI " Simon Horman 2015-10-15 0:34 ` Simon Horman 2015-10-15 0:34 ` [PATCH 6/7] ARM: shmobile: porter: enable PCIe Simon Horman 2015-10-15 0:34 ` Simon Horman 2015-10-15 0:34 ` [PATCH 7/7] ARM: shmobile: porter: enable internal PCI and USB PHY Simon Horman 2015-10-15 0:34 ` Simon Horman 2015-10-15 15:19 ` [GIT PULL] Second Round of Renesas ARM Based SoC DT Updates for v4.4 Arnd Bergmann 2015-10-15 15:19 ` Arnd Bergmann 2015-11-27 1:55 ` [GIT PULL] Second Round of Renesas ARM Based SoC DT Updates for v4.5 Simon Horman 2015-11-27 1:55 ` Simon Horman 2015-11-27 1:55 ` [PATCH 01/15] ARM: shmobile: r8a7790: switch console back to scif0 Simon Horman 2015-11-27 1:55 ` Simon Horman 2015-11-27 1:55 ` [PATCH 02/15] ARM: shmobile: bockw dts: define sdhi0 pins with pull-ups Simon Horman 2015-11-27 1:55 ` Simon Horman 2015-11-27 1:55 ` [PATCH 03/15] ARM: shmobile: r8a7794: alt: Enable PFC DU for the VGA port Simon Horman 2015-11-27 1:55 ` Simon Horman 2015-11-27 1:55 ` [PATCH 04/15] ARM: shmobile: r8a7793: Add DU node to device tree Simon Horman 2015-11-27 1:55 ` Simon Horman 2015-11-27 1:55 ` [PATCH 05/15] ARM: shmobile: r8a7791: remove deprecated #gpio-range-cells from dtsi Simon Horman 2015-11-27 1:55 ` Simon Horman 2015-11-27 1:55 ` [PATCH 06/15] ARM: shmobile: r8a7794: " Simon Horman 2015-11-27 1:55 ` Simon Horman 2015-11-27 1:55 ` [PATCH 07/15] ARM: shmobile: r8a7791: koelsch: Fix pinmux for HDMI Simon Horman 2015-11-27 1:55 ` Simon Horman 2015-11-27 1:55 ` [PATCH 08/15] ARM: shmobile: bockw: Move SPI FLASH partition to subnode Simon Horman 2015-11-27 1:55 ` Simon Horman 2015-11-27 1:55 ` [PATCH 09/15] ARM: shmobile: porter: Move SPI FLASH partitions " Simon Horman 2015-11-27 1:55 ` Simon Horman 2015-11-27 1:55 ` [PATCH 10/15] ARM: shmobile: lager: " Simon Horman 2015-11-27 1:55 ` Simon Horman 2015-11-27 1:55 ` [PATCH 11/15] ARM: shmobile: silk: " Simon Horman 2015-11-27 1:55 ` Simon Horman 2015-11-27 1:55 ` [PATCH 12/15] ARM: shmobile: alt: Correct scif2 pfc Simon Horman 2015-11-27 1:55 ` Simon Horman 2015-11-27 1:55 ` [PATCH 13/15] ARM: shmobile: alt: Correct ether pfc Simon Horman 2015-11-27 1:55 ` Simon Horman 2015-11-27 1:55 ` [PATCH 14/15] ARM: shmobile: r8a7740 dtsi: Add L2 cache-controller node Simon Horman 2015-11-27 1:55 ` Simon Horman 2015-11-27 1:55 ` [PATCH 15/15] ARM: shmobile: sh73a0 " Simon Horman 2015-11-27 1:55 ` Simon Horman 2015-12-11 23:16 ` [GIT PULL] Second Round of Renesas ARM Based SoC DT Updates for v4.5 Arnd Bergmann 2015-12-11 23:16 ` Arnd Bergmann -- strict thread matches above, loose matches on Subject: below -- 2013-08-31 23:11 [PATCH 0/4] Add Ether DT support for R8A7778/BOCK-W reference board Sergei Shtylyov 2013-08-31 23:11 ` Sergei Shtylyov 2013-08-31 23:18 ` [PATCH 2/4] ARM: shmobile: r8a7778: add Ether clock for DT case Sergei Shtylyov 2013-08-31 23:18 ` Sergei Shtylyov 2013-08-31 23:22 ` [PATCH 3/4] ARM: shmobile: bockw-reference: add Ether DT support Sergei Shtylyov 2013-08-31 23:22 ` Sergei Shtylyov 2013-08-31 23:22 ` Sergei Shtylyov 2013-08-31 23:24 ` [PATCH 4/4] ARM: shmobile: BOCK-W reference: add Ether PFC settings Sergei Shtylyov 2013-08-31 23:24 ` Sergei Shtylyov 2013-07-09 5:52 [PATCH 1/4] ARM: shmobile: r8a7778: add usb phy power control function Kuninori Morimoto 2013-07-09 11:52 ` Sergei Shtylyov 2013-07-10 1:07 ` Simon Horman 2013-07-10 1:11 ` Kuninori Morimoto 2013-07-10 1:27 ` Kuninori Morimoto 2013-08-31 23:15 ` [PATCH 1/4] ARM: shmobile: r8a7778: add Ether DT support Sergei Shtylyov 2013-08-31 23:15 ` Sergei Shtylyov 2013-08-31 23:15 ` Sergei Shtylyov 2013-09-02 13:14 ` Laurent Pinchart 2013-09-02 13:14 ` Laurent Pinchart 2013-09-02 13:14 ` Laurent Pinchart 2013-09-02 14:05 ` Sergei Shtylyov 2013-09-02 14:05 ` Sergei Shtylyov 2013-09-02 14:05 ` Sergei Shtylyov 2013-09-02 14:18 ` Laurent Pinchart 2013-09-02 14:18 ` Laurent Pinchart 2013-09-02 14:18 ` Laurent Pinchart 2013-09-02 15:32 ` Pawel Moll 2013-09-02 15:32 ` Pawel Moll 2013-09-02 15:32 ` Pawel Moll 2013-09-03 12:11 ` Laurent Pinchart 2013-09-03 12:11 ` Laurent Pinchart 2013-09-03 12:11 ` Laurent Pinchart 2013-09-03 13:53 ` Sergei Shtylyov 2013-09-03 13:53 ` Sergei Shtylyov 2013-09-03 13:53 ` Sergei Shtylyov 2013-09-03 15:17 ` Magnus Damm 2013-09-03 15:17 ` Magnus Damm 2013-09-03 15:17 ` Magnus Damm 2013-09-03 18:27 ` Sergei Shtylyov 2013-09-03 18:27 ` Sergei Shtylyov 2013-09-03 18:27 ` Sergei Shtylyov 2013-09-04 5:35 ` Magnus Damm 2013-09-04 5:35 ` Magnus Damm 2013-09-04 5:35 ` Magnus Damm 2013-09-04 9:39 ` Laurent Pinchart 2013-09-04 9:39 ` Laurent Pinchart 2013-09-04 9:39 ` Laurent Pinchart 2013-09-05 6:03 ` Simon Horman 2013-09-05 6:03 ` Simon Horman 2013-09-05 6:03 ` Simon Horman 2013-10-04 6:43 ` [PATCH 1/4] ARM: shmobile: r8a7778: add I2C clock for DT Kuninori Morimoto 2013-10-08 1:49 ` Simon Horman 2014-01-14 2:25 ` [PATCH 1/4] ARM: shmobile: r8a7778: add audio clock in new style Kuninori Morimoto 2014-07-15 9:16 ` [PATCH 1/4] ARM: shmobile: r8a7778: add SCI clock support for DT Simon Horman 2014-07-15 9:16 ` Simon Horman
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.