Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp444527iob; Tue, 3 May 2022 23:25:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy8XoekBOTd+mXKo0raZ+7s54l3LamhVs9g++iOTWpc6NBJ0l+9MHCSrTci93iY6pf2EKdG X-Received: by 2002:a63:6547:0:b0:3c2:13dc:aff with SMTP id z68-20020a636547000000b003c213dc0affmr11508521pgb.14.1651645501824; Tue, 03 May 2022 23:25:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651645501; cv=none; d=google.com; s=arc-20160816; b=0nMuUEYXSYXWxOtG7APioNPjML7mxd1oXjfKVxcdXvw1qVFa/QM0X2ZMMAkjhTFtKh +8YbHJYfcymx4KqXfXJZwxYGOeTslGGKeR33A9IHm9DxXM5fKZMUAQea7xf7oEs3ZqX3 iSMkBUAwT0hKqW1PCglQzFyRQUCLQEdu7ezi0RburPNMWkBh4+gYC6j3RSq3NwFopsuE 8fpiSUgc0oSCL5iIk5b/lPS8ODuztjGneGAsQIttI5NyOOQfwwSQhNS6oUklJx+Kcpy/ FkAyLM44F8cwZuIycjYuH0sXaNCVsIWhSxP4nfdnt0IZkftUCsRebl7285QT+jYf2nkm qwxw== 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=E0FzV2fBfe8kPBhuxEwn1PdqXllBR0GrPuRd857XDdA=; b=uloWirF7VILEIG3w7Uqdt/ZMPHcMUeeIQcRa3gCyCVXhp3yT3zCMOT9g93WdINbN/w EP0xmxiqPJYU8OpW/ZIvQfYI1t2z4XHOmaxSVExDRFqrq9J88cJAPVPtBN3kYgLviI50 Q0hnu93t+e4gk8BTBKdcjz/ZciFUOnuDUB9wkqEGY+uyz2eVjCBz+uBLb/e4flpoZyQ2 2UbNSOhF+szu8e98PZnU/EnXYjzb6kzR52C5s/eSC83J90ddkyX7qVLCrSQGWXzwetsL QXPZ2rfBbM0SG/5YBnoSm6+egxjN5zRoedSqK2ZK0cIapJf/SMEnWjfp6ZqkSnM6YgoW FNiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LPlJwbk1; 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 o23-20020a634e57000000b003ab9b0ee7d7si17057193pgl.866.2022.05.03.23.24.37; Tue, 03 May 2022 23:25:01 -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=LPlJwbk1; 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 S234421AbiECMXX (ORCPT + 99 others); Tue, 3 May 2022 08:23:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35350 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235174AbiECMXR (ORCPT ); Tue, 3 May 2022 08:23:17 -0400 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB01C340CF for ; Tue, 3 May 2022 05:19:44 -0700 (PDT) Received: by mail-ej1-x62c.google.com with SMTP id k23so33103413ejd.3 for ; Tue, 03 May 2022 05:19:44 -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:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=E0FzV2fBfe8kPBhuxEwn1PdqXllBR0GrPuRd857XDdA=; b=LPlJwbk1n+l06QinBjW6ePwHR8rrTDXnev1EfL6Au3JGuKa2VdGXO5DX2rfJuBtRDc e2YGAusK522SljneiVjCtnXAtiEl14s5LKap4NUY4seBcRscMT+nVNBUalCptRjamrDn D7J5YAnRFk+xGZRlvNdz3eB0RHYi1Eh5qKZNcgwDExGji4jq93OXX1rNCkZjwkeEmnWV K8orZxCpiowxnoyzxnBgB3xplvgRxr4A2nto9gakFJZqjpHHjilCTSkq5iCQYq9qCYIM XHtLpOW+vNtgWbuIg0lzQtESnUcMRSwn1ppF6Yv/nme9L9Y2fvc7CKA4SNm1w0xEAAjk gePA== 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:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=E0FzV2fBfe8kPBhuxEwn1PdqXllBR0GrPuRd857XDdA=; b=6Uabvsm9KLqzjiiVTy2OgcXwppHOxkTU04HfoMbfkOBZyRsxMgo8WHRRAmNyY4ARLp fsKr351wN18uOMR2V2rXHNNde20+awzMKOy71i9oPUVZ3t5zE/grIxS9I2dkUAsEcRJ4 flwebScJA3Fo0wwEFDzhVCYiDepTeg0OTYS3EF8Urq10A/PMGYVoyFU7MBFNAUWNY5fs w4ROG64YNxIHji+iKE/uyWspG/qTgA3sIIOt4n1B/3XLy41lNP7OsZ8c970IDbwGHBmW tVk10PnhPsVoa0WQLWnTcs67YRO6q7XeNPptHrcjMzyQYqAZRUgb5QtLF8kHQ20Qy0rr A52Q== X-Gm-Message-State: AOAM530iHSX415BTAgksH8UoIN9y7KoKRpMR40yF4Icy3Uqfg0rMTYFi cJ7opQDGeEUcySr0Jezwsvygb6sPv4y96g== X-Received: by 2002:a17:906:7947:b0:6f3:f971:1d6a with SMTP id l7-20020a170906794700b006f3f9711d6amr15722768ejo.571.1651580383483; Tue, 03 May 2022 05:19:43 -0700 (PDT) Received: from [192.168.0.203] (xdsl-188-155-176-92.adslplus.ch. [188.155.176.92]) by smtp.gmail.com with ESMTPSA id v7-20020a056402174700b004275cef32efsm4551143edx.6.2022.05.03.05.19.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 03 May 2022 05:19:41 -0700 (PDT) Message-ID: Date: Tue, 3 May 2022 14:19:39 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH 1/2] dt-bindings: remoteproc: mediatek: Fix optional reg-names for mtk,scp Content-Language: en-US To: =?UTF-8?B?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= , Bjorn Andersson Cc: AngeloGioacchino Del Regno , kernel@collabora.com, Krzysztof Kozlowski , Mathieu Poirier , Matthias Brugger , Rob Herring , Tinghan Shen , 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: <20220429211111.2214119-1-nfraprado@collabora.com> <20220429211111.2214119-2-nfraprado@collabora.com> From: Krzysztof Kozlowski In-Reply-To: <20220429211111.2214119-2-nfraprado@collabora.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.0 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,T_SCC_BODY_TEXT_LINE autolearn=ham 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 29/04/2022 23:11, NĂ­colas F. R. A. Prado wrote: > The SCP has three memory regions: sram, l1tcm and cfg. Only sram is > required, the other two are optional. Fix the dt-binding so that the > optional regions can be omitted and passed in any order. No, cannot be passed in any order. > > Also add the missing minItems to the reg property and update the > description. > > Signed-off-by: NĂ­colas F. R. A. Prado > > --- > > .../devicetree/bindings/remoteproc/mtk,scp.yaml | 12 +++++++++--- > 1 file changed, 9 insertions(+), 3 deletions(-) > > diff --git a/Documentation/devicetree/bindings/remoteproc/mtk,scp.yaml b/Documentation/devicetree/bindings/remoteproc/mtk,scp.yaml > index 823a236242de..ec9ddeb6ca2c 100644 > --- a/Documentation/devicetree/bindings/remoteproc/mtk,scp.yaml > +++ b/Documentation/devicetree/bindings/remoteproc/mtk,scp.yaml > @@ -24,14 +24,20 @@ properties: > reg: > description: > Should contain the address ranges for memory regions SRAM, CFG, and > - L1TCM. > + L1TCM. Only SRAM is required, while CFG and L1TCM are optional. > + minItems: 1 > maxItems: 3 > > reg-names: > + minItems: 1 > items: > - const: sram > - - const: cfg > - - const: l1tcm > + - enum: > + - l1tcm > + - cfg > + - enum: > + - l1tcm > + - cfg This allows them in any combination which is not what we want. If both are optional and both can appear, then last should be a const:l1tcm. Best regards, Krzysztof