All of lore.kernel.org
 help / color / mirror / Atom feed
From: gregory.clement@free-electrons.com (Gregory CLEMENT)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 3/3 v2] ARM: dts: mvebu: armada-370-xp: Add MBus mappings for all SPI devices
Date: Wed, 27 Jul 2016 16:44:13 +0200	[thread overview]
Message-ID: <8760rrnnsy.fsf@free-electrons.com> (raw)
In-Reply-To: <20160713095519.30790-3-sr@denx.de> (Stefan Roese's message of "Wed, 13 Jul 2016 11:55:19 +0200")

Hi Stefan,
 
 On mer., juil. 13 2016, Stefan Roese <sr@denx.de> wrote:

> This patch adds the static MBus mappings for all supported SPI devices
> (8 per controller) for the direct access SPI mode. They can be configured
> and enabled by setting these MBus mapping in the 'ranges' property of the
> per-board 'soc' node. If nothing is changed here, the default 'normal'
> (indirect) SPI mode is used.
>
> Signed-off-by: Stefan Roese <sr@denx.de>
> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> Cc: Gregory CLEMENT <gregory.clement@free-electrons.com>
> Cc: Andrew Lunn <andrew@lunn.ch>
> Cc: Jason Cooper <jason@lakedaemon.net>
> Cc: Mark Brown <broonie@kernel.org>
> Cc: Arnd Bergmann <arnd@arndb.de>

Applied on mvebu/dt-4.9

Thanks,

Gregory


> ---
> v2:
> - Rebased on v4.7-rc7
> - Added "<" and ">" around all MBUS_ID lines as suggested by Arnd
>
>  arch/arm/boot/dts/armada-370-xp.dtsi | 20 ++++++++++++++++++--
>  1 file changed, 18 insertions(+), 2 deletions(-)
>
> diff --git a/arch/arm/boot/dts/armada-370-xp.dtsi b/arch/arm/boot/dts/armada-370-xp.dtsi
> index a0903cd..3ccedc9 100644
> --- a/arch/arm/boot/dts/armada-370-xp.dtsi
> +++ b/arch/arm/boot/dts/armada-370-xp.dtsi
> @@ -302,7 +302,15 @@
>  		};
>  
>  		spi0: spi at 10600 {
> -			reg = <MBUS_ID(0xf0, 0x01) 0x10600 0x28>;
> +			reg = <MBUS_ID(0xf0, 0x01) 0x10600 0x28>, /* control */
> +			      <MBUS_ID(0x01, 0x1e) 0 0xffffffff>, /* CS0 */
> +			      <MBUS_ID(0x01, 0x5e) 0 0xffffffff>, /* CS1 */
> +			      <MBUS_ID(0x01, 0x9e) 0 0xffffffff>, /* CS2 */
> +			      <MBUS_ID(0x01, 0xde) 0 0xffffffff>, /* CS3 */
> +			      <MBUS_ID(0x01, 0x1f) 0 0xffffffff>, /* CS4 */
> +			      <MBUS_ID(0x01, 0x5f) 0 0xffffffff>, /* CS5 */
> +			      <MBUS_ID(0x01, 0x9f) 0 0xffffffff>, /* CS6 */
> +			      <MBUS_ID(0x01, 0xdf) 0 0xffffffff>; /* CS7 */
>  			#address-cells = <1>;
>  			#size-cells = <0>;
>  			cell-index = <0>;
> @@ -312,7 +320,15 @@
>  		};
>  
>  		spi1: spi at 10680 {
> -			reg = <MBUS_ID(0xf0, 0x01) 0x10680 0x28>;
> +			reg = <MBUS_ID(0xf0, 0x01) 0x10680 0x28>, /* control */
> +			      <MBUS_ID(0x01, 0x1a) 0 0xffffffff>, /* CS0 */
> +			      <MBUS_ID(0x01, 0x5a) 0 0xffffffff>, /* CS1 */
> +			      <MBUS_ID(0x01, 0x9a) 0 0xffffffff>, /* CS2 */
> +			      <MBUS_ID(0x01, 0xda) 0 0xffffffff>, /* CS3 */
> +			      <MBUS_ID(0x01, 0x1b) 0 0xffffffff>, /* CS4 */
> +			      <MBUS_ID(0x01, 0x5b) 0 0xffffffff>, /* CS5 */
> +			      <MBUS_ID(0x01, 0x9b) 0 0xffffffff>, /* CS6 */
> +			      <MBUS_ID(0x01, 0xdb) 0 0xffffffff>; /* CS7 */
>  			#address-cells = <1>;
>  			#size-cells = <0>;
>  			cell-index = <1>;
> -- 
> 2.9.1
>

-- 
Gregory Clement, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

      reply	other threads:[~2016-07-27 14:44 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-13  9:55 [PATCH 1/3 v2] arm: mvebu: Add SPI1 pinctrl defines for Armada XP Stefan Roese
2016-07-13  9:55 ` [PATCH 2/3 v2] ARM: dts: mvebu: A37x/XP/38x/39x: Move SPI controller nodes into 'soc' node Stefan Roese
2016-07-27 14:43   ` Gregory CLEMENT
2016-07-13  9:55 ` [PATCH 3/3 v2] ARM: dts: mvebu: armada-370-xp: Add MBus mappings for all SPI devices Stefan Roese
2016-07-27 14:44   ` Gregory CLEMENT [this message]

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=8760rrnnsy.fsf@free-electrons.com \
    --to=gregory.clement@free-electrons.com \
    --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.