[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20130828121320.GK6617@n2100.arm.linux.org.uk>
Date: Wed, 28 Aug 2013 13:13:20 +0100
From: Russell King - ARM Linux <linux@....linux.org.uk>
To: Thomas Petazzoni <thomas.petazzoni@...e-electrons.com>
Cc: Sebastian Hesselbarth <sebastian.hesselbarth@...il.com>,
Jean-Francois Moine <moinejf@...e.fr>,
Mark Rutland <mark.rutland@....com>,
devicetree@...r.kernel.org, Jason Cooper <jason@...edaemon.net>,
Pawel Moll <pawel.moll@....com>,
Stephen Warren <swarren@...dotorg.org>,
linux-kernel@...r.kernel.org,
Rob Herring <rob.herring@...xeda.com>,
Gregory CLEMENT <gregory.clement@...e-electrons.com>,
linux-arm-kernel@...ts.infradead.org,
Ian Campbell <ian.campbell@...rix.com>
Subject: Re: [PATCH 1/2] ARM: Dove: Add the audio devices in DT
On Wed, Aug 28, 2013 at 01:58:27PM +0200, Thomas Petazzoni wrote:
> Dear Sebastian Hesselbarth,
>
> On Wed, 28 Aug 2013 13:44:51 +0200, Sebastian Hesselbarth wrote:
>
> > > For 3.12, right? So 3.12 hasn't been released yet, so it's still time
> > > to fix this.
> >
> > I guess, yes.
>
> Jean-François, could you cook and submit a patch to change the
> compatible string?
I don't think this is a good idea. The configuration of this IP is
not based on the SoC as a single SoC can have a mixture of different
configurations.
I think marvell,mvebu-audio is a reasonable compatible string for this,
and that the different configurations should be described by properties
indicating which inputs and outputs have been implemented.
For instance, on the Dove, there are two of these blocks. One has I2S
in and out only, but the other block has I2S in and out, and SPDIF out.
On some other Marvell devices, this block has I2S in and out and SPDIF
in and out.
Otherwise, they're functionally the same.
> Though, if the difference between the two units is the availability of
> SPDIF support, then we shouldn't encode the channel number, but instead
> the availability of SPDIF, i.e:
>
> audio0 {
> reg = <... ...>;
> compatible = "marvell,kirkwood-audio";
> marvell,has-spdif;
> };
>
> audio1 {
> reg = <... ...>;
> compatible = "marvell,kirkwood-audio";
> };
... which means there's no problem with using marvell,mvebu-audio as the
compatible string if you're going to use properties to describe what
facilities are available.
In any case "marvell,has-spdif" is too generic - as I've indicated above,
there's versions with spdif out, and other versions with spdif in and
out.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists