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: 13767562 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 BCCCFC5320E for ; Sun, 18 Aug 2024 17:33:34 +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=jVLAlHm6IuZ/QZ/H1OigYF+y+8 nCUN3utR23BpsO/UTtB06lMK88vMlLx3oQ6PxbwK/eyvJs/ejHc0j6PQpgKpyhLcOgqvwBTi+VGgk oqN9nZlnshwZLYan35O/aUxpDKihvxAYYZVrj3et6cHVQQ4kfyZSWqyfhEMYHED/cOMT2eRSBefVw lGHdsFGn+XW2QS8DUfzZd005hCKk32UG2nsjga5RnwGFxFFDdqwLbjLaNQBwI4fo3pdGqz23FIGBf hlGujy86uwyZAYUyncXXj/PwNY5LnE5i82igc/bLIHysNgii0hzx4OJcH3M6/L4HZuNqtRoCOWWvZ mc4ThivA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sfjmW-0000000Gu9F-3ISx; Sun, 18 Aug 2024 17:33:32 +0000 Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sfjiK-0000000GshK-00rP for linux-mediatek@lists.infradead.org; Sun, 18 Aug 2024 17:29:13 +0000 Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-428ec6c190eso29568995e9.1 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=a8UG0GfA5atM1c8BZN9/bYCZMgiBUA6HZ/u8XYPYUWjukhWfZ2/C20qAM8ILJ9x8Y4 /HSfm9bwUGPcTq2qk+m63kEdgxs2FPV6w/5SGDDWw12aFkbAqvySMzKnKlUOEfP9fIyd L+2epCs9IER6n9RtfPJ9GFlSUwrDDwKmC5/PzAu90/fRN4r4JU3WviLdsSxQmAz3TTW1 AEIuYkD8iPZCjTwq9F9I61hUbWdnPSkqDAc2DV9H/MGPJb4ixluTwiQxRthFQhIuIrx/ eNFGFvz25RJVVfNmYliDFWg4hrpTIehvzDHj0kmsa+40tI8D+hnXlba34uNP0zrhNF3u cqIA== X-Forwarded-Encrypted: i=1; AJvYcCXh5ykJK6y423PgXkVpveIk7NZjwoLVTrE1O0V+OL7A13tR6y1lI4yR2LHPFaBcp1jS5xJbfDaT2cDJskFklRZ8zHPSyMcjH9RWe8vhulfIoWOh X-Gm-Message-State: AOJu0YyVJ2wsFT/yNOHjjpup4zmTxB9ijf/9euFjdzRwMvVwhoiRql6h HvzriZbL0/2FJPf7R/gZT6eU0hOOxlZ/gBaY3+S7+9UAReeUnG2VLoUx9f7Vcbg= 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_102912_052781_239CF770 X-CRM114-Status: UNSURE ( 7.96 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@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-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=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: 13767563 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 82DA7C5320E for ; Sun, 18 Aug 2024 17:34:12 +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=YMXSgq978yMRzVZr5ilmLf7qZr YoPIfwffOlF0kxyOckN3pR1MhoIsp5SWrJLdsrtzrRpz7DiQBs0pIu21U5Bob4FxP7CLci0dIQqPe 2dplHBpoclmDTo6gjNWDBtMh2Q65ksPdmVtpINSv/QeCkr8wMEc/ClMzIE+IiQBSqDZEvCl/mvBSs lWZGXngdEo+JBCacaNBJhm9kE2UIssmF0OcfmitV4dCaJ8I0Md1DwoqeU1orYn9GWmWIbaoJryiyv wIVh+I1wIEn0kbmISjNOJcseaj7ByvaqUQ3VMviL4RmAFJGChChowsPtnbwbm52Seum2WvQiQay6p owQjxOwQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sfjnA-0000000GuMh-0UaK; Sun, 18 Aug 2024 17:34:12 +0000 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sfjiM-0000000Gsi9-0cUL for linux-mediatek@lists.infradead.org; Sun, 18 Aug 2024 17:29:15 +0000 Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-4280b3a7efaso27301375e9.0 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=YCdcNepH4ZoQSg/klETX+4i7k7jpBxZw8pihsN50dQgynCtPV6W+x9LMB32rmwUlac A2SwBnrcW4vMBw+BduI3co2Mx1R3dC2DHWJq/OXFsX6bu3p7+R03Nb5HBwx8f6usBk3/ //QTnDPnVmrB/iGKDe3fRsEowGtAHUx0PKuR+oSrGKCP84ogOw+GnEo3pr5oW/9Pjbmo +o+XSW4lQE9o2Ors7nTEbMFMCktSz4Vs3ooPx0yv99m+joWjIdaR6Z154+J93DcgAaoD 1KEUcAiocDQBQsdaYrwmUKmnJ6OY1Et5oUXr/t3icWQPfRhu4n+OFPnKTNgV8eMzDd9q /r4w== X-Forwarded-Encrypted: i=1; AJvYcCURDbPKk210GA9w+fssPd7JrCF4AULIP6Wi5nlEPawk/3rfsxVu6Y1Jfe0yBmeuTP4P2QOkxWIGKzHLk/1Kf9j9tDsSEmOhCtAYyU3k6VCnNzN1 X-Gm-Message-State: AOJu0Yz36iotgA7kJjYF820g5yOGrq8M0iKIYJvpH2ImAHWiXrcbRCYc 4qlcvOSw9szvPLnbn8VS506mlp72RXV3+UKx1Jlsn8ItyuWbEXVYTaHR+59w1VE= 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_102914_200287_B3027266 X-CRM114-Status: UNSURE ( 9.94 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@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-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=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: 13767564 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 A60E2C52D7C for ; Sun, 18 Aug 2024 17:34:51 +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=psADYGKzSx43WDH+WpAQ2I53GG 8xYKSXBzIOItfIf3KZiG5qUbiF6rLlMBdSvrytChwTHjAb0rPhNdTa6MeIh5N0+6vaEJMUQnkWLDw gOXTX+AfA8JdtxDejRc0jRyW+NNM0elRKYVfCL0A9lKWTmUR2IgwAwBtKZpzy8oqYpwELB28Vqtze lCY6a04X9KTtmRmn8qusVkSsZHsjnlI5ZYgbEEEpSccJ4jIPjznWFwiXTT7fde+Va5PeMzXyQBJUb o2y3BL0KF3ycjppqrBm+acdoNq9sM0YAPsa7SnMSMzgHwxaMDl4XxS3pEQJdRMrzJDS3LWvakU6yT +vRuZG2g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sfjnn-0000000GuWU-1Qep; Sun, 18 Aug 2024 17:34:51 +0000 Received: from mail-wr1-x42f.google.com ([2a00:1450:4864:20::42f]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sfjiO-0000000Gsj9-05iW for linux-mediatek@lists.infradead.org; Sun, 18 Aug 2024 17:29:17 +0000 Received: by mail-wr1-x42f.google.com with SMTP id ffacd0b85a97d-3717de33d58so2237650f8f.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=q9HAektSQ2pQn8Zlg0LfbtHLK6L7FmBphkovq4lDqOulQrhneZ0cC/ZsUMmRyRJOzb rcehswCXG9R7KmxkBIIs+uypFlGf6qJxxXB3zpfGWP8ATnxqbWK8sptX5WSCyiR0MYgA +x2YG7Pb8mI0IkKP1b/r1KN3WureTf8VBq1ZIEGKrPhGg+TFIjXnvA3Swv+HQ9dxL7sv uSLWeHXtOR7ngvBhCd61UEDIU5mp4fiuyqGDexkwIicknHwn1+GLrKAfiTIJDLX1oeSQ 8wdIruCs1apdIdMTMtqwIRdMgTITAuYzDMzX8c0lZZ7YuVgVGrvj0jjaZY+bxx3aTQGb OMBQ== X-Forwarded-Encrypted: i=1; AJvYcCWflomMdcuOC7opo7HmNGZH5I4X7hZh3VY+ULEviaiNTQ5lS6tYk2Xb/Regcew2hh8AFDsVkO/zh4NMQ7R/gw==@lists.infradead.org X-Gm-Message-State: AOJu0YxHbo1CDRdbz10sD3ffAkPVv+lvelhZ40JKTBtLkEKGSbqvMCeJ ne9Lamms3zLbrlkaQJTSyTnJCoWYhaERH3O+zAIzYexEN80L/PyvOwHXFbEq5tc= 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_075434_0F9E0813 X-CRM114-Status: UNSURE ( 8.87 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@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-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=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: 13767565 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 0A69EC5320E for ; Sun, 18 Aug 2024 17:34:52 +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=zSqga6QzTw0See7iTcyVahl51y lKLKdKj/fX50kYntzlGF5LPQ2D545fPlQvK1t+Bp8Xzyz/S7mxJ4zjKRt2kc6Ve9Wh+TGVBdZQHBk VNqpKi5ahEw6fbmvDjj96k1yIJVu/4GtcV45lQXpIz679yu5l+LTd5bO3PfAdXSg9HVQ5bzNoXNCz jdhIGch43/liJZ91kx1ssBbdPAX6rFPbnbHb0PZuD0yTXSIQ+jaCtbIK6Tjq5U70SgfIyyikOyEr7 JD3XPm+I7fTSxqWejKs6dyXHOsJWpSQ2NNsfb9J7oBjdeDwsrwG5I7feTACXT4PS6ECeHgw2fEXvd SgsRqptw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sfjnn-0000000GuWq-2naB; Sun, 18 Aug 2024 17:34:51 +0000 Received: from mail-wr1-x433.google.com ([2a00:1450:4864:20::433]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sfjiP-0000000GskM-44GJ for linux-mediatek@lists.infradead.org; Sun, 18 Aug 2024 17:29:19 +0000 Received: by mail-wr1-x433.google.com with SMTP id ffacd0b85a97d-3719753d365so1551619f8f.2 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=Jk0fgZ0XeVHLudQ8GkvFJJPG9gKpTkNrjI9iVa9CUOcMa/R8NAd7iKLoxa2+WqqYeM wXNlGngqj/CRQCS+s0yh/vl7kmIKz/so4KK4ovVNdIJp7RQbWOQO0DnlDa58DDl43zcE CYrAXKBZNueVKrW0cewwOw1OmCg4nEgwzhdlYVL2rLtqFNTbirhXBjFnXxc0bVr/xbi9 uieltfM8usc1qAK+43H01kr+awhr2UkHOQyqQZmncrPZyGbvEBMuwfxOnTo/3L1rP9QH rmthmSbX3R8dnsKB48VmYEXKsmQQz0fRWFalgBD+U/C1YWOPHn1bvzneSiUEAvEKi0Ff Ccwg== X-Forwarded-Encrypted: i=1; AJvYcCXqRKhSGQ9fVxRktJ0Kcnb9afUBYhDkH5e+UJyPzLKK43gOo8jYj8AVF2LygfTo+yH4d9G2PpUFrkTA0YBFrGyOJKB+nzISCkhYMLlQPA+qC16s X-Gm-Message-State: AOJu0YyhH2QOzIwqeMt/GELTdG0qr/3WW1ZvwuFyYLBvmOHO4Bp2wbjv 12bSJyUGQa1oiA6c4HwjgR6fnGtYA8eWIut5qyqqznCar7T6ZYLqEyBGRPpdXUw= 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_216709_25CDEDC2 X-CRM114-Status: UNSURE ( 9.76 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@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-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=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