From patchwork Sat Dec 10 10:30:06 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lad Prabhakar X-Patchwork-Id: 1714385 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=opensbi-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=eIiklJ2F; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4NTkgp4nHhz2409 for ; Sat, 10 Dec 2022 21:31:01 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date:Subject:Cc:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=q46KAhu+IyTOdfw0ASGb49X/gd0G8aQyqX9oNs5uRbI=; b=eIiklJ2FleMjuW RZsfN2PMWjnsGsEiJqLJyrN6x1cc4C+pNe2dKMfoq3Np0OniMUffn7nM7aYh0Q4+ZZj/XkXMiC/IW 4vpZs+ing+Nt9BPNl7wtRPtpmD/potidhyS4IRlnCMEQ2PqyUZuhsmwLpfuCQpR4n04Baw9MfUN31 VyXtGqSO0wSEAGXny+FxtnSdSLgJZ5FEt9lS8gNyduHgZAf7ukdgL4dGDshgDi0Y3L3R4gRA2umpc X42zKQoFvyQUocxiJfwjb78C+gMQl50+aTfuRsZesFGiLmpdmbklgtKy7bbUjli2BM+rNeEjFqj8m sqjLYTRJcyhQmdvyDWzA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p3x7u-00GKRc-N8; Sat, 10 Dec 2022 10:30:38 +0000 Received: from relmlor2.renesas.com ([210.160.252.172] helo=relmlie6.idc.renesas.com) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p3x7q-00GKNX-Sb for opensbi@lists.infradead.org; Sat, 10 Dec 2022 10:30:37 +0000 X-IronPort-AV: E=Sophos;i="5.96,232,1665414000"; d="scan'208";a="145700465" Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie6.idc.renesas.com with ESMTP; 10 Dec 2022 19:30:27 +0900 Received: from localhost.localdomain (unknown [10.226.36.204]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id 6253E421B362; Sat, 10 Dec 2022 19:30:24 +0900 (JST) From: Lad Prabhakar To: Anup Patel , Atish Patra , opensbi@lists.infradead.org Cc: Bin Meng , Yu Chien Peter Lin , Andrew Jones , Biju Das , Chris Paterson , Prabhakar , Lad Prabhakar Subject: [PATCH v5 0/5] Add support for Renesas RZ/Five SoC Date: Sat, 10 Dec 2022 10:30:06 +0000 Message-Id: <20221210103011.7814-1-prabhakar.mahadev-lad.rj@bp.renesas.com> X-Mailer: git-send-email 2.17.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221210_023035_056499_293A8D17 X-CRM114-Status: GOOD ( 12.67 ) X-Spam-Score: 0.0 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hi All, This patch series adds initial support to RZ/Five (R9A07G043F) SoC (which is equipped with AX45MP AndesCore). Platform supports DT based probing. Linux support is currently being upstreamed the latest patchset can be found at [0](currently in linux-next, DT bindings can be seen here) Content analysis details: (0.0 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record X-BeenThere: opensbi@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "opensbi" Errors-To: opensbi-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Hi All, This patch series adds initial support to RZ/Five (R9A07G043F) SoC (which is equipped with AX45MP AndesCore). Platform supports DT based probing. Linux support is currently being upstreamed the latest patchset can be found at [0](currently in linux-next, DT bindings can be seen here) [0] https://patchwork.kernel.org/project/linux-renesas-soc/cover/20221028165921.94487-1-prabhakar.mahadev-lad.rj@bp.renesas.com/ - PLIC binding - https://elixir.bootlin.com/linux/latest/source/Documentation/devicetree/bindings/interrupt-controller/sifive,plic-1.0.0.yaml#L57 - PLMT and PLICSW are not used by any driver in kernel hence DT bindings for it and is used in a similar manner as compared Andes AE350 [1] [1] https://github.com/andestech/linux/commits/v6.0.y_ae350-ax45mp/Documentation/devicetree/bindings - SCIF binding - https://elixir.bootlin.com/linux/latest/source/Documentation/devicetree/bindings/serial/renesas,scif.yaml#L79 Note: - The PMA implementation is still in discussion [1] once its decided corresponding patch to OpenSBI will be added to reserve the memory nodes and vendor specific SBI EXT. - U-boot from BSP release wont work with these patches, it requires additional patches (happy to share the u-boot branch if anyone wants to test this patchset) - Patches apply on top of [2] [1] https://patchwork.kernel.org/project/linux-renesas-soc/patch/20221124172207.153718-8-prabhakar.mahadev-lad.rj@bp.renesas.com/ [2] https://patchwork.ozlabs.org/project/opensbi/cover/20221128083046.6799-1-peterlin@andestech.com/ v4->v5 * Included RB tag from Anup for patch 5/5 * Updated generic.md to include RZ/Five SoC v3->v4 * Included RB tags * Updated doc * Sorted compatible string list * Fixed minor issues related to scif driver v2->v3 * Switched to generic platform * Dropped all vendor specific SBI EXT * Fixed review comments pointed by Bin for SCIF driver * Updated doc RFC->v2 * Fixed comments pointed by Xiang W * Included RB tag from Yu Chien Peter Lin for patch #3 RFC: https://patchwork.ozlabs.org/project/opensbi/cover/20221028004042.135549-1-prabhakar.mahadev-lad.rj@bp.renesas.com/ Cheers, Prabhakar Lad Prabhakar (5): lib: utils: serial: Add Renesas SCIF driver lib: utils: serial: Add FDT driver for Renesas SCIF lib: utils/irqchip: Add compatible string for Andestech NCEPLIC100 platform: generic: Add Renesas RZ/Five initial support docs: platform: Add documentation for Renesas RZ/Five SoC docs/platform/generic.md | 2 + docs/platform/platform.md | 5 + docs/platform/renesas-rzfive.md | 160 +++++++++++++++++++++ include/sbi_utils/fdt/fdt_helper.h | 3 + include/sbi_utils/serial/renesas-scif.h | 11 ++ lib/utils/fdt/fdt_helper.c | 11 ++ lib/utils/irqchip/fdt_irqchip_plic.c | 3 +- lib/utils/serial/Kconfig | 9 ++ lib/utils/serial/fdt_serial_renesas_scif.c | 31 ++++ lib/utils/serial/objects.mk | 4 + lib/utils/serial/renesas_scif.c | 116 +++++++++++++++ platform/generic/Kconfig | 4 + platform/generic/configs/defconfig | 2 + platform/generic/renesas/rzfive/objects.mk | 8 ++ platform/generic/renesas/rzfive/rzfive.c | 17 +++ 15 files changed, 385 insertions(+), 1 deletion(-) create mode 100644 docs/platform/renesas-rzfive.md create mode 100644 include/sbi_utils/serial/renesas-scif.h create mode 100644 lib/utils/serial/fdt_serial_renesas_scif.c create mode 100644 lib/utils/serial/renesas_scif.c create mode 100644 platform/generic/renesas/rzfive/objects.mk create mode 100644 platform/generic/renesas/rzfive/rzfive.c