Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3567898pxp; Tue, 8 Mar 2022 17:40:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJymOz/UDgLUGYbxamp73JHcxy3jliAh1n8yR15in9eFuhQzgw3CD3P5dt++Hgjz//I0EW6l X-Received: by 2002:a05:6a00:10cb:b0:4f7:942:6a22 with SMTP id d11-20020a056a0010cb00b004f709426a22mr12036857pfu.84.1646790009387; Tue, 08 Mar 2022 17:40:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646790009; cv=none; d=google.com; s=arc-20160816; b=Swzc+bByX0A0rrujtWTrM8duUN2aMUThSvbA4qR0oBPVaD9G737GbdIX3uN+0LKmO8 0TkAvMFoMkKS63QNhgu7kDG/1IenjCl/DFgl15uK0HzYS1PR5ti72nk1xSfre/kXhewq MX15xmr/+IQh6yOV1U0fw5dLfaAVdyOY5eGD9EU6Md5bCudyI9ushoIlJqipfiCA4Ugn DTq9FTqPN+I07TssuVYu/zDL3SW8504mhNQWGU7lcZswvQlUa9h5UVayDICmJMNDVT4W VUDhbKtWlJqu0pFP0q9fzi3VBoS6VIaGW9gr5Lc1k/R4102i0cZPMOMgEsG8iqbWRpMf aLIQ== 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 :message-id:date:subject:cc:to:from; bh=hb5Lyep6rRcfPFFn07T09ULpKdba5APxevnsuNd6lK0=; b=FjclKDerEOk71bZ4+E9TMq03yk/hEjypGLIQ9Si4I5pxrTMoA6zI7zvN2lkt900/kY ozvlwDwuK9E4cIQ45UbI0MxpLP4oIdEIT+gG+d83vRABrNTQ0TKsFscvB0JZmb+pL5wP krUxlZ85SOSwWzeIkxJ7gIeEbtBTaG1LEktMAqP5E2wlgGz4hp9Q6V99ypW2ZDBhsKub bmthjgN9dcgDRmE+o1Q4Yx8rWgBwuy4PK4yJgkbOc7kU4POxkpqZF3WFyZvwFjoz2c+i LDbQNa2pCxNVj0eXwC5zkzaFNaqMG2cwUOlTWqoQxhsyEZDG0AaMJMHHSIEUjOm59RcA 7NeA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id l18-20020a170903121200b0015171e5370esi557536plh.466.2022.03.08.17.40.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Mar 2022 17:40:09 -0800 (PST) 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; 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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D3B731C3D0D; Tue, 8 Mar 2022 16:33:17 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349270AbiCHRuK (ORCPT + 99 others); Tue, 8 Mar 2022 12:50:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349265AbiCHRuJ (ORCPT ); Tue, 8 Mar 2022 12:50:09 -0500 Received: from baptiste.telenet-ops.be (baptiste.telenet-ops.be [IPv6:2a02:1800:120:4::f00:13]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BEF2C4839E for ; Tue, 8 Mar 2022 09:49:11 -0800 (PST) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed40:6100:2d37:4115:c358]) by baptiste.telenet-ops.be with bizsmtp id 3tp72700V1Yj8bA01tp7Qb; Tue, 08 Mar 2022 18:49:09 +0100 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1nRdxL-003DQP-4j; Tue, 08 Mar 2022 18:49:07 +0100 Received: from geert by rox.of.borg with local (Exim 4.93) (envelope-from ) id 1nRdxK-006gpQ-H6; Tue, 08 Mar 2022 18:49:06 +0100 From: Geert Uytterhoeven To: Sudeep Holla , Cristian Marussi , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH v2] dt-bindings: firmware: arm,scpi: Add missing maxItems to mboxes/shmem Date: Tue, 8 Mar 2022 18:49:02 +0100 Message-Id: <58b7c706f259f88a61bfe82d9106fe0a93a9838d.1646761693.git.geert+renesas@glider.be> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE 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 "make dt_binding_check": Documentation/devicetree/bindings/firmware/arm,scpi.example.dt.yaml: scpi: shmem: [[2], [1]] is too long Fix this by adding a proper maxItems value to the shmem property, and to the related mboxes property. Fix the grouping of the "mboxes" property in the example. Signed-off-by: Geert Uytterhoeven Acked-by: Sudeep Holla --- Exposed by commit 39bd2b6a3783b899 ("dt-bindings: Improve phandle-array schemas"). v2: - Change limit from 2 to 4, as requested by Sudeep, - Add Acked-by, - Add maxItems to mboxes properties, - Group mboxes in example. --- Documentation/devicetree/bindings/firmware/arm,scpi.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/firmware/arm,scpi.yaml b/Documentation/devicetree/bindings/firmware/arm,scpi.yaml index 800417a76bda0bd9..1f9322925e7c9f2d 100644 --- a/Documentation/devicetree/bindings/firmware/arm,scpi.yaml +++ b/Documentation/devicetree/bindings/firmware/arm,scpi.yaml @@ -43,6 +43,7 @@ properties: by remote SCP firmware for use by SCPI message protocol should be specified in any order. minItems: 1 + maxItems: 4 shmem: description: @@ -51,6 +52,7 @@ properties: be any memory reserved for the purpose of this communication between the processors. minItems: 1 + maxItems: 4 power-controller: type: object @@ -235,7 +237,7 @@ examples: firmware { scpi { compatible = "amlogic,meson-gxbb-scpi", "arm,scpi-pre-1.0"; - mboxes = <&mailbox 1 &mailbox 2>; + mboxes = <&mailbox 1>, <&mailbox 2>; shmem = <&cpu_scp_lpri>, <&cpu_scp_hpri>; scpi_sensors1: sensors { -- 2.25.1