devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Tony Lindgren <tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
To: Peter Ujfalusi <peter.ujfalusi-l0cyMroinI0@public.gmane.org>
Cc: linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	"Benoît Cousson"
	<bcousson-rdvid1DuHRBWk0Htik3J/w@public.gmane.org>,
	devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	"Liam Girdwood"
	<lgirdwood-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	"Mark Brown" <broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
	"Mark Rutland" <mark.rutland-5wv7dgnIgG8@public.gmane.org>,
	"Rob Herring" <robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
Subject: Re: [PATCH 11/17] ARM: dts: Add missing mcasp node for omap4
Date: Thu, 31 Aug 2017 07:44:25 -0700	[thread overview]
Message-ID: <20170831144425.GP3930@atomide.com> (raw)
In-Reply-To: <aef213f9-723f-dbf9-f0d2-8b1dd8b1eae1-l0cyMroinI0@public.gmane.org>

* Peter Ujfalusi <peter.ujfalusi-l0cyMroinI0@public.gmane.org> [170830 22:48]:
> On 2017-08-30 18:19, Tony Lindgren wrote:
> > diff --git a/arch/arm/boot/dts/omap4.dtsi b/arch/arm/boot/dts/omap4.dtsi
> > --- a/arch/arm/boot/dts/omap4.dtsi
> > +++ b/arch/arm/boot/dts/omap4.dtsi
> > @@ -775,6 +775,15 @@
> >  			status = "disabled";
> >  		};
> >  
> > +		mcasp: mcasp@40128000 {
> > +			compatible = "ti,omap4-mcasp-audio";
> > +			reg = <0x40128000 0x400>, /* MPU private access */
> > +			      <0x49028000 0x400>; /* L3 Interconnect */
> > +			reg-names = "mpu", "dma";
> > +			interrupts = <GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH>;
> > +			ti,hwmods = "mcasp";
> > +		};
> 
> I would not do this. We don't support the NcASP on OMAP4 or OMAP5 for
> that matter.
> In theory it is the same IP as found in other SoCs, but in OMAP4 the TX
> path is disabled and (in theory) the i2s support is also a thing which
> is not supported - only DIT mode.
> We do not even have any hardware where it can be tested (Galaxy Nexus
> uses McASP for S/PDIF output when it is docked.
> For Android we have had omap-mcasp driver, but it is not upstream and is
> never will as if we are going to support McASP it should be done via the
> davinci-mcasp driver.

OK

> By adding the node we might give the impression that McASP on OMAP4/5 is
> usable, which is not.

OK. Yeah we need to make sure this is for the interconnect
target module, and not for it's child device(s) mcasp.

> On the other hand, the DT describes the HW, so it should be OK to add
> all peripherals even if there is no driver to support it. In this case
> the status = "disabled"; must be there.

Yeah well this is for the interconnect target module that we are
already accessing during init to idle it. But it's actually the
children of this node that should have the status = "disabled"!

I think we can solve your concernd by adding the generic minimal
binding and compatible properites for the interconnect target
module for which I already posted an RFC a while back.

So we can just use compatibles "ti,sysc-type1", "ti,sysc-type2"
and "ti,sysc-type3" as are going to need those anyways soonish.

So the McASP interconnect target module would just become:

	target_module@40128000 {
		compatible = "ti,sysc-type2";
		reg = <0x40128000 0x400>, /* MPU private access */
		      <0x49028000 0x400>; /* L3 Interconnect */
		reg-names = "mpu", "dma";
		ti,hwmods = "mcasp";
	};

And if there ever is a McASP driver, it can be a child of
this node. And eventually we will just drop ti,hwmods too.

Regards,

Tony
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2017-08-31 14:44 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-30 15:19 [PATCHv2 00/17] Fix missing device tree hwmods and IO ranges omap variants Tony Lindgren
     [not found] ` <20170830151953.30856-1-tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2017-08-30 15:19   ` [PATCH 01/17] ARM: dts: Add missing dma hwmods property for omap3 Tony Lindgren
2017-08-30 15:19   ` [PATCH 02/17] ARM: dts: Configure pmu without interrupt for omap4430 Tony Lindgren
2017-08-30 15:19   ` [PATCH 03/17] ARM: dts: Add missing properties for omap4 control modules Tony Lindgren
     [not found]     ` <20170830151953.30856-4-tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2017-09-11 21:08       ` Rob Herring
2017-08-30 15:19   ` [PATCH 04/17] ARM: dts: Add missing hwmods property for omap4 dma Tony Lindgren
2017-08-30 15:19   ` [PATCH 05/17] ARM: dts: Add missing smartreflex node and binding for omap4 Tony Lindgren
     [not found]     ` <20170830151953.30856-6-tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2017-09-11 21:39       ` Rob Herring
2017-08-30 15:19   ` [PATCH 06/17] ARM: dts: Add missing slimbus " Tony Lindgren
     [not found]     ` <20170830151953.30856-7-tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2017-09-11 21:41       ` Rob Herring
2017-08-30 15:19   ` [PATCH 07/17] ARM: dts: Add missing onewire node " Tony Lindgren
2017-08-30 15:19   ` [PATCH 08/17] ARM: dts: Add missing hsi " Tony Lindgren
     [not found]     ` <20170830151953.30856-9-tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2017-08-30 19:37       ` Sebastian Reichel
2017-08-30 20:25         ` Tony Lindgren
     [not found]           ` <20170830202519.GI6008-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2017-10-01 15:25             ` Sebastian Reichel
2017-10-01 16:47               ` Tony Lindgren
2017-09-11 21:42       ` Rob Herring
2017-08-30 15:19   ` [PATCH 09/17] ARM: dts: Add missing iss node and binding " Tony Lindgren
     [not found]     ` <20170830151953.30856-10-tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2017-09-11 21:44       ` Rob Herring
2017-08-30 15:19   ` [PATCH 10/17] ARM: dts: Add missing wdt3 node " Tony Lindgren
2017-08-30 15:19   ` [PATCH 11/17] ARM: dts: Add missing mcasp " Tony Lindgren
     [not found]     ` <20170830151953.30856-12-tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2017-08-31  5:47       ` Peter Ujfalusi
     [not found]         ` <aef213f9-723f-dbf9-f0d2-8b1dd8b1eae1-l0cyMroinI0@public.gmane.org>
2017-08-31 14:44           ` Tony Lindgren [this message]
2017-08-30 15:19   ` [PATCH 12/17] ARM: dts: Add missing aess node and binding " Tony Lindgren
     [not found]     ` <20170830151953.30856-13-tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2017-08-31  5:54       ` Peter Ujfalusi
     [not found]         ` <30241474-5f96-2d94-b1a9-4f163c8a4914-l0cyMroinI0@public.gmane.org>
2017-08-31 14:51           ` Tony Lindgren
2017-08-30 15:19   ` [PATCH 13/17] ARM: dts: Add missing fdif " Tony Lindgren
     [not found]     ` <20170830151953.30856-14-tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2017-08-30 17:05       ` Laurent Pinchart
2017-09-11 21:47       ` Rob Herring
2017-08-30 15:19   ` [PATCH 14/17] ARM: dts: Add missing gpu " Tony Lindgren
     [not found]     ` <20170830151953.30856-15-tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2017-09-11 21:50       ` Rob Herring
2017-12-02  0:18         ` Adam Ford
     [not found]           ` <CAHCN7xL81vq+eUX_mPr7jrxTMBygqLST15okF5hipQDAP0j2PQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-12-02 17:00             ` Tony Lindgren
2017-08-30 15:19   ` [PATCH 15/17] ARM: dts: Add missing dma hwmod property for omap5 Tony Lindgren
2017-08-30 15:19   ` [PATCH 16/17] ARM: dts: Add missing hwmod related nodes for am33xx Tony Lindgren
     [not found]     ` <20170830151953.30856-17-tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2017-09-11 21:51       ` Rob Herring
2017-08-30 15:19   ` [PATCH 17/17] ARM: dts: Add missing hwmod related properties for dra7 Tony Lindgren
  -- strict thread matches above, loose matches on Subject: below --
2017-08-28 21:19 [PATCH 00/17] Fix missing device tree hwmods and IO ranges omap variants Tony Lindgren
     [not found] ` <20170828211918.11573-1-tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2017-08-28 21:19   ` [PATCH 11/17] ARM: dts: Add missing mcasp node for omap4 Tony Lindgren
     [not found]     ` <20170828211918.11573-12-tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2017-09-04  6:55       ` Peter Ujfalusi

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=20170831144425.GP3930@atomide.com \
    --to=tony-4v6ys6ai5vpbdgjk7y7tuq@public.gmane.org \
    --cc=bcousson-rdvid1DuHRBWk0Htik3J/w@public.gmane.org \
    --cc=broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
    --cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=lgirdwood-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=mark.rutland-5wv7dgnIgG8@public.gmane.org \
    --cc=peter.ujfalusi-l0cyMroinI0@public.gmane.org \
    --cc=robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.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).