Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp434902pxu; Tue, 6 Oct 2020 09:49:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwyvTkxp8P0TCS9l+EpWezwq2ixKY+PGauxMy0DKidKcTi2zXoGDSmj/FA/F4kQ8wr4H/jg X-Received: by 2002:a05:6402:3c1:: with SMTP id t1mr6229533edw.231.1602002955467; Tue, 06 Oct 2020 09:49:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602002955; cv=none; d=google.com; s=arc-20160816; b=IWQhdk97Ab+3d21mz5QsUGZAQjNrvqD7YGPK8Sb6yuvuzLYxKZ2H4gjZTy63pRU8or E++DhNzWskuxHvN9y3LeU3pc7lw7UdeK9q6hkrPzzoxWx12IjwBAVeYfKhjpqqoUrvU8 uU7+gqgh5Y11pqQYCDACHM33RdCTaaoKxNDNkHs6tapR5BuNJ6dxoPML4EF7A03LECwU zak+gNAY9/eaab1+egXx0jJM8OO+GqIhsbqiVtR5FI/j0xBTON713t4xTCBeHr7bZIMf GzldeKPJvrqWPqHriJhpRLBKOy9U+9sBqADl2YTcbK1J5FktkXvNlXB6+d0O3PtcAjWY Eu2w== 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 :sender:dkim-signature; bh=s4iKWaLpOC+X+JKNpHvDXG7sSzTkTqzFgDACDzo1ImM=; b=aTi1bSGwojXEoCrDCbO2cgNRhaOn5I0WMn/E3nnU/4Db8Lf194xMKcI9flg7MqGI0+ JQEZ8TrTH4fz9F9B+XF9mL+C2h7ln1caAnSvFlk7Xy3YnNJ5MgNHbcqSV3cKXI0HRYtb nBzZvqM7GdeV9Hh6sZ1f4nOuPbalYc/kJ0oKl33+67/sQh8Ss150LDy9Jqp88t3Rczxg 1YnicCxPt9CgfypZpvaremXPlQhFIcHyPSeymJy8reXL30M/Y5zVDZGV/WsFJTaVhIo/ hzEl0+ElR9C5ER17G8Btr14IQ5L3+hT5kIQe+LLdwN9y9L7+R3QSJ6iQRz9eBO3n4XpO mC5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=R7RVYYaM; 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 h14si2473931eji.506.2020.10.06.09.48.52; Tue, 06 Oct 2020 09:49:15 -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=pass header.i=@mg.codeaurora.org header.s=smtp header.b=R7RVYYaM; 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 S1726164AbgJFQrF (ORCPT + 99 others); Tue, 6 Oct 2020 12:47:05 -0400 Received: from m42-4.mailgun.net ([69.72.42.4]:48307 "EHLO m42-4.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725769AbgJFQrE (ORCPT ); Tue, 6 Oct 2020 12:47:04 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1602002824; h=Message-Id: Date: Subject: Cc: To: From: Sender; bh=s4iKWaLpOC+X+JKNpHvDXG7sSzTkTqzFgDACDzo1ImM=; b=R7RVYYaM3cGutTrkPiSulELFyo5D6wu5mhFuwp44BKIua1YWS11Ip/jNiagSUSh8Xbp3iFxH r5Kh03I4rD6Lxgb2+XjWbGZrSy52xAxyKfv7j4kBAHCmG+LLJ5CRZayWPh3YGEEEsHnJBgRE GsT/Kp7yGWkK9k479ygCh37qLGk= X-Mailgun-Sending-Ip: 69.72.42.4 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 5f7c9f863711fec7b160d96c (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Tue, 06 Oct 2020 16:47:02 GMT Sender: srivasam=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id BD8BCC433F1; Tue, 6 Oct 2020 16:47:01 +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 BCE8AC433CA; Tue, 6 Oct 2020 16:46:57 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org BCE8AC433CA 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 , V Sujith Kumar Reddy , Srinivasa Rao Mandadapu Subject: [PATCH v2] arm64: dts: qcom: sc7180-trogdor: Add lpass dai link for I2S driver Date: Tue, 6 Oct 2020 22:16:43 +0530 Message-Id: <1602002803-29971-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: Ajit Pandey Signed-off-by: V Sujith Kumar Reddy Signed-off-by: Srinivasa Rao Mandadapu --- Changes since v1: -- Alias name added for sound dai link node 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..e5863ad 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: 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.