Re: [PATCH 1/3] dt-bindings: reset: Add bindings for the Meson-AXG SoC Reset Controller

2019-01-17 Thread Kevin Hilman
On Thu, Jan 17, 2019 at 11:29 AM Kevin Hilman  wrote:
>
> [ + Jianxin since Yixun is no longer at Amlogic ]
>
> Thomas Gleixner  writes:
>
> > On Mon, 12 Nov 2018, Thomas Gleixner wrote:
> >
> > Gentle ping.
> >
> >> Yixun,
> >>
> >> On Fri, 10 Nov 2017, Yixun Lan wrote:
> >>
> >> > +/*
> >> > + *
> >> > + * Copyright (c) 2016 BayLibre, SAS.
> >> > + * Author: Neil Armstrong 
> >> > + *
> >> > + * Copyright (c) 2017 Amlogic, inc.
> >> > + * Author: Yixun Lan 
> >> > + *
> >> > + * SPDX-License-Identifier: (GPL-2.0+ OR BSD)
> >>
> >> There are two things wrong:
> >>
> >>   1) The placement. See Documentation/process/license-rules.rst
> >>
> >>   2) BSD is not a valid license id. You really have to decide which BSD
> >>  variant to use.
> >>
> >> Please get that fixed as especially #2 is broken. The goal of using SPDX is
> >> to provide reliable license information for compliance tools.
> >
> > This still is broken:
> >
> > # scripts/spdxcheck.py include/dt-bindings/
> > include/dt-bindings/reset/amlogic,meson-axg-reset.h: 9:41 Invalid License 
> > ID: BSD
>
> Jianxin, can you fix this and clarify which BSD license was intended by
> Amlogic?
>
> If this isn't fixed soon, I will cleanup and remove the BSD part and
> Amlogic can clarify with a subsequent patch.

Oops, nevermind.  Looks like Jerome already did the cleanup.

Kevin


Re: [PATCH 1/3] dt-bindings: reset: Add bindings for the Meson-AXG SoC Reset Controller

2019-01-16 Thread Thomas Gleixner
On Mon, 12 Nov 2018, Thomas Gleixner wrote:

Gentle ping.

> Yixun,
> 
> On Fri, 10 Nov 2017, Yixun Lan wrote:
> 
> > +/*
> > + *
> > + * Copyright (c) 2016 BayLibre, SAS.
> > + * Author: Neil Armstrong 
> > + *
> > + * Copyright (c) 2017 Amlogic, inc.
> > + * Author: Yixun Lan 
> > + *
> > + * SPDX-License-Identifier: (GPL-2.0+ OR BSD)
> 
> There are two things wrong:
> 
>   1) The placement. See Documentation/process/license-rules.rst
> 
>   2) BSD is not a valid license id. You really have to decide which BSD
>  variant to use.
> 
> Please get that fixed as especially #2 is broken. The goal of using SPDX is
> to provide reliable license information for compliance tools.

This still is broken:

# scripts/spdxcheck.py include/dt-bindings/
include/dt-bindings/reset/amlogic,meson-axg-reset.h: 9:41 Invalid License ID: 
BSD

Thanks,

tglx



Re: [PATCH 1/3] dt-bindings: reset: Add bindings for the Meson-AXG SoC Reset Controller

2018-11-12 Thread Thomas Gleixner
Yixun,

On Fri, 10 Nov 2017, Yixun Lan wrote:

> +/*
> + *
> + * Copyright (c) 2016 BayLibre, SAS.
> + * Author: Neil Armstrong 
> + *
> + * Copyright (c) 2017 Amlogic, inc.
> + * Author: Yixun Lan 
> + *
> + * SPDX-License-Identifier: (GPL-2.0+ OR BSD)

There are two things wrong:

  1) The placement. See Documentation/process/license-rules.rst

  2) BSD is not a valid license id. You really have to decide which BSD
 variant to use.

Please get that fixed as especially #2 is broken. The goal of using SPDX is
to provide reliable license information for compliance tools.

Thanks,

tglx


Re: [PATCH 1/3] dt-bindings: reset: Add bindings for the Meson-AXG SoC Reset Controller

2018-11-12 Thread Thomas Gleixner
Yixun,

On Fri, 10 Nov 2017, Yixun Lan wrote:

> +/*
> + *
> + * Copyright (c) 2016 BayLibre, SAS.
> + * Author: Neil Armstrong 
> + *
> + * Copyright (c) 2017 Amlogic, inc.
> + * Author: Yixun Lan 
> + *
> + * SPDX-License-Identifier: (GPL-2.0+ OR BSD)

There are two things wrong:

  1) The placement. See Documentation/process/license-rules.rst

  2) BSD is not a valid license id. You really have to decide which BSD
 variant to use.

Please get that fixed as especially #2 is broken. The goal of using SPDX is
to provide reliable license information for compliance tools.

Thanks,

tglx


Re: [PATCH 1/3] dt-bindings: reset: Add bindings for the Meson-AXG SoC Reset Controller

2017-11-17 Thread Neil Armstrong
On 10/11/2017 09:46, Yixun Lan wrote:
> Add DT bindings for the Meson-AXG SoC Reset Controller include file,
> and also slightly update documentation.
> 
> Signed-off-by: Yixun Lan 
> ---
>  .../bindings/reset/amlogic,meson-reset.txt |   3 +-
>  .../dt-bindings/reset/amlogic,meson-axg-reset.h| 124 
> +
>  2 files changed, 126 insertions(+), 1 deletion(-)
>  create mode 100644 include/dt-bindings/reset/amlogic,meson-axg-reset.h
> 
> diff --git a/Documentation/devicetree/bindings/reset/amlogic,meson-reset.txt 
> b/Documentation/devicetree/bindings/reset/amlogic,meson-reset.txt
> index e746b631793a..28ef6c295c76 100644
> --- a/Documentation/devicetree/bindings/reset/amlogic,meson-reset.txt
> +++ b/Documentation/devicetree/bindings/reset/amlogic,meson-reset.txt
> @@ -5,7 +5,8 @@ Please also refer to reset.txt in this directory for common 
> reset
>  controller binding usage.
>  
>  Required properties:
> -- compatible: Should be "amlogic,meson8b-reset" or "amlogic,meson-gxbb-reset"
> +- compatible: Should be "amlogic,meson8b-reset", "amlogic,meson-gxbb-reset" 
> or
> + "amlogic,meson-axg-reset".
>  - reg: should contain the register address base
>  - #reset-cells: 1, see below
>  
> diff --git a/include/dt-bindings/reset/amlogic,meson-axg-reset.h 
> b/include/dt-bindings/reset/amlogic,meson-axg-reset.h
> new file mode 100644
> index ..ad6f55dabd6d
> --- /dev/null
> +++ b/include/dt-bindings/reset/amlogic,meson-axg-reset.h
> @@ -0,0 +1,124 @@
> +/*
> + *
> + * Copyright (c) 2016 BayLibre, SAS.
> + * Author: Neil Armstrong 
> + *
> + * Copyright (c) 2017 Amlogic, inc.
> + * Author: Yixun Lan 
> + *
> + * SPDX-License-Identifier: (GPL-2.0+ OR BSD)
> + */
> +
> +#ifndef _DT_BINDINGS_AMLOGIC_MESON_AXG_RESET_H
> +#define _DT_BINDINGS_AMLOGIC_MESON_AXG_RESET_H
> +
> +/*   RESET0  */
> +#define RESET_HIU0
> +#define RESET_PCIE_A 1
> +#define RESET_PCIE_B 2
> +#define RESET_DDR_TOP3
> +/*   4   */
> +#define RESET_VIU5
> +#define RESET_PCIE_PHY   6
> +#define RESET_PCIE_APB   7
> +/*   8   */
> +/*   9   */
> +#define RESET_VENC   10
> +#define RESET_ASSIST 11
> +/*   12  */
> +#define RESET_VCBUS  13
> +/*   14  */
> +/*   15  */
> +#define RESET_GIC16
> +#define RESET_CAPB3_DECODE   17
> +/*   18-21   */
> +#define RESET_SYS_CPU_CAPB3  22
> +#define RESET_CBUS_CAPB3 23
> +#define RESET_AHB_CNTL   24
> +#define RESET_AHB_DATA   25
> +#define RESET_VCBUS_CLK8126
> +#define RESET_MMC27
> +/*   28-31   */
> +/*   RESET1  */
> +/*   32  */
> +/*   33  */
> +#define RESET_USB_OTG34
> +#define RESET_DDR35
> +#define RESET_AO_RESET   36
> +/*   37  */
> +#define RESET_AHB_SRAM   38
> +/*   39  */
> +/*   40  */
> +#define RESET_DMA41
> +#define RESET_ISA42
> +#define RESET_ETHERNET   43
> +/*   44  */
> +#define RESET_SD_EMMC_B  45
> +#define RESET_SD_EMMC_C  46
> +#define RESET_ROM_BOOT   47
> +#define RESET_SYS_CPU_0  48
> +#define RESET_SYS_CPU_1  49
> +#define RESET_SYS_CPU_2  50
> +#define RESET_SYS_CPU_3  51
> +#define RESET_SYS_CPU_CORE_0 52
> +#define RESET_SYS_CPU_CORE_1 53
> +#define RESET_SYS_CPU_CORE_2 54
> +#define RESET_SYS_CPU_CORE_3 55
> +#define RESET_SYS_PLL_DIV56
> +#define RESET_SYS_CPU_AXI57
> +#define RESET_SYS_CPU_L2 58
> +#define RESET_SYS_CPU_P  59
> +#define RESET_SYS_CPU_MBIST  60
> +/*   61-63   */
> +/*   RESET2  */
> +/*   64  */
> +/*   65  */
> +#define RESET_AUDIO  66
> +/*   67  */
> +#define RESET_MIPI_HOST  68
> +#define RESET_AUDIO_LOCKER  

Re: [PATCH 1/3] dt-bindings: reset: Add bindings for the Meson-AXG SoC Reset Controller

2017-11-17 Thread Neil Armstrong
On 10/11/2017 09:46, Yixun Lan wrote:
> Add DT bindings for the Meson-AXG SoC Reset Controller include file,
> and also slightly update documentation.
> 
> Signed-off-by: Yixun Lan 
> ---
>  .../bindings/reset/amlogic,meson-reset.txt |   3 +-
>  .../dt-bindings/reset/amlogic,meson-axg-reset.h| 124 
> +
>  2 files changed, 126 insertions(+), 1 deletion(-)
>  create mode 100644 include/dt-bindings/reset/amlogic,meson-axg-reset.h
> 
> diff --git a/Documentation/devicetree/bindings/reset/amlogic,meson-reset.txt 
> b/Documentation/devicetree/bindings/reset/amlogic,meson-reset.txt
> index e746b631793a..28ef6c295c76 100644
> --- a/Documentation/devicetree/bindings/reset/amlogic,meson-reset.txt
> +++ b/Documentation/devicetree/bindings/reset/amlogic,meson-reset.txt
> @@ -5,7 +5,8 @@ Please also refer to reset.txt in this directory for common 
> reset
>  controller binding usage.
>  
>  Required properties:
> -- compatible: Should be "amlogic,meson8b-reset" or "amlogic,meson-gxbb-reset"
> +- compatible: Should be "amlogic,meson8b-reset", "amlogic,meson-gxbb-reset" 
> or
> + "amlogic,meson-axg-reset".
>  - reg: should contain the register address base
>  - #reset-cells: 1, see below
>  
> diff --git a/include/dt-bindings/reset/amlogic,meson-axg-reset.h 
> b/include/dt-bindings/reset/amlogic,meson-axg-reset.h
> new file mode 100644
> index ..ad6f55dabd6d
> --- /dev/null
> +++ b/include/dt-bindings/reset/amlogic,meson-axg-reset.h
> @@ -0,0 +1,124 @@
> +/*
> + *
> + * Copyright (c) 2016 BayLibre, SAS.
> + * Author: Neil Armstrong 
> + *
> + * Copyright (c) 2017 Amlogic, inc.
> + * Author: Yixun Lan 
> + *
> + * SPDX-License-Identifier: (GPL-2.0+ OR BSD)
> + */
> +
> +#ifndef _DT_BINDINGS_AMLOGIC_MESON_AXG_RESET_H
> +#define _DT_BINDINGS_AMLOGIC_MESON_AXG_RESET_H
> +
> +/*   RESET0  */
> +#define RESET_HIU0
> +#define RESET_PCIE_A 1
> +#define RESET_PCIE_B 2
> +#define RESET_DDR_TOP3
> +/*   4   */
> +#define RESET_VIU5
> +#define RESET_PCIE_PHY   6
> +#define RESET_PCIE_APB   7
> +/*   8   */
> +/*   9   */
> +#define RESET_VENC   10
> +#define RESET_ASSIST 11
> +/*   12  */
> +#define RESET_VCBUS  13
> +/*   14  */
> +/*   15  */
> +#define RESET_GIC16
> +#define RESET_CAPB3_DECODE   17
> +/*   18-21   */
> +#define RESET_SYS_CPU_CAPB3  22
> +#define RESET_CBUS_CAPB3 23
> +#define RESET_AHB_CNTL   24
> +#define RESET_AHB_DATA   25
> +#define RESET_VCBUS_CLK8126
> +#define RESET_MMC27
> +/*   28-31   */
> +/*   RESET1  */
> +/*   32  */
> +/*   33  */
> +#define RESET_USB_OTG34
> +#define RESET_DDR35
> +#define RESET_AO_RESET   36
> +/*   37  */
> +#define RESET_AHB_SRAM   38
> +/*   39  */
> +/*   40  */
> +#define RESET_DMA41
> +#define RESET_ISA42
> +#define RESET_ETHERNET   43
> +/*   44  */
> +#define RESET_SD_EMMC_B  45
> +#define RESET_SD_EMMC_C  46
> +#define RESET_ROM_BOOT   47
> +#define RESET_SYS_CPU_0  48
> +#define RESET_SYS_CPU_1  49
> +#define RESET_SYS_CPU_2  50
> +#define RESET_SYS_CPU_3  51
> +#define RESET_SYS_CPU_CORE_0 52
> +#define RESET_SYS_CPU_CORE_1 53
> +#define RESET_SYS_CPU_CORE_2 54
> +#define RESET_SYS_CPU_CORE_3 55
> +#define RESET_SYS_PLL_DIV56
> +#define RESET_SYS_CPU_AXI57
> +#define RESET_SYS_CPU_L2 58
> +#define RESET_SYS_CPU_P  59
> +#define RESET_SYS_CPU_MBIST  60
> +/*   61-63   */
> +/*   RESET2  */
> +/*   64  */
> +/*   65  */
> +#define RESET_AUDIO  66
> +/*   67  */
> +#define RESET_MIPI_HOST  68
> +#define RESET_AUDIO_LOCKER   69
> +#define RESET_GE2D   70
> +/*   

[PATCH 1/3] dt-bindings: reset: Add bindings for the Meson-AXG SoC Reset Controller

2017-11-10 Thread Yixun Lan
Add DT bindings for the Meson-AXG SoC Reset Controller include file,
and also slightly update documentation.

Signed-off-by: Yixun Lan 
---
 .../bindings/reset/amlogic,meson-reset.txt |   3 +-
 .../dt-bindings/reset/amlogic,meson-axg-reset.h| 124 +
 2 files changed, 126 insertions(+), 1 deletion(-)
 create mode 100644 include/dt-bindings/reset/amlogic,meson-axg-reset.h

diff --git a/Documentation/devicetree/bindings/reset/amlogic,meson-reset.txt 
b/Documentation/devicetree/bindings/reset/amlogic,meson-reset.txt
index e746b631793a..28ef6c295c76 100644
--- a/Documentation/devicetree/bindings/reset/amlogic,meson-reset.txt
+++ b/Documentation/devicetree/bindings/reset/amlogic,meson-reset.txt
@@ -5,7 +5,8 @@ Please also refer to reset.txt in this directory for common 
reset
 controller binding usage.
 
 Required properties:
-- compatible: Should be "amlogic,meson8b-reset" or "amlogic,meson-gxbb-reset"
+- compatible: Should be "amlogic,meson8b-reset", "amlogic,meson-gxbb-reset" or
+   "amlogic,meson-axg-reset".
 - reg: should contain the register address base
 - #reset-cells: 1, see below
 
diff --git a/include/dt-bindings/reset/amlogic,meson-axg-reset.h 
b/include/dt-bindings/reset/amlogic,meson-axg-reset.h
new file mode 100644
index ..ad6f55dabd6d
--- /dev/null
+++ b/include/dt-bindings/reset/amlogic,meson-axg-reset.h
@@ -0,0 +1,124 @@
+/*
+ *
+ * Copyright (c) 2016 BayLibre, SAS.
+ * Author: Neil Armstrong 
+ *
+ * Copyright (c) 2017 Amlogic, inc.
+ * Author: Yixun Lan 
+ *
+ * SPDX-License-Identifier: (GPL-2.0+ OR BSD)
+ */
+
+#ifndef _DT_BINDINGS_AMLOGIC_MESON_AXG_RESET_H
+#define _DT_BINDINGS_AMLOGIC_MESON_AXG_RESET_H
+
+/* RESET0  */
+#define RESET_HIU  0
+#define RESET_PCIE_A   1
+#define RESET_PCIE_B   2
+#define RESET_DDR_TOP  3
+/* 4   */
+#define RESET_VIU  5
+#define RESET_PCIE_PHY 6
+#define RESET_PCIE_APB 7
+/* 8   */
+/* 9   */
+#define RESET_VENC 10
+#define RESET_ASSIST   11
+/* 12  */
+#define RESET_VCBUS13
+/* 14  */
+/* 15  */
+#define RESET_GIC  16
+#define RESET_CAPB3_DECODE 17
+/* 18-21   */
+#define RESET_SYS_CPU_CAPB322
+#define RESET_CBUS_CAPB3   23
+#define RESET_AHB_CNTL 24
+#define RESET_AHB_DATA 25
+#define RESET_VCBUS_CLK81  26
+#define RESET_MMC  27
+/* 28-31   */
+/* RESET1  */
+/* 32  */
+/* 33  */
+#define RESET_USB_OTG  34
+#define RESET_DDR  35
+#define RESET_AO_RESET 36
+/* 37  */
+#define RESET_AHB_SRAM 38
+/* 39  */
+/* 40  */
+#define RESET_DMA  41
+#define RESET_ISA  42
+#define RESET_ETHERNET 43
+/* 44  */
+#define RESET_SD_EMMC_B45
+#define RESET_SD_EMMC_C46
+#define RESET_ROM_BOOT 47
+#define RESET_SYS_CPU_048
+#define RESET_SYS_CPU_149
+#define RESET_SYS_CPU_250
+#define RESET_SYS_CPU_351
+#define RESET_SYS_CPU_CORE_0   52
+#define RESET_SYS_CPU_CORE_1   53
+#define RESET_SYS_CPU_CORE_2   54
+#define RESET_SYS_CPU_CORE_3   55
+#define RESET_SYS_PLL_DIV  56
+#define RESET_SYS_CPU_AXI  57
+#define RESET_SYS_CPU_L2   58
+#define RESET_SYS_CPU_P59
+#define RESET_SYS_CPU_MBIST60
+/* 61-63   */
+/* RESET2  */
+/* 64  */
+/* 65  */
+#define RESET_AUDIO66
+/* 67  */
+#define RESET_MIPI_HOST68
+#define RESET_AUDIO_LOCKER 69
+#define RESET_GE2D 70
+/* 71-76   */
+#define RESET_AO_CPU_RESET 77
+/* 78-95   */
+/* RESET3  

[PATCH 1/3] dt-bindings: reset: Add bindings for the Meson-AXG SoC Reset Controller

2017-11-10 Thread Yixun Lan
Add DT bindings for the Meson-AXG SoC Reset Controller include file,
and also slightly update documentation.

Signed-off-by: Yixun Lan 
---
 .../bindings/reset/amlogic,meson-reset.txt |   3 +-
 .../dt-bindings/reset/amlogic,meson-axg-reset.h| 124 +
 2 files changed, 126 insertions(+), 1 deletion(-)
 create mode 100644 include/dt-bindings/reset/amlogic,meson-axg-reset.h

diff --git a/Documentation/devicetree/bindings/reset/amlogic,meson-reset.txt 
b/Documentation/devicetree/bindings/reset/amlogic,meson-reset.txt
index e746b631793a..28ef6c295c76 100644
--- a/Documentation/devicetree/bindings/reset/amlogic,meson-reset.txt
+++ b/Documentation/devicetree/bindings/reset/amlogic,meson-reset.txt
@@ -5,7 +5,8 @@ Please also refer to reset.txt in this directory for common 
reset
 controller binding usage.
 
 Required properties:
-- compatible: Should be "amlogic,meson8b-reset" or "amlogic,meson-gxbb-reset"
+- compatible: Should be "amlogic,meson8b-reset", "amlogic,meson-gxbb-reset" or
+   "amlogic,meson-axg-reset".
 - reg: should contain the register address base
 - #reset-cells: 1, see below
 
diff --git a/include/dt-bindings/reset/amlogic,meson-axg-reset.h 
b/include/dt-bindings/reset/amlogic,meson-axg-reset.h
new file mode 100644
index ..ad6f55dabd6d
--- /dev/null
+++ b/include/dt-bindings/reset/amlogic,meson-axg-reset.h
@@ -0,0 +1,124 @@
+/*
+ *
+ * Copyright (c) 2016 BayLibre, SAS.
+ * Author: Neil Armstrong 
+ *
+ * Copyright (c) 2017 Amlogic, inc.
+ * Author: Yixun Lan 
+ *
+ * SPDX-License-Identifier: (GPL-2.0+ OR BSD)
+ */
+
+#ifndef _DT_BINDINGS_AMLOGIC_MESON_AXG_RESET_H
+#define _DT_BINDINGS_AMLOGIC_MESON_AXG_RESET_H
+
+/* RESET0  */
+#define RESET_HIU  0
+#define RESET_PCIE_A   1
+#define RESET_PCIE_B   2
+#define RESET_DDR_TOP  3
+/* 4   */
+#define RESET_VIU  5
+#define RESET_PCIE_PHY 6
+#define RESET_PCIE_APB 7
+/* 8   */
+/* 9   */
+#define RESET_VENC 10
+#define RESET_ASSIST   11
+/* 12  */
+#define RESET_VCBUS13
+/* 14  */
+/* 15  */
+#define RESET_GIC  16
+#define RESET_CAPB3_DECODE 17
+/* 18-21   */
+#define RESET_SYS_CPU_CAPB322
+#define RESET_CBUS_CAPB3   23
+#define RESET_AHB_CNTL 24
+#define RESET_AHB_DATA 25
+#define RESET_VCBUS_CLK81  26
+#define RESET_MMC  27
+/* 28-31   */
+/* RESET1  */
+/* 32  */
+/* 33  */
+#define RESET_USB_OTG  34
+#define RESET_DDR  35
+#define RESET_AO_RESET 36
+/* 37  */
+#define RESET_AHB_SRAM 38
+/* 39  */
+/* 40  */
+#define RESET_DMA  41
+#define RESET_ISA  42
+#define RESET_ETHERNET 43
+/* 44  */
+#define RESET_SD_EMMC_B45
+#define RESET_SD_EMMC_C46
+#define RESET_ROM_BOOT 47
+#define RESET_SYS_CPU_048
+#define RESET_SYS_CPU_149
+#define RESET_SYS_CPU_250
+#define RESET_SYS_CPU_351
+#define RESET_SYS_CPU_CORE_0   52
+#define RESET_SYS_CPU_CORE_1   53
+#define RESET_SYS_CPU_CORE_2   54
+#define RESET_SYS_CPU_CORE_3   55
+#define RESET_SYS_PLL_DIV  56
+#define RESET_SYS_CPU_AXI  57
+#define RESET_SYS_CPU_L2   58
+#define RESET_SYS_CPU_P59
+#define RESET_SYS_CPU_MBIST60
+/* 61-63   */
+/* RESET2  */
+/* 64  */
+/* 65  */
+#define RESET_AUDIO66
+/* 67  */
+#define RESET_MIPI_HOST68
+#define RESET_AUDIO_LOCKER 69
+#define RESET_GE2D 70
+/* 71-76   */
+#define RESET_AO_CPU_RESET 77
+/* 78-95   */
+/* RESET3  */
+#define RESET_RING_OSCILLATOR  96