From: arnd@arndb.de (Arnd Bergmann)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 1/4] spi/davinci: add DT binding documentation
Date: Mon, 04 Mar 2013 17:29:16 +0100 [thread overview]
Message-ID: <6918845.dALXSKksQd@wuerfel> (raw)
In-Reply-To: <1362401955-9616-2-git-send-email-prakash.pm@ti.com>
On Monday 04 March 2013 18:29:12 Manjunathappa, Prakash wrote:
> diff --git a/Documentation/devicetree/bindings/spi/spi-davinci.txt b/Documentation/devicetree/bindings/spi/spi-davinci.txt
> new file mode 100644
> index 0000000..a62d7a8
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/spi/spi-davinci.txt
> @@ -0,0 +1,51 @@
> +Davinci SPI controller device bindings
> +
> +Required properties:
> +- #address-cells: number of cells required to define a chip select
> + address on the SPI bus. Should be set to 1.
> +- #size-cells: should be zero.
> +- compatible:
> + - "ti,dm644x-spi" for SPI used similar to that on DM644x SoC family
> + - "ti,da8xx-spi" for SPI used similar to that on DA8xx SoC family
In general, you should avoid wildcards in "compatible" properties.
Better use the number of the first chip that introduced the specific
version of the device.
> +- reg: Offset and length of SPI controller register space
> +- num-cs: Number of chip selects
> +- ti,davinci-spi-intr-line: interrupt line used to connect the SPI
> + IP to the interrupt controller withn the SoC. Possible values
> + are 0 and 1. Manual says one of the two possible interrupt
> + lines can be tied to the interrupt controller. Set this
> + based on a specifc SoC configuration.
> +- interrupts: interrupt number offset at the irq parent
I would not call this an "offset". It is an interrupt descriptor
which may be something other than a simple number.
Unfortunately, there is no way to provide an "invalid" interrupt,
otherwise you could just list both interrupts, out of which at
least one should be valid, and drop the ti,davinci-spi-intr-line
property.
One thing you could do instead though is to use the "interrupt-names"
property to define "irq0" and "irq1" interrupts, and in the
implementation use the first one you find.
Arnd
next prev parent reply other threads:[~2013-03-04 16:29 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-04 12:59 [PATCH v2 0/4] Enable SPI flash support on da850-evm DT kernel Manjunathappa, Prakash
2013-03-04 12:59 ` [PATCH v2 1/4] spi/davinci: add DT binding documentation Manjunathappa, Prakash
2013-03-04 16:29 ` Arnd Bergmann [this message]
2013-03-05 12:56 ` Manjunathappa, Prakash
2013-03-05 13:28 ` Sekhar Nori
2013-03-05 13:45 ` Manjunathappa, Prakash
2013-03-05 19:32 ` Arnd Bergmann
2013-03-11 8:53 ` Manjunathappa, Prakash
2013-03-04 12:59 ` [PATCH v2 2/4] ARM: davinci: da850: add SPI1 DT node Manjunathappa, Prakash
2013-03-04 12:59 ` [PATCH v2 3/4] ARM: davinci: da850: override SPI DT node device name Manjunathappa, Prakash
2013-03-04 12:59 ` [PATCH v2 4/4] ARM: davinci: da850-evm: add SPI flash support Manjunathappa, Prakash
2013-03-04 13:47 ` Manjunathappa, Prakash
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=6918845.dALXSKksQd@wuerfel \
--to=arnd@arndb.de \
--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