Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp1114402ybf; Thu, 27 Feb 2020 05:18:24 -0800 (PST) X-Google-Smtp-Source: APXvYqxUNloWO4QvWiPrD2hiIZWjtkGlj4VXIcxeA7TgS9ZJ+TCUkhEEXsXnR2OWYpz7csf63sD2 X-Received: by 2002:a05:6830:155a:: with SMTP id l26mr3260646otp.339.1582809504151; Thu, 27 Feb 2020 05:18:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582809504; cv=none; d=google.com; s=arc-20160816; b=Ce9pvP9FnAx81ifCksHBqMGt2MR2Yodbb+S3dZKjyq7PFxYjdQ8mxm8tBkdeH8GDcl fM/LUyfcaATEDtHgT3MxRakw8tHyq7DeZlMeVJzi4ZFGuLieeqKfLKDKNBx0fvTf9x4A N7YPT408fodsueMBWgiU9e89nONuyhm/ZulTeFFNVTusjdUnLTVwrFpQCKU6ICUKLwDb 8DveLH+DxfwmP/xjl3fsoL1ETD1SKa7sHPF96pYm98KZSv7ZAc7AKbyutwal7+TAvmy+ AHFJqxD3AumxMY/4XkT8OO5csUTI79ZArfk/ibZJEMpUCrx59qfEdnGCpmE+EYA61zwV gHcQ== 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=1a7Zev+Ne5eUVekVco80uVhog4Sx8VD/rpGorYyZK+8=; b=a+fuVmzIcDZgD3jHehxREuXtA/yZYIWGiO6te0IpwDLp+CBvLU5zMqI10oTV1NtjOY +ivKAZGewTrvAkXZCRVGjcYXNkSac1chJRF5NEAuLSW5IjRnT+UlnqCe1F7hRdf2eK+J JJgH/56wCB906zkmF1MwAeCH+ccUkv8JtTMpiO8TeYgFNMXYsB6eyPPH9BY5WOMDrqNM J2IMNjWKvSgRdf3PWA8VAfIAA9UVyGJOx2x8pS+Smi+9aPRd9oKZvUsFikSr2V5iEqIv G35Qj2iN66LCkZW7SnlLTykSLbYQAqErI6bqDKGXHaWSxxi+KKnCWUPgJtlpRkhlPCub S6zA== 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 l11si1434044oth.286.2020.02.27.05.18.12; Thu, 27 Feb 2020 05:18:24 -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 S1729208AbgB0NR7 (ORCPT + 99 others); Thu, 27 Feb 2020 08:17:59 -0500 Received: from comms.puri.sm ([159.203.221.185]:39728 "EHLO comms.puri.sm" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729182AbgB0NR4 (ORCPT ); Thu, 27 Feb 2020 08:17:56 -0500 Received: from localhost (localhost [127.0.0.1]) by comms.puri.sm (Postfix) with ESMTP id D9018E01B5; Thu, 27 Feb 2020 05:17:55 -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 xoAh7AvDkITZ; Thu, 27 Feb 2020 05:17:55 -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)" , Martin Kepplinger 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 Message-Id: <20200227131733.4228-4-martin.kepplinger@puri.sm> In-Reply-To: <20200227131733.4228-1-martin.kepplinger@puri.sm> References: <20200227131733.4228-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 simcom SIM7100 modem and the sai6 interface that connects it. Signed-off-by: Angus Ainslie (Purism) Signed-off-by: Martin Kepplinger --- .../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