Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1387328
| From | Peter Griffin <peter.griffin@linaro.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 09/18] ASoC: sti: Update DT example to match the driver code |
| Date | 2016-04-26 12:20 +0200 |
| Message-ID | <rs8g2-5TZ-19@gated-at.bofh.it> (permalink) |
| References | <rqkEG-8dU-7@gated-at.bofh.it> <rqkEH-8dU-29@gated-at.bofh.it> <rqkY3-8lx-25@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Hi Arnd, On Thu, 21 Apr 2016, Arnd Bergmann wrote: > On Thursday 21 April 2016 12:04:26 Peter Griffin wrote: > > uniperiph-id, version and mode are ST specific bindings and > > need the 'st,' prefix. Update the examples, as otherwise copying > > them yields a runtime error parsing the DT node. > > > > Signed-off-by: Peter Griffin <peter.griffin@linaro.org> > > Cc: arnaud.pouliquen@st.com > > --- > > .../devicetree/bindings/sound/st,sti-asoc-card.txt | 14 +++++++------- > > 1 file changed, 7 insertions(+), 7 deletions(-) > > > > diff --git a/Documentation/devicetree/bindings/sound/st,sti-asoc-card.txt b/Documentation/devicetree/bindings/sound/st,sti-asoc-card.txt > > index 028fa1c..ef2e0c6 100644 > > --- a/Documentation/devicetree/bindings/sound/st,sti-asoc-card.txt > > +++ b/Documentation/devicetree/bindings/sound/st,sti-asoc-card.txt > > @@ -67,9 +67,9 @@ Example: > > dmas = <&fdma0 4 0 1>; > > dai-name = "Uni Player #1 (DAC)"; > > dma-names = "tx"; > > - uniperiph-id = <2>; > > - version = <5>; > > - mode = "PCM"; > > + st,uniperiph-id = <2>; > > + st,version = <5>; > > + st,mode = "PCM"; > > }; > > You don't change the binding desciption here, only the example, > so they no longer match. Whoops. Will fix that in v4. > > What is st,uniperiph-id needed for anyway? It's often an indication > that you are doing something wrong if you need this. From looking at the code in sound/soc/sti/uniperif_player.c, there is one sysconf register called "Audio glue config" which is shared by all of the uniperif IP instances. This binding is being used to generate a bitoffset into this shared register based on the instance of the IP. I guess the alternative is to have an explosion of compatibles? st,sti-uni-player-1 st,sti-uni-player-2 st,sti-uni-player-3 If not what would you recommend instead? :-) I don't currently have access to the functional spec for this IP block, but I have asked ST to send it to me to see if there is any other way to derive this information (although I suspect there won't be). FYI I didn't actually write or upstream that driver. However fdma is a depedency of the ASoC driver and it is required to get working audio upstream. It's also worth pointing out that this ASoC driver has been merged for a while, so I'm not sure what your opinion is of now changing the DT bindings? Obviously it is currently not used by anyone upstream due to the missing fdma depedency. regards, Peter.
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 09/18] ASoC: sti: Update DT example to match the driver code Peter Griffin <peter.griffin@linaro.org> - 2016-04-21 13:10 +0200
Re: [PATCH 09/18] ASoC: sti: Update DT example to match the driver code Arnd Bergmann <arnd@arndb.de> - 2016-04-21 13:30 +0200
Re: [PATCH 09/18] ASoC: sti: Update DT example to match the driver code Peter Griffin <peter.griffin@linaro.org> - 2016-04-26 12:20 +0200
Re: [PATCH 09/18] ASoC: sti: Update DT example to match the driver code Arnd Bergmann <arnd@arndb.de> - 2016-04-26 13:00 +0200
Re: [PATCH 09/18] ASoC: sti: Update DT example to match the driver code Peter Griffin <peter.griffin@linaro.org> - 2016-04-26 13:20 +0200
Re: [PATCH 09/18] ASoC: sti: Update DT example to match the driver code Arnd Bergmann <arnd@arndb.de> - 2016-04-26 13:50 +0200
Re: [PATCH 09/18] ASoC: sti: Update DT example to match the driver code Mark Brown <broonie@kernel.org> - 2016-04-21 18:00 +0200
Re: [PATCH 09/18] ASoC: sti: Update DT example to match the driver code Peter Griffin <peter.griffin@linaro.org> - 2016-04-26 13:10 +0200
csiph-web