From patchwork Sun Aug 18 17:29:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13767568 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 80736C52D7C for ; Sun, 18 Aug 2024 17:33:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=0CjQK1KNzHVntTC0DMWrSHcz+PiTjzfj1MSfy1NDuc8=; b=Yt+qBHa7c3nRfz+MOUJYE5H63M NCPq9+LZwuzNIR94rigHLyMX+xz6AjfVldi15Ympr0j0CtTMZOu3lMZ0Uujbyv8ObNnazTfhZSWs9 rgU3dYkN9M/R4FY6BjoQwl95kYXuKunyA56Uay/ZaG9TCQ6l5bMvcUzclBb9Ys134qlh+8TaU2UxW U3H2l66U3ytAK0cWpXLYejMNYz732yoVem7ttuYEwwFlx5ZS/a3A384xnNya6ztWOQzCY2VjyJ3BV /rzXv9p8sQwzoBcz44HZ9K+LOxZkMf/EBoiRyWv7QTlZudVxkqKVeDIfUe+C8Giz1wIL2RP4qBmez F6OEhumw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sfjmW-0000000Gu8p-0PYC; Sun, 18 Aug 2024 17:33:32 +0000 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sfjiJ-0000000GshL-2jHm for linux-arm-kernel@lists.infradead.org; Sun, 18 Aug 2024 17:29:12 +0000 Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-42816ca782dso29516565e9.2 for ; Sun, 18 Aug 2024 10:29:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1724002150; x=1724606950; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=0CjQK1KNzHVntTC0DMWrSHcz+PiTjzfj1MSfy1NDuc8=; b=LR6jM7/Cl/Y1OvYBDSMUr5qvfnHPSyetX3lkQI8apJ2GbJXA3Aw31t3ofNe4Asvufm YQSXwRvfspGqWNPpD8YzBOM6jqGCy6H9v9b64kAcFmfp14HicThcQj1J0HHJEfHit2Nb yxfwu8N6et/wAQ+hX3GC+zipmAsYDe6NWO0Q71iyWCAGHLRRaxawQg3gCmLq3LzItK0e N0Oufeq3q6m/tdwsstACDGSYz/wpv8ptvGhX8YWf5bu+a254XXaRCnCbLqvDzwnUrwKc sj/eJJTkdhXrXTpR1+TI6FYJlIEYTBPsPvTCvccEikBSFmhCaoh9hYGw24xSnOMlyOn6 uuVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724002150; x=1724606950; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=0CjQK1KNzHVntTC0DMWrSHcz+PiTjzfj1MSfy1NDuc8=; b=OdiVuJnLEruSGvLhmEH/Mb4V2wnb8hzGTtTvE38wMKi0Fcko3Zoo3wzLWXD+cOZ0bs dRCy0fNYysYpSgCy0wE03mmDLHd3h0EsRg4I/nnKD9gykW38Us53xccgSbaZu3hKn+K/ VB22kfdOF7v+6YzSIPcdFki+H5AoLhq+GkU9HzNUHu0esxVxS6SBcDYJrv2c8gkNDrlG b1LK7P1pvd8FUiW0F8ZgkXn0NSx7aiqqPOsZT3erNpNl+5EOWkqXf3gRwrBE/CYvhn45 jcfNQ1Jvk82ABnqulAKJsia7u7Dr8DdDKgIxsSRMKBWlA24oitkwF8jgS4vWYDZokpJG VYkQ== X-Forwarded-Encrypted: i=1; AJvYcCVl6Joxvo/AOqwu9/JKEKjblnsNROuBpyAHP6Fpqz4NBvrbjbC/QOgGVm9U4FpZDA0DS3NDO50Sy7GCiT4q4xeKyaSD33RbzGfqDMiEL5B8sA9HpR4= X-Gm-Message-State: AOJu0YwPknXj83Tk56bjTKSyHN0OI1aRck8FHnENOp++KldOGZife7+c 5r7PBfzy8Gm81JYcTEBOepewF8VQChwoa4vP1tUzXWM4a/5kbTHe7EVOaNGaL9M= X-Google-Smtp-Source: AGHT+IHVSICVAMx+qHSqk3Vlj4Vd8bvZ+oQ57yyU7L62VJrgm0bid26o1BgKAEh04NfnNQ975R706A== X-Received: by 2002:a5d:6848:0:b0:362:b906:99c4 with SMTP id ffacd0b85a97d-371a74784a6mr2851156f8f.58.1724002150234; Sun, 18 Aug 2024 10:29:10 -0700 (PDT) Received: from krzk-bin.. ([178.197.215.209]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3718985a35fsm8510315f8f.59.2024.08.18.10.29.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Aug 2024 10:29:09 -0700 (PDT) From: Krzysztof Kozlowski To: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sergey Shtylyov , Kunihiko Hayashi , Masami Hiramatsu , Matthias Brugger , AngeloGioacchino Del Regno , Geert Uytterhoeven , Magnus Damm , Lorenzo Bianconi , Felix Fietkau , Sergei Shtylyov , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Cc: Krzysztof Kozlowski Subject: [PATCH net-next 1/4] dt-bindings: net: mediatek,net: narrow interrupts per variants Date: Sun, 18 Aug 2024 19:29:02 +0200 Message-ID: <20240818172905.121829-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240818_102911_709144_D23A0A61 X-CRM114-Status: UNSURE ( 9.56 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Each variable-length property like interrupts must have fixed constraints on number of items for given variant in binding. The clauses in "if:then:" block should define both limits: upper and lower. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Rob Herring (Arm) --- Documentation/devicetree/bindings/net/mediatek,net.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/net/mediatek,net.yaml b/Documentation/devicetree/bindings/net/mediatek,net.yaml index 686b5c2fae40..8c00a6f75357 100644 --- a/Documentation/devicetree/bindings/net/mediatek,net.yaml +++ b/Documentation/devicetree/bindings/net/mediatek,net.yaml @@ -127,6 +127,7 @@ allOf: then: properties: interrupts: + minItems: 3 maxItems: 3 clocks: @@ -183,6 +184,7 @@ allOf: then: properties: interrupts: + minItems: 3 maxItems: 3 clocks: @@ -222,6 +224,7 @@ allOf: then: properties: interrupts: + minItems: 3 maxItems: 3 clocks: