Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp210803iob; Mon, 2 May 2022 17:19:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzrL4mzpPrMe6BQMY21U3dvqsCjw2UM62vvqyz4JFtuyyq+rDDEnKmrObLSpWIC4gmJk5JI X-Received: by 2002:a63:c015:0:b0:385:fe06:eb86 with SMTP id h21-20020a63c015000000b00385fe06eb86mr11603084pgg.132.1651537165445; Mon, 02 May 2022 17:19:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651537165; cv=none; d=google.com; s=arc-20160816; b=yA/e4l5fXwVu+wvgb0uv4qRZkpbe8Jtr8QoIebhTIkNJLkK+QyYE4Ll427Xg6D6B0p 6BwJwdOdHC5I3/eVM6GYUUj30JCc5PLN01HHRAtRTrq/kdaOXezh3yB/oX3hi5+2f1Uv A6XzVWwYktC0/34nnR3dafVPuxowEqYB8Fcw3yIkqaww+mVkcDtWpKUAOs3+S+q5FqbY b+VLHdjRR9qjJFhob5ZHTnaYY4M4aaoyKk8JW6yOwF1A1GFobLrrcqTPfAnFrxd5RMwn ejNu+VUFp7ea7u5RADcXr5BlHEkbRln4DY1UsASTmx9UqWJVfm1OnhDsRP/ymgx/i5S8 Jcew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=8Ux9/dY0KgTw4aJtkIPg2B+XtmYswayMNAlqfZyAwss=; b=a4DSoENyO5He95oDrGh4sjkRuzvh/qFV7oFhH1dO+vq3OhlgslQnlJDXWaquW5+YRE gSqG9ZQ9N1i5LpZ0+SEJnvkcMQixlNknbwXtmuKIlqvglWNZ/QNbJ+tLpU5UzES/RbSC Jpmge7cMYKT2+vLP1ds+T5vBQJ0C+ijeZbGwz9yAZv9mFFd7DSc4Og4JF9xgt2sRTas4 +rXwhcl5yriHlHJ/yRPG+/TwNQo6iFP+efU+GrULGZNpMK3tRAZVxg6kOBHIZ2pI76ID EVMBqGCNzFzd36Gdv3LujVlNjR9sxS82cLhhLfI6mJPEIjBEwjXNmrIu5F1GvllL6j1J DLrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=JpQqhjaA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id u13-20020a17090341cd00b0015826677457si3854212ple.354.2022.05.02.17.19.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 May 2022 17:19:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=JpQqhjaA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A235937BC6; Mon, 2 May 2022 17:16:30 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1387117AbiEBT2F (ORCPT + 99 others); Mon, 2 May 2022 15:28:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51074 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1387086AbiEBT16 (ORCPT ); Mon, 2 May 2022 15:27:58 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [46.235.227.227]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 89AD71022; Mon, 2 May 2022 12:24:29 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: nfraprado) with ESMTPSA id E2D341F43621 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1651519466; bh=vHihAny00/plbHUVJRmkYGyvszXuKSJzxYZuye6XI3w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JpQqhjaAxa5faEQtAsKCmgXiugtsTXMLqjEWTrs1HlSSGtpuwbTN9iX+Cz0kOJaFa ZbKr4bnDb/xWp9p9PRJAUgU8IIQTNBdovEiIorjCTjd+zecDsy04ZLW1XgutGmgAC2 XJllqbTfFdIyc2n+WRIJBaip0pUk111qe3FePJ/LD0aqGP8zLdaYvZMpqL2j6Kk/y8 zLiL+kz4CbpPBDM9zBpEWdhBJey8fpSq+hWjFxxEi/aJBIHkj5xISEpA6LUy0zJ6g4 v4P1W0vsxxMgxHwfGWREJScjhQajlJlsqBJ7H1JIuMEBk9rSsIxCfQZWRymkIkSpP+ fdfY++J7xgZkw== From: =?UTF-8?q?N=C3=ADcolas=20F=2E=20R=2E=20A=2E=20Prado?= To: Bjorn Andersson Cc: AngeloGioacchino Del Regno , kernel@collabora.com, =?UTF-8?q?N=C3=ADcolas=20F=2E=20R=2E=20A=2E=20Prado?= , 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: [PATCH v2 1/2] dt-bindings: remoteproc: mediatek: Fix optional reg-names for mtk,scp Date: Mon, 2 May 2022 15:24:19 -0400 Message-Id: <20220502192420.2548512-2-nfraprado@collabora.com> X-Mailer: git-send-email 2.36.0 In-Reply-To: <20220502192420.2548512-1-nfraprado@collabora.com> References: <20220502192420.2548512-1-nfraprado@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY autolearn=no 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 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. Also add the missing minItems to the reg property and update the description. Signed-off-by: NĂ­colas F. R. A. Prado --- (no changes since v1) .../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 clocks: description: -- 2.36.0