Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp1998764pxb; Thu, 7 Oct 2021 21:14:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJweJDU6zodSX+Iw+EmZdIjqjdKAVVCaSpZ43E55IOuQJSe3UyrUkQdwejkwpY/ThDdm5LYr X-Received: by 2002:a05:6402:26d1:: with SMTP id x17mr11943745edd.300.1633666492931; Thu, 07 Oct 2021 21:14:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633666492; cv=none; d=google.com; s=arc-20160816; b=p3c6aa0vQCG0sll2nS9kJdRxc2V/n3QNFV5Qy60egRFe1aIqhmjOT1Ub8acIdHilgQ W10iwBidCbbJaJ9P5LZtWIYgWzRCKlg4AXNNhHPISBf/iF3qT5H1JNEVLZPMpgJnWNxU jx/cSvVCAeG2SwiQ1FUNkBOrWEoesLfiDuKyMSOR6g7+Z2M51RVFuiRQ6NDFvBbpcJdq EOfodXZRLyRs2BoINwwCvO+E5Pm4eB0cCKah14dkXm+3mj/UAt22tbo+pSlN6Hk7X0mk 8KA6bl89NCbfVpg8pJcVHGbvwekVI3ohhlFMmxeEfWREq9RT4MDiP2f6ESf3OExc6PGA psuA== 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=kpVveClApwG0f1MnOqx8Bs+gZiIua6pFcbtmAW5z2vE=; b=zKMQhNde/xgj+V3qLdjA6j/nEYH3oxbO1rKxBnbyuoyVEvm6XJzW51Gr5lkxrlzNhu prnTFivQDCH7+P1wVQkujAIDgdRpomEkyM31Q3uwdgrxaRGSJXcBIGqjRhNMlH4cQqqP zsDNluYzXo2wbtcIwMDmYdFpmWmzeR+k0YKd2RIsMMBnc09OXXkjPLhoex3D+T12ufMu fjJWNETNH3kZrnPVH0IpEqm1swKAugaduPzndlG+ztss5Y3XG4J5v6o3HGAKNMws7/zf 1BfOhWz4+ybLTwlfwW+V0LRsdnegE5td9pFqs+v4WlP/Ou3L4dotpO+mPWMy7wvZjVYu M5ag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=HFR4Iurm; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y21si1566266eje.171.2021.10.07.21.14.28; Thu, 07 Oct 2021 21:14:52 -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=@gmail.com header.s=20210112 header.b=HFR4Iurm; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230158AbhJHEOO (ORCPT + 99 others); Fri, 8 Oct 2021 00:14:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48006 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229470AbhJHEOM (ORCPT ); Fri, 8 Oct 2021 00:14:12 -0400 Received: from mail-qt1-x835.google.com (mail-qt1-x835.google.com [IPv6:2607:f8b0:4864:20::835]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E384DC061570; Thu, 7 Oct 2021 21:12:17 -0700 (PDT) Received: by mail-qt1-x835.google.com with SMTP id r1so8374773qta.12; Thu, 07 Oct 2021 21:12:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=kpVveClApwG0f1MnOqx8Bs+gZiIua6pFcbtmAW5z2vE=; b=HFR4Iurmu8llLf9/t436kyERqMxFzX0S9BXVmQphHY+eC094l2FixYiSO/6IyRNrzg aGnSn1JLegb+klcmlL9c1FHA6kv8ooUumw8gQ/zUrSEVix7JDROjy1ggNEtJ5OPfIKAE DubkE0HzXEtoETInYz7iIkiFfSQcsa4UsOs6OumtJY+ohNxSwbSF3OxjqFAGOzJJ8Q75 zraUH9qJ/pgTZXCCXZj605AfcXXwEqvIf0LSSOmIvjgDCjW1EfRmaibzdvqNIpR+HJFp LuKOKTNDsKsjt5X0SjEDa/dxID3ceTSPG9OgLZlioueIvqUmCwSxrW1ydmNwRjkabnca Hzqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=kpVveClApwG0f1MnOqx8Bs+gZiIua6pFcbtmAW5z2vE=; b=HLoI2Hlz4FSXG/MSelvtfuVPLZOW0SJcPzQ3Q00eaggOMkDB+FT2WAQr2RrUUSjZfc UJWr+zvPSPnBiDingvTYXtZrLoNp1WBn8n3Dk2QFkDSlSxdR3YqNR5uGFDs6e+652rF+ c/dba00KFXs5RywOgn2iuazz7PxYpmwEADAGuViCMPRPYSqPu+L1lFZiiX8PzATNW9HP AP/+UGPGGzWFFORNvEVAQQFXKQ3auh+VDJNpirFprK4Ff71EZSfhtK6578DhmWIM7RoH 7YMzDv1C15Dy9/c3JxR9ulEHwKXS8xQ9etAvYG1gDShexWw1Rd0JSlrSSUVmVWg3PZj4 PpAw== X-Gm-Message-State: AOAM530I/lMuNaaLXGCSyfS+Lry15A3ews6dlWRfPRvKzYB9W/VGAce6 R/wP4md+RUELvHZlkg4e9aQf2sH7zQkBU0s1K10= X-Received: by 2002:ac8:1e06:: with SMTP id n6mr9069200qtl.365.1633666337060; Thu, 07 Oct 2021 21:12:17 -0700 (PDT) MIME-Version: 1.0 References: <1632625630-784-1-git-send-email-shengjiu.wang@nxp.com> <1632625630-784-5-git-send-email-shengjiu.wang@nxp.com> In-Reply-To: From: Shengjiu Wang Date: Fri, 8 Oct 2021 12:12:06 +0800 Message-ID: Subject: Re: [PATCH v5 4/4] dt-bindings: dsp: fsl: update binding document for remote proc driver To: Rob Herring Cc: Shengjiu Wang , Ohad Ben Cohen , Bjorn Andersson , Mathieu Poirier , Shawn Guo , Sascha Hauer , Sascha Hauer , Fabio Estevam , NXP Linux Team , "open list:REMOTE PROCESSOR (REMOTEPROC) SUBSYSTEM" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , linux-kernel Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rob On Sat, Oct 2, 2021 at 12:40 AM Rob Herring wrote: > > On Wed, Sep 29, 2021 at 9:34 PM Shengjiu Wang wrote: > > > > Hi Rob > > > > On Thu, Sep 30, 2021 at 6:40 AM Rob Herring wrote: > > > > > > On Sun, Sep 26, 2021 at 11:07:10AM +0800, Shengjiu Wang wrote: > > > > As there are two drivers for DSP on i.MX, one is for sound open > > > > firmware, another is for remote processor framework. In order to > > > > distinguish two kinds of driver, defining different compatible strings. > > > > > > > > For remote proc driver, the properties firmware-name and fsl,dsp-ctrl > > > > are needed and the mailbox channel is different with SOF. > > > > > > > > Signed-off-by: Shengjiu Wang > > > > Acked-by: Daniel Baluta > > > > --- > > > > .../devicetree/bindings/dsp/fsl,dsp.yaml | 81 +++++++++++++++++-- > > > > 1 file changed, 75 insertions(+), 6 deletions(-) > > > > > > > > diff --git a/Documentation/devicetree/bindings/dsp/fsl,dsp.yaml b/Documentation/devicetree/bindings/dsp/fsl,dsp.yaml > > > > index 7afc9f2be13a..51ea657f6d42 100644 > > > > --- a/Documentation/devicetree/bindings/dsp/fsl,dsp.yaml > > > > +++ b/Documentation/devicetree/bindings/dsp/fsl,dsp.yaml > > > > @@ -8,6 +8,7 @@ title: NXP i.MX8 DSP core > > > > > > > > maintainers: > > > > - Daniel Baluta > > > > + - Shengjiu Wang > > > > > > > > description: | > > > > Some boards from i.MX8 family contain a DSP core used for > > > > @@ -19,6 +20,10 @@ properties: > > > > - fsl,imx8qxp-dsp > > > > - fsl,imx8qm-dsp > > > > - fsl,imx8mp-dsp > > > > + - fsl,imx8qxp-hifi4 > > > > + - fsl,imx8qm-hifi4 > > > > + - fsl,imx8mp-hifi4 > > > > + - fsl,imx8ulp-hifi4 > > > > > > > > reg: > > > > maxItems: 1 > > > > @@ -28,37 +33,63 @@ properties: > > > > - description: ipg clock > > > > - description: ocram clock > > > > - description: core clock > > > > + - description: debug interface clock > > > > + - description: message unit clock > > > > + minItems: 3 > > > > + maxItems: 5 > > > > > > Don't need maxItems. > > > > Ok, I will update it. > > > > > > > > > > > > > clock-names: > > > > items: > > > > - const: ipg > > > > - const: ocram > > > > - const: core > > > > + - const: debug > > > > + - const: mu > > > > + minItems: 3 > > > > + maxItems: 5 > > > > > > ditto > > > > Ok, I will update it. > > > > > > > > > > > > > power-domains: > > > > description: > > > > List of phandle and PM domain specifier as documented in > > > > Documentation/devicetree/bindings/power/power_domain.txt > > > > + minItems: 1 > > > > > > This is curious. The h/w sometimes has fewer power domains? > > > > On i.MX8QM/8QXP, there are independent power domains for DSP core, > > DSP's RAM and DSP's MU. > > But on i.MX8MP, all these DSP components are in same audio subsystem > > There is only one power domain for whole audio subsystem, when > > power on audio subsystem, the DSP's components are powered on also. > > > > So the number of power domain depends on how the DSP component > > integrated in SoC. > > Sounds like you can write an if/then schema for this difference. > I try this: allOf: - if: properties: compatible: contains: enum: - fsl,imx8mp-hifi4 - fsl,imx8mp-dsp then: properties: power-domains: maxItems: 1 else: properties: power-domains: maxItems: 4 But the dt_binding_check report error: DTEX Documentation/devicetree/bindings/dsp/fsl,dsp.example.dts DTC Documentation/devicetree/bindings/dsp/fsl,dsp.example.dt.yaml CHECK Documentation/devicetree/bindings/dsp/fsl,dsp.example.dt.yaml /opt/alsa/sound/Documentation/devicetree/bindings/dsp/fsl,dsp.example.dt.yaml: dsp@3b6e8000: power-domains: [[4294967295]] is too short From schema: /opt/alsa/sound/Documentation/devicetree/bindings/dsp/fsl,dsp.yaml I don't know the reason, could you please help to have a look what is wrong? Best regards Wang Shengjiu