Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1229556

Re: [PATCH 2/3] ASoC: da7219: Add bindings documentation for DA7219 audio codec

From Mark Brown <broonie@kernel.org>
Newsgroups linux.kernel
Subject Re: [PATCH 2/3] ASoC: da7219: Add bindings documentation for DA7219 audio codec
Date 2015-09-21 18:50 +0200
Message-ID <qbcrU-3RU-5@gated-at.bofh.it> (permalink)
References <q9JV0-bo-19@gated-at.bofh.it> <q9JV1-bo-59@gated-at.bofh.it> <qaAPE-JA-17@gated-at.bofh.it> <qb6FQ-42w-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

On Mon, Sep 21, 2015 at 10:36:04AM +0000, Opensource [Adam Thomson] wrote:
> On September 19, 2015 18:10, Mark Brown wrote:

> > > +- dlg,cp-mchange : Charge pump voltage tracking mode
> > > +	["largest_vol", "dac_vol", "sig_mag"]
> > > +- dlg,cp-vol-thresh : Charge pump volume threshold value (6-bit value)
> > > +	[ 0 - 0x3F ]

> > Why are these in the device tree rather than runtime parameters?

> From previous internal discussions, these seemed to be fire and forget
> parameters, hence their inclusion in the DT binding, rather than as controls.
> Personally didn't see either needing runtime updates.

Make them runtime configurable.  People can do an at boot runtime
configuration if they like.

> 
> > > +Required properties:
> > > +- interrupt-parent : Specifies the phandle of the interrupt controller to which
> > > +  the IRQs from DA7219 AAD block are delivered to.
> > > +- interrupts : IRQ line info for DA7219 AAD block.
> > > +  (See Documentation/devicetree/bindings/interrupt-controller/interrupts.txt for
> > > +   further information relating to interrupt properties)

> > Why is this not specified at the device level (the device does not
> > appear to support other interrupts)?

> Given the way that the driver code was structured, and that the IRQ is only used
> for accessory detection, I added it to the child node. The other option would
> be to flatten out bindings, and remove the child node. Felt like keeping the
> accessory detect items separate though was a sensible approach. What is your
> feeling on this?

The child node is fine for collecting the parameters but the chip
interrupt line should be at the chip level.

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH 2/3] ASoC: da7219: Add bindings documentation for DA7219 audio  codec Adam Thomson <Adam.Thomson.Opensource@diasemi.com> - 2015-09-17 18:10 +0200
  Re: [PATCH 2/3] ASoC: da7219: Add bindings documentation for DA7219  audio codec Mark Brown <broonie@kernel.org> - 2015-09-20 02:40 +0200
    RE: [PATCH 2/3] ASoC: da7219: Add bindings documentation for DA7219  audio codec "Opensource [Adam Thomson]" <Adam.Thomson.Opensource@diasemi.com> - 2015-09-21 12:40 +0200
      Re: [PATCH 2/3] ASoC: da7219: Add bindings documentation for DA7219  audio codec Mark Brown <broonie@kernel.org> - 2015-09-21 18:50 +0200

csiph-web