Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1258207pxk; Fri, 18 Sep 2020 07:55:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz4Wni1utNMwpimkffWcoyNKowVgER5W4W8JN88614ohuMmXCudfvuJKBI8xG3Av6eBHY/L X-Received: by 2002:a50:cbc7:: with SMTP id l7mr38986531edi.148.1600440917893; Fri, 18 Sep 2020 07:55:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600440917; cv=none; d=google.com; s=arc-20160816; b=U4pKy2jl8dQ2EP9WOcfCbM5+e1Ek1g0YOFIlK/TqGxaT3IsfhASNmUSKWsE8gN/F4V VA2pmVwTrHZzDzNcdt92cxHRtEokUsIwmkZ2lE5H5lz0pcOG7Cua6SLaZ8cD8ss7JAtx X7ySGBS0PdUIiTgoNsSNpoaaSvdVk6kkMBj/Y9JPHd/cjGkbI9iEOB5JcwrWRVw0JNK6 s9SortxF0f19rB0xjD32BqFqeby46v37eVNn0sftXlbSUpYyEAscMYifW7/KaE0gdQ53 RwxXmQLARTQmRRVx+yuPzEwyiVFt6wdn15Lrsd1EbrG4R58OlIaqX7z9Tq9W2oL86EKZ HV1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from:dmarc-filter :dkim-signature; bh=VCaK/PjSr2IoSDpVniOKKKF8ojfJ6Hs8WRbfiUdiwk8=; b=WHqPg/zfxpj0pYtyXQxoBfqDkRG2uKeGn91LPW2YJbqNgVRd2Y3MjAAZdcVgQUnbpE K+cSfeTLhGm01GG1PEyL+gStyavMF5Kh6K4g4xWCWwH3JzDdbdSJStSzyWs+MAcXSC5S w8ac+K6RvSf/0jwkI3fgwUwJHP2ZKecomYhJCC8cD0DmUz5cMH/nTxHETyBw1q7rF0Qn Bzutz8IP3BGig7Kva5avTCE2vlC1sq91NZLqsU1NHGM3QtaLjzZ9/g9iyfRJTt8zedkS iyQ1oFxQzVpNtLnugQUgolnzXx+j5q7ZqP8hkUuPXcgNpTBHWpTUPk5eQR9ai0Xs4CKd H4tA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b="a/7Srh3f"; 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 i26si2316298ejx.591.2020.09.18.07.54.54; Fri, 18 Sep 2020 07:55:17 -0700 (PDT) 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=fail header.i=@mg.codeaurora.org header.s=smtp header.b="a/7Srh3f"; 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 S1726696AbgIROwP (ORCPT + 99 others); Fri, 18 Sep 2020 10:52:15 -0400 Received: from m42-11.mailgun.net ([69.72.42.11]:23644 "EHLO m42-11.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726566AbgIROwM (ORCPT ); Fri, 18 Sep 2020 10:52:12 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1600440731; h=Message-Id: Date: Subject: Cc: To: From: Sender; bh=VCaK/PjSr2IoSDpVniOKKKF8ojfJ6Hs8WRbfiUdiwk8=; b=a/7Srh3fMgDevoBPOGWXa5HKk/UpyMehwk7gK5FgYw9c5BWYC8vXv5jPNR8xd6uyLUtDfO/H nOjSE4QrGkrmsPI6Elrmlqb5BqA9sEeVg+U/tOMWm7wBWsjEk+voGlNz66sDovgwkMXBqH8W HgZmS0wA68XO3uvZmaBvxh4/U4k= X-Mailgun-Sending-Ip: 69.72.42.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-west-2.postgun.com with SMTP id 5f64c9774a8a578ddc320166 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Fri, 18 Sep 2020 14:51:35 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 08CD9C433C8; Fri, 18 Sep 2020 14:51:35 +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 0F58FC433C8; Fri, 18 Sep 2020 14:51:30 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 0F58FC433C8 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 Cc: Ajit Pandey , Srinivasa Rao Mandadapu , V Sujith Kumar Reddy Subject: [PATCH] arm64: dts: qcom: sc7180-trogdor: Add lpass dai link for I2S driver Date: Fri, 18 Sep 2020 20:21:18 +0530 Message-Id: <1600440678-2137-1-git-send-email-srivasam@codeaurora.org> X-Mailer: git-send-email 2.7.4 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: Srinivasa Rao Mandadapu Signed-off-by: V Sujith Kumar Reddy --- arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi | 59 ++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi b/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi index bf87558..5724982 100644 --- a/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi @@ -220,6 +220,44 @@ max-brightness = <1023>; }; }; + + sound { + compatible = "qcom,sc7180-sndcard"; + model = "sc7180-snd-card"; + + audio-routing = + "Headphone Jack", "HPOL", + "Headphone Jack", "HPOR"; + + audio-jack = <&alc5682>; + + #address-cells = <1>; + #size-cells = <0>; + + dai-link@0 { + link-name = "MultiMedia0"; + reg = <0>; + cpu { + sound-dai = <&lpass_cpu 0>; + }; + + codec { + sound-dai = <&alc5682 0>; + }; + }; + + dai-link@1 { + link-name = "MultiMedia1"; + reg = <1>; + cpu { + sound-dai = <&lpass_cpu 1>; + }; + + codec { + sound-dai = <&max98357a>; + }; + }; + }; }; &qfprom { @@ -725,6 +763,27 @@ hp_i2c: &i2c9 { 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.