Received: by 2002:ab2:788f:0:b0:1ee:8f2e:70ae with SMTP id b15csp476222lqi; Thu, 7 Mar 2024 02:56:43 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW4lZzuYRFPsIgMBOR686WRW/pm+6e8Hye1jPsh8/uN0PkWD7D32U6Av6HqZ7hqwRw8NQskfZzWtmpOKmJLrePvZS0D2yQv3P3hAVy5eQ== X-Google-Smtp-Source: AGHT+IF4dR9Gu9OfN158wW1++kAzhIT9h8bUKwfGGpGJwaCQHihN8bfWLiiP77yMx00pmKyWevV9 X-Received: by 2002:a17:90a:2ec8:b0:29b:2eab:6bda with SMTP id h8-20020a17090a2ec800b0029b2eab6bdamr14023434pjs.35.1709809003420; Thu, 07 Mar 2024 02:56:43 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709809003; cv=pass; d=google.com; s=arc-20160816; b=i8LqlhZr65wYheRoFkMpmCFV0OcTrrij36EtoLykFgjjLmcz7NcDLcIfO7QYMnV+Il OJBfnr+JbNSGGWKnxh1fZCzD+4r477ctJe0N8Q7clkjqokAZc91IKbvCLuWnKxt59Wri k7RoCepBnoxvfJ8zmg3249uqmrIWtelH3usB+fiaeJKh4npkob3OXlPq8FxfO81Jp8qf mMNazn/02WA4+HVCpCnZHRdvFif+9kiCXdUrEijb8njoss008P0YmhMkBGd8tZbwlJuw SOj4NObp1FptkRLEWPFD+QGzG7JqnI3sexwg+16fl9tx2gXjN0uvhBjHmcR/Xv7KB0if RZYg== 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=APg0N8EtrD5ihsxq8VybDP8ajvEhmkrsMBzTGWpbS9c=; fh=PrIDVzTrkdv4DAT7//07E4RHiPDNds+KXjhiEHJ41xo=; b=Vml3zMy1w6r8cFoDCRlCdGvDBjxoQA0ErOb77Htl0rbwS9CAnsU3iRifAYDn8MCjFk mKgJdMs+mBplpik/u3E8gNumg4xy+uOjKysbiqf52wH+eaNZZ9wsz9vCQNxctKLIAEpA gJSXm8cpLBfIX0Nq/yiPei288sbODWh4QnFCAfj3gNvX4lq9FfyGiS2g+OZ0Kr8A/9L7 TxE9xfyiwT8xJWzd97NCdPQNjGVv1gLTK0wN4KnU261hwm1luWTwmJvW+bzJTkVNFMhh kLH97DB21IrVMHVSbElBU3FcHxCm9tldq2RsBxX0e/GfESflkBW+3n3hJHkOE404y2TW 6iUQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=T5fvhh+y; 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-95368-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-95368-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. [147.75.48.161]) by mx.google.com with ESMTPS id fa21-20020a17090af0d500b002997a4298ebsi1441191pjb.132.2024.03.07.02.56.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Mar 2024 02:56:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-95368-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=T5fvhh+y; 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-95368-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-95368-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 4D285B21416 for ; Thu, 7 Mar 2024 10:56:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AE4441272BB; Thu, 7 Mar 2024 10:56:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="T5fvhh+y" Received: from mail-vk1-f169.google.com (mail-vk1-f169.google.com [209.85.221.169]) (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 4B210125DC; Thu, 7 Mar 2024 10:56:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709808980; cv=none; b=rOL+BIVGuk/6YKFuhdPqSe96plhxnzXP4qEKfVcN224DXGS9v+yRPZtRjz0eBprnC6oEpP84jGq1gF/xGucrgukWXmPQgx4xLt9xEQqkz0FErSKixZZESVp2W2K1+nEoCJC0sdQ/4WqYteSeJHJ9FWKO0iBzqtszljgxrp+g8kI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709808980; c=relaxed/simple; bh=2GgQweUhzFLfzUjhti26P2U1kq5XmI/CYrNVeRbxi+g=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=DAAhpm7UpqvNKz62rNI6gxKgIx/CqLk39iqg6CIOeQ3okqVzcSRZS4LjkrEXoTZYvoWcb5bCYlZ161KZDC6Ptf2pWk2BA/FUE9BW1aVtDQd18X7TnNpRoGPoe75As5KC9CRPbeTEreHBWPXTpWjLOWvtyqjh/0EDtsKr9lfbQ0E= 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=T5fvhh+y; arc=none smtp.client-ip=209.85.221.169 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-f169.google.com with SMTP id 71dfb90a1353d-4d35b644c1bso231863e0c.3; Thu, 07 Mar 2024 02:56:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709808978; x=1710413778; 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=APg0N8EtrD5ihsxq8VybDP8ajvEhmkrsMBzTGWpbS9c=; b=T5fvhh+y8uVwaLMrEYnaOyYOT7Ua2AocIGzkBp1T1wAo1TOPuoB8LI5h6/Vv8OPyFe 1rTcuwdlrsi/Xl2ZLUZEVDiy5yd1SwiiXlj+KluYSzvjIkNIxr9qlRoN03TD8Hrr0MOI DcbAw8lHqFgDgsb92x0O9OxtnKr2sGJCYJ+ElCFtkB97Q0abi4kBS9LiT9XKHRVIpR/h ebMlkuzzdI9l6z6XFMZhgaRkmHZbBe54ANYDbqgF1XSXHWcqznKGK8LiIuewX+sKncjf gGGF4rvUZRl/ajQ9QAYB7P83kT0QQnB0ui8RRAhmZGo4dOFcQlTlqRccByAGQZHkSCVb T7DA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709808978; x=1710413778; 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=APg0N8EtrD5ihsxq8VybDP8ajvEhmkrsMBzTGWpbS9c=; b=N7xS82WdhZriDKLx6hpHopI+tGsPTLAM3yyzMzuYgbysFk+GL6jd4ihLlb/jWq907Y /BfCznTm4XdbUkkqE3bfR8ECESHhjTS0sjUB+2TkfsBIotNbLDkATkEWIC8gMfgpSzy1 Z7iPzE8xVsmchg3RgG1BKUm5D9wtNvkoLmcZ8A7jsOc3w4s3QV3pHsaw4Uk2qXoftIbp oMqj6xtyiRGVRe4u7vprNgQ1DOkkhN2S/Ayt+8LQiVNfy+5YVibZCGS3bseFyImb4Fk8 ZQP1WoJvzvBqSFyLQ0D4ogBd29gxhchuzzOCwtF/WD+gxjW9lfuQXXG3kcPA+aL1pwij VfdA== X-Forwarded-Encrypted: i=1; AJvYcCWcCpU9jaaLGTC50FSnYv2yeBU0Wi1BFleASAgEyIOnN7zlsumxpupE+EiCtHnb+ST+YgIveBAiLYrj/4HvgXJslcxQcQ2Ucj4YaajqrcGkV5wltduldExo1j6BHnINyfjXbrbFsdZX/QLUit4QTDT8vf+CjLnFOkerM56oJhkjSe1O7Uf4Uxzx4oi/5+H+DUBnp9IRt3TaWrVHrKrxi0NUMoKZDrglzCVe X-Gm-Message-State: AOJu0YwaJwfJocpTwTWYWXt0PLR5DgrpqFThCwpk8v763VTQapD2y5x5 XaEc4u7xBuLBST4LZRKVaSdx9TIw0MbT48mbgfha0nOS8uXJtGdP5a2g+qrGOLdd6PL16TPuK9Y Ig1k4w7Bhg5cTclJzDS5gK5PlB3g= X-Received: by 2002:a05:6122:200d:b0:4d3:3878:a523 with SMTP id l13-20020a056122200d00b004d33878a523mr7038781vkd.12.1709808976570; Thu, 07 Mar 2024 02:56:16 -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:55:10 +0000 Message-ID: Subject: Re: [PATCH] dt-bindings: serial: renesas,scif: Document R9A09G057 support To: Geert Uytterhoeven Cc: Krzysztof Kozlowski , 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 Thu, Mar 7, 2024 at 10:18=E2=80=AFAM Geert Uytterhoeven wrote: > > Hi Prabhakar, > > On Thu, Mar 7, 2024 at 11:09=E2=80=AFAM Lad, Prabhakar > wrote: > > On Wed, Mar 6, 2024 at 10:21=E2=80=AFAM Lad, Prabhakar > > wrote: > > > On Wed, Mar 6, 2024 at 10:15=E2=80=AFAM Geert Uytterhoeven wrote: > > > > 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 = interface 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/V= 2H(P) SoC has > > > > > > > three additional interrupts: one for Tx end/Rx ready and the = other 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, y= ou > > > > > > state that the current driver works fine (but perhaps suboptima= l), > > > > > > without adding support for the extra 3 interrupts? > > > > > > > > > > > Yes the current driver works without using the extra interrupts o= n the > > > > > RZ/V2H. The extra interrupts on the RZ/V2H are just sort of dupli= cate > > > > > ie > > > > > - Transmit End/Data Ready interrupt , for which we we have two > > > > > seperate interrupts already > > > > > - Receive buffer full interrupt (EDGE trigger), for which we alre= ady > > > > > have a Level triggered interrupt > > > > > - Transmit buffer empty interrupt (EDGE trigger), for which we al= ready > > > > > 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 interru= pts? > > > > > > > > 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? > > if r9a09g057 then ... else if r7s9210 || r9a07g044 then ...? > Thanks for the pointer (I was grepping for elif ;)). Cheers, Prabhakar