From patchwork Tue Sep 28 22:29:20 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rob Herring \(Arm\)" X-Patchwork-Id: 514809 Delivered-To: patch@linaro.org Received: by 2002:a02:c816:0:0:0:0:0 with SMTP id p22csp5598977jao; Tue, 28 Sep 2021 15:29:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzV4i4kF7mWpn2C/iTQXKEvwocUMZmQJUfAITV6QZCUsGIXaY98oyqt3mPQv1DKKalJolcj X-Received: by 2002:aa7:ce14:: with SMTP id d20mr10754998edv.132.1632868165748; Tue, 28 Sep 2021 15:29:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632868165; cv=none; d=google.com; s=arc-20160816; b=x6YXX/EzV6RU2ST/Xv4Mrpbk5vdNzCpOzS4ubsrqyxJ1T8ZjzKKgTIJDd1O6FygL5p OD4k90/bTL/03AJgLkBBs8beR4vaSNM1XevTWfayeh+wZytB5SkOu0q2Mdo9fphURla9 h08SlM9zVkeS/m9PGAnKFsZS9DgJPOwUC/iBpzN4h9nSQdBZuIsDBisz+WY2ukR3T+az BLSr7Wy6PQk3GcWTtkeUw12sg5sKuJMj0Ic/DBjdn8loJX8lrk1Xq25miX21KZa+jbXa NUiuiyuSh7JrpNvGG7mdtS4yVS4kyzu+4Rq0BpOyfpWUck+Db3KjEyDvT3mCmsgPEOuq e6mw== 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=vwcHQF6/8HUIm1fObpnSG0aiSaXON6QZUe3Gw0ku0bk=; b=Ofs74k+xw+Pa+qafS9ZvufpM791LQBPBISqFsl6tjf7SUq1X5Mt2f+7qkLgp+FHd0I +P4rrOw/81IkHN/+g29osW9wxw2I61Co761QIZg+k9SKRs4DjRS1lPycdSou2Y88/EQc wvmusZ2cOW6Z33CLt8ypC4yI9rb255OdUJFOUNOzqZ6+0lgcSCw15ZuHbbD+VgvGBGPX pO4XCmHgrbyWgZA6cR4S8TYGY5MkquXs7C+og2Jd8vRKVe3Re6a89q7Y9fnMcWz025o8 ILbvDwJH+KSjIucBF3ply+A1v3QYaHJGmdkdB6pFT7qfMVn7kELKLCkp6yRvPMbmbDiP ZIHA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 6si408893ejc.727.2021.09.28.15.29.25; Tue, 28 Sep 2021 15:29:25 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243138AbhI1WbE (ORCPT + 7 others); Tue, 28 Sep 2021 18:31:04 -0400 Received: from mail-ot1-f45.google.com ([209.85.210.45]:37683 "EHLO mail-ot1-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243128AbhI1WbD (ORCPT ); Tue, 28 Sep 2021 18:31:03 -0400 Received: by mail-ot1-f45.google.com with SMTP id r43-20020a05683044ab00b0054716b40005so432161otv.4; Tue, 28 Sep 2021 15:29:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=vwcHQF6/8HUIm1fObpnSG0aiSaXON6QZUe3Gw0ku0bk=; b=UveUJOKNqA/XPlmllq1lNHiwUvg5j3CKTNtK+9TEaklBTBvZaZO0JU9SJ1hOmQjxVt N4uo/9YDiVnM3sB2UPTfJRoCrHgECKRSCwO1vuvnd/4UEibwSl1lEG8Y407HC3OoYmYP GF7M7SzOJjAyFqW9ZObVWij9Rf0JFvIbu1wDlRiLsdhCPINGfqUNf/RAcj6jB9HzbBB0 KO8HwR9iKd3MVfpQfh1Di2vEVSiogGakO9cRZ0xaQyIvYaw2p214KfH0v0DUlloVG7eI xLGiE9OpN18kULGtBFPrRbq15IrXGnhZ7EqkP59qkb0n0DyOtINSPwNTd/eXAOHdAFX9 RmNQ== X-Gm-Message-State: AOAM530caI4grhCMJ4WQ/ZqA4c5GWtRFCfg3Bc4sPDUUJ7o6tlUgVx9N SdMGQwzjK7uQ83nL7bUZswB/ryN+rw== X-Received: by 2002:a05:6830:25d1:: with SMTP id d17mr7302750otu.253.1632868162403; Tue, 28 Sep 2021 15:29:22 -0700 (PDT) Received: from xps15.herring.priv (66-90-148-213.dyn.grandenetworks.net. [66.90.148.213]) by smtp.googlemail.com with ESMTPSA id g4sm65460ooa.44.2021.09.28.15.29.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Sep 2021 15:29:21 -0700 (PDT) From: Rob Herring To: devicetree@vger.kernel.org Cc: "David S. Miller" , Jakub Kicinski , Evgeniy Polyakov , Marek Vasut , Joakim Zhang , Daniel Mack , dri-devel@lists.freedesktop.org, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH] dt-bindings: Drop more redundant 'maxItems' Date: Tue, 28 Sep 2021 17:29:20 -0500 Message-Id: <20210928222920.2204761-1-robh@kernel.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Another round of removing redundant minItems/maxItems from new schema in the recent merge window. If a property has an 'items' list, then a 'minItems' or 'maxItems' with the same size as the list is redundant and can be dropped. Note that is DT schema specific behavior and not standard json-schema behavior. The tooling will fixup the final schema adding any unspecified minItems/maxItems. Cc: "David S. Miller" Cc: Jakub Kicinski Cc: Evgeniy Polyakov Cc: Marek Vasut Cc: Joakim Zhang Cc: Daniel Mack Cc: dri-devel@lists.freedesktop.org Cc: netdev@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org Signed-off-by: Rob Herring --- .../devicetree/bindings/display/bridge/ti,sn65dsi83.yaml | 2 -- Documentation/devicetree/bindings/net/nxp,dwmac-imx.yaml | 1 - Documentation/devicetree/bindings/w1/w1-gpio.yaml | 1 - 3 files changed, 4 deletions(-) -- 2.30.2 diff --git a/Documentation/devicetree/bindings/display/bridge/ti,sn65dsi83.yaml b/Documentation/devicetree/bindings/display/bridge/ti,sn65dsi83.yaml index 07b20383cbca..b446d0f0f1b4 100644 --- a/Documentation/devicetree/bindings/display/bridge/ti,sn65dsi83.yaml +++ b/Documentation/devicetree/bindings/display/bridge/ti,sn65dsi83.yaml @@ -50,7 +50,6 @@ properties: data-lanes: description: array of physical DSI data lane indexes. minItems: 1 - maxItems: 4 items: - const: 1 - const: 2 @@ -71,7 +70,6 @@ properties: data-lanes: description: array of physical DSI data lane indexes. minItems: 1 - maxItems: 4 items: - const: 1 - const: 2 diff --git a/Documentation/devicetree/bindings/net/nxp,dwmac-imx.yaml b/Documentation/devicetree/bindings/net/nxp,dwmac-imx.yaml index 5629b2e4ccf8..ee4afe361fac 100644 --- a/Documentation/devicetree/bindings/net/nxp,dwmac-imx.yaml +++ b/Documentation/devicetree/bindings/net/nxp,dwmac-imx.yaml @@ -34,7 +34,6 @@ properties: clocks: minItems: 3 - maxItems: 5 items: - description: MAC host clock - description: MAC apb clock diff --git a/Documentation/devicetree/bindings/w1/w1-gpio.yaml b/Documentation/devicetree/bindings/w1/w1-gpio.yaml index 7ba1c2fd4722..8eef2380161b 100644 --- a/Documentation/devicetree/bindings/w1/w1-gpio.yaml +++ b/Documentation/devicetree/bindings/w1/w1-gpio.yaml @@ -15,7 +15,6 @@ properties: gpios: minItems: 1 - maxItems: 2 items: - description: Data I/O pin - description: Enable pin for an external pull-up resistor