Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp3176376lqp; Tue, 26 Mar 2024 01:31:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXWn4c/jTWeN1d409h1Jl7EBTJi5ImEjIzZxkhN5IbW4fzVvHD1M1QsnyCLtmjAhjMDojmJ+zhmBOaSyuSPYOeG8SrNUa6ADPFC2ug2rw== X-Google-Smtp-Source: AGHT+IHGHPa4Hnv6mr+9wJ2Ywylz8N+TldXbXActOO3tAjWJtnMZmKvUQxtd4w9ikbZKpLPyFKVL X-Received: by 2002:a17:902:c943:b0:1de:de7d:d3a6 with SMTP id i3-20020a170902c94300b001dede7dd3a6mr1145108pla.30.1711441870886; Tue, 26 Mar 2024 01:31:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711441870; cv=pass; d=google.com; s=arc-20160816; b=UzWQ67QtzK9SLrZGpwGTrcYnyRrLeOGN2smUsbbQXhH9SN0D8Pv+ASvn3ENSfnSo2U R0XpvmRMnTlBeZ5ieh9oZhhYqC9NAwasdYCUokZBv/XholupMq6rrWR/bpqnnppm4HQL OTOCNogct4C2Jz+1vSg/EzUOpVQrvlYW637u+iAuBz3UnlZiYXQMY0fRrWC01CrC+7lA 4x8aEmiEiM7C7VYWA9HgQ+pzLA4zp8iugRNJestPSB1qj2OU42xTvPjpV+Ctg+MQBJB+ 1cwdFGQElsB9olF49jr2p9YQm/tijDP7myrhiIaS5u0lDQBwmOflsL8DpF05ER0opyEX w6gQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=gQNNudEt3wJLbqZOHESyaBm0XKGrjZUhNl5wxbVBy4U=; fh=rlfQOtjMhfr4i1M2tyADWXf4m9045qQ0mc7J+8L6/Dg=; b=NXJcCPCIZfjpUpTagmdW5t30OkKwHIDAx6gRURRgfWK/39cYjv5uNsOKEICoZLPe5q 15Tn4Vi/z/YsUAn7eLBrhlvLT2EnJjd0xS0r/YK5GclIaPUzIapWgDj0k58z3JBa8G7s rjPGmJhZYVq3k3jznSftXY/2IG9ObJJ33j+h3gw06ugtsTPSXpZNrxxQSOPrEOUGr9ul SoYmmlqmxBEOhjFF/DAjXRB2iIQ/j6nlf3UI9/MnGYOfNtfEBx1pagfEjXxsz7o4++yt KcCTJTmzRYFAENwYWh09wty1JYi9ygLh8R0b218MwnH3YyvHqwcn2PAHrv3v416WlSoy YAHw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="NjJFeM/x"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-118544-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-118544-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id q37-20020a631f65000000b005cee9118a7asi9050174pgm.600.2024.03.26.01.31.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 01:31:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-118544-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="NjJFeM/x"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-118544-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-118544-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 289062E3B15 for ; Tue, 26 Mar 2024 08:30:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C4589C8CE; Tue, 26 Mar 2024 08:30:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="NjJFeM/x" Received: from mail-qt1-f180.google.com (mail-qt1-f180.google.com [209.85.160.180]) (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 544ED17C9; Tue, 26 Mar 2024 08:30:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711441838; cv=none; b=MrXX7H2jQp8WKNfDhSCIb50Vg+GdSpvl93+I+mdkOhkR+Jvn6SVpuM4PS0C9ahpFYu10+aR2wGfsuS4nGItYWc6qlEnS4lvojKcyKfK6UXE5f/ogqs4eN0ONCZwPzrEhVg6A5/rst0OMecjIoUbyEfXAnQSqmE2N95G2nAqYkRc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711441838; c=relaxed/simple; bh=6VPDA+PMisBVXjlIjgb098mX0wgpz+kF+GQ3qr5PvKo=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=m6Z3PNqNmnfzRotDnfa3rCeeEr92GP7enGLyGPxFby1GZz7AsiohTs+8XZDs5socHWyKbT5A9YdqOkLuAIYdHwr/670gwG/gbUFfV4i9SK2Yxb7EBoI/uycxqCURgLjwDYp+35pZ+pZGfLhJexIxuJHnBPNqlhvrFri9KrcDWNw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=NjJFeM/x; arc=none smtp.client-ip=209.85.160.180 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-qt1-f180.google.com with SMTP id d75a77b69052e-430b870163eso58189411cf.1; Tue, 26 Mar 2024 01:30:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711441836; x=1712046636; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=gQNNudEt3wJLbqZOHESyaBm0XKGrjZUhNl5wxbVBy4U=; b=NjJFeM/xPg+s9d4IkkFF/XvExBbkseyFxbd99sahfEDI6q4JAajaGmVKxj2dq8eW89 f/B4YGzv+rqhiqUh3aeYmn/uc7/ZBed0AepC+YLlkU/TQBu/yGxp7ciU9IHik3ZcyTwl uEik+q9B7lEmON1NxopnAEJhGgbTArHa4ko0L5TOVnBL8eh8WJa5cdkP3XcEOX6xr8xX mIwbry4yWhYa9NjTEeRD1/P9LVDtcDHzc9grKkmRd0F8bqXSY8w2tgvr+SKjHCScSWdl Qt/cWKRc+IwrugDW00wnTvfn//AgJfwsZBjZciQzfBty8N18xf7GpmJsaWEXMz+C5Rv/ VFdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711441836; x=1712046636; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=gQNNudEt3wJLbqZOHESyaBm0XKGrjZUhNl5wxbVBy4U=; b=VqyObP+YGwXFD+C7v7eh5ZvoiJLPtF8Xo0wfd1TIDozz/5UIbnuwko4IMhtVmrAw/+ 76CFcRFs70d2mWfXBvA2573Luhkf7n0TqRKUnS18X6lRtimgTLc2ocvBqpVj+sMyGIjY 23FhlWW5y8FDczQRZYGbxFE4wpxxcIgkQMTKayyR53UxBApaQIJpzwR/Ir/Lmc0zryI8 jqKrvha4ms1VTY2wKs12kYWOeUDgvWGUOxXGo91L9tDIIZnL5wfj1/0KXCIPLOLuD2oM qtuVkoTsIFzBNATIziayUVOJmgAOfz00g5Ryxw2RvqH3huPgKFs6fdBFThytpb5spaYy cgVA== X-Forwarded-Encrypted: i=1; AJvYcCVntlzAIwO8FvMRBgbiXxc5TqkDZ8MWi69QMubtuujxKw8lz9rRvrT3WKPzt6G7e2/wd6+MPo3v9aEK1o1x6ivx5PXTf85dR2s2HE83kytL+PCfhIhbv3jwJLD7RHmP6SjIgxTxRwwS0P7uNz7T4VdB/zBoHc9aeSDuZDVuPAylv4TuVeyJ+1rQOgu7bhMOi0W4Cy+FHur8ZGxqVS0/VMKI3Ah6L7TfoAgh X-Gm-Message-State: AOJu0YynClImOiyN/Mj05TSIh6bvGWjGrXVLs8EcXDg9mIAPf7KUnhWr 4i3Vv+B56tF8QcdMsiVfdn1JN3ZhhidzLhjVL9hXjd/D6PPBmiE+hbEsVHb86OZuDQSKHbFsQBr CtyTql5h+GahEJhzcC2w+bo5PB30= X-Received: by 2002:a05:622a:2a0b:b0:431:7500:e92d with SMTP id hc11-20020a05622a2a0b00b004317500e92dmr307130qtb.28.1711441836223; Tue, 26 Mar 2024 01:30:36 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240322144355.878930-1-prabhakar.mahadev-lad.rj@bp.renesas.com> <20240322144355.878930-3-prabhakar.mahadev-lad.rj@bp.renesas.com> In-Reply-To: From: "Lad, Prabhakar" Date: Tue, 26 Mar 2024 08:29:04 +0000 Message-ID: Subject: Re: [PATCH v4 2/5] dt-bindings: serial: renesas,scif: Validate 'interrupts' and 'interrupt-names' To: Biju Das Cc: Geert Uytterhoeven , Greg Kroah-Hartman , Jiri Slaby , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Magnus Damm , "linux-kernel@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-serial@vger.kernel.org" , "linux-renesas-soc@vger.kernel.org" , Fabrizio Castro , Prabhakar Mahadev Lad Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Biju, On Mon, Mar 25, 2024 at 4:21=E2=80=AFPM Biju Das wrote: > > Hi Prabhakar, > > > -----Original Message----- > > From: Prabhakar > > Sent: Friday, March 22, 2024 2:44 PM > > Subject: [PATCH v4 2/5] dt-bindings: serial: renesas,scif: Validate 'in= terrupts' and 'interrupt- > > names' > > > > From: Lad Prabhakar > > > > This commit adds support to validate the 'interrupts' and 'interrupt-na= mes' > > properties for every supported SoC. This ensures proper handling and co= nfiguration of interrupt- > > related properties across supported platforms. > > > > Signed-off-by: Lad Prabhakar > > Reviewed-by: Geert Uytterhoeven > > --- > > v3->v4 > > - Reverted back to v2 version of the patch. > > - Used suggestion from Krzysztof for interrupts > > - Restored RB tag from Geert > > > > v2->v3 > > - Listed interrupts and interrupt-names for every SoC in if check > > --- > > .../bindings/serial/renesas,scif.yaml | 73 ++++++++++++++----- > > 1 file changed, 55 insertions(+), 18 deletions(-) > > > > diff --git a/Documentation/devicetree/bindings/serial/renesas,scif.yaml > > b/Documentation/devicetree/bindings/serial/renesas,scif.yaml > > index af72c3420453..eb2aa5e75e02 100644 > > --- a/Documentation/devicetree/bindings/serial/renesas,scif.yaml > > +++ b/Documentation/devicetree/bindings/serial/renesas,scif.yaml > > @@ -86,11 +86,6 @@ properties: > > oneOf: > > - items: > > - description: A combined interrupt > > - - items: > > - - description: Error interrupt > > - - description: Receive buffer full interrupt > > - - description: Transmit buffer empty interrupt > > - - description: Break interrupt > > - items: > > - description: Error interrupt > > - description: Receive buffer full interrupt @@ -98,21 +93,1= 7 @@ properties: > > - description: Break interrupt > > - description: Data Ready interrupt > > - description: Transmit End interrupt > > + minItems: 4 > > I think here minItems is 1 as it is either 1 or 4 or 6 > minItems 1 case is already handled above. Cheers, Prabhakar