All of lore.kernel.org
 help / color / mirror / Atom feed
From: lee.jones@linaro.org (Lee Jones)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 09/19] ARM: ux500: Enable SSP (SPI) for HREF when booting Device Tree
Date: Fri, 14 Sep 2012 10:18:02 +0100	[thread overview]
Message-ID: <20120914091800.GJ3374@gmail.com> (raw)
In-Reply-To: <CACRpkdaC_enpxUFNM_wteAQWKER_naUNUH-s1pJtiGzVFSV+og@mail.gmail.com>

On Mon, Sep 10, 2012 at 04:11:10AM -0700, Linus Walleij wrote:
> On Fri, Sep 7, 2012 at 1:14 PM, Lee Jones <lee.jones@linaro.org> wrote:
> 
> > Here we add a new SSP node to the HREF's Device Tree file which
> > activates the generic one found in the .dtsi file. This will
> > allow probing of the SSP driver when Device Tree is enabled.
> >
> > Signed-off-by: Lee Jones <lee.jones@linaro.org>
> 
> We have to look closer at this.
> 
> There are merged PL022 DT bindings (by Roland Stigge)
> nowadays, see commit 6d3952a7dfa80919842bbe01ac7f693d40a1eb84
> in linux-next:
> 
>  Optional properties:
> +- num-cs : total number of chipselects
>  - cs-gpios : should specify GPIOs used for chipselects.
>    The gpios will be referred to as reg = <index> in the SPI child nodes.
>    If unspecified, a single SPI device without a chip select can be used.
> 
> +SPI slave nodes must be children of the SPI master node and can
> +contain the following properties.
> +
> +- pl022,interface : interface type:
> +       0: SPI
> +       1: Texas Instruments Synchronous Serial Frame Format
> +       2: Microwire (Half Duplex)
> +- pl022,com-mode : polling, interrupt or dma
> +- pl022,rx-level-trig : Rx FIFO watermark level
> +- pl022,tx-level-trig : Tx FIFO watermark level
> +- pl022,ctrl-len : Microwire interface: Control length
> +- pl022,wait-state : Microwire interface: Wait state
> +- pl022,duplex : Microwire interface: Full/Half duplex
> 
> Currently this is defined as auxdata in board-mop500.c
> but notanly cs-gpios (num chipselects) should come from
> device tree instead.
> 
> It appears Roland has written his bindings such that DT
> data augments platform data (yes, I am also getting crazy
> about this prioritization, mea culpa for ACKing this without
> proper discussion) so it appears that you could actually
> use AUXDATA and some stuff in the DT at the same
> time.
> 
> Or you could keep it like this and only have AUXDATA
> as it stands, I just want a discussion about what is the right
> thing to do before we commit to anything.

Sounds fine.

I'll pull this for now.

-- 
Lee Jones
Linaro ST-Ericsson Landing Team Lead
Linaro.org ? Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog

WARNING: multiple messages have this Message-ID (diff)
From: Lee Jones <lee.jones@linaro.org>
To: Linus Walleij <linus.walleij@linaro.org>
Cc: Roland Stigge <stigge@antcom.de>,
	linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org,
	STEricsson_nomadik_linux@list.st.com,
	linus.walleij@stericsson.com, arnd@arndb.de
Subject: Re: [PATCH 09/19] ARM: ux500: Enable SSP (SPI) for HREF when booting Device Tree
Date: Fri, 14 Sep 2012 10:18:02 +0100	[thread overview]
Message-ID: <20120914091800.GJ3374@gmail.com> (raw)
In-Reply-To: <CACRpkdaC_enpxUFNM_wteAQWKER_naUNUH-s1pJtiGzVFSV+og@mail.gmail.com>

On Mon, Sep 10, 2012 at 04:11:10AM -0700, Linus Walleij wrote:
> On Fri, Sep 7, 2012 at 1:14 PM, Lee Jones <lee.jones@linaro.org> wrote:
> 
> > Here we add a new SSP node to the HREF's Device Tree file which
> > activates the generic one found in the .dtsi file. This will
> > allow probing of the SSP driver when Device Tree is enabled.
> >
> > Signed-off-by: Lee Jones <lee.jones@linaro.org>
> 
> We have to look closer at this.
> 
> There are merged PL022 DT bindings (by Roland Stigge)
> nowadays, see commit 6d3952a7dfa80919842bbe01ac7f693d40a1eb84
> in linux-next:
> 
>  Optional properties:
> +- num-cs : total number of chipselects
>  - cs-gpios : should specify GPIOs used for chipselects.
>    The gpios will be referred to as reg = <index> in the SPI child nodes.
>    If unspecified, a single SPI device without a chip select can be used.
> 
> +SPI slave nodes must be children of the SPI master node and can
> +contain the following properties.
> +
> +- pl022,interface : interface type:
> +       0: SPI
> +       1: Texas Instruments Synchronous Serial Frame Format
> +       2: Microwire (Half Duplex)
> +- pl022,com-mode : polling, interrupt or dma
> +- pl022,rx-level-trig : Rx FIFO watermark level
> +- pl022,tx-level-trig : Tx FIFO watermark level
> +- pl022,ctrl-len : Microwire interface: Control length
> +- pl022,wait-state : Microwire interface: Wait state
> +- pl022,duplex : Microwire interface: Full/Half duplex
> 
> Currently this is defined as auxdata in board-mop500.c
> but notanly cs-gpios (num chipselects) should come from
> device tree instead.
> 
> It appears Roland has written his bindings such that DT
> data augments platform data (yes, I am also getting crazy
> about this prioritization, mea culpa for ACKing this without
> proper discussion) so it appears that you could actually
> use AUXDATA and some stuff in the DT at the same
> time.
> 
> Or you could keep it like this and only have AUXDATA
> as it stands, I just want a discussion about what is the right
> thing to do before we commit to anything.

Sounds fine.

I'll pull this for now.

-- 
Lee Jones
Linaro ST-Ericsson Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog

  reply	other threads:[~2012-09-14  9:18 UTC|newest]

Thread overview: 183+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-07 11:14 [PATCH 00/19] First HREF Device Tree enablement patch-set Lee Jones
2012-09-07 11:14 ` Lee Jones
2012-09-07 11:14 ` [PATCH 01/19] ARM: ux500: Add skeleton Device Tree for the HREF reference board Lee Jones
2012-09-07 11:14   ` Lee Jones
2012-09-10  8:47   ` Linus Walleij
2012-09-10  8:47     ` Linus Walleij
2012-09-14  9:37     ` Lee Jones
2012-09-14  9:37       ` Lee Jones
2012-09-14 14:01       ` Linus Walleij
2012-09-14 14:01         ` Linus Walleij
2012-09-07 11:14 ` [PATCH 02/19] ARM: ux500: Add UART support to the HREF Device Tree Lee Jones
2012-09-07 11:14   ` Lee Jones
2012-09-10  8:49   ` Linus Walleij
2012-09-10  8:49     ` Linus Walleij
2012-09-07 11:14 ` [PATCH 03/19] ARM: ux500: Pass SDI DMA information though AUX_DATA to MMCI Lee Jones
2012-09-07 11:14   ` Lee Jones
2012-09-10  8:50   ` Linus Walleij
2012-09-10  8:50     ` Linus Walleij
2012-09-07 11:14 ` [PATCH 04/19] ARM: ux500: Add SDI (MMC) support to the HREF Device Tree Lee Jones
2012-09-07 11:14   ` Lee Jones
2012-09-07 12:29   ` Arnd Bergmann
2012-09-07 12:29     ` Arnd Bergmann
2012-09-07 12:39     ` Lee Jones
2012-09-07 12:39       ` Lee Jones
2012-09-10  9:51   ` Linus Walleij
2012-09-10  9:51     ` Linus Walleij
2012-09-07 11:14 ` [PATCH 05/19] ARM: ux500: Stop registering HREF's SDI devices from platform data Lee Jones
2012-09-07 11:14   ` Lee Jones
2012-09-07 12:30   ` Arnd Bergmann
2012-09-07 12:30     ` Arnd Bergmann
2012-09-07 11:14 ` [PATCH 06/19] ARM: ux500: Add nodes for the MSP into the HREF Device Tree Lee Jones
2012-09-07 11:14   ` Lee Jones
2012-09-10  9:53   ` Linus Walleij
2012-09-10  9:53     ` Linus Walleij
2012-09-14  9:23     ` Lee Jones
2012-09-14  9:23       ` Lee Jones
2012-09-14 14:00       ` Linus Walleij
2012-09-14 14:00         ` Linus Walleij
2012-09-07 11:14 ` [PATCH 07/19] ARM: ux500: Add all encompassing sound node to " Lee Jones
2012-09-07 11:14   ` Lee Jones
2012-09-10  9:56   ` Linus Walleij
2012-09-10  9:56     ` Linus Walleij
2012-09-14  9:20     ` Lee Jones
2012-09-14  9:20       ` Lee Jones
2012-09-07 11:14 ` [PATCH 08/19] ARM: ux500: Stop registering Audio devices for HREF when DT is enabled Lee Jones
2012-09-07 11:14   ` Lee Jones
2012-09-10  9:57   ` Linus Walleij
2012-09-10  9:57     ` Linus Walleij
2012-09-07 11:14 ` [PATCH 09/19] ARM: ux500: Enable SSP (SPI) for HREF when booting Device Tree Lee Jones
2012-09-07 11:14   ` Lee Jones
2012-09-10 11:11   ` Linus Walleij
2012-09-10 11:11     ` Linus Walleij
2012-09-14  9:18     ` Lee Jones [this message]
2012-09-14  9:18       ` Lee Jones
2012-09-17 17:03     ` Roland Stigge
2012-09-17 17:03       ` Roland Stigge
     [not found]       ` <505757D8.8090405-uj/7R2tJ6VmzQB+pC5nmwQ@public.gmane.org>
2012-09-18 12:08         ` Linus Walleij
2012-09-18 12:08           ` Linus Walleij
2012-09-18 12:08           ` Linus Walleij
2012-09-18 12:13           ` Roland Stigge
2012-09-18 12:13             ` Roland Stigge
2012-09-07 11:14 ` [PATCH 10/19] ARM: ux500: Remove redundant #gpio-cell properties from HREF and Snowball DT Lee Jones
2012-09-07 11:14   ` Lee Jones
2012-09-10 11:12   ` Linus Walleij
2012-09-10 11:12     ` Linus Walleij
2012-09-14  9:10     ` Lee Jones
2012-09-14  9:10       ` Lee Jones
2012-09-14 13:58       ` Linus Walleij
2012-09-14 13:58         ` Linus Walleij
2012-09-07 11:14 ` [PATCH 11/19] ARM: ux500: Add all known I2C sub-device nodes to the HREF DT Lee Jones
2012-09-07 11:14   ` Lee Jones
2012-09-10 11:34   ` Linus Walleij
2012-09-10 11:34     ` Linus Walleij
2012-09-14  8:47     ` Lee Jones
2012-09-14  8:47       ` Lee Jones
2012-09-20  6:51       ` Linus Walleij
2012-09-20  6:51         ` Linus Walleij
2012-09-18 15:49     ` Lee Jones
2012-09-18 15:49       ` Lee Jones
     [not found] ` <1347016499-29354-1-git-send-email-lee.jones-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2012-09-07 11:14   ` [PATCH 12/19] i2c-nomadik: Register sub-devices when passed via Device Tree Lee Jones
2012-09-07 11:14     ` Lee Jones
2012-09-07 11:14     ` Lee Jones
     [not found]     ` <1347016499-29354-13-git-send-email-lee.jones-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2012-09-10 11:42       ` Linus Walleij
2012-09-10 11:42         ` Linus Walleij
2012-09-10 11:42         ` Linus Walleij
2012-09-12 10:52         ` Wolfram Sang
2012-09-12 10:52           ` Wolfram Sang
2012-09-14  8:27           ` Lee Jones
2012-09-14  8:27             ` Lee Jones
     [not found]             ` <20120914082754.GE3374-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2012-09-14  8:41               ` Wolfram Sang
2012-09-14  8:41                 ` Wolfram Sang
2012-09-14  8:41                 ` Wolfram Sang
     [not found]                 ` <20120914084141.GA2630-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2012-09-14  9:02                   ` Lee Jones
2012-09-14  9:02                     ` Lee Jones
2012-09-14  9:02                     ` Lee Jones
2012-09-14  9:39                     ` Wolfram Sang
2012-09-14  9:39                       ` Wolfram Sang
     [not found]                       ` <20120914093945.GB2630-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2012-09-14 10:15                         ` Lee Jones
2012-09-14 10:15                           ` Lee Jones
2012-09-14 10:15                           ` Lee Jones
2012-09-14 11:32                           ` Wolfram Sang
2012-09-14 11:32                             ` Wolfram Sang
     [not found]                             ` <20120914113212.GD2630-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2012-09-19 20:12                               ` Lee Jones
2012-09-19 20:12                                 ` Lee Jones
2012-09-19 20:12                                 ` Lee Jones
     [not found]                                 ` <20120919201220.GA5035-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2012-10-06 11:25                                   ` Wolfram Sang
2012-10-06 11:25                                     ` Wolfram Sang
2012-10-06 11:25                                     ` Wolfram Sang
     [not found]         ` <CACRpkdaCrus9SOpxyK+kV2gKr3sEZJsHCn6ivn2gA3ri0rcvHw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-09-14  8:22           ` Lee Jones
2012-09-14  8:22             ` Lee Jones
2012-09-14  8:22             ` Lee Jones
2012-09-07 11:14 ` [PATCH 13/19] ARM: ux500: Stop registering I2C sub-devices for HREF when DT is enabled Lee Jones
2012-09-07 11:14   ` Lee Jones
2012-09-10 12:56   ` Linus Walleij
2012-09-10 12:56     ` Linus Walleij
2012-09-07 11:14 ` [PATCH 14/19] ARM: ux500: Apply tc3589x's GPIO/IRQ properties to HREF's DT Lee Jones
2012-09-07 11:14   ` Lee Jones
2012-09-10 12:58   ` Linus Walleij
2012-09-10 12:58     ` Linus Walleij
2012-09-14  8:33     ` Lee Jones
2012-09-14  8:33       ` Lee Jones
2012-09-07 11:14 ` [PATCH 15/19] mfd: Don't convert just one IRQ using irqdomain if a range is provided Lee Jones
2012-09-07 11:14   ` Lee Jones
2012-09-07 12:35   ` Arnd Bergmann
2012-09-07 12:35     ` Arnd Bergmann
2012-09-07 12:46     ` Lee Jones
2012-09-07 12:46       ` Lee Jones
2012-09-07 13:37       ` Arnd Bergmann
2012-09-07 13:37         ` Arnd Bergmann
2012-09-07 13:43         ` Lee Jones
2012-09-07 13:43           ` Lee Jones
2012-09-07 13:57           ` Arnd Bergmann
2012-09-07 13:57             ` Arnd Bergmann
2012-09-17 13:45             ` Samuel Ortiz
2012-09-17 13:45               ` Samuel Ortiz
2012-09-17 14:11               ` Lee Jones
2012-09-17 14:11                 ` Lee Jones
2012-09-21 22:20                 ` Samuel Ortiz
2012-09-21 22:20                   ` Samuel Ortiz
2012-09-07 11:14 ` [PATCH 16/19] mfd: Provide the tc3589x with its own IRQ domain Lee Jones
2012-09-07 11:14   ` Lee Jones
2012-09-10 13:05   ` Linus Walleij
2012-09-10 13:05     ` Linus Walleij
2012-09-16 23:45   ` Samuel Ortiz
2012-09-16 23:45     ` Samuel Ortiz
2012-09-07 11:14 ` [PATCH 17/19] mfd: Enable the tc3589x for Device Tree Lee Jones
2012-09-07 11:14   ` Lee Jones
2012-09-10 13:08   ` Linus Walleij
2012-09-10 13:08     ` Linus Walleij
2012-09-16 23:45   ` Samuel Ortiz
2012-09-16 23:45     ` Samuel Ortiz
2012-09-07 11:14 ` [PATCH 18/19] gpio: Provide the tc3589x GPIO expander driver with an IRQ domain Lee Jones
2012-09-07 11:14   ` Lee Jones
2012-09-10 13:10   ` Linus Walleij
2012-09-10 13:10     ` Linus Walleij
2012-09-12 13:04     ` Linus Walleij
2012-09-12 13:04       ` Linus Walleij
2012-09-14  8:14     ` Lee Jones
2012-09-14  8:14       ` Lee Jones
2012-09-12 21:21   ` Linus Walleij
2012-09-12 21:21     ` Linus Walleij
2012-09-07 11:14 ` [PATCH 19/19] gpio: Enable the tc3298x GPIO expander driver for Device Tree Lee Jones
2012-09-07 11:14   ` Lee Jones
2012-09-10 13:20   ` Linus Walleij
2012-09-10 13:20     ` Linus Walleij
2012-09-12 21:21   ` Linus Walleij
2012-09-12 21:21     ` Linus Walleij
2012-09-07 12:41 ` [PATCH 00/19] First HREF Device Tree enablement patch-set Arnd Bergmann
2012-09-07 12:41   ` Arnd Bergmann
2012-09-07 13:01   ` Lee Jones
2012-09-07 13:01     ` Lee Jones
2012-09-07 13:58     ` Arnd Bergmann
2012-09-07 13:58       ` Arnd Bergmann
2012-09-07 14:22       ` Lee Jones
2012-09-07 14:22         ` Lee Jones
2012-09-10  8:41       ` Linus Walleij
2012-09-10  8:41         ` Linus Walleij
2012-09-10 10:13         ` Arnd Bergmann
2012-09-10 10:13           ` Arnd Bergmann
2012-09-10 11:29           ` Linus Walleij
2012-09-10 11:29             ` Linus Walleij
2012-09-10 13:49             ` Arnd Bergmann
2012-09-10 13:49               ` Arnd Bergmann

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=20120914091800.GJ3374@gmail.com \
    --to=lee.jones@linaro.org \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.