Received: by 2002:ab2:788f:0:b0:1ee:8f2e:70ae with SMTP id b15csp454471lqi; Thu, 7 Mar 2024 02:10:47 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWeApwyy+ZrXBIOTHLegBo7VDP1uPZjswTQTaNLqocXRltxC72Ol2mUJmtIYeHgqaRvhog9vU/z7VLS8eI42ogSPgsVa3CN/KP70N/nUg== X-Google-Smtp-Source: AGHT+IH6COL8OrZLhhflPr7tFu540orJaTzhfyWSeL5mYHS3hMfLJSNLYBnMXxxFcf2YvaaPnBo0 X-Received: by 2002:a92:ca48:0:b0:365:a763:e8e8 with SMTP id q8-20020a92ca48000000b00365a763e8e8mr23607587ilo.14.1709806247712; Thu, 07 Mar 2024 02:10:47 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709806247; cv=pass; d=google.com; s=arc-20160816; b=tzlB1fqg5fYnshoQ1p4CEF7tumeOGk/STR0FT/u3RqSvCIs5Vtn/d83+i32+Rwb4jb 5uerKtjc2dmRj2iIQggFxQeVM+SPorDlNPaOrCV1Vq2eTmHg47cJmgfrB+FA6XAh+c8B 9pwrNCWAGTJiC5kA57+Cf0QBcEIBtL7uoero2BEspOeFm1t/64aapCnnY+yO3XGADHGZ hkxN5sbVT4Ggf21YrZhOkZOROxRAJHxL4Lt+UXZYB0ejmq8DasRAn7ZnKmDavWH5XZvT ZJocvD9O+Whe5w88vy0l7X7RshLSdRb1wxej/RU+EscCuIkCxaBSLwIbtgUyuK7VXFTh UHjA== 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=QR8Uqmn7JuK/Fgsx24JIz7SwVeJRfKgv1wRP9GFweFE=; fh=ZOdY3L3tSFv0WiwF00vAZQsFIgb88FpGej5gOhX9/Bs=; b=W1VmW6ZQ+YHSksPlilKXpDrPsSq19K2BzLHv/NxL6uFThZ5hU9Gm5skUdAXKRxxpEu r738K+fmUBvCWSVcSWHy80IOEHbWalfg/K6b0ou1+fNisxqWdbfoF/MrSVvyHqPo90xp Mlis9uzWeVFX/Tc2r+UVHetLeu3+NJ8hkJ4yCYBa6AxDCA2ADtfPS0YMcZp1Lc3A2jcc YKwm2MPATMVqXhvBKjR73W/xdxE+8oUyeAUjVR9WL8LtazcFXc8R4WgS9BJkPkP/kV5d 0awzyGzFxaToJdYTSl+MgjpqKAgJNrZT9Ke0FNjJu6L6HoIG4isPMbirAq+DREDkWaiD LYEQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=ko0L1xpZ; 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-95306-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-95306-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. [139.178.88.99]) by mx.google.com with ESMTPS id 29-20020a63145d000000b005e438e94d35si13519583pgu.2.2024.03.07.02.10.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Mar 2024 02:10:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-95306-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=ko0L1xpZ; 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-95306-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-95306-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 5A2BB281461 for ; Thu, 7 Mar 2024 10:10:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E05F6128383; Thu, 7 Mar 2024 10:09:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ko0L1xpZ" Received: from mail-vk1-f178.google.com (mail-vk1-f178.google.com [209.85.221.178]) (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 69E3E42047; Thu, 7 Mar 2024 10:09:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709806193; cv=none; b=hX1i7Mf1ls0W+lmzYQLEc1dQbYuOT1AgaJbtUpiLga1XXvgM8MfrlXH5iiCW8leBItZn2kG2DbTr7MvscH7cZaCD30yQ6xBFI3Y9G0t7hgyn+QpCISae1ZMucEvmQnTxdAjeBdAg+SdZvfjyH1W5MfZ3xg5LIl2rdAAfyKUONr0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709806193; c=relaxed/simple; bh=Z+XySDX0I1MFB4UakJ/SQ8XJmBT0WkwC0syBLztsRw0=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=qGM9kcVzxQBJ6Rdz5PZdXwfCN9ANbAMIa1qj3MYCkKbb3fNhRDcvYsFk9fJnaCnd18St38nxNFn5wfSAyT+eOJexMRqdVsYvBeOhuBhvWuIWzTt5bIERLrGPZzIh0zm8EaqazX51RqCMezIT9bXZQSp4dKHNZiITG6DVDAbyfy8= 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=ko0L1xpZ; arc=none smtp.client-ip=209.85.221.178 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-f178.google.com with SMTP id 71dfb90a1353d-4d33b077ec9so207880e0c.0; Thu, 07 Mar 2024 02:09:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709806190; x=1710410990; 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=QR8Uqmn7JuK/Fgsx24JIz7SwVeJRfKgv1wRP9GFweFE=; b=ko0L1xpZ3s35z78cOVWDo7JNwdY7udMDkNxkhjqHqPdlTN67JKHBlu+5T5aoLLjnPY 7fZMFAZ/QYNcLcOS+qPS6/sxCQabbwRolNCquDw9VOuZ4PLEhpDRP6GI8T3CnhykiJqi dLxFVjHx4U05B659XHaJA2zlBCUePL+z94jkx+rZK+ZE+jF9vsudemvHczwf98evxkq5 WVeC92cO9xvmLT0WXCboh+R1BOmYigFnZeux3osMjH4j8KZwwbp4OsFR61DFimegQD+N KQEyO0Kifxjb1Lh66i2AcFpQvMgTMkEFfBsym+IYO36Riggp3q6As0Iqf+7pCCX358PM i77A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709806190; x=1710410990; 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=QR8Uqmn7JuK/Fgsx24JIz7SwVeJRfKgv1wRP9GFweFE=; b=uhMgKpqwaNdHtyAybnt5944P5WWjpSzFRe1T/IdoR4tJ+DOjwo/xtu4rvYn0pZRsmZ kluFTNTzWUEKzg1irrJQtNmZEDfxMRpAjdgkU7Jl5MsVnOqJDf+rQb6uZytdr6k+N6GX ikt1odITqXmMSbABNW7m4lTknoZuhpchjJYYxEe1pmbEAhiI4WlKcdVlqQBqBicBraUB QRUGKO6GENprSC8F5sXcRlr+2ilc8jlA23ec6rSYjL+jYSP3jSk2ey+Tpy32qCRquuZr 24OtMMReXi/6p/Fc+iJDktjduq1WG5vBgIPDe+CK+MAU1N40jnncURBIhJ0Q6zgt2Je3 Hm8w== X-Forwarded-Encrypted: i=1; AJvYcCULHZ+SJP7HrRe1fiEW41njmb/DI6MDFSt5GgKSIzX+jpU4RXg1HY0Ph0zX7YaT0b3KRg+TMe9zoxD6lOzuHzHxrBOQB4Q858fUv2fNVm4MXOK7sbijxIDETFBWYLqaHfBfVKq55tJ2TvgML7fW0FJqDN36zXB8HLR8oHPD1qJxEJ+eSHarWeBSCpmqyxO7T9sardDWm2e36qeO5f/Kv5Ez5XRA3Gi27vN+ X-Gm-Message-State: AOJu0Yymz5OxL1rXVW7bVS9tC4237rikxE0j1Te1vaAT37SrhBMhRkyA iKJVoZrhOhDo5vDwltiPINM5ZR18ksEjnYoygPECJNUQ68wGgkMqUciZfkEZc3benXNrA82CAo4 zkHWUoa8gt72UnuN3t+DbMaw1Sgs= X-Received: by 2002:a05:6122:c89:b0:4d3:313b:902a with SMTP id ba9-20020a0561220c8900b004d3313b902amr8280826vkb.12.1709806189809; Thu, 07 Mar 2024 02:09:49 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240305171600.328699-1-prabhakar.mahadev-lad.rj@bp.renesas.com> In-Reply-To: From: "Lad, Prabhakar" Date: Thu, 7 Mar 2024 10:08:43 +0000 Message-ID: Subject: Re: [PATCH] dt-bindings: serial: renesas,scif: Document R9A09G057 support To: Geert Uytterhoeven , Krzysztof Kozlowski Cc: Greg Kroah-Hartman , Jiri Slaby , Rob Herring , 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 Geert, On Wed, Mar 6, 2024 at 10:21=E2=80=AFAM Lad, Prabhakar wrote: > > Hi Geert, > > On Wed, Mar 6, 2024 at 10:15=E2=80=AFAM Geert Uytterhoeven wrote: > > > > Hi Prabhakar, > > > > On Wed, Mar 6, 2024 at 11:06=E2=80=AFAM Lad, Prabhakar > > wrote: > > > On Wed, Mar 6, 2024 at 9:53=E2=80=AFAM Geert Uytterhoeven wrote: > > > > On Tue, Mar 5, 2024 at 6:16=E2=80=AFPM Prabhakar wrote: > > > > > From: Lad Prabhakar > > > > > > > > > > Document support for the Serial Communication Interface with FIFO= (SCIF) > > > > > available in the Renesas RZ/V2H(P) (R9A09G057) SoC. The SCIF inte= rface in > > > > > the Renesas RZ/V2H(P) is similar to that available in the RZ/G2L > > > > > (R9A07G044) SoC, with the only difference being that the RZ/V2H(P= ) SoC has > > > > > three additional interrupts: one for Tx end/Rx ready and the othe= r two for > > > > > Rx and Tx buffer full, which are edge-triggered. > > > > > > > > > > No driver changes are required as generic compatible string > > > > > "renesas,scif-r9a07g044" will be used as a fallback on RZ/V2H(P) = SoC. > > > > > > > > If you declare SCIF on RZ/V2H compatible with SCIF on RZ/G2L, you > > > > state that the current driver works fine (but perhaps suboptimal), > > > > without adding support for the extra 3 interrupts? > > > > > > > Yes the current driver works without using the extra interrupts on th= e > > > RZ/V2H. The extra interrupts on the RZ/V2H are just sort of duplicate > > > ie > > > - Transmit End/Data Ready interrupt , for which we we have two > > > seperate interrupts already > > > - Receive buffer full interrupt (EDGE trigger), for which we already > > > have a Level triggered interrupt > > > - Transmit buffer empty interrupt (EDGE trigger), for which we alread= y > > > have a Level triggered interrupt > > > > Thanks for the confirmation! > > > > > Are you suggesting to not fallback on RZ/G2L and instead make RZ/V2H > > > an explicit one so that in future we handle these 3 extra interrupts? > > > > In light of the confirmation above, I am _not_ suggesting that. > > With the introduction of validation checks for interrupts, falling back to "renesas,scif-r9a07g044" for RZ/V2H will be difficult for validating interrupt count. - if: properties: compatible: contains: enum: - renesas,scif-r7s9210 - renesas,scif-r9a07g044 then: properties: interrupts: minItems: 6 interrupt-names: minItems: 6 With the above check RZ/V2H fall into this if block, Is there any way I can specify to match two compat strings? Cheers, Prabhakar