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: 13767517 X-Patchwork-Delegate: geert@linux-m68k.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 E65491494D8 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=1724002153; cv=none; b=KIKhbnjGwIWwUkxN71vY6rDxqstbBG6NcY/u2YtYNOFIivVRpN3ECyZs/e0kuvuAxfWgeyrX7e7tcdj6gQhmPi7hCjogMUvK2ryYFf3zrzSyPVWs25QqJ0PdVbwV81OJYz15Qapni8vOCqcSi23jYqZWfUr/nNllqBxh5Imhc/s= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724002153; c=relaxed/simple; bh=qo4RqSrI+Xyz+o83PeyJscCvl1idzKiReGcMhpUR4p8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=X8VkFGqXAxdFN9tsBYxDSOsIHkMH47rQYzfeR/FnnjyUOmWGfbj/5ZPlw0oLn33rlqhd5bJpMZM1sekwq8XYDqpQNWO7EcJNvEvHBHQLdvaW74l/eet0ohqavBNx30KP/ucvrKzCHJ1B90Rm46BI0sZrB6A6TndgV+58T44GqbQ= 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-428ec6c190eso29569015e9.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=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=KPsEyRmrpOnXH14+yBmpkAt+7/sFEkKH4uYhTVJMODMyt/maIeU/EXTb2mfk8rTvnC uwEqv4A8KGx+KbF4JXuM47Fys/jHvdzV+q/gGh5Si6Ao/nKMlxF3jgviSEWfZiA2FOEd DQWYFm5hqASDqEzoBEgdCGpV0J7m7+oPncEkJn0Om+jBEsZhVqZp5pbHvV931kj6Xzok hvTVlUmdFWxHL7uuPLcvt6J0a9IKZ/cArMJeWddavER/vOirDxV/gBgxyzcX4LujlX9c 83Nh6hFDiBngPycrqb/ObSYNsRtEt7RQ+Rg4UE7PM/vE5/r2GSGs39AfNoOx74iG5WLL WzHg== X-Forwarded-Encrypted: i=1; AJvYcCWK0X+rm2UwMSkYgTtGAWlqD7HbnA5FLqjy5KjhfFTLtQ34RUtjPCWz3fE0J1uKM6rVadcZeRBcRaY4C873iT01ZXU+d7z+75mUTrVk4yb41EY= X-Gm-Message-State: AOJu0Yw8nVVV2q8r8L059ZSAlTAGPQW+JZ1YI5O3y4O3SiopRmjkqmkX n3CvtfrPGa/CwPlA3YDnldWMsywBreRA86URHMfDNdDxX3lsrsXLmmnhFBQS3L8= 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: linux-renesas-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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: 13767518 X-Patchwork-Delegate: geert@linux-m68k.org Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) (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 0047214EC47 for ; Sun, 18 Aug 2024 17:29:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724002156; cv=none; b=hHkk9SN9PxAMtL/fk1FSXiS5HSSqUzU9xODIkP/2ObAPPUE2voe9MSmCGFd+8ZdE4Uc6bM9Avy6EChrIu7dOlh38koVwSh6Y4e/CAbeEY+nZcqFvWrE+sU1/sBEWV0A2mt+5AJvA+yLWG2MUvKhl3tvaGmBYKPtsTApaLmX3lMI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724002156; c=relaxed/simple; bh=bo6Oemt17UiR8uphrtM3lFkju/6XmMZtoXZx2VFaquI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Xq4PwZM1MH2oEIyo5flUCuOHmmUAlJRJJ4LOF9OSoC+WdAH3GXj3P6FpZh2Idn0Egw3rNfYYFW4RqT2W1ThLYvn/unSyDT3RRwtxHJUwOouq4L7sxDJ/Gs6uSK/4ab+0W0LpmHAoDDWTiWzrpRXJVU5yhdUjkvyn5EH7VCpaUS4= 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.128.53 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-wm1-f53.google.com with SMTP id 5b1f17b1804b1-4281faefea9so27187675e9.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=i+l4/b79EShGJeV5sh/2ZGI7I6CHdDQ2SxqQ8QTBqtzQMRfufVnUtxa/lFzrpoNvTn MvQJ+qEPpYtNdQucvtPVLo0CekrUDEjELOOn8mr7/yLvMqAZTFQ6s7NnZqHMxVZWdLkv Mbn2EwGQLjZIyEoTDpA+WXCR10y5Lzms41oKn3pA5MduceHlsIjIPTtTVYltIFlaNOCu 5fBOEgow3MVr0RShSopiwn50RQcQfk3jUHUdCQVwxpeh3gdsudASXKObIwmoydliXg31 HUxQavVDiU0CQoMAleqib43i1LFyVOHh7wQ4xFhUerQS+DGqN1FBFdBotKoxFAPmjYAi T1Mg== X-Forwarded-Encrypted: i=1; AJvYcCVmH1v8JjyyLeUkiXY4z8MKYNvhj8q7ERqMYDKDPCiZOIOvCp9x8cBo9X3oHEPR5qBFCa2k/7vtyn/9waibaoI/12rkEEXq08C1NeGy362800s= X-Gm-Message-State: AOJu0Yz/IT2xRFaa/J8nm6lFS41bvh6nh9plqghDNz1fRzjtY9gAgvUj iiPWG3YhyaTgED8mlw9RQJ7EnmH0ue55xVYqUretwDs0xhnrxByaXw+v/iL+dZE= 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: linux-renesas-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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: 13767519 X-Patchwork-Delegate: geert@linux-m68k.org Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com [209.85.128.52]) (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 085DB156256 for ; Sun, 18 Aug 2024 17:29:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724002157; cv=none; b=S08dpjkeIgDhtDSuLoces+YFaXeQq0fsL1RQl+mP1O0EIupTANSjpwzyX4RJ0zVpfJk/Hro485oEGScnoxN3WHUM4RMjc2+cnyXb9XQjyEmHvwHxwcDdi0RCZNy5mORnIjiZKepB/EP8z5pSTSLTBzLfmaMrPOpjhIujrpFdrSY= 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.128.52 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-wm1-f52.google.com with SMTP id 5b1f17b1804b1-42816ca797fso28456495e9.2 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=xCNEOsYwQqfEX2k9K0VFeKkhDYVn3Qkcb3++Wg0QM1AqEIlsC8xOdyBuBroFx8QyqT EwwK7pM5o1lljS3Xvjm9cRH/6F8v3PivUx481u0+BxR49U5UtwqljLNAuPBKk0ikFvhk zvOOkTJzbj7l0YRC5svoOdw5FbQ14j4MwouTn+8uQ3QHgJsP10X/V7km/RqsWasJvGFG etpaGIGs+m7p3zFoaQvFTelDyxEbwNTF3m6l+LVty9GMeae6MUsSWCjhbQle4NuvTEuc +BNEcjweFYf5NiDUmZ5BZa9nfbpcIh8d4TyKeeJ4mGz5DFnkJ45mTjj5NDLBsm+N71y/ YPhg== X-Forwarded-Encrypted: i=1; AJvYcCXYBz+EZp/n46nQKJktyFaqsRhq1HhriaQzMmIpZYjzDqmitSLea63QwZvnPBuK4EGaPdjqKNuy0ppnZ9v6pSBdWw==@vger.kernel.org X-Gm-Message-State: AOJu0YyvldTB5lSAeVpa3bFGYJJdNOV6zIfJySjcyI85agXhQbqkqCVR ojrsTE5SCcZMA6vg6e0kxC0VkxCszxQ7FPPP6pbNu+anoYMnCpTMK/vxQ1spq8o= 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: linux-renesas-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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: 13767520 X-Patchwork-Delegate: geert@linux-m68k.org Received: from mail-wr1-f49.google.com (mail-wr1-f49.google.com [209.85.221.49]) (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 CAA66156875 for ; Sun, 18 Aug 2024 17:29:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724002159; cv=none; b=baR+JuimQFcvmwcldou4NAEgzFFt/M8RsG6ZXERovcvtNGw+21KHnL9yjVcOyCaA9H8yINjyv79fPqMAccI67uM3TApvnGUrhz7Kw8HSHumRU/z9KHfwzmlhrPeYLNrrgsfVuV6ho5tVRYUymcYSFV99fTTOtusHitQIUqzLc8E= 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.49 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-f49.google.com with SMTP id ffacd0b85a97d-3719753d365so1551616f8f.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=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=dGqs8ODlGdQYi0jBAeNncdcrB/skaB6iaoanB7BYcSbNFMdp4DQeF0ISxEX2klbwx/ C1sJRcuP9IER+kI3djU217QsRriBu+jcmww7TrBc07V7DIQ8620MFZQua3W1qqGUMlbH BGgH+hRFxiW2lKwUJhwZljYVlF+ufxRGAR5xNcIG4K/0OPx31N+RR4PPkRkTf1hj+p0M eWLnhRLG3F4xDATuQACA8jLQVhzVr4i3tOpHyuM7kaqHCf2Vyumk9qG3TaosdbnuNiHC ii3UtDEhfdcsdrOBCzV5Y3e0WUFtj0XiZgpE9PFAlYCVzS+aPgMnsiTL8ybDikF6Kcxn op8g== X-Forwarded-Encrypted: i=1; AJvYcCV4jz0lZtgpwQckw0572TiZWzzLmU17bg2p7b5ifNNSglsZkyPcSF8wVoEh9mkdEmZIN4yFhPAKqIWpxLh6QDiG0oZUFQFZJV42Q4NA+zqYs2Y= X-Gm-Message-State: AOJu0Yxs7o5KWwgimBP/z0iV4SyxtdVt626EXb5RZrNMsatS/DiE4AVn JCyHilKXPEP0cTof/svq2kfs3HW56TBRQ3fRr3plBCQjN2ml4zTLtSLbeWnIVl8= 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: linux-renesas-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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