Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp762222rwb; Fri, 23 Sep 2022 03:57:49 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7NzjOwXMuXPJLLZtP8rOcNIf6kDY5iB8EcKr0HHP1Y0IDEWsUHdGEf+KFdWO6hQqlYMmBt X-Received: by 2002:a17:907:75dc:b0:730:9c68:9a2e with SMTP id jl28-20020a17090775dc00b007309c689a2emr6650183ejc.22.1663930669098; Fri, 23 Sep 2022 03:57:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663930669; cv=none; d=google.com; s=arc-20160816; b=IE9nNX0nP5fRud99HHlJQe7cfoJ9irA1soI6nxMVf/Fsy1IRa3TxzpObJovfq+G2za vkrCCQ84wl71kgA1OkN0aO9imcTc9PzRSEy/oJcoYu1WKvcKlkgFpGi/fVImFXah9n35 EdOwO3snBLkhZF5tUFQ8KsgKgUdAMIT2xXXIg7014f67NJW177hpp7VfLGfGH01WrDPl oqonFG+gjZrZCuCnbbenp3txyWKg0jJjLxFdEqZgfatHHYJwF3iPxdUNkihXqwO4zJ0S ZHAJMG5ag4UCSMNbSrMgQUF8QLKZnkOW1AVrTf6lRa6WhUYx9D1n+6S1ShsGSGRw9bBi aYsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=I7e7inRGZJBBrCxWPf4VaG+f6kEpOQsdfxaR6MXxAk4=; b=T+GUM2P6EGCQypCNWgnucGA/E2d9beMgarG8hBIOq3dtwrUzU5JziURvVHjoW24GF9 rjJlhYIxoH90Iu3/wYQ+GQla7kI47y3NGesLBPopWvEofqqAo7Sq/58/FT/pbMZsyvb0 Amd9QutsiXyxavl1ilN/JHL0C4yYECE97hRYletpn5qh91CllPn1kC4iHByI0a+JoP15 FpxaZX68GQYasT9C0uwyB/D2l1EiD7s7GU+BE+e3LagAMME/1RyZMK+Udn9VWDwgvInc bngAq9QSnqO1Jmt/vPugTAfMz8jUchxrVT0jOxeaiyy6pY7TZpt/cKh++U7IfoGs2vf6 Si+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PiyEHGgC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id di19-20020a170906731300b00780efccc9c3si7825865ejc.378.2022.09.23.03.57.23; Fri, 23 Sep 2022 03:57:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PiyEHGgC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S230172AbiIWKbF (ORCPT + 99 others); Fri, 23 Sep 2022 06:31:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231377AbiIWKad (ORCPT ); Fri, 23 Sep 2022 06:30:33 -0400 Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 93EF13F1CA for ; Fri, 23 Sep 2022 03:30:31 -0700 (PDT) Received: by mail-lj1-x22a.google.com with SMTP id a10so14210090ljq.0 for ; Fri, 23 Sep 2022 03:30:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date; bh=I7e7inRGZJBBrCxWPf4VaG+f6kEpOQsdfxaR6MXxAk4=; b=PiyEHGgCKoygApaBJYQHYg/kBKkhs9/+zycl/WsVJbpxF9ZqAtwPwgNbbc8rir7qvc S2EQXUP0LwJVFyS/1ewNiUVYBwQJPeNlmWq7XUp74KDxEiJ3ZMqUciOiFX4dqVFPjvPZ 0kPJnpgaECDcVhKiRpzU2qcIan4qzQ8a/cUdm5m2mGzvungWfpPllAtMfQ8fgKUeyVj0 OU0rpxHHtmuUfMqvx/C1mJ2vZz4+nEzDKXFx9G9TqfZVoP4ZdZoiGHPq2VTpgrIIdhV0 gB8LUCZlYZIBQxyOi2dYxTx96QfoVomXj6Ul83rLvBCCBiyaDss3j3GmVRguX68z+By5 RvfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date; bh=I7e7inRGZJBBrCxWPf4VaG+f6kEpOQsdfxaR6MXxAk4=; b=yiV1GSpx4d096Y5OUbtskW6hxp0369DtjSnCRcRaJW8+YRlf4ggRIRFUoG5/mNesKF wAMXwFdUrnEOJEEEaG/BDuh4aAJU3x9K42jMaJcD7wTf7qtPfPmmooTy8I4wG+ch/HZF vcc+rRz73i+rlNkH+7Yghl9F8bapmlt/r/YuMBAOBsqTfIgdcazQV9JW6QBhL+wtd72u pjFG2TCiV9kRgXIjt17naZqUoEm6PQZRH+u1p7VyQzAbBLwUsoOHTp0hIZdDXf9K+fQV ACqPdIi4nvjQuA2CqhYBFjy4z5ljg7dH/tXX4zabo/nm/HPydc4vMt1fP907cAS5dh2I nZ2w== X-Gm-Message-State: ACrzQf3RCM6Gl9E+Sx2CcKdqqBKeH1tGwrRV6rLd+lpgsB+CQur2pgjG Tn9Mco5Xl3bY9tjrMTsw3lfiVw== X-Received: by 2002:a05:651c:a05:b0:26c:5010:39d1 with SMTP id k5-20020a05651c0a0500b0026c501039d1mr2768953ljq.115.1663929029776; Fri, 23 Sep 2022 03:30:29 -0700 (PDT) Received: from [192.168.0.21] (78-11-189-27.static.ip.netia.com.pl. [78.11.189.27]) by smtp.gmail.com with ESMTPSA id f16-20020a2ea0d0000000b00268335eaa8asm1317133ljm.51.2022.09.23.03.30.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 23 Sep 2022 03:30:29 -0700 (PDT) Message-ID: Date: Fri, 23 Sep 2022 12:30:28 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 Subject: Re: [PATCH v2 1/7] ASoC: dt-bindings: fsl_rpmsg: Add a property to assign the rpmsg channel Content-Language: en-US To: Chancel Liu , Rob Herring Cc: "lgirdwood@gmail.com" , "broonie@kernel.org" , "perex@perex.cz" , "tiwai@suse.com" , "alsa-devel@alsa-project.org" , "linux-kernel@vger.kernel.org" , "devicetree@vger.kernel.org" , "krzysztof.kozlowski+dt@linaro.org" , "shengjiu.wang@gmail.com" , "S.J. Wang" , "Xiubo.Lee@gmail.com" , "festevam@gmail.com" , "nicoleotsuka@gmail.com" , "linuxppc-dev@lists.ozlabs.org" References: <20220914105145.2543646-1-chancel.liu@nxp.com> <20220914105145.2543646-2-chancel.liu@nxp.com> <20220916185048.GA1061412-robh@kernel.org> From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 23/09/2022 11:56, Chancel Liu wrote: >>> Add a string property to assign the rpmsg channel this sound card sits >>> on. It also represents the name of ASoC platform driver. This property >>> can be omitted if there is only one sound card and it sits on >>> "rpmsg-audio-channel". >>> >>> Signed-off-by: Chancel Liu >>> --- >>> .../devicetree/bindings/sound/fsl,rpmsg.yaml | 37 ++++++++++++++++++- >>> 1 file changed, 35 insertions(+), 2 deletions(-) >>> >>> diff --git a/Documentation/devicetree/bindings/sound/fsl,rpmsg.yaml >> b/Documentation/devicetree/bindings/sound/fsl,rpmsg.yaml >>> index d370c98a62c7..3744ae794c00 100644 >>> --- a/Documentation/devicetree/bindings/sound/fsl,rpmsg.yaml >>> +++ b/Documentation/devicetree/bindings/sound/fsl,rpmsg.yaml >>> @@ -11,8 +11,11 @@ maintainers: >>> >>> description: | >>> fsl_rpmsg is a virtual audio device. Mapping to real hardware devices >>> - are SAI, DMA controlled by Cortex M core. What we see from Linux >>> - side is a device which provides audio service by rpmsg channel. >>> + are SAI, MICFIL, DMA controlled by Cortex M core. What we see from >>> + Linux side is a device which provides audio service by rpmsg channel. >>> + We can create different sound cards which access different hardwares >>> + such as SAI, MICFIL, .etc through building rpmsg channels between >>> + Cortex-A and Cortex-M. >>> >>> properties: >>> compatible: >>> @@ -85,6 +88,17 @@ properties: >>> This is a boolean property. If present, the receiving function >>> will be enabled. >>> >>> + fsl,rpmsg-channel-name: >>> + $ref: /schemas/types.yaml#/definitions/string >>> + description: | >>> + A string property to assign rpmsg channel this sound card sits on. >>> + It also represents the name of ASoC platform driver. This property >> >> That's a Linux detail which doesn't belong in DT. >> > > We pass hardware parameters in dts node to set up clocks or other > configurations. These configurations are finally sent to Cortex-M by > rpmsg channel because Cortex-M actually controls real hardware devices. > If there's only one sound card sits on one rpmsg channel we will not > need this property. But if there are several sound cards we need to > specify correct rpmsg channel. Thus hardware configurations can be > properly sent to Cortex-M. From this level to speak, this property is > hardware-related since rpmsg channel represents the real hardware audio > controller. > > Here I attach the discussion in version 1 patches for your information: > --- > This property aims to tell the ASoC driver which rpmsg channel the > sound card depends on. If there are several sound cards sit on rpmsg, > we should pass correct information in dts node to specify the name of > rpmsg channel. That is why I meant to add this property. > > Actually this property is hardware-related. As we discussed before, > this kind of sound card based on rpmsg works under this mechanism > Cortex-A core tells the Cortex-M core configuration of the PCM > parameters then Cortex-M controls real hardware devices. This property > specifying rpmsg channel represents the real hardware audio controller. > --- > > That's my idea adding this property. Do you have any suggstion? I think you misunderstood the comment. Rob's comment was directly below a line which he referred to. That line contained a statement referring to Linux drivers. Anything related to Linux drivers does not belong to DT. Best regards, Krzysztof