Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1819257pxf; Fri, 12 Mar 2021 21:53:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJxpL87t8MxEw7LzA2jYHVm2ieQk8+ilAN9eIPXApjjRHKyTlEprvR17gdnJ/LHBhlQczYNp X-Received: by 2002:a17:906:a8a:: with SMTP id y10mr12764304ejf.288.1615614817928; Fri, 12 Mar 2021 21:53:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615614817; cv=none; d=google.com; s=arc-20160816; b=F6yRWQvdrzLl4VYmb0ZtVq/FqzQ0/naoD6LIOuLb0Gpme8wC9an54LBzbnoefrNBlb WOz0/TcA1O9PmwuIDXBls6Gbx3eiCtpXFkpDkwWneAXNcF1fkeV/MGzDMKqGLEJfXBeF S1GYyxzfYrzYYy7renMaXr8mh7VYp/GjNTLN8Unz2GLsj+xg4YnLbyODtzNc+W5QtZ5S rgzu2q+G8MLMG8IcXO/3LokN3imMmawLucuLRFc3LZ2undjvKXswlfv6E5of/jmpLkuZ 4p/Cf6bKAPDxmNfFiToKT3RI4fM6KZADsjE+34aM+fq5cOqYzR/aoVjvS6q8xA5UBssk f/yA== 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=Bv80pLSjcgSe42/xxTK2h8ukzcEXY9zkad/ywD8uPhQ=; b=YhncCF3TUaI2daEL0NUdFd4k535W+xtjmdKlou5SCJ0mntAeRyN7mxti7mEfG5nYA2 XSNEW4AT5SICKHVWxAjEw7Pk3JgdOVjV/AIg/d4BDPCvWUbn1wsbI5W1tWLlTbT0mvBE Z9B/wAdm/+3tYkpBuJGIJzho0G9FcGwoC5UzA2Oxw18xnD2cOhE47BxdrNXJvvrmwSja qbK1uI4hjPgXKBaboBfMDsKrjJxDWGLE0YFR6/UaK1UEQKzBpxRyEdBMp7lahzeDS7wu ENl3KGN0p5T4FmDo85E5qadHpbAcBhBaBL+XZS6jxPH8qRIOig/yONcki+gh3IzJreVc vBWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=GRnRFjcG; 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 l23si5680468ejb.447.2021.03.12.21.53.15; Fri, 12 Mar 2021 21:53:37 -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=GRnRFjcG; 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 S231906AbhCMFsB (ORCPT + 99 others); Sat, 13 Mar 2021 00:48:01 -0500 Received: from m42-2.mailgun.net ([69.72.42.2]:41930 "EHLO m42-2.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233090AbhCMFrf (ORCPT ); Sat, 13 Mar 2021 00:47:35 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1615614455; h=Content-Transfer-Encoding: MIME-Version: References: In-Reply-To: Message-Id: Date: Subject: Cc: To: From: Sender; bh=Bv80pLSjcgSe42/xxTK2h8ukzcEXY9zkad/ywD8uPhQ=; b=GRnRFjcGRxl04Valo+1DGUSpM4RPvJ6u88ukqZawfZuzvhGXUkXX/kWU+JDAcDRBc00gIEZP Uh39vS4zcrAL4Ilh1JIT96oVH0EsM7H0zLtns1pHc2xTYkUkF26SvX2XqyJIdFzB3eGGWAeA ZOe2WDaI63DHj3H96xllC79XoLk= X-Mailgun-Sending-Ip: 69.72.42.2 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-west-2.postgun.com with SMTP id 604c51e45d70193f88b9f5e2 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Sat, 13 Mar 2021 05:47:16 GMT Sender: srivasam=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 57978C433C6; Sat, 13 Mar 2021 05:47:16 +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 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 C8C66C43462; Sat, 13 Mar 2021 05:47:11 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org C8C66C43462 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 v6 1/2] arm64: dts: qcom: sc7180-trogdor: Add lpass dai link for I2S driver Date: Sat, 13 Mar 2021 11:16:53 +0530 Message-Id: <20210313054654.11693-2-srivasam@codeaurora.org> X-Mailer: git-send-email 2.29.0 In-Reply-To: <20210313054654.11693-1-srivasam@codeaurora.org> References: <20210313054654.11693-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..3a24383247db 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-primary@0 { + reg = ; + qcom,playback-sd-lines = <1>; + qcom,capture-sd-lines = <0>; + }; + + mi2s-secondary@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.