Re: [PATCH] dt-bindings: thermal: rcar: Add device tree support for r8a7744

2018-09-25 Thread Daniel Lezcano
On 25/09/2018 19:01, Biju Das wrote:
> Add thermal sensor support for r8a7744 SoC. The Renesas RZ/G1N
> (r8a7744) thermal sensor module is identical to the R-Car Gen2 family.
> 
> No driver change is needed due to the fallback compatible value
> "renesas,rcar-gen2-thermal".
> 
> Signed-off-by: Biju Das 
> Reviewed-by: Chris Paterson 

Reviewed-by: Daniel Lezcano 

> ---
>  Documentation/devicetree/bindings/thermal/rcar-thermal.txt | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/Documentation/devicetree/bindings/thermal/rcar-thermal.txt 
> b/Documentation/devicetree/bindings/thermal/rcar-thermal.txt
> index 67c563f..01d30a97 100644
> --- a/Documentation/devicetree/bindings/thermal/rcar-thermal.txt
> +++ b/Documentation/devicetree/bindings/thermal/rcar-thermal.txt
> @@ -8,6 +8,7 @@ Required properties:
> Examples with soctypes are:
>   - "renesas,thermal-r8a73a4" (R-Mobile APE6)
>   - "renesas,thermal-r8a7743" (RZ/G1M)
> + - "renesas,thermal-r8a7744" (RZ/G1N)
>   - "renesas,thermal-r8a7779" (R-Car H1)
>   - "renesas,thermal-r8a7790" (R-Car H2)
>   - "renesas,thermal-r8a7791" (R-Car M2-W)
> 


-- 
  Linaro.org │ Open source software for ARM SoCs

Follow Linaro:   Facebook |
 Twitter |
 Blog



[PATCH resend] pwm: rcar: convert to SPDX identifiers

2018-09-25 Thread Kuninori Morimoto


From: Kuninori Morimoto 

This patch updates license to use SPDX-License-Identifier
instead of verbose license text.

Signed-off-by: Kuninori Morimoto 
Reviewed-by: Simon Horman 
---
Thierry

2weeks past, resend patch

 drivers/pwm/pwm-rcar.c | 5 +
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/drivers/pwm/pwm-rcar.c b/drivers/pwm/pwm-rcar.c
index 748f614..a41812f 100644
--- a/drivers/pwm/pwm-rcar.c
+++ b/drivers/pwm/pwm-rcar.c
@@ -1,11 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * R-Car PWM Timer driver
  *
  * Copyright (C) 2015 Renesas Electronics Corporation
- *
- * This is free software; you can redistribute it and/or modify
- * it under the terms of version 2 of the GNU General Public License as
- * published by the Free Software Foundation.
  */
 
 #include 
-- 
2.7.4



[PATCH resend] pwm: renesas-tpu: convert to SPDX identifiers

2018-09-25 Thread Kuninori Morimoto


From: Kuninori Morimoto 

This patch updates license to use SPDX-License-Identifier
instead of verbose license text.

Signed-off-by: Kuninori Morimoto 
Reviewed-by: Simon Horman 
---
Thierry

2weeks past, resend patch

 drivers/pwm/pwm-renesas-tpu.c | 10 +-
 1 file changed, 1 insertion(+), 9 deletions(-)

diff --git a/drivers/pwm/pwm-renesas-tpu.c b/drivers/pwm/pwm-renesas-tpu.c
index 29267d1..4a855a2 100644
--- a/drivers/pwm/pwm-renesas-tpu.c
+++ b/drivers/pwm/pwm-renesas-tpu.c
@@ -1,16 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * R-Mobile TPU PWM driver
  *
  * Copyright (C) 2012 Renesas Solutions Corp.
- *
- * 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
- *
- * 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 
-- 
2.7.4



[PATCH v2 resend 11/13] sh: cpu: convert to SPDX identifiers

2018-09-25 Thread Kuninori Morimoto


From: Kuninori Morimoto 

This patch updates license to use SPDX-License-Identifier
instead of verbose license text.

Signed-off-by: Kuninori Morimoto 
Reviewed-by: Simon Horman 
---
 arch/sh/kernel/cpu/clock.c|  5 +
 arch/sh/kernel/cpu/init.c |  5 +
 arch/sh/kernel/cpu/irq/Makefile   |  1 +
 arch/sh/kernel/cpu/irq/intc-sh5.c |  5 +
 arch/sh/kernel/cpu/irq/ipr.c  |  5 +
 arch/sh/kernel/cpu/pfc.c  | 10 +-
 6 files changed, 6 insertions(+), 25 deletions(-)

diff --git a/arch/sh/kernel/cpu/clock.c b/arch/sh/kernel/cpu/clock.c
index fca9b1e7..6fb3441 100644
--- a/arch/sh/kernel/cpu/clock.c
+++ b/arch/sh/kernel/cpu/clock.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * arch/sh/kernel/cpu/clock.c - SuperH clock framework
  *
@@ -9,10 +10,6 @@
  * Written by Tuukka Tikkanen 
  *
  *  Modified for omap shared clock framework by Tony Lindgren 

- *
- * 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.
  */
 #include 
 #include 
diff --git a/arch/sh/kernel/cpu/init.c b/arch/sh/kernel/cpu/init.c
index c4f01c5..ce7291e 100644
--- a/arch/sh/kernel/cpu/init.c
+++ b/arch/sh/kernel/cpu/init.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * arch/sh/kernel/cpu/init.c
  *
@@ -5,10 +6,6 @@
  *
  * Copyright (C) 2002 - 2009  Paul Mundt
  * Copyright (C) 2003  Richard Curnow
- *
- * 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.
  */
 #include 
 #include 
diff --git a/arch/sh/kernel/cpu/irq/Makefile b/arch/sh/kernel/cpu/irq/Makefile
index 3f8e794..8b91cb9 100644
--- a/arch/sh/kernel/cpu/irq/Makefile
+++ b/arch/sh/kernel/cpu/irq/Makefile
@@ -1,3 +1,4 @@
+# SPDX-License-Identifier: GPL-2.0
 #
 # Makefile for the Linux/SuperH CPU-specific IRQ handlers.
 #
diff --git a/arch/sh/kernel/cpu/irq/intc-sh5.c 
b/arch/sh/kernel/cpu/irq/intc-sh5.c
index 9e056a3..744f903 100644
--- a/arch/sh/kernel/cpu/irq/intc-sh5.c
+++ b/arch/sh/kernel/cpu/irq/intc-sh5.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * arch/sh/kernel/cpu/irq/intc-sh5.c
  *
@@ -9,10 +10,6 @@
  * Per-interrupt selective. IRLM=0 (Fixed priority) is not
  * supported being useless without a cascaded interrupt
  * controller.
- *
- * 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.
  */
 #include 
 #include 
diff --git a/arch/sh/kernel/cpu/irq/ipr.c b/arch/sh/kernel/cpu/irq/ipr.c
index 5de6dff5..d41bce7 100644
--- a/arch/sh/kernel/cpu/irq/ipr.c
+++ b/arch/sh/kernel/cpu/irq/ipr.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Interrupt handling for IPR-based IRQ.
  *
@@ -11,10 +12,6 @@
  * On-chip supporting modules for SH7709/SH7709A/SH7729.
  * Hitachi SolutionEngine external I/O:
  * MS7709SE01, MS7709ASE01, and MS7750SE01
- *
- * 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.
  */
 #include 
 #include 
diff --git a/arch/sh/kernel/cpu/pfc.c b/arch/sh/kernel/cpu/pfc.c
index d766564..062056e 100644
--- a/arch/sh/kernel/cpu/pfc.c
+++ b/arch/sh/kernel/cpu/pfc.c
@@ -1,16 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * SH Pin Function Control Initialization
  *
  * Copyright (C) 2012  Renesas Solutions Corp.
- *
- * 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 
-- 
2.7.4



[PATCH v2 resend 12/13] sh: kernel: convert to SPDX identifiers

2018-09-25 Thread Kuninori Morimoto


From: Kuninori Morimoto 

This patch updates license to use SPDX-License-Identifier
instead of verbose license text.

Signed-off-by: Kuninori Morimoto 
Reviewed-by: Simon Horman 
---
 arch/sh/kernel/debugtraps.S|  7 ++-
 arch/sh/kernel/disassemble.c   |  5 +
 arch/sh/kernel/dma-coherent.c  |  5 +
 arch/sh/kernel/dumpstack.c |  5 +
 arch/sh/kernel/dwarf.c |  5 +
 arch/sh/kernel/entry-common.S  |  8 ++--
 arch/sh/kernel/head_32.S   |  7 ++-
 arch/sh/kernel/head_64.S   |  7 ++-
 arch/sh/kernel/hw_breakpoint.c |  5 +
 arch/sh/kernel/idle.c  |  5 +
 arch/sh/kernel/io.c|  5 +
 arch/sh/kernel/io_trapped.c|  5 +
 arch/sh/kernel/iomap.c |  5 +
 arch/sh/kernel/ioport.c|  5 +
 arch/sh/kernel/irq_32.c|  5 +
 arch/sh/kernel/irq_64.c|  5 +
 arch/sh/kernel/kgdb.c  |  5 +
 arch/sh/kernel/kprobes.c   |  5 +
 arch/sh/kernel/machine_kexec.c |  4 +---
 arch/sh/kernel/machvec.c   |  5 +
 arch/sh/kernel/module.c| 15 +--
 arch/sh/kernel/nmi_debug.c |  5 +
 arch/sh/kernel/perf_callchain.c|  5 +
 arch/sh/kernel/perf_event.c|  5 +
 arch/sh/kernel/process_32.c|  5 +
 arch/sh/kernel/process_64.c|  5 +
 arch/sh/kernel/ptrace_32.c |  5 +
 arch/sh/kernel/ptrace_64.c |  5 +
 arch/sh/kernel/relocate_kernel.S   |  6 ++
 arch/sh/kernel/return_address.c|  5 +
 arch/sh/kernel/sh_bios.c   |  5 +
 arch/sh/kernel/sh_ksyms_64.c   |  5 +
 arch/sh/kernel/signal_64.c |  5 +
 arch/sh/kernel/smp.c   |  5 +
 arch/sh/kernel/stacktrace.c|  5 +
 arch/sh/kernel/swsusp.c|  5 +
 arch/sh/kernel/syscalls_32.S   |  8 ++--
 arch/sh/kernel/syscalls_64.S   |  7 ++-
 arch/sh/kernel/time.c  |  5 +
 arch/sh/kernel/topology.c  |  5 +
 arch/sh/kernel/traps_32.c  |  5 +
 arch/sh/kernel/traps_64.c  |  5 +
 arch/sh/kernel/unwinder.c  |  1 +
 arch/sh/kernel/vsyscall/vsyscall.c |  5 +
 44 files changed, 51 insertions(+), 189 deletions(-)

diff --git a/arch/sh/kernel/debugtraps.S b/arch/sh/kernel/debugtraps.S
index 7a1b46f..ad07527 100644
--- a/arch/sh/kernel/debugtraps.S
+++ b/arch/sh/kernel/debugtraps.S
@@ -1,13 +1,10 @@
-/*
+/* SPDX-License-Identifier: GPL-2.0
+ *
  * arch/sh/kernel/debugtraps.S
  *
  * Debug trap jump tables for SuperH
  *
  *  Copyright (C) 2006 - 2008  Paul Mundt
- *
- * 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.
  */
 #include 
 #include 
diff --git a/arch/sh/kernel/disassemble.c b/arch/sh/kernel/disassemble.c
index 015fee5..defebf1 100644
--- a/arch/sh/kernel/disassemble.c
+++ b/arch/sh/kernel/disassemble.c
@@ -1,12 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Disassemble SuperH instructions.
  *
  * Copyright (C) 1999 kaz Kojima
  * Copyright (C) 2008 Paul Mundt
- *
- * 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.
  */
 #include 
 #include 
diff --git a/arch/sh/kernel/dma-coherent.c b/arch/sh/kernel/dma-coherent.c
index a0021ee..b175146 100644
--- a/arch/sh/kernel/dma-coherent.c
+++ b/arch/sh/kernel/dma-coherent.c
@@ -1,9 +1,6 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Copyright (C) 2004 - 2007  Paul Mundt
- *
- * 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.
  */
 #include 
 #include 
diff --git a/arch/sh/kernel/dumpstack.c b/arch/sh/kernel/dumpstack.c
index b564b1e..93c6c0e 100644
--- a/arch/sh/kernel/dumpstack.c
+++ b/arch/sh/kernel/dumpstack.c
@@ -1,12 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  *  Copyright (C) 1991, 1992  Linus Torvalds
  *  Copyright (C) 2000, 2001, 2002 Andi Kleen, SuSE Labs
  *  Copyright (C) 2009  Matt Fleming
  *  Copyright (C) 2002 - 2012  Paul Mundt
- *
- * 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.
  */
 #include 
 #include 
diff --git a/arch/sh/kernel/dwarf.c b/arch/sh/kernel/dwarf.c
index bb511e2..9e1d26c 100644
--- a/arch/sh/kernel/dwarf.c
+++ b/arch/sh/kernel/dwarf.c
@@ -1,10 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Copyright (C) 2009 Matt Fleming 
  *
- * 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.
- *
  * This is an implementation of a 

[PATCH v2 resend 13/13] sh: lib: convert to SPDX identifiers

2018-09-25 Thread Kuninori Morimoto


From: Kuninori Morimoto 

This patch updates license to use SPDX-License-Identifier
instead of verbose license text.

Signed-off-by: Kuninori Morimoto 
Reviewed-by: Simon Horman 
---
 arch/sh/lib/ashiftrt.S   | 29 -
 arch/sh/lib/ashlsi3.S| 29 -
 arch/sh/lib/ashrsi3.S| 29 -
 arch/sh/lib/checksum.S   |  9 +++--
 arch/sh/lib/io.c |  5 +
 arch/sh/lib/libgcc.h |  2 ++
 arch/sh/lib/lshrsi3.S| 29 -
 arch/sh/lib/mcount.S |  7 ++-
 arch/sh/lib/movmem.S | 29 -
 arch/sh/lib/udiv_qrnnd.S | 29 -
 arch/sh/lib/udivsi3.S| 29 -
 arch/sh/lib/udivsi3_i4i-Os.S | 29 -
 arch/sh/lib/udivsi3_i4i.S| 29 -
 13 files changed, 44 insertions(+), 240 deletions(-)

diff --git a/arch/sh/lib/ashiftrt.S b/arch/sh/lib/ashiftrt.S
index 45ce865..0f7145e 100644
--- a/arch/sh/lib/ashiftrt.S
+++ b/arch/sh/lib/ashiftrt.S
@@ -1,30 +1,9 @@
-/* Copyright (C) 1994, 1995, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
+/* SPDX-License-Identifier: GPL-2.0+ WITH GCC-exception-2.0
+
+   Copyright (C) 1994, 1995, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
2004, 2005, 2006
Free Software Foundation, Inc.
-
-This file 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, or (at your option) any
-later version.
-
-In addition to the permissions in the GNU General Public License, the
-Free Software Foundation gives you unlimited permission to link the
-compiled version of this file into combinations with other programs,
-and to distribute those combinations without any restriction coming
-from the use of this file.  (The General Public License restrictions
-do apply in other respects; for example, they cover modification of
-the file, and distribution when not linked into a combine
-executable.)
-
-This file 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; see the file COPYING.  If not, write to
-the Free Software Foundation, 51 Franklin Street, Fifth Floor,
-Boston, MA 02110-1301, USA.  */
+*/
 
 !! libgcc routines for the Renesas / SuperH SH CPUs.
 !! Contributed by Steve Chamberlain.
diff --git a/arch/sh/lib/ashlsi3.S b/arch/sh/lib/ashlsi3.S
index 70a6434..4df4401 100644
--- a/arch/sh/lib/ashlsi3.S
+++ b/arch/sh/lib/ashlsi3.S
@@ -1,30 +1,9 @@
-/* Copyright (C) 1994, 1995, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
+/* SPDX-License-Identifier: GPL-2.0+ WITH GCC-exception-2.0
+
+   Copyright (C) 1994, 1995, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
2004, 2005, 2006
Free Software Foundation, Inc.
-
-This file 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, or (at your option) any
-later version.
-
-In addition to the permissions in the GNU General Public License, the
-Free Software Foundation gives you unlimited permission to link the
-compiled version of this file into combinations with other programs,
-and to distribute those combinations without any restriction coming
-from the use of this file.  (The General Public License restrictions
-do apply in other respects; for example, they cover modification of
-the file, and distribution when not linked into a combine
-executable.)
-
-This file 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; see the file COPYING.  If not, write to
-the Free Software Foundation, 51 Franklin Street, Fifth Floor,
-Boston, MA 02110-1301, USA.  */
+*/
 
 !! libgcc routines for the Renesas / SuperH SH CPUs.
 !! Contributed by Steve Chamberlain.
diff --git a/arch/sh/lib/ashrsi3.S b/arch/sh/lib/ashrsi3.S
index 602599d..bf3c4e03 100644
--- a/arch/sh/lib/ashrsi3.S
+++ b/arch/sh/lib/ashrsi3.S
@@ -1,30 +1,9 @@
-/* Copyright (C) 1994, 1995, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
+/* SPDX-License-Identifier: GPL-2.0+ WITH GCC-exception-2.0
+
+   Copyright (C) 1994, 1995, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
2004, 2005, 2006
Free Software Foundation, Inc.
-
-This file 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 

[PATCH v2 resend 09/13] sh: sh5: convert to SPDX identifiers

2018-09-25 Thread Kuninori Morimoto


From: Kuninori Morimoto 

This patch updates license to use SPDX-License-Identifier
instead of verbose license text.

Signed-off-by: Kuninori Morimoto 
Reviewed-by: Simon Horman 
---
 arch/sh/kernel/cpu/sh5/clock-sh5.c | 5 +
 arch/sh/kernel/cpu/sh5/entry.S | 7 ++-
 arch/sh/kernel/cpu/sh5/fpu.c   | 5 +
 arch/sh/kernel/cpu/sh5/probe.c | 5 +
 arch/sh/kernel/cpu/sh5/setup-sh5.c | 5 +
 arch/sh/kernel/cpu/sh5/switchto.S  | 7 ++-
 arch/sh/kernel/cpu/sh5/unwind.c| 5 +
 7 files changed, 9 insertions(+), 30 deletions(-)

diff --git a/arch/sh/kernel/cpu/sh5/clock-sh5.c 
b/arch/sh/kernel/cpu/sh5/clock-sh5.c
index c48b93d..43763c2 100644
--- a/arch/sh/kernel/cpu/sh5/clock-sh5.c
+++ b/arch/sh/kernel/cpu/sh5/clock-sh5.c
@@ -1,13 +1,10 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * arch/sh/kernel/cpu/sh5/clock-sh5.c
  *
  * SH-5 support for the clock framework
  *
  *  Copyright (C) 2008  Paul Mundt
- *
- * 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.
  */
 #include 
 #include 
diff --git a/arch/sh/kernel/cpu/sh5/entry.S b/arch/sh/kernel/cpu/sh5/entry.S
index 0c8d037..de68ffd 100644
--- a/arch/sh/kernel/cpu/sh5/entry.S
+++ b/arch/sh/kernel/cpu/sh5/entry.S
@@ -1,13 +1,10 @@
-/*
+/* SPDX-License-Identifier: GPL-2.0
+ *
  * arch/sh/kernel/cpu/sh5/entry.S
  *
  * Copyright (C) 2000, 2001  Paolo Alberelli
  * Copyright (C) 2004 - 2008  Paul Mundt
  * Copyright (C) 2003, 2004  Richard Curnow
- *
- * 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.
  */
 #include 
 #include 
diff --git a/arch/sh/kernel/cpu/sh5/fpu.c b/arch/sh/kernel/cpu/sh5/fpu.c
index 9f8713a..9218d9e 100644
--- a/arch/sh/kernel/cpu/sh5/fpu.c
+++ b/arch/sh/kernel/cpu/sh5/fpu.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * arch/sh/kernel/cpu/sh5/fpu.c
  *
@@ -7,10 +8,6 @@
  *
  * Started from SH4 version:
  *   Copyright (C) 1999, 2000  Kaz Kojima & Niibe Yutaka
- *
- * 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.
  */
 #include 
 #include 
diff --git a/arch/sh/kernel/cpu/sh5/probe.c b/arch/sh/kernel/cpu/sh5/probe.c
index eca427c..9472501 100644
--- a/arch/sh/kernel/cpu/sh5/probe.c
+++ b/arch/sh/kernel/cpu/sh5/probe.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * arch/sh/kernel/cpu/sh5/probe.c
  *
@@ -5,10 +6,6 @@
  *
  * Copyright (C) 2000, 2001  Paolo Alberelli
  * Copyright (C) 2003 - 2007  Paul Mundt
- *
- * 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.
  */
 #include 
 #include 
diff --git a/arch/sh/kernel/cpu/sh5/setup-sh5.c 
b/arch/sh/kernel/cpu/sh5/setup-sh5.c
index 084a9cc..41c1673 100644
--- a/arch/sh/kernel/cpu/sh5/setup-sh5.c
+++ b/arch/sh/kernel/cpu/sh5/setup-sh5.c
@@ -1,11 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * SH5-101/SH5-103 CPU Setup
  *
  *  Copyright (C) 2009  Paul Mundt
- *
- * 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.
  */
 #include 
 #include 
diff --git a/arch/sh/kernel/cpu/sh5/switchto.S 
b/arch/sh/kernel/cpu/sh5/switchto.S
index 45c351b0..d1beff7 100644
--- a/arch/sh/kernel/cpu/sh5/switchto.S
+++ b/arch/sh/kernel/cpu/sh5/switchto.S
@@ -1,13 +1,10 @@
-/*
+/* SPDX-License-Identifier: GPL-2.0
+ *
  * arch/sh/kernel/cpu/sh5/switchto.S
  *
  * sh64 context switch
  *
  * Copyright (C) 2004  Richard Curnow
- *
- * 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.
 */
 
.section .text..SHmedia32,"ax"
diff --git a/arch/sh/kernel/cpu/sh5/unwind.c b/arch/sh/kernel/cpu/sh5/unwind.c
index 3a4fed4..3cb0cd9 100644
--- a/arch/sh/kernel/cpu/sh5/unwind.c
+++ b/arch/sh/kernel/cpu/sh5/unwind.c
@@ -1,12 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * arch/sh/kernel/cpu/sh5/unwind.c
  *
  * Copyright (C) 2004  Paul Mundt
  * Copyright (C) 2004  Richard Curnow
- *
- * 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.
  */
 #include 
 #include 
-- 
2.7.4



[PATCH v2 resend 08/13] sh: sh4a: convert to SPDX identifiers

2018-09-25 Thread Kuninori Morimoto


From: Kuninori Morimoto 

This patch updates license to use SPDX-License-Identifier
instead of verbose license text.

Signed-off-by: Kuninori Morimoto 
Reviewed-by: Simon Horman 
---
 arch/sh/kernel/cpu/sh4a/clock-sh7343.c  | 14 +-
 arch/sh/kernel/cpu/sh4a/clock-sh7366.c  | 14 +-
 arch/sh/kernel/cpu/sh4a/clock-sh7722.c  | 14 +-
 arch/sh/kernel/cpu/sh4a/clock-sh7723.c  | 14 +-
 arch/sh/kernel/cpu/sh4a/clock-sh7724.c  | 14 +-
 arch/sh/kernel/cpu/sh4a/clock-sh7734.c  |  5 +
 arch/sh/kernel/cpu/sh4a/clock-sh7757.c  |  5 +
 arch/sh/kernel/cpu/sh4a/clock-sh7763.c  |  5 +
 arch/sh/kernel/cpu/sh4a/clock-sh7770.c  |  5 +
 arch/sh/kernel/cpu/sh4a/clock-sh7780.c  |  5 +
 arch/sh/kernel/cpu/sh4a/clock-sh7785.c  |  5 +
 arch/sh/kernel/cpu/sh4a/clock-sh7786.c  |  5 +
 arch/sh/kernel/cpu/sh4a/clock-shx3.c|  5 +
 arch/sh/kernel/cpu/sh4a/intc-shx3.c |  5 +
 arch/sh/kernel/cpu/sh4a/perf_event.c|  5 +
 arch/sh/kernel/cpu/sh4a/pinmux-sh7723.c |  5 +
 arch/sh/kernel/cpu/sh4a/pinmux-sh7724.c |  5 +
 arch/sh/kernel/cpu/sh4a/pinmux-sh7734.c |  5 +
 arch/sh/kernel/cpu/sh4a/pinmux-sh7757.c |  5 +
 arch/sh/kernel/cpu/sh4a/pinmux-sh7785.c |  5 +
 arch/sh/kernel/cpu/sh4a/pinmux-sh7786.c |  5 +
 arch/sh/kernel/cpu/sh4a/pinmux-shx3.c   |  5 +
 arch/sh/kernel/cpu/sh4a/setup-sh7343.c  |  5 +
 arch/sh/kernel/cpu/sh4a/setup-sh7366.c  |  5 +
 arch/sh/kernel/cpu/sh4a/setup-sh7722.c  |  5 +
 arch/sh/kernel/cpu/sh4a/setup-sh7723.c  |  5 +
 arch/sh/kernel/cpu/sh4a/setup-sh7724.c  |  5 +
 arch/sh/kernel/cpu/sh4a/setup-sh7734.c  |  7 ++-
 arch/sh/kernel/cpu/sh4a/setup-sh7757.c  |  5 +
 arch/sh/kernel/cpu/sh4a/setup-sh7763.c  |  5 +
 arch/sh/kernel/cpu/sh4a/setup-sh7770.c  |  5 +
 arch/sh/kernel/cpu/sh4a/setup-sh7780.c  |  5 +
 arch/sh/kernel/cpu/sh4a/setup-sh7785.c  |  5 +
 arch/sh/kernel/cpu/sh4a/setup-sh7786.c  |  5 +
 arch/sh/kernel/cpu/sh4a/setup-shx3.c|  5 +
 arch/sh/kernel/cpu/sh4a/smp-shx3.c  |  5 +
 arch/sh/kernel/cpu/sh4a/ubc.c   |  5 +
 37 files changed, 38 insertions(+), 194 deletions(-)

diff --git a/arch/sh/kernel/cpu/sh4a/clock-sh7343.c 
b/arch/sh/kernel/cpu/sh4a/clock-sh7343.c
index a907ee2..32cb5d1 100644
--- a/arch/sh/kernel/cpu/sh4a/clock-sh7343.c
+++ b/arch/sh/kernel/cpu/sh4a/clock-sh7343.c
@@ -1,22 +1,10 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * arch/sh/kernel/cpu/sh4a/clock-sh7343.c
  *
  * SH7343 clock framework support
  *
  * Copyright (C) 2009 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; either 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., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 #include 
 #include 
diff --git a/arch/sh/kernel/cpu/sh4a/clock-sh7366.c 
b/arch/sh/kernel/cpu/sh4a/clock-sh7366.c
index ac98541..aa3444b 100644
--- a/arch/sh/kernel/cpu/sh4a/clock-sh7366.c
+++ b/arch/sh/kernel/cpu/sh4a/clock-sh7366.c
@@ -1,22 +1,10 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * arch/sh/kernel/cpu/sh4a/clock-sh7366.c
  *
  * SH7366 clock framework support
  *
  * Copyright (C) 2009 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; either 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., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 #include 
 #include 
diff --git a/arch/sh/kernel/cpu/sh4a/clock-sh7722.c 
b/arch/sh/kernel/cpu/sh4a/clock-sh7722.c
index d85091e..38b0577 100644
--- a/arch/sh/kernel/cpu/sh4a/clock-sh7722.c
+++ b/arch/sh/kernel/cpu/sh4a/clock-sh7722.c
@@ -1,22 +1,10 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * arch/sh/kernel/cpu/sh4a/clock-sh7722.c
  *
  * SH7722 clock framework support
  *
  * Copyright (C) 2009 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 

[PATCH v2 resend 10/13] sh: shmobile: convert to SPDX identifiers

2018-09-25 Thread Kuninori Morimoto


From: Kuninori Morimoto 

This patch updates license to use SPDX-License-Identifier
instead of verbose license text.

Signed-off-by: Kuninori Morimoto 
Reviewed-by: Simon Horman 
---
 arch/sh/kernel/cpu/shmobile/Makefile  | 1 +
 arch/sh/kernel/cpu/shmobile/cpuidle.c | 5 +
 arch/sh/kernel/cpu/shmobile/pm.c  | 5 +
 arch/sh/kernel/cpu/shmobile/sleep.S   | 7 ++-
 4 files changed, 5 insertions(+), 13 deletions(-)

diff --git a/arch/sh/kernel/cpu/shmobile/Makefile 
b/arch/sh/kernel/cpu/shmobile/Makefile
index e8a5111..7581d5f 100644
--- a/arch/sh/kernel/cpu/shmobile/Makefile
+++ b/arch/sh/kernel/cpu/shmobile/Makefile
@@ -1,3 +1,4 @@
+# SPDX-License-Identifier: GPL-2.0
 #
 # Makefile for the Linux/SuperH SH-Mobile backends.
 #
diff --git a/arch/sh/kernel/cpu/shmobile/cpuidle.c 
b/arch/sh/kernel/cpu/shmobile/cpuidle.c
index c32e660..dbd2cde 100644
--- a/arch/sh/kernel/cpu/shmobile/cpuidle.c
+++ b/arch/sh/kernel/cpu/shmobile/cpuidle.c
@@ -1,13 +1,10 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * arch/sh/kernel/cpu/shmobile/cpuidle.c
  *
  * Cpuidle support code for SuperH Mobile
  *
  *  Copyright (C) 2009 Magnus Damm
- *
- * 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.
  */
 #include 
 #include 
diff --git a/arch/sh/kernel/cpu/shmobile/pm.c b/arch/sh/kernel/cpu/shmobile/pm.c
index fba2be5..ca9945f 100644
--- a/arch/sh/kernel/cpu/shmobile/pm.c
+++ b/arch/sh/kernel/cpu/shmobile/pm.c
@@ -1,13 +1,10 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * arch/sh/kernel/cpu/shmobile/pm.c
  *
  * Power management support code for SuperH Mobile
  *
  *  Copyright (C) 2009 Magnus Damm
- *
- * 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.
  */
 #include 
 #include 
diff --git a/arch/sh/kernel/cpu/shmobile/sleep.S 
b/arch/sh/kernel/cpu/shmobile/sleep.S
index e6aac65..f928c03 100644
--- a/arch/sh/kernel/cpu/shmobile/sleep.S
+++ b/arch/sh/kernel/cpu/shmobile/sleep.S
@@ -1,13 +1,10 @@
-/*
+/* SPDX-License-Identifier: GPL-2.0
+ *
  * arch/sh/kernel/cpu/sh4a/sleep-sh_mobile.S
  *
  * Sleep mode and Standby modes support for SuperH Mobile
  *
  *  Copyright (C) 2009 Magnus Damm
- *
- * 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.
  */
 
 #include 
-- 
2.7.4



[PATCH v2 resend 07/13] sh: sh4: convert to SPDX identifiers

2018-09-25 Thread Kuninori Morimoto


From: Kuninori Morimoto 

This patch updates license to use SPDX-License-Identifier
instead of verbose license text,
excepting ${LINUX}/arch/sh/kernel/cpu/sh4/softfloat.c
which is not GPL license

Signed-off-by: Kuninori Morimoto 
Reviewed-by: Simon Horman 
---
 arch/sh/kernel/cpu/sh4/clock-sh4-202.c | 5 +
 arch/sh/kernel/cpu/sh4/clock-sh4.c | 5 +
 arch/sh/kernel/cpu/sh4/fpu.c   | 5 +
 arch/sh/kernel/cpu/sh4/perf_event.c| 5 +
 arch/sh/kernel/cpu/sh4/probe.c | 5 +
 arch/sh/kernel/cpu/sh4/setup-sh4-202.c | 5 +
 arch/sh/kernel/cpu/sh4/setup-sh7750.c  | 5 +
 arch/sh/kernel/cpu/sh4/setup-sh7760.c  | 5 +
 arch/sh/kernel/cpu/sh4/sq.c| 5 +
 9 files changed, 9 insertions(+), 36 deletions(-)

diff --git a/arch/sh/kernel/cpu/sh4/clock-sh4-202.c 
b/arch/sh/kernel/cpu/sh4/clock-sh4-202.c
index 4b5bab5..c1cdef7 100644
--- a/arch/sh/kernel/cpu/sh4/clock-sh4-202.c
+++ b/arch/sh/kernel/cpu/sh4/clock-sh4-202.c
@@ -1,13 +1,10 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * arch/sh/kernel/cpu/sh4/clock-sh4-202.c
  *
  * Additional SH4-202 support for the clock framework
  *
  *  Copyright (C) 2005  Paul Mundt
- *
- * 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.
  */
 #include 
 #include 
diff --git a/arch/sh/kernel/cpu/sh4/clock-sh4.c 
b/arch/sh/kernel/cpu/sh4/clock-sh4.c
index 99e5ec8..ee3c553 100644
--- a/arch/sh/kernel/cpu/sh4/clock-sh4.c
+++ b/arch/sh/kernel/cpu/sh4/clock-sh4.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * arch/sh/kernel/cpu/sh4/clock-sh4.c
  *
@@ -11,10 +12,6 @@
  *  Copyright (C) 2000  Philipp Rumpf 
  *  Copyright (C) 2002, 2003, 2004  Paul Mundt
  *  Copyright (C) 2002  M. R. Brown  
- *
- * 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.
  */
 #include 
 #include 
diff --git a/arch/sh/kernel/cpu/sh4/fpu.c b/arch/sh/kernel/cpu/sh4/fpu.c
index 95fd2dcb..1ff56e5 100644
--- a/arch/sh/kernel/cpu/sh4/fpu.c
+++ b/arch/sh/kernel/cpu/sh4/fpu.c
@@ -1,10 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Save/restore floating point context for signal handlers.
  *
- * 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.
- *
  * Copyright (C) 1999, 2000  Kaz Kojima & Niibe Yutaka
  * Copyright (C) 2006  ST Microelectronics Ltd. (denorm support)
  *
diff --git a/arch/sh/kernel/cpu/sh4/perf_event.c 
b/arch/sh/kernel/cpu/sh4/perf_event.c
index fa4f724..db5847b 100644
--- a/arch/sh/kernel/cpu/sh4/perf_event.c
+++ b/arch/sh/kernel/cpu/sh4/perf_event.c
@@ -1,11 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Performance events support for SH7750-style performance counters
  *
  *  Copyright (C) 2009  Paul Mundt
- *
- * 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.
  */
 #include 
 #include 
diff --git a/arch/sh/kernel/cpu/sh4/probe.c b/arch/sh/kernel/cpu/sh4/probe.c
index a521bcf..ef4dd62 100644
--- a/arch/sh/kernel/cpu/sh4/probe.c
+++ b/arch/sh/kernel/cpu/sh4/probe.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * arch/sh/kernel/cpu/sh4/probe.c
  *
@@ -5,10 +6,6 @@
  *
  * Copyright (C) 2001 - 2007  Paul Mundt
  * Copyright (C) 2003  Richard Curnow
- *
- * 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.
  */
 #include 
 #include 
diff --git a/arch/sh/kernel/cpu/sh4/setup-sh4-202.c 
b/arch/sh/kernel/cpu/sh4/setup-sh4-202.c
index 2623f82..a40ef35 100644
--- a/arch/sh/kernel/cpu/sh4/setup-sh4-202.c
+++ b/arch/sh/kernel/cpu/sh4/setup-sh4-202.c
@@ -1,12 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * SH4-202 Setup
  *
  *  Copyright (C) 2006  Paul Mundt
  *  Copyright (C) 2009  Magnus Damm
- *
- * 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.
  */
 #include 
 #include 
diff --git a/arch/sh/kernel/cpu/sh4/setup-sh7750.c 
b/arch/sh/kernel/cpu/sh4/setup-sh7750.c
index 57d3068..b37bda6 100644
--- a/arch/sh/kernel/cpu/sh4/setup-sh7750.c
+++ b/arch/sh/kernel/cpu/sh4/setup-sh7750.c
@@ -1,12 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * SH7091/SH7750/SH7750S/SH7750R/SH7751/SH7751R Setup
  *
  *  Copyright (C) 2006  Paul Mundt
  *  Copyright (C) 2006  Jamie Lenehan
- *
- * 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.
  */
 #include 
 #include 
diff --git 

[PATCH v2 resend 06/13] sh: sh3: convert to SPDX identifiers

2018-09-25 Thread Kuninori Morimoto


From: Kuninori Morimoto 

This patch updates license to use SPDX-License-Identifier
instead of verbose license text.

Signed-off-by: Kuninori Morimoto 
Reviewed-by: Simon Horman 
---
 arch/sh/kernel/cpu/sh3/clock-sh3.c | 5 +
 arch/sh/kernel/cpu/sh3/clock-sh7705.c  | 5 +
 arch/sh/kernel/cpu/sh3/clock-sh7706.c  | 5 +
 arch/sh/kernel/cpu/sh3/clock-sh7709.c  | 5 +
 arch/sh/kernel/cpu/sh3/clock-sh7710.c  | 5 +
 arch/sh/kernel/cpu/sh3/clock-sh7712.c  | 5 +
 arch/sh/kernel/cpu/sh3/entry.S | 7 ++-
 arch/sh/kernel/cpu/sh3/ex.S| 9 +++--
 arch/sh/kernel/cpu/sh3/pinmux-sh7720.c | 5 +
 arch/sh/kernel/cpu/sh3/probe.c | 5 +
 arch/sh/kernel/cpu/sh3/setup-sh3.c | 5 +
 arch/sh/kernel/cpu/sh3/setup-sh7705.c  | 5 +
 arch/sh/kernel/cpu/sh3/setup-sh770x.c  | 5 +
 arch/sh/kernel/cpu/sh3/setup-sh7710.c  | 5 +
 arch/sh/kernel/cpu/sh3/setup-sh7720.c  | 5 +
 arch/sh/kernel/cpu/sh3/swsusp.S| 7 ++-
 16 files changed, 20 insertions(+), 68 deletions(-)

diff --git a/arch/sh/kernel/cpu/sh3/clock-sh3.c 
b/arch/sh/kernel/cpu/sh3/clock-sh3.c
index 90faa44..d776572 100644
--- a/arch/sh/kernel/cpu/sh3/clock-sh3.c
+++ b/arch/sh/kernel/cpu/sh3/clock-sh3.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * arch/sh/kernel/cpu/sh3/clock-sh3.c
  *
@@ -11,10 +12,6 @@
  *  Copyright (C) 2000  Philipp Rumpf 
  *  Copyright (C) 2002, 2003, 2004  Paul Mundt
  *  Copyright (C) 2002  M. R. Brown  
- *
- * 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.
  */
 #include 
 #include 
diff --git a/arch/sh/kernel/cpu/sh3/clock-sh7705.c 
b/arch/sh/kernel/cpu/sh3/clock-sh7705.c
index a8da4a9..4947114 100644
--- a/arch/sh/kernel/cpu/sh3/clock-sh7705.c
+++ b/arch/sh/kernel/cpu/sh3/clock-sh7705.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * arch/sh/kernel/cpu/sh3/clock-sh7705.c
  *
@@ -11,10 +12,6 @@
  *  Copyright (C) 2000  Philipp Rumpf 
  *  Copyright (C) 2002, 2003, 2004  Paul Mundt
  *  Copyright (C) 2002  M. R. Brown  
- *
- * 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.
  */
 #include 
 #include 
diff --git a/arch/sh/kernel/cpu/sh3/clock-sh7706.c 
b/arch/sh/kernel/cpu/sh3/clock-sh7706.c
index a4088e5..1785502 100644
--- a/arch/sh/kernel/cpu/sh3/clock-sh7706.c
+++ b/arch/sh/kernel/cpu/sh3/clock-sh7706.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * arch/sh/kernel/cpu/sh3/clock-sh7706.c
  *
@@ -7,10 +8,6 @@
  *
  * Based on arch/sh/kernel/cpu/sh3/clock-sh7709.c
  *  Copyright (C) 2005  Andriy Skulysh
- *
- * 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.
  */
 #include 
 #include 
diff --git a/arch/sh/kernel/cpu/sh3/clock-sh7709.c 
b/arch/sh/kernel/cpu/sh3/clock-sh7709.c
index 54a6d4b..54701bb 100644
--- a/arch/sh/kernel/cpu/sh3/clock-sh7709.c
+++ b/arch/sh/kernel/cpu/sh3/clock-sh7709.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * arch/sh/kernel/cpu/sh3/clock-sh7709.c
  *
@@ -7,10 +8,6 @@
  *
  * Based on arch/sh/kernel/cpu/sh3/clock-sh7705.c
  *  Copyright (C) 2005  Paul Mundt
- *
- * 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.
  */
 #include 
 #include 
diff --git a/arch/sh/kernel/cpu/sh3/clock-sh7710.c 
b/arch/sh/kernel/cpu/sh3/clock-sh7710.c
index ce601b2..e60d0bc 100644
--- a/arch/sh/kernel/cpu/sh3/clock-sh7710.c
+++ b/arch/sh/kernel/cpu/sh3/clock-sh7710.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * arch/sh/kernel/cpu/sh3/clock-sh7710.c
  *
@@ -11,10 +12,6 @@
  *  Copyright (C) 2000  Philipp Rumpf 
  *  Copyright (C) 2002, 2003, 2004  Paul Mundt
  *  Copyright (C) 2002  M. R. Brown  
- *
- * 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.
  */
 #include 
 #include 
diff --git a/arch/sh/kernel/cpu/sh3/clock-sh7712.c 
b/arch/sh/kernel/cpu/sh3/clock-sh7712.c
index 21438a9..5af553f 100644
--- a/arch/sh/kernel/cpu/sh3/clock-sh7712.c
+++ b/arch/sh/kernel/cpu/sh3/clock-sh7712.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * arch/sh/kernel/cpu/sh3/clock-sh7712.c
  *
@@ -7,10 +8,6 @@
  *
  * Based on arch/sh/kernel/cpu/sh3/clock-sh3.c
  *  Copyright (C) 2005  Paul Mundt
- *
- * 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.
  */
 #include 
 #include 
diff --git a/arch/sh/kernel/cpu/sh3/entry.S b/arch/sh/kernel/cpu/sh3/entry.S
index 

[PATCH v2 resend 03/13] sh: include: convert to SPDX identifiers

2018-09-25 Thread Kuninori Morimoto


From: Kuninori Morimoto 

This patch updates license to use SPDX-License-Identifier
instead of verbose license text.

Signed-off-by: Kuninori Morimoto 
Reviewed-by: Simon Horman 
---
 arch/sh/include/asm/Kbuild   |  1 +
 arch/sh/include/asm/addrspace.h  |  5 +
 arch/sh/include/asm/asm-offsets.h|  1 +
 arch/sh/include/asm/bl_bit_64.h  |  7 ++-
 arch/sh/include/asm/cache_insns_64.h |  7 ++-
 arch/sh/include/asm/checksum_32.h|  5 +
 arch/sh/include/asm/cmpxchg-xchg.h   |  4 +---
 arch/sh/include/asm/device.h |  5 ++---
 arch/sh/include/asm/dma-register.h   |  7 ++-
 arch/sh/include/asm/dma.h|  7 ++-
 arch/sh/include/asm/dwarf.h  |  8 ++--
 arch/sh/include/asm/fb.h |  1 +
 arch/sh/include/asm/fixmap.h |  7 ++-
 arch/sh/include/asm/flat.h   |  7 ++-
 arch/sh/include/asm/freq.h   |  8 ++--
 arch/sh/include/asm/gpio.h   |  7 ++-
 arch/sh/include/asm/machvec.h|  6 ++
 arch/sh/include/asm/mmu_context_64.h |  5 +
 arch/sh/include/asm/pgtable.h|  7 ++-
 arch/sh/include/asm/pgtable_64.h |  5 +
 arch/sh/include/asm/processor_64.h   |  5 +
 arch/sh/include/asm/sfp-machine.h| 20 
 arch/sh/include/asm/shmparam.h   |  7 ++-
 arch/sh/include/asm/siu.h|  7 ++-
 arch/sh/include/asm/spinlock-cas.h   |  7 ++-
 arch/sh/include/asm/spinlock-llsc.h  |  7 ++-
 arch/sh/include/asm/spinlock.h   |  7 ++-
 arch/sh/include/asm/string_32.h  |  1 +
 arch/sh/include/asm/switch_to.h  |  7 ++-
 arch/sh/include/asm/switch_to_64.h   |  7 ++-
 arch/sh/include/asm/tlb_64.h |  7 ++-
 arch/sh/include/asm/traps_64.h   |  7 ++-
 arch/sh/include/asm/uaccess_64.h |  5 +
 arch/sh/include/asm/vga.h|  1 +
 arch/sh/include/asm/watchdog.h   |  8 ++--
 arch/sh/include/cpu-common/cpu/addrspace.h   |  7 ++-
 arch/sh/include/cpu-common/cpu/mmu_context.h |  7 ++-
 arch/sh/include/cpu-common/cpu/pfc.h | 12 ++--
 arch/sh/include/cpu-common/cpu/timer.h   |  1 +
 arch/sh/include/cpu-sh2/cpu/cache.h  |  7 ++-
 arch/sh/include/cpu-sh2/cpu/freq.h   |  7 ++-
 arch/sh/include/cpu-sh2/cpu/watchdog.h   |  7 ++-
 arch/sh/include/cpu-sh2a/cpu/cache.h |  7 ++-
 arch/sh/include/cpu-sh2a/cpu/freq.h  |  7 ++-
 arch/sh/include/cpu-sh2a/cpu/watchdog.h  |  1 +
 arch/sh/include/cpu-sh3/cpu/cache.h  |  7 ++-
 arch/sh/include/cpu-sh3/cpu/dma-register.h   |  7 ++-
 arch/sh/include/cpu-sh3/cpu/freq.h   |  7 ++-
 arch/sh/include/cpu-sh3/cpu/gpio.h   |  7 ++-
 arch/sh/include/cpu-sh3/cpu/mmu_context.h|  7 ++-
 arch/sh/include/cpu-sh3/cpu/watchdog.h   |  7 ++-
 arch/sh/include/cpu-sh4/cpu/addrspace.h  |  5 +
 arch/sh/include/cpu-sh4/cpu/cache.h  |  7 ++-
 arch/sh/include/cpu-sh4/cpu/dma-register.h   |  7 ++-
 arch/sh/include/cpu-sh4/cpu/fpu.h|  6 ++
 arch/sh/include/cpu-sh4/cpu/freq.h   |  7 ++-
 arch/sh/include/cpu-sh4/cpu/mmu_context.h|  7 ++-
 arch/sh/include/cpu-sh4/cpu/sh7786.h |  7 ++-
 arch/sh/include/cpu-sh4/cpu/sq.h |  7 ++-
 arch/sh/include/cpu-sh4/cpu/watchdog.h   |  7 ++-
 arch/sh/include/cpu-sh5/cpu/cache.h  |  5 +
 arch/sh/include/cpu-sh5/cpu/irq.h|  5 +
 arch/sh/include/cpu-sh5/cpu/registers.h  |  5 +
 arch/sh/include/mach-common/mach/hp6xx.h | 12 
 arch/sh/include/mach-common/mach/lboxre2.h   |  6 +-
 arch/sh/include/mach-common/mach/magicpanelr2.h  |  7 ++-
 arch/sh/include/mach-common/mach/mangle-port.h   |  7 ++-
 arch/sh/include/mach-common/mach/microdev.h  |  6 ++
 arch/sh/include/mach-common/mach/sdk7780.h   |  5 +
 arch/sh/include/mach-common/mach/secureedge5410.h|  6 ++
 arch/sh/include/mach-common/mach/sh7763rdp.h |  6 +-
 arch/sh/include/mach-dreamcast/mach/dma.h|  7 ++-
 

[PATCH v2 resend 04/13] sh: sh2: convert to SPDX identifiers

2018-09-25 Thread Kuninori Morimoto


From: Kuninori Morimoto 

This patch updates license to use SPDX-License-Identifier
instead of verbose license text.

Signed-off-by: Kuninori Morimoto 
Reviewed-by: Simon Horman 
---
 arch/sh/kernel/cpu/sh2/Makefile   | 1 +
 arch/sh/kernel/cpu/sh2/clock-sh7619.c | 5 +
 arch/sh/kernel/cpu/sh2/entry.S| 7 ++-
 arch/sh/kernel/cpu/sh2/ex.S   | 7 ++-
 arch/sh/kernel/cpu/sh2/probe.c| 5 +
 arch/sh/kernel/cpu/sh2/setup-sh7619.c | 5 +
 arch/sh/kernel/cpu/sh2/smp-j2.c   | 5 +
 7 files changed, 9 insertions(+), 26 deletions(-)

diff --git a/arch/sh/kernel/cpu/sh2/Makefile b/arch/sh/kernel/cpu/sh2/Makefile
index 904c428..214c3a5 100644
--- a/arch/sh/kernel/cpu/sh2/Makefile
+++ b/arch/sh/kernel/cpu/sh2/Makefile
@@ -1,3 +1,4 @@
+# SPDX-License-Identifier: GPL-2.0
 #
 # Makefile for the Linux/SuperH SH-2 backends.
 #
diff --git a/arch/sh/kernel/cpu/sh2/clock-sh7619.c 
b/arch/sh/kernel/cpu/sh2/clock-sh7619.c
index e80252a..d66d194c 100644
--- a/arch/sh/kernel/cpu/sh2/clock-sh7619.c
+++ b/arch/sh/kernel/cpu/sh2/clock-sh7619.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * arch/sh/kernel/cpu/sh2/clock-sh7619.c
  *
@@ -7,10 +8,6 @@
  *
  * Based on clock-sh4.c
  *  Copyright (C) 2005  Paul Mundt
- *
- * 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.
  */
 #include 
 #include 
diff --git a/arch/sh/kernel/cpu/sh2/entry.S b/arch/sh/kernel/cpu/sh2/entry.S
index 1ee0a6e..0a1c2bf 100644
--- a/arch/sh/kernel/cpu/sh2/entry.S
+++ b/arch/sh/kernel/cpu/sh2/entry.S
@@ -1,14 +1,11 @@
-/*
+/* SPDX-License-Identifier: GPL-2.0
+ *
  * arch/sh/kernel/cpu/sh2/entry.S
  *
  * The SH-2 exception entry
  *
  * Copyright (C) 2005-2008 Yoshinori Sato
  * Copyright (C) 2005  AXE,Inc.
- *
- * 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.
  */
 
 #include 
diff --git a/arch/sh/kernel/cpu/sh2/ex.S b/arch/sh/kernel/cpu/sh2/ex.S
index 85b0bf8..dd0cc88 100644
--- a/arch/sh/kernel/cpu/sh2/ex.S
+++ b/arch/sh/kernel/cpu/sh2/ex.S
@@ -1,13 +1,10 @@
-/*
+/* SPDX-License-Identifier: GPL-2.0
+ *
  * arch/sh/kernel/cpu/sh2/ex.S
  *
  * The SH-2 exception vector table
  *
  * Copyright (C) 2005 Yoshinori Sato
- *
- * 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.
  */
 
 #include 
diff --git a/arch/sh/kernel/cpu/sh2/probe.c b/arch/sh/kernel/cpu/sh2/probe.c
index a5bd036..d342ea0 100644
--- a/arch/sh/kernel/cpu/sh2/probe.c
+++ b/arch/sh/kernel/cpu/sh2/probe.c
@@ -1,13 +1,10 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * arch/sh/kernel/cpu/sh2/probe.c
  *
  * CPU Subtype Probing for SH-2.
  *
  * Copyright (C) 2002 Paul Mundt
- *
- * 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.
  */
 #include 
 #include 
diff --git a/arch/sh/kernel/cpu/sh2/setup-sh7619.c 
b/arch/sh/kernel/cpu/sh2/setup-sh7619.c
index d08db08..f5b6841 100644
--- a/arch/sh/kernel/cpu/sh2/setup-sh7619.c
+++ b/arch/sh/kernel/cpu/sh2/setup-sh7619.c
@@ -1,12 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * SH7619 Setup
  *
  *  Copyright (C) 2006  Yoshinori Sato
  *  Copyright (C) 2009  Paul Mundt
- *
- * 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.
  */
 #include 
 #include 
diff --git a/arch/sh/kernel/cpu/sh2/smp-j2.c b/arch/sh/kernel/cpu/sh2/smp-j2.c
index 6ccd7e4..ae44dc2 100644
--- a/arch/sh/kernel/cpu/sh2/smp-j2.c
+++ b/arch/sh/kernel/cpu/sh2/smp-j2.c
@@ -1,11 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * SMP support for J2 processor
  *
  * Copyright (C) 2015-2016 Smart Energy Instruments, Inc.
- *
- * 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.
  */
 
 #include 
-- 
2.7.4



[PATCH v2 resend 05/13] sh: sh2a: convert to SPDX identifiers

2018-09-25 Thread Kuninori Morimoto


From: Kuninori Morimoto 

This patch updates license to use SPDX-License-Identifier
instead of verbose license text.

Signed-off-by: Kuninori Morimoto 
Reviewed-by: Simon Horman 
---
 arch/sh/kernel/cpu/sh2a/clock-sh7201.c  | 5 +
 arch/sh/kernel/cpu/sh2a/clock-sh7203.c  | 5 +
 arch/sh/kernel/cpu/sh2a/clock-sh7206.c  | 5 +
 arch/sh/kernel/cpu/sh2a/clock-sh7264.c  | 5 +
 arch/sh/kernel/cpu/sh2a/clock-sh7269.c  | 5 +
 arch/sh/kernel/cpu/sh2a/entry.S | 7 ++-
 arch/sh/kernel/cpu/sh2a/ex.S| 7 ++-
 arch/sh/kernel/cpu/sh2a/fpu.c   | 5 +
 arch/sh/kernel/cpu/sh2a/opcode_helper.c | 5 +
 arch/sh/kernel/cpu/sh2a/pinmux-sh7203.c | 5 +
 arch/sh/kernel/cpu/sh2a/pinmux-sh7264.c | 5 +
 arch/sh/kernel/cpu/sh2a/pinmux-sh7269.c | 5 +
 arch/sh/kernel/cpu/sh2a/probe.c | 5 +
 arch/sh/kernel/cpu/sh2a/setup-mxg.c | 5 +
 arch/sh/kernel/cpu/sh2a/setup-sh7201.c  | 5 +
 arch/sh/kernel/cpu/sh2a/setup-sh7203.c  | 5 +
 arch/sh/kernel/cpu/sh2a/setup-sh7206.c  | 5 +
 arch/sh/kernel/cpu/sh2a/setup-sh7264.c  | 5 +
 arch/sh/kernel/cpu/sh2a/setup-sh7269.c  | 5 +
 19 files changed, 21 insertions(+), 78 deletions(-)

diff --git a/arch/sh/kernel/cpu/sh2a/clock-sh7201.c 
b/arch/sh/kernel/cpu/sh2a/clock-sh7201.c
index 532a36c..5a5daaa 100644
--- a/arch/sh/kernel/cpu/sh2a/clock-sh7201.c
+++ b/arch/sh/kernel/cpu/sh2a/clock-sh7201.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * arch/sh/kernel/cpu/sh2a/clock-sh7201.c
  *
@@ -7,10 +8,6 @@
  *
  * Based on clock-sh4.c
  *  Copyright (C) 2005  Paul Mundt
- *
- * 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.
  */
 #include 
 #include 
diff --git a/arch/sh/kernel/cpu/sh2a/clock-sh7203.c 
b/arch/sh/kernel/cpu/sh2a/clock-sh7203.c
index 529f719..c620539 100644
--- a/arch/sh/kernel/cpu/sh2a/clock-sh7203.c
+++ b/arch/sh/kernel/cpu/sh2a/clock-sh7203.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * arch/sh/kernel/cpu/sh2a/clock-sh7203.c
  *
@@ -10,10 +11,6 @@
  *
  * Based on clock-sh4.c
  *  Copyright (C) 2005  Paul Mundt
- *
- * 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.
  */
 #include 
 #include 
diff --git a/arch/sh/kernel/cpu/sh2a/clock-sh7206.c 
b/arch/sh/kernel/cpu/sh2a/clock-sh7206.c
index 1777898..d286d7b 100644
--- a/arch/sh/kernel/cpu/sh2a/clock-sh7206.c
+++ b/arch/sh/kernel/cpu/sh2a/clock-sh7206.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * arch/sh/kernel/cpu/sh2a/clock-sh7206.c
  *
@@ -7,10 +8,6 @@
  *
  * Based on clock-sh4.c
  *  Copyright (C) 2005  Paul Mundt
- *
- * 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.
  */
 #include 
 #include 
diff --git a/arch/sh/kernel/cpu/sh2a/clock-sh7264.c 
b/arch/sh/kernel/cpu/sh2a/clock-sh7264.c
index 7e06e39..d9acc1e 100644
--- a/arch/sh/kernel/cpu/sh2a/clock-sh7264.c
+++ b/arch/sh/kernel/cpu/sh2a/clock-sh7264.c
@@ -1,13 +1,10 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * arch/sh/kernel/cpu/sh2a/clock-sh7264.c
  *
  * SH7264 clock framework support
  *
  * Copyright (C) 2012  Phil Edworthy
- *
- * 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.
  */
 #include 
 #include 
diff --git a/arch/sh/kernel/cpu/sh2a/clock-sh7269.c 
b/arch/sh/kernel/cpu/sh2a/clock-sh7269.c
index 663a97b..c17ab0d 100644
--- a/arch/sh/kernel/cpu/sh2a/clock-sh7269.c
+++ b/arch/sh/kernel/cpu/sh2a/clock-sh7269.c
@@ -1,13 +1,10 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * arch/sh/kernel/cpu/sh2a/clock-sh7269.c
  *
  * SH7269 clock framework support
  *
  * Copyright (C) 2012  Phil Edworthy
- *
- * 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.
  */
 #include 
 #include 
diff --git a/arch/sh/kernel/cpu/sh2a/entry.S b/arch/sh/kernel/cpu/sh2a/entry.S
index da77a8e..9f11fc8 100644
--- a/arch/sh/kernel/cpu/sh2a/entry.S
+++ b/arch/sh/kernel/cpu/sh2a/entry.S
@@ -1,14 +1,11 @@
-/*
+/* SPDX-License-Identifier: GPL-2.0
+ *
  * arch/sh/kernel/cpu/sh2a/entry.S
  *
  * The SH-2A exception entry
  *
  * Copyright (C) 2008 Yoshinori Sato
  * Based on arch/sh/kernel/cpu/sh2/entry.S
- *
- * 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.
  */
 
 #include 
diff --git a/arch/sh/kernel/cpu/sh2a/ex.S b/arch/sh/kernel/cpu/sh2a/ex.S
index 4568066..ed91996 100644
--- a/arch/sh/kernel/cpu/sh2a/ex.S
+++ 

[PATCH v2 resend 02/13] sh: drivers: convert to SPDX identifiers

2018-09-25 Thread Kuninori Morimoto


From: Kuninori Morimoto 

This patch updates license to use SPDX-License-Identifier
instead of verbose license text.

As original license mentioned, it is GPL-2.0 in SPDX.
Then, MODULE_LICENSE() should be "GPL v2" instead of "GPL".
See ${LINUX}/include/linux/module.h

"GPL"   [GNU Public License v2 or later]
"GPL v2"[GNU Public License v2]

Signed-off-by: Kuninori Morimoto 
Reviewed-by: Simon Horman 
---
 arch/sh/drivers/dma/Makefile | 1 +
 arch/sh/drivers/dma/dma-api.c| 7 ++-
 arch/sh/drivers/dma/dma-g2.c | 7 ++-
 arch/sh/drivers/dma/dma-pvr2.c   | 7 ++-
 arch/sh/drivers/dma/dma-sh.c | 7 ++-
 arch/sh/drivers/dma/dma-sysfs.c  | 5 +
 arch/sh/drivers/dma/dmabrg.c | 3 +--
 arch/sh/drivers/heartbeat.c  | 5 +
 arch/sh/drivers/pci/fixups-dreamcast.c   | 5 +
 arch/sh/drivers/pci/fixups-landisk.c | 4 +---
 arch/sh/drivers/pci/fixups-r7780rp.c | 5 +
 arch/sh/drivers/pci/fixups-rts7751r2d.c  | 5 +
 arch/sh/drivers/pci/fixups-sdk7780.c | 5 +
 arch/sh/drivers/pci/fixups-sdk7786.c | 5 +
 arch/sh/drivers/pci/fixups-snapgear.c| 4 +---
 arch/sh/drivers/pci/fixups-titan.c   | 4 +---
 arch/sh/drivers/pci/ops-dreamcast.c  | 5 +
 arch/sh/drivers/pci/ops-sh4.c| 5 +
 arch/sh/drivers/pci/ops-sh5.c| 4 +---
 arch/sh/drivers/pci/ops-sh7786.c | 5 +
 arch/sh/drivers/pci/pci-dreamcast.c  | 5 +
 arch/sh/drivers/pci/pci-sh5.c| 4 +---
 arch/sh/drivers/pci/pci-sh5.h| 6 ++
 arch/sh/drivers/pci/pci-sh7751.c | 5 +
 arch/sh/drivers/pci/pci-sh7751.h | 7 ++-
 arch/sh/drivers/pci/pci-sh7780.c | 5 +
 arch/sh/drivers/pci/pci-sh7780.h | 7 ++-
 arch/sh/drivers/pci/pci.c| 5 +
 arch/sh/drivers/pci/pcie-sh7786.c| 5 +
 arch/sh/drivers/pci/pcie-sh7786.h| 7 ++-
 arch/sh/drivers/push-switch.c| 5 +
 arch/sh/drivers/superhyway/Makefile  | 1 +
 arch/sh/drivers/superhyway/ops-sh4-202.c | 5 +
 33 files changed, 41 insertions(+), 124 deletions(-)

diff --git a/arch/sh/drivers/dma/Makefile b/arch/sh/drivers/dma/Makefile
index d88c948..d2fdd56 100644
--- a/arch/sh/drivers/dma/Makefile
+++ b/arch/sh/drivers/dma/Makefile
@@ -1,3 +1,4 @@
+# SPDX-License-Identifier: GPL-2.0
 #
 # Makefile for the SuperH DMA specific kernel interface routines under Linux.
 #
diff --git a/arch/sh/drivers/dma/dma-api.c b/arch/sh/drivers/dma/dma-api.c
index b05be59..ab91704 100644
--- a/arch/sh/drivers/dma/dma-api.c
+++ b/arch/sh/drivers/dma/dma-api.c
@@ -1,13 +1,10 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * arch/sh/drivers/dma/dma-api.c
  *
  * SuperH-specific DMA management API
  *
  * Copyright (C) 2003, 2004, 2005  Paul Mundt
- *
- * 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.
  */
 #include 
 #include 
@@ -417,4 +414,4 @@ subsys_initcall(dma_api_init);
 
 MODULE_AUTHOR("Paul Mundt ");
 MODULE_DESCRIPTION("DMA API for SuperH");
-MODULE_LICENSE("GPL");
+MODULE_LICENSE("GPL v2");
diff --git a/arch/sh/drivers/dma/dma-g2.c b/arch/sh/drivers/dma/dma-g2.c
index e1ab6eb..52a8ae5 100644
--- a/arch/sh/drivers/dma/dma-g2.c
+++ b/arch/sh/drivers/dma/dma-g2.c
@@ -1,13 +1,10 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * arch/sh/drivers/dma/dma-g2.c
  *
  * G2 bus DMA support
  *
  * Copyright (C) 2003 - 2006  Paul Mundt
- *
- * 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.
  */
 #include 
 #include 
@@ -197,4 +194,4 @@ module_exit(g2_dma_exit);
 
 MODULE_AUTHOR("Paul Mundt ");
 MODULE_DESCRIPTION("G2 bus DMA driver");
-MODULE_LICENSE("GPL");
+MODULE_LICENSE("GPL v2");
diff --git a/arch/sh/drivers/dma/dma-pvr2.c b/arch/sh/drivers/dma/dma-pvr2.c
index 706a343..b5dbd1f 100644
--- a/arch/sh/drivers/dma/dma-pvr2.c
+++ b/arch/sh/drivers/dma/dma-pvr2.c
@@ -1,13 +1,10 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * arch/sh/drivers/dma/dma-pvr2.c
  *
  * NEC PowerVR 2 (Dreamcast) DMA support
  *
  * Copyright (C) 2003, 2004  Paul Mundt
- *
- * 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.
  */
 #include 
 #include 
@@ -105,4 +102,4 @@ module_exit(pvr2_dma_exit);
 
 MODULE_AUTHOR("Paul Mundt ");
 MODULE_DESCRIPTION("NEC PowerVR 2 DMA driver");
-MODULE_LICENSE("GPL");
+MODULE_LICENSE("GPL v2");
diff --git a/arch/sh/drivers/dma/dma-sh.c b/arch/sh/drivers/dma/dma-sh.c
index afde2a7..96c626c 100644
--- a/arch/sh/drivers/dma/dma-sh.c
+++ b/arch/sh/drivers/dma/dma-sh.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * 

[PATCH v2 resend 01/13] sh: boards: convert to SPDX identifiers

2018-09-25 Thread Kuninori Morimoto


From: Kuninori Morimoto 

This patch updates license to use SPDX-License-Identifier
instead of verbose license text.

Signed-off-by: Kuninori Morimoto 
Reviewed-by: Simon Horman 
---
 arch/sh/boards/board-apsh4a3a.c |  5 +
 arch/sh/boards/board-apsh4ad0a.c|  5 +
 arch/sh/boards/board-edosk7760.c| 15 +--
 arch/sh/boards/board-espt.c |  5 +
 arch/sh/boards/board-magicpanelr2.c |  5 +
 arch/sh/boards/board-sh7757lcr.c|  5 +
 arch/sh/boards/board-sh7785lcr.c|  5 +
 arch/sh/boards/board-titan.c|  5 +
 arch/sh/boards/board-urquell.c  |  5 +
 arch/sh/boards/mach-ap325rxa/Makefile   |  1 +
 arch/sh/boards/mach-ap325rxa/sdram.S|  7 ++-
 arch/sh/boards/mach-cayman/Makefile |  1 +
 arch/sh/boards/mach-cayman/irq.c|  5 +
 arch/sh/boards/mach-cayman/panic.c  |  5 +
 arch/sh/boards/mach-cayman/setup.c  |  5 +
 arch/sh/boards/mach-dreamcast/Makefile  |  1 +
 arch/sh/boards/mach-dreamcast/irq.c |  2 +-
 arch/sh/boards/mach-dreamcast/rtc.c |  4 +---
 arch/sh/boards/mach-dreamcast/setup.c   |  3 +--
 arch/sh/boards/mach-ecovec24/Makefile   |  3 ++-
 arch/sh/boards/mach-ecovec24/sdram.S|  7 ++-
 arch/sh/boards/mach-ecovec24/setup.c|  5 +
 arch/sh/boards/mach-highlander/irq-r7780mp.c|  5 +
 arch/sh/boards/mach-highlander/irq-r7780rp.c|  5 +
 arch/sh/boards/mach-highlander/irq-r7785rp.c|  5 +
 arch/sh/boards/mach-highlander/pinmux-r7785rp.c |  5 +
 arch/sh/boards/mach-highlander/psw.c|  5 +
 arch/sh/boards/mach-highlander/setup.c  |  5 +
 arch/sh/boards/mach-hp6xx/Makefile  |  1 +
 arch/sh/boards/mach-hp6xx/hp6xx_apm.c   |  4 +---
 arch/sh/boards/mach-hp6xx/pm.c  |  4 +---
 arch/sh/boards/mach-hp6xx/pm_wakeup.S   |  8 ++--
 arch/sh/boards/mach-hp6xx/setup.c   |  4 +---
 arch/sh/boards/mach-kfr2r09/Makefile|  1 +
 arch/sh/boards/mach-kfr2r09/lcd_wqvga.c |  5 +
 arch/sh/boards/mach-kfr2r09/sdram.S |  7 ++-
 arch/sh/boards/mach-landisk/Makefile|  1 +
 arch/sh/boards/mach-landisk/gio.c   |  6 +-
 arch/sh/boards/mach-landisk/irq.c   |  5 +
 arch/sh/boards/mach-landisk/psw.c   |  5 +
 arch/sh/boards/mach-landisk/setup.c |  5 +
 arch/sh/boards/mach-lboxre2/Makefile|  1 +
 arch/sh/boards/mach-lboxre2/irq.c   |  6 +-
 arch/sh/boards/mach-lboxre2/setup.c |  6 +-
 arch/sh/boards/mach-microdev/Makefile   |  1 +
 arch/sh/boards/mach-microdev/fdc37c93xapm.c |  5 +
 arch/sh/boards/mach-microdev/io.c   |  4 +---
 arch/sh/boards/mach-microdev/irq.c  |  4 +---
 arch/sh/boards/mach-microdev/setup.c|  4 +---
 arch/sh/boards/mach-migor/Makefile  |  1 +
 arch/sh/boards/mach-migor/lcd_qvga.c|  5 +
 arch/sh/boards/mach-migor/sdram.S   |  7 ++-
 arch/sh/boards/mach-r2d/Makefile|  1 +
 arch/sh/boards/mach-r2d/setup.c |  5 +
 arch/sh/boards/mach-rsk/Makefile|  1 +
 arch/sh/boards/mach-rsk/devices-rsk7203.c   |  5 +
 arch/sh/boards/mach-rsk/devices-rsk7264.c   |  5 +
 arch/sh/boards/mach-rsk/devices-rsk7269.c   |  5 +
 arch/sh/boards/mach-rsk/setup.c |  5 +
 arch/sh/boards/mach-sdk7780/Makefile|  1 +
 arch/sh/boards/mach-sdk7780/irq.c   |  5 +
 arch/sh/boards/mach-sdk7780/setup.c |  5 +
 arch/sh/boards/mach-sdk7786/Makefile|  1 +
 arch/sh/boards/mach-sdk7786/fpga.c  |  5 +
 arch/sh/boards/mach-sdk7786/gpio.c  |  5 +
 arch/sh/boards/mach-sdk7786/irq.c   |  5 +
 arch/sh/boards/mach-sdk7786/nmi.c   |  5 +
 arch/sh/boards/mach-sdk7786/setup.c |  5 +
 arch/sh/boards/mach-sdk7786/sram.c  |  5 +
 arch/sh/boards/mach-se/7206/Makefile|  1 +
 arch/sh/boards/mach-se/7343/Makefile|  1 +
 arch/sh/boards/mach-se/7343/irq.c   |  5 +
 arch/sh/boards/mach-se/770x/Makefile|  1 +
 arch/sh/boards/mach-se/7721/Makefile|  1 +
 arch/sh/boards/mach-se/7721/irq.c   |  5 +
 arch/sh/boards/mach-se/7721/setup.c |  6 +-
 arch/sh/boards/mach-se/7722/Makefile|  1 +
 arch/sh/boards/mach-se/7722/irq.c   |  5 +
 arch/sh/boards/mach-se/7722/setup.c |  6 +-
 arch/sh/boards/mach-se/7724/Makefile|  1 +
 arch/sh/boards/mach-se/7724/irq.c   |  5 +
 

[PATCH v2 resend 00/13] sh: convert to SPDX identifiers

2018-09-25 Thread Kuninori Morimoto


Hi Sato-san

2weeks past.
I resend SPDX conversion patch for SH

Kuninori Morimoto (13):
  sh: boards: convert to SPDX identifiers
  sh: drivers: convert to SPDX identifiers
  sh: include: convert to SPDX identifiers
  sh: sh2: convert to SPDX identifiers
  sh: sh2a: convert to SPDX identifiers
  sh: sh3: convert to SPDX identifiers
  sh: sh4: convert to SPDX identifiers
  sh: sh4a: convert to SPDX identifiers
  sh: sh5: convert to SPDX identifiers
  sh: shmobile: convert to SPDX identifiers
  sh: cpu: convert to SPDX identifiers
  sh: kernel: convert to SPDX identifiers
  sh: lib: convert to SPDX identifiers

 arch/sh/boards/board-apsh4a3a.c|  5 +---
 arch/sh/boards/board-apsh4ad0a.c   |  5 +---
 arch/sh/boards/board-edosk7760.c   | 15 +--
 arch/sh/boards/board-espt.c|  5 +---
 arch/sh/boards/board-magicpanelr2.c|  5 +---
 arch/sh/boards/board-sh7757lcr.c   |  5 +---
 arch/sh/boards/board-sh7785lcr.c   |  5 +---
 arch/sh/boards/board-titan.c   |  5 +---
 arch/sh/boards/board-urquell.c |  5 +---
 arch/sh/boards/mach-ap325rxa/Makefile  |  1 +
 arch/sh/boards/mach-ap325rxa/sdram.S   |  7 ++
 arch/sh/boards/mach-cayman/Makefile|  1 +
 arch/sh/boards/mach-cayman/irq.c   |  5 +---
 arch/sh/boards/mach-cayman/panic.c |  5 +---
 arch/sh/boards/mach-cayman/setup.c |  5 +---
 arch/sh/boards/mach-dreamcast/Makefile |  1 +
 arch/sh/boards/mach-dreamcast/irq.c|  2 +-
 arch/sh/boards/mach-dreamcast/rtc.c|  4 +--
 arch/sh/boards/mach-dreamcast/setup.c  |  3 +--
 arch/sh/boards/mach-ecovec24/Makefile  |  3 ++-
 arch/sh/boards/mach-ecovec24/sdram.S   |  7 ++
 arch/sh/boards/mach-ecovec24/setup.c   |  5 +---
 arch/sh/boards/mach-highlander/irq-r7780mp.c   |  5 +---
 arch/sh/boards/mach-highlander/irq-r7780rp.c   |  5 +---
 arch/sh/boards/mach-highlander/irq-r7785rp.c   |  5 +---
 arch/sh/boards/mach-highlander/pinmux-r7785rp.c|  5 +---
 arch/sh/boards/mach-highlander/psw.c   |  5 +---
 arch/sh/boards/mach-highlander/setup.c |  5 +---
 arch/sh/boards/mach-hp6xx/Makefile |  1 +
 arch/sh/boards/mach-hp6xx/hp6xx_apm.c  |  4 +--
 arch/sh/boards/mach-hp6xx/pm.c |  4 +--
 arch/sh/boards/mach-hp6xx/pm_wakeup.S  |  8 ++
 arch/sh/boards/mach-hp6xx/setup.c  |  4 +--
 arch/sh/boards/mach-kfr2r09/Makefile   |  1 +
 arch/sh/boards/mach-kfr2r09/lcd_wqvga.c|  5 +---
 arch/sh/boards/mach-kfr2r09/sdram.S|  7 ++
 arch/sh/boards/mach-landisk/Makefile   |  1 +
 arch/sh/boards/mach-landisk/gio.c  |  6 +
 arch/sh/boards/mach-landisk/irq.c  |  5 +---
 arch/sh/boards/mach-landisk/psw.c  |  5 +---
 arch/sh/boards/mach-landisk/setup.c|  5 +---
 arch/sh/boards/mach-lboxre2/Makefile   |  1 +
 arch/sh/boards/mach-lboxre2/irq.c  |  6 +
 arch/sh/boards/mach-lboxre2/setup.c|  6 +
 arch/sh/boards/mach-microdev/Makefile  |  1 +
 arch/sh/boards/mach-microdev/fdc37c93xapm.c|  5 +---
 arch/sh/boards/mach-microdev/io.c  |  4 +--
 arch/sh/boards/mach-microdev/irq.c |  4 +--
 arch/sh/boards/mach-microdev/setup.c   |  4 +--
 arch/sh/boards/mach-migor/Makefile |  1 +
 arch/sh/boards/mach-migor/lcd_qvga.c   |  5 +---
 arch/sh/boards/mach-migor/sdram.S  |  7 ++
 arch/sh/boards/mach-r2d/Makefile   |  1 +
 arch/sh/boards/mach-r2d/setup.c|  5 +---
 arch/sh/boards/mach-rsk/Makefile   |  1 +
 arch/sh/boards/mach-rsk/devices-rsk7203.c  |  5 +---
 arch/sh/boards/mach-rsk/devices-rsk7264.c  |  5 +---
 arch/sh/boards/mach-rsk/devices-rsk7269.c  |  5 +---
 arch/sh/boards/mach-rsk/setup.c|  5 +---
 arch/sh/boards/mach-sdk7780/Makefile   |  1 +
 arch/sh/boards/mach-sdk7780/irq.c  |  5 +---
 arch/sh/boards/mach-sdk7780/setup.c|  5 +---
 arch/sh/boards/mach-sdk7786/Makefile   |  1 +
 arch/sh/boards/mach-sdk7786/fpga.c |  5 +---
 arch/sh/boards/mach-sdk7786/gpio.c |  5 +---
 arch/sh/boards/mach-sdk7786/irq.c  |  5 +---
 arch/sh/boards/mach-sdk7786/nmi.c  |  5 +---
 arch/sh/boards/mach-sdk7786/setup.c|  5 +---
 arch/sh/boards/mach-sdk7786/sram.c |  5 +---
 arch/sh/boards/mach-se/7206/Makefile   |  1 +
 arch/sh/boards/mach-se/7343/Makefile   |  1 +
 

Re: [PATCH 10/10] cpufreq: dt: Add support for r8a7744

2018-09-25 Thread Rafael J. Wysocki
On Tuesday, September 25, 2018 10:16:12 AM CEST Biju Das wrote:
> Hi Rafeal,
> 
> Sorry to bother you.  Are you happy to merge the below patch with 4.20
> 
> https://patchwork.kernel.org/patch/10595451/

Yes.

You had told me that you wanted me to apply it, so I queued it up.

Thanks,
Rafael



[PATCH] dt-bindings: mmc: sh_mmcif: Document r8a7744 DT bindings

2018-09-25 Thread Biju Das
Add support for r8a7744 SoC. Renesas RZ/G1N (R8A7744) MMCIF is identical
to the R-Car Gen2 family.

Signed-off-by: Biju Das 
Reviewed-by: Chris Paterson 
---
 Documentation/devicetree/bindings/mmc/renesas,mmcif.txt | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/mmc/renesas,mmcif.txt 
b/Documentation/devicetree/bindings/mmc/renesas,mmcif.txt
index 5ff1e12..c064af5 100644
--- a/Documentation/devicetree/bindings/mmc/renesas,mmcif.txt
+++ b/Documentation/devicetree/bindings/mmc/renesas,mmcif.txt
@@ -12,6 +12,7 @@ Required properties:
- "renesas,mmcif-r8a73a4" for the MMCIF found in r8a73a4 SoCs
- "renesas,mmcif-r8a7740" for the MMCIF found in r8a7740 SoCs
- "renesas,mmcif-r8a7743" for the MMCIF found in r8a7743 SoCs
+   - "renesas,mmcif-r8a7744" for the MMCIF found in r8a7744 SoCs
- "renesas,mmcif-r8a7745" for the MMCIF found in r8a7745 SoCs
- "renesas,mmcif-r8a7778" for the MMCIF found in r8a7778 SoCs
- "renesas,mmcif-r8a7790" for the MMCIF found in r8a7790 SoCs
@@ -23,7 +24,8 @@ Required properties:
 - interrupts: Some SoCs have only 1 shared interrupt, while others have either
   2 or 3 individual interrupts (error, int, card detect). Below is the number
   of interrupts for each SoC:
-1: r8a73a4, r8a7743, r8a7745, r8a7778, r8a7790, r8a7791, r8a7793, r8a7794
+1: r8a73a4, r8a7743, r8a7744, r8a7745, r8a7778, r8a7790, r8a7791, r8a7793,
+   r8a7794
 2: r8a7740, sh73a0
 3: r7s72100
 
-- 
2.7.4



[PATCH] dt-bindings: mmc: renesas_sdhi: Add r8a7744 support

2018-09-25 Thread Biju Das
Add support for r8a7744 SoC. Renesas RZ/G1N (R8A7744) SDHI is identical
to the R-Car Gen2 family.

Signed-off-by: Biju Das 
Reviewed-by: Chris Paterson 
---
 Documentation/devicetree/bindings/mmc/tmio_mmc.txt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/mmc/tmio_mmc.txt 
b/Documentation/devicetree/bindings/mmc/tmio_mmc.txt
index 8f3a113..21d671a 100644
--- a/Documentation/devicetree/bindings/mmc/tmio_mmc.txt
+++ b/Documentation/devicetree/bindings/mmc/tmio_mmc.txt
@@ -16,6 +16,7 @@ Required properties:
"renesas,sdhi-r8a73a4" - SDHI IP on R8A73A4 SoC
"renesas,sdhi-r8a7740" - SDHI IP on R8A7740 SoC
"renesas,sdhi-r8a7743" - SDHI IP on R8A7743 SoC
+   "renesas,sdhi-r8a7744" - SDHI IP on R8A7744 SoC
"renesas,sdhi-r8a7745" - SDHI IP on R8A7745 SoC
"renesas,sdhi-r8a77470" - SDHI IP on R8A77470 SoC
"renesas,sdhi-r8a7778" - SDHI IP on R8A7778 SoC
-- 
2.7.4



[PATCH] dt-bindings: timer: renesas, cmt: Document r8a7744 CMT support

2018-09-25 Thread Biju Das
Document SoC specific compatible strings for r8a7744. No driver change
is needed as the fallback strings will activate the right code.

Signed-off-by: Biju Das 
Reviewed-by: Chris Paterson 
---
 Documentation/devicetree/bindings/timer/renesas,cmt.txt | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Documentation/devicetree/bindings/timer/renesas,cmt.txt 
b/Documentation/devicetree/bindings/timer/renesas,cmt.txt
index b40add2..0a89586 100644
--- a/Documentation/devicetree/bindings/timer/renesas,cmt.txt
+++ b/Documentation/devicetree/bindings/timer/renesas,cmt.txt
@@ -24,6 +24,8 @@ Required Properties:
 - "renesas,r8a73a4-cmt1" for the 48-bit CMT1 device included in r8a73a4.
 - "renesas,r8a7743-cmt0" for the 32-bit CMT0 device included in r8a7743.
 - "renesas,r8a7743-cmt1" for the 48-bit CMT1 device included in r8a7743.
+- "renesas,r8a7744-cmt0" for the 32-bit CMT0 device included in r8a7744.
+- "renesas,r8a7744-cmt1" for the 48-bit CMT1 device included in r8a7744.
 - "renesas,r8a7745-cmt0" for the 32-bit CMT0 device included in r8a7745.
 - "renesas,r8a7745-cmt1" for the 48-bit CMT1 device included in r8a7745.
 - "renesas,r8a7790-cmt0" for the 32-bit CMT0 device included in r8a7790.
-- 
2.7.4



[PATCH] dt-bindings: watchdog: renesas-wdt: Document r8a7744 support

2018-09-25 Thread Biju Das
RZ/G1N (R8A7744) watchdog implementation is compatible with R-Car
Gen2, therefore add relevant documentation.

Signed-off-by: Biju Das 
Reviewed-by: Chris Paterson 
---
 Documentation/devicetree/bindings/watchdog/renesas-wdt.txt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/watchdog/renesas-wdt.txt 
b/Documentation/devicetree/bindings/watchdog/renesas-wdt.txt
index 9407212..d72d118 100644
--- a/Documentation/devicetree/bindings/watchdog/renesas-wdt.txt
+++ b/Documentation/devicetree/bindings/watchdog/renesas-wdt.txt
@@ -6,6 +6,7 @@ Required properties:
version.
   Examples with soctypes are:
 - "renesas,r8a7743-wdt" (RZ/G1M)
+- "renesas,r8a7744-wdt" (RZ/G1N)
 - "renesas,r8a7745-wdt" (RZ/G1E)
 - "renesas,r8a774a1-wdt" (RZ/G2M)
 - "renesas,r8a7790-wdt" (R-Car H2)
-- 
2.7.4



[PATCH] dt-bindings: irqchip: renesas-irqc: Document r8a7744 support

2018-09-25 Thread Biju Das
Document RZ/G1N (R8A7744) SoC bindings.

Signed-off-by: Biju Das 
Reviewed-by: Chris Paterson 
---
 Documentation/devicetree/bindings/interrupt-controller/renesas,irqc.txt | 1 +
 1 file changed, 1 insertion(+)

diff --git 
a/Documentation/devicetree/bindings/interrupt-controller/renesas,irqc.txt 
b/Documentation/devicetree/bindings/interrupt-controller/renesas,irqc.txt
index a046ed3..97a8c83 100644
--- a/Documentation/devicetree/bindings/interrupt-controller/renesas,irqc.txt
+++ b/Documentation/devicetree/bindings/interrupt-controller/renesas,irqc.txt
@@ -6,6 +6,7 @@ Required properties:
   Examples with soctypes are:
 - "renesas,irqc-r8a73a4" (R-Mobile APE6)
 - "renesas,irqc-r8a7743" (RZ/G1M)
+- "renesas,irqc-r8a7744" (RZ/G1N)
 - "renesas,irqc-r8a7745" (RZ/G1E)
 - "renesas,irqc-r8a77470" (RZ/G1C)
 - "renesas,irqc-r8a7790" (R-Car H2)
-- 
2.7.4



[PATCH v3 1/4] arm64: dts: renesas: r8a77990: Add display output support

2018-09-25 Thread Laurent Pinchart
The R8A77990 (E3) platform has one RGB output and two LVDS outputs
connected to the DU. Add the DT nodes for the DU, LVDS encoders and
supporting VSP and FCP.

Signed-off-by: Laurent Pinchart 
Tested-by: Jacopo Mondi 
---
Changes since v2:

- Fixed VSPI clock index
---
 arch/arm64/boot/dts/renesas/r8a77990.dtsi | 167 ++
 1 file changed, 167 insertions(+)

diff --git a/arch/arm64/boot/dts/renesas/r8a77990.dtsi 
b/arch/arm64/boot/dts/renesas/r8a77990.dtsi
index 0c726ea5d315..9509dc05665f 100644
--- a/arch/arm64/boot/dts/renesas/r8a77990.dtsi
+++ b/arch/arm64/boot/dts/renesas/r8a77990.dtsi
@@ -843,6 +843,82 @@
resets = < 408>;
};
 
+   vspb0: vsp@fe96 {
+   compatible = "renesas,vsp2";
+   reg = <0 0xfe96 0 0x8000>;
+   interrupts = ;
+   clocks = < CPG_MOD 626>;
+   power-domains = < R8A77990_PD_ALWAYS_ON>;
+   resets = < 626>;
+   renesas,fcp = <>;
+   };
+
+   fcpvb0: fcp@fe96f000 {
+   compatible = "renesas,fcpv";
+   reg = <0 0xfe96f000 0 0x200>;
+   clocks = < CPG_MOD 607>;
+   power-domains = < R8A77990_PD_ALWAYS_ON>;
+   resets = < 607>;
+   iommus = <_vp0 5>;
+   };
+
+   vspi0: vsp@fe9a {
+   compatible = "renesas,vsp2";
+   reg = <0 0xfe9a 0 0x8000>;
+   interrupts = ;
+   clocks = < CPG_MOD 631>;
+   power-domains = < R8A77990_PD_ALWAYS_ON>;
+   resets = < 631>;
+   renesas,fcp = <>;
+   };
+
+   fcpvi0: fcp@fe9af000 {
+   compatible = "renesas,fcpv";
+   reg = <0 0xfe9af000 0 0x200>;
+   clocks = < CPG_MOD 611>;
+   power-domains = < R8A77990_PD_ALWAYS_ON>;
+   resets = < 611>;
+   iommus = <_vp0 8>;
+   };
+
+   vspd0: vsp@fea2 {
+   compatible = "renesas,vsp2";
+   reg = <0 0xfea2 0 0x7000>;
+   interrupts = ;
+   clocks = < CPG_MOD 623>;
+   power-domains = < R8A77990_PD_ALWAYS_ON>;
+   resets = < 623>;
+   renesas,fcp = <>;
+   };
+
+   fcpvd0: fcp@fea27000 {
+   compatible = "renesas,fcpv";
+   reg = <0 0xfea27000 0 0x200>;
+   clocks = < CPG_MOD 603>;
+   power-domains = < R8A77990_PD_ALWAYS_ON>;
+   resets = < 603>;
+   iommus = <_vi0 8>;
+   };
+
+   vspd1: vsp@fea28000 {
+   compatible = "renesas,vsp2";
+   reg = <0 0xfea28000 0 0x7000>;
+   interrupts = ;
+   clocks = < CPG_MOD 622>;
+   power-domains = < R8A77990_PD_ALWAYS_ON>;
+   resets = < 622>;
+   renesas,fcp = <>;
+   };
+
+   fcpvd1: fcp@fea2f000 {
+   compatible = "renesas,fcpv";
+   reg = <0 0xfea2f000 0 0x200>;
+   clocks = < CPG_MOD 602>;
+   power-domains = < R8A77990_PD_ALWAYS_ON>;
+   resets = < 602>;
+   iommus = <_vi0 9>;
+   };
+
csi40: csi2@feaa {
compatible = "renesas,r8a77990-csi2", 
"renesas,rcar-gen3-csi2";
reg = <0 0xfeaa 0 0x1>;
@@ -874,6 +950,97 @@
};
};
 
+   du: display@feb0 {
+   compatible = "renesas,du-r8a77990";
+   reg = <0 0xfeb0 0 0x8>;
+   interrupts = ,
+;
+   clocks = < CPG_MOD 724>,
+< CPG_MOD 723>;
+   clock-names = "du.0", "du.1";
+   vsps = < 0  0>;
+   status = "disabled";
+
+   ports {
+   #address-cells = <1>;
+   #size-cells = <0>;
+
+   port@0 {
+   reg = <0>;
+   du_out_rgb: endpoint {
+   };
+   };
+
+   port@1 {
+   reg = <1>;
+  

[PATCH v3 4/4] arm64: dts: renesas: r8a77995: draak: Enable HDMI display output

2018-09-25 Thread Laurent Pinchart
From: Ulrich Hecht 

Adds LVDS decoder, HDMI encoder and connector for the Draak board.

The LVDS0 and LVDS1 encoders can use the DU_DOTCLKIN0, DU_DOTCLKIN1 and
EXTAL externals clocks. Two of them are provided to the SoC on the Draak
board, hook them up in DT.

Signed-off-by: Ulrich Hecht 
Signed-off-by: Laurent Pinchart 
Tested-by: Jacopo Mondi 
---
 arch/arm64/boot/dts/renesas/r8a77995-draak.dts | 98 +-
 1 file changed, 97 insertions(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/renesas/r8a77995-draak.dts 
b/arch/arm64/boot/dts/renesas/r8a77995-draak.dts
index e39b73005381..2405eaad0296 100644
--- a/arch/arm64/boot/dts/renesas/r8a77995-draak.dts
+++ b/arch/arm64/boot/dts/renesas/r8a77995-draak.dts
@@ -2,7 +2,7 @@
 /*
  * Device Tree Source for the Draak board
  *
- * Copyright (C) 2016 Renesas Electronics Corp.
+ * Copyright (C) 2016-2018 Renesas Electronics Corp.
  * Copyright (C) 2017 Glider bvba
  */
 
@@ -45,6 +45,41 @@
};
};
 
+   hdmi-out {
+   compatible = "hdmi-connector";
+   type = "a";
+
+   port {
+   hdmi_con_out: endpoint {
+   remote-endpoint = <_out>;
+   };
+   };
+   };
+
+   lvds-decoder {
+   compatible = "thine,thc63lvd1024";
+   vcc-supply = <_3p3v>;
+
+   ports {
+   #address-cells = <1>;
+   #size-cells = <0>;
+
+   port@0 {
+   reg = <0>;
+   thc63lvd1024_in: endpoint {
+   remote-endpoint = <_out>;
+   };
+   };
+
+   port@2 {
+   reg = <2>;
+   thc63lvd1024_out: endpoint {
+   remote-endpoint = <_in>;
+   };
+   };
+   };
+   };
+
memory@4800 {
device_type = "memory";
/* first 128MB is reserved for secure area. */
@@ -190,6 +225,43 @@
 
};
 
+   hdmi-encoder@39 {
+   compatible = "adi,adv7511w";
+   reg = <0x39>, <0x3f>, <0x38>, <0x3c>;
+   reg-names = "main", "edid", "packet", "cec";
+   interrupt-parent = <>;
+   interrupts = <28 IRQ_TYPE_LEVEL_LOW>;
+
+   /* Depends on LVDS */
+   max-clock = <13500>;
+   min-vrefresh = <50>;
+
+   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 = <_out>;
+   };
+   };
+
+   port@1 {
+   reg = <1>;
+   adv7511_out: endpoint {
+   remote-endpoint = <_con_out>;
+   };
+   };
+   };
+   };
+
hdmi-decoder@4c {
compatible = "adi,adv7612";
reg = <0x4c>;
@@ -240,6 +312,30 @@
status = "okay";
 };
 
+ {
+   status = "okay";
+
+   clocks = < CPG_MOD 727>,
+<_clk>,
+<_clk>;
+   clock-names = "fck", "dclkin.0", "extal";
+
+   ports {
+   port@1 {
+   lvds0_out: endpoint {
+   remote-endpoint = <_in>;
+   };
+   };
+   };
+};
+
+ {
+   clocks = < CPG_MOD 727>,
+<_clk>,
+<_clk>;
+   clock-names = "fck", "dclkin.0", "extal";
+};
+
  {
status = "okay";
 };
-- 
Regards,

Laurent Pinchart



[PATCH v3 2/4] arm64: dts: renesas: r8a77995: Add LVDS support

2018-09-25 Thread Laurent Pinchart
From: Kieran Bingham 

The r8a77995 D3 platform has 2 LVDS channels connected to the DU.

Signed-off-by: Kieran Bingham 
[uli: moved lvds* into the soc node, added PM domains, resets]
Signed-off-by: Ulrich Hecht 
Reviewed-by: Laurent Pinchart 
Tested-by: Jacopo Mondi 
---
 arch/arm64/boot/dts/renesas/r8a77995.dtsi | 56 +++
 1 file changed, 56 insertions(+)

diff --git a/arch/arm64/boot/dts/renesas/r8a77995.dtsi 
b/arch/arm64/boot/dts/renesas/r8a77995.dtsi
index 89a04a4496fd..214f4954b321 100644
--- a/arch/arm64/boot/dts/renesas/r8a77995.dtsi
+++ b/arch/arm64/boot/dts/renesas/r8a77995.dtsi
@@ -972,12 +972,68 @@
port@1 {
reg = <1>;
du_out_lvds0: endpoint {
+   remote-endpoint = <_in>;
};
};
 
port@2 {
reg = <2>;
du_out_lvds1: endpoint {
+   remote-endpoint = <_in>;
+   };
+   };
+   };
+   };
+
+   lvds0: lvds-encoder@feb9 {
+   compatible = "renesas,r8a77995-lvds";
+   reg = <0 0xfeb9 0 0x20>;
+   clocks = < CPG_MOD 727>;
+   power-domains = < R8A77995_PD_ALWAYS_ON>;
+   resets = < 727>;
+   status = "disabled";
+
+   ports {
+   #address-cells = <1>;
+   #size-cells = <0>;
+
+   port@0 {
+   reg = <0>;
+   lvds0_in: endpoint {
+   remote-endpoint = 
<_out_lvds0>;
+   };
+   };
+
+   port@1 {
+   reg = <1>;
+   lvds0_out: endpoint {
+   };
+   };
+   };
+   };
+
+   lvds1: lvds-encoder@feb90100 {
+   compatible = "renesas,r8a77995-lvds";
+   reg = <0 0xfeb90100 0 0x20>;
+   clocks = < CPG_MOD 727>;
+   power-domains = < R8A77995_PD_ALWAYS_ON>;
+   resets = < 726>;
+   status = "disabled";
+
+   ports {
+   #address-cells = <1>;
+   #size-cells = <0>;
+
+   port@0 {
+   reg = <0>;
+   lvds1_in: endpoint {
+   remote-endpoint = 
<_out_lvds1>;
+   };
+   };
+
+   port@1 {
+   reg = <1>;
+   lvds1_out: endpoint {
};
};
};
-- 
Regards,

Laurent Pinchart



[PATCH v3 0/4] R-Car D3/E3 display DT enablement

2018-09-25 Thread Laurent Pinchart
Hello,

The patches in this series enable display support for the D3 and E3 SoCs, on
the Draak and Ebisu boards respectively. They were previously part of the
"[PATCH v2 00/16] R-Car D3/E3 display support (with LVDS PLL)" series, and
have been split out now that the DT bindings have been accepted andon their
way to v4.20 through the DRM tree, along with the code changes.

Compared to v2, the VSPI MSTP clock index has been fixed, and the
patches rebased on top of Simon's latest devel branch.

Simon, could you please consider this as an update for v4.20 ?

Kieran Bingham (1):
  arm64: dts: renesas: r8a77995: Add LVDS support

Laurent Pinchart (2):
  arm64: dts: renesas: r8a77990: Add display output support
  arm64: dts: renesas: r8a77990: ebisu: Enable VGA and HDMI outputs

Ulrich Hecht (1):
  arm64: dts: renesas: r8a77995: draak: Enable HDMI display output

 arch/arm64/boot/dts/renesas/r8a77990-ebisu.dts | 162 
 arch/arm64/boot/dts/renesas/r8a77990.dtsi  | 167 +
 arch/arm64/boot/dts/renesas/r8a77995-draak.dts |  98 ++-
 arch/arm64/boot/dts/renesas/r8a77995.dtsi  |  56 +
 4 files changed, 482 insertions(+), 1 deletion(-)

-- 
Regards,

Laurent Pinchart



[PATCH v3 3/4] arm64: dts: renesas: r8a77990: ebisu: Enable VGA and HDMI outputs

2018-09-25 Thread Laurent Pinchart
Add the LVDS decoder, HDMI encoder, VGA encoder and HDMI and VGA
connectors, and wire up the display-related nodes with clocks, pinmux
and regulators.

The LVDS0 and LVDS1 encoders can use the DU_DOTCLKIN0, DU_DOTCLKIN1 and
EXTAL externals clocks. Two of them are provided to the SoC on the Ebisu
board, hook them up in DT.

Signed-off-by: Laurent Pinchart 
Tested-by: Jacopo Mondi 
---
 arch/arm64/boot/dts/renesas/r8a77990-ebisu.dts | 162 +
 1 file changed, 162 insertions(+)

diff --git a/arch/arm64/boot/dts/renesas/r8a77990-ebisu.dts 
b/arch/arm64/boot/dts/renesas/r8a77990-ebisu.dts
index fd60079169f6..f342dd85b152 100644
--- a/arch/arm64/boot/dts/renesas/r8a77990-ebisu.dts
+++ b/arch/arm64/boot/dts/renesas/r8a77990-ebisu.dts
@@ -51,6 +51,88 @@
};
};
};
+
+   hdmi-out {
+   compatible = "hdmi-connector";
+   type = "a";
+
+   port {
+   hdmi_con_out: endpoint {
+   remote-endpoint = <_out>;
+   };
+   };
+   };
+
+   lvds-decoder {
+   compatible = "thine,thc63lvd1024";
+   vcc-supply = <_3p3v>;
+
+   ports {
+   #address-cells = <1>;
+   #size-cells = <0>;
+
+   port@0 {
+   reg = <0>;
+   thc63lvd1024_in: endpoint {
+   remote-endpoint = <_out>;
+   };
+   };
+
+   port@2 {
+   reg = <2>;
+   thc63lvd1024_out: endpoint {
+   remote-endpoint = <_in>;
+   };
+   };
+   };
+   };
+
+   vga {
+   compatible = "vga-connector";
+
+   port {
+   vga_in: endpoint {
+   remote-endpoint = <_out>;
+   };
+   };
+   };
+
+   vga-encoder {
+   compatible = "adi,adv7123";
+
+   ports {
+   #address-cells = <1>;
+   #size-cells = <0>;
+
+   port@0 {
+   reg = <0>;
+   adv7123_in: endpoint {
+   remote-endpoint = <_out_rgb>;
+   };
+   };
+   port@1 {
+   reg = <1>;
+   adv7123_out: endpoint {
+   remote-endpoint = <_in>;
+   };
+   };
+   };
+   };
+
+   reg_3p3v: regulator1 {
+   compatible = "regulator-fixed";
+   regulator-name = "fixed-3.3V";
+   regulator-min-microvolt = <330>;
+   regulator-max-microvolt = <330>;
+   regulator-boot-on;
+   regulator-always-on;
+   };
+
+   x13_clk: x13 {
+   compatible = "fixed-clock";
+   #clock-cells = <0>;
+   clock-frequency = <7425>;
+   };
 };
 
  {
@@ -86,6 +168,25 @@
};
 };
 
+ {
+   pinctrl-0 = <_pins>;
+   pinctrl-names = "default";
+   status = "okay";
+
+   clocks = < CPG_MOD 724>,
+< CPG_MOD 723>,
+<_clk>;
+   clock-names = "du.0", "du.1", "dclkin.0";
+
+   ports {
+   port@0 {
+   endpoint {
+   remote-endpoint = <_in>;
+   };
+   };
+   };
+};
+
  {
status = "okay";
 };
@@ -97,6 +198,38 @@
  {
status = "okay";
 
+   hdmi-encoder@39 {
+   compatible = "adi,adv7511w";
+   reg = <0x39>;
+   interrupt-parent = <>;
+   interrupts = <1 IRQ_TYPE_LEVEL_LOW>;
+
+   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 = <_out>;
+   };
+   };
+
+   port@1 {
+   reg = <1>;
+   adv7511_out: endpoint {
+   remote-endpoint = <_con_out>;
+   };
+   };
+

RE: [PATCH v5 2/2] dt-bindings: watchdog: renesas-wdt: Add support for R7S9210

2018-09-25 Thread Chris Brandt
On Tuesday, September 25, 2018 1, Rob Herring wrote:
> I gave Reviewed-by on v3. Please add acks/reviewed-bys when posting new
> versions.

Sorry about that!

Chris



Re: [PATCH v5 2/2] dt-bindings: watchdog: renesas-wdt: Add support for R7S9210

2018-09-25 Thread Rob Herring
On Mon, Sep 24, 2018 at 08:58:16AM -0500, Chris Brandt wrote:
> Document support for RZ/A2
> 
> Signed-off-by: Chris Brandt 
> Reviewed-by: Guenter Roeck 
> ---
> v2:
>  * Added Reviewed-by
> ---
>  Documentation/devicetree/bindings/watchdog/renesas-wdt.txt | 1 +
>  1 file changed, 1 insertion(+)

I gave Reviewed-by on v3. Please add acks/reviewed-bys when posting new 
versions.

Rob


renesas-drivers-2018-09-25-v4.19-rc5

2018-09-25 Thread Geert Uytterhoeven
I have pushed renesas-drivers-2018-09-25-v4.19-rc5 to
https://git.kernel.org/cgit/linux/kernel/git/geert/renesas-drivers.git

This tree is meant to ease development of platform support and drivers
for Renesas ARM SoCs. It is created by merging (a) the for-next branches
of various subsystem trees and (b) branches with driver code submitted
or planned for submission to maintainers into the development branch of
Simon Horman's renesas.git tree.

Today's version is based on renesas-devel-20180925-v4.19-rc5.

Included branches with driver code:
  - clk-renesas
  - sh-pfc
  - git://linuxtv.org/pinchartl/media.git#drm-du-iommu-v1-20171115
  - git://linuxtv.org/pinchartl/media.git#for/renesas-drivers
  - git://git.ragnatech.se/linux#for-renesas-drivers
  - 
git://git.kernel.org/pub/scm/linux/kernel/git/kbingham/rcar.git#gmsl/for-renesas-drivers

Included fixes:
  - spi: spi-mem: Fix inverted logic in op sanity check
  - [LOCAL] arm64: defconfig: Update renesas_defconfig

Included subsystem trees:
  - git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git#linux-next
  - git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git#clk-next
  - 
git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl.git#for-next
  - git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio.git#for-next
  - git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git#for-next
  - git://git.infradead.org/users/dedekind/l2-mtd-2.6.git#master
  - git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git#master
  - git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git#tty-next
  - git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git#i2c/for-next
  - git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git#for-next
  - git://git.kernel.org/pub/scm/linux/kernel/git/mkl/linux-can-next.git#master
  - git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git#usb-next
  - git://git.freedesktop.org/git/drm/drm.git#drm-next
  - git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu.git#next
  - git://linuxtv.org/media_tree.git#master
  - git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc.git#next
  - 
git://git.kernel.org/pub/scm/linux/kernel/git/thierry.reding/linux-pwm.git#for-next
  - git://git.linaro.org/people/daniel.lezcano/linux.git#clockevents/next
  - git://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb.git#testing/next
  - git://git.infradead.org/users/vkoul/slave-dma.git#next
  - 
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git#staging-next
  - git://git.armlinux.org.uk/~rmk/linux-arm.git#for-next
  - git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux.git#next
  - git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap.git#for-next
  - git://git.infradead.org/users/jcooper/linux.git#irqchip/for-next
  - git://github.com/bzolnier/linux.git#fbdev-for-next
  - git://git.kernel.org/pub/scm/linux/kernel/git/tj/libata.git#for-next
  - 
git://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-power-supply.git#for-next
  - git://www.linux-watchdog.org/linux-watchdog-next.git#master
  - git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc.git#for-next
  - git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git#for-next
  - git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git#for-next/core
  - git://anongit.freedesktop.org/drm/drm-misc#for-linux-next
  - git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git#next
  - git://git.kernel.org/pub/scm/linux/kernel/git/kishon/linux-phy.git#next
  - 
git://git.kernel.org/pub/scm/linux/kernel/git/evalenti/linux-soc-thermal.git#next
  - git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd.git#for-mfd-next
  - git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git#for-next

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge...@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


RE: [PATCH 1/4] dt-bindings: mmc: renesas_sdhi: Add r8a77470 support

2018-09-25 Thread Fabrizio Castro
Hello Geert,

> Subject: Re: [PATCH 1/4] dt-bindings: mmc: renesas_sdhi: Add r8a77470 support
>
> Hi Fabrizio,
>
> On Tue, Sep 25, 2018 at 2:45 PM Fabrizio Castro
>  wrote:
> > > Subject: Re: [PATCH 1/4] dt-bindings: mmc: renesas_sdhi: Add r8a77470 
> > > support
> > > On Tue, Sep 25, 2018 at 10:22 AM Wolfram Sang  wrote:
> > > > > > Perhaps stating the obvious: this feels a lot like the problem we 
> > > > > > thought
> > > > > > we had with different Gen-3 SoCs/ES versions. And in that case we 
> > > > > > decided
> > > > > > against using compat strings to differentiate. The main difference 
> > > > > > here
> > > > > > seems to be that we need to differentiate between different ports 
> > > > > > on the
> > > > > > same SoC.
> > > >
> > > > Yes, I agree. Our so far agreed solution didn't take into account that
> > > > there are different SDHI versions on the same SoC. Adding a compatible
> > > > might be the easiest solution, but then we have a mix of compatibles,
> > > > soc_device_match, and even version register (deeper in the driver). My
> > > > gut feeling is we should take the time to rethink all this?
> > > >
> > > > > So either
> > > > >   a) SDHI0/2 vs. SDHI1 are different, deserving different compatible 
> > > > > values, or
> > > > >   b) SDHI0/1/2 are identical, but SDHI1 is wired different, deserving 
> > > > > the same
> > > > >  compatible value, but one or more additional properties 
> > > > > describing the
> > > > >  different wiring.
> > > >
> > > > Actually, SDHI2 seems different, too. It doesn't support SDR104. I don't
> > > > have the SDHI specific docs, but from the main docs, all SDHI instances
> > > > are different.
> > >
> > > I forgot about the version register.
> > >
> > > Fabrizio: can you please check what the 3 instances report in their 
> > > version
> > > registers? Thanks!
> >
> > SDHI0: 0xcc0d
> > SDHI1: 0xcc10
> > SDHI2: 0xcc0d
>
> Thank you. So SDHI1 differs from SDH0/2.
> SDHI2 probably doesn't support SDR104 because its parent clock is a div6
> clock, while the others have SDCKCR parents.
>
> Plus we don't describe the relation to the SDH clock yet.

I am looking into the remaining SDHI interfaces now, how do you want me to 
handle SDHI1?

Thanks,
Fab

>
> Gr{oetje,eeting}s,
>
> Geert
>
> --
> Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- 
> ge...@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



Renesas Electronics Europe Ltd, Dukes Meadow, Millboard Road, Bourne End, 
Buckinghamshire, SL8 5FH, UK. Registered in England & Wales under Registered 
No. 04586709.


Re: [PATCH 1/4] dt-bindings: mmc: renesas_sdhi: Add r8a77470 support

2018-09-25 Thread Geert Uytterhoeven
Hi Fabrizio,

On Tue, Sep 25, 2018 at 2:45 PM Fabrizio Castro
 wrote:
> > Subject: Re: [PATCH 1/4] dt-bindings: mmc: renesas_sdhi: Add r8a77470 
> > support
> > On Tue, Sep 25, 2018 at 10:22 AM Wolfram Sang  wrote:
> > > > > Perhaps stating the obvious: this feels a lot like the problem we 
> > > > > thought
> > > > > we had with different Gen-3 SoCs/ES versions. And in that case we 
> > > > > decided
> > > > > against using compat strings to differentiate. The main difference 
> > > > > here
> > > > > seems to be that we need to differentiate between different ports on 
> > > > > the
> > > > > same SoC.
> > >
> > > Yes, I agree. Our so far agreed solution didn't take into account that
> > > there are different SDHI versions on the same SoC. Adding a compatible
> > > might be the easiest solution, but then we have a mix of compatibles,
> > > soc_device_match, and even version register (deeper in the driver). My
> > > gut feeling is we should take the time to rethink all this?
> > >
> > > > So either
> > > >   a) SDHI0/2 vs. SDHI1 are different, deserving different compatible 
> > > > values, or
> > > >   b) SDHI0/1/2 are identical, but SDHI1 is wired different, deserving 
> > > > the same
> > > >  compatible value, but one or more additional properties describing 
> > > > the
> > > >  different wiring.
> > >
> > > Actually, SDHI2 seems different, too. It doesn't support SDR104. I don't
> > > have the SDHI specific docs, but from the main docs, all SDHI instances
> > > are different.
> >
> > I forgot about the version register.
> >
> > Fabrizio: can you please check what the 3 instances report in their version
> > registers? Thanks!
>
> SDHI0: 0xcc0d
> SDHI1: 0xcc10
> SDHI2: 0xcc0d

Thank you. So SDHI1 differs from SDH0/2.
SDHI2 probably doesn't support SDR104 because its parent clock is a div6
clock, while the others have SDCKCR parents.

Plus we don't describe the relation to the SDH clock yet.

Gr{oetje,eeting}s,

Geert

-- 
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge...@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


RE: [PATCH 1/4] dt-bindings: mmc: renesas_sdhi: Add r8a77470 support

2018-09-25 Thread Fabrizio Castro
Hi Geert,

> Subject: Re: [PATCH 1/4] dt-bindings: mmc: renesas_sdhi: Add r8a77470 support
>
> Hi Wolfram,
>
> On Tue, Sep 25, 2018 at 10:22 AM Wolfram Sang  wrote:
> > > > Perhaps stating the obvious: this feels a lot like the problem we 
> > > > thought
> > > > we had with different Gen-3 SoCs/ES versions. And in that case we 
> > > > decided
> > > > against using compat strings to differentiate. The main difference here
> > > > seems to be that we need to differentiate between different ports on the
> > > > same SoC.
> >
> > Yes, I agree. Our so far agreed solution didn't take into account that
> > there are different SDHI versions on the same SoC. Adding a compatible
> > might be the easiest solution, but then we have a mix of compatibles,
> > soc_device_match, and even version register (deeper in the driver). My
> > gut feeling is we should take the time to rethink all this?
> >
> > > So either
> > >   a) SDHI0/2 vs. SDHI1 are different, deserving different compatible 
> > > values, or
> > >   b) SDHI0/1/2 are identical, but SDHI1 is wired different, deserving the 
> > > same
> > >  compatible value, but one or more additional properties describing 
> > > the
> > >  different wiring.
> >
> > Actually, SDHI2 seems different, too. It doesn't support SDR104. I don't
> > have the SDHI specific docs, but from the main docs, all SDHI instances
> > are different.
>
> I forgot about the version register.
>
> Fabrizio: can you please check what the 3 instances report in their version
> registers? Thanks!

SDHI0: 0xcc0d
SDHI1: 0xcc10
SDHI2: 0xcc0d

Cheers,
Fab

>
> Gr{oetje,eeting}s,
>
> Geert
>
> --
> Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- 
> ge...@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



Renesas Electronics Europe Ltd, Dukes Meadow, Millboard Road, Bourne End, 
Buckinghamshire, SL8 5FH, UK. Registered in England & Wales under Registered 
No. 04586709.


Re: [PATCH 1/4] dt-bindings: mmc: renesas_sdhi: Add r8a77470 support

2018-09-25 Thread Geert Uytterhoeven
Hi Wolfram,

On Tue, Sep 25, 2018 at 10:22 AM Wolfram Sang  wrote:
> > > Perhaps stating the obvious: this feels a lot like the problem we thought
> > > we had with different Gen-3 SoCs/ES versions. And in that case we decided
> > > against using compat strings to differentiate. The main difference here
> > > seems to be that we need to differentiate between different ports on the
> > > same SoC.
>
> Yes, I agree. Our so far agreed solution didn't take into account that
> there are different SDHI versions on the same SoC. Adding a compatible
> might be the easiest solution, but then we have a mix of compatibles,
> soc_device_match, and even version register (deeper in the driver). My
> gut feeling is we should take the time to rethink all this?
>
> > So either
> >   a) SDHI0/2 vs. SDHI1 are different, deserving different compatible 
> > values, or
> >   b) SDHI0/1/2 are identical, but SDHI1 is wired different, deserving the 
> > same
> >  compatible value, but one or more additional properties describing the
> >  different wiring.
>
> Actually, SDHI2 seems different, too. It doesn't support SDR104. I don't
> have the SDHI specific docs, but from the main docs, all SDHI instances
> are different.

I forgot about the version register.

Fabrizio: can you please check what the 3 instances report in their version
registers? Thanks!

Gr{oetje,eeting}s,

Geert

-- 
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge...@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


Re: [PATCH 1/4] dt-bindings: mmc: renesas_sdhi: Add r8a77470 support

2018-09-25 Thread Wolfram Sang

> > Perhaps stating the obvious: this feels a lot like the problem we thought
> > we had with different Gen-3 SoCs/ES versions. And in that case we decided
> > against using compat strings to differentiate. The main difference here
> > seems to be that we need to differentiate between different ports on the
> > same SoC.

Yes, I agree. Our so far agreed solution didn't take into account that
there are different SDHI versions on the same SoC. Adding a compatible
might be the easiest solution, but then we have a mix of compatibles,
soc_device_match, and even version register (deeper in the driver). My
gut feeling is we should take the time to rethink all this?

> So either
>   a) SDHI0/2 vs. SDHI1 are different, deserving different compatible values, 
> or
>   b) SDHI0/1/2 are identical, but SDHI1 is wired different, deserving the same
>  compatible value, but one or more additional properties describing the
>  different wiring.

Actually, SDHI2 seems different, too. It doesn't support SDR104. I don't
have the SDHI specific docs, but from the main docs, all SDHI instances
are different.



signature.asc
Description: PGP signature


RE: [PATCH 10/10] cpufreq: dt: Add support for r8a7744

2018-09-25 Thread Biju Das
Hi Rafeal,

Sorry to bother you.  Are you happy to merge the below patch with 4.20

https://patchwork.kernel.org/patch/10595451/

Regards,
Biju

> -Original Message-
> From: Biju Das
> Sent: 11 September 2018 12:11
> To: Rafael J. Wysocki 
> Cc: Rafael J. Wysocki ; Viresh Kumar
> ; Linux PM ; Simon
> Horman ; Geert Uytterhoeven
> ; Chris Paterson
> ; Fabrizio Castro
> ; Linux-Renesas  s...@vger.kernel.org>
> Subject: RE: [PATCH 10/10] cpufreq: dt: Add support for r8a7744
>
> Hi Rafael,
>
> Thanks for the feedback.
>
> > -Original Message-
> > From: Rafael J. Wysocki 
> > Sent: 11 September 2018 11:59
> > To: Biju Das 
> > Cc: Rafael J. Wysocki ; Viresh Kumar
> > ; Linux PM ; Simon
> > Horman ; Geert Uytterhoeven
> > ; Chris Paterson
> > ; Fabrizio Castro
> > ; Linux-Renesas  > s...@vger.kernel.org>
> > Subject: Re: [PATCH 10/10] cpufreq: dt: Add support for r8a7744
> >
> > On Tue, Sep 11, 2018 at 12:20 PM Biju Das 
> > wrote:
> > >
> > > Add the compatible strings for supporting the generic cpufreq driver
> > > on the Renesas RZ/G1N (R8A7744) SoC.
> > >
> > > Signed-off-by: Biju Das 
> > > Reviewed-by: Fabrizio Castro 
> > > ---
> > >  drivers/cpufreq/cpufreq-dt-platdev.c | 1 +
> > >  1 file changed, 1 insertion(+)
> > >
> > > diff --git a/drivers/cpufreq/cpufreq-dt-platdev.c
> > > b/drivers/cpufreq/cpufreq-dt-platdev.c
> > > index fe14c57..805f8a0 100644
> > > --- a/drivers/cpufreq/cpufreq-dt-platdev.c
> > > +++ b/drivers/cpufreq/cpufreq-dt-platdev.c
> > > @@ -58,6 +58,7 @@ static const struct of_device_id whitelist[]
> > > __initconst
> > = {
> > > { .compatible = "renesas,r8a73a4", },
> > > { .compatible = "renesas,r8a7740", },
> > > { .compatible = "renesas,r8a7743", },
> > > +   { .compatible = "renesas,r8a7744", },
> > > { .compatible = "renesas,r8a7745", },
> > > { .compatible = "renesas,r8a7778", },
> > > { .compatible = "renesas,r8a7779", },
> > > --
> >
> > Since this is the last patch in a series of 10, do you want me to
> > apply it or should it go in along with the rest?
>
> Please apply the patch. Already binding patch is available with cfb9f93437eb
> ("ARM: shmobile: Document RZ/G1N SoC DT binding").
>
> Regards,
> Biju
>




Renesas Electronics Europe Ltd, Dukes Meadow, Millboard Road, Bourne End, 
Buckinghamshire, SL8 5FH, UK. Registered in England & Wales under Registered 
No. 04586709.


Re: [PATCH] clk: renesas: Convert to SPDX identifiers

2018-09-25 Thread Kuninori Morimoto


Hi Geert

> From: Kuninori Morimoto 
> 
> This patch updates license to use SPDX-License-Identifier
> instead of verbose license text.
> 
> Signed-off-by: Kuninori Morimoto 
> [rebased against clk-spdx]
> Signed-off-by: Geert Uytterhoeven 
> ---
>   Hi Mike, Stephen,
> 
> Morimoto-san converted all files under drivers/clk/renesas/, while you had
> already applied the partial conversion e848c2ea117f222b ("clk: renesas:
> use SPDX identifier for Renesas drivers") from Wolfram.
> 
> Hence I rebased Morimoto-san's work on top of the clk-spdx branch, which is
> where Wolfram's patch was applied.
> 
> Please apply directly.  Thanks!

Thank you for rebasing, Geert.
I thought I already posted v2 patch, but it seems wrong.

Best regards
---
Kuninori Morimoto


Re: [PATCH 1/4] dt-bindings: mmc: renesas_sdhi: Add r8a77470 support

2018-09-25 Thread Geert Uytterhoeven
Hi Simon,

On Tue, Sep 25, 2018 at 9:47 AM Simon Horman  wrote:
> On Tue, Sep 25, 2018 at 08:47:38AM +0200, Geert Uytterhoeven wrote:
> > On Mon, Sep 24, 2018 at 8:34 PM Fabrizio Castro
> >  wrote:
> > > > Subject: Re: [PATCH 1/4] dt-bindings: mmc: renesas_sdhi: Add r8a77470 
> > > > support
> > > > On Fri, Sep 21, 2018 at 1:55 PM Fabrizio Castro
> > > >  wrote:
> > > > > Document SDHI support for the RZ/G1C (a.k.a. R8A77470) SoC.
> > > > >
> > > > > Signed-off-by: Fabrizio Castro 
> > > > > Reviewed-by: Biju Das 
> >
> > > > > --- a/Documentation/devicetree/bindings/mmc/tmio_mmc.txt
> > > > > +++ b/Documentation/devicetree/bindings/mmc/tmio_mmc.txt
> > > > > @@ -17,6 +17,7 @@ Required properties:
> > > > > "renesas,sdhi-r8a7740" - SDHI IP on R8A7740 SoC
> > > > > "renesas,sdhi-r8a7743" - SDHI IP on R8A7743 SoC
> > > > > "renesas,sdhi-r8a7745" - SDHI IP on R8A7745 SoC
> > > > > +   "renesas,sdhi-r8a77470" - SDHI IP on R8A77470 SoC
> > > > > "renesas,sdhi-r8a7778" - SDHI IP on R8A7778 SoC
> > > > > "renesas,sdhi-r8a7779" - SDHI IP on R8A7779 SoC
> > > > > "renesas,sdhi-r8a7790" - SDHI IP on R8A7790 SoC
> > > >
> > > > It seems RZ/G1C has two slighty different types of SD card interfaces:
> > > >   1. SDHI0 and SDHI2 use SYS-DMAC,
> > > >   2. SDHI1 can also be used as an MMC interface, and has an internal 
> > > > DMAC.
> > > >
> > > > Do we need to distinguish between them using the compatible value, or
> > > > are there other ways?
> > >
> > > The most sensible thing to do here is probably to distinguish between 
> > > them using
> > > the compatible value, we were thinking about using the following for 
> > > SDHI1:
> > > compatible = "renesas,sdhi-mmc-r8a77470", "renesas,rcar-gen3-sdhi";
> > >
> > > What do you guys think?
> >
> > Oh, so it's identical (or "sufficiently compatible") with the SD card
> > interface on R-Car Gen3?
> > "renesas,sdhi-mmc-r8a77470" may be a good way to distinguish.
> > I'm a bit reluctant to add "renesas,rcar-gen3-sdhi", though.
>
> I am also reluctant to add "renesas,rcar-gen3-sdhi", because as we are
> seeing things are not so simple wrt to compatible.
>
> Can I clarify the proposal regarding "renesas,sdhi-mmc-r8a77470",
> would it be as well as or instead of "renesas,sdhi-r8a77470" ?

AFAIU, "renesas,sdhi-r8a77470" would be still used for SDHI0 and SDHI2.

> And what is signified by "mmc" that is not implied by (some of the)
> existing compat strings?

"SDHI1 can also be used as an MMC interface".

Note that this (can also be used as an MMC interface) seems to be true
for the SD card interfaces in R-Car Gen3, too.

> Perhaps stating the obvious: this feels a lot like the problem we thought
> we had with different Gen-3 SoCs/ES versions. And in that case we decided
> against using compat strings to differentiate. The main difference here
> seems to be that we need to differentiate between different ports on the
> same SoC.

So either
  a) SDHI0/2 vs. SDHI1 are different, deserving different compatible values, or
  b) SDHI0/1/2 are identical, but SDHI1 is wired different, deserving the same
 compatible value, but one or more additional properties describing the
 different wiring.

Wolfram's proposal for b) was looking at the (lack of) dmas properties, but
that's not sufficient, as they are optional anyway.

Gr{oetje,eeting}s,

Geert

-- 
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge...@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


Re: [PATCH] clk: renesas: Convert to SPDX identifiers

2018-09-25 Thread Simon Horman
On Tue, Sep 25, 2018 at 09:34:05AM +0200, Geert Uytterhoeven wrote:
> From: Kuninori Morimoto 
> 
> This patch updates license to use SPDX-License-Identifier
> instead of verbose license text.
> 
> Signed-off-by: Kuninori Morimoto 
> [rebased against clk-spdx]
> Signed-off-by: Geert Uytterhoeven 

Reviewed-by: Simon Horman 



Re: [PATCH 1/4] dt-bindings: mmc: renesas_sdhi: Add r8a77470 support

2018-09-25 Thread Simon Horman
On Tue, Sep 25, 2018 at 08:47:38AM +0200, Geert Uytterhoeven wrote:
> Hi Fabrizio,
> 
> On Mon, Sep 24, 2018 at 8:34 PM Fabrizio Castro
>  wrote:
> > > Subject: Re: [PATCH 1/4] dt-bindings: mmc: renesas_sdhi: Add r8a77470 
> > > support
> > > On Fri, Sep 21, 2018 at 1:55 PM Fabrizio Castro
> > >  wrote:
> > > > Document SDHI support for the RZ/G1C (a.k.a. R8A77470) SoC.
> > > >
> > > > Signed-off-by: Fabrizio Castro 
> > > > Reviewed-by: Biju Das 
> 
> > > > --- a/Documentation/devicetree/bindings/mmc/tmio_mmc.txt
> > > > +++ b/Documentation/devicetree/bindings/mmc/tmio_mmc.txt
> > > > @@ -17,6 +17,7 @@ Required properties:
> > > > "renesas,sdhi-r8a7740" - SDHI IP on R8A7740 SoC
> > > > "renesas,sdhi-r8a7743" - SDHI IP on R8A7743 SoC
> > > > "renesas,sdhi-r8a7745" - SDHI IP on R8A7745 SoC
> > > > +   "renesas,sdhi-r8a77470" - SDHI IP on R8A77470 SoC
> > > > "renesas,sdhi-r8a7778" - SDHI IP on R8A7778 SoC
> > > > "renesas,sdhi-r8a7779" - SDHI IP on R8A7779 SoC
> > > > "renesas,sdhi-r8a7790" - SDHI IP on R8A7790 SoC
> > >
> > > It seems RZ/G1C has two slighty different types of SD card interfaces:
> > >   1. SDHI0 and SDHI2 use SYS-DMAC,
> > >   2. SDHI1 can also be used as an MMC interface, and has an internal DMAC.
> > >
> > > Do we need to distinguish between them using the compatible value, or
> > > are there other ways?
> >
> > The most sensible thing to do here is probably to distinguish between them 
> > using
> > the compatible value, we were thinking about using the following for SDHI1:
> > compatible = "renesas,sdhi-mmc-r8a77470", "renesas,rcar-gen3-sdhi";
> >
> > What do you guys think?
> 
> Oh, so it's identical (or "sufficiently compatible") with the SD card
> interface on R-Car Gen3?
> "renesas,sdhi-mmc-r8a77470" may be a good way to distinguish.
> I'm a bit reluctant to add "renesas,rcar-gen3-sdhi", though.

I am also reluctant to add "renesas,rcar-gen3-sdhi", because as we are
seeing things are not so simple wrt to compatible.

Can I clarify the proposal regarding "renesas,sdhi-mmc-r8a77470",
would it be as well as or instead of "renesas,sdhi-r8a77470" ?

And what is signified by "mmc" that is not implied by (some of the)
existing compat strings?


Perhaps stating the obvious: this feels a lot like the problem we thought
we had with different Gen-3 SoCs/ES versions. And in that case we decided
against using compat strings to differentiate. The main difference here
seems to be that we need to differentiate between different ports on the
same SoC.


Re: [PATCH v3] arm64: dts: renesas: r8a779{7|8}0: add TPU support

2018-09-25 Thread Simon Horman
On Mon, Sep 24, 2018 at 09:36:11PM +0200, Geert Uytterhoeven wrote:
> On Mon, Sep 24, 2018 at 9:31 PM Sergei Shtylyov
>  wrote:
> > Describe TPU in the R8A779{7|8}0 device trees.
> >
> > Based on the original (and large) patches by Vladimir Barinov.
> >
> > Signed-off-by: Vladimir Barinov 
> > Signed-off-by: Sergei Shtylyov 
> 
> Reviewed-by: Geert Uytterhoeven 

Thanks, applied for v4.20.


Re: [PATCH] ARM: dts: iwg20d-q7-common: Move pciec node out of common dtsi

2018-09-25 Thread Simon Horman
On Mon, Sep 24, 2018 at 10:38:51AM +0200, Simon Horman wrote:
> On Fri, Sep 21, 2018 at 03:07:55PM +0100, Biju Das wrote:
> > PCIe is not populated by default on iWave RZ/G1N board. RZ/G1N board
> > is almost identical to RZ/G1M. In order to reuse the common dtsi for
> > both the boards, it is required to move pcie node from common dtsi
> > to board specific dts.
> > 
> > Signed-off-by: Biju Das 
> > Reviewed-by: Fabrizio Castro 
> 
> Thanks,
> 
> This looks fine to me but I will wait to see if there are other reviews
> before applying.

Thanks again, applied for v4.20.


[PATCH] clk: renesas: Convert to SPDX identifiers

2018-09-25 Thread Geert Uytterhoeven
From: Kuninori Morimoto 

This patch updates license to use SPDX-License-Identifier
instead of verbose license text.

Signed-off-by: Kuninori Morimoto 
[rebased against clk-spdx]
Signed-off-by: Geert Uytterhoeven 
---
Hi Mike, Stephen,

Morimoto-san converted all files under drivers/clk/renesas/, while you had
already applied the partial conversion e848c2ea117f222b ("clk: renesas:
use SPDX identifier for Renesas drivers") from Wolfram.

Hence I rebased Morimoto-san's work on top of the clk-spdx branch, which is
where Wolfram's patch was applied.

Please apply directly.  Thanks!

 drivers/clk/renesas/Kconfig |  2 ++
 drivers/clk/renesas/clk-emev2.c | 14 +-
 drivers/clk/renesas/clk-mstp.c  |  5 +
 drivers/clk/renesas/clk-r8a73a4.c   |  5 +
 drivers/clk/renesas/clk-r8a7740.c   |  5 +
 drivers/clk/renesas/clk-r8a7778.c   |  5 +
 drivers/clk/renesas/clk-r8a7779.c   |  5 +
 drivers/clk/renesas/clk-rcar-gen2.c |  5 +
 drivers/clk/renesas/clk-rz.c|  5 +
 drivers/clk/renesas/clk-sh73a0.c|  5 +
 drivers/clk/renesas/r8a7743-cpg-mssr.c  |  5 +
 drivers/clk/renesas/r8a7745-cpg-mssr.c  |  5 +
 drivers/clk/renesas/r8a7790-cpg-mssr.c  |  5 +
 drivers/clk/renesas/r8a7791-cpg-mssr.c  |  5 +
 drivers/clk/renesas/r8a7792-cpg-mssr.c  |  5 +
 drivers/clk/renesas/r8a7794-cpg-mssr.c  |  5 +
 drivers/clk/renesas/r8a77970-cpg-mssr.c |  5 +
 drivers/clk/renesas/rcar-gen2-cpg.c |  5 +
 drivers/clk/renesas/rcar-gen2-cpg.h |  7 ++-
 drivers/clk/renesas/rcar-gen3-cpg.h |  7 ++-
 drivers/clk/renesas/renesas-cpg-mssr.h  |  4 ++--
 include/linux/clk/renesas.h |  8 ++--
 22 files changed, 27 insertions(+), 95 deletions(-)

diff --git a/drivers/clk/renesas/Kconfig b/drivers/clk/renesas/Kconfig
index 9022bbe1297e7f3c..ab2110f962256079 100644
--- a/drivers/clk/renesas/Kconfig
+++ b/drivers/clk/renesas/Kconfig
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0
+
 config CLK_RENESAS
bool "Renesas SoC clock support" if COMPILE_TEST && !ARCH_RENESAS
default y if ARCH_RENESAS
diff --git a/drivers/clk/renesas/clk-emev2.c b/drivers/clk/renesas/clk-emev2.c
index a91825471c79acd2..7f3b5f9631bd4db1 100644
--- a/drivers/clk/renesas/clk-emev2.c
+++ b/drivers/clk/renesas/clk-emev2.c
@@ -1,21 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * EMMA Mobile EV2 common clock framework support
  *
  * Copyright (C) 2013 Takashi Yoshii 
  * Copyright (C) 2012 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 
 #include 
diff --git a/drivers/clk/renesas/clk-mstp.c b/drivers/clk/renesas/clk-mstp.c
index e82adcb16a52a3b7..7df14bb1cbbcfc1e 100644
--- a/drivers/clk/renesas/clk-mstp.c
+++ b/drivers/clk/renesas/clk-mstp.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * R-Car MSTP clocks
  *
@@ -5,10 +6,6 @@
  * Copyright (C) 2015 Glider bvba
  *
  * Contact: Laurent Pinchart 
- *
- * 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.
  */
 
 #include 
diff --git a/drivers/clk/renesas/clk-r8a73a4.c 
b/drivers/clk/renesas/clk-r8a73a4.c
index 7b903ce4c9015ad7..e1a9e89defddf8dc 100644
--- a/drivers/clk/renesas/clk-r8a73a4.c
+++ b/drivers/clk/renesas/clk-r8a73a4.c
@@ -1,11 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * r8a73a4 Core CPG Clocks
  *
  * Copyright (C) 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; version 2 of the License.
  */
 
 #include 
diff --git a/drivers/clk/renesas/clk-r8a7740.c 
b/drivers/clk/renesas/clk-r8a7740.c
index a7a30d2eca418f6e..d6817126313779d1 100644
--- a/drivers/clk/renesas/clk-r8a7740.c
+++ b/drivers/clk/renesas/clk-r8a7740.c
@@ -1,11 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * r8a7740 Core CPG Clocks
  *
  * Copyright (C) 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; version 2 of the License.
  */
 
 

Re: [PATCH v2] arm64: dts: renesas: revise properties for R-Car Gen3 SoCs' usb 2.0

2018-09-25 Thread Simon Horman
On Fri, Sep 21, 2018 at 04:54:17PM +0900, Yoshihiro Shimoda wrote:
> R-Car Gen3 SoCs need to enable/deassert clocks/resets of both usb 2.0
> host (included phy) and peripheral. Otherwise, other side device
> cannot work correctly. So, this patch revises properties of clocks
> and resets. After that, each device driver can enable/deassert
> clocks/resets by its self.
> 
> Notes:
>  - To work the renesas_usbhs driver correctly when host side drivers
>are disabled and the renesas_usbhs driver doesn't have multiple
>clock management, this patch doesn't change the order of the clocks
>property in each hsusb node.
>  - This patch doesn't have any side-effects even if the renesas_usbhs
>driver doesn't have reset_control and multiple clock management.
> 
> Signed-off-by: Yoshihiro Shimoda 
> Reviewed-by: Simon Horman 

Thanks Shimoda-san,

applied for v4.20.


Re: [PATCH 1/4] dt-bindings: mmc: renesas_sdhi: Add r8a77470 support

2018-09-25 Thread Geert Uytterhoeven
Hi Fabrizio,

On Mon, Sep 24, 2018 at 8:34 PM Fabrizio Castro
 wrote:
> > Subject: Re: [PATCH 1/4] dt-bindings: mmc: renesas_sdhi: Add r8a77470 
> > support
> > On Fri, Sep 21, 2018 at 1:55 PM Fabrizio Castro
> >  wrote:
> > > Document SDHI support for the RZ/G1C (a.k.a. R8A77470) SoC.
> > >
> > > Signed-off-by: Fabrizio Castro 
> > > Reviewed-by: Biju Das 

> > > --- a/Documentation/devicetree/bindings/mmc/tmio_mmc.txt
> > > +++ b/Documentation/devicetree/bindings/mmc/tmio_mmc.txt
> > > @@ -17,6 +17,7 @@ Required properties:
> > > "renesas,sdhi-r8a7740" - SDHI IP on R8A7740 SoC
> > > "renesas,sdhi-r8a7743" - SDHI IP on R8A7743 SoC
> > > "renesas,sdhi-r8a7745" - SDHI IP on R8A7745 SoC
> > > +   "renesas,sdhi-r8a77470" - SDHI IP on R8A77470 SoC
> > > "renesas,sdhi-r8a7778" - SDHI IP on R8A7778 SoC
> > > "renesas,sdhi-r8a7779" - SDHI IP on R8A7779 SoC
> > > "renesas,sdhi-r8a7790" - SDHI IP on R8A7790 SoC
> >
> > It seems RZ/G1C has two slighty different types of SD card interfaces:
> >   1. SDHI0 and SDHI2 use SYS-DMAC,
> >   2. SDHI1 can also be used as an MMC interface, and has an internal DMAC.
> >
> > Do we need to distinguish between them using the compatible value, or
> > are there other ways?
>
> The most sensible thing to do here is probably to distinguish between them 
> using
> the compatible value, we were thinking about using the following for SDHI1:
> compatible = "renesas,sdhi-mmc-r8a77470", "renesas,rcar-gen3-sdhi";
>
> What do you guys think?

Oh, so it's identical (or "sufficiently compatible") with the SD card
interface on R-Car Gen3?
"renesas,sdhi-mmc-r8a77470" may be a good way to distinguish.
I'm a bit reluctant to add "renesas,rcar-gen3-sdhi", though.

Gr{oetje,eeting}s,

Geert

-- 
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge...@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