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