All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Cousson, Benoit" <b-cousson@ti.com>
To: Suman Anna <s-anna@ti.com>
Cc: Tony Lindgren <tony@atomide.com>, Paul Walmsley <paul@pwsan.com>,
	Ohad Ben-Cohen <ohad@wizery.com>,
	Omar Ramirez Luna <omar.ramirez@copitl.com>,
	Jassi Brar <jaswinder.singh@linaro.org>,
	Loic Pallardy <loic.pallardy@st.com>,
	linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
	devicetree-discuss@lists.ozlabs.org
Subject: Re: [PATCH 3/3] ARM: dts: OMAP2+: Add mailbox nodes
Date: Thu, 20 Jun 2013 16:57:43 -0500	[thread overview]
Message-ID: <51C37AD7.1020309@ti.com> (raw)
In-Reply-To: <1371594900-37640-1-git-send-email-s-anna@ti.com>

On 6/18/2013 5:35 PM, Suman Anna wrote:
> The mailbox DT node data has been added for OMAP2420,
> OMAP2430, OMAP3430/OMAP3630, OMAP44xx devices. Data for
> OMAP5 is skipped for now since the corresponding hwmod
> entry is not present.
>
> The mailbox static device initialization logic is also
> adjusted for a DT boot.
>
> Signed-off-by: Suman Anna <s-anna@ti.com>
> ---
>   arch/arm/boot/dts/omap2420.dtsi | 13 +++++++++++++
>   arch/arm/boot/dts/omap2430.dtsi | 12 ++++++++++++
>   arch/arm/boot/dts/omap3.dtsi    | 12 ++++++++++++
>   arch/arm/boot/dts/omap4.dtsi    | 12 ++++++++++++
>   arch/arm/mach-omap2/devices.c   |  2 +-
>   5 files changed, 50 insertions(+), 1 deletion(-)
>
> diff --git a/arch/arm/boot/dts/omap2420.dtsi b/arch/arm/boot/dts/omap2420.dtsi
> index c8f9c55..e0f4e47 100644
> --- a/arch/arm/boot/dts/omap2420.dtsi
> +++ b/arch/arm/boot/dts/omap2420.dtsi
> @@ -114,6 +114,19 @@
>   			dma-names = "tx", "rx";
>   		};
>
> +		mailbox: mailbox@48094000 {
> +			compatible = "ti,omap2-mailbox";
> +			reg = <0x48094000 0x200>;
> +			interrupts = <26>, /* DSP Interrupt */
> +				     <34>; /* IVA Interrupt */
> +			ti,hwmods = "mailbox";
> +			ti,mbox-num-users = <4>;
> +			ti,mbox-num-fifos = <6>;
> +			#ti,mbox-data-cells = <4>;

If this is always 4, why do you want to expose that?
BTW, I guess that most of these attribute are generic enough to avoid 
the "ti," prefix.

Benoit

> +			ti,mbox-names = "dsp", "iva";
> +			ti,mbox-data = <0 1 0 0>, <2 3 1 3>;
> +		};
> +
>   		timer1: timer@48028000 {
>   			compatible = "ti,omap2420-timer";
>   			reg = <0x48028000 0x400>;
> diff --git a/arch/arm/boot/dts/omap2430.dtsi b/arch/arm/boot/dts/omap2430.dtsi
> index c535a5a..b413423 100644
> --- a/arch/arm/boot/dts/omap2430.dtsi
> +++ b/arch/arm/boot/dts/omap2430.dtsi
> @@ -175,6 +175,18 @@
>   			dma-names = "tx", "rx";
>   		};
>
> +		mailbox: mailbox@48094000 {
> +			compatible = "ti,omap2-mailbox";
> +			reg = <0x48094000 0x200>;
> +			interrupts = <26>;
> +			ti,hwmods = "mailbox";
> +			ti,mbox-num-users = <4>;
> +			ti,mbox-num-fifos = <6>;
> +			#ti,mbox-data-cells = <4>;
> +			ti,mbox-names = "dsp";
> +			ti,mbox-data = <0 1 0 0>;
> +		};
> +
>   		timer1: timer@49018000 {
>   			compatible = "ti,omap2420-timer";
>   			reg = <0x49018000 0x400>;
> diff --git a/arch/arm/boot/dts/omap3.dtsi b/arch/arm/boot/dts/omap3.dtsi
> index 6d05ee0..3cc7c28 100644
> --- a/arch/arm/boot/dts/omap3.dtsi
> +++ b/arch/arm/boot/dts/omap3.dtsi
> @@ -380,6 +380,18 @@
>   			dma-names = "tx", "rx";
>   		};
>
> +		mailbox: mailbox@48094000 {
> +			compatible = "ti,omap2-mailbox";
> +			reg = <0x48094000 0x200>;
> +			interrupts = <26>;
> +			ti,hwmods = "mailbox";
> +			ti,mbox-num-users = <2>;
> +			ti,mbox-num-fifos = <2>;
> +			#ti,mbox-data-cells = <4>;
> +			ti,mbox-names = "dsp";
> +			ti,mbox-data = <0 1 0 0>;
> +		};
> +
>   		timer1: timer@48318000 {
>   			compatible = "ti,omap3430-timer";
>   			reg = <0x48318000 0x400>;
> diff --git a/arch/arm/boot/dts/omap4.dtsi b/arch/arm/boot/dts/omap4.dtsi
> index 463b97d..0155182 100644
> --- a/arch/arm/boot/dts/omap4.dtsi
> +++ b/arch/arm/boot/dts/omap4.dtsi
> @@ -516,6 +516,18 @@
>   			};
>   		};
>
> +		mailbox: mailbox@4a0f4000 {
> +			compatible = "ti,omap4-mailbox";
> +			reg = <0x4a0f4000 0x200>;
> +			interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
> +			ti,hwmods = "mailbox";
> +			ti,mbox-num-users = <3>;
> +			ti,mbox-num-fifos = <8>;
> +			#ti,mbox-data-cells = <4>;
> +			ti,mbox-names = "mbox-ipu", "mbox-dsp";
> +			ti,mbox-data = <0 1 0 0>, <3 2 0 0>;
> +		};
> +
>   		timer1: timer@4a318000 {
>   			compatible = "ti,omap3430-timer";
>   			reg = <0x4a318000 0x80>;
> diff --git a/arch/arm/mach-omap2/devices.c b/arch/arm/mach-omap2/devices.c
> index 73762ac..2058f24 100644
> --- a/arch/arm/mach-omap2/devices.c
> +++ b/arch/arm/mach-omap2/devices.c
> @@ -655,11 +655,11 @@ static int __init omap2_init_devices(void)
>   	omap_init_audio();
>   	omap_init_camera();
>   	omap_init_hdmi_audio();
> -	omap_init_mbox();
>   	/* If dtb is there, the devices will be created dynamically */
>   	if (!of_have_populated_dt()) {
>   		omap_init_control_usb();
>   		omap_init_dmic();
> +		omap_init_mbox();
>   		omap_init_mcpdm();
>   		omap_init_mcspi();
>   		omap_init_sham();
>


WARNING: multiple messages have this Message-ID (diff)
From: b-cousson@ti.com (Cousson, Benoit)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 3/3] ARM: dts: OMAP2+: Add mailbox nodes
Date: Thu, 20 Jun 2013 16:57:43 -0500	[thread overview]
Message-ID: <51C37AD7.1020309@ti.com> (raw)
In-Reply-To: <1371594900-37640-1-git-send-email-s-anna@ti.com>

On 6/18/2013 5:35 PM, Suman Anna wrote:
> The mailbox DT node data has been added for OMAP2420,
> OMAP2430, OMAP3430/OMAP3630, OMAP44xx devices. Data for
> OMAP5 is skipped for now since the corresponding hwmod
> entry is not present.
>
> The mailbox static device initialization logic is also
> adjusted for a DT boot.
>
> Signed-off-by: Suman Anna <s-anna@ti.com>
> ---
>   arch/arm/boot/dts/omap2420.dtsi | 13 +++++++++++++
>   arch/arm/boot/dts/omap2430.dtsi | 12 ++++++++++++
>   arch/arm/boot/dts/omap3.dtsi    | 12 ++++++++++++
>   arch/arm/boot/dts/omap4.dtsi    | 12 ++++++++++++
>   arch/arm/mach-omap2/devices.c   |  2 +-
>   5 files changed, 50 insertions(+), 1 deletion(-)
>
> diff --git a/arch/arm/boot/dts/omap2420.dtsi b/arch/arm/boot/dts/omap2420.dtsi
> index c8f9c55..e0f4e47 100644
> --- a/arch/arm/boot/dts/omap2420.dtsi
> +++ b/arch/arm/boot/dts/omap2420.dtsi
> @@ -114,6 +114,19 @@
>   			dma-names = "tx", "rx";
>   		};
>
> +		mailbox: mailbox at 48094000 {
> +			compatible = "ti,omap2-mailbox";
> +			reg = <0x48094000 0x200>;
> +			interrupts = <26>, /* DSP Interrupt */
> +				     <34>; /* IVA Interrupt */
> +			ti,hwmods = "mailbox";
> +			ti,mbox-num-users = <4>;
> +			ti,mbox-num-fifos = <6>;
> +			#ti,mbox-data-cells = <4>;

If this is always 4, why do you want to expose that?
BTW, I guess that most of these attribute are generic enough to avoid 
the "ti," prefix.

Benoit

> +			ti,mbox-names = "dsp", "iva";
> +			ti,mbox-data = <0 1 0 0>, <2 3 1 3>;
> +		};
> +
>   		timer1: timer at 48028000 {
>   			compatible = "ti,omap2420-timer";
>   			reg = <0x48028000 0x400>;
> diff --git a/arch/arm/boot/dts/omap2430.dtsi b/arch/arm/boot/dts/omap2430.dtsi
> index c535a5a..b413423 100644
> --- a/arch/arm/boot/dts/omap2430.dtsi
> +++ b/arch/arm/boot/dts/omap2430.dtsi
> @@ -175,6 +175,18 @@
>   			dma-names = "tx", "rx";
>   		};
>
> +		mailbox: mailbox at 48094000 {
> +			compatible = "ti,omap2-mailbox";
> +			reg = <0x48094000 0x200>;
> +			interrupts = <26>;
> +			ti,hwmods = "mailbox";
> +			ti,mbox-num-users = <4>;
> +			ti,mbox-num-fifos = <6>;
> +			#ti,mbox-data-cells = <4>;
> +			ti,mbox-names = "dsp";
> +			ti,mbox-data = <0 1 0 0>;
> +		};
> +
>   		timer1: timer at 49018000 {
>   			compatible = "ti,omap2420-timer";
>   			reg = <0x49018000 0x400>;
> diff --git a/arch/arm/boot/dts/omap3.dtsi b/arch/arm/boot/dts/omap3.dtsi
> index 6d05ee0..3cc7c28 100644
> --- a/arch/arm/boot/dts/omap3.dtsi
> +++ b/arch/arm/boot/dts/omap3.dtsi
> @@ -380,6 +380,18 @@
>   			dma-names = "tx", "rx";
>   		};
>
> +		mailbox: mailbox at 48094000 {
> +			compatible = "ti,omap2-mailbox";
> +			reg = <0x48094000 0x200>;
> +			interrupts = <26>;
> +			ti,hwmods = "mailbox";
> +			ti,mbox-num-users = <2>;
> +			ti,mbox-num-fifos = <2>;
> +			#ti,mbox-data-cells = <4>;
> +			ti,mbox-names = "dsp";
> +			ti,mbox-data = <0 1 0 0>;
> +		};
> +
>   		timer1: timer at 48318000 {
>   			compatible = "ti,omap3430-timer";
>   			reg = <0x48318000 0x400>;
> diff --git a/arch/arm/boot/dts/omap4.dtsi b/arch/arm/boot/dts/omap4.dtsi
> index 463b97d..0155182 100644
> --- a/arch/arm/boot/dts/omap4.dtsi
> +++ b/arch/arm/boot/dts/omap4.dtsi
> @@ -516,6 +516,18 @@
>   			};
>   		};
>
> +		mailbox: mailbox at 4a0f4000 {
> +			compatible = "ti,omap4-mailbox";
> +			reg = <0x4a0f4000 0x200>;
> +			interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
> +			ti,hwmods = "mailbox";
> +			ti,mbox-num-users = <3>;
> +			ti,mbox-num-fifos = <8>;
> +			#ti,mbox-data-cells = <4>;
> +			ti,mbox-names = "mbox-ipu", "mbox-dsp";
> +			ti,mbox-data = <0 1 0 0>, <3 2 0 0>;
> +		};
> +
>   		timer1: timer at 4a318000 {
>   			compatible = "ti,omap3430-timer";
>   			reg = <0x4a318000 0x80>;
> diff --git a/arch/arm/mach-omap2/devices.c b/arch/arm/mach-omap2/devices.c
> index 73762ac..2058f24 100644
> --- a/arch/arm/mach-omap2/devices.c
> +++ b/arch/arm/mach-omap2/devices.c
> @@ -655,11 +655,11 @@ static int __init omap2_init_devices(void)
>   	omap_init_audio();
>   	omap_init_camera();
>   	omap_init_hdmi_audio();
> -	omap_init_mbox();
>   	/* If dtb is there, the devices will be created dynamically */
>   	if (!of_have_populated_dt()) {
>   		omap_init_control_usb();
>   		omap_init_dmic();
> +		omap_init_mbox();
>   		omap_init_mcpdm();
>   		omap_init_mcspi();
>   		omap_init_sham();
>

  parent reply	other threads:[~2013-06-20 21:58 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-18 22:35 [PATCH 3/3] ARM: dts: OMAP2+: Add mailbox nodes Suman Anna
2013-06-18 22:35 ` Suman Anna
2013-06-20  2:11 ` Russ Dill
2013-06-20  2:11   ` Russ Dill
2013-06-20 21:57 ` Cousson, Benoit [this message]
2013-06-20 21:57   ` Cousson, Benoit
2013-06-20 22:28   ` Suman Anna
2013-06-20 22:28     ` Suman Anna

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=51C37AD7.1020309@ti.com \
    --to=b-cousson@ti.com \
    --cc=devicetree-discuss@lists.ozlabs.org \
    --cc=jaswinder.singh@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-omap@vger.kernel.org \
    --cc=loic.pallardy@st.com \
    --cc=ohad@wizery.com \
    --cc=omar.ramirez@copitl.com \
    --cc=paul@pwsan.com \
    --cc=s-anna@ti.com \
    --cc=tony@atomide.com \
    /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.