Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1273150 > unrolled thread
| Started by | Adam Thomson <Adam.Thomson.Opensource@diasemi.com> |
|---|---|
| First post | 2015-11-19 15:10 +0100 |
| Last post | 2015-11-23 13:00 +0100 |
| Articles | 4 — 4 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH v3 1/2] ASoC: da7218: Add bindings documentation for DA7218 audio codec Adam Thomson <Adam.Thomson.Opensource@diasemi.com> - 2015-11-19 15:10 +0100
Re: [PATCH v3 1/2] ASoC: da7218: Add bindings documentation for DA7218 audio codec Rob Herring <robh@kernel.org> - 2015-11-20 17:00 +0100
Re: [PATCH v3 1/2] ASoC: da7218: Add bindings documentation for DA7218 audio codec Mark Brown <broonie@kernel.org> - 2015-11-21 14:00 +0100
RE: [PATCH v3 1/2] ASoC: da7218: Add bindings documentation for DA7218 audio codec "Opensource [Adam Thomson]" <Adam.Thomson.Opensource@diasemi.com> - 2015-11-23 13:00 +0100
| From | Adam Thomson <Adam.Thomson.Opensource@diasemi.com> |
|---|---|
| Date | 2015-11-19 15:10 +0100 |
| Subject | [PATCH v3 1/2] ASoC: da7218: Add bindings documentation for DA7218 audio codec |
| Message-ID | <qwy4q-1Ur-3@gated-at.bofh.it> |
Signed-off-by: Adam Thomson <Adam.Thomson.Opensource@diasemi.com>
---
Documentation/devicetree/bindings/sound/da7218.txt | 104 +++++++++++++++++++++
1 file changed, 104 insertions(+)
create mode 100644 Documentation/devicetree/bindings/sound/da7218.txt
diff --git a/Documentation/devicetree/bindings/sound/da7218.txt b/Documentation/devicetree/bindings/sound/da7218.txt
new file mode 100644
index 0000000..18f8f09
--- /dev/null
+++ b/Documentation/devicetree/bindings/sound/da7218.txt
@@ -0,0 +1,104 @@
+Dialog Semiconductor DA7218 Audio Codec bindings
+
+DA7218 is an audio codec with HP detect feature.
+
+======
+
+Required properties:
+- compatible : Should be "dlg,da7217" or "dlg,da7218"
+- reg: Specifies the I2C slave address
+
+- VDD-supply: VDD power supply for the device
+- VDDMIC-supply: VDDMIC power supply for the device
+- VDDIO-supply: VDDIO power supply for the device
+ (See Documentation/devicetree/bindings/regulator/regulator.txt for further
+ information relating to regulators)
+
+Optional properties:
+- interrupt-parent: Specifies the phandle of the interrupt controller to which
+ the IRQs from DA7218 are delivered to.
+- interrupts: IRQ line info for DA7218 chip.
+ (See Documentation/devicetree/bindings/interrupt-controller/interrupts.txt for
+ further information relating to interrupt properties)
+- interrupt-names : Name associated with interrupt line. Should be "wakeup" if
+ interrupt is to be used to wake system, otherwise "irq" should be used.
+- wakeup-source: Flag to indicate this device can wake system (suspend/resume).
+
+- clocks : phandle and clock specifier for codec MCLK.
+- clock-names : Clock name string for 'clocks' attribute, should be "mclk".
+
+- dlg,micbias1-lvl-millivolt : Voltage (mV) for Mic Bias 1
+ [<1200>, <1600>, <1800>, <2000>, <2200>, <2400>, <2600>, <2800>, <3000>]
+- dlg,micbias2-lvl-millivolt : Voltage (mV) for Mic Bias 2
+ [<1200>, <1600>, <1800>, <2000>, <2200>, <2400>, <2600>, <2800>, <3000>]
+- dlg,mic1-amp-in-sel : Mic1 input source type
+ ["diff", "se_p", "se_n"]
+- dlg,mic2-amp-in-sel : Mic2 input source type
+ ["diff", "se_p", "se_n"]
+- dlg,dmic1-data-sel : DMIC1 channel select based on clock edge.
+ ["lrise_rfall", "lfall_rrise"]
+- dlg,dmic1-samplephase : When to sample audio from DMIC1.
+ ["on_clkedge", "between_clkedge"]
+- dlg,dmic1-clkrate-hertz : DMic1 clock frequency (Hz).
+ [<1500000>, <3000000>]
+- dlg,dmic2-data-sel : DMic2 channel select based on clock edge.
+ ["lrise_rfall", "lfall_rrise"]
+- dlg,dmic2-samplephase : When to sample audio from DMic2.
+ ["on_clkedge", "between_clkedge"]
+- dlg,dmic2-clkrate-hertz : DMic2 clock frequency (Hz).
+ [<1500000>, <3000000>]
+- dlg,hp-diff-single-supply : Boolean flag, use single supply for HP
+ (DA7217 only)
+
+======
+
+Optional Child node - 'da7218_hpldet' (DA7218 only):
+
+Optional properties:
+- dlg,jack-rate-microsecond : Time between jack detect measurements (us)
+ [<5>, <10>, <20>, <40>, <80>, <160>, <320>, <640>]
+- dlg,jack-debounce : Number of debounce measurements taken for jack detect
+ [<0>, <2>, <3>, <4>]
+- dlg,jack-threshold-percent : Threshold level for jack detection (% of VDD)
+ [<84>, <88>, <92>, <96>]
+- dlg,comp-inv : Boolean flag, invert comparator output
+- dlg,hyst : Boolean flag, enable hysteresis
+- dlg,discharge : Boolean flag, auto discharge of Mic Bias on jack removal
+
+======
+
+Example:
+
+ codec: da7218@1a {
+ compatible = "dlg,da7218";
+ reg = <0x1a>;
+ interrupt-parent = <&gpio6>;
+ interrupts = <11 IRQ_TYPE_LEVEL_HIGH>;
+ wakeup-source;
+
+ VDD-supply = <®_audio>;
+ VDDMIC-supply = <®_audio>;
+ VDDIO-supply = <®_audio>;
+
+ clocks = <&clks 201>;
+ clock-names = "mclk";
+
+ dlg,micbias1-lvl-millivolt = <2600>;
+ dlg,micbias2-lvl-millivolt = <2600>;
+ dlg,mic1-amp-in-sel = "diff";
+ dlg,mic2-amp-in-sel = "diff";
+
+ dlg,dmic1-data-sel = "lrise_rfall";
+ dlg,dmic1-samplephase = "on_clkedge";
+ dlg,dmic1-clkrate-hertz = <3000000>;
+ dlg,dmic2-data-sel = "lrise_rfall";
+ dlg,dmic2-samplephase = "on_clkedge";
+ dlg,dmic2-clkrate-hertz = <3000000>;
+
+ da7218_hpldet {
+ dlg,jack-rate-microsecond = <40>;
+ dlg,jack-debounce = <2>;
+ dlg,jack-threshold-percent = <84>;
+ dlg,hyst;
+ };
+ };
--
1.9.3
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[toc] | [next] | [standalone]
| From | Rob Herring <robh@kernel.org> |
|---|---|
| Date | 2015-11-20 17:00 +0100 |
| Subject | Re: [PATCH v3 1/2] ASoC: da7218: Add bindings documentation for DA7218 audio codec |
| Message-ID | <qwWgp-IS-11@gated-at.bofh.it> |
| In reply to | #1273150 |
On Thu, Nov 19, 2015 at 01:59:34PM +0000, Adam Thomson wrote: > Signed-off-by: Adam Thomson <Adam.Thomson.Opensource@diasemi.com> > --- > Documentation/devicetree/bindings/sound/da7218.txt | 104 +++++++++++++++++++++ > 1 file changed, 104 insertions(+) > create mode 100644 Documentation/devicetree/bindings/sound/da7218.txt > > diff --git a/Documentation/devicetree/bindings/sound/da7218.txt b/Documentation/devicetree/bindings/sound/da7218.txt > new file mode 100644 > index 0000000..18f8f09 > --- /dev/null > +++ b/Documentation/devicetree/bindings/sound/da7218.txt > @@ -0,0 +1,104 @@ > +Dialog Semiconductor DA7218 Audio Codec bindings > + > +DA7218 is an audio codec with HP detect feature. > + > +====== > + > +Required properties: > +- compatible : Should be "dlg,da7217" or "dlg,da7218" > +- reg: Specifies the I2C slave address > + > +- VDD-supply: VDD power supply for the device > +- VDDMIC-supply: VDDMIC power supply for the device > +- VDDIO-supply: VDDIO power supply for the device These should be lower case (that is documented in ePAPR BTW :)). > + (See Documentation/devicetree/bindings/regulator/regulator.txt for further > + information relating to regulators) > + > +Optional properties: > +- interrupt-parent: Specifies the phandle of the interrupt controller to which > + the IRQs from DA7218 are delivered to. > +- interrupts: IRQ line info for DA7218 chip. > + (See Documentation/devicetree/bindings/interrupt-controller/interrupts.txt for > + further information relating to interrupt properties) > +- interrupt-names : Name associated with interrupt line. Should be "wakeup" if > + interrupt is to be used to wake system, otherwise "irq" should be used. > +- wakeup-source: Flag to indicate this device can wake system (suspend/resume). > + > +- clocks : phandle and clock specifier for codec MCLK. > +- clock-names : Clock name string for 'clocks' attribute, should be "mclk". > + > +- dlg,micbias1-lvl-millivolt : Voltage (mV) for Mic Bias 1 > + [<1200>, <1600>, <1800>, <2000>, <2200>, <2400>, <2600>, <2800>, <3000>] > +- dlg,micbias2-lvl-millivolt : Voltage (mV) for Mic Bias 2 > + [<1200>, <1600>, <1800>, <2000>, <2200>, <2400>, <2600>, <2800>, <3000>] > +- dlg,mic1-amp-in-sel : Mic1 input source type > + ["diff", "se_p", "se_n"] > +- dlg,mic2-amp-in-sel : Mic2 input source type > + ["diff", "se_p", "se_n"] > +- dlg,dmic1-data-sel : DMIC1 channel select based on clock edge. > + ["lrise_rfall", "lfall_rrise"] > +- dlg,dmic1-samplephase : When to sample audio from DMIC1. > + ["on_clkedge", "between_clkedge"] > +- dlg,dmic1-clkrate-hertz : DMic1 clock frequency (Hz). -hz Documenting the unit suffixes is on my todo list... > + [<1500000>, <3000000>] > +- dlg,dmic2-data-sel : DMic2 channel select based on clock edge. > + ["lrise_rfall", "lfall_rrise"] > +- dlg,dmic2-samplephase : When to sample audio from DMic2. > + ["on_clkedge", "between_clkedge"] > +- dlg,dmic2-clkrate-hertz : DMic2 clock frequency (Hz). -hz > + [<1500000>, <3000000>] > +- dlg,hp-diff-single-supply : Boolean flag, use single supply for HP > + (DA7217 only) > + > +====== > + > +Optional Child node - 'da7218_hpldet' (DA7218 only): > + > +Optional properties: > +- dlg,jack-rate-microsecond : Time between jack detect measurements (us) -us Completely consistent, isn't it. Why we did -microvolt I don't know. Rob -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [next] | [standalone]
| From | Mark Brown <broonie@kernel.org> |
|---|---|
| Date | 2015-11-21 14:00 +0100 |
| Subject | Re: [PATCH v3 1/2] ASoC: da7218: Add bindings documentation for DA7218 audio codec |
| Message-ID | <qxfVL-5nt-5@gated-at.bofh.it> |
| In reply to | #1274208 |
[Multipart message — attachments visible in raw view] — view raw
On Fri, Nov 20, 2015 at 09:53:51AM -0600, Rob Herring wrote: > On Thu, Nov 19, 2015 at 01:59:34PM +0000, Adam Thomson wrote: > > +- VDD-supply: VDD power supply for the device > > +- VDDMIC-supply: VDDMIC power supply for the device > > +- VDDIO-supply: VDDIO power supply for the device > These should be lower case (that is documented in ePAPR BTW :)). Does that actually make a meaningful difference to anything? Things end up this way because the strings we use to request the supplies end up in the property names, we've also got a few other things like representing microvolts as uV which just look very wrong when written all lowercase. We could work around it for the supply names by force lowercasing the name if we don't find the property with the passed name (to avoid breaking existing users) though. There's a bunch of stuff in ePAPR that we're ignoring, and a bunch of other stuff that has no real value like the class naming stuff.
[toc] | [prev] | [next] | [standalone]
| From | "Opensource [Adam Thomson]" <Adam.Thomson.Opensource@diasemi.com> |
|---|---|
| Date | 2015-11-23 13:00 +0100 |
| Subject | RE: [PATCH v3 1/2] ASoC: da7218: Add bindings documentation for DA7218 audio codec |
| Message-ID | <qxXWO-1fN-15@gated-at.bofh.it> |
| In reply to | #1274208 |
T24gTm92ZW1iZXIgMjAsIDIwMTUgMTU6NTQsIFJvYiBIZXJyaW5nIHdyb3RlOg0KDQo+ID4gKy0g ZGxnLG1pY2JpYXMxLWx2bC1taWxsaXZvbHQgOiBWb2x0YWdlIChtVikgZm9yIE1pYyBCaWFzIDEN Cj4gPiArCVs8MTIwMD4sIDwxNjAwPiwgPDE4MDA+LCA8MjAwMD4sIDwyMjAwPiwgPDI0MDA+LCA8 MjYwMD4sIDwyODAwPiwNCj4gPDMwMDA+XQ0KPiA+ICstIGRsZyxtaWNiaWFzMi1sdmwtbWlsbGl2 b2x0IDogVm9sdGFnZSAobVYpIGZvciBNaWMgQmlhcyAyDQo+ID4gKwlbPDEyMDA+LCA8MTYwMD4s IDwxODAwPiwgPDIwMDA+LCA8MjIwMD4sIDwyNDAwPiwgPDI2MDA+LCA8MjgwMD4sDQo+IDwzMDAw Pl0NCj4gPiArLSBkbGcsbWljMS1hbXAtaW4tc2VsIDogTWljMSBpbnB1dCBzb3VyY2UgdHlwZQ0K PiA+ICsJWyJkaWZmIiwgIn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m92b2x0cy4gTWF5YmUgdGhlIGxvd2VyLWNhc2UgcnVsZSBzaG91bGQgbm90IGFwcGx5IGZvcg0K YWJicmV2aWF0aW9ucyBsaWtlIHRoaXMgc28gd2UgY2FuIHVzZSAnbVYnLCAndVYnLCBldGMuLi4/ IEluIHRoZW9yeSB0aGVuIGl0DQpjb3VsZCBiZSAnSHonIGFzIHdlbGwsIGlmIHdlJ3JlIGJlaW5n IGFic29sdXRlbHkgY29ycmVjdC4NCg== -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web