All of lore.kernel.org
 help / color / mirror / Atom feed
From: Martin Kepplinger <martin.kepplinger@puri.sm>
To: robh@kernel.org, mark.rutland@arm.com, shawnguo@kernel.org,
	s.hauer@pengutronix.de, kernel@pengutronix.de,
	festevam@gmail.com
Cc: linux-imx@nxp.com, Anson.Huang@nxp.com,
	devicetree@vger.kernel.org, kernel@puri.sm,
	linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org,
	"Angus Ainslie (Purism)" <angus@akkea.ca>,
	Martin Kepplinger <martin.kepplinger@puri.sm>
Subject: [PATCH v4 3/8] arm64: dts: librem5-devkit: add the simcom 7100 modem and audio
Date: Thu, 27 Feb 2020 14:17:28 +0100	[thread overview]
Message-ID: <20200227131733.4228-4-martin.kepplinger@puri.sm> (raw)
In-Reply-To: <20200227131733.4228-1-martin.kepplinger@puri.sm>

From: "Angus Ainslie (Purism)" <angus@akkea.ca>

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>
---
 .../dts/freescale/imx8mq-librem5-devkit.dts   | 40 +++++++++++++++++++
 1 file changed, 40 insertions(+)

diff --git a/arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts b/arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts
index c829e4579540..84443e4857d5 100644
--- a/arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts
+++ b/arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts
@@ -148,6 +148,11 @@
 		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";
@@ -176,6 +181,22 @@
 		};
 	};
 
+	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";
@@ -618,6 +639,15 @@
 		>;
 	};
 
+	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
@@ -802,6 +832,16 @@
 	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>;
-- 
2.20.1


WARNING: multiple messages have this Message-ID (diff)
From: Martin Kepplinger <martin.kepplinger@puri.sm>
To: robh@kernel.org, mark.rutland@arm.com, shawnguo@kernel.org,
	s.hauer@pengutronix.de, kernel@pengutronix.de,
	festevam@gmail.com
Cc: devicetree@vger.kernel.org, kernel@puri.sm, Anson.Huang@nxp.com,
	Martin Kepplinger <martin.kepplinger@puri.sm>,
	"Angus Ainslie \(Purism\)" <angus@akkea.ca>,
	linux-kernel@vger.kernel.org, linux-imx@nxp.com,
	linux-arm-kernel@lists.infradead.org
Subject: [PATCH v4 3/8] arm64: dts: librem5-devkit: add the simcom 7100 modem and audio
Date: Thu, 27 Feb 2020 14:17:28 +0100	[thread overview]
Message-ID: <20200227131733.4228-4-martin.kepplinger@puri.sm> (raw)
In-Reply-To: <20200227131733.4228-1-martin.kepplinger@puri.sm>

From: "Angus Ainslie (Purism)" <angus@akkea.ca>

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>
---
 .../dts/freescale/imx8mq-librem5-devkit.dts   | 40 +++++++++++++++++++
 1 file changed, 40 insertions(+)

diff --git a/arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts b/arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts
index c829e4579540..84443e4857d5 100644
--- a/arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts
+++ b/arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts
@@ -148,6 +148,11 @@
 		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";
@@ -176,6 +181,22 @@
 		};
 	};
 
+	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";
@@ -618,6 +639,15 @@
 		>;
 	};
 
+	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
@@ -802,6 +832,16 @@
 	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>;
-- 
2.20.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

  parent reply	other threads:[~2020-02-27 13:18 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-27 13:17 [PATCH v4 0/8] arm64: dts: librem5-devkit: description updates Martin Kepplinger
2020-02-27 13:17 ` Martin Kepplinger
2020-02-27 13:17 ` [PATCH v4 1/8] arm64: dts: librem5-devkit: add a vbus supply to usb0 Martin Kepplinger
2020-02-27 13:17   ` Martin Kepplinger
2020-02-27 13:17 ` [PATCH v4 2/8] arm64: dts: librem5-devkit: add the sgtl5000 i2c audio codec Martin Kepplinger
2020-02-27 13:17   ` Martin Kepplinger
2020-02-27 13:17 ` Martin Kepplinger [this message]
2020-02-27 13:17   ` [PATCH v4 3/8] arm64: dts: librem5-devkit: add the simcom 7100 modem and audio Martin Kepplinger
2020-02-27 13:17 ` [PATCH v4 4/8] arm64: dts: librem5-devkit: allow modem to wake the system from suspend Martin Kepplinger
2020-02-27 13:17   ` Martin Kepplinger
2020-02-27 13:17 ` [PATCH v4 5/8] arm64: dts: librem5-devkit: add the regulators for DVFS Martin Kepplinger
2020-02-27 13:17   ` Martin Kepplinger
2020-02-27 13:17 ` [PATCH v4 6/8] arm64: dts: librem5-devkit: allow the redpine card to be removed Martin Kepplinger
2020-02-27 13:17   ` Martin Kepplinger
2020-02-27 13:17 ` [PATCH v4 7/8] arm64: dts: librem5-devkit: increase the VBUS current in the kernel Martin Kepplinger
2020-02-27 13:17   ` Martin Kepplinger
2020-02-27 13:17 ` [PATCH v4 8/8] arm64: dts: librem5-devkit: add lsm9ds1 mount matrix Martin Kepplinger
2020-02-27 13:17   ` Martin Kepplinger
2020-03-11  7:59 ` [PATCH v4 0/8] arm64: dts: librem5-devkit: description updates Shawn Guo
2020-03-11  7:59   ` Shawn Guo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200227131733.4228-4-martin.kepplinger@puri.sm \
    --to=martin.kepplinger@puri.sm \
    --cc=Anson.Huang@nxp.com \
    --cc=angus@akkea.ca \
    --cc=devicetree@vger.kernel.org \
    --cc=festevam@gmail.com \
    --cc=kernel@pengutronix.de \
    --cc=kernel@puri.sm \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-imx@nxp.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=robh@kernel.org \
    --cc=s.hauer@pengutronix.de \
    --cc=shawnguo@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.