linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/5] ARM: shmobile: armadillo800eva-reference: Enable CMT1 in device tree
@ 2014-08-12  0:04 Simon Horman
  2014-08-12  0:04 ` [PATCH v2 1/5] ARM: shmobile: r8a7740: Add CMT1 device to DT Simon Horman
                   ` (5 more replies)
  0 siblings, 6 replies; 15+ messages in thread
From: Simon Horman @ 2014-08-12  0:04 UTC (permalink / raw)
  To: linux-arm-kernel

This short series enables the CMT1 timer using DT on
armadillo800eva-reference.

It is based on "ARM: shmobile: r8a7740: add clocks to DT" applied
on top of renesas-devel-v3.16-20140808.

Ulrich, if you end up reposting "ARM: shmobile: r8a7740: add clocks to DT"
please consider appending this series to it.

Changes since v1
* Correct typo in change log of
  "ARM: shmobile: r8a7740: Add CMT1 device to DT"

Simon Horman (5):
  ARM: shmobile: r8a7740: Add CMT1 device to DT
  ARM: shmobile: armadillo800eva-reference: Enable CMT1 in device tree
  ARM: shmobile: armadillo800eva-reference: Sort includes
  ARM: shmobile: armadillo800eva-reference: Do not use
    r8a7740_add_standard_devices_dt()
  ARM: shmobile: r8a7740: Remove r8a7740_add_standard_devices_dt

 .../arm/boot/dts/r8a7740-armadillo800eva-reference.dts |  4 ++++
 arch/arm/boot/dts/r8a7740.dtsi                         | 12 ++++++++++++
 .../mach-shmobile/board-armadillo800eva-reference.c    |  5 +++--
 arch/arm/mach-shmobile/r8a7740.h                       |  1 -
 arch/arm/mach-shmobile/setup-r8a7740.c                 | 18 ++----------------
 5 files changed, 21 insertions(+), 19 deletions(-)

-- 
2.0.0.rc2

^ permalink raw reply	[flat|nested] 15+ messages in thread

* [PATCH v2 1/5] ARM: shmobile: r8a7740: Add CMT1 device to DT
  2014-08-12  0:04 [PATCH v2 0/5] ARM: shmobile: armadillo800eva-reference: Enable CMT1 in device tree Simon Horman
@ 2014-08-12  0:04 ` Simon Horman
  2014-08-19  6:39   ` Magnus Damm
  2014-08-12  0:04 ` [PATCH v2 2/5] ARM: shmobile: armadillo800eva-reference: Enable CMT1 in device tree Simon Horman
                   ` (4 subsequent siblings)
  5 siblings, 1 reply; 15+ messages in thread
From: Simon Horman @ 2014-08-12  0:04 UTC (permalink / raw)
  To: linux-arm-kernel

Add the CMT1 counters to the r8a7740 device tree and make it
disabled by default.

Based on work by Magnus Damm.

Cc: Magnus Damm <magnus.damm@gmail.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>

---
v2
* Corrected copy-paste-error: CMT0 -> CMT1
---
 arch/arm/boot/dts/r8a7740.dtsi | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/arch/arm/boot/dts/r8a7740.dtsi b/arch/arm/boot/dts/r8a7740.dtsi
index 6cd6a46..1067a96 100644
--- a/arch/arm/boot/dts/r8a7740.dtsi
+++ b/arch/arm/boot/dts/r8a7740.dtsi
@@ -41,6 +41,18 @@
 		interrupts = <0 83 IRQ_TYPE_LEVEL_HIGH>;
 	};
 
+	cmt1: timer at e6138000 {
+		compatible = "renesas,cmt-48";
+		reg = <0xe6138000 0x170>;
+		interrupts = <0 58 IRQ_TYPE_LEVEL_HIGH>;
+		clocks = <&mstp3_clks R8A7740_CLK_CMT1>;
+		clock-names = "fck";
+
+		renesas,channels-mask = <0x3f>;
+
+		status = "disabled";
+	};
+
 	/* irqpin0: IRQ0 - IRQ7 */
 	irqpin0: irqpin at e6900000 {
 		compatible = "renesas,intc-irqpin-r8a7740", "renesas,intc-irqpin";
-- 
2.0.0.rc2

^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [PATCH v2 2/5] ARM: shmobile: armadillo800eva-reference: Enable CMT1 in device tree
  2014-08-12  0:04 [PATCH v2 0/5] ARM: shmobile: armadillo800eva-reference: Enable CMT1 in device tree Simon Horman
  2014-08-12  0:04 ` [PATCH v2 1/5] ARM: shmobile: r8a7740: Add CMT1 device to DT Simon Horman
@ 2014-08-12  0:04 ` Simon Horman
  2014-08-12  0:04 ` [PATCH v2 3/5] ARM: shmobile: armadillo800eva-reference: Sort includes Simon Horman
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 15+ messages in thread
From: Simon Horman @ 2014-08-12  0:04 UTC (permalink / raw)
  To: linux-arm-kernel

Based on work by Magnus Damm

Cc: Magnus Damm <magnus.damm@gmail.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
---
 arch/arm/boot/dts/r8a7740-armadillo800eva-reference.dts |  4 ++++
 arch/arm/mach-shmobile/setup-r8a7740.c                  | 11 +----------
 2 files changed, 5 insertions(+), 10 deletions(-)

diff --git a/arch/arm/boot/dts/r8a7740-armadillo800eva-reference.dts b/arch/arm/boot/dts/r8a7740-armadillo800eva-reference.dts
index 266c439..5e646e6 100644
--- a/arch/arm/boot/dts/r8a7740-armadillo800eva-reference.dts
+++ b/arch/arm/boot/dts/r8a7740-armadillo800eva-reference.dts
@@ -191,6 +191,10 @@
 	renesas,mode = <0x05>; /* MD_CK0 | MD_CK2 */
 };
 
+&cmt1 {
+	status = "ok";
+};
+
 &i2c0 {
 	status = "okay";
 	touchscreen at 55 {
diff --git a/arch/arm/mach-shmobile/setup-r8a7740.c b/arch/arm/mach-shmobile/setup-r8a7740.c
index 3d5eaca..dc44a44 100644
--- a/arch/arm/mach-shmobile/setup-r8a7740.c
+++ b/arch/arm/mach-shmobile/setup-r8a7740.c
@@ -311,10 +311,6 @@ static struct platform_device ipmmu_device = {
 	.num_resources  = ARRAY_SIZE(ipmmu_resources),
 };
 
-static struct platform_device *r8a7740_devices_dt[] __initdata = {
-	&cmt1_device,
-};
-
 static struct platform_device *r8a7740_early_devices[] __initdata = {
 	&scif0_device,
 	&scif1_device,
@@ -331,6 +327,7 @@ static struct platform_device *r8a7740_early_devices[] __initdata = {
 	&irqpin3_device,
 	&tmu0_device,
 	&ipmmu_device,
+	&cmt1_device,
 };
 
 /* DMA */
@@ -756,8 +753,6 @@ void __init r8a7740_add_standard_devices(void)
 	/* add devices */
 	platform_add_devices(r8a7740_early_devices,
 			    ARRAY_SIZE(r8a7740_early_devices));
-	platform_add_devices(r8a7740_devices_dt,
-			    ARRAY_SIZE(r8a7740_devices_dt));
 	platform_add_devices(r8a7740_late_devices,
 			     ARRAY_SIZE(r8a7740_late_devices));
 
@@ -779,8 +774,6 @@ void __init r8a7740_add_early_devices(void)
 {
 	early_platform_add_devices(r8a7740_early_devices,
 				   ARRAY_SIZE(r8a7740_early_devices));
-	early_platform_add_devices(r8a7740_devices_dt,
-				   ARRAY_SIZE(r8a7740_devices_dt));
 
 	/* setup early console here as well */
 	shmobile_setup_console();
@@ -790,8 +783,6 @@ void __init r8a7740_add_early_devices(void)
 
 void __init r8a7740_add_standard_devices_dt(void)
 {
-	platform_add_devices(r8a7740_devices_dt,
-			    ARRAY_SIZE(r8a7740_devices_dt));
 	of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
 }
 
-- 
2.0.0.rc2

^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [PATCH v2 3/5] ARM: shmobile: armadillo800eva-reference: Sort includes
  2014-08-12  0:04 [PATCH v2 0/5] ARM: shmobile: armadillo800eva-reference: Enable CMT1 in device tree Simon Horman
  2014-08-12  0:04 ` [PATCH v2 1/5] ARM: shmobile: r8a7740: Add CMT1 device to DT Simon Horman
  2014-08-12  0:04 ` [PATCH v2 2/5] ARM: shmobile: armadillo800eva-reference: Enable CMT1 in device tree Simon Horman
@ 2014-08-12  0:04 ` Simon Horman
  2014-08-22  1:46   ` Simon Horman
  2014-08-12  0:04 ` [PATCH v2 4/5] ARM: shmobile: armadillo800eva-reference: Do not use r8a7740_add_standard_devices_dt() Simon Horman
                   ` (2 subsequent siblings)
  5 siblings, 1 reply; 15+ messages in thread
From: Simon Horman @ 2014-08-12  0:04 UTC (permalink / raw)
  To: linux-arm-kernel

Sorted includes seems to be the done thing these days.

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

diff --git a/arch/arm/mach-shmobile/board-armadillo800eva-reference.c b/arch/arm/mach-shmobile/board-armadillo800eva-reference.c
index 84bc6cb..c392632 100644
--- a/arch/arm/mach-shmobile/board-armadillo800eva-reference.c
+++ b/arch/arm/mach-shmobile/board-armadillo800eva-reference.c
@@ -21,9 +21,9 @@
 
 #include <linux/clk.h>
 #include <linux/err.h>
-#include <linux/kernel.h>
 #include <linux/gpio.h>
 #include <linux/io.h>
+#include <linux/kernel.h>
 
 #include <asm/mach/arch.h>
 #include <asm/hardware/cache-l2x0.h>
-- 
2.0.0.rc2

^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [PATCH v2 4/5] ARM: shmobile: armadillo800eva-reference: Do not use r8a7740_add_standard_devices_dt()
  2014-08-12  0:04 [PATCH v2 0/5] ARM: shmobile: armadillo800eva-reference: Enable CMT1 in device tree Simon Horman
                   ` (2 preceding siblings ...)
  2014-08-12  0:04 ` [PATCH v2 3/5] ARM: shmobile: armadillo800eva-reference: Sort includes Simon Horman
@ 2014-08-12  0:04 ` Simon Horman
  2014-08-12  0:04 ` [PATCH v2 5/5] ARM: shmobile: r8a7740: Remove r8a7740_add_standard_devices_dt Simon Horman
  2014-08-23 11:13 ` [PATCH v2 0/5] ARM: shmobile: armadillo800eva-reference: Enable CMT1 in device tree Simon Horman
  5 siblings, 0 replies; 15+ messages in thread
From: Simon Horman @ 2014-08-12  0:04 UTC (permalink / raw)
  To: linux-arm-kernel

Now that r8a7740_add_standard_devices_dt() is just a wrapper for
of_platform_populate() call the latter directly.

This is in preparation for removing r8a7740_add_standard_devices_dt().

Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
---
 arch/arm/mach-shmobile/board-armadillo800eva-reference.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/arm/mach-shmobile/board-armadillo800eva-reference.c b/arch/arm/mach-shmobile/board-armadillo800eva-reference.c
index c392632..ea8a781 100644
--- a/arch/arm/mach-shmobile/board-armadillo800eva-reference.c
+++ b/arch/arm/mach-shmobile/board-armadillo800eva-reference.c
@@ -24,6 +24,7 @@
 #include <linux/gpio.h>
 #include <linux/io.h>
 #include <linux/kernel.h>
+#include <linux/of_platform.h>
 
 #include <asm/mach/arch.h>
 #include <asm/hardware/cache-l2x0.h>
@@ -170,7 +171,7 @@ static void __init eva_init(void)
 	l2x0_init(IOMEM(0xf0002000), 0x00400000, 0xc20f0fff);
 #endif
 
-	r8a7740_add_standard_devices_dt();
+	of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
 
 	r8a7740_pm_init();
 }
-- 
2.0.0.rc2

^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [PATCH v2 5/5] ARM: shmobile: r8a7740: Remove r8a7740_add_standard_devices_dt
  2014-08-12  0:04 [PATCH v2 0/5] ARM: shmobile: armadillo800eva-reference: Enable CMT1 in device tree Simon Horman
                   ` (3 preceding siblings ...)
  2014-08-12  0:04 ` [PATCH v2 4/5] ARM: shmobile: armadillo800eva-reference: Do not use r8a7740_add_standard_devices_dt() Simon Horman
@ 2014-08-12  0:04 ` Simon Horman
  2014-08-23 11:13 ` [PATCH v2 0/5] ARM: shmobile: armadillo800eva-reference: Enable CMT1 in device tree Simon Horman
  5 siblings, 0 replies; 15+ messages in thread
From: Simon Horman @ 2014-08-12  0:04 UTC (permalink / raw)
  To: linux-arm-kernel

Now that r8a7740_add_standard_devices_dt() is simply a wrapper
for a call to of_platform_populate() remove it and call
of_platform_populate() directly.

Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
---
 arch/arm/mach-shmobile/r8a7740.h       | 1 -
 arch/arm/mach-shmobile/setup-r8a7740.c | 7 +------
 2 files changed, 1 insertion(+), 7 deletions(-)

diff --git a/arch/arm/mach-shmobile/r8a7740.h b/arch/arm/mach-shmobile/r8a7740.h
index 1d1a5fd..3352fb8 100644
--- a/arch/arm/mach-shmobile/r8a7740.h
+++ b/arch/arm/mach-shmobile/r8a7740.h
@@ -49,7 +49,6 @@ 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);
diff --git a/arch/arm/mach-shmobile/setup-r8a7740.c b/arch/arm/mach-shmobile/setup-r8a7740.c
index dc44a44..8fe270d 100644
--- a/arch/arm/mach-shmobile/setup-r8a7740.c
+++ b/arch/arm/mach-shmobile/setup-r8a7740.c
@@ -781,11 +781,6 @@ void __init r8a7740_add_early_devices(void)
 
 #ifdef CONFIG_USE_OF
 
-void __init r8a7740_add_standard_devices_dt(void)
-{
-	of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
-}
-
 void __init r8a7740_init_irq_of(void)
 {
 	void __iomem *intc_prio_base = ioremap_nocache(0xe6900010, 0x10);
@@ -819,7 +814,7 @@ void __init r8a7740_init_irq_of(void)
 static void __init r8a7740_generic_init(void)
 {
 	r8a7740_clock_init(0);
-	r8a7740_add_standard_devices_dt();
+	of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
 }
 
 static const char *r8a7740_boards_compat_dt[] __initdata = {
-- 
2.0.0.rc2

^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [PATCH v2 1/5] ARM: shmobile: r8a7740: Add CMT1 device to DT
  2014-08-12  0:04 ` [PATCH v2 1/5] ARM: shmobile: r8a7740: Add CMT1 device to DT Simon Horman
@ 2014-08-19  6:39   ` Magnus Damm
  2014-08-19  7:29     ` Geert Uytterhoeven
  0 siblings, 1 reply; 15+ messages in thread
From: Magnus Damm @ 2014-08-19  6:39 UTC (permalink / raw)
  To: linux-arm-kernel

Hi Simon, Laurent,

On Tue, Aug 12, 2014 at 9:04 AM, Simon Horman
<horms+renesas@verge.net.au> wrote:
> Add the CMT1 counters to the r8a7740 device tree and make it
> disabled by default.
>
> Based on work by Magnus Damm.
>
> Cc: Magnus Damm <magnus.damm@gmail.com>
> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
>
> ---
> v2
> * Corrected copy-paste-error: CMT0 -> CMT1

Thanks for breaking out, brushing up and submitting code based on my
earlier hack!

I've got one minor comment (see below ) and I also made sure to CC
Laurent that wrote the DT bindings.

Laurent, can you please check if this is the way you want us to use
the CMT bindings?

>  arch/arm/boot/dts/r8a7740.dtsi | 12 ++++++++++++
>  1 file changed, 12 insertions(+)
>
> diff --git a/arch/arm/boot/dts/r8a7740.dtsi b/arch/arm/boot/dts/r8a7740.dtsi
> index 6cd6a46..1067a96 100644
> --- a/arch/arm/boot/dts/r8a7740.dtsi
> +++ b/arch/arm/boot/dts/r8a7740.dtsi
> @@ -41,6 +41,18 @@
>                 interrupts = <0 83 IRQ_TYPE_LEVEL_HIGH>;
>         };
>
> +       cmt1: timer at e6138000 {
> +               compatible = "renesas,cmt-48";

Do we want to have the "r8a7740" in the compatible string somewhere?

Cheers,

/ magnus

^ permalink raw reply	[flat|nested] 15+ messages in thread

* [PATCH v2 1/5] ARM: shmobile: r8a7740: Add CMT1 device to DT
  2014-08-19  6:39   ` Magnus Damm
@ 2014-08-19  7:29     ` Geert Uytterhoeven
  2014-08-19 10:17       ` Magnus Damm
  0 siblings, 1 reply; 15+ messages in thread
From: Geert Uytterhoeven @ 2014-08-19  7:29 UTC (permalink / raw)
  To: linux-arm-kernel

On Tue, Aug 19, 2014 at 8:39 AM, Magnus Damm <magnus.damm@gmail.com> wrote:
>>  arch/arm/boot/dts/r8a7740.dtsi | 12 ++++++++++++
>>  1 file changed, 12 insertions(+)
>>
>> diff --git a/arch/arm/boot/dts/r8a7740.dtsi b/arch/arm/boot/dts/r8a7740.dtsi
>> index 6cd6a46..1067a96 100644
>> --- a/arch/arm/boot/dts/r8a7740.dtsi
>> +++ b/arch/arm/boot/dts/r8a7740.dtsi
>> @@ -41,6 +41,18 @@
>>                 interrupts = <0 83 IRQ_TYPE_LEVEL_HIGH>;
>>         };
>>
>> +       cmt1: timer at e6138000 {
>> +               compatible = "renesas,cmt-48";
>
> Do we want to have the "r8a7740" in the compatible string somewhere?

Documentation/devicetree/bindings/timer/renesas,cmt.txt does not
mention compatible properties containing SoC names.

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] 15+ messages in thread

* [PATCH v2 1/5] ARM: shmobile: r8a7740: Add CMT1 device to DT
  2014-08-19  7:29     ` Geert Uytterhoeven
@ 2014-08-19 10:17       ` Magnus Damm
  2014-08-19 23:11         ` Simon Horman
  0 siblings, 1 reply; 15+ messages in thread
From: Magnus Damm @ 2014-08-19 10:17 UTC (permalink / raw)
  To: linux-arm-kernel

On Tue, Aug 19, 2014 at 4:29 PM, Geert Uytterhoeven
<geert@linux-m68k.org> wrote:
> On Tue, Aug 19, 2014 at 8:39 AM, Magnus Damm <magnus.damm@gmail.com> wrote:
>>>  arch/arm/boot/dts/r8a7740.dtsi | 12 ++++++++++++
>>>  1 file changed, 12 insertions(+)
>>>
>>> diff --git a/arch/arm/boot/dts/r8a7740.dtsi b/arch/arm/boot/dts/r8a7740.dtsi
>>> index 6cd6a46..1067a96 100644
>>> --- a/arch/arm/boot/dts/r8a7740.dtsi
>>> +++ b/arch/arm/boot/dts/r8a7740.dtsi
>>> @@ -41,6 +41,18 @@
>>>                 interrupts = <0 83 IRQ_TYPE_LEVEL_HIGH>;
>>>         };
>>>
>>> +       cmt1: timer at e6138000 {
>>> +               compatible = "renesas,cmt-48";
>>
>> Do we want to have the "r8a7740" in the compatible string somewhere?
>
> Documentation/devicetree/bindings/timer/renesas,cmt.txt does not
> mention compatible properties containing SoC names.

Right, that seems to be missing from the timers. Is there any reason
why we need to treat those in a special way?

In my mind this timer case is similar to various SCIF variants
documented in Documentation/devicetree/bindings/serial/renesas,sci-serial.txt
- in the case of SCIF we have SoC name in the binding documentation.

Cheers,

/ magnus

^ permalink raw reply	[flat|nested] 15+ messages in thread

* [PATCH v2 1/5] ARM: shmobile: r8a7740: Add CMT1 device to DT
  2014-08-19 10:17       ` Magnus Damm
@ 2014-08-19 23:11         ` Simon Horman
  2014-08-20  4:37           ` Laurent Pinchart
  2014-08-20  8:45           ` Magnus Damm
  0 siblings, 2 replies; 15+ messages in thread
From: Simon Horman @ 2014-08-19 23:11 UTC (permalink / raw)
  To: linux-arm-kernel

On Tue, Aug 19, 2014 at 07:17:33PM +0900, Magnus Damm wrote:
> On Tue, Aug 19, 2014 at 4:29 PM, Geert Uytterhoeven
> <geert@linux-m68k.org> wrote:
> > On Tue, Aug 19, 2014 at 8:39 AM, Magnus Damm <magnus.damm@gmail.com> wrote:
> >>>  arch/arm/boot/dts/r8a7740.dtsi | 12 ++++++++++++
> >>>  1 file changed, 12 insertions(+)
> >>>
> >>> diff --git a/arch/arm/boot/dts/r8a7740.dtsi b/arch/arm/boot/dts/r8a7740.dtsi
> >>> index 6cd6a46..1067a96 100644
> >>> --- a/arch/arm/boot/dts/r8a7740.dtsi
> >>> +++ b/arch/arm/boot/dts/r8a7740.dtsi
> >>> @@ -41,6 +41,18 @@
> >>>                 interrupts = <0 83 IRQ_TYPE_LEVEL_HIGH>;
> >>>         };
> >>>
> >>> +       cmt1: timer at e6138000 {
> >>> +               compatible = "renesas,cmt-48";
> >>
> >> Do we want to have the "r8a7740" in the compatible string somewhere?
> >
> > Documentation/devicetree/bindings/timer/renesas,cmt.txt does not
> > mention compatible properties containing SoC names.
> 
> Right, that seems to be missing from the timers. Is there any reason
> why we need to treat those in a special way?
> 
> In my mind this timer case is similar to various SCIF variants
> documented in Documentation/devicetree/bindings/serial/renesas,sci-serial.txt
> - in the case of SCIF we have SoC name in the binding documentation.

FWIW, now you mention it I agree with your point.
But I am interested to hear if Laurent had a specific reason for this.

If it is an oversight then I recommend correcting it as a series
of add-on patches, even for the r8a7740. That will avoid adding
more dependencies to this series.

^ permalink raw reply	[flat|nested] 15+ messages in thread

* [PATCH v2 1/5] ARM: shmobile: r8a7740: Add CMT1 device to DT
  2014-08-19 23:11         ` Simon Horman
@ 2014-08-20  4:37           ` Laurent Pinchart
  2014-08-20  8:45           ` Magnus Damm
  1 sibling, 0 replies; 15+ messages in thread
From: Laurent Pinchart @ 2014-08-20  4:37 UTC (permalink / raw)
  To: linux-arm-kernel

Hello,

On Wednesday 20 August 2014 08:11:50 Simon Horman wrote:
> On Tue, Aug 19, 2014 at 07:17:33PM +0900, Magnus Damm wrote:
> > On Tue, Aug 19, 2014 at 4:29 PM, Geert Uytterhoeven wrote:
> > > On Tue, Aug 19, 2014 at 8:39 AM, Magnus Damm:
> > >>>  arch/arm/boot/dts/r8a7740.dtsi | 12 ++++++++++++
> > >>>  1 file changed, 12 insertions(+)
> > >>> 
> > >>> diff --git a/arch/arm/boot/dts/r8a7740.dtsi
> > >>> b/arch/arm/boot/dts/r8a7740.dtsi index 6cd6a46..1067a96 100644
> > >>> --- a/arch/arm/boot/dts/r8a7740.dtsi
> > >>> +++ b/arch/arm/boot/dts/r8a7740.dtsi
> > >>> @@ -41,6 +41,18 @@
> > >>> 
> > >>>                 interrupts = <0 83 IRQ_TYPE_LEVEL_HIGH>;
> > >>>         
> > >>>         };
> > >>> 
> > >>> +       cmt1: timer at e6138000 {
> > >>> +               compatible = "renesas,cmt-48";
> > >> 
> > >> Do we want to have the "r8a7740" in the compatible string somewhere?
> > > 
> > > Documentation/devicetree/bindings/timer/renesas,cmt.txt does not
> > > mention compatible properties containing SoC names.
> > 
> > Right, that seems to be missing from the timers. Is there any reason
> > why we need to treat those in a special way?
> > 
> > In my mind this timer case is similar to various SCIF variants
> > documented in Documentation/devicetree/bindings/serial/renesas,sci-
> > serial.txt - in the case of SCIF we have SoC name in the binding
> > documentation.
>
> FWIW, now you mention it I agree with your point.
> But I am interested to hear if Laurent had a specific reason for this.
> 
> If it is an oversight then I recommend correcting it as a series
> of add-on patches, even for the r8a7740. That will avoid adding
> more dependencies to this series.

I believe you all know my position regarding SoC names in compatible strings 
:-) I still don't agree, but I pretty much gave up on convincing the world so 
I won't fight and nack patches.

-- 
Regards,

Laurent Pinchart

^ permalink raw reply	[flat|nested] 15+ messages in thread

* [PATCH v2 1/5] ARM: shmobile: r8a7740: Add CMT1 device to DT
  2014-08-19 23:11         ` Simon Horman
  2014-08-20  4:37           ` Laurent Pinchart
@ 2014-08-20  8:45           ` Magnus Damm
  1 sibling, 0 replies; 15+ messages in thread
From: Magnus Damm @ 2014-08-20  8:45 UTC (permalink / raw)
  To: linux-arm-kernel

Hi Simon,

On Wed, Aug 20, 2014 at 8:11 AM, Simon Horman <horms@verge.net.au> wrote:
> On Tue, Aug 19, 2014 at 07:17:33PM +0900, Magnus Damm wrote:
>> On Tue, Aug 19, 2014 at 4:29 PM, Geert Uytterhoeven
>> <geert@linux-m68k.org> wrote:
>> > On Tue, Aug 19, 2014 at 8:39 AM, Magnus Damm <magnus.damm@gmail.com> wrote:
>> >>>  arch/arm/boot/dts/r8a7740.dtsi | 12 ++++++++++++
>> >>>  1 file changed, 12 insertions(+)
>> >>>
>> >>> diff --git a/arch/arm/boot/dts/r8a7740.dtsi b/arch/arm/boot/dts/r8a7740.dtsi
>> >>> index 6cd6a46..1067a96 100644
>> >>> --- a/arch/arm/boot/dts/r8a7740.dtsi
>> >>> +++ b/arch/arm/boot/dts/r8a7740.dtsi
>> >>> @@ -41,6 +41,18 @@
>> >>>                 interrupts = <0 83 IRQ_TYPE_LEVEL_HIGH>;
>> >>>         };
>> >>>
>> >>> +       cmt1: timer at e6138000 {
>> >>> +               compatible = "renesas,cmt-48";
>> >>
>> >> Do we want to have the "r8a7740" in the compatible string somewhere?
>> >
>> > Documentation/devicetree/bindings/timer/renesas,cmt.txt does not
>> > mention compatible properties containing SoC names.
>>
>> Right, that seems to be missing from the timers. Is there any reason
>> why we need to treat those in a special way?
>>
>> In my mind this timer case is similar to various SCIF variants
>> documented in Documentation/devicetree/bindings/serial/renesas,sci-serial.txt
>> - in the case of SCIF we have SoC name in the binding documentation.
>
> FWIW, now you mention it I agree with your point.
> But I am interested to hear if Laurent had a specific reason for this.
>
> If it is an oversight then I recommend correcting it as a series
> of add-on patches, even for the r8a7740. That will avoid adding
> more dependencies to this series.

Sure, sounds good. Thanks!

/ magnus

^ permalink raw reply	[flat|nested] 15+ messages in thread

* [PATCH v2 3/5] ARM: shmobile: armadillo800eva-reference: Sort includes
  2014-08-12  0:04 ` [PATCH v2 3/5] ARM: shmobile: armadillo800eva-reference: Sort includes Simon Horman
@ 2014-08-22  1:46   ` Simon Horman
  2014-09-02  1:17     ` Simon Horman
  0 siblings, 1 reply; 15+ messages in thread
From: Simon Horman @ 2014-08-22  1:46 UTC (permalink / raw)
  To: linux-arm-kernel

On Tue, Aug 12, 2014 at 09:04:40AM +0900, Simon Horman wrote:
> Sorted includes seems to be the done thing these days.
> 
> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>

I have queued up this patch but I am leaving the rest of the series for
now.

> ---
>  arch/arm/mach-shmobile/board-armadillo800eva-reference.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/arch/arm/mach-shmobile/board-armadillo800eva-reference.c b/arch/arm/mach-shmobile/board-armadillo800eva-reference.c
> index 84bc6cb..c392632 100644
> --- a/arch/arm/mach-shmobile/board-armadillo800eva-reference.c
> +++ b/arch/arm/mach-shmobile/board-armadillo800eva-reference.c
> @@ -21,9 +21,9 @@
>  
>  #include <linux/clk.h>
>  #include <linux/err.h>
> -#include <linux/kernel.h>
>  #include <linux/gpio.h>
>  #include <linux/io.h>
> +#include <linux/kernel.h>
>  
>  #include <asm/mach/arch.h>
>  #include <asm/hardware/cache-l2x0.h>
> -- 
> 2.0.0.rc2
> 
> 
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
> 

^ permalink raw reply	[flat|nested] 15+ messages in thread

* [PATCH v2 0/5] ARM: shmobile: armadillo800eva-reference: Enable CMT1 in device tree
  2014-08-12  0:04 [PATCH v2 0/5] ARM: shmobile: armadillo800eva-reference: Enable CMT1 in device tree Simon Horman
                   ` (4 preceding siblings ...)
  2014-08-12  0:04 ` [PATCH v2 5/5] ARM: shmobile: r8a7740: Remove r8a7740_add_standard_devices_dt Simon Horman
@ 2014-08-23 11:13 ` Simon Horman
  5 siblings, 0 replies; 15+ messages in thread
From: Simon Horman @ 2014-08-23 11:13 UTC (permalink / raw)
  To: linux-arm-kernel

On Tue, Aug 12, 2014 at 09:04:37AM +0900, Simon Horman wrote:
> This short series enables the CMT1 timer using DT on
> armadillo800eva-reference.
> 
> It is based on "ARM: shmobile: r8a7740: add clocks to DT" applied
> on top of renesas-devel-v3.16-20140808.
> 
> Ulrich, if you end up reposting "ARM: shmobile: r8a7740: add clocks to DT"
> please consider appending this series to it.

As I have queued up the above series, less the binding change which
is for Mike Turquette to handle, I have also queued up this series.

> Changes since v1
> * Correct typo in change log of
>   "ARM: shmobile: r8a7740: Add CMT1 device to DT"
> 
> Simon Horman (5):
>   ARM: shmobile: r8a7740: Add CMT1 device to DT
>   ARM: shmobile: armadillo800eva-reference: Enable CMT1 in device tree
>   ARM: shmobile: armadillo800eva-reference: Sort includes
>   ARM: shmobile: armadillo800eva-reference: Do not use
>     r8a7740_add_standard_devices_dt()
>   ARM: shmobile: r8a7740: Remove r8a7740_add_standard_devices_dt
> 
>  .../arm/boot/dts/r8a7740-armadillo800eva-reference.dts |  4 ++++
>  arch/arm/boot/dts/r8a7740.dtsi                         | 12 ++++++++++++
>  .../mach-shmobile/board-armadillo800eva-reference.c    |  5 +++--
>  arch/arm/mach-shmobile/r8a7740.h                       |  1 -
>  arch/arm/mach-shmobile/setup-r8a7740.c                 | 18 ++----------------
>  5 files changed, 21 insertions(+), 19 deletions(-)
> 
> -- 
> 2.0.0.rc2
> 

^ permalink raw reply	[flat|nested] 15+ messages in thread

* [PATCH v2 3/5] ARM: shmobile: armadillo800eva-reference: Sort includes
  2014-08-22  1:46   ` Simon Horman
@ 2014-09-02  1:17     ` Simon Horman
  0 siblings, 0 replies; 15+ messages in thread
From: Simon Horman @ 2014-09-02  1:17 UTC (permalink / raw)
  To: linux-arm-kernel

On Fri, Aug 22, 2014 at 10:46:06AM +0900, Simon Horman wrote:
> On Tue, Aug 12, 2014 at 09:04:40AM +0900, Simon Horman wrote:
> > Sorted includes seems to be the done thing these days.
> > 
> > Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
> 
> I have queued up this patch but I am leaving the rest of the series for
> now.

I have dropped this patch as board-armadillo800eva-reference.c
is now scheduled for removal.

> > ---
> >  arch/arm/mach-shmobile/board-armadillo800eva-reference.c | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/arch/arm/mach-shmobile/board-armadillo800eva-reference.c b/arch/arm/mach-shmobile/board-armadillo800eva-reference.c
> > index 84bc6cb..c392632 100644
> > --- a/arch/arm/mach-shmobile/board-armadillo800eva-reference.c
> > +++ b/arch/arm/mach-shmobile/board-armadillo800eva-reference.c
> > @@ -21,9 +21,9 @@
> >  
> >  #include <linux/clk.h>
> >  #include <linux/err.h>
> > -#include <linux/kernel.h>
> >  #include <linux/gpio.h>
> >  #include <linux/io.h>
> > +#include <linux/kernel.h>
> >  
> >  #include <asm/mach/arch.h>
> >  #include <asm/hardware/cache-l2x0.h>
> > -- 
> > 2.0.0.rc2
> > 
> > 
> > _______________________________________________
> > linux-arm-kernel mailing list
> > linux-arm-kernel at lists.infradead.org
> > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
> > 
> --
> 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] 15+ messages in thread

end of thread, other threads:[~2014-09-02  1:17 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-12  0:04 [PATCH v2 0/5] ARM: shmobile: armadillo800eva-reference: Enable CMT1 in device tree Simon Horman
2014-08-12  0:04 ` [PATCH v2 1/5] ARM: shmobile: r8a7740: Add CMT1 device to DT Simon Horman
2014-08-19  6:39   ` Magnus Damm
2014-08-19  7:29     ` Geert Uytterhoeven
2014-08-19 10:17       ` Magnus Damm
2014-08-19 23:11         ` Simon Horman
2014-08-20  4:37           ` Laurent Pinchart
2014-08-20  8:45           ` Magnus Damm
2014-08-12  0:04 ` [PATCH v2 2/5] ARM: shmobile: armadillo800eva-reference: Enable CMT1 in device tree Simon Horman
2014-08-12  0:04 ` [PATCH v2 3/5] ARM: shmobile: armadillo800eva-reference: Sort includes Simon Horman
2014-08-22  1:46   ` Simon Horman
2014-09-02  1:17     ` Simon Horman
2014-08-12  0:04 ` [PATCH v2 4/5] ARM: shmobile: armadillo800eva-reference: Do not use r8a7740_add_standard_devices_dt() Simon Horman
2014-08-12  0:04 ` [PATCH v2 5/5] ARM: shmobile: r8a7740: Remove r8a7740_add_standard_devices_dt Simon Horman
2014-08-23 11:13 ` [PATCH v2 0/5] ARM: shmobile: armadillo800eva-reference: Enable CMT1 in device tree Simon Horman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).