1 Dialog Semiconductor DA7218 Audio Codec bindin 2 3 DA7218 is an audio codec with HP detect featur 4 5 ====== 6 7 Required properties: 8 - compatible : Should be "dlg,da7217" or "dlg, 9 - reg: Specifies the I2C slave address 10 11 - VDD-supply: VDD power supply for the device 12 - VDDMIC-supply: VDDMIC power supply for the d 13 - VDDIO-supply: VDDIO power supply for the dev 14 (See Documentation/devicetree/bindings/regul 15 information relating to regulators) 16 17 Optional properties: 18 - interrupts: IRQ line info for DA7218 chip. 19 (See Documentation/devicetree/bindings/inter 20 further information relating to interrupt p 21 - interrupt-names : Name associated with inter 22 interrupt is to be used to wake system, othe 23 - wakeup-source: Flag to indicate this device 24 25 - clocks : phandle and clock specifier for cod 26 - clock-names : Clock name string for 'clocks' 27 28 - dlg,micbias1-lvl-millivolt : Voltage (mV) fo 29 [<1200>, <1600>, <1800>, <2000>, <2200 30 - dlg,micbias2-lvl-millivolt : Voltage (mV) fo 31 [<1200>, <1600>, <1800>, <2000>, <2200 32 - dlg,mic1-amp-in-sel : Mic1 input source type 33 ["diff", "se_p", "se_n"] 34 - dlg,mic2-amp-in-sel : Mic2 input source type 35 ["diff", "se_p", "se_n"] 36 - dlg,dmic1-data-sel : DMIC1 channel select ba 37 ["lrise_rfall", "lfall_rrise"] 38 - dlg,dmic1-samplephase : When to sample audio 39 ["on_clkedge", "between_clkedge"] 40 - dlg,dmic1-clkrate-hz : DMic1 clock frequency 41 [<1500000>, <3000000>] 42 - dlg,dmic2-data-sel : DMic2 channel select ba 43 ["lrise_rfall", "lfall_rrise"] 44 - dlg,dmic2-samplephase : When to sample audio 45 ["on_clkedge", "between_clkedge"] 46 - dlg,dmic2-clkrate-hz : DMic2 clock frequency 47 [<1500000>, <3000000>] 48 - dlg,hp-diff-single-supply : Boolean flag, us 49 (DA7217 only) 50 51 ====== 52 53 Optional Child node - 'da7218_hpldet' (DA7218 54 55 Optional properties: 56 - dlg,jack-rate-us : Time between jack detect 57 [<5>, <10>, <20>, <40>, <80>, <160>, < 58 - dlg,jack-debounce : Number of debounce measu 59 [<0>, <2>, <3>, <4>] 60 - dlg,jack-threshold-pct : Threshold level for 61 [<84>, <88>, <92>, <96>] 62 - dlg,comp-inv : Boolean flag, invert comparat 63 - dlg,hyst : Boolean flag, enable hysteresis 64 - dlg,discharge : Boolean flag, auto discharge 65 66 ====== 67 68 Example: 69 70 codec: da7218@1a { 71 compatible = "dlg,da7218"; 72 reg = <0x1a>; 73 interrupt-parent = <&gpio6>; 74 interrupts = <11 IRQ_TYPE_LEVE 75 wakeup-source; 76 77 VDD-supply = <®_audio>; 78 VDDMIC-supply = <®_audio>; 79 VDDIO-supply = <®_audio>; 80 81 clocks = <&clks 201>; 82 clock-names = "mclk"; 83 84 dlg,micbias1-lvl-millivolt = < 85 dlg,micbias2-lvl-millivolt = < 86 dlg,mic1-amp-in-sel = "diff"; 87 dlg,mic2-amp-in-sel = "diff"; 88 89 dlg,dmic1-data-sel = "lrise_rf 90 dlg,dmic1-samplephase = "on_cl 91 dlg,dmic1-clkrate-hz = <300000 92 dlg,dmic2-data-sel = "lrise_rf 93 dlg,dmic2-samplephase = "on_cl 94 dlg,dmic2-clkrate-hz = <300000 95 96 da7218_hpldet { 97 dlg,jack-rate-us = <40 98 dlg,jack-debounce = <2 99 dlg,jack-threshold-pct 100 dlg,hyst; 101 }; 102 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.