From nobody Tue Dec 2 00:25:51 2025 Received: from mail-wr1-f46.google.com (mail-wr1-f46.google.com [209.85.221.46]) (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 0AABC32694C for ; Tue, 25 Nov 2025 15:06:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.46 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764083199; cv=none; b=aimMKbprNk/7iDdpVebpsc+CNhGhp7HMwemZk6I+EM1B5uf4SCeuPwE7KisHVzVhIcnnFuCTUQY/vLL9nA8Yuda54zm6zMSzUdSd6vliX0aIpTmX/DSiSeiujvHKd5+XOx0tu/wbbhyfHAydPOzov4ntTBxRf9fNzitW6BACR+c= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764083199; c=relaxed/simple; bh=URgCagji9ulEv/oC74kPYZAgNQrzgrocXvcqKJMHjg4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=D0qF7CHlwOk5axot7JkdhUKjf+fKvB0THq512ySK3Djsl15wK5BIeeWQg8OyWe4p2cXjaswTvYFjmzhs+BN1YNsNIa0+F99Y7ajmbLuzGmiiYIKCX7QlKWpYo7tU2C4grrI7IjLYeiTFsmsxm+kTqup/inx324Zejbqqg/OdAGE= 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=d7dlCiyZ; arc=none smtp.client-ip=209.85.221.46 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="d7dlCiyZ" Received: by mail-wr1-f46.google.com with SMTP id ffacd0b85a97d-429c4c65485so4524888f8f.0 for ; Tue, 25 Nov 2025 07:06:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1764083196; x=1764687996; 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=0jWrl686rUuseHaR2IGQNw+X391sTPqfacAQ3nSnRP8=; b=d7dlCiyZ98NzqmBaMsK2m373qTGxOtyB1pu89OAtXgH/QaINpr3Ku6OTFZk5sOnxP8 fnkH2CRhmSq4btAxGA+yF153+vX+yvbN21LTEsBwd/1+yxmQqe+8taiGwJrJZPBRhHrM f5V/LyvKs+VgmSgKlJAmm1cTKPoPRkTEJHVSnXioi9ZCYYaPTKVgmDs/aWADfF790jE+ 85k3N1L6zG3gUqRLen1r+iLtf/asN5pInF+PO2qdybyQcRTX5DRwvAmSMo4qBljlRHJH 2XxwH62DSAtbXMgXtvj3iZHIQlThdBPR4sk1sIOuQ+eqqYrsf/Zu6QdkBGK/LamnGAyE S5Sw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764083196; x=1764687996; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=0jWrl686rUuseHaR2IGQNw+X391sTPqfacAQ3nSnRP8=; b=IpCfgaOjoohiSiAPOG30QP8ASInV4bIqV6DLLN1vSGk5+VDR5ovvOgvwWX9mMtATNv sDamBLUv460jgNUP7zRujpxGztxXP4y8nXPjl7pEhM3WPDBJSCUw9C4Hk8KM2etMJZxu /H+k+heHW7PfdnkO9zP3E/YeewH8/2ANB3LCbONVAKcFz/q71w8cDB2EOqosQZQU0eF0 Icd9hYhYwUbpS6ncf13OQIaeHjE2CW9/L7IVY30IifJ4iqvpO7L8mRHWHS02JC9pGOYA VJFvwgEEA+5tnbgPDtnk3u356QudMAODAjPav57J1PPNX+QmOsrio0BRyL0fLMrlQ1CZ omTw== X-Forwarded-Encrypted: i=1; AJvYcCUus1tNNKdF+sOII6zARUQEyL7oqTExkj9Qov2SQrQDNt2iebabLa197+wxT69HV9mh+0ygTv1pM99gr/4=@vger.kernel.org X-Gm-Message-State: AOJu0YxA2xsy1Fb/TfmloZHwD/gBHiDE5Oiqd16pqRBmeY9vmV4G3c5t sMNp0+cqejOKol/EJDtGArye6IMzStT6G/s3T4IhEax0gi6OQWbYVBKA X-Gm-Gg: ASbGncuK0Lcq542qEECFFdcC2Gxu/KUC1DyOCCQP/4XP+d0qhm+gfm3CL/g9cmKYrOs 0ljn5Ba1BHAoXbi6NSfNfOKId9hfHigskTb+gAuj9dpREcfrboDBb4CSt5ZZxIYZ9OS03Jp5NMy F/RsoimtTW1IancFLnicgbylQYp8P0AGNg2pSHXV+2yUzO4Bsgf6rbN3Mj96RZ3fsQ87cncAbRX w6et1tJqxjEwIu5X3uaJsyCyX41wu7ykbkaE4ivJ6AmJGNyybjivJnfvGzT7GiA4b1SmNpBrjgO sIIXcvYLKVHHCozJqYQszt9Zy+yo8jkTYem6ublfuDqtJxDzUcErW/YBGz6IhGbSWT8FVHQgQfw 4Jip52u9oQkqrhQCCdvnhUIGp8qDByrsuQJTwQQhi5xqVh74f2RQiEotD9uuVTIBPXtWUwRiy9r fmOR52IvV7Hx2uZbIX4LZkvKSpyt2NUrYQNZqvXE9WIL+NyG6QKxRmKkX4LG90o6hjCwOoXXe6W g== X-Google-Smtp-Source: AGHT+IHpViq69JVRoMCbsi/0+Kb8UZ+bDh+cIur/3biXiiriptKoLT5nCL3lIDewhvr9osrSVyuF0Q== X-Received: by 2002:a05:6000:3104:b0:405:3028:1be2 with SMTP id ffacd0b85a97d-42cc1cd8ecamr15209763f8f.11.1764083196216; Tue, 25 Nov 2025 07:06:36 -0800 (PST) Received: from localhost.localdomain (host86-162-200-138.range86-162.btcentralplus.com. [86.162.200.138]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-42cb7fba201sm34797809f8f.32.2025.11.25.07.06.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Nov 2025 07:06:35 -0800 (PST) From: Biju X-Google-Original-From: Biju To: Greg Kroah-Hartman , Jiri Slaby , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Geert Uytterhoeven , Magnus Damm Cc: Biju Das , Wolfram Sang , Lad Prabhakar , linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, devicetree@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Biju Das , Conor Dooley Subject: [PATCH v4 01/16] dt-bindings: serial: renesas,rsci: Document RZ/G3E support Date: Tue, 25 Nov 2025 15:06:03 +0000 Message-ID: <20251125150632.299890-2-biju.das.jz@bp.renesas.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251125150632.299890-1-biju.das.jz@bp.renesas.com> References: <20251125150632.299890-1-biju.das.jz@bp.renesas.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Biju Das Add documentation for the serial communication interface (RSCI) found on the Renesas RZ/G3E (R9A09G047) SoC. The RSCI IP on this SoC is identical to that on the RZ/T2H (R9A09G077) SoC, but it has a 32-stage FIFO compared to 16 on RZ/T2H. It supports both FIFO and non-FIFO mode operation. RZ/G3E has 6 clocks(5 module clocks + 1 external clock) compared to 3 clocks (2 module clocks + 1 external clock) on RZ/T2H, and it has multiple resets. Acked-by: Conor Dooley Signed-off-by: Biju Das --- v3->v4: * Dropped separate compatible for non-FIFO mode and instead using single compatible "renesas,r9a09g047-rsci" as non-FIFO mode can be achieved by software configuration. * Renamed clock-names bus->pclk * Rearranged clock-names tclk{4, 16, 64} * Retained the tag as the changes are trivial. v2->v3: * Dropped 1st and 3rd items from clk-names and added minItems for the range. * Added minItems for clk and clk-names for RZ/T2H as the range is 2-3 * Added maxItems for clk and clk-names for RZ/G3E as the range is 5-6 * Retained the tag as it is trivial change. v1->v2: * Updated commit message * Added resets:false for non RZ/G3E SoCs. --- .../bindings/serial/renesas,rsci.yaml | 82 ++++++++++++++++--- 1 file changed, 71 insertions(+), 11 deletions(-) diff --git a/Documentation/devicetree/bindings/serial/renesas,rsci.yaml b/D= ocumentation/devicetree/bindings/serial/renesas,rsci.yaml index 6b1f827a335b..0e1367dc4aa2 100644 --- a/Documentation/devicetree/bindings/serial/renesas,rsci.yaml +++ b/Documentation/devicetree/bindings/serial/renesas,rsci.yaml @@ -10,17 +10,15 @@ maintainers: - Geert Uytterhoeven - Lad Prabhakar =20 -allOf: - - $ref: serial.yaml# - properties: compatible: oneOf: - - items: - - const: renesas,r9a09g087-rsci # RZ/N2H - - const: renesas,r9a09g077-rsci # RZ/T2H + - enum: + - renesas,r9a09g047-rsci # RZ/G3E + - renesas,r9a09g077-rsci # RZ/T2H =20 - items: + - const: renesas,r9a09g087-rsci # RZ/N2H - const: renesas,r9a09g077-rsci # RZ/T2H =20 reg: @@ -42,14 +40,36 @@ properties: =20 clocks: minItems: 2 - maxItems: 3 + maxItems: 6 =20 clock-names: - minItems: 2 + oneOf: + - items: + - const: operation + - const: bus + - const: sck # optional external clock input + + minItems: 2 + + - items: + - const: pclk + - const: tclk + - const: tclk_div4 + - const: tclk_div16 + - const: tclk_div64 + - const: sck # optional external clock input + + minItems: 5 + + resets: + items: + - description: Input for resetting the APB clock + - description: Input for resetting TCLK + + reset-names: items: - - const: operation - - const: bus - - const: sck # optional external clock input + - const: presetn + - const: tresetn =20 power-domains: maxItems: 1 @@ -62,6 +82,46 @@ required: - clock-names - power-domains =20 +allOf: + - $ref: serial.yaml# + + - if: + properties: + compatible: + contains: + const: renesas,r9a09g077-rsci + then: + properties: + clocks: + minItems: 2 + maxItems: 3 + + clock-names: + minItems: 2 + maxItems: 3 + + - if: + properties: + compatible: + contains: + const: renesas,r9a09g047-rsci + then: + properties: + clocks: + minItems: 5 + maxItems: 6 + + clock-names: + minItems: 5 + maxItems: 6 + + required: + - resets + - reset-names + else: + properties: + resets: false + unevaluatedProperties: false =20 examples: --=20 2.43.0