Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp310341iob; Tue, 3 May 2022 18:18:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy4cthUoK6lA3lBwPXWDBUvPTuF1qoFwE4+tFcRcUMlz1re5yhu93HBgEFnuB6xmu+pui84 X-Received: by 2002:a05:6a00:2484:b0:50e:68e:d5a5 with SMTP id c4-20020a056a00248400b0050e068ed5a5mr7540592pfv.47.1651627117130; Tue, 03 May 2022 18:18:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651627117; cv=none; d=google.com; s=arc-20160816; b=rQJLK1+runEpv4LCVyQLxjtyxAmpIflELAeBzymgqa2JX7MiYf78LeLdCFQhLZtcbo zL+cR5ih5MYInspeWnIx0uDwwtDK15WZZ1p4QA9a0hTGyln/160DfSje72KCR1yst+GR ipCqbAd3GUj7IFCYTH+a6jxdvUcWvnGgxxftKH2wdj8mNClhV5ZCdIi9oh9I6YsczxPM ZUXd/JFTHfL1zUcErO21LoXvpfcUOL4IT/OsTn1eqE0yrstdA5Pqi+IlXhQcHlEG09C6 n0WYWP9/nGrUQuJ0HepU3Ppt5Kzfoi0uOSW2c8E4AU5WesMYxwe86lW4ezEDBvcDbF0o N1BA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=0Wap/Yu4zaBNqWw46UWjkFh9QtoTR6bHqHCC97ky3oc=; b=K+t9VWEFUNH7+k1Nc01tZB7ooN6bV8cUthrpJB83OB2eKxcZAzmHlWVX9kMEeTDJnL vWXevn9WKePCHWlVyszAdHFr6GGbvz4M6FM1ucQRIOtOVWhYTRpMlQexYPQlFAdRALGL IHmzd8jeOL8fqS/OGDf8cQnhoZ71TIp61IWvPRvOuJidubvjzSPPRCfIMcYjlFJEeMel rpaJ+jnWzk9ftdS2DwAsdLM0tWkzE5BbHRFRPU5hfbtV9rXwKrledTHPhkUTayPGIsJq RSLAT4T0vxz4Ae0pKem2ZEhonPmypMG/EcKZFXo1IHBMl4Gn91xisJvwxikt2byzKXOK gviA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=KE3YCHnd; 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=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u18-20020a632352000000b003aa22119cdbsi17934822pgm.569.2022.05.03.18.18.20; Tue, 03 May 2022 18:18:37 -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=@collabora.com header.s=mail header.b=KE3YCHnd; 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=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240849AbiECSC3 (ORCPT + 99 others); Tue, 3 May 2022 14:02:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52900 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237273AbiECSC0 (ORCPT ); Tue, 3 May 2022 14:02:26 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [46.235.227.227]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D55883E0C1; Tue, 3 May 2022 10:58:53 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: nfraprado) with ESMTPSA id 21D721F444FF DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1651600732; bh=7qeurYzZslyi92N7K5GArfwgsQTF+nE6W05wCQTva6g=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=KE3YCHnds6v61AHs797rcMxewdX/sIbzN30yeH2p3JVFqHeQHknJxi9OKbV6GF2VQ rv1NRCEazWRyygqG8BFNQz7eko9yQwa3q4nJCkg63kpOq4MrPu/4h4H71V4eDGLypB VSTqFlZE0yhMWQmsq3ZU8HaFB3Mw3SNZ1kLJpYiOl6i1OctOClXfpdyCfQmFvN/pcJ /+2v6IA2oOeJ1mXX8CrVN+ok0AIR1YYuOSeFtO5WIXDukZlo8fSvq99hKp/6YzNkXe UG1bklTUiYvZLcIvF+6ZX7DDRyts0Q0Frto1rgPA84ma0eSLFdp0uKVCRV6exJxQc5 ZpaF5oqb4rusA== Date: Tue, 3 May 2022 13:58:46 -0400 From: =?utf-8?B?TsOtY29sYXMgRi4gUi4gQS4=?= Prado To: Krzysztof Kozlowski Cc: Bjorn Andersson , 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 Subject: Re: [PATCH 1/2] dt-bindings: remoteproc: mediatek: Fix optional reg-names for mtk,scp Message-ID: <20220503175846.pth5px74fzirizep@notapiano> References: <20220429211111.2214119-1-nfraprado@collabora.com> <20220429211111.2214119-2-nfraprado@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY 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 Tue, May 03, 2022 at 02:19:39PM +0200, Krzysztof Kozlowski wrote: > 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. Hi Krzysztof, yes, that's the case. I'll update it in v3 then. Thanks, N?colas > > Best regards, > Krzysztof