From patchwork Thu Mar 6 12:42:39 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Biju Das X-Patchwork-Id: 14004430 Received: from relmlie6.idc.renesas.com (relmlor2.renesas.com [210.160.252.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6382D2063E8; Thu, 6 Mar 2025 12:43:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.160.252.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741264994; cv=none; b=MBypvmXr3eeHcevLKOlMK4uozAgqDKz7s98lGq6jhkpDbMHZgz6kRIGeY4IqI155UuZu8zlQNSpHXoTJEe9+OZZPbMdFUqx9wZi1BE9JPu6p/4HgVYrO6T1SMDNyseqTty04G9Uh5F+hlUAloZLDR0NIjVc3Tm05MYw9U6MUyyk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741264994; c=relaxed/simple; bh=oyb6LmdeqaWnCRu082mLRVFrQiBitzG8KZHuCcsqfCE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=QpY3pPOWxYc4lSgw4CaOPOw2gcvuMRl8LGSXSVuzPsJH6uOdAMOUh/aG5XNx9Sbo5MTkqar7QWbbgapoFh/5yUPihvC8QxGkHZa7Pz4xrUz/0snPIptucIaAAhRx3HrYeJAg+24hWjYVerfWMtf9L8VKIYkCBJ6PhEX93Ppbt+0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=bp.renesas.com; spf=pass smtp.mailfrom=bp.renesas.com; arc=none smtp.client-ip=210.160.252.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=bp.renesas.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bp.renesas.com X-CSE-ConnectionGUID: /ESPcvROR9mawxxXKPVMnQ== X-CSE-MsgGUID: CoCVM9xHR06STpUH3k+I/g== Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie6.idc.renesas.com with ESMTP; 06 Mar 2025 21:43:03 +0900 Received: from localhost.localdomain (unknown [10.226.92.10]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id 2E76C4281B03; Thu, 6 Mar 2025 21:42:58 +0900 (JST) From: Biju Das To: Marc Kleine-Budde , Vincent Mailhol , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Geert Uytterhoeven , Michael Turquette , Stephen Boyd Cc: Biju Das , linux-can@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, Wolfram Sang , =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= , Prabhakar Mahadev Lad , Biju Das Subject: [PATCH v4 00/11] Add support for RZ/G3E CANFD Date: Thu, 6 Mar 2025 12:42:39 +0000 Message-ID: <20250306124256.93033-1-biju.das.jz@bp.renesas.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-renesas-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 The CAN-FD module on RZ/G3E is very similar to the one on both R-Car V4H and RZ/G2L, but differs in some hardware parameters: * No external clock, but instead has ram clock. * Support up to 6 channels. * 20 interrupts. This patch series depend upon [1] [1] https://lore.kernel.org/all/20250220094516.126598-1-biju.das.jz@bp.renesas.com/ v3->v4: * Added Rb tag from Rob for patch#2. * Added prefix RCANFD_* to enum rcar_canfd_reg_offset_id. * Added prefix RCANFD_* to enum rcar_canfd_mask_id. * Added prefix RCANFD_* to enum rcar_canfd_shift_id. v2->v3: * Collected tags. * Dropped reg_gen4() and is_gen4() by adding mask_table, shift_table, regs, ch_interface_mode and shared_can_reg variables to struct rcar_canfd_hw_info. v1->v2: * Split the series with fixes patch separately. * Added patch for Simplify rcar_canfd_probe() using of_get_available_child_by_name() as dependency patch hit on can-next. * Added Rb tag from Vincent Mailhol. * Dropped redundant comment from commit description for patch#3. Biju Das (11): dt-bindings: can: renesas,rcar-canfd: Simplify the conditional schema dt-bindings: can: renesas,rcar-canfd: Document RZ/G3E support can: rcar_canfd: Use of_get_available_child_by_name() can: rcar_canfd: Add ch_interface_mode variable to struct rcar_canfd_hw_info can: rcar_canfd: Add shared_can_regs variable to struct rcar_canfd_hw_info can: rcar_canfd: Add register mapping table to struct rcar_canfd_hw_info can: rcar_canfd: Add mask table to struct rcar_canfd_hw_info can: rcar_canfd: Add shift table to struct rcar_canfd_hw_info can: rcar_canfd: Add only_internal_clks variable to struct rcar_canfd_hw_info can: rcar_canfd: Enhance multi_channel_irqs handling can: rcar_canfd: Add RZ/G3E support .../bindings/net/can/renesas,rcar-canfd.yaml | 178 +++++++++---- drivers/net/can/rcar/rcar_canfd.c | 237 ++++++++++++++---- 2 files changed, 325 insertions(+), 90 deletions(-)