Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp840097lqt; Tue, 19 Mar 2024 05:45:32 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUjMaKS86j1OhprScDINxQ/p2m7hklKx2esarmBQ0ig+c4gI3M569aAPe5LV12viOfOVsifRCTZ3beS/Orcb3Xv32qRtHmQrj64bW12AQ== X-Google-Smtp-Source: AGHT+IHtQs8O7c3GEMF8XdOAUDV6r9TNg+9P3xmZGMPkpJ7OJob1t0Wxi3dzcB8988nt3t9RMRHZ X-Received: by 2002:a17:906:c14a:b0:a46:a8ba:60b3 with SMTP id dp10-20020a170906c14a00b00a46a8ba60b3mr7199972ejc.37.1710852332300; Tue, 19 Mar 2024 05:45:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710852332; cv=pass; d=google.com; s=arc-20160816; b=v+23qrhOkkKBXEbMOokCjHRZ1AlyOtmuADFAOsuxGedZJH5AYH+xgMBGZNq2if2xru xXu6O1UMjSBrNSYaJCeHedBq0dxIL1l8M7KAOBBPeY2zLnneEqb9X/9My3loPGd2VI7n IPDV9y94p7cdKjJoYEhA/0IW+8rmcDr1RY0uvkfA729z+4E+83rC9Vxu1n/5ah0uk9m1 erCVCCd/Ntsc0NfIPDuco91HJ9cRAcuotQtKh2MY2WHl4t1sl2oBM39/a7+2s+yVDh7R ZkMzFlrnUkVNHcHAn6VSt9dkIEfZHjgEWIniA1OWWLzULjQAVyggHddry6k5v/tNFbk3 6a8w== 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=6TRN0nj5y7SM6+DeA2Go5q4zExBuxT8jctOtKQOcJuY=; fh=3fRcEOG1oyPAMae4iln7FmCNWJdYYBpNlsjuDWcgvyA=; b=NGyDtkociHY5sM4F+uwevNjIUviTsy2KuLZoRacb9eFav3vp35t7N+tMYKa7Ya7rnU EEEyKkCmBQm3s8IGSQFS5JritD8VJze2MtMCAGhBx86Wd3E9k1G+tNzjazfWRGbk8uMt 3fm+y3SDfbjiiCd2BSnWtI1opHI0S3NKnmW01t1ctomItUT9+WznJB0iKbWC5tzd8LxN LH/207Y4J6FYgwy+iqicIlzEr2oWKF/DC2joI8t7Sot4nfJqF9I9hpDohtFHFHZ5ZyBt 4ZbXoiWTpHt0AEfq6HhgGjiE6FTGembW0P4os7XhGKODKCQUmLgOCRFOKmoSrbNeeRFQ ymew==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=CEcjNzpD; 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-107530-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-107530-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. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id oz40-20020a1709077da800b00a468c2be77fsi4246870ejc.495.2024.03.19.05.45.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 05:45:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-107530-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=CEcjNzpD; 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-107530-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-107530-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 D9D541F2280B for ; Tue, 19 Mar 2024 12:45:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 53D365BAE7; Tue, 19 Mar 2024 12:45:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="CEcjNzpD" Received: from mail-vk1-f170.google.com (mail-vk1-f170.google.com [209.85.221.170]) (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 E11481E4BF; Tue, 19 Mar 2024 12:45:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710852321; cv=none; b=LZQhPLjzShHu2ufKfDXx7xSQvwgYbgP4Kjce4sZ9XLJkoJyyx+pv+BIUBjZoqr7NDYvIjqkkms9FDhBPNvI1hhdWlnLFOLI+JOgLK5VyWd41kakSe273jdiktmkS480lnnCSCR5sDxQH3Mc1ht3ZrAAPizgoJPs195ztHHeC3ao= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710852321; c=relaxed/simple; bh=uWH0Ro9XG24lVXLdz6QSPi6hJo+xcnq6ND5qoTb1ScA=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=D/VH34Sc2G+jUvqUCt3ciDtKeoLjhOz9Umkvk/y9VlIqIJV5B/rp20In7+EOsYmbpE/eRaGqvfXjqDFE72JyPeDAyfVCb4EpYl513Kju/NgOV4dRAfVF/ac30HdVcXcxT5vQEYv2TPIBBLMsXpRAE9zx+q58xVh7stwC/scJSbM= 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=CEcjNzpD; arc=none smtp.client-ip=209.85.221.170 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-f170.google.com with SMTP id 71dfb90a1353d-4d43ec959f8so737075e0c.1; Tue, 19 Mar 2024 05:45:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710852319; x=1711457119; 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=6TRN0nj5y7SM6+DeA2Go5q4zExBuxT8jctOtKQOcJuY=; b=CEcjNzpDuoCDvu3jojFnVFfdr5Udc3J+HRtHHnFclA/cXX7/szS6xntCEqHFUVIwBl HHH7kZ5/wxdeV3DZt+N5sl0tMOHCtCEQbQ4WwkUuk58uj034ZMT/FURvTPjfQ6iwiQtu dCFpLzpq4T9F8aZJf8mAk95etDFln3Ef2LPEQAgPi/bHH0lDMogTWLLaJ97XuYSW8Tpx NpwyQnXa1nfxMrrqExaRCAnfKzyGspAVv5zOOocH+zxfD+Gc+ntbf/wWyzrwCuoRz5+T /vMcFsYgAC/1o9iqtLmEx0V1nB+w2mDWXxDIjI99VdS/XNQ+N+J2dzr/Ws7ihuCgge0U xc+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710852319; x=1711457119; 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=6TRN0nj5y7SM6+DeA2Go5q4zExBuxT8jctOtKQOcJuY=; b=lqH4C8/pf4du083JhtIBqeH/iCPSup/0LbmNDx/4IwSgobaWP4y3tLJvLvUJ96PX/G oDLFKvLLm0OUbS8KU0++xcfUFtxb/STadMO42raeJh+tnd85zyTUNxD1L5i+45r13JcP diRLMEzdRevlO0AiWNej70bfkyj8kNA1uy6LAvKhfAotc+fxRhdgDDXiV6gP1KtFZds2 wFa2ypb6gXi29WGeavH5Blcw7lOyciEycKv3xncwbbOXustOJ5qHdGZwrMQdnlIhei3u cnZvPDhZgHmCfqyvDPFqg1gZhfCaqNs9FZcb/IrRCZuLHL+1iysmLVwujXhjlIDOyNJw lEoA== X-Forwarded-Encrypted: i=1; AJvYcCXeDCMeySLJkdl0brAjQnI4tkzmBJ8TcZGyIUX+alKDi4oUaIhA339fmFCiF8iuJzPPLNkOMTyDYI9BvHYWwhsQdc3LRxJB7dbEW5J6LtcDKSzBKGNKe7O9fNK8wNJBy9LIv6LgbWmP/7ZmmXVSrAV7q/tEzunnqjBHJpviB35qqgRJ1VuFnxRfSAa9nlXpHJJor4Xmld5B/gXX4UpnQRz6pJKLfK1gJvFy X-Gm-Message-State: AOJu0YxlO3teRAl7dj3Kcv+50BSIN7YPF6471RD/pIYIE1skW+8GgpLq cHdOJ4f2gLRLEahPTp2KQ6+ScZ4mT2G5pzm61/WcAWG/xmzs9osMK0eLOAjnmusMLeMI/dNabL9 bb0EkbE5gQyGP/j2CEWfuJtkFcFM= X-Received: by 2002:a05:6122:690:b0:4c0:9ec7:b324 with SMTP id n16-20020a056122069000b004c09ec7b324mr10279107vkq.0.1710852318689; Tue, 19 Mar 2024 05:45:18 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240318172102.45549-1-prabhakar.mahadev-lad.rj@bp.renesas.com> <20240318172102.45549-3-prabhakar.mahadev-lad.rj@bp.renesas.com> <010e4742-438f-413f-811f-a033ec104832@linaro.org> In-Reply-To: <010e4742-438f-413f-811f-a033ec104832@linaro.org> From: "Lad, Prabhakar" Date: Tue, 19 Mar 2024 12:43:53 +0000 Message-ID: Subject: Re: [PATCH v3 2/4] 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, devicetree@vger.kernel.org, linux-serial@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, On Tue, Mar 19, 2024 at 6:22=E2=80=AFAM Krzysztof Kozlowski wrote: > > On 19/03/2024 07:19, Krzysztof Kozlowski wrote: > > On 18/03/2024 18:21, Prabhakar wrote: > >> From: Lad Prabhakar > >> > >> Add support to validate the 'interrupts' and 'interrupt-names' propert= ies > >> for every supported SoC. This ensures proper handling and configuratio= n of > >> interrupt-related properties across supported platforms. > >> > >> Signed-off-by: Lad Prabhakar > >> --- > >> v2->v3 > >> - Listed interrupts and interrupt-names for every SoC in if check > >> --- > >> .../bindings/serial/renesas,scif.yaml | 95 ++++++++++++------= - > >> 1 file changed, 63 insertions(+), 32 deletions(-) > >> > >> diff --git a/Documentation/devicetree/bindings/serial/renesas,scif.yam= l b/Documentation/devicetree/bindings/serial/renesas,scif.yaml > >> index af72c3420453..53f18e9810fd 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: > > > > I don't understand what is happening with this patchset. Interrupts mus= t > > stay here. Where did you receive any different feedback? > > Look how it is done: > https://elixir.bootlin.com/linux/v6.8/source/Documentation/devicetree/bin= dings/ufs/qcom,ufs.yaml#L44 > Thanks for the pointer, as the above binding doesn't have any description items as compared to our case, to clarify I have updated the binding is below. Is this the correct approach? option #1 --------------- interrupts: minItems: 1 maxItems: 6 interrupt-names: minItems: 4 maxItems: 6 - if: properties: compatible: contains: enum: - renesas,rcar-gen1-scif - renesas,rcar-gen2-scif - renesas,rcar-gen3-scif - renesas,rcar-gen4-scif then: properties: interrupts: items: - description: Single combined interrupt interrupt-names: false - if: properties: compatible: contains: const: renesas,scif-r7s72100 then: properties: interrupts: items: - description: Error interrupt - description: Receive buffer full interrupt - description: Transmit buffer empty interrupt - description: Break interrupt interrupt-names: items: - const: eri - const: rxi - const: txi - const: bri - if: properties: compatible: contains: enum: - renesas,scif-r7s9210 - renesas,scif-r9a07g044 then: properties: interrupts: 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: items: - const: eri - const: rxi - const: txi - const: bri - const: dri - const: tei Cheers, Prabhakar