Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1208611pxk; Fri, 4 Sep 2020 03:45:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyVmMPA+tvfs0TYWyoghQ5EBCisAdiEGISnd+gzTRXTKHjrx1/L3XxPPLaYREtYCSLPyLVq X-Received: by 2002:a17:906:2a49:: with SMTP id k9mr6900935eje.117.1599216311246; Fri, 04 Sep 2020 03:45:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599216311; cv=none; d=google.com; s=arc-20160816; b=LQlim+fqJUJUxHxRCXZ2AgtrgSmdys7hX8SFDkABrOm824d9oukJPFUuWWT3qrUHdj 0TDV7Mr7Stt9R1WqAtb0of4u47BzjKLow1D0iSsvWkC8HLwJyc2UZPZeLA8vJ/l+pEVZ jUTL6dyCiGERI2Gdw4wMbWIfoM1RWHwU7C1rVoNgGAl6bKIHsB2GhFTH7sNZEQr1f99W p8I4kmKcqudWSpLRkmj9dNvr9UjvqVU2CvRGMiX7Qw3Sl6AfUw+yGW4mzplm9WD7SnRS CFSjI1NfzOX4y5uF+plMZm6KEIlKGXbK+I4hXaEUTRhVBz0Pq7a7McZeQnJ6nrmGP6EQ E8LA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=AGBcS2K0ImWeFfrWpXAI/Xo9a8mhl/De79Zkj63qpo8=; b=YVDiM51pdiTuzNtO/FQaxKbhyrWcAWXrObFLUcwVXIDG6B42fR/tyQRAvtdnMmJCW4 JyeaGqLkfX3/joruF5q++AhWJNRF0E2NvWqosPYetILiNi2qWzSvVRIx//DIU6vDdsTh gmbRRy27U/5OHiCE9fT9S7uMQc2sRYQKN+3xxEMoOcI2BSaC7sbn8+HQvZnFSqbfgqjk Z0SHPlnhRC79PgE+1Zn9c/M2JXCAyNohtJcJNI51cyzFMdjSpq7DjFHK4FAMcMkNIVpI G47NX0J+UvfaW3Pn+5VJ6DVGFdZ67l1tSsRxIN/b5W9GjxLLoeeg4irjd+SSSU/KmBiF wMuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=A8RehVNj; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b18si3564926edu.100.2020.09.04.03.44.46; Fri, 04 Sep 2020 03:45:11 -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=@linaro.org header.s=google header.b=A8RehVNj; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730225AbgIDKlS (ORCPT + 99 others); Fri, 4 Sep 2020 06:41:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53100 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730192AbgIDKlH (ORCPT ); Fri, 4 Sep 2020 06:41:07 -0400 Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5261CC061245 for ; Fri, 4 Sep 2020 03:41:06 -0700 (PDT) Received: by mail-wr1-x444.google.com with SMTP id j2so6238301wrx.7 for ; Fri, 04 Sep 2020 03:41:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=AGBcS2K0ImWeFfrWpXAI/Xo9a8mhl/De79Zkj63qpo8=; b=A8RehVNj2xNOT/YL0vidlBxy+xDK9yHRYixalgDgUzpDo0b2eWBf91ky71RbcCgfLI DSUxy5yGwMgvxqu2EHmf6TyyQKvfmM8vyx21XwUgomecbTqPw+Bu7ifHxTDobz3xrrSN Kw6co+OlPpAwUfCQuG9m6IsytM808G+9eMJPWCVrbeEXbf4uIyxfN6l/4SuLfQRK8jAm ZrixQptcS2fmcPcDzTkuA3kiZBb33JUdnadF/BvwS1Tw1e+wM2peYT7wSutrbzLMyiJ3 ahIiKveyR3l8fkxoFDO6OV+EMlf5kFbj0OdiL8M+3esTGP23zrwqxWayWnzK3lpPbsP3 UAJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=AGBcS2K0ImWeFfrWpXAI/Xo9a8mhl/De79Zkj63qpo8=; b=WW9F+5KeQD663/yvEz/qyGzcegbkrb/r8rIDgHFsyvV9nvHrIg+084OvuntS7KI4MT x0OqF3vmlfOz6x1MWzkUF65zdoRKMmpBVuw2cP8DncJzmmEiZ7N2NLGA6F9yAIo2poHn kAx36UL0dyRwADOAKkO/63iXFgnhuqj5aU8NCiY7o9C38vkaQIh6AgG9TXpvl7GjfHsy zuEqCLhE31HmkT29TapA1Kp9XU9hPeKReRsNOx+8Iu+z3FxQx8jdFOMo0p/OuBN0NVn1 GAkvBFawAmCd7J2xIcTH7gjZeCUtrRLmZ5jDkLRjv/airx2OD6Vs/GqhS4TYOBzlY4/z Gcgg== X-Gm-Message-State: AOAM5333aClzEhoHOy63Z/gP4JoXtKODT5vdKGNHRN1E/n+8C9dixRAI 66x5xz2/RRpcxEu6m0UaJsa74g== X-Received: by 2002:adf:e4cc:: with SMTP id v12mr6771808wrm.216.1599216063406; Fri, 04 Sep 2020 03:41:03 -0700 (PDT) Received: from [192.168.86.34] (cpc86377-aztw32-2-0-cust226.18-1.cable.virginm.net. [92.233.226.227]) by smtp.googlemail.com with ESMTPSA id h2sm10621197wrp.69.2020.09.04.03.41.02 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 04 Sep 2020 03:41:02 -0700 (PDT) Subject: Re: [PATCH v3 2/5] ASoC: dt-bindings: Add dt binding for lpass hdmi To: Srinivasa Rao Mandadapu , agross@kernel.org, bjorn.andersson@linaro.org, lgirdwood@gmail.com, broonie@kernel.org, robh+dt@kernel.org, plai@codeaurora.org, bgoswami@codeaurora.org, perex@perex.cz, tiwai@suse.com, rohitkr@codeaurora.org, linux-arm-msm@vger.kernel.org, alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: V Sujith Kumar Reddy References: <1598855964-1042-1-git-send-email-srivasam@codeaurora.org> <1598855964-1042-3-git-send-email-srivasam@codeaurora.org> From: Srinivas Kandagatla Message-ID: <0aa914dd-6a6e-208d-d29f-214a84dfd8a2@linaro.org> Date: Fri, 4 Sep 2020 11:41:01 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <1598855964-1042-3-git-send-email-srivasam@codeaurora.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 31/08/2020 07:39, Srinivasa Rao Mandadapu wrote: > From: V Sujith Kumar Reddy > > Adds bindings for lpass hdmi interface > which can support audio path over dp. > > Signed-off-by: Srinivasa Rao > Signed-off-by: V Sujith Kumar Reddy > --- > .../devicetree/bindings/sound/qcom,lpass-cpu.yaml | 51 ++++++++++++++++++++-- > 1 file changed, 47 insertions(+), 4 deletions(-) > > diff --git a/Documentation/devicetree/bindings/sound/qcom,lpass-cpu.yaml b/Documentation/devicetree/bindings/sound/qcom,lpass-cpu.yaml > index 09c9bd2..7c2ac0c 100644 > --- a/Documentation/devicetree/bindings/sound/qcom,lpass-cpu.yaml > +++ b/Documentation/devicetree/bindings/sound/qcom,lpass-cpu.yaml > @@ -22,6 +22,7 @@ properties: > - qcom,lpass-cpu > - qcom,apq8016-lpass-cpu > - qcom,sc7180-lpass-cpu > + - qcom,sc7180-lpass-hdmi Why do we need a new compatible per interface, IMO, you should just use the existing compatible. Or please explain the reasons why we need this? > > reg: > maxItems: 1 > @@ -60,10 +61,12 @@ properties: > const: 0 > > patternProperties: > - "(^mi2s-[0-9a-f]$|mi2s)": > + "^dai@[0-9a-f]$": > type: object > - description: Required properties for each DAI > - > + description: | > + LPASS CPU dai node for each I2S device. Bindings of each node > + depends on the specific driver providing the functionality and > + properties. > properties: > reg: > maxItems: 1 > @@ -145,6 +148,22 @@ allOf: > - iommus > - power-domains > > + - if: > + properties: > + compatible: > + contains: > + const: qcom,sc7180-lpass-hdmi > + then: > + properties: > + clock-names: > + items: > + - const: pcnoc-sway-clk > + - const: audio-core > + - const: pcnoc-mport-clk > + required: > + - iommus > + - power-domains > + > examples: > - | > #include > @@ -178,12 +197,36 @@ examples: > #address-cells = <1>; > #size-cells = <0>; > /* Optional to set different MI2S SD lines */ > - mi2s-primary@0 { > + dai@mi2s-primary { > reg = ; > qcom,playback-sd-lines = <1>; > qcom,capture-sd-lines = <0>; > }; > }; > + > + lpassh@62d87000 { > + compatible = "qcom,sc7180-lpass-hdmi"; > + > + reg = <0 0x62d87000 0 0x68000>; > + > + iommus = <&apps_smmu 0x1032 0>; > + > + power-domains = <&lpass_hm 0>; > + > + clocks = <&gcc 131>, > + <&lpasscc 6>, > + <&lpasscc 10>; > + > + clock-names = "pcnoc-sway-clk", "audio-core", > + "pcnoc-mport-clk"; > + > + #sound-dai-cells = <1>; > + > + #address-cells = <1>; > + #size-cells = <0>; > + > + interrupts = <0 268 1>; > + }; > }; > > ... >