From patchwork Mon Mar 18 17:20:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Lad, Prabhakar" X-Patchwork-Id: 13595656 X-Patchwork-Delegate: geert@linux-m68k.org Received: from mail-wr1-f47.google.com (mail-wr1-f47.google.com [209.85.221.47]) (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 9DED255766; Mon, 18 Mar 2024 17:22:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710782556; cv=none; b=eyz29Nw17jI94Yr7L1YBzZNEplwqy5djtHEugv+JXw2tK809BcwlzE/Toz6nrhhEXgB31k/lZ01R//gBcSGFSPbBzGN8sKnwjsaiy2J93EQWnXnME1CUYydfyd1MeobR73mZoDlne0TMjYbaYfVaphsILe0h12w4IHslL+a4j9E= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710782556; c=relaxed/simple; bh=DxUeEWghL1qBvTbdce443YWKW5y5lQBBOdm0WQN/JN8=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=VxpLYhBJWhJIeRxc0fn8V5RhjNuKq4sb2A5ZajXR2tnuc0Nbq2PSgFYe0YIIwjPGmceTMMWIi7SaE0FmW7yK9XsxC+dB8yBpKdn800sOX6o7pYjbEWFddqDpr7VfsEEh88iXqVnsVjwaq0uuFp7jizWuJidmjFnjfPQjZPpvM5A= 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=cS+b/lVq; arc=none smtp.client-ip=209.85.221.47 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="cS+b/lVq" Received: by mail-wr1-f47.google.com with SMTP id ffacd0b85a97d-33ecb04e018so2438300f8f.1; Mon, 18 Mar 2024 10:22:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710782553; x=1711387353; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=xC8sglUOTL51HQEeemp8tDBYDHbm4d9oew8hHsnu7oE=; b=cS+b/lVq94+ejuanA5Lh9ci5Pc5nHWcP60bAgQcM0rj2cmWGMSmm9Yk2shkCwDVbpS P8g4cGQwAMHX/ma7k90+wD83GJla6BDCH+uoVSi0VMlsXQRX05nPGzWBG2Tju8RNOdue uqubYjTrVr5nuldohcW90jNDPLnUKhWDBnscQlfk845YdjT6XwoRBkiTK8T3twwd6SqF pcoUmH/4359vfcb7C+7SJWzbv+ebjVwU5NfMvgg9BcEVdD1IP4aaXvfiis62IrgCzCHf XNnJx66mzDNPXD+1ND+KP2PUYgRSaw9WONgrwKk/Zz9emx/hThpvHAG8FyWWrdYlQGB7 bvQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710782553; x=1711387353; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=xC8sglUOTL51HQEeemp8tDBYDHbm4d9oew8hHsnu7oE=; b=TjyCpcLT5/BAvcPWZz9HLbw35Hdlc+TT9EQ7OfZscCLWeNblg/sw2IiS8BmfDmdH0q FLywKsH8iNGkaVk93WPZT767Vl7nDjNw3ZJsM9i1ZmypZMBo/gRog+HsFjqM6NsJ5Di0 wQRlqkNhHtagqiW2PkgxXRjqrs33u8Gx736mJyZO5niyTAAzY93YVUZ5EgP64mSV777V Iyqlb6QPIr8N+Umcp5V5XuPDD4ZiBJOegB6cBJdTXtE/1LuSyJP9ifueiPahDkukqX0x td2xq6FCvMKnUctcsZuRTkS3P6bgSfJxjVsiPWEd/71/GpGzlOXpPvPDP8ihC/lGKc9f H8cg== X-Forwarded-Encrypted: i=1; AJvYcCW/NfgGS+ox2hCk35s5B7mNz2QN+haD3QGiEMJ4mIiCGlMl8dUc5xG4mmLI18tD7dfKstoib1rsxDQgfKM8VWdz8H9blN8wJqaXpNs3QEse4PyZJF5a2Z3v/fQjUcx5g/ZciowY/McihKfgtcMaONXlJMgz/9WtQtcN/96H9NZZDoPoCP5UA1n+94mh X-Gm-Message-State: AOJu0Yy5AJ6hoWi+AzFWsOMHGgfvORGFf+mJ4+DwgZizpj28UCxmzu6x S/uWT1IA39frD5Teayf5NAGC+TNGs7VYmj5Sduahx5/Xj8zdVLr8 X-Google-Smtp-Source: AGHT+IEi/ESEcC3ZCWuMqbIdTPmh+4SQ/XDFuSwTgamsydwC3SLT3KoQJ52qjUlxrNK9zRLVPGSJwQ== X-Received: by 2002:a05:6000:d01:b0:33e:9f65:3b62 with SMTP id dt1-20020a0560000d0100b0033e9f653b62mr7694967wrb.49.1710782552724; Mon, 18 Mar 2024 10:22:32 -0700 (PDT) Received: from prasmi.home ([2a00:23c8:2500:a01:c23f:76ae:8149:291]) by smtp.gmail.com with ESMTPSA id bv30-20020a0560001f1e00b0034180898569sm1140769wrb.72.2024.03.18.10.22.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Mar 2024 10:22:31 -0700 (PDT) From: Prabhakar X-Google-Original-From: Prabhakar To: Geert Uytterhoeven , Greg Kroah-Hartman , Jiri Slaby , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Magnus Damm Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-serial@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Prabhakar , Fabrizio Castro , Lad Prabhakar , Krzysztof Kozlowski Subject: [PATCH v3 1/4] dt-bindings: serial: renesas,scif: Move ref for serial.yaml at the end Date: Mon, 18 Mar 2024 17:20:59 +0000 Message-Id: <20240318172102.45549-2-prabhakar.mahadev-lad.rj@bp.renesas.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240318172102.45549-1-prabhakar.mahadev-lad.rj@bp.renesas.com> References: <20240318172102.45549-1-prabhakar.mahadev-lad.rj@bp.renesas.com> Precedence: bulk X-Mailing-List: linux-renesas-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Lad Prabhakar In preparation for adding more validation checks move the ref for 'serial.yaml' to the end and also move reset check in 'allOf' block. Signed-off-by: Lad Prabhakar Reviewed-by: Geert Uytterhoeven Reviewed-by: Krzysztof Kozlowski --- v2->v3 - no change --- .../bindings/serial/renesas,scif.yaml | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/Documentation/devicetree/bindings/serial/renesas,scif.yaml b/Documentation/devicetree/bindings/serial/renesas,scif.yaml index 4610a5bd580c..af72c3420453 100644 --- a/Documentation/devicetree/bindings/serial/renesas,scif.yaml +++ b/Documentation/devicetree/bindings/serial/renesas,scif.yaml @@ -9,9 +9,6 @@ title: Renesas Serial Communication Interface with FIFO (SCIF) maintainers: - Geert Uytterhoeven -allOf: - - $ref: serial.yaml# - properties: compatible: oneOf: @@ -160,18 +157,21 @@ required: - clock-names - power-domains -if: - properties: - compatible: - contains: - enum: - - renesas,rcar-gen2-scif - - renesas,rcar-gen3-scif - - renesas,rcar-gen4-scif - - renesas,scif-r9a07g044 -then: - required: - - resets +allOf: + - $ref: serial.yaml# + + - if: + properties: + compatible: + contains: + enum: + - renesas,rcar-gen2-scif + - renesas,rcar-gen3-scif + - renesas,rcar-gen4-scif + - renesas,scif-r9a07g044 + then: + required: + - resets unevaluatedProperties: false From patchwork Mon Mar 18 17:21:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Lad, Prabhakar" X-Patchwork-Id: 13595657 X-Patchwork-Delegate: geert@linux-m68k.org Received: from mail-wr1-f47.google.com (mail-wr1-f47.google.com [209.85.221.47]) (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 164245579B; Mon, 18 Mar 2024 17:22:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710782557; cv=none; b=UrIL5jJvFk3Lc7NSBP8sAEXbzWS9Cq5AeCaY3+0o0zYGoSMXgwN7ljPvqDUMTA5Y+Rq4mqK0nTpF+KZyIvhXzefi5w4RdnDphaI6y2X+yKudIUYL8SP1ckXehIIs1YOuYpcWA6p1PhfqioI7D1N1BgoX7vTQSY7heytbbKf+gPM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710782557; c=relaxed/simple; bh=FAcDPmSnwlJA07x2VaIi24bTmpN9XuJ8WgMtpuZ45AI=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=LkjvgEyBApH7ZmnXeKwTImG58I9+M83XG5JO8GjA25Ck4ri7HCYN05kVxjoJ6sTBFCg/yrWWpA794H5ijzKOzZgKY1+Uyy7Mb8xJV6IuUJerGKJO64YsntRl4CKjQdeen8JLWqRjQd0+mQmfu2smwbh40o74vcXnBnIBlk7X6UQ= 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=eIaPtzCu; arc=none smtp.client-ip=209.85.221.47 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="eIaPtzCu" Received: by mail-wr1-f47.google.com with SMTP id ffacd0b85a97d-3416df43cabso858252f8f.3; Mon, 18 Mar 2024 10:22:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710782554; x=1711387354; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=mAzOS4Jg9xMuNGPCFRfi3Q3UsukUay6p1+JHj01+NW4=; b=eIaPtzCuRRSklWcM7LWPapOGHCwHH841OhJfVR2KF/mXlYp00ml2ma4+IvVSxluRsW r0LsmtM7z/bkICkx2f5V80GWF21ny/9nxhc44VDf2ifkoUb8TlYiikOEHjJpG/nCl4jZ Xl/igTi4abS2G98Hcd6urCHcpkwUeWR0SkS5RVUWiFeNBR1uK8E5wJWwJStRHqw5ZZAp tk8kw+KK07j1qXLy3w13zR4R9sU3jd3ordBlbKIlvD01cq61FZ5CkKBPuPP9IDRKIcmf /ioHJr9S8VSD0sJVx5gFSoH9KJySRwGVgyoMExcyCXZqA1MGNMBn1xp3dXeFHciJfKsw JgFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710782554; x=1711387354; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=mAzOS4Jg9xMuNGPCFRfi3Q3UsukUay6p1+JHj01+NW4=; b=ov+Rs/5XZfyK00lyUzJDfAxAAtWhyB6LVtMFRmRD7I1Uf2kwdA+BQ5vBmTN7467m+D s0ma+Wwf3+X9RH7g9X7OKyxwaFhTSZskGZ2DSUoq3TMCzOCz6Y+wUtX5QNg4VCvuQc7l TaczgX5GziIgxGy3xKqIZcGvKVrHEpDemUMGe6Ii8NvHFfXcOTvGgTmEjbY/jnJ/L52u YLsyPzQhEofZbOjYtP6zJdH+D8y4ffthJopUQEi3p+X6hzlJe7ROYsPO4yiojkyrEN3n sIQa/Rd6Y3ffXvmBCfSQfV4ISYTbGCCDw/ciabMcFdwHtfFqOaj/76gwet9RKta3NeWg hKlQ== X-Forwarded-Encrypted: i=1; AJvYcCW4kvl1VQqiOZyCFNsxp+SeU5xYCMSM966Vx28zRQXlm0aAXlWRZs3pKPFpFu0rJ/GPgiiTXLspBVG4WO6mZBEkKbNK8CdFrBEkvUE+DgHbbQcNuYnwSYdx+1bKy4F+AIavAdw954DWoXnKDwHMmZv8QTOQsiWUBMJfcHFlMOtX7KrMMnmeDsmWiyNQ X-Gm-Message-State: AOJu0YxbVOpMjC1LPqr41c5hxcD/olMacPO/Gj9dWwWPm7GTMW0VeaiW DikRLHFFfQzwvXgRHzWU8h3J8sOXzAPFZeHOhIZg2WibRg4q+V8RUJSqcCAo X-Google-Smtp-Source: AGHT+IHBlekqgf8r1EBVAltwzeIiZ0jodOa0yPmzw/7zt3EWMRenT4/UGp/6dXvAAfRF++kLk3eAUA== X-Received: by 2002:a05:6000:1e8c:b0:33c:e396:b035 with SMTP id dd12-20020a0560001e8c00b0033ce396b035mr8043260wrb.69.1710782554373; Mon, 18 Mar 2024 10:22:34 -0700 (PDT) Received: from prasmi.home ([2a00:23c8:2500:a01:c23f:76ae:8149:291]) by smtp.gmail.com with ESMTPSA id bv30-20020a0560001f1e00b0034180898569sm1140769wrb.72.2024.03.18.10.22.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Mar 2024 10:22:33 -0700 (PDT) From: Prabhakar X-Google-Original-From: Prabhakar To: Geert Uytterhoeven , Greg Kroah-Hartman , Jiri Slaby , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Magnus Damm Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-serial@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Prabhakar , Fabrizio Castro , Lad Prabhakar Subject: [PATCH v3 2/4] dt-bindings: serial: renesas,scif: Validate 'interrupts' and 'interrupt-names' Date: Mon, 18 Mar 2024 17:21:00 +0000 Message-Id: <20240318172102.45549-3-prabhakar.mahadev-lad.rj@bp.renesas.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240318172102.45549-1-prabhakar.mahadev-lad.rj@bp.renesas.com> References: <20240318172102.45549-1-prabhakar.mahadev-lad.rj@bp.renesas.com> Precedence: bulk X-Mailing-List: linux-renesas-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Lad Prabhakar Add support to validate the 'interrupts' and 'interrupt-names' properties for every supported SoC. This ensures proper handling and configuration 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.yaml 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: - 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 - clocks: minItems: 1 maxItems: 4 @@ -173,6 +141,69 @@ allOf: required: - resets + - 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 + + - 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 + unevaluatedProperties: false examples: From patchwork Mon Mar 18 17:21:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Lad, Prabhakar" X-Patchwork-Id: 13595658 X-Patchwork-Delegate: geert@linux-m68k.org Received: from mail-wr1-f44.google.com (mail-wr1-f44.google.com [209.85.221.44]) (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 41F8255C36; Mon, 18 Mar 2024 17:22:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710782559; cv=none; b=WTL9b660CSgASLcwe8B1lYL6hUyTiIg4pOwsm7FTOsK62jJh50wYk9o9zxI6euBEify3kowB94SgUR9DKD4eaiaOG8jbmIEE19iaLGiAk7ieO9pGdQuwLOzW82l6gp2XL29fR+zvWxOm5g8lHGzPkasuraJegcXIhXtIwhhNExk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710782559; c=relaxed/simple; bh=kWErAwD9TJvsgos1SwxZVJeBao/DzulBMDP2w0L2Pxc=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=qju7+kBGly6oy6rrJ7Vnimze71CiE8cGWC/FQwtubvba9jSYFF8PdikseN3sX3/OYbew+dTR1wggvr3oDp+Dq+WejCVmtMuKHq1ZwCW5UhN6JFxEGh70SQ6yZCkmpdjqNf3T+TwfULxxaiWBVhbfpH38FCjj8J5wvJQQknGa0OU= 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=TYIxbsSU; arc=none smtp.client-ip=209.85.221.44 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="TYIxbsSU" Received: by mail-wr1-f44.google.com with SMTP id ffacd0b85a97d-3416df43cabso858267f8f.3; Mon, 18 Mar 2024 10:22:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710782555; x=1711387355; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=/Gam1JdPmDvO9yXMiXtlHAHoXQ20qxsq3uvgoQxIdjc=; b=TYIxbsSUBznp2o3sbZHTBoLRi4tar6Okcs1CPIcQhayvKA76kGM9vXwk5zdlq779/S qDdsLtslxHq7BeFj4tmqym2n8cYuakUf+kUiFLdsZZ7motEmQu7xIelFUS6wQJu+38T7 slmrg0NoaF4V5bm6zypclooKO45QPqT1gipv+Ee/ZL9lx5lURNTrtqE7CVCg9/+XM6SX L1CzgxHF9D5diYSzcqVckvSNEscwo3QAdCreVdSbHxtcdtrLcyoE0s1AS+FFtZ305ieb 12N98qnnyznnkLSE+o3LkgRma4FEF5RUBsqiVKmOifOugx11evr5//MxzfuMQARHPn9+ gFjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710782555; x=1711387355; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=/Gam1JdPmDvO9yXMiXtlHAHoXQ20qxsq3uvgoQxIdjc=; b=NFqyAoVUR3851kBB6hCE+XCKq2OzaLV4UH+84wQIeVJuEhN4mQEgHZTURA9Ak8rqRa 4msbsxIGA9I2HSEPFmQTZeY6mOFnE092gbqQGYQ0LNy69v8YJLHvAN2imQqxvI2I2lMm qtSO2cCvKEoDMF6pc2bKyuclINXIJjvzLzuDRrfIUFzWOxARO7+eIT9Vle7f93alvbyo bWWL/icHVwG5JS+upBnFF/D9I44BNWc7d6lGkt2eYC7LNBTdkn181nHgu826BfrMISKy T0hN/EYA3pBV5YpyYkzOIPc9rQ7ZednitC7fe5WRZpBFlff6brC4IVc8jjv1Qe8jxSUs rrzg== X-Forwarded-Encrypted: i=1; AJvYcCVMknO+oEj4bh4CxuGDQNXyLgXI8xHCcKRcCCeL+wMNc6pnEvn16caDDp8/d+BhyAx2g4zYzm/7aKC7tnarHeGuPc0/Munt6F0VfCBaH9icHeuSMp/wkWMSYqhQDzhngNgJNS0Zot1tm3WDt5g/C6Ka8nTcxa/29LOiOgVXAiBfX/l3NuFbvm4UBI6C X-Gm-Message-State: AOJu0Yz/bibE7n2qkn/UTgzwOqZZtR2OCTAuVcCBsCIypm+y4sWasTmO R+cahVnEFvXHIlImzlhJ8JjI9hTxQ8NQ8UTIYMKsDcIaRZF4fgqH X-Google-Smtp-Source: AGHT+IF4pWLDZ6wEBNAQ4maqH2CTIEW+vFfrfRCE9h7HA5EwMllZPx3Vzq+IkthuL+JCEiSOPGvHBg== X-Received: by 2002:adf:fdd1:0:b0:33e:78d5:848e with SMTP id i17-20020adffdd1000000b0033e78d5848emr8117277wrs.12.1710782555590; Mon, 18 Mar 2024 10:22:35 -0700 (PDT) Received: from prasmi.home ([2a00:23c8:2500:a01:c23f:76ae:8149:291]) by smtp.gmail.com with ESMTPSA id bv30-20020a0560001f1e00b0034180898569sm1140769wrb.72.2024.03.18.10.22.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Mar 2024 10:22:35 -0700 (PDT) From: Prabhakar X-Google-Original-From: Prabhakar To: Geert Uytterhoeven , Greg Kroah-Hartman , Jiri Slaby , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Magnus Damm Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-serial@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Prabhakar , Fabrizio Castro , Lad Prabhakar Subject: [PATCH v3 3/4] dt-bindings: serial: renesas,scif: Document R9A09G057 support Date: Mon, 18 Mar 2024 17:21:01 +0000 Message-Id: <20240318172102.45549-4-prabhakar.mahadev-lad.rj@bp.renesas.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240318172102.45549-1-prabhakar.mahadev-lad.rj@bp.renesas.com> References: <20240318172102.45549-1-prabhakar.mahadev-lad.rj@bp.renesas.com> Precedence: bulk X-Mailing-List: linux-renesas-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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/V2H(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. Signed-off-by: Lad Prabhakar --- v2->v3 - Added SoC specific compat string --- .../bindings/serial/renesas,scif.yaml | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/Documentation/devicetree/bindings/serial/renesas,scif.yaml b/Documentation/devicetree/bindings/serial/renesas,scif.yaml index 53f18e9810fd..e4ce13e20cd7 100644 --- a/Documentation/devicetree/bindings/serial/renesas,scif.yaml +++ b/Documentation/devicetree/bindings/serial/renesas,scif.yaml @@ -79,6 +79,8 @@ properties: - renesas,scif-r9a08g045 # RZ/G3S - const: renesas,scif-r9a07g044 # RZ/G2{L,LC} fallback + - const: renesas,scif-r9a09g057 # RZ/V2H(P) + reg: maxItems: 1 @@ -204,6 +206,37 @@ allOf: - const: dri - const: tei + - if: + properties: + compatible: + contains: + const: renesas,scif-r9a09g057 + 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 + - description: Transmit End/Data Ready interrupt + - description: Receive buffer full interrupt (EDGE trigger) + - description: Transmit buffer empty interrupt (EDGE trigger) + + interrupt-names: + items: + - const: eri + - const: rxi + - const: txi + - const: bri + - const: dri + - const: tei + - const: tei-dri + - const: rxi-edge + - const: txi-edge + unevaluatedProperties: false examples: From patchwork Mon Mar 18 17:21:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Lad, Prabhakar" X-Patchwork-Id: 13595659 X-Patchwork-Delegate: geert@linux-m68k.org Received: from mail-lf1-f41.google.com (mail-lf1-f41.google.com [209.85.167.41]) (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 171C955E7A; Mon, 18 Mar 2024 17:22:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710782560; cv=none; b=bWlaKGVfd5Oc0JYF3RsZQJNmHidSA2gWJ3r+q+VY8wLXyB0pURShZNIwDifQwzfOj7FKBCR+ypRT2TnV90B63t7WYmevuu8crZgjzPy/tLFxX4FmAu0U2LbFPwYdxU73B3dEfALwvAN2RGXqNVj3LnEsdENEjLd1Jrszn110x10= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710782560; c=relaxed/simple; bh=d9QlQ3LmOITKy+7UaQgBMxtlKEfegHfOQNyg6pP5+qQ=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=AD1pHe9ruTKTULWgs/dDrDRkjhpPwiTg5BEK7ArLscsHuwOSOEApUPuR+XX/YyJ5piU7yhqUyifKB2e+Qpr2FW6DWlyYwkl1j6gWELKvBW0BQ5guB5EE/KjrYhmf2+tzeMHfsZKybw8T7KS0Jz9sNigIRWzVyA/QXat2Vmf7Wxs= 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=TqI1GgKz; arc=none smtp.client-ip=209.85.167.41 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="TqI1GgKz" Received: by mail-lf1-f41.google.com with SMTP id 2adb3069b0e04-513d3746950so5590217e87.1; Mon, 18 Mar 2024 10:22:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710782557; x=1711387357; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=TVCv5MO0HlKhbS+d3hf8UIAQYrD8eX3xs/eYmEYQzI0=; b=TqI1GgKzTpOgGP5igxK9kP13B8ZsUrT2DMl5FD68kW6+p94TkTv3jKRi4boKU4DFh3 s289NQG7pm6VJDcTlO/3ugCmN+F8LP/9UwmRTh7w+BcY/VQ7cNXdTUtyEOXZoqT/5qmj Rk94swGzuPPsix0rYhVCV80iGJ4Kxny0ReFFl9agG7yZn7qjH1VtG+Bv8and2V0XOd0E RF6OjI6sXY2kTx/plI1uad2eVT+HE3Br4pEoRXYr8NFw1tY+4hWlIEOVbFpT2dT92isi Nsyop41T6ftI80FLN9Uc6fLodIlZMGSMnUW7Vp/DlUQuBJxN3OlWeac9O57A9LELtYuq m3OQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710782557; x=1711387357; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=TVCv5MO0HlKhbS+d3hf8UIAQYrD8eX3xs/eYmEYQzI0=; b=JDKB7n6jolUgZkb/YruzQ31kJVo0kL5+/WuoDkUxT/cQyZ6jpn9OWf/jguJMckFe3P biHbfRlxKVgcV+4bxzz17kQM9/BrxbbZJy19G/c90pdCEg41MqTY2RpaoaXHmYaFCfed jhBwAROhaxjET4ux7S+qL+n5CILFp8jh1e+nc0Au3KrEIo2k6yMXNDkXzbp5wIq3xbZI aJZDJoKGVfe3JMe1YQ+6XGFJSC/yPitqXK367hhfwJ962toCBbbWY1jfDLB/EUFcMbKH kMWTUcBVb0zTHwyDAxOSDdyvNLWifbjEzy/B30wDyk70SZIqWfc9mYUOl+M5+utSWVXQ HDVg== X-Forwarded-Encrypted: i=1; AJvYcCXW4jxtiurjd5fonss9rFB27aANlbizuEDsxCAfb8qcQHgwpe59dFdn3CwkVy1dpfzZZdQouNcR2GxpfomJ2Z6X7rluHCrmoM0mTDA1hSQd9pnw9csJcSEYdxrc+OuiLPgSqdLOPJFjsOQbDLw4oOZdJ/QMjodMq+55c2DpXtMxuMSroNPMsZvJJWy/ X-Gm-Message-State: AOJu0Yxk0AxMjJLN6owUYMogWHvg5cWZjxzHMobuvziM1HyHj/VH7aG6 G4Gpca/30I9xK0jLnhP5JBNNuwfLByo/uwn9iQmvzf+S3R2bnr+e X-Google-Smtp-Source: AGHT+IFLZD9aDd6er/E29kcIwyxVtdJbv+F4efOZQg0CdYfzysDvkBTztnDCZ5XsxpnjJfQxIrwuZQ== X-Received: by 2002:ac2:498e:0:b0:513:ca99:5908 with SMTP id f14-20020ac2498e000000b00513ca995908mr8625770lfl.26.1710782556915; Mon, 18 Mar 2024 10:22:36 -0700 (PDT) Received: from prasmi.home ([2a00:23c8:2500:a01:c23f:76ae:8149:291]) by smtp.gmail.com with ESMTPSA id bv30-20020a0560001f1e00b0034180898569sm1140769wrb.72.2024.03.18.10.22.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Mar 2024 10:22:36 -0700 (PDT) From: Prabhakar X-Google-Original-From: Prabhakar To: Geert Uytterhoeven , Greg Kroah-Hartman , Jiri Slaby , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Magnus Damm Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-serial@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Prabhakar , Fabrizio Castro , Lad Prabhakar Subject: [PATCH v3 4/4] serial: sh-sci: Add support for RZ/V2H(P) SoC Date: Mon, 18 Mar 2024 17:21:02 +0000 Message-Id: <20240318172102.45549-5-prabhakar.mahadev-lad.rj@bp.renesas.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240318172102.45549-1-prabhakar.mahadev-lad.rj@bp.renesas.com> References: <20240318172102.45549-1-prabhakar.mahadev-lad.rj@bp.renesas.com> Precedence: bulk X-Mailing-List: linux-renesas-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Lad Prabhakar Add serial support for RZ/V2H(P) SoC with earlycon. Signed-off-by: Lad Prabhakar --- v2 - > v3 - new patch --- drivers/tty/serial/sh-sci.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/tty/serial/sh-sci.c b/drivers/tty/serial/sh-sci.c index a85e7b9a2e49..4a60d77257d6 100644 --- a/drivers/tty/serial/sh-sci.c +++ b/drivers/tty/serial/sh-sci.c @@ -290,7 +290,7 @@ static const struct sci_port_params sci_port_params[SCIx_NR_REGTYPES] = { }, /* - * The "SCIFA" that is in RZ/A2, RZ/G2L and RZ/T. + * The "SCIFA" that is in RZ/A2, RZ/G2L, RZ/T and RZ/V2H. * It looks like a normal SCIF with FIFO data, but with a * compressed address space. Also, the break out of interrupts * are different: ERI/BRI, RXI, TXI, TEI, DRI. @@ -3224,6 +3224,10 @@ static const struct of_device_id of_sci_match[] __maybe_unused = { .compatible = "renesas,scif-r9a07g044", .data = SCI_OF_DATA(PORT_SCIF, SCIx_RZ_SCIFA_REGTYPE), }, + { + .compatible = "renesas,scif-r9a09g057", + .data = SCI_OF_DATA(PORT_SCIF, SCIx_RZ_SCIFA_REGTYPE), + }, /* Family-specific types */ { .compatible = "renesas,rcar-gen1-scif", @@ -3554,6 +3558,7 @@ OF_EARLYCON_DECLARE(sci, "renesas,sci", sci_early_console_setup); OF_EARLYCON_DECLARE(scif, "renesas,scif", scif_early_console_setup); OF_EARLYCON_DECLARE(scif, "renesas,scif-r7s9210", rzscifa_early_console_setup); OF_EARLYCON_DECLARE(scif, "renesas,scif-r9a07g044", rzscifa_early_console_setup); +OF_EARLYCON_DECLARE(scif, "renesas,scif-r9a09g057", rzscifa_early_console_setup); OF_EARLYCON_DECLARE(scifa, "renesas,scifa", scifa_early_console_setup); OF_EARLYCON_DECLARE(scifb, "renesas,scifb", scifb_early_console_setup); OF_EARLYCON_DECLARE(hscif, "renesas,hscif", hscif_early_console_setup);