Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2091031ybv; Sun, 23 Feb 2020 22:31:22 -0800 (PST) X-Google-Smtp-Source: APXvYqxT49aNfj30XOW2asYauCj7iNXNXdbUSn3T9T9ZyVaj+fhKewebPtHG8RNAGq97i8hMMiGt X-Received: by 2002:a9d:7342:: with SMTP id l2mr39389969otk.98.1582525882114; Sun, 23 Feb 2020 22:31:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582525882; cv=none; d=google.com; s=arc-20160816; b=PtmvGqhqkFZktScoaQSnGjO1vTqJGu79Uq/9FsAzfRmoSxpkVPhqOEnzR9SMUqOLE7 29ZgcPiLg23bOi2fneooximinXdSP8cyH4cNAHtfQl8i4kL8RRr4sfsxDPMGXk+S0wVC sAHYrap7OryRNOtRMsGG8Jhu2MBQIfIUCqhWQhjm92j1hvkaTkdHSLfYYw59bZFR5uRQ FKO0qukOrgP/gcUcjyolKJ0vIR+Q46Bm3pW7epNKd2dAs1YVvJtwscUAqC3vLucgxWDX Bifwd17OD5nWcZEIWpXYCouWlzeuq3jXpY4X81hrNisFhGJ1Z34e3WUFq7sx+6oZB1Wl vwew== 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=Ne0CbAe4yPHYHlYsKIibRhHa0hZSlL9k2InvfcoXU7s=; b=IcEOgDZy3Mra7DVlwrczBhfFI5fs87DLdwc11NYFnOz8JPr/IbhT2P2naHy1Ker2xF oYbjR5SgGeWP+HyPylo8ob1BpsSLbmeLKRs5EdxTG7Kuoa7J8KbcRWOHFTMBZzWaLTP7 +G6quB99kGJ1fjMPqKskUMPDcIi4qQEFvinNLBiKtSOIkhC8pirWkbEzbKZ1hU2JXoHC M3BDDDWqXUWPKHQMCBfJff7/k9BJuRX0KtNt4HOrGEDiKwhAWU2N59eFmcx96uhF8yNq kUBDyztcQi6LSWaJNPoSw0FY3F14C0hkycT60VrmCasQ48iSbYSjdri44dBJqBnskq8j 5gdQ== 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 n14si5899155otk.179.2020.02.23.22.31.09; Sun, 23 Feb 2020 22:31:22 -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 S1727229AbgBXGa5 (ORCPT + 99 others); Mon, 24 Feb 2020 01:30:57 -0500 Received: from comms.puri.sm ([159.203.221.185]:46850 "EHLO comms.puri.sm" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726060AbgBXGa4 (ORCPT ); Mon, 24 Feb 2020 01:30:56 -0500 Received: from localhost (localhost [127.0.0.1]) by comms.puri.sm (Postfix) with ESMTP id 49BE0E03E1; Sun, 23 Feb 2020 22:30:56 -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 C8mV3RRo4uOg; Sun, 23 Feb 2020 22:30:55 -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 v3 2/8] arm64: dts: librem5-devkit: add the simcom 7100 modem and sgtl5000 audio codec Date: Mon, 24 Feb 2020 07:29:11 +0100 Message-Id: <20200224062917.4895-3-martin.kepplinger@puri.sm> In-Reply-To: <20200224062917.4895-1-martin.kepplinger@puri.sm> References: <20200224062917.4895-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 | 62 +++++++++++++++++++ 1 file changed, 62 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..ed4a10255bad 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts +++ b/arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts @@ -148,6 +148,55 @@ 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 = <&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 = <&wwan_codec>; + frame-master; + bitclock-master; + }; + }; + vibrator { compatible = "gpio-vibrator"; pinctrl-names = "default"; @@ -426,6 +475,19 @@ vddio-supply = <®_3v3_p>; }; + sgtl5000: audio-codec@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