ARM: dts: qcom: add pinctrl for audio internal mclk2 on sa6155 platform

enable GPIO122 as MCLK2 for externel AMP on sa6155 auto platform

Change-Id: I140fbd24e6bec97f5749934394c9f2f9dd21e5b4
This commit is contained in:
Deru Wang 2021-02-03 22:10:06 +08:00
commit 5cd82aeb9a
2 changed files with 34 additions and 0 deletions

View file

@ -459,6 +459,13 @@
&pri_aux_pcm_data0_sleep &pri_aux_pcm_data1_sleep>;
};
internal_mclk2: qcom,msm-internal-mclk2 {
compatible = "qcom,msm-pcm-routing";
pinctrl-names = "default", "sleep";
pinctrl-0 = <&audio_internal_mclk2_active>;
pinctrl-1 = <&audio_internal_mclk2_sleep>;
};
qcom,msm-dai-q6 {
compatible = "qcom,msm-dai-q6";
@ -491,6 +498,7 @@ qcom,msm-dai-q6 {
qcom,tert-tdm-gpios = <&tdm_tert_rx>;
qcom,quat-tdm-gpios = <&tdm_quat_rx>;
qcom,quin-tdm-gpios = <&tdm_quin_rx>;
qcom,internal-mclk2-gpios = <&internal_mclk2>;
asoc-platform = <&pcm0>, <&pcm1>, <&pcm2>, <&voip>, <&voice>,
<&loopback>, <&compress>, <&hostless>,

View file

@ -1603,6 +1603,32 @@
};
};
audio_internal_mclk2_active: audio_internal_mclk2_active {
mux {
pins = "gpio122";
function = "mclk2";
};
config {
pins = "gpio122";
drive-strength = <2>;
bias-disable;
};
};
audio_internal_mclk2_sleep: audio_internal_mclk2_sleep {
mux {
pins = "gpio122";
function = "mclk2";
};
config {
pins = "gpio122";
drive-strength = <2>;
bias-pull-down;
};
};
pmx_ts_int_active {
ts_int_active: ts_int_active {
mux {