-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branches 'asoc/topic/of-graph', 'asoc/topic/pxa…
…', 'asoc/topic/qcom' and 'asoc/topic/rk808' into asoc-next
- Loading branch information
Showing
21 changed files
with
2,012 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
85 changes: 85 additions & 0 deletions
85
Documentation/devicetree/bindings/sound/qcom,msm8916-wcd-analog.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
msm8916 analog audio CODEC | ||
|
||
Bindings for codec Analog IP which is integrated in pmic pm8916, | ||
|
||
## Bindings for codec core on pmic: | ||
|
||
Required properties | ||
- compatible = "qcom,pm8916-wcd-analog-codec"; | ||
- reg: represents the slave base address provided to the peripheral. | ||
- interrupt-parent : The parent interrupt controller. | ||
- interrupts: List of interrupts in given SPMI peripheral. | ||
- interrupt-names: Names specified to above list of interrupts in same | ||
order. List of supported interrupt names are: | ||
"cdc_spk_cnp_int" - Speaker click and pop interrupt. | ||
"cdc_spk_clip_int" - Speaker clip interrupt. | ||
"cdc_spk_ocp_int" - Speaker over current protect interrupt. | ||
"mbhc_ins_rem_det1" - jack insert removal detect interrupt 1. | ||
"mbhc_but_rel_det" - button release interrupt. | ||
"mbhc_but_press_det" - button press event | ||
"mbhc_ins_rem_det" - jack insert removal detect interrupt. | ||
"mbhc_switch_int" - multi button headset interrupt. | ||
"cdc_ear_ocp_int" - Earphone over current protect interrupt. | ||
"cdc_hphr_ocp_int" - Headphone R over current protect interrupt. | ||
"cdc_hphl_ocp_det" - Headphone L over current protect interrupt. | ||
"cdc_ear_cnp_int" - earphone cnp interrupt. | ||
"cdc_hphr_cnp_int" - hphr click and pop interrupt. | ||
"cdc_hphl_cnp_int" - hphl click and pop interrupt. | ||
|
||
- clocks: Handle to mclk. | ||
- clock-names: should be "mclk" | ||
- vdd-cdc-io-supply: phandle to VDD_CDC_IO regulator DT node. | ||
- vdd-cdc-tx-rx-cx-supply: phandle to VDD_CDC_TX/RX/CX regulator DT node. | ||
- vdd-micbias-supply: phandle of VDD_MICBIAS supply's regulator DT node. | ||
|
||
Optional Properties: | ||
- qcom,micbias1-ext-cap: boolean, present if micbias1 has external capacitor | ||
connected. | ||
- qcom,micbias2-ext-cap: boolean, present if micbias2 has external capacitor | ||
connected. | ||
|
||
Example: | ||
|
||
spmi_bus { | ||
... | ||
audio-codec@f000{ | ||
compatible = "qcom,pm8916-wcd-analog-codec"; | ||
reg = <0xf000 0x200>; | ||
reg-names = "pmic-codec-core"; | ||
clocks = <&gcc GCC_CODEC_DIGCODEC_CLK>; | ||
clock-names = "mclk"; | ||
interrupt-parent = <&spmi_bus>; | ||
interrupts = <0x1 0xf0 0x0 IRQ_TYPE_NONE>, | ||
<0x1 0xf0 0x1 IRQ_TYPE_NONE>, | ||
<0x1 0xf0 0x2 IRQ_TYPE_NONE>, | ||
<0x1 0xf0 0x3 IRQ_TYPE_NONE>, | ||
<0x1 0xf0 0x4 IRQ_TYPE_NONE>, | ||
<0x1 0xf0 0x5 IRQ_TYPE_NONE>, | ||
<0x1 0xf0 0x6 IRQ_TYPE_NONE>, | ||
<0x1 0xf0 0x7 IRQ_TYPE_NONE>, | ||
<0x1 0xf1 0x0 IRQ_TYPE_NONE>, | ||
<0x1 0xf1 0x1 IRQ_TYPE_NONE>, | ||
<0x1 0xf1 0x2 IRQ_TYPE_NONE>, | ||
<0x1 0xf1 0x3 IRQ_TYPE_NONE>, | ||
<0x1 0xf1 0x4 IRQ_TYPE_NONE>, | ||
<0x1 0xf1 0x5 IRQ_TYPE_NONE>; | ||
interrupt-names = "cdc_spk_cnp_int", | ||
"cdc_spk_clip_int", | ||
"cdc_spk_ocp_int", | ||
"mbhc_ins_rem_det1", | ||
"mbhc_but_rel_det", | ||
"mbhc_but_press_det", | ||
"mbhc_ins_rem_det", | ||
"mbhc_switch_int", | ||
"cdc_ear_ocp_int", | ||
"cdc_hphr_ocp_int", | ||
"cdc_hphl_ocp_det", | ||
"cdc_ear_cnp_int", | ||
"cdc_hphr_cnp_int", | ||
"cdc_hphl_cnp_int"; | ||
VDD-CDC-IO-supply = <&pm8916_l5>; | ||
VDD-CDC-TX-RX-CX-supply = <&pm8916_l5>; | ||
VDD-MICBIAS-supply = <&pm8916_l13>; | ||
#sound-dai-cells = <1>; | ||
}; | ||
}; |
20 changes: 20 additions & 0 deletions
20
Documentation/devicetree/bindings/sound/qcom,msm8916-wcd-digital.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
msm8916 digital audio CODEC | ||
|
||
## Bindings for codec core in lpass: | ||
|
||
Required properties | ||
- compatible = "qcom,msm8916-wcd-digital-codec"; | ||
- reg: address space for lpass codec. | ||
- clocks: Handle to mclk and ahbclk | ||
- clock-names: should be "mclk", "ahbix-clk". | ||
|
||
Example: | ||
|
||
audio-codec@771c000{ | ||
compatible = "qcom,msm8916-wcd-digital-codec"; | ||
reg = <0x0771c000 0x400>; | ||
clocks = <&gcc GCC_ULTAUDIO_AHBFABRIC_IXFABRIC_CLK>, | ||
<&gcc GCC_CODEC_DIGCODEC_CLK>; | ||
clock-names = "ahbix-clk", "mclk"; | ||
#sound-dai-cells = <1>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.