Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp2449807pxf; Sat, 13 Mar 2021 22:19:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJzKnS40JzLGT//usIIpOKM1EOpzeADuhc/fkAsydetVbOkN47AD6wJpZjMWCngiq36PpE9j X-Received: by 2002:a17:907:33c6:: with SMTP id zk6mr16685734ejb.228.1615702796426; Sat, 13 Mar 2021 22:19:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615702796; cv=none; d=google.com; s=arc-20160816; b=skYlmeDw6Pe4O8k3UmJ5u5mjvsp/6iiIYmFqsDVh+h88U8fGxHW14bincSAn+xjMn1 xBVxNTMuCPXeCWVZ9CzvmIcENrFaWkm1+eivYa7/5Tt3Wr+296gve+O4hdl2XpfZ5VmE mq/qxSSBQ8740+lbYhYB0SsJJRUkIfitBZSfzH4Ai2S3YxSZjG/2hZX8/S60H/RT/cMv YUKsSPO5xFZwztJ0zKIhNHonJjnifwy8g3AS1SbWZQJB1bbJ+CNQkdCl6kupkIia4b5/ toOJjeQ3TXO6GhaEEVLb0pWD+wfnaYs3jTlOqk9DFX2mNk2n4JUMEHGWlrQCB2FkcIkw Euyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dmarc-filter:sender:dkim-signature; bh=0pUqpTZLiz2zxTpkw36Vwlu6Bj6e/kfmfvxfDNpyPRY=; b=jFUH/Hc3LAdi/8Sqw4odkM/MLH0TMNTahCmONFR25eb916K3cnhOcb0pHPV4yrvPiu i7GuJRfnDCl7M34h6u+qMQzgkNT/VspgijqFAIJjWMyR1RFp26Siqfhl/PBV6rt/FlAL Kt/aghvl291fte7sdrGZkeEg2uBTuyFIej6KikVFvlHmUIbK7HD8lI1SOrkihV/hjHb8 YsGrUNlXsS5y0lz+9gVtRmYzJhH5qHLmqmuhNElP34+HLjL7iKtPY/NfZyHNXEuLU/Lm Kx1+9XGyvmmb7ILXITSUR/OYP+tpcOi5s2M0rMGHG8f9b6u9d7t2gHLop2HB6UHMch// QOhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=TROnmO9f; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cw21si8202013edb.344.2021.03.13.22.19.34; Sat, 13 Mar 2021 22:19:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=TROnmO9f; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234944AbhCNGL7 (ORCPT + 99 others); Sun, 14 Mar 2021 01:11:59 -0500 Received: from z11.mailgun.us ([104.130.96.11]:40782 "EHLO z11.mailgun.us" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234846AbhCNGLh (ORCPT ); Sun, 14 Mar 2021 01:11:37 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1615702297; h=Content-Transfer-Encoding: MIME-Version: References: In-Reply-To: Message-Id: Date: Subject: Cc: To: From: Sender; bh=0pUqpTZLiz2zxTpkw36Vwlu6Bj6e/kfmfvxfDNpyPRY=; b=TROnmO9f2h4qqBXRoHWFS2ToDNSs6R8XtNICbZdPUIsNRVAbBbmXiRdwQpLmS/JVI/Lk9k2F ls/SpRNOoD3GLKlVwfYS61gEfL7+8B5sHUJfiVni5Fed27vrI/h5m0XfVOquovkaGH/vxsfP yX89amxPIrglDCdDzd3CHK8LzlA= X-Mailgun-Sending-Ip: 104.130.96.11 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n03.prod.us-east-1.postgun.com with SMTP id 604da9084db3bb68012f104e (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Sun, 14 Mar 2021 06:11:20 GMT Sender: srivasam=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 513D1C433C6; Sun, 14 Mar 2021 06:11:19 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00,SPF_FAIL, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from hyd-lnxbld210.qualcomm.com (unknown [202.46.22.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: srivasam) by smtp.codeaurora.org (Postfix) with ESMTPSA id C029FC43462; Sun, 14 Mar 2021 06:11:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org C029FC43462 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=srivasam@codeaurora.org From: Srinivasa Rao Mandadapu To: agross@kernel.org, bjorn.andersson@linaro.org, robh+dt@kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, rohitkr@codeaurora.org, srinivas.kandagatla@linaro.org, dianders@chromium.org, swboyd@chromium.org, judyhsiao@chromium.org Cc: Ajit Pandey , V Sujith Kumar Reddy , Srinivasa Rao Mandadapu Subject: [PATCH v7 1/2] arm64: dts: qcom: sc7180-trogdor: Add lpass dai link for I2S driver Date: Sun, 14 Mar 2021 11:40:53 +0530 Message-Id: <20210314061054.19451-2-srivasam@codeaurora.org> X-Mailer: git-send-email 2.29.0 In-Reply-To: <20210314061054.19451-1-srivasam@codeaurora.org> References: <20210314061054.19451-1-srivasam@codeaurora.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ajit Pandey Add dai link for supporting lpass I2S driver, which is used for audio capture and playback. Add lpass-cpu node with pin controls and i2s primary and secondary dai-links Signed-off-by: Ajit Pandey Signed-off-by: V Sujith Kumar Reddy Signed-off-by: Srinivasa Rao Mandadapu --- arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi | 58 ++++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi b/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi index 436582279dad..fd345972a361 100644 --- a/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi @@ -9,6 +9,7 @@ #include #include #include +#include /* PMICs depend on spmi_bus label and so must come after SoC */ #include "pm6150.dtsi" @@ -283,6 +284,42 @@ keyboard_backlight: keyboard-backlight { max-brightness = <1023>; }; }; + + sound: sound { + compatible = "google,sc7180-trogdor"; + model = "sc7180-rt5682-max98357a-1mic"; + + audio-routing = + "Headphone Jack", "HPOL", + "Headphone Jack", "HPOR"; + + #address-cells = <1>; + #size-cells = <0>; + + dai-link@0 { + link-name = "MultiMedia0"; + reg = ; + cpu { + sound-dai = <&lpass_cpu MI2S_PRIMARY>; + }; + + sound_multimedia0_codec: codec { + sound-dai = <&alc5682 0 /* aif1 */>; + }; + }; + + dai-link@1 { + link-name = "MultiMedia1"; + reg = ; + cpu { + sound-dai = <&lpass_cpu MI2S_SECONDARY>; + }; + + sound_multimedia1_codec: codec { + sound-dai = <&max98357a>; + }; + }; + }; }; &qfprom { @@ -720,6 +757,27 @@ &ipa { modem-init; }; +&lpass_cpu { + status = "okay"; + + pinctrl-names = "default"; + pinctrl-0 = <&sec_mi2s_active>, <&pri_mi2s_active>, <&pri_mi2s_mclk_active>; + + #address-cells = <1>; + #size-cells = <0>; + + mi2s@0 { + reg = ; + qcom,playback-sd-lines = <1>; + qcom,capture-sd-lines = <0>; + }; + + mi2s@1 { + reg = ; + qcom,playback-sd-lines = <0>; + }; +}; + &mdp { status = "okay"; }; -- Qualcomm India Private Limited, on behalf of Qualcomm Innovation Center, Inc., is a member of Code Aurora Forum, a Linux Foundation Collaborative Project.