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: 13767545 X-Patchwork-Delegate: kuba@kernel.org Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E64F01494BB for ; Sun, 18 Aug 2024 17:29:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724002154; cv=none; b=PJO7oQsP56IJyKO/uLoBqgdqz462J0nCoZJiPLWYQm7RpbomSjWFhVHPL+YriIFxCe74oT4ZOUDkYOQM+qHPfT7sV7+uHV4n+C9voG2q0fAE1GgTX8HEIWyJ6v9EM0QVZDGxSWTBAV0F6g9PQnbQLCyLLdvfQ0qx0nsQJM7UK3c= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724002154; c=relaxed/simple; bh=qo4RqSrI+Xyz+o83PeyJscCvl1idzKiReGcMhpUR4p8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=e6V6hJuo+YYwsIZIf+sduB1m41dLemNhkDQ8yMRdPA6aOkj2Znb8G9qOCLc9sZz6JR/KOK8OPjE4J/aXQtQZVImuqZCFgENEwHHzz1OX1ndTo2KiF9DtCHQP4zpYG6T+oEIyE942pzEW4bP0RIxmtfG8vSxiB3KK9QScWwmYSOQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=paFN9aOS; arc=none smtp.client-ip=209.85.128.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="paFN9aOS" Received: by mail-wm1-f43.google.com with SMTP id 5b1f17b1804b1-42816ca782dso29516545e9.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=vger.kernel.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=paFN9aOSwOaosC0lboXNudZjng70eTm5n/O/vXl/GV3oLwkPTXrSpoM03lspNgTbIi 0a4CxwozDfOfJX1JMmaeYKh3zUb7norIumOqCMORUWwFjwoBi6tdpUXzjeu60p9+TGb/ Lm6BSWRhpeP495G1ZTCF3dysgBdORJBgyY1IezEF2JJHkqjQ04XalZECK+pkm7QGxar9 TirznFCveqOu70JrWzghZEYi+zKUaVDYVGHduuox1zsRKnDF7VeqxuBXXVZH4YZpLOoW Y3W0WAs2VHcc21h3iLRywWTyruotyS7jEuXG47+/HgCNs0TkOLoJDmgg7iUMFdDbVKPg TSJQ== 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=D86MR9tbnz7mgtrJz5gOOZfxaRMfNTHDhtCK6cajl2jcWIGasxrwW8cm1LcN91xPG8 rsrGIhDUdHLoWR0ewxcKdD140i7VLmmdJfwb4wlFFxxt7wqyoOotkmDrp6VemYsal06Y QY7czqd3HPabW+tYMUJ+0PJGBr0yw/cJ75NdT/9D2Bm+usVyTpHliEBrDc8mhpQT6erf O5vw/7lOI+6oscnG7WWTnd8dsdGtnlMhR3kn8GY30w0UTAmD/v5Pz7HlgGdN28/jGolJ o7EfS0K/D1xPf2pbB1t1JTWOuRGU5emclUBYU90rEba2JbSmrguDVn94nF8PKtg8HcRp Lr9Q== X-Forwarded-Encrypted: i=1; AJvYcCWxUirTJhhlBKmJoepWeWplo/TuMo5B9ECtwj3M+QHDa/vb2/nUMuJcTXBNuuw3p/JWnbxvM3VTX5Ke0PvwmY34+lk6IFEt X-Gm-Message-State: AOJu0YyUdAdSUgVgUxAtyYW/N/KxFo7QEx4d80hfqpK8R/HEB6b9MTZZ QpDeZEZIKNTgFbV4oJXBTObO/l7XsSzBrLp08Kc4DQ91gaq5vq8eOs1OB5yXvC+ltNV98k6Byc7 E 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 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Delegate: kuba@kernel.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: 13767546 X-Patchwork-Delegate: kuba@kernel.org Received: from mail-wr1-f48.google.com (mail-wr1-f48.google.com [209.85.221.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DD49F14D452 for ; Sun, 18 Aug 2024 17:29:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724002155; cv=none; b=pDTBwTU9vW3+Kr4xERJ+P/mB83xjW5gIOLtJrGGAOcKRzvsEZMQlF3cjmiX0GBlNmqIyz9NrLl285X5X3lIjfcKUvNMgpyjg8qWzXdTsnYI7xP30i8B78ekJuNlydkRd0YqnE2zAB7b80BmnDvyyr+XYKc+AAIR7+5ZWt0ePheM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724002155; c=relaxed/simple; bh=bo6Oemt17UiR8uphrtM3lFkju/6XmMZtoXZx2VFaquI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=XNs4ppN21mpmzOznukKq6GelZt5rm7TplIuDGIHp158eCNBJ3o6LXUmVaQZctKaHAtgiDES14QlHkemENyp306q8JC71qAUpx2LLn8uV6269VwfKB+olpWNyT5MQH4pbUEC3N8a3uuidaTgS02Kg3VP75dHKg5LugD3v7Lwb/Ew= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=NVkNdbHu; arc=none smtp.client-ip=209.85.221.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="NVkNdbHu" Received: by mail-wr1-f48.google.com with SMTP id ffacd0b85a97d-371b97cfd6fso420672f8f.2 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=vger.kernel.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=NVkNdbHuKwNMrkpFHEv+jG0xWdIRbaTxNZrJikljwVoePyrByWQW3BSmHR4OtXu88k pxPSc3x/yH46AKIt1kYUj/+0pD3NQok5ykvRWeWsJLV2X/rLLZ2yjyfXpPyA8E8Y5qz9 NQ8rBbdC0D7ESWVhsC3u40a6FfJ6OkAYexO1vp8LMjM6kr+4vlydPdAwvJjdkonfathC RkhkLmKsQ9z9pv4dtiRz3qowGvsAen1Rd2vJmn7Ps8RJ0jtt27zOpJlk+5nMVINZS9lv OSuFZZj0mw5zbQLhIzxywFSSxO0LJl61VtkIIT4lX+boFbYv0ola+5vgozV6gNfuO/Dw OCyw== 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=U0GJNn5B+ClK/UHE6on4OjGM49OShkFGlN6LuiuPoJ11BIqWnwvga+QeXUJZwert+I ZqetP658HnF0lH4KnBPsIlgvorUR0vI1s+uu6pWYRY/nj79XXxIma6M82f6sBbbD6lnk llpMTN3HKQ0C1fFLY0/3IlPd5ZeRkyCmVLYsATydrAQEA2pTF6e5I8huKPdTCGCt3T/q pzkaxn6b1jykEBChgH8DKAjcJeKDKnUdpoH4DK+I/NnhbQp89WhNpDvfvarEp9OVxx1N ZAmCfQ5iazDeP87D/a9O/hhVc2AsTywXiqapNTRkqVhalScNCLa8RE09+IvG9VbeMEXl FVbw== X-Forwarded-Encrypted: i=1; AJvYcCVtIPahhvInQrZAfXNqUkKPEFmzPRdPlvLoMjeXZzKvxKkSyUCLJF1e6gdNi3i13YENjcOq/IDetaYc0hvv9Cd+S/a69vEh X-Gm-Message-State: AOJu0YwszYoGZ5MnpvWr/bN+z9iPrVoW+OVmI3lKY0gb5+cF+Ebtx5eB ocXHEFQ0TJkKOIRus22JulPG3kkGHHFWhZMN/IIj7HlekD42yvvGIij8zTrptdIpSO9ITgKP4a2 / 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> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Delegate: kuba@kernel.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: 13767547 X-Patchwork-Delegate: kuba@kernel.org Received: from mail-wr1-f41.google.com (mail-wr1-f41.google.com [209.85.221.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 06C05156250 for ; Sun, 18 Aug 2024 17:29:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724002157; cv=none; b=Od5L+UoPfsGtQIqZdgOVLDi2d2W4quRs+EKrzsNMz+sNzxedEFBc+UCNudZ1NiL2oyxWtYoseKHfnqI+o7NX5vsNxAbg5/Ib1faUc3YeJ9rwzSmJua3hDDsfwU1PGM/+3ZqBji7P+WetPunGwfmUJzUHMmrhjX7Eus/Qk5R6X4Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724002157; c=relaxed/simple; bh=FdtTwHtKsJN/wIhDUccUu+emnT4Yb4II+7wWDyl2KWA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ccCvV0jaY3JAIBgswTAGXb4gAqqcgmAcleS6JSJzCYb142L5iLADHyOrZdEei8F3rfA/6p43/wxWhvPEZqml54QPvSEv0AH5gezF7vOyc/vSyMVQDcDgpuAr3FCeBTkcBmcCs89IEWUx3s3De9HcAt69XCPFK8vHIABIy9HVA7o= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=o4IHHUX5; arc=none smtp.client-ip=209.85.221.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="o4IHHUX5" Received: by mail-wr1-f41.google.com with SMTP id ffacd0b85a97d-3717de33d58so2237649f8f.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=vger.kernel.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=o4IHHUX5lf89ilAsWKyYYcFQnWsxaMeiJMioFxmPW47pJ3ovZZPxAqWJ5crz3N4VmN Bb/yx5DJUxTp5xlH0JG2fUTQQSC957fYdP4miAZ5tc6TMpZFgRSRHFQnaNy+grI3xE+i NHDfND/3OTULcRaREeuzq70SXxj1SYWGm9RkzuJk83gE0Cd5wJICrz7CCvYIFyeNJ0qi OUS1ajgm9YT7boznoPHDCnSoHPsWf4a1m6pyUa80VZI3Ii78/RXj5U1wQ1eoy5POymNU ixEVjva3ZZSB+o4SKgDMkRCexgzXOALjYUK2GjMrWwR4yWztG74jO2IwGcvhQA4CP0dc OI8Q== 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=aZEqK2meaEeiXs3TLreHhSO6T+WJw8+QKz1++20fagmLkZL7DhOhRSa/vJOMWSVn9L X+woWdbKUJNaHB9bYbvmGsr7tx1wl7dulPhL2i/GXDw2NjcQvreO2eFbgAKdfwN4aF8q NEbfdAiObDKTZDifHo3K+it/5nnr5GqJbi6/ZAp7CTr9WiWfwHo33gpIX2Kwk8Xj6i2m YPavlfkTfDgQSwEBMuMm85/fKHqefhQ0zIx7dXVS8WAV4nKVXQ9nCgMnZe8tDEPJsfl+ wvdUb9BEes836fhFx/q9c12l8t/7/xcb4Ypbc8Ckvo9eshN369yYDloVyxzKztGOXX58 GwYA== X-Forwarded-Encrypted: i=1; AJvYcCVP9AWRbTRuCL+u5xtFNdXVx27Y1WG6hpvZsbeCHFTVrjyVuI/9yq3xbuhOEFx91vtLM8MFyRo=@vger.kernel.org X-Gm-Message-State: AOJu0YwTGlgxGCr3VeEBWNAy6ZlMOK3dHLUIPPrStGu5WjGSiWtCHV0K XiyrSHwCaL+BW50JJWZMZGhVVDnqozg0e/0wHIxrCLijgG9kfD1/yaanygq5Rxw= 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> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Delegate: kuba@kernel.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: 13767548 X-Patchwork-Delegate: kuba@kernel.org Received: from mail-wr1-f48.google.com (mail-wr1-f48.google.com [209.85.221.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D5A2114D29C for ; Sun, 18 Aug 2024 17:29:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724002159; cv=none; b=DqrG727Ic4rQQzPhy4vo1IDpao0dybBkC6VcOLdw50Fy3CYPIVhBaJaO/RgolCAMG+bx+AOn4RAeOKZByeh77pH1NDL5xskvTNofNxctcsANBm4d/QhG0poE5FMzXQJgVtia8g1kVit94c5/UfP/kyf+WlmRkveHsEXIAh4Kjro= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724002159; c=relaxed/simple; bh=u3LI4Mk7eTmteZbd26ULN0NFsDdnlkh5zLeBBwZf8GU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=KET/64z4Pp4XY4VRmL1D6PXkrreCPurMylbWY6Fg4H2H56PD9NANkcPwIayXMDp1lngDuspAW7/5jD4cwrQhXvpoBwe7fdV/mgrgyDO/SLAhd5ia/PfCYVmZr3m0lJilkXF8b+/kaNHXveCvIE23YSHZ4lGvuJr2NWBzCSbJnUI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=Cu5/pbPB; arc=none smtp.client-ip=209.85.221.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Cu5/pbPB" Received: by mail-wr1-f48.google.com with SMTP id ffacd0b85a97d-37193ef72a4so1556589f8f.1 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=vger.kernel.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=Cu5/pbPB56Y3jYuYGzHZZFEG0lj0CJRvLUAjT5KRhGsLQs8ost3dBuxbf1+MnraAAg Ur6KCrmmlpowZIAsL8w19BVI/b6+dhTL6KavtF+F+Y35wRJ8TLQ/1QeWVNohrzX4K/ty UPGYc7Fl44DgG8fSFHSnERcRw9STLfMRogyxFRYs+XMu4d2W2b4p5wvPK+7DMuOOq3EO Qj4m48MpGGzc+E9ddKiuCzEtRdl5vhftALOu1p6Qn8MQZCxPAvwpUjNQ76BrJcrGYHSh RF7CmnN14yTkB0U474N9DUCjsDzdKmvfyCUQ0T1zmH4xvw8CWC4+zB2plKjA8xXiGgMZ xSww== 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=pskwxhLlgx1TsYcUiZ8hpCm40ETzZ9UxjBYCJbl9EVBs5yqyBrxIsZ96ca7wAsDk45 T7XvcV6DzRyiYboym+LVM3igbWvxiay/BLSKzVGJdtTHLonfsWJ17peJAv0+QAoWp72+ Mon4xPvWitInTKWDYJDlF/hW6H6/DjDtsaCPa1W6tDj/980e3cDoGU3vtUAbxREzlWzj +5kUJ7VIadoTtgRLWugfN0DpjlTDTMye4S+dA/w36Np73+r8ISURCn8rqwXZmbiBO9vT JlTIDQVWSy0LsfpERRfvI43HRy4qgDaau0LnKFs6LxE84OHoPoJ/4dxRICVlUasuBbS+ wb6w== X-Forwarded-Encrypted: i=1; AJvYcCXPoRoOUXodMlfEdhbX/c8vOlo8smIsYYnVwHA4l/9U0K7CdKJ7FdFL9sK96usRZQ5Nkd+U9icE/j5DvzQuSkbFR9KxinW6 X-Gm-Message-State: AOJu0YxxKfAkdr0Kp7KZ4DLr1DSw7uYi2m/WnK8O7CAUKPETLw4ZNLey 8vG1fjC7XHVxGtC850SuZ3+NW4xN021hGsw35zJI5Y3MFGvCIJHaE/fqgTEGlBLI4vkUpYV2e6C u 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> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Delegate: kuba@kernel.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