linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: grant.likely@secretlab.ca (Grant Likely)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 2/8] arm: mach-armada: add source files
Date: Sat, 19 May 2012 00:21:34 -0600	[thread overview]
Message-ID: <20120519062134.4AEB03E046E@localhost> (raw)
In-Reply-To: <4FB225DC.6090805@codethink.co.uk>

On Tue, 15 May 2012 10:46:04 +0100, Ben Dooks <ben.dooks@codethink.co.uk> wrote:
> On 15/05/12 09:54, Thomas Petazzoni wrote:
> > This patch adds basic source files for Marvell Armada SoCs.
> >
> > Signed-off-by: Gregory CLEMENT<gregory.clement@free-electrons.com>
> > Signed-off-by: Thomas Petazzoni<thomas.petazzoni@free-electrons.com>
> > Signed-off-by: Lior Amsalem<alior@marvell.com>
> > ---
> >   arch/arm/boot/dts/a370.dtsi        |   23 ++++
> >   arch/arm/boot/dts/armada.dtsi      |   67 ++++++++++
> >   arch/arm/boot/dts/axp.dtsi         |   43 +++++++
> >   arch/arm/mach-armada/Kconfig       |    5 +
> >   arch/arm/mach-armada/Makefile      |    2 +
> >   arch/arm/mach-armada/Makefile.boot |    1 +
> >   arch/arm/mach-armada/common.c      |   56 +++++++++
> >   arch/arm/mach-armada/common.h      |   27 ++++
> >   arch/arm/mach-armada/irq.c         |  116 +++++++++++++++++
> >   arch/arm/mach-armada/time.c        |  243 ++++++++++++++++++++++++++++++++++++
> >   10 files changed, 583 insertions(+)
> >   create mode 100644 arch/arm/boot/dts/a370.dtsi
> >   create mode 100644 arch/arm/boot/dts/armada.dtsi
> >   create mode 100644 arch/arm/boot/dts/axp.dtsi
> >   create mode 100644 arch/arm/mach-armada/Kconfig
> >   create mode 100644 arch/arm/mach-armada/Makefile
> >   create mode 100644 arch/arm/mach-armada/Makefile.boot
> >   create mode 100644 arch/arm/mach-armada/common.c
> >   create mode 100644 arch/arm/mach-armada/common.h
> >   create mode 100644 arch/arm/mach-armada/irq.c
> >   create mode 100644 arch/arm/mach-armada/time.c
> >
> > diff --git a/arch/arm/boot/dts/a370.dtsi b/arch/arm/boot/dts/a370.dtsi
> > new file mode 100644
> > index 0000000..f11e56a
> > --- /dev/null
> > +++ b/arch/arm/boot/dts/a370.dtsi
> > @@ -0,0 +1,23 @@
> > +/*
> > + * Device Tree Include file for Marvell Armada 370 family SoC
> > + *
> > + * Copyright (C) 2012 Marvell
> > + *
> > + * Lior Amsalem<alior@marvell.com>
> > + * Gregory CLEMENT<gregory.clement@free-electrons.com>
> > + * Thomas Petazzoni<thomas.petazzoni@free-electrons.com>
> > + *
> > + * This file is licensed under the terms of the GNU General Public
> > + * License version 2.  This program is licensed "as is" without any
> > + * warranty of any kind, whether express or implied.
> > + *
> > + * Contains definitions specific to the Armada 370 SoC that are not
> > + * common to all Armada SoCs.
> > + */
> > +
> > +/include/ "armada.dtsi"
> 
> I would use armada_xp.dtsi at the least, we've no way of knowing what
> further Armada devices are going to be produced and whether they will be
> compatible with.
> 
> > +/ {
> > +	model = "Marvell Armada 370 family SoC";
> > +	compatible = "marvell,armada370", "marvell,armada";
> > + };
> 
> Firstly, it is mrvl, not marvell everywhere else in the kernel (see
> MIPS and device tree documentation).
> 
> Secondly, I would strongly advise against using the generic marketing
> name for these devices in the compatible list, "marvell,armada" as we
> have no way of knowing what new devices will come along in the future
> and if they'll be compatible.
> 
> > diff --git a/arch/arm/boot/dts/armada.dtsi b/arch/arm/boot/dts/armada.dtsi
> > new file mode 100644
> > index 0000000..3c99c30
> > --- /dev/null
> > +++ b/arch/arm/boot/dts/armada.dtsi
> > @@ -0,0 +1,67 @@
> > +/*
> > + * Device Tree Include file for Marvell Armada family SoC
> > + *
> > + * Copyright (C) 2012 Marvell
> > + *
> > + * Lior Amsalem<alior@marvell.com>
> > + * Gregory CLEMENT<gregory.clement@free-electrons.com>
> > + * Thomas Petazzoni<thomas.petazzoni@free-electrons.com>
> > + *
> > + * This file is licensed under the terms of the GNU General Public
> > + * License version 2.  This program is licensed "as is" without any
> > + * warranty of any kind, whether express or implied.
> > + *
> > + * This file contains the definitions that are common to the Armada
> > + * 370 and Armada XP SoC.
> 
> I really do not want to see these files in the kernel, we where suppose
> to remove any specific manchine dependency by moving to device tree and
> not push the problem from a board.c to a .dts file.
> 
> Given these really should be part of the bootloader, I am not sure if a
> GPLv2 compliant license is really appropriate for these files. At best
> some form of dual-licensing to allow them to be moved out into a devtree
> repository elsewhere would be useful.
> 
> (Feedback from Grant here would be useful)

Without another repository the kernel tree is the correct place to
put these files.  I certainly don't want them considered as part of
the boot loader either since there needs to be the base expectation
that this data may need to change.  Please do keep them in
arch/arm/boot/dts for now.

g.

  parent reply	other threads:[~2012-05-19  6:21 UTC|newest]

Thread overview: 140+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-15  8:54 [PATCH] arm: Add basic support for new Marvell Armada SoC family Thomas Petazzoni
2012-05-15  8:54 ` [PATCH 1/8] arm: mach-armada: add headers Thomas Petazzoni
2012-05-15  9:16   ` Ben Dooks
2012-05-15 10:57     ` Ben Dooks
2012-05-15 13:21   ` Rob Herring
2012-05-15 18:42   ` Nicolas Pitre
2012-05-15  8:54 ` [PATCH 2/8] arm: mach-armada: add source files Thomas Petazzoni
2012-05-15  9:12   ` Andrew Lunn
2012-05-15  9:17     ` Thomas Petazzoni
2012-05-15  9:54       ` Ben Dooks
2012-05-15 10:00       ` Arnaud Patard (Rtp)
2012-05-15 10:37         ` Ben Dooks
2012-05-15  9:27   ` Andrew Lunn
2012-05-15  9:54     ` Ben Dooks
2012-05-15 12:46       ` Lior Amsalem
2012-05-15  9:46   ` Ben Dooks
2012-05-15  9:59     ` Gregory CLEMENT
2012-05-15 10:03     ` Andrew Lunn
2012-05-19  6:21     ` Grant Likely [this message]
2012-05-16 14:27   ` Ben Dooks
2012-05-16 15:06   ` Ben Dooks
2012-05-15  8:54 ` [PATCH 3/8] arm: mach-armada: add documentation for new device tree bindings Thomas Petazzoni
2012-05-15 11:31   ` Ben Dooks
2012-05-15  8:54 ` [PATCH 4/8] arm: mach-armada: add compilation/configuration changes Thomas Petazzoni
2012-05-15  8:54 ` [PATCH 5/8] arm: mach-armada: add support for Armada 370 board with device tree Thomas Petazzoni
2012-05-15  8:54 ` [PATCH 6/8] arm: mach-armada: add support for Armada XP " Thomas Petazzoni
2012-05-15  9:58   ` Ben Dooks
2012-05-15 13:10     ` Lior Amsalem
2012-05-15 13:19       ` Andrew Lunn
2012-05-15 14:23         ` Arnd Bergmann
2012-05-15 18:37           ` Nicolas Pitre
2012-05-17 23:31           ` Jason Cooper
2012-05-15 13:33       ` Ben Dooks
2012-05-15 13:31     ` Rob Herring
2012-05-15 13:53       ` Ben Dooks
2012-05-15 14:16         ` Thomas Petazzoni
2012-05-15 14:25           ` Arnd Bergmann
2012-05-15 14:29             ` Thomas Petazzoni
2012-05-15 14:35             ` Ben Dooks
2012-05-15 14:53             ` Rob Herring
2012-05-15 15:01               ` Ben Dooks
2012-05-15 15:30                 ` Russell King - ARM Linux
2012-05-15 14:32           ` Ben Dooks
2012-05-15 14:37             ` Arnd Bergmann
2012-05-15 16:31               ` Stephen Warren
2012-05-15 19:41                 ` Arnd Bergmann
2012-05-15 14:58             ` Thomas Petazzoni
2012-05-15 15:07               ` Ben Dooks
2012-05-15 15:32                 ` Arnd Bergmann
2012-05-15 15:46                   ` Thomas Petazzoni
2012-05-15 21:22                     ` Rob Herring
2012-05-15 15:49                   ` Ben Dooks
2012-05-15 19:06                     ` Arnd Bergmann
2012-05-15 15:41                 ` Russell King - ARM Linux
2012-05-15 15:59                   ` Ben Dooks
2012-05-15 16:03                     ` Russell King - ARM Linux
2012-05-17 23:35       ` Jason Cooper
2012-05-18  2:12         ` Rob Herring
2012-05-22 12:00           ` Ben Dooks
2012-05-22 13:34             ` Jason Cooper
2012-05-22 17:06               ` Arnd Bergmann
2012-05-23  2:02                 ` Haojian Zhuang
2012-05-15  8:54 ` [PATCH 7/8] arm: mach-armada: add defconfig Thomas Petazzoni
2012-05-15  9:58   ` Ben Dooks
2012-05-15 12:54     ` Thomas Petazzoni
2012-05-15  8:54 ` [PATCH 8/8] arm: mach-armada: add entry to MAINTAINERS Thomas Petazzoni
2012-05-15  9:18 ` [PATCH] arm: Add basic support for new Marvell Armada SoC family Andrew Lunn
2012-05-15  9:44   ` Thomas Petazzoni
2012-05-15  9:51   ` Ben Dooks
2012-05-15  9:55     ` Thomas Petazzoni
2012-05-15 13:15       ` Andrew Lunn
2012-05-15 14:35       ` Rob Herring
2012-05-15 14:44         ` Thomas Petazzoni
2012-05-15 15:27           ` Arnd Bergmann
2012-05-15 15:39             ` Thomas Petazzoni
2012-05-15 16:26               ` Arnd Bergmann
2012-05-15 21:35                 ` Arnd Bergmann
2012-05-16  0:25                   ` Nicolas Pitre
2012-05-16  5:07                   ` Andrew Lunn
2012-05-16  6:57                     ` Arnd Bergmann
2012-05-16  6:57                   ` Haojian Zhuang
2012-05-16 17:30                   ` Andrew Lunn
2012-05-15 18:20             ` Nicolas Pitre
2012-05-15 16:22           ` Andrew Lunn
2012-05-15 16:25             ` Ben Dooks
2012-05-15 16:30               ` Andrew Lunn
2012-05-15 16:37                 ` Ben Dooks
2012-05-16 11:12           ` Lior Amsalem
2012-05-16 11:36             ` Andrew Lunn
2012-05-16 12:00             ` Arnd Bergmann
2012-05-16 14:55               ` Lior Amsalem
2012-05-16 15:20                 ` Nicolas Pitre
2012-05-16 15:28                 ` Arnd Bergmann
2012-05-16 16:49                   ` Nicolas Pitre
2012-05-16 19:46                     ` Arnd Bergmann
2012-05-16 20:20                       ` Nicolas Pitre
2012-05-16 20:34                         ` Arnd Bergmann
2012-05-18 19:20                           ` Jason Cooper
2012-05-22 12:03                             ` Ben Dooks
2012-05-18 19:18                         ` Jason Cooper
2012-05-18 20:44                           ` Arnd Bergmann
2012-05-18 22:51                             ` Nicolas Pitre
2012-05-19 11:24                               ` Jason Cooper
2012-05-19 17:32                                 ` Arnd Bergmann
2012-05-20  0:45                                   ` Nicolas Pitre
2012-05-20  9:55                                     ` Russell King - ARM Linux
2012-05-20 10:58                                       ` Arnd Bergmann
2012-05-20 11:10                                         ` Russell King - ARM Linux
2012-05-21  1:30                                           ` Jason Cooper
2012-05-21  7:58                                             ` Arnd Bergmann
2012-05-21  9:30                                             ` Russell King - ARM Linux
2012-05-21 15:35                                               ` Jason Cooper
2012-05-21 16:11                                                 ` Russell King - ARM Linux
2012-05-21 16:58                                                   ` Jason Cooper
2012-05-21 19:40                                                     ` Arnd Bergmann
2012-05-22 14:25                                                       ` Nicolas Pitre
2012-05-22 16:03                                                         ` Jason Cooper
2012-05-22 16:06                                                           ` Ben Dooks
2012-05-22 16:16                                                             ` Jason Cooper
2012-05-24 11:18                                                             ` Ben Dooks
2012-05-22 17:09                                                           ` Arnd Bergmann
2012-05-21  8:55                             ` Ben Dooks
2012-05-21  9:16                               ` Andrew Lunn
2012-05-21  9:27                                 ` Ben Dooks
2012-05-21  9:40                                   ` Andrew Lunn
2012-05-21 15:39                                     ` Jason Cooper
2012-05-21 17:27                                       ` Andrew Lunn
2012-05-15 11:06 ` Arnd Bergmann
2012-05-15 12:50   ` Thomas Petazzoni
2012-05-15 16:03   ` Ben Dooks
2012-05-15 11:18 ` Ben Dooks
2012-05-15 12:26   ` Lior Amsalem
2012-05-15 12:51   ` Thomas Petazzoni
2012-05-15 11:20 ` Ben Dooks
2012-05-15 12:29   ` Lior Amsalem
2012-05-15 14:55 ` Ben Dooks
2012-05-15 15:00   ` Thomas Petazzoni
2012-05-15 15:07     ` Ben Dooks
2012-05-15 15:36     ` Ben Dooks
2012-05-15 15:39       ` Thomas Petazzoni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120519062134.4AEB03E046E@localhost \
    --to=grant.likely@secretlab.ca \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).