Received: by 2002:ab2:788f:0:b0:1ee:8f2e:70ae with SMTP id b15csp453712lqi; Thu, 7 Mar 2024 02:09:06 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVVVSgFCe2nO0oYJPLEkgfoohxw9MkrPiMCB5XLCx5h52RrqecINUmqNX6HW9F0Ca1XPHzAlgUeC/kUQvMMhqzu5MUsA/pGcgH/sgtKNw== X-Google-Smtp-Source: AGHT+IFA9v3d086gcrJVGx0xGU9s8zEEupV8TUMP2lpl2F3dvfRU05fEvl/kr8UkZximQUks+Et0 X-Received: by 2002:a17:906:7d3:b0:a45:c027:372 with SMTP id m19-20020a17090607d300b00a45c0270372mr2677263ejc.68.1709806145897; Thu, 07 Mar 2024 02:09:05 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709806145; cv=pass; d=google.com; s=arc-20160816; b=zTy2tcfr0BbvCcIlUePgEtoYwQoX1RZ+2MVglagh6U3W81WwpqQNl5kXZf8x9vUFSZ S8TdysYqqJjTsXrpSjLt/B3ottfCZuEiQc1L4I8ZX+aEAOuDq3Ez1Xm4me+7JqM/IcTT 7sa+4+UplogHNdtqwvEq/uhXoX7zKHD309NPqcOT23avbpFQeZBlCUCDcc2/NbsNh1im g43lY37gR4r9Cfxs4KktG26atrsPEZ2hKLzKDnt0zl+X/SNDjeQdlKLu8yVvBZzjgsUo MGjSBXcNygG2rA0r+TZ2fFPB7yN+b9O4S8l1n879++yEpjQxYrPCUFVvoaHlFryNZMD2 j3vg== 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=+ltGQZ/KJpP2IEJRV87ZbGJjG+U5zUA6j0BQLiJ1uwI=; fh=0KPp5EPQSRv8Il/MIsW9EfcOWqzwebHu3riI2w5wFVk=; b=zWfCQEjsTC2i3sUHdPTAuVWUsOKk7Wh4NgSLEMEanR9DASfuRWicNf2IpN3f0fS9q1 rd97N7V7H5x62dTPljwa5DLIqANM9WWeHc+beYI5pVV+zaescY1Lh5w+vIbqieIE1Vdx en9z2IHdhs6+XVxXnug4RM73QmPLioHHtq3nEe+EsVUolJCyuqwkwtOOUvoxEhtPL3Ow P4VA0npB5YPxIeMG4+hIpqi3Jinj9dSMiefFAv+BeYzfvydywWgdLPAuEMZB3g1mldi1 uO/AYkTh0OZgGXPN48WVOikF4dJwrHr/+ARzd8PzMLjXYCV2XdNYQ7+zb/6XfhUD30Wt 0DYQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=gHV5nH3a; 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-95300-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-95300-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id dm13-20020a170907948d00b00a45c98f5841si656922ejc.986.2024.03.07.02.09.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Mar 2024 02:09:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-95300-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=gHV5nH3a; 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-95300-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-95300-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 470591F213F2 for ; Thu, 7 Mar 2024 10:09:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 32312128364; Thu, 7 Mar 2024 10:06:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="gHV5nH3a" Received: from mail-vk1-f171.google.com (mail-vk1-f171.google.com [209.85.221.171]) (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 A2CB1839E8; Thu, 7 Mar 2024 10:06:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709805968; cv=none; b=Ly7b3OIt5i/avo6fsMg/za0tuE4X4CU9dk5YcaFxKk/6x6OddtXjQKq4JRe065BZERs2uxAidYqoo8jMN6ZQHYkTCXa9KqMIry25ihnqjRmGU8OnLM3aay4eRq2sFM57X9va0NzymCcvW9vrvaS4Iss121TAxbRoFg/W8WN6FMg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709805968; c=relaxed/simple; bh=qfvjHQwoqdDzaovBoDzuxv7Cbdh0CpWNZMeToAZU+68=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=jZpYQFBrRdjfRgwwnWg50TcF/iY04lSZbqGnF8UebqmSePamIf4h0yczjYmDoeW3iJgo3j6QocmcxA/ghL7itKj2hxsrjFI6bNzjx66w1CX+V9qj7wlsHkHCb38iGXS6zHsY7V/i1gRR0j95/F59pHB13MP+nrgktT6eGXejm5E= 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=gHV5nH3a; arc=none smtp.client-ip=209.85.221.171 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-vk1-f171.google.com with SMTP id 71dfb90a1353d-4d37ab398dcso96361e0c.3; Thu, 07 Mar 2024 02:06:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709805965; x=1710410765; 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=+ltGQZ/KJpP2IEJRV87ZbGJjG+U5zUA6j0BQLiJ1uwI=; b=gHV5nH3afIiNa6/7OU7yqAAgKxETc1A6Movqn0eOb7PaWD6CWowqcREH4NHa/CXult k4z9YPZhRRK2At2Pu1RQYlHzcvC1TokLuETp278lXm+d98I5KVrSLpz8AKNV5YcGEl8H HPDzg9woETGVKECe6y85tIOn5RU+H1OEa49m7ajhaRo4TMfYg4quEUuvyOC5/OZLW1YT EnPW0J22eRmbynCbNaicF8RYSXoPY09ENOGURmi+IakZ5d93DCwPNXLFZbXseJyO5udU UbrXL8dYgL5/6yK7I+l+vM4flpEZftYzJ9ZPWmD0fzLOIG1rmr2GwsaAU/lfqIYPzohc +C4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709805965; x=1710410765; 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=+ltGQZ/KJpP2IEJRV87ZbGJjG+U5zUA6j0BQLiJ1uwI=; b=J9eAkSBJ3peXFsUIaZbKTNDdzBJPocUGnsxnbuLjrJ6MJdXs/9l5r75A4Y6L6g///t Y9JE838tXw8BS/d6YP6eydiXRoSC/kjpAnTo4JuzDyH4Zb3xaLedZGL5tv9OSHbbcSKF VB7/wTYGdZ19Kd32k/BAPT380E8fDF2dERE0jNLl5oRuK7lNP4HFBuPQJA8SXyWIuT0l FyCtFmwu1XZXn6Bx0ySGaFjpJlULvlsh9/5n1Gmd7RO1jgH7F8iz7td8WF4bH+At0iNZ zxTKA3fshk9HHlafuj/VodY1a7MKH1DAjtC63ObtR/0ICksDjS3dpz+fOmv2AUBA24oZ 50vQ== X-Forwarded-Encrypted: i=1; AJvYcCXKGSse4JqZ05AvNSSTIRcKFdyVn1Hrbmx4EOu95YszG3gWsSMaCYNWLt72IZa6YFE2kKI2geEm6seTxbzF25z03DdeHhA2bFSUCvgfr63aChi++mCzX3Gw3YJrNI4ARcgtMkAXPg20u7ENEsomKo9gnUwRj0/vNP7Pq45/ToMT1rZ8P+X9frwakpVPtK5gBMIHlLBplQWg+E1g67oUOf8E26/H72riDsTt X-Gm-Message-State: AOJu0YxGeyucRyayFX3U+Gog5PYAF7qvW0H68uF/i3wUXOVP/U6afNnN G48HlR6bC98OZk0y1h3IV4MDrEF7sanDYtY+TRJffEW+WxYvHMGaaRgHrnFnMuhjmaLcXnkqEbT ZuuJRDvxCyxcbxIL3twEXh8ymltU= X-Received: by 2002:ac5:c357:0:b0:4d3:345c:6a6b with SMTP id l23-20020ac5c357000000b004d3345c6a6bmr6365367vkk.16.1709805965620; Thu, 07 Mar 2024 02:06:05 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240306231007.13622-1-prabhakar.mahadev-lad.rj@bp.renesas.com> <20240306231007.13622-3-prabhakar.mahadev-lad.rj@bp.renesas.com> In-Reply-To: From: "Lad, Prabhakar" Date: Thu, 7 Mar 2024 10:04:59 +0000 Message-ID: Subject: Re: [PATCH 2/2] dt-bindings: serial: renesas,scif: Validate 'interrupts' and 'interrupt-names' To: Krzysztof Kozlowski Cc: Geert Uytterhoeven , Greg Kroah-Hartman , Jiri Slaby , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Magnus Damm , linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, devicetree@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Fabrizio Castro , Lad Prabhakar Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Krzysztof, Thank you for the review. On Thu, Mar 7, 2024 at 9:53=E2=80=AFAM Krzysztof Kozlowski wrote: > > On 07/03/2024 00:10, Prabhakar wrote: > > 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 > > configuration of interrupt-related properties across supported platform= s. > > > > Signed-off-by: Lad Prabhakar > > --- > > .../bindings/serial/renesas,scif.yaml | 117 +++++++++++++----- > > 1 file changed, 85 insertions(+), 32 deletions(-) > > > > diff --git a/Documentation/devicetree/bindings/serial/renesas,scif.yaml= b/Documentation/devicetree/bindings/serial/renesas,scif.yaml > > index af72c3420453..1a5f4568ae4f 100644 > > --- a/Documentation/devicetree/bindings/serial/renesas,scif.yaml > > +++ b/Documentation/devicetree/bindings/serial/renesas,scif.yaml > > @@ -82,38 +82,6 @@ properties: > > reg: > > maxItems: 1 > > > > - interrupts: > > Properties should be defined in top-level block with widest constraints > (min/maxItems). Your if:then: narrows them per each variant. > Agreed, I will fix that. > > - 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 > > - - description: Transmit buffer empty interrupt > > - - description: Break interrupt > > - - description: Data Ready interrupt > > - - description: Transmit End interrupt > > - > > - interrupt-names: > > - oneOf: > > - - items: > > - - const: eri > > - - const: rxi > > - - const: txi > > - - const: bri > > - - items: > > - - const: eri > > - - const: rxi > > - - const: txi > > - - const: bri > > - - const: dri > > - - const: tei > > This probably could be: > > minItems: 4 > items: > - const: eri > - const: rxi > - const: txi > - const: bri > - const: dri > - const: tei > > > - > > clocks: > > minItems: 1 > > maxItems: 4 > > @@ -173,6 +141,91 @@ allOf: > > required: > > - resets > > > > + - if: > > + properties: > > + compatible: > > + contains: > > + enum: > > + - renesas,scif-r8a7742 > > + - renesas,scif-r8a7743 > > + - renesas,scif-r8a7744 > > + - renesas,scif-r8a7745 > > + - renesas,scif-r8a77470 > > + - renesas,scif-r8a774a1 > > + - renesas,scif-r8a774b1 > > + - renesas,scif-r8a774c0 > > + - renesas,scif-r8a774e1 > > + - renesas,scif-r8a7778 > > + - renesas,scif-r8a7779 > > + - renesas,scif-r8a7790 > > + - renesas,scif-r8a7791 > > + - renesas,scif-r8a7792 > > + - renesas,scif-r8a7793 > > + - renesas,scif-r8a7794 > > + - renesas,scif-r8a7795 > > + - renesas,scif-r8a7796 > > + - renesas,scif-r8a77961 > > + - renesas,scif-r8a77965 > > + - renesas,scif-r8a77970 > > + - renesas,scif-r8a77980 > > + - renesas,scif-r8a77990 > > + - renesas,scif-r8a77995 > > + - renesas,scif-r8a779a0 > > + - renesas,scif-r8a779f0 > > + - renesas,scif-r8a779g0 > > There is no way compatibility strings express it? > I'll cut it short to below as suggested by Geert, - renesas,rcar-gen1-scif - renesas,rcar-gen2-scif - renesas,rcar-gen3-scif - renesas,rcar-gen4-scif Cheers, Prabhakar