From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 38FEFC4332F for ; Wed, 11 May 2022 09:14:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236742AbiEKJOX (ORCPT ); Wed, 11 May 2022 05:14:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34606 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235468AbiEKJOV (ORCPT ); Wed, 11 May 2022 05:14:21 -0400 Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2977682D05 for ; Wed, 11 May 2022 02:14:20 -0700 (PDT) Received: by mail-ej1-x631.google.com with SMTP id z2so2758065ejj.3 for ; Wed, 11 May 2022 02:14:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language :from:to:cc:references:in-reply-to:content-transfer-encoding; bh=bHmJ4JQM0ahp4y4UqiuvyOdC9DhyYS0199lrFCEzmUw=; b=A+fkhlX3WrnIJwoPrBo2HZxSYfi4zPTUMo2UXnzO4F2uAiRkc6YPp+X8Iy5f8aiJOc 1zFYgKlp3cq/2uTrX3xiUwlIOQquQGa+z6BLya8KxkdEoz7Znujtl8Daai+EGoPZZbja SDeRb9ZH7Ar3GBSTwKGZE7aIdi670ysp339ZyDTENJH2KFbO7VTNPd2Ssix5WRiJndNh XwQw51D1nlGgRJxnrSRnABUxgr21MPLCIMTMb+Jh377tSdVtIJ+mwG/b5w8EhqqrxAg0 Z43L30PP3u8+Q6h3Qp05ZOlpxdDQ5weozC9dZIIkUNvp341vNKOQpYuvz5z3JxRpFv5f uOOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:from:to:cc:references:in-reply-to :content-transfer-encoding; bh=bHmJ4JQM0ahp4y4UqiuvyOdC9DhyYS0199lrFCEzmUw=; b=a5ng29XDm86IXd/zZ6fn068MR6ifMFuiyrnMwBW5gPgnwBAMxAmYMSuZbQDhhx/ifE fPr18f0j7OinJGaJFvcRvM8w1+9kDgaKU3q/kReUgWTTf0MyU5MOoMfuZlvOL7oa4nFV q7mXr/ouZY6MT86YgNdNFDpRUfndaX+dvId+127wL9tzAU7hMoxF1dF6gtrVMQUI93T4 54ZTmDthRmO90VfLLZKpqdyVMDa2EEiWEfJ6YgixlDG0CMmg1xhnbktefiDuBtRXWQqo kuKevdVJbbSY4iQiSWXsmSUcjjrki/k7ROZEfq/gUHiXM0DQC78FdIaLaD0dn510ouL1 iAxA== X-Gm-Message-State: AOAM532jzBcmqS0vZRbDzF3JuiXNJilS3tXvCmf3IUmaalv2K9C+QO3C fpUv/puPXCrzFWy5ahJ4gC9CVA== X-Google-Smtp-Source: ABdhPJxDrbjJVt79t2h9FiSlpJoNszdUyEQni7whfaHreR3sdC7CxegUPLZyiivDrf/5AS2/zp+N7g== X-Received: by 2002:a17:907:8a21:b0:6f4:d2e5:4d17 with SMTP id sc33-20020a1709078a2100b006f4d2e54d17mr24229498ejc.196.1652260458589; Wed, 11 May 2022 02:14:18 -0700 (PDT) Received: from [192.168.0.152] (xdsl-188-155-176-92.adslplus.ch. [188.155.176.92]) by smtp.gmail.com with ESMTPSA id au18-20020a170907093200b006f3ef214df9sm733996ejc.95.2022.05.11.02.14.17 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 11 May 2022 02:14:17 -0700 (PDT) Message-ID: <5c0bc870-2514-57b6-1ff3-c393b57fc5f0@linaro.org> Date: Wed, 11 May 2022 11:14:16 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: [PATCH v4 1/2] dt-bindings: remoteproc: mediatek: Make l1tcm reg exclusive to mt819x Content-Language: en-US From: Krzysztof Kozlowski To: =?UTF-8?B?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= Cc: Bjorn Andersson , AngeloGioacchino Del Regno , kernel@collabora.com, Krzysztof Kozlowski , Mathieu Poirier , Matthias Brugger , Rob Herring , Tinghan Shen , Tzung-Bi Shih , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-remoteproc@vger.kernel.org References: <20220506213226.257859-1-nfraprado@collabora.com> <20220506213226.257859-2-nfraprado@collabora.com> <20220510165016.r7nyck2abt5m4djp@notapiano> <66796853-efe7-f661-9637-ac6cfefc68e5@linaro.org> In-Reply-To: <66796853-efe7-f661-9637-ac6cfefc68e5@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/05/2022 11:12, Krzysztof Kozlowski wrote: > On 10/05/2022 18:50, NĂ­colas F. R. A. Prado wrote: >>>> Also I had to add a description to the global reg-names, since it >>>> couldn't be neither missing nor empty. >>> >>> It is possible: >>> https://elixir.bootlin.com/linux/latest/source/Documentation/devicetree/bindings/example-schema.yaml#L91 >>> >>> Keep constraints and list of names in properties. Then in allOf:if:then >>> raise minItems or lower maxItems, depending on the variant. >> >> Hi Krzysztof, >> >> that example only shows setting minItems to override the default value, but the >> issue here is that it's not possible to override minItems/maxItems (after >> they're already set, even if implicitly) with a different value in the if. > > No, this example shows exactly what you need in first step - make one > item on the list optional. > > There are several other examples for the entire picture or different > aproach: > https://elixir.bootlin.com/linux/latest/source/Documentation/devicetree/bindings/example-schema.yaml#L91 Wait, this is the same link... because it exactly matches your case. Best regards, Krzysztof