arm64: dts: fsl: librem5 add the simcom 7100 modem

Add the simcomm modem and the sai6 interface that connects it.
Signed-off-by: default avatarAngus Ainslie (Purism) <angus@akkea.ca>
parent c0af19f9
......@@ -148,6 +148,51 @@ reg_usdhc2_vmmc: regulator-usdhc2-vmmc {
regulator-always-on;
};
sim7100_codec: sound-wwan-codec {
compatible = "simcom,sim7100", "option,gtm601";
#sound-dai-cells = <0>;
};
sound {
compatible = "simple-audio-card";
simple-audio-card,name = "sgtl5000";
simple-audio-card,format = "i2s";
simple-audio-card,widgets =
"Microphone", "Microphone Jack",
"Headphone", "Headphone Jack",
"Speaker", "Speaker Ext",
"Line", "Line In Jack";
simple-audio-card,routing =
"MIC_IN", "Microphone Jack",
"Microphone Jack", "Mic Bias",
"LINE_IN", "Line In Jack",
"Headphone Jack", "HP_OUT",
"Speaker Ext", "LINE_OUT";
simple-audio-card,cpu {
sound-dai = <&sai2>;
};
simple-audio-card,codec {
sound-dai = <&sgtl5000>;
clocks = <&clk IMX8MQ_CLK_SAI2_ROOT>;
frame-master;
bitclock-master;
};
};
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 = <&sim7100_codec>;
frame-master;
bitclock-master;
};
};
vibrator {
compatible = "gpio-vibrator";
pinctrl-names = "default";
......@@ -558,6 +603,25 @@ MX8MQ_IOMUXC_SAI3_RXC_GPIO4_IO29 0x80 /* RTC intr */
>;
};
pinctrl_sai2: sai2grp {
fsl,pins = <
MX8MQ_IOMUXC_SAI2_TXFS_SAI2_TX_SYNC 0xd6
MX8MQ_IOMUXC_SAI2_TXC_SAI2_TX_BCLK 0xd6
MX8MQ_IOMUXC_SAI2_TXD0_SAI2_TX_DATA0 0xd6
MX8MQ_IOMUXC_SAI2_RXD0_SAI2_RX_DATA0 0xd6
MX8MQ_IOMUXC_SAI2_MCLK_SAI2_MCLK 0xd6
>;
};
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
......@@ -737,6 +801,16 @@ &snvs_pwrkey {
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>;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment