DeviceTree: AudioMux with no Code-Node

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

DeviceTree: AudioMux with no Code-Node

526 Views
gdobato
Contributor I

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

Labels (3)
0 Kudos
1 Reply

343 Views
igorpadykov
NXP Employee
NXP Employee

Hi Gabriel

you are right: codec node is optional according to

Linux/Documentation/devicetree/bindings/sound/fsl,ssi.txt

linux-2.6-imx.git - Freescale i.MX Linux Tree

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 Kudos