From nobody Mon Apr 13 21:02:56 2026 Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) (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 A80C138E5F6 for ; Wed, 8 Apr 2026 08:54:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775638470; cv=none; b=NS1wUS3t0EUfGYnjozgVjgVKuERvDWzG1L2p0uT7CiQ9YgB7urQp9P38VlBahgcwSgAnwxWn1n1VRnlMjeQIzXJaojPzAQRbBie5zv/9SsGTT3x8DUL+b4yqkuJbowCUwX8QKCi4gCV0kEJ+sLcyzddsbLDmSI2ELnTU2NtMB5E= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775638470; c=relaxed/simple; bh=6hgrXq69GCUKWlQaQ7SWZ6JWGUmF0JVirVlDe/CQUrc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=p1mcHyouYs0+gQyWL/ZTrxTXhkjt9yrPCQnXdGCtS4skvuZL0AvAU1lDHDZ+rx79J/YdL/sUpLKd8jcweSeq/lu4jZpUj/FlPytV5JghDT5cpkyR8+mtw9z15mMIFuNgsVYLfi4PkyRuYOwgpdz+PMb83KoymUtqTToPuMx55tg= 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=kS6PduTQ; arc=none smtp.client-ip=209.85.128.43 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="kS6PduTQ" Received: by mail-wm1-f43.google.com with SMTP id 5b1f17b1804b1-48896199cbaso54537645e9.1 for ; Wed, 08 Apr 2026 01:54:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1775638463; x=1776243263; 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=3C1NsEd8WD8aDITqUFHuUeRrOmqKY8E222OL3+PqW8U=; b=kS6PduTQTvZTSTjUWpC1yOrIO+G5oiM/JwHplJz41+KMLKe1gpVOTa/eumM8eAOyJB ePrlnta2nF9b1E6h4ArB/hdmsiFINyw2OMcHW/VNiGJ4R7aeMwWO3t3sEVQ6FDzoF7wP 3D9Z6iNf2mZ72+eywbFUNNKgtJP5aHrPCW2uHVzeLU4OIP1HUYxFwFuWj1PjaEvtGaQs S9l/HYLKjFfsigVUdaFrYHXHZs/7ExaiZX20xhLGpBUOIcZMu7QbA+hbQL6Ei2h6MRFy Di69Fj4TYh1YP9iGi2D1hzbntF7NuHm9jLEyOJSs7Nx7RCULC7SOEe4fB0BuhEAxmH7m MpLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775638463; x=1776243263; 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=3C1NsEd8WD8aDITqUFHuUeRrOmqKY8E222OL3+PqW8U=; b=O2v6QlWhi5opsisddbM3QnbKQHJITRRwSO7iDYIGGpI4Ez9HbJ6cXZj/ur4h5FJU9H XqKwN7rerKoWsWV3VIkBxGlYw+/I478ONQcoGemRzdNJzonZcmLg4C0MhrGTBu5Xoont RVhnVzR269kHEufYefwwzNarOoqpV6koKgNazD70OZ5sh5crqcwACx2T63B5jqUdKflV 9AnI0gZEwa/mffOFLdZwBR/YqenfTum5TfgJ0AOzCUTJEnTGAKT08OwVi2HKrFMseRa5 V2A8GkUU9vVLRoWrODa2x6ASZI11ocHx3KpP3P2bpeNxFFkX+M2baWXBWjfwXgGO3ZLD OCvw== X-Forwarded-Encrypted: i=1; AJvYcCUxOdCfKc0QAC+BhUOY/1xofjb5Dw7MUYA5uq/kRNltZmyHJhbfmsfrU1Ne0erTBLQTqaI9giKbuEkut28=@vger.kernel.org X-Gm-Message-State: AOJu0YxsM4zCP+Q3hhuSBNgIe+2PKRSQObjNlsSBlmd6ih8EtxunEd5/ GXFSzEGtzNcJIhXVQXlHMWcdKqhbDEn76GWqui2NB6/476dsWu2VxaLR X-Gm-Gg: AeBDiet3ZXGfu2SzSTsKRXuNj8/JdZOd9iyVbJENp4v1K8yjY0vTuz97ePvNaEs70FL llYaRtELTAYcVrrj0nRDMCeebmXju30jdoIVoPzuAdgIT7F9uiDtqJkoSY54S3EZ+w8KsiQ0WXA 3OdaYacxRyjU1ceNsmWRDVaLb8vUnkFH7CDWCAueOaxQP1tnlTjUlyFM2jruvXzHxuLi0yXWWo2 MR/sjxMZdNsTMMOiuR3u4Q/UJZJR0ByrRwLeEhX/v26j1mlGkQW94Y0RyoZCi9Qj/6gBtmBJi9q kROU3UMM1Wi94k6YjBjsQk4hrJAO56+pwoq2xuPWQeE6Ap0S4DnabeNwbjkox3DszPDtSQGTJfX OntXwpTMHsF+s19vqge8mjIvN+Yv+jbdARTCtfjo8+wbajyL3S2R8NTW0HfMAtdYjh0kTGsrcqm T/5zhlx5TE990uS3Y0UDHFqLClwDkbZu4ImDMxX1VPjTJFq94= X-Received: by 2002:a05:600c:3105:b0:485:7f02:afd5 with SMTP id 5b1f17b1804b1-4889975f7ccmr280966105e9.13.1775638462848; Wed, 08 Apr 2026 01:54:22 -0700 (PDT) Received: from localhost.localdomain ([2a00:23c4:a758:8a01:f65c:8080:131a:202]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-43d1e2c50a7sm56437678f8f.15.2026.04.08.01.54.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Apr 2026 01:54:22 -0700 (PDT) From: Biju X-Google-Original-From: Biju To: Fabrizio Castro , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Geert Uytterhoeven , Magnus Damm Cc: Biju Das , linux-spi@vger.kernel.org, linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Prabhakar Mahadev Lad , Biju Das , Krzysztof Kozlowski Subject: [PATCH v4 1/2] dt-bindings: spi: renesas,rzv2h-rspi: Document RZ/G3L SoC Date: Wed, 8 Apr 2026 09:54:14 +0100 Message-ID: <20260408085418.18770-2-biju.das.jz@bp.renesas.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260408085418.18770-1-biju.das.jz@bp.renesas.com> References: <20260408085418.18770-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 Document RSPI IP found on the RZ/G3L SoC. The RSPI IP is compatible with the RZ/V2H RSPI IP, but has 2 clocks compared to 3 on RZ/V2H. Reviewed-by: Krzysztof Kozlowski Reviewed-by: Geert Uytterhoeven Signed-off-by: Biju Das --- v3->v4: * Added a blank line before the dmas property. * Collected tags. v2->v3: * Added ordered DMA names for the dma-names property. * Dropped the tag v1->v2: * Collected tag --- .../bindings/spi/renesas,rzv2h-rspi.yaml | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/Documentation/devicetree/bindings/spi/renesas,rzv2h-rspi.yaml = b/Documentation/devicetree/bindings/spi/renesas,rzv2h-rspi.yaml index 2c9045fd51de..f40f316943ba 100644 --- a/Documentation/devicetree/bindings/spi/renesas,rzv2h-rspi.yaml +++ b/Documentation/devicetree/bindings/spi/renesas,rzv2h-rspi.yaml @@ -13,6 +13,7 @@ properties: compatible: oneOf: - enum: + - renesas,r9a08g046-rspi # RZ/G3L - renesas,r9a09g057-rspi # RZ/V2H(P) - renesas,r9a09g077-rspi # RZ/T2H - items: @@ -90,6 +91,34 @@ required: =20 allOf: - $ref: spi-controller.yaml# + - if: + properties: + compatible: + contains: + enum: + - renesas,r9a08g046-rspi + then: + properties: + clocks: + maxItems: 2 + + clock-names: + items: + - const: pclk + - const: tclk + + dmas: + maxItems: 2 + + dma-names: + items: + - const: rx + - const: tx + + required: + - resets + - reset-names + - if: properties: compatible: --=20 2.43.0 From nobody Mon Apr 13 21:02:56 2026 Received: from mail-wr1-f43.google.com (mail-wr1-f43.google.com [209.85.221.43]) (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 1B7F93ACF05 for ; Wed, 8 Apr 2026 08:54:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775638470; cv=none; b=J8IU7S+M24V1nVVWFe5T6b3r5QUfuxdTAIu5ZKyrWC8AF0xAocPpOxb+kNQZ0FBfirrjT0UvZd1gKlUiRQbNyXzqPGy2ZPIAQVWJpm+o6dngRl22LmKXZgYbjh+JCV8LpvdYFbVPH7lG4CtJSAP+TJvUtTglsw/GHAZtOQ6Zr58= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775638470; c=relaxed/simple; bh=ItXq+HAy83MrT9YuVxBtXwsKZX0gmYnvMfWPNgwL+54=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=sRYARAeKSkrTC4OJtBzKKvXY4KK2wM55h/EgFFHDE2cN/M4l349pt3ZHuidpQa4yvd5jMyeSQa21ceE3iiAW66Y6fA85k/IR76WX8hl+Tnh3+B8Yd53gM/Tof30lxWB9xx6hoS7jlKfBG+wXWb+fHegb99xh3Vt9S3tIbtknhhI= 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=eHkZq67Q; arc=none smtp.client-ip=209.85.221.43 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="eHkZq67Q" Received: by mail-wr1-f43.google.com with SMTP id ffacd0b85a97d-43b8982c2f4so3538058f8f.2 for ; Wed, 08 Apr 2026 01:54:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1775638465; x=1776243265; 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=Bdtaovd8xWj3rm7rGudho5NKYAJRSZ9GWAIfd8UFaAU=; b=eHkZq67QU3eWh1vV3hRqUE6mWy5uR9rRq/Z9WJBLL/wJnNmh2ojJQA20XDou4O85W3 B+SGpkEYtTati+4MbjYWGd4wWy/Ccy72CXaV6PZN+WJTAoC/wOgzW6asCNMaAN+iNChY pCGa3nJZdGzC4Qi1oHtbigoM3cLT0ufTdqKoeh8JHVrEdErQwX9K5n5glwR1Caf/XGRh 442GHYBuY4b69Vo+QvjJFH9Cj2pmnuD5TRMDDTidqBtY0FLHB9oSjBBrbk51MBmncB+G EhkMet4PhbzjDcYGCx5jAPg2DUGtWHNY///VeHEerV4Jl8T2smKQoUjsdSDYWSqxo/Q0 J/OA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775638465; x=1776243265; 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=Bdtaovd8xWj3rm7rGudho5NKYAJRSZ9GWAIfd8UFaAU=; b=CGdYxIZLNf52QVzmCmg84g9haEEqfIkZFBd2aSxZuLHa9k7TJ/OI9iUAWxhEovR0oa urdcdg8z6EatDD4By6A62gWG4frCcAEoZvswMXteEFx1IQQ3SZ7v9MCGs8S7omQ9M7qs s9lw7RaQ8a5iGb20vl/QexTCfaIVk8uCM6XmExgmVkA6sYuNN4qdrXh64Sy1Gq4PgXLr rBmLWAGghsogojcWQUhHjt+YBIV7Kd7v0ToGmKaXw31CqR5UGYeXVy2YQ9XbYISD9hMK /LdeNjU3ybAfsQjMrvBBDu0PmRvM/jGn8o0afYBWipwN/AkSA3Qt1ujvt6pm70CbjI6L tnOA== X-Forwarded-Encrypted: i=1; AJvYcCXKiE3KASyFx3/U4ldW7EHpr8XzezZkQf5wah4uqlNoTtMo9fbD50Jm1cdSbCflOMirzahItrOOL1xxLII=@vger.kernel.org X-Gm-Message-State: AOJu0YwSqLhpwSZp7hi3CUWQM8+UI14s7wGVGIIGkF+deeLj6ZQ6NkG/ VrmwNr3PYJzduAKBL/EfZitl6ZCfh7HYbNSHCSw8UAy9SIcezzhABIXA X-Gm-Gg: AeBDiesNLenXsBNWQHyyTG3Tb7xtx8hICstRQ6c8GYnaOuhEEuWSnl7ediJZj9Ff/4N WDndEK6byi28EL7BrKL4K1pDm3ZSDjFc80frH4jnQnS/5uEXrbe+/Q4wjQZC73KnRnIdTiPM3Te zu7DTWwsHyjf6qlKPyrqGJU/qR+wf9qDHDDKVn+CbDU2iqwiMBhwIccGXs8zgunONgk8/YsgHxv JZew5y9/aOW+bpVHFmSf/xShH3XKeOfvrnWAwLWAGnrf22mm7Y5zDh8tQS4sJqtVIP3AhBVTvvH NedZuJshVjWra7ZiAfYZAFhSxt4SXYTrezwsaquWIglg7/fSX2WQahiLDztnRNV7TjfotFCZVMZ 9GoG95MAcbHmna/BUMfk//rvnfBbxnZAi1nNynR5VtBU2DOoJrKd+0Iy38SMTIOUAYu42BHkCUX K7uFQx6/POwprOAuspHhQOY7a030vFVPqxNWaprUN1IQBKsjw= X-Received: by 2002:a5d:5847:0:b0:43c:f8b4:e58 with SMTP id ffacd0b85a97d-43d292e2a9emr30949101f8f.41.1775638464585; Wed, 08 Apr 2026 01:54:24 -0700 (PDT) Received: from localhost.localdomain ([2a00:23c4:a758:8a01:f65c:8080:131a:202]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-43d1e2c50a7sm56437678f8f.15.2026.04.08.01.54.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Apr 2026 01:54:23 -0700 (PDT) From: Biju X-Google-Original-From: Biju To: Fabrizio Castro , Mark Brown , Geert Uytterhoeven , Magnus Damm Cc: Biju Das , linux-spi@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Prabhakar Mahadev Lad , Biju Das Subject: [PATCH v4 2/2] spi: rzv2h-rspi: Add support for RZ/G3L (R9A08G046) Date: Wed, 8 Apr 2026 09:54:15 +0100 Message-ID: <20260408085418.18770-3-biju.das.jz@bp.renesas.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260408085418.18770-1-biju.das.jz@bp.renesas.com> References: <20260408085418.18770-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 support for RZ/G3L RSPI. The RZ/G3L variant requires only 2 clocks (pclk + tclk), unlike the RZ/V2H which needs 3. Reviewed-by: Geert Uytterhoeven Signed-off-by: Biju Das --- v3->v4: * No change. v2->v3: * No change. v1->v2: * Collected tag. --- drivers/spi/spi-rzv2h-rspi.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/spi/spi-rzv2h-rspi.c b/drivers/spi/spi-rzv2h-rspi.c index 23f0e92ae208..38ee09e389c9 100644 --- a/drivers/spi/spi-rzv2h-rspi.c +++ b/drivers/spi/spi-rzv2h-rspi.c @@ -811,6 +811,13 @@ static const struct rzv2h_rspi_info rzv2h_info =3D { .num_clks =3D 3, }; =20 +static const struct rzv2h_rspi_info rzg3l_info =3D { + .find_tclk_rate =3D rzv2h_rspi_find_rate_fixed, + .tclk_name =3D "tclk", + .fifo_size =3D 16, + .num_clks =3D 2, +}; + static const struct rzv2h_rspi_info rzt2h_info =3D { .find_tclk_rate =3D rzv2h_rspi_find_rate_variable, .find_pclk_rate =3D rzv2h_rspi_find_rate_fixed, @@ -820,6 +827,7 @@ static const struct rzv2h_rspi_info rzt2h_info =3D { }; =20 static const struct of_device_id rzv2h_rspi_match[] =3D { + { .compatible =3D "renesas,r9a08g046-rspi", &rzg3l_info }, { .compatible =3D "renesas,r9a09g057-rspi", &rzv2h_info }, { .compatible =3D "renesas,r9a09g077-rspi", &rzt2h_info }, { /* sentinel */ } --=20 2.43.0