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: