AnsweredAssumed Answered

DeviceTree: AudioMux with no Code-Node

Question asked by Gabriel Dobato on Apr 6, 2016
Latest reply on Apr 6, 2016 by igorpadykov

Hello, I would like to know how I can implement on DT the Audio-Mux without specifying a Codec-Node.

On one hand, I  have a sgtl500 connected to SSI1 as a Master which works fine. Below the structure in DT:

 

     sound {

    compatible = "fsl,imx6-wandboard-sgtl5000",

                 "fsl,imx-audio-sgtl5000";

                model = "imx6-sgtl5000";

                ssi-controller = <&ssi1>;

                audio-codec = <&codec>;

                audio-routing =

                        "MIC_IN", "Mic Jack",

                        "Mic Jack", "Mic Bias",

                        "Headphone Jack", "HP_OUT";

               mux-int-port = <1>;

               mux-ext-port = <3>;

        };

 

 

&i2c3 {

        clock-frequency = <100000>;

        pinctrl-names = "default";

        pinctrl-0 = <&pinctrl_i2c3>;

        status = "okay";

    codec: sgtl5000@0a {

      compatible = "fsl,sgtl5000";

      reg = <0x0a>;

      clocks = <&clks 201>;

      VDDA-supply = <&reg_3p3v>;

      VDDIO-supply = <&reg_3p3v>;

      VDDD-supply = <&reg_1p5v>;

  };

};

 

On the other hand, I have a bluetooth connected to SSI2 via AUD5, so I need to specify the multiplexing between port-int-2 and port-ext-5, but as I said before, without specifying a audio codec.

How can I do it ? Is there a driver for that compatible with Device Tree ?

 

Thank you in advance.


Gabriel

Outcomes