arm64: dts: librem5-devkit: add the simcom 7100 modem and audio
authorAngus Ainslie (Purism) <angus@akkea.ca>
Thu, 27 Feb 2020 13:17:28 +0000 (14:17 +0100)
committerShawn Guo <shawnguo@kernel.org>
Wed, 11 Mar 2020 07:59:06 +0000 (15:59 +0800)
Add the simcom SIM7100 modem and the sai6 interface that connects it.

Signed-off-by: Angus Ainslie (Purism) <angus@akkea.ca>
Signed-off-by: Martin Kepplinger <martin.kepplinger@puri.sm>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts

index c829e457954040b2cd185bed0749a828b1658dfb..84443e4857d51561fec9feb3bcacdafc95a36d09 100644 (file)
                regulator-always-on;
        };
 
+       wwan_codec: sound-wwan-codec {
+               compatible = "option,gtm601";
+               #sound-dai-cells = <0>;
+       };
+
        sound {
                compatible = "simple-audio-card";
                simple-audio-card,name = "sgtl5000";
                };
        };
 
+       sound-wwan {
+               compatible = "simple-audio-card";
+               simple-audio-card,name = "SIMCom SIM7100";
+               simple-audio-card,format = "dsp_a";
+
+               simple-audio-card,cpu {
+                       sound-dai = <&sai6>;
+               };
+
+               telephony_link_master: simple-audio-card,codec {
+                       sound-dai = <&wwan_codec>;
+                       frame-master;
+                       bitclock-master;
+               };
+       };
+
        vibrator {
                compatible = "gpio-vibrator";
                pinctrl-names = "default";
                >;
        };
 
+       pinctrl_sai6: sai6grp {
+               fsl,pins = <
+                       MX8MQ_IOMUXC_SAI1_RXD5_SAI6_RX_DATA0    0xd6
+                       MX8MQ_IOMUXC_SAI1_RXD6_SAI6_RX_SYNC     0xd6
+                       MX8MQ_IOMUXC_SAI1_TXD4_SAI6_RX_BCLK     0xd6
+                       MX8MQ_IOMUXC_SAI1_TXD5_SAI6_TX_DATA0    0xd6
+               >;
+       };
+
        pinctrl_typec: typecgrp {
                fsl,pins = <
                        MX8MQ_IOMUXC_NAND_DATA06_GPIO3_IO12             0x16
        status = "okay";
 };
 
+&sai6 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_sai6>;
+       assigned-clocks = <&clk IMX8MQ_CLK_SAI6>;
+       assigned-clock-parents = <&clk IMX8MQ_AUDIO_PLL1_OUT>;
+       assigned-clock-rates = <24576000>;
+       fsl,sai-synchronous-rx;
+       status = "okay";
+};
+
 &uart1 { /* console */
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_uart1>;