Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp677816pxf; Thu, 11 Mar 2021 12:06:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJyVXuIHEsdXJvPsy5W/nBv/bb1yqv+S+qjKvly9MgxXasX/Xd+YsTIBbCUy3Xi6YwMW7+/e X-Received: by 2002:a17:906:706:: with SMTP id y6mr4785292ejb.274.1615493211117; Thu, 11 Mar 2021 12:06:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615493211; cv=none; d=google.com; s=arc-20160816; b=NVDQ+1c0+dPx5TQO96ynNUPtrd9TEruGtWFihi04O2Pa47oDL3qyz5O3EWyOS/TU+Q dCTkySWSTKiw+1037VoWbb4VWW9stFk8lVrB1adUa4iGfy98+g+qKQSUY5zg2ajsIkh4 oE2EFAQs5lGhyZvTYk4+U0ogdMArbhP0sbUGc25s3fnQTmT4btfaKhbTqvTC2/mAyai2 /u3X93ASbfwd3Ic9d7d42bybiimkq4JvZ41S4ztG2D77DPChOyirq//Xzeswzb9ZpEB9 e5BEaokkry0ckYaXv22rL3SsSBLrxDB8EBzYJaT+ofCTAkoCChD5x+IbpRbppPNli4pT 5jZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=i0RGEdH4qXmWUyxNfL/0Qo4+5Mh265qbBkTRMR+tqRI=; b=MUdq3Fyriv1o+4oiDbhMTH9XLD+U3CuaH4B39yHL1LDU+u8+265T43WczbxxOQCvEe MpuRRM/ktcv2voett0hxA4c5KZ309p9+NvdUuy5zmllrFmJiUzG5mOa/UJSkMW1gCnAI uJkVgTi64gCGcErwWxb4CMRRoVTjGGqiDpzCRIokunZ/nNiKGDyIg4Asd0ohk3jQ48uF G7hC550+h21kQchg1SrsIYyDrFivMURQLs06mEgswW9XWQuosWAa9V69l76jqx0R9DIp x0Aw4JfiJNHorUHVoDw0noOTPeXjp2EyolNbAJMBNCh/IEBJHkI+RFS+gwe+e6agKg+O itjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=OAERhww9; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l11si2438565ejq.118.2021.03.11.12.06.26; Thu, 11 Mar 2021 12:06:51 -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=@chromium.org header.s=google header.b=OAERhww9; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229555AbhCKUF2 (ORCPT + 99 others); Thu, 11 Mar 2021 15:05:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47426 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229607AbhCKUFF (ORCPT ); Thu, 11 Mar 2021 15:05:05 -0500 Received: from mail-ot1-x32a.google.com (mail-ot1-x32a.google.com [IPv6:2607:f8b0:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 54725C061574 for ; Thu, 11 Mar 2021 12:05:05 -0800 (PST) Received: by mail-ot1-x32a.google.com with SMTP id 68-20020a9d0f4a0000b02901b663e6258dso233463ott.13 for ; Thu, 11 Mar 2021 12:05:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=i0RGEdH4qXmWUyxNfL/0Qo4+5Mh265qbBkTRMR+tqRI=; b=OAERhww90Ydo9cxJC3XtIm6VlKfEfVD/B1Wrc3Lo7PDMjqvJ0MDVxP7v5PlekaTETo /0cCyd9BnnjRsw1GVjAR3R4ocwjMs95l6AaJOmhskigSHLLgyX4XAHjopgVsX3K9Vsyu ewDcNw0kzpX6SuEtmoml2wkkWBwDFevbJKolE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=i0RGEdH4qXmWUyxNfL/0Qo4+5Mh265qbBkTRMR+tqRI=; b=eZZslmJA5pnxijyDFGq4B4laoq0OwURVPYZnTiJQAkVALdPs5PrC/4xbsx7eeQ/2T3 PsXfHJslfiIIZk+/NZHX1ravROSwOsW1+4ya1JLbiJsYP8+x9eyjB4WD8wKABx7/S7sr iCNzFtQVIO5/4p3OkScesT3MToQRUZVNPQRHcGRm2+oFuzqITRojhQ+6I22i53u72cgD shp7NT7w3gD/EvEL0zbzikHrQfVHGf0IV4eULHK8aVcLA+u/2QJuyLE4aQpsZ2eX1hxD O5eHcF541PEBkxa5L0GhFUrNEKNK+3YcZyE3+zbm6Yq114naFGHllWcusCzP3HytPwT+ 78AA== X-Gm-Message-State: AOAM530TpgQP+EIBuH7B9+jHUAIF/VTLDDpE48fJiS0o+nMo0AoVrR2t HgEg3UNn+El/r35YuR30yepTKYRSi2Wjjw== X-Received: by 2002:a05:6830:1acf:: with SMTP id r15mr493467otc.255.1615493104586; Thu, 11 Mar 2021 12:05:04 -0800 (PST) Received: from mail-ot1-f46.google.com (mail-ot1-f46.google.com. [209.85.210.46]) by smtp.gmail.com with ESMTPSA id y194sm741426ooa.19.2021.03.11.12.05.04 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 11 Mar 2021 12:05:04 -0800 (PST) Received: by mail-ot1-f46.google.com with SMTP id t16so2459778ott.3 for ; Thu, 11 Mar 2021 12:05:04 -0800 (PST) X-Received: by 2002:a25:aa43:: with SMTP id s61mr14771793ybi.32.1615492624004; Thu, 11 Mar 2021 11:57:04 -0800 (PST) MIME-Version: 1.0 References: <20210311164815.14113-1-srivasam@codeaurora.org> <20210311164815.14113-2-srivasam@codeaurora.org> In-Reply-To: <20210311164815.14113-2-srivasam@codeaurora.org> From: Doug Anderson Date: Thu, 11 Mar 2021 11:56:52 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v4 1/2] arm64: dts: qcom: sc7180-trogdor: Add lpass dai link for I2S driver To: Srinivasa Rao Mandadapu Cc: gross@kernel.org, Bjorn Andersson , Rob Herring , linux-arm-msm , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , LKML , Rohit kumar , Srinivas Kandagatla , Stephen Boyd , Judy Hsiao , Ajit Pandey , V Sujith Kumar Reddy Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Thu, Mar 11, 2021 at 8:49 AM Srinivasa Rao Mandadapu wrote: > > 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..501e3d4c9097 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 It seems marginally better to include "sc7180-lpass.h" to get this? I don't really know the difference between the two but since unless we're planning to delete the sc7180 version it seems like you might as well include that one? > /* 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>; > + }; > + > + codec { > + sound-dai = <&alc5682 MI2S_PRIMARY>; I'm an audio noob but isn't "MI2S_PRIMARY" something to be used with "lpass_cpu", not with "alc5682" ? I have no idea what the IDs correspond to on "alc5682". Are you sure we even need an extra ID there? The "alc5682" bindings upstream don't talk anything about dai-cells, but maybe they're just wrong... -Doug