Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp5630808ybv; Tue, 18 Feb 2020 00:52:03 -0800 (PST) X-Google-Smtp-Source: APXvYqw4a7dQtfY2e2NpTAkdIf+E3bEfrM2VtxRglAGtkJKIO+2vAYkG0PbijQyKwWWvunfvSYuU X-Received: by 2002:a9d:7ccd:: with SMTP id r13mr14519259otn.56.1582015923106; Tue, 18 Feb 2020 00:52:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582015923; cv=none; d=google.com; s=arc-20160816; b=pUYGiBwCZt2TDxwAty5qL+gKp8ifBH88fJt9LPuwV3De0c5vfJW+8Rl24qkHP1PDCI hfXEmIj8cuIxmSHLETIyWm/v3pqVuh30hqvXk0Cj+/xMA5loyXCJtNb+eL34O5m/NPxS dnBjmeFRbzvZIKEtz1TmtKT6Cyak7I039VJE/zg67QOtlkDGs3OKGhwcK5BJQ9De92s4 pNhGqBDYBj7LMbwHFIf/U4oSfY36lmb5rDGuvFdoZR94JeAjPhoKqgRKBOztREQcp4sd Onk/yJVRbwj1UHB6vDYQxnGPKyf1fbgdr/EHgxbYulJ+OeLBtgiPjmYLZjIJ60+PeqEb EKpQ== 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=tSl34GVsSuALt7sIGmZjqAWKA622Q/X9N98SHt8DmkA=; b=cREtzHaNwu2Ev+VnJnQguDaT+jqtHN6Mj+34tLQaYQiGuVDaavrtSHwChxNYwOL2Oo LaaNYbR3LxJvEiZKd2PhpZ4alkeCROlxeJT600PStUow1RpTu7dIK+pSHPSoi0+bFLLq uF/w6DWYl4rkojUauSf4E1adErzsbYHQw0bE9GLRRqb+4IlBzxgbfQaA8wyZ85KdZji2 EsvjbJVIw0UsC6z7/GKx+fmgXEYZEytYqSLAnr86cJyXccUXY0mxhw8cQNaKQrV1AaDN 0uFMhp0tX0xJZdbFg7HFjTscCNOVRdK+0xwK+pUCGnfPm5oYP9jB29ARRRuB99Hmxn2X hdtg== 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 y8si1391566otg.309.2020.02.18.00.51.50; Tue, 18 Feb 2020 00:52:03 -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 S1726481AbgBRIur (ORCPT + 99 others); Tue, 18 Feb 2020 03:50:47 -0500 Received: from comms.puri.sm ([159.203.221.185]:39774 "EHLO comms.puri.sm" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726461AbgBRIuq (ORCPT ); Tue, 18 Feb 2020 03:50:46 -0500 Received: from localhost (localhost [127.0.0.1]) by comms.puri.sm (Postfix) with ESMTP id 68149E1147; Tue, 18 Feb 2020 00:50:46 -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 lk0MWPi-t2nB; Tue, 18 Feb 2020 00:50:45 -0800 (PST) From: Martin Kepplinger To: robh@kernel.org, mark.rutland@arm.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de 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 v2 3/9] arm64: dts: librem5-devkit: add the simcom 7100 modem and sgtl5000 audio codec Date: Tue, 18 Feb 2020 09:49:36 +0100 Message-Id: <20200218084942.4884-4-martin.kepplinger@puri.sm> In-Reply-To: <20200218084942.4884-1-martin.kepplinger@puri.sm> References: <20200218084942.4884-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 sgtl5000 audio codec. Signed-off-by: Angus Ainslie (Purism) Signed-off-by: Martin Kepplinger --- .../dts/freescale/imx8mq-librem5-devkit.dts | 60 +++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts b/arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts index 25135b08d4f8..ec12477d925d 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts +++ b/arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts @@ -148,6 +148,53 @@ 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"; + 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 = <&audio_codec>; + 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 = <&wwan_codec>; + frame-master; + bitclock-master; + }; + }; + vibrator { compatible = "gpio-vibrator"; pinctrl-names = "default"; @@ -426,6 +473,19 @@ vddio-supply = <®_3v3_p>; }; + audio_codec: sgtl5000@a { + compatible = "fsl,sgtl5000"; + clocks = <&clk IMX8MQ_CLK_SAI2_ROOT>; + assigned-clocks = <&clk IMX8MQ_CLK_SAI2>; + assigned-clock-parents = <&clk IMX8MQ_AUDIO_PLL1_OUT>; + assigned-clock-rates = <24576000>; + #sound-dai-cells = <0>; + reg = <0x0a>; + VDDD-supply = <®_1v8_p>; + VDDIO-supply = <®_3v3_p>; + VDDA-supply = <®_3v3_p>; + }; + touchscreen@5d { compatible = "goodix,gt5688"; reg = <0x5d>; -- 2.20.1