]> git.karo-electronics.de Git - linux-beck.git/commitdiff
arm64: dts: qcom: add audio pinctrls
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Tue, 23 Feb 2016 16:50:05 +0000 (16:50 +0000)
committerAndy Gross <andy.gross@linaro.org>
Thu, 25 Feb 2016 22:50:07 +0000 (16:50 -0600)
This patch adds pinctrls required for digital and analog audio via lpass.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
arch/arm64/boot/dts/qcom/msm8916-pins.dtsi

index c17cd8bd7c9f0499ce33ff47f3796c3f295f68b1..10c83e11c272fa7a4a86a1a33115eb988493964a 100644 (file)
                        };
                };
        };
+
+       ext-codec-lines {
+               ext_codec_lines_act: lines_on {
+                       pinmux {
+                               function = "gpio";
+                               pins = "gpio67";
+                       };
+                       pinconf {
+                               pins = "gpio67";
+                               drive-strength = <8>;
+                               bias-disable;
+                               output-high;
+                       };
+               };
+               ext_codec_lines_sus: lines_off {
+                       pinmux {
+                               function = "gpio";
+                               pins = "gpio67";
+                       };
+                       pinconf {
+                               pins = "gpio67";
+                               drive-strength = <2>;
+                               bias-disable;
+                       };
+               };
+       };
+
+       cdc-pdm-lines {
+               cdc_pdm_lines_act: pdm_lines_on {
+                       pinmux {
+                               function = "cdc_pdm0";
+                               pins = "gpio63", "gpio64", "gpio65", "gpio66",
+                                      "gpio67", "gpio68";
+                       };
+                       pinconf {
+                               pins = "gpio63", "gpio64", "gpio65", "gpio66",
+                                      "gpio67", "gpio68";
+                               drive-strength = <8>;
+                               bias-pull-none;
+                       };
+               };
+               cdc_pdm_lines_sus: pdm_lines_off {
+                       pinmux {
+                               function = "cdc_pdm0";
+                               pins = "gpio63", "gpio64", "gpio65", "gpio66",
+                                      "gpio67", "gpio68";
+                       };
+                       pinconf {
+                               pins = "gpio63", "gpio64", "gpio65", "gpio66",
+                                      "gpio67", "gpio68";
+                               drive-strength = <2>;
+                               bias-disable;
+                       };
+               };
+       };
+
+       ext-pri-tlmm-lines {
+               ext_pri_tlmm_lines_act: ext_pa_on {
+                       pinmux {
+                               function = "pri_mi2s";
+                               pins = "gpio113", "gpio114", "gpio115",
+                                      "gpio116";
+                       };
+                       pinconf {
+                               pins = "gpio113", "gpio114", "gpio115",
+                                      "gpio116";
+                               drive-strength = <8>;
+                               bias-pull-none;
+                       };
+               };
+
+               ext_pri_tlmm_lines_sus: ext_pa_off {
+                       pinmux {
+                               function = "pri_mi2s";
+                               pins = "gpio113", "gpio114", "gpio115",
+                                      "gpio116";
+                       };
+                       pinconf {
+                               pins = "gpio113", "gpio114", "gpio115",
+                                      "gpio116";
+                               drive-strength = <2>;
+                               bias-disable;
+                       };
+               };
+       };
+
+       ext-pri-ws-line {
+               ext_pri_ws_act: ext_pa_on {
+                       pinmux {
+                               function = "pri_mi2s_ws";
+                               pins = "gpio110";
+                       };
+                       pinconf {
+                               pins = "gpio110";
+                               drive-strength = <8>;
+                               bias-pull-none;
+                       };
+               };
+
+               ext_pri_ws_sus: ext_pa_off {
+                       pinmux {
+                               function = "pri_mi2s_ws";
+                               pins = "gpio110";
+                       };
+                       pinconf {
+                               pins = "gpio110";
+                               drive-strength = <2>;
+                               bias-disable;
+                       };
+               };
+       };
+
+       ext-mclk-tlmm-lines {
+               ext_mclk_tlmm_lines_act: mclk_lines_on {
+                       pinmux {
+                               function = "pri_mi2s";
+                               pins = "gpio116";
+                       };
+                       pinconf {
+                               pins = "gpio116";
+                               drive-strength = <8>;
+                               bias-pull-none;
+                       };
+               };
+               ext_mclk_tlmm_lines_sus: mclk_lines_off {
+                       pinmux {
+                               function = "pri_mi2s";
+                               pins = "gpio116";
+                       };
+                       pinconf {
+                               pins = "gpio116";
+                               drive-strength = <2>;
+                               bias-disable;
+                       };
+               };
+       };
+
+       /* secondary Mi2S */
+       ext-sec-tlmm-lines {
+               ext_sec_tlmm_lines_act: tlmm_lines_on {
+                       pinmux {
+                               function = "sec_mi2s";
+                               pins = "gpio112", "gpio117", "gpio118",
+                                      "gpio119";
+                       };
+                       pinconf {
+                               pins = "gpio112", "gpio117", "gpio118",
+                                       "gpio119";
+                               drive-strength = <8>;
+                               bias-pull-none;
+                       };
+               };
+               ext_sec_tlmm_lines_sus: tlmm_lines_off {
+                       pinmux {
+                               function = "sec_mi2s";
+                               pins = "gpio112", "gpio117", "gpio118",
+                                      "gpio119";
+                       };
+                       pinconf {
+                               pins = "gpio112", "gpio117", "gpio118",
+                                       "gpio119";
+                               drive-strength = <2>;
+                               bias-disable;
+                       };
+               };
+       };
+
+       cdc-dmic-lines {
+               cdc_dmic_lines_act: dmic_lines_on {
+                       pinmux_dmic0_clk {
+                               function = "dmic0_clk";
+                               pins = "gpio0";
+                       };
+                       pinmux_dmic0_data {
+                               function = "dmic0_data";
+                               pins = "gpio1";
+                       };
+                       pinconf {
+                               pins = "gpio0", "gpio1";
+                               drive-strength = <8>;
+                       };
+               };
+               cdc_dmic_lines_sus: dmic_lines_off {
+                       pinconf {
+                               pins = "gpio0", "gpio1";
+                               drive-strength = <2>;
+                               bias-disable;
+                       };
+               };
+       };
+
+       cross-conn-det {
+               cross_conn_det_act: lines_on {
+                       pinmux {
+                               function = "gpio";
+                               pins = "gpio120";
+                       };
+                       pinconf {
+                               pins = "gpio120";
+                               drive-strength = <8>;
+                               output-low;
+                               bias-pull-down;
+                       };
+               };
+               cross_conn_det_sus: lines_off {
+                       pinmux {
+                               function = "gpio";
+                               pins = "gpio120";
+                       };
+                       pinconf {
+                               pins = "gpio120";
+                               drive-strength = <2>;
+                               bias-disable;
+                       };
+               };
+       };
 };