Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp343776ybv; Wed, 5 Feb 2020 06:34:27 -0800 (PST) X-Google-Smtp-Source: APXvYqwnyngeRPohh/+M20sjRTZMzojtiLcO1v7PPe36UQ40ud6RJ2h6ypsOhlpiHAbRTAsH4g88 X-Received: by 2002:aca:32c3:: with SMTP id y186mr3162540oiy.114.1580913266972; Wed, 05 Feb 2020 06:34:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580913266; cv=none; d=google.com; s=arc-20160816; b=yJO6VKxsnqffr6X71SUWDetFSQhz9XSZoLz7h7ojCRPzC5bcIv6OON1dsTFLK8x/HI fiKn2IO/uzpt5VF+eukfEBKky3XmjCpw/r3VY33usqLZCaJrctMLzzKpT8Lw4pH4PKJx 5p8i0kw+1Xy3Ca8HD3jFgbC9W548XiE+TQ+/bB0RiWgi2eKqg3J3DYLPA61LnHB3sQu2 uoeggifrMzpdUelxFlDogfCAMKQavotdkaOnFDAA7rbE1V25XuuTeVsLMuNp4Y5NSMfY tmTTYYnmW4p6lDXLzhspmLwL4SBAoXdpWwcv+0PFZmaf3GgOBDrKLwIySmCCxTh0oLf2 l/wA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:references :in-reply-to:message-id:date:subject:cc:to:from; bh=3kSvZ3RqaYz24jIjq9nbjtFIkkUKueRnfito4y2kCrQ=; b=mqMNlOMAKJENbEa8wr9ETNhIG9Z0X/kDqL+L3Elt66WumfuJJOdY9Z52lDCeVKHlWq cQdxUievmnqmGqYr5lcIFIL6v9uGgHy3AIyxjolMxVR9nD0Y98INjRpYftKqSohBFNY+ VcRQHgmHglKYLe2vj+hkoJgJLNJtkG0JUcup7CfLRoLjljckRCvLLi8aUumeqoGltRbN NUxDNuEjOakLA5WDHsJVbHMUjj167Xqk2PQ0iPVlt1AhL08jQ5sVj+9za6Uj7ooIXLAs tUrN7h7m8vOIohSQTAqKK3TXbJSQV8f7vHVuFHTcqds1v8KewSbcyaYjiff+Ohy7BZfP bIuQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=puri.sm Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p26si12981562oto.240.2020.02.05.06.34.14; Wed, 05 Feb 2020 06:34:26 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=puri.sm Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727473AbgBEObD (ORCPT + 99 others); Wed, 5 Feb 2020 09:31:03 -0500 Received: from comms.puri.sm ([159.203.221.185]:48854 "EHLO comms.puri.sm" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727003AbgBEObB (ORCPT ); Wed, 5 Feb 2020 09:31:01 -0500 Received: from localhost (localhost [127.0.0.1]) by comms.puri.sm (Postfix) with ESMTP id 6FA10E03CF; Wed, 5 Feb 2020 06:31:01 -0800 (PST) Received: from comms.puri.sm ([127.0.0.1]) by localhost (comms.puri.sm [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4qrC0zwEtsvC; Wed, 5 Feb 2020 06:30:56 -0800 (PST) From: Martin Kepplinger 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)" Subject: [PATCH v1 02/12] arm64: dts: librem5-devkit: add the simcom 7100 modem and audio Date: Wed, 5 Feb 2020 15:29:53 +0100 Message-Id: <20200205143003.28408-3-martin.kepplinger@puri.sm> In-Reply-To: <20200205143003.28408-1-martin.kepplinger@puri.sm> References: <20200205143003.28408-1-martin.kepplinger@puri.sm> Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: "Angus Ainslie (Purism)" Add the simcomm modem and the sai6 interface that connects it, as well as the sgtl5000 audio codec. Signed-off-by: Angus Ainslie (Purism) --- .../dts/freescale/imx8mq-librem5-devkit.dts | 55 +++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts b/arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts index 9702db69d3ed..8162576e8f3d 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts +++ b/arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts @@ -148,6 +148,51 @@ regulator-always-on; }; + sim7100_codec: sound-wwan-codec { + compatible = "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"; @@ -749,6 +794,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