Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1901868ybv; Sun, 23 Feb 2020 18:01:45 -0800 (PST) X-Google-Smtp-Source: APXvYqxrmHGbgAo8qrgsHBBCmAV2nmrvUkGqI4X2H/698QXRO8PTqtoB+fpSe8oLNnlKm1Ghv6w2 X-Received: by 2002:a9d:6290:: with SMTP id x16mr36715183otk.343.1582509705651; Sun, 23 Feb 2020 18:01:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582509705; cv=none; d=google.com; s=arc-20160816; b=HoIH0gJGgCO3Ec6jbcL5nkTzC7iB23QK5tE78SNoy0o5DKORiRh4PTt+SJ7D6dXNzW yk1SIY8DRVaVcNXU9D0DC5L6ADb7MQRs8ubwg29KmgVsPPdkBQgOmIfEBaX4dmdiDsKA 4eawE8zAlPWGTNJJkg+iaDXJ7usbJUB7yijlrenIf5JaGkiiakhYg3c7kRrmAqyPprtE IPi3tuF0MrgwJs53cBTLkm1cPAW/RgKka2643qirxQPKKXYcd2Rj6rsfWpxxu7izIPLg ULtcss+5jq3KsO/Tsf+ZxtW3zNf3c0VjzB4OXRDhFhhqd0nyzcLyPjuUvaYQgtXp8T3p jTIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=APzEhBj2930PqywZ5Omhq5sCkf2soMveSnPFsN16hPY=; b=eSbWgO6+MKAKqBiCUSC1kXgmTrm1wgNDGRUBqubEMuveqqHaGMGWbdKYpXr05LRhqr jmJBH632hX2kugrU3X8MbRg6alRLLosbFy4gmhJSpTQM8bjEIH5SHr9T0n4KAg0aml4L 3nDaZMjS/tBilczz0Yg8QDj3Nr01SE5QIkbz8woO+y7ZJYI2LxK+gA4HCuxkq/mPu62i +5xRBxGO94LlSjWBWE7C6chXKpmt8eYUofW42LhICY0oz2tHFd2n0z1cIyhXAO+XzfTo aJSEFVL54RIKRPk3rM0QuZ9D9KjuM7pqXyNeAXMty6nzR3o1iPWUXOxNKS1paLHhHb5A Ic8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=L3qDPbiR; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i11si5364833otc.105.2020.02.23.18.01.33; Sun, 23 Feb 2020 18:01:45 -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; dkim=pass header.i=@kernel.org header.s=default header.b=L3qDPbiR; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727189AbgBXCBT (ORCPT + 99 others); Sun, 23 Feb 2020 21:01:19 -0500 Received: from mail.kernel.org ([198.145.29.99]:53522 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727151AbgBXCBS (ORCPT ); Sun, 23 Feb 2020 21:01:18 -0500 Received: from dragon (80.251.214.228.16clouds.com [80.251.214.228]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 471FB205C9; Mon, 24 Feb 2020 02:01:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1582509678; bh=axFW7bEh8+eVcpf/My/7t/8mqtcesmwale7L6FdGbQc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=L3qDPbiRb3tIg7oWaK/qPmhpSpgRp5fW8pJcQLlJO+kUCvsL0myrRhM3IiXNOfunh sBBNM0vUfP+hPr17+ttytHuxQICnKMia/w1TylUulL4Qzh0fXu0oxIpZL2tK/1eQzA kjjUlwmfjleDEYKsRk5KxfwtHRKOpKhswXb++wHg= Date: Mon, 24 Feb 2020 10:01:10 +0800 From: Shawn Guo To: Martin Kepplinger Cc: robh@kernel.org, mark.rutland@arm.com, s.hauer@pengutronix.de, kernel@pengutronix.de, 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: Re: [PATCH v2 3/9] arm64: dts: librem5-devkit: add the simcom 7100 modem and sgtl5000 audio codec Message-ID: <20200224020109.GE27688@dragon> References: <20200218084942.4884-1-martin.kepplinger@puri.sm> <20200218084942.4884-4-martin.kepplinger@puri.sm> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200218084942.4884-4-martin.kepplinger@puri.sm> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 18, 2020 at 09:49:36AM +0100, Martin Kepplinger wrote: > 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"; newline > + simple-audio-card,cpu { > + sound-dai = <&sai6>; > + }; newline > + 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 { Node name needs to be generic, not the label name. So it should be: sgtl5000: audio-codec@a { Shawn > + 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 >