Commit 2c49e025 authored by Olof Johansson's avatar Olof Johansson

Merge tag 'renesas-r8a73a4-dt-timers-for-v3.19' of...

Merge tag 'renesas-r8a73a4-dt-timers-for-v3.19' of git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas into next/dt

Merge "Renesas ARM Based SoC r8a73a4 DT Timers Updates for v3.19" from Simon
Horman:

* Initialise CMT1 timer using DT

* tag 'renesas-r8a73a4-dt-timers-for-v3.19' of git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas:
  ARM: shmobile: r8a73a4: Remove empty r8a73a4_add_dt_devices
  ARM: shmobile: ape6evm-reference: Initialise CMT1 device using DT
  ARM: shmobile: r8a73a4: Rename cmt registration helper
  ARM: shmobile: r8a73a4: Add CMT1 node
Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
parents 5d3e1cf2 fd3edcbe
...@@ -94,6 +94,10 @@ &cpu0 { ...@@ -94,6 +94,10 @@ &cpu0 {
voltage-tolerance = <1>; /* 1% */ voltage-tolerance = <1>; /* 1% */
}; };
&cmt1 {
status = "okay";
};
&pfc { &pfc {
scifa0_pins: serial0 { scifa0_pins: serial0 {
renesas,groups = "scifa0_data"; renesas,groups = "scifa0_data";
......
...@@ -109,6 +109,17 @@ i2c5: i2c@e60b0000 { ...@@ -109,6 +109,17 @@ i2c5: i2c@e60b0000 {
compatible = "renesas,rmobile-iic"; compatible = "renesas,rmobile-iic";
reg = <0 0xe60b0000 0 0x428>; reg = <0 0xe60b0000 0 0x428>;
interrupts = <0 179 IRQ_TYPE_LEVEL_HIGH>; interrupts = <0 179 IRQ_TYPE_LEVEL_HIGH>;
status = "disabled";
};
cmt1: timer@e6130000 {
compatible = "renesas,cmt-48-gen2";
reg = <0 0xe6130000 0 0x1004>;
interrupts = <0 120 IRQ_TYPE_LEVEL_HIGH>;
renesas,channels-mask = <0xff>;
status = "disabled"; status = "disabled";
}; };
......
...@@ -48,7 +48,6 @@ static void __init ape6evm_add_standard_devices(void) ...@@ -48,7 +48,6 @@ static void __init ape6evm_add_standard_devices(void)
clk_put(parent); clk_put(parent);
clk_put(mp); clk_put(mp);
r8a73a4_add_dt_devices();
of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
} }
......
...@@ -11,7 +11,6 @@ enum { ...@@ -11,7 +11,6 @@ enum {
}; };
void r8a73a4_add_standard_devices(void); void r8a73a4_add_standard_devices(void);
void r8a73a4_add_dt_devices(void);
void r8a73a4_clock_init(void); void r8a73a4_clock_init(void);
void r8a73a4_pinmux_init(void); void r8a73a4_pinmux_init(void);
......
...@@ -180,18 +180,13 @@ static struct resource cmt1_resources[] = { ...@@ -180,18 +180,13 @@ static struct resource cmt1_resources[] = {
DEFINE_RES_IRQ(gic_spi(120)), DEFINE_RES_IRQ(gic_spi(120)),
}; };
#define r8a7790_register_cmt(idx) \ #define r8a73a4_register_cmt(idx) \
platform_device_register_resndata(NULL, "sh-cmt-48-gen2", \ platform_device_register_resndata(NULL, "sh-cmt-48-gen2", \
idx, cmt##idx##_resources, \ idx, cmt##idx##_resources, \
ARRAY_SIZE(cmt##idx##_resources), \ ARRAY_SIZE(cmt##idx##_resources), \
&cmt##idx##_platform_data, \ &cmt##idx##_platform_data, \
sizeof(struct sh_timer_config)) sizeof(struct sh_timer_config))
void __init r8a73a4_add_dt_devices(void)
{
r8a7790_register_cmt(1);
}
/* DMA */ /* DMA */
static const struct sh_dmae_slave_config dma_slaves[] = { static const struct sh_dmae_slave_config dma_slaves[] = {
{ {
...@@ -282,7 +277,7 @@ static struct resource dma_resources[] = { ...@@ -282,7 +277,7 @@ static struct resource dma_resources[] = {
void __init r8a73a4_add_standard_devices(void) void __init r8a73a4_add_standard_devices(void)
{ {
r8a73a4_add_dt_devices(); r8a73a4_register_cmt(1);
r8a73a4_register_scif(0); r8a73a4_register_scif(0);
r8a73a4_register_scif(1); r8a73a4_register_scif(1);
r8a73a4_register_scif(2); r8a73a4_register_scif(2);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment