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: From patchwork Sun Aug 18 17:29:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13767569 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 AA99DC5320E for ; Sun, 18 Aug 2024 17:34:20 +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:References:In-Reply-To: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:List-Owner; bh=8blFZbfnGlvrrpro9Mt+fDTe8etw4wnb+/lJOb2V/Lk=; b=LE0BL/ddI3UHETkj5L8lXk+ejI xUb5VeGwVxBFenQ9tEOUCPYiZCS85uHhLzWAlmSEmEiNmiRWu4r7xpyoRFmMHGERXbiBfSKls8Xjf zslV4YF4On8R8d2V0sQ3Xg8svb4x0odt1pYzO95HuAN2tty+4CDXzL8gTX6fIt2PQIlDeIX/8navB zWYfYsjtG0dd1Mk6XlP8kXg0LTzxxVntp3mf+VX9D5RQdWQrguWq/V2+7zgdkbjDKvY4o56RyJtQK zRrRzY/ULrwjkTZ+yFN9Zyp1tkz0FetCi0d//HmwoFOywIO1KpiOtf+MCbEQw4oDi6thjoJj9yavj ByruxdjA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sfjn9-0000000GuM9-2Bij; Sun, 18 Aug 2024 17:34:11 +0000 Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sfjiL-0000000GsiA-36ik for linux-arm-kernel@lists.infradead.org; Sun, 18 Aug 2024 17:29:15 +0000 Received: by mail-wr1-x432.google.com with SMTP id ffacd0b85a97d-371aa511609so801629f8f.1 for ; Sun, 18 Aug 2024 10:29:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1724002152; x=1724606952; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=8blFZbfnGlvrrpro9Mt+fDTe8etw4wnb+/lJOb2V/Lk=; b=KDFbLjJpLFOF98ZUnfPb/fjl8GdryQ5slOf4xA2Gurw17KLIkOVatA8nvRgSNde4CP Oan7JpEsY3e8U0fvvaUkuSEh1Sdbss9hFOjubv03pK0vSw00YNYbhN2iF50Rtcmp2F55 OZvDW4fw1xHitCY5WphzQD1shf6EIYDOa0Oso3wogvEtOaRtG4JdZU9HfBkex9mGlsMF kqdOSuf8RNM3y6f7/K3DVpXeYCTlDjdsZH99PRzbhoUUQHadaISGkQn9jIJ1J65Y9Kcy DH7LDN4NqLsR+t4GjpjckfSo6+ShNwXdaJmJNBzsD4N58O+O5sLZcz6v2KwhOFcfPdcJ +ZLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724002152; x=1724606952; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=8blFZbfnGlvrrpro9Mt+fDTe8etw4wnb+/lJOb2V/Lk=; b=jEo13L8aRgQHYLjQf9DILDpETCW9HBonRaENUqgEQIfcpGzFEyCmaxhoItYKNSvK8h rd3pcq1QBIXEH1XjKv2FsIAiqkfBEzAFAYRPnOCqRH8w06u7hClzzGJde1lS8y/j2EIW BCHkBBLFP/LrhhlCko6fb/v1mSeFw7qJ0DuFBObzM/YaN1d8rt3o9Du/Wz86z4mibaoT DVmyPKOjF7orPijJqt02aYs99pO74xMtg9iy83GmYSCvyV0eOyQ0CSA6pn94m7hdOSqo hsSFSsP5P6+aasMxSc60KUnSI37tXAi4wbzTPLPVNz+2BCqYvFBm7uXk1iPrIiXspAGf 0qHg== X-Forwarded-Encrypted: i=1; AJvYcCXJvFtLVlgd22yh5HKKPDZJ5nlAxHYwECDsg6BmjCwjtd+Y4z7pUzog4gadtp/gEGDSYSt9Oow8Z3/u9xaNMFhrmVfH7T851RlH+70q2wJNq+1VWyQ= X-Gm-Message-State: AOJu0YxYloXiPJY/2aW/FIdWZKvHYa7zOxdiNsW5J8+VHkkFY1Yb79gm X21Au6TM3TSpCzt4rkKPUjwDq0zX/fz20M7wypLYWqrDZcYOBxqdGMCIMb8LP7s= X-Google-Smtp-Source: AGHT+IHZWNYxDr1n2Hm+4Vk1yE2Q3KfSWgr7knMmpEN6fGiOFgE6l7GIrD+dz0zW1NTTiyyy6UNsPQ== X-Received: by 2002:a5d:408a:0:b0:371:8e77:92f with SMTP id ffacd0b85a97d-371946dc42emr4545780f8f.61.1724002152245; Sun, 18 Aug 2024 10:29:12 -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.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Aug 2024 10:29:11 -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 2/4] dt-bindings: net: mediatek,net: add top-level constraints Date: Sun, 18 Aug 2024 19:29:03 +0200 Message-ID: <20240818172905.121829-2-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240818172905.121829-1-krzysztof.kozlowski@linaro.org> References: <20240818172905.121829-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240818_102913_800919_A41A8748 X-CRM114-Status: GOOD ( 11.35 ) 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 Properties with variable number of items per each device are expected to have widest constraints in top-level "properties:" block and further customized (narrowed) in "if:then:". Add missing top-level constraints for clocks and clock-names. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Rob Herring (Arm) --- Documentation/devicetree/bindings/net/mediatek,net.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/net/mediatek,net.yaml b/Documentation/devicetree/bindings/net/mediatek,net.yaml index 8c00a6f75357..9e02fd80af83 100644 --- a/Documentation/devicetree/bindings/net/mediatek,net.yaml +++ b/Documentation/devicetree/bindings/net/mediatek,net.yaml @@ -30,8 +30,13 @@ properties: reg: maxItems: 1 - clocks: true - clock-names: true + clocks: + minItems: 2 + maxItems: 24 + + clock-names: + minItems: 2 + maxItems: 24 interrupts: minItems: 1 From patchwork Sun Aug 18 17:29:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13767570 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 58A52C52D7C for ; Sun, 18 Aug 2024 17:35:02 +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:References:In-Reply-To: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:List-Owner; bh=rsSwfgyCCKZm1ElLU08MN03l085AljcXAGLvPNx9VVs=; b=b5vsNkeEmO0qBMctkliIjpoRCI z4T7V0w54JYgi5JC0eW3+5xOcgBrSR4+6FKFEwOJAxVtzr/VZupZlsRVLFr0LCZU06rYUkiFMeVMp KKY3ZM+JeeSex9F0ytlyM0iThgZrt9fcf2AknzT573QVy7cYoX3yEIeFxAl7GE8pqdXfgcY+IFUjJ j5zuNJqfFrmKxFCkMptwgRCKJ0mvjDE5Gaiw4ZYd0FdhFbEMEsKNkQzjJ35IC1RB8D+jOuXI2skBH n/dJSWiy9egw7Ur+YZd/npXzKMTEN6jXpDjgmZnKsvaJe2HLOxD5de9cf4r0kRQmu10+bXtI+QKlA jPnR/wBw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sfjnm-0000000GuW9-2PPw; Sun, 18 Aug 2024 17:34:50 +0000 Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sfjiN-0000000Gsj8-44C3 for linux-arm-kernel@lists.infradead.org; Sun, 18 Aug 2024 17:29:17 +0000 Received: by mail-wr1-x42e.google.com with SMTP id ffacd0b85a97d-3717de33d58so2237648f8f.1 for ; Sun, 18 Aug 2024 10:29:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1724002154; x=1724606954; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=rsSwfgyCCKZm1ElLU08MN03l085AljcXAGLvPNx9VVs=; b=QBk1TYezoTBV1RNWp3slRAeMQoiZeEdu0B6Qgnjh847m0leUtnDCUhs19q2eJw8P5f 51XjmVM+cYXXqCubpFvx2oVQry9uADGhVlIBoRG2FmUOlQISiZDQmQIAv8d7l9eN6b9K yliCb/qiNDPSrz/Wl5kQYjtSbtxYvCTiLcb81StAOcpC8v0csuSy+5/X5llh+uFmbIZ/ qwdtCXq1BCluCADz4Tmln0v8snHoBrgwV4M1JQdxX5AzjT4NU5eoPvvGeiJpTPAVMCdg AbDoBfeLuRrtglLsmwFu5zQTRTP6SqcnilewE2lRenwspf+wE6ZN/wkJNy7uDljUwopJ 16Sw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724002154; x=1724606954; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=rsSwfgyCCKZm1ElLU08MN03l085AljcXAGLvPNx9VVs=; b=vZNvCR1/rdwGXRB0U78c5Bx5KFYgzdB/fSQJ8CfsXstQGL1PTgos0SdeuLeQXpTtBX E/Q2pTHvNp0/SgVIoF3g163KQgu+cBIC+AwUC2aUo7+UZm86Fo23ycK4N1JR52zP9Eh8 jgtvERZlW84qcS03O2eYZrdT2/PAOJtmvH3PzJ0ed1M0hNpmFEu/kr02zGTCXC3QEXDU lnLGwAbwOBK08rtHqf2llFCAvRmmP7816DFd3Dg7J85xV4dbwf0l7KTIBvRKmudelKYs yj2NS4j3/V1CwF++LGU6b0u3SXywr47sv7b7eghBPfpvUp9yxJ+MG/wuRcunUWK6qA57 vkVQ== X-Forwarded-Encrypted: i=1; AJvYcCWClLPXwEZ5byqixMJ8LPDNTrHOV5oIjFiQkWv3T0e0KtcXmUfL3eIq0r087l7YPNw6ChXNiCt6R8Ng68REEmq9@lists.infradead.org X-Gm-Message-State: AOJu0YxyxLqyB9JH//O10LTsc5Ndo1g3yDUPObJIVdkE/BQMPlTV6KeE OFtO/JAksxAjP5PudQPWLkUXyuqrJykz1lAoeTceoYY9/f4a9j0eo//MDb8rPyQ= X-Google-Smtp-Source: AGHT+IF5oqIaO/kGomtpTBUzPJ4hI/zfkkWQsLbeENpJUcPLayIcaNoTVT/LmiOBEGxfF3K0OFkCRg== X-Received: by 2002:adf:9bd9:0:b0:368:4b61:7197 with SMTP id ffacd0b85a97d-37194453122mr4749751f8f.24.1724002154312; Sun, 18 Aug 2024 10:29:14 -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.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Aug 2024 10:29:13 -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 3/4] dt-bindings: net: renesas,etheravb: add top-level constraints Date: Sun, 18 Aug 2024 19:29:04 +0200 Message-ID: <20240818172905.121829-3-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240818172905.121829-1-krzysztof.kozlowski@linaro.org> References: <20240818172905.121829-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240818_102916_036784_ED6DFD84 X-CRM114-Status: GOOD ( 10.28 ) 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 Properties with variable number of items per each device are expected to have widest constraints in top-level "properties:" block and further customized (narrowed) in "if:then:". Add missing top-level constraints for reg, clocks, clock-names, interrupts and interrupt-names. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Rob Herring (Arm) --- .../bindings/net/renesas,etheravb.yaml | 29 ++++++++++++------- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/Documentation/devicetree/bindings/net/renesas,etheravb.yaml b/Documentation/devicetree/bindings/net/renesas,etheravb.yaml index 21a92f179093..1e00ef5b3acd 100644 --- a/Documentation/devicetree/bindings/net/renesas,etheravb.yaml +++ b/Documentation/devicetree/bindings/net/renesas,etheravb.yaml @@ -62,15 +62,27 @@ properties: - renesas,r9a08g045-gbeth # RZ/G3S - const: renesas,rzg2l-gbeth # RZ/{G2L,G2UL,V2L} family - reg: true + reg: + minItems: 1 + items: + - description: MAC register block + - description: Stream buffer - interrupts: true + interrupts: + minItems: 1 + maxItems: 29 - interrupt-names: true + interrupt-names: + minItems: 1 + maxItems: 29 - clocks: true + clocks: + minItems: 1 + maxItems: 3 - clock-names: true + clock-names: + minItems: 1 + maxItems: 3 iommus: maxItems: 1 @@ -150,14 +162,11 @@ allOf: then: properties: reg: - items: - - description: MAC register block - - description: Stream buffer + minItems: 2 else: properties: reg: - items: - - description: MAC register block + maxItems: 1 - if: properties: From patchwork Sun Aug 18 17:29:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13767571 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 83753C52D7C for ; Sun, 18 Aug 2024 17:35:39 +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:References:In-Reply-To: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:List-Owner; bh=l8es/l2u9z7YHRxm+My9mNPpeISEV38hkj5XsiYsgUE=; b=CfZ7qKI+XEPDpsxIORQS9ZjuZz C4mv7SF0FkFjqE77ARwZmnuI0ZfJ8JApGd82itzlmbTy31FngVJzqsqTGFh0aEfXS6ceDSNlG9uLR NoAwj8YrhGKt4YYMNjPnMA9AOuJfBagNcmAilAxq6Nchj+2L6scj6LsXwWazKSZiH77K6RhCrAacg CDUm18AvC11j6n7TNqYQ2D1goMzhmSX1ofJcp6ABmRv8CAkzp1+nkIzRMhOAsos/kSdXvV23U/9IA Phz8IJkf/6ezmdiuQPvowa6vtmhe6vkKCKOrQNFixVn6C5COKWwTpBpAU41Ta8P4HyRmvwpolUC55 Zo3qylEA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sfjoQ-0000000Guex-2Nrw; Sun, 18 Aug 2024 17:35:30 +0000 Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sfjiQ-0000000GskL-0hRN for linux-arm-kernel@lists.infradead.org; Sun, 18 Aug 2024 17:29:19 +0000 Received: by mail-wr1-x434.google.com with SMTP id ffacd0b85a97d-37196681d3bso1546529f8f.3 for ; Sun, 18 Aug 2024 10:29:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1724002156; x=1724606956; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=l8es/l2u9z7YHRxm+My9mNPpeISEV38hkj5XsiYsgUE=; b=jtfJk5L+xjjxeFH3/xghUu/rl4P1SGqPsBaLdcAZVOm54sbElZJrJzimgFMrreL8Oz dtE1NXvRnXS1N+3rUklR++FzRehJlfX/dDMApV4ytFvoRvinsMsd90A6g98rluJDx4tz /JmWkiv22dC63y9SJSXjuR1v1Kqu9i8N0UbSB8T3hXughUzpKyPJZMAGb8yDP9iRW7kE r64EYuExZj8kKSKsEsQHQuxos6b9+zyev5ZLEchnwiqQEiAG4vEsxY1RhWPxZY88zrAu gGYNzqRtW/qKk8W0cvBgtHXP5qYof1QD+zmigFhISUHa4UpjJ3pXO8RHrDDpbDfTGSuu O4ug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724002156; x=1724606956; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=l8es/l2u9z7YHRxm+My9mNPpeISEV38hkj5XsiYsgUE=; b=Oz+UJXyjVJCdEqa/V9xDqtlx1TARYO5/IEfRZqO2U3u/cBXwd28LzTAv9HNOdxrXMg VMsHGuxCep4Y8zI1dQEiQxPmtCuwTayIcQ9nEzverSxyOkvE/oyV3fXX2o2Q/UY7LPn5 mx0MCnJbTpZHOmB+K4zGoM/+CRckSHqkLbn1Lm/znzhgZ2jfenxvwOEG/pqCcJxZnzoI IAT48WdHOgvvr5i+6dX4wtLw5wKDH2H+ydbNdbVcm1kiB9Q2nooszYBh7OPI3umOUB3+ dF0KHfM0G3xd1rrHfjjdbwk/LtHuiNBFuEOc7VlJyGT3qOXap7dD7MNaL6+w94MfQSfl wQIg== X-Forwarded-Encrypted: i=1; AJvYcCVR6z104jVJLTTgFw+j68PbSmXadZ8r6pFfQTswAIIGbdjTJxeyKr9BhQy6SrufVxV1wgIETqxbKd21eVSg3O5jA4PMxcjF1uMzoY6707YYR9JQFD4= X-Gm-Message-State: AOJu0YxATdmsiFFhL0OcPJxE7DFy31qWOdhMCYjOAJNIsaVrRkdwtG6A wpOcj8Gfcmcf/prRKDijYE+j+dbkWXjL9aPdno5xDpkGlOy5D5A6jz3/WHVZvLA= X-Google-Smtp-Source: AGHT+IGDihqENsu32+YwhVnlSe0afwAWIr3NedxRFUFDhgEflC/5EBBcl/lZ8aHqbdVFXfdVdizpFQ== X-Received: by 2002:a5d:4f0f:0:b0:362:8201:fa3 with SMTP id ffacd0b85a97d-3719465e8a6mr7100101f8f.34.1724002156139; Sun, 18 Aug 2024 10:29:16 -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.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Aug 2024 10:29:15 -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 4/4] dt-bindings: net: socionext,uniphier-ave4: add top-level constraints Date: Sun, 18 Aug 2024 19:29:05 +0200 Message-ID: <20240818172905.121829-4-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240818172905.121829-1-krzysztof.kozlowski@linaro.org> References: <20240818172905.121829-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240818_102918_325750_ED694DBC X-CRM114-Status: GOOD ( 11.17 ) 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 Properties with variable number of items per each device are expected to have widest constraints in top-level "properties:" block and further customized (narrowed) in "if:then:". Add missing top-level constraints for clock-names and reset-names. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Rob Herring (Arm) --- .../devicetree/bindings/net/socionext,uniphier-ave4.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/net/socionext,uniphier-ave4.yaml b/Documentation/devicetree/bindings/net/socionext,uniphier-ave4.yaml index b0ebcef6801c..4eb63b303cff 100644 --- a/Documentation/devicetree/bindings/net/socionext,uniphier-ave4.yaml +++ b/Documentation/devicetree/bindings/net/socionext,uniphier-ave4.yaml @@ -41,13 +41,17 @@ properties: minItems: 1 maxItems: 4 - clock-names: true + clock-names: + minItems: 1 + maxItems: 4 resets: minItems: 1 maxItems: 2 - reset-names: true + reset-names: + minItems: 1 + maxItems: 2 socionext,syscon-phy-mode: $ref: /schemas/types.yaml#/definitions/phandle-array