Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp844771rdb; Fri, 22 Dec 2023 06:51:43 -0800 (PST) X-Google-Smtp-Source: AGHT+IEMpD1sQhS+nzV9L4PkKktHw7+gKunRSX3+NHMVZ1gfsfpACwN2U2ifFegAFQGhZWSp5v61 X-Received: by 2002:a17:90a:2ac7:b0:28b:f52d:9d88 with SMTP id i7-20020a17090a2ac700b0028bf52d9d88mr1108715pjg.16.1703256702875; Fri, 22 Dec 2023 06:51:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703256702; cv=none; d=google.com; s=arc-20160816; b=yV/AgMsNAYpf6oeowFgeITZvC3T2JZpu5HDpES18QyneitNVd31Psy6v7iMx07rSE9 GOKhN8BdzAe7x55raxtcew0B9k3MFd3Y1GnKcI9IBVLxeeMCY9j5KPP9LFbBIh7h2syV gW8PEtObrrxzE8RREO4G9pWynHpAOk9Uiqn6rJtfj7jC1IRlgxxbyDY2yJOeW9Kp4zRX HMDPxMDfw6Lk1QBbDhzsbV+9ALchsOCTUbCJJZtLh62xT6+5lf1PlJFWyncJru0UNYa0 dkV+mOnaAi5odD6ECNeQUvSKf4C1cCaXhuJMFPUvJUwjIWExdazVvwGBo9chf/PT2me2 pC7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=jtUnE4xxhx15CW5JpLi7TOoE2wmO68jA2bGdTJ/24bk=; fh=SWp494TNGjFoP+I9npjJteq2BiL8A6U/fLsgVZwDew8=; b=vgVwTWGowWEWVERphgSdS2dsoe9dnWKtSDfj/3DBIxQVEdc0B38M4ffgDrGlGdGCiI 1OUJqaxX9WBvCKVIb+2xASuIY3OEqudneQmSOqPlqkIxL9oscTrq3Ad6E7tXQUZdmXgz kwWJ52qptL/paoHV24rQQ0CPdvQy9HodNoOtNxnNQYbgBpzRX6xDPNB34pVbywBh8GnT +OZ5iqvdxqkT7v25Z2bD0kFx7Krayccit8Y3VsxObSD946Q0mslENH2n301bU4RGnEff bM+q4ZdCzGOMO5wNDgWM7pceneagspFbZLoOlBXgEgFhyRJwbMt6Kho3Qk5PrrlF03gA Dj6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=LLDxFUjZ; spf=pass (google.com: domain of linux-kernel+bounces-9792-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9792-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id o16-20020a17090ac71000b0028bbbd1228esi3507505pjt.145.2023.12.22.06.51.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Dec 2023 06:51:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-9792-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=LLDxFUjZ; spf=pass (google.com: domain of linux-kernel+bounces-9792-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9792-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id CD1B2B2384D for ; Fri, 22 Dec 2023 14:51:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AFA23241E3; Fri, 22 Dec 2023 14:51:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="LLDxFUjZ" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-lf1-f48.google.com (mail-lf1-f48.google.com [209.85.167.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 68C6023740; Fri, 22 Dec 2023 14:51:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lf1-f48.google.com with SMTP id 2adb3069b0e04-50e39ac39bcso2406059e87.3; Fri, 22 Dec 2023 06:51:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1703256668; x=1703861468; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=jtUnE4xxhx15CW5JpLi7TOoE2wmO68jA2bGdTJ/24bk=; b=LLDxFUjZkrkpNZ/4nteSQlIob1g1VT6ZnYKWpW7UHKVoaD1zMuTqcg4T3WZ52dJw5A vu5Xk/BcEdstcAAP3R1vj2ZXuUI6azF84vXoRErjR3KBvBjKitE/Cv93QmJWo537k0YJ dU8rSW4kYfpmL3L7iu+VvUpN2sh/SmNOF6IyEckcOXwG799ch4hevZT1yNCyrc69nlaN GZ0IFzSx2E0q4vGgorW19JXG7kV0mC7V2LkWeYPj4eDhJonWCg+9G9ST5MVLoGqfvYnr h59gVs91TI/A/UuN1Y/pG2Z8mqFddzM4jCtv7Z7W+1QrTbgZdWBpnmK5Ht3ngK6P6xYx qyYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703256668; x=1703861468; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=jtUnE4xxhx15CW5JpLi7TOoE2wmO68jA2bGdTJ/24bk=; b=AC9569AXhnB8lM301uYA9fmZFS34rMKnz+w6Ol0CVXY8+af4F187YMnrBnh/ywK71G mPgb89xv45RR7N8n5Q6JlxZWbibMXbEmpjKO4mF8SpHQcL/BqyC4jlsg2llToZ12D+kk ajyXyj/5Qg0WNcaT4jfJNBwDEnqyR5/4GV2W9YLmVGqmWWjkRWgO0xw1RyTNez7gAal3 1csk8lV5sXqAS9StZls0feraJTIypOnTVqh/yazlh7ZUe1hV1mYOTr8JhaptVVBQZcUn fcYYFIGj0XJwQ/XThdgdLOZeoTxmbIfjb2hQ8gkd5+0s6nxgJ/ALPiH2FnxNZF4GfPGn mVVw== X-Gm-Message-State: AOJu0YyGkuxmsguXYxAZmiqa21K/KU01PKLy7ysDgo3aXy26EG7wA5AV PBkT2Y+Bq6gE+AOSEQDpLu0= X-Received: by 2002:a19:700e:0:b0:50e:5a39:bbeb with SMTP id h14-20020a19700e000000b0050e5a39bbebmr393705lfc.173.1703256668116; Fri, 22 Dec 2023 06:51:08 -0800 (PST) Received: from mobilestation ([178.176.56.174]) by smtp.gmail.com with ESMTPSA id m13-20020ac2424d000000b0050e697f2d0esm192153lfl.61.2023.12.22.06.51.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Dec 2023 06:51:07 -0800 (PST) Date: Fri, 22 Dec 2023 17:51:04 +0300 From: Serge Semin To: Leong Ching Swee Cc: Maxime Coquelin , Alexandre Torgue , Jose Abreu , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Giuseppe Cavallaro , linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, Rohan G Thomas Subject: Re: [PATCH net-next v1 1/4] dt-bindings: net: snps,dwmac: per channel irq Message-ID: References: <20231222054451.2683242-1-leong.ching.swee@intel.com> <20231222054451.2683242-2-leong.ching.swee@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231222054451.2683242-2-leong.ching.swee@intel.com> On Fri, Dec 22, 2023 at 01:44:48PM +0800, Leong Ching Swee wrote: > From: Swee Leong Ching > > Add dt-bindings for per channel irq. > > Signed-off-by: Rohan G Thomas > Signed-off-by: Swee Leong Ching > --- > .../devicetree/bindings/net/snps,dwmac.yaml | 24 +++++++++++++------ > 1 file changed, 17 insertions(+), 7 deletions(-) > > diff --git a/Documentation/devicetree/bindings/net/snps,dwmac.yaml b/Documentation/devicetree/bindings/net/snps,dwmac.yaml > index 5c2769dc689a..e72dded824f4 100644 > --- a/Documentation/devicetree/bindings/net/snps,dwmac.yaml > +++ b/Documentation/devicetree/bindings/net/snps,dwmac.yaml > @@ -103,17 +103,27 @@ properties: > > interrupts: > minItems: 1 > - items: > - - description: Combined signal for various interrupt events > - - description: The interrupt to manage the remote wake-up packet detection > - - description: The interrupt that occurs when Rx exits the LPI state > + maxItems: 19 > > interrupt-names: > minItems: 1 > + maxItems: 19 > items: > - - const: macirq > - - enum: [eth_wake_irq, eth_lpi] > - - const: eth_lpi > + oneOf: > + - description: Combined signal for various interrupt events > + const: macirq > + - description: The interrupt to manage the remote wake-up packet detection > + const: eth_wake_irq > + - description: The interrupt that occurs when Rx exits the LPI state > + const: eth_lpi > + - description: DMA Tx per-channel interrupt > + pattern: '^dma_tx[0-7]?$' > + - description: DMA Rx per-channel interrupt > + pattern: '^dma_rx[0-7]?$' > + > + allOf: > + - contains: > + const: macirq As Rob correctly noted it's also better to make sure that 'macirq' is placed first in the array. So instead of the constraint above I guess the next one would make sure both the array has 'macirq' name and it's the first item: allOf: - maxItems: 34 items: - const: macirq -Serge(y) > > clocks: > minItems: 1 > -- > 2.34.1 > >