Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp1186122rwn; Thu, 15 Sep 2022 11:45:01 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6ggXdD0hGK6hjbYaLppysXPS302pVi9QUyFsKH0Zi9UaWFs0wegKy5xUImDf7ahX5EJwpa X-Received: by 2002:a17:906:58cb:b0:780:6019:a0dc with SMTP id e11-20020a17090658cb00b007806019a0dcmr888074ejs.502.1663267501230; Thu, 15 Sep 2022 11:45:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663267501; cv=none; d=google.com; s=arc-20160816; b=YmbZFN8gbxnxQFODfuwRjNsGCDz6HAYWp9Uu91Sf3dXIktQPl/g8k3mZgZ9I42+R1E BF2GW96ApWSzDu6FhHukq08wB//M1Fp4UkvBHV6lBiTk8GZOXy2nXezskmN8JXQmztNq 2uV9v2fYVDJbOfsk08iF/ViObo6QqdmFDhq8yA8Smj14/19szjtgn9c4lZVMoV8TGoi4 GKqvjZUWHxMDzjv+uKSDvl8Dll2CYzKOVqv7RB6vEgfwwjuksBP72zfh25gvk73kVLeV /hfD6QwijfsnlsxcNA11XaSjSUBoNMEboHJYmBM0sOzjgv4hml574OgfRvtX3nTLXLjg wk+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=leABp5dxBF86jRRL8C7lYXNCQh2iHxzm/rbyCLJ37f8=; b=FI3hNX2voCYc/YLJXJ+D3humoXZXHT+fZSQQ07bW+zvROO55it8NFDvJ3ZcV30+M0H Z8C7RnFdby1I20YT1U4dFCqxmxWfVY003iLsoMQ2SrIHuHLbC+i2c8zYv9KR2ABlge/c wPyASBcDGj3YHEvvN2NpKCIEC9tpwUF9rzZOa3mIQbkPkuhfbvJP1NXjlRxcdRStpEs1 WCyymgcdYWcrKmFnYWW229nwm1aOypZK4wHivSRPGpPSdb/4zLBxDAkcZOm2n4EyjVEA P7ANBKZqktlrHd0+N+xKpzl5LbMpvaaIqAfxsQEcKPJJF2Ai/M61GcgIZhzZTiVOio7M JH7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ZIszAlAm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m5-20020a056402430500b0044f288e02edsi137320edc.15.2022.09.15.11.44.35; Thu, 15 Sep 2022 11:45:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ZIszAlAm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229667AbiIOSR2 (ORCPT + 99 others); Thu, 15 Sep 2022 14:17:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38416 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229487AbiIOSR0 (ORCPT ); Thu, 15 Sep 2022 14:17:26 -0400 Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 84A6B80029; Thu, 15 Sep 2022 11:17:25 -0700 (PDT) Received: by mail-wr1-x429.google.com with SMTP id n10so1522784wrw.12; Thu, 15 Sep 2022 11:17:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date; bh=leABp5dxBF86jRRL8C7lYXNCQh2iHxzm/rbyCLJ37f8=; b=ZIszAlAmfuoIBxkrUf/JOjKU8aD9wJQPuOlp9udFrtnYluf3hAuavgakf0YbU/Oxo8 VI3G0kg1wYU6VgIweo2Sx18qssSpkMbm3nHhXsLBQtnXn2KcbvgMJucncJXKh0GI3PoS cuhEgth/Y8GpoGlaSKOi+9qwKWqfs4JulpjgpLzEwbc+YJPEj/8LWfsonWI3CKy/mAAe fth3DO1yhqjPHmw/ZLiQDBy3Q2e6n7ov8zayY9NMEb10PRlA+FN8/SbnrVeNliK4DpTm vz591pf9ZrKPrwtRJrUxPc+ZEuyMHQWTr7gYoFIAGtLZ8LuchI1OTmuNGdCdl+vGuwTb cSoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date; bh=leABp5dxBF86jRRL8C7lYXNCQh2iHxzm/rbyCLJ37f8=; b=rptva/bhwq3JyJFb0xQ/5hZgAxBEfVcLELlkjpN4p/qua/uE5r9qhqT7F+XXT2D7l8 QTXAjzM5IBAJAdcNtxMIBioNCueJLvk1hhGb0+Wa9gmgt9Mw5IGgiK5GUJS1jYMGCXpV bkFbD+WvROHIFnCUgChnHYNz/jnT74zYUeznCx9OOt8ww8ikEHWLFYBUkW1VQEc68rw5 tEF0gPLZrxXX/lhuHDpSi6Z/q8Yvcfh7g18HuMm3y0T/2qSgS/5yPZSWuyrF3BGNh0Rn 5ixl+U7E1MsAd/YkIKU1fyrLz88Ly5o3jUr23XPfyZHKEwd471oTgTVf/2JSKRTOk1W+ B1Aw== X-Gm-Message-State: ACrzQf1+Tgl2ISz/2HMlxb9vZj0RogQ7khKHdrpVs8fSmcquM0h0JKMX +Q6qiDMFWNTYCvEq+xP1Fxs= X-Received: by 2002:adf:edc9:0:b0:228:60de:1d4b with SMTP id v9-20020adfedc9000000b0022860de1d4bmr630578wro.306.1663265843758; Thu, 15 Sep 2022 11:17:23 -0700 (PDT) Received: from prasmi.home ([2a00:23c8:2501:c701:d411:a48b:4035:3d98]) by smtp.gmail.com with ESMTPSA id c11-20020a05600c0a4b00b003b47e8a5d22sm4243151wmq.23.2022.09.15.11.17.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Sep 2022 11:17:22 -0700 (PDT) From: Prabhakar X-Google-Original-From: Prabhakar To: Geert Uytterhoeven , Rob Herring , Krzysztof Kozlowski , Paul Walmsley , Palmer Dabbelt , Albert Ou Cc: Heiko Stuebner , Atish Patra , Conor Dooley , devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Prabhakar , Biju Das , Lad Prabhakar Subject: [PATCH v3 00/10] Add support for Renesas RZ/Five SoC Date: Thu, 15 Sep 2022 19:15:48 +0100 Message-Id: <20220915181558.354737-1-prabhakar.mahadev-lad.rj@bp.renesas.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Lad Prabhakar Hi All, The RZ/Five microprocessor includes a RISC-V CPU Core (AX45MP Single) 1.0 GHz, 16-bit DDR3L/DDR4 interface. And it also has many interfaces such as Gbit-Ether, CAN, and USB 2.0, making it ideal for applications such as entry-class social infrastructure gateway control and industrial gateway control. This patch series adds initial SoC DTSi support for Renesas RZ/Five (R9A07G043) SoC and updates the bindings for the same. Below is the list of IP blocks added in the initial SoC DTSI which can be used to boot via initramfs on RZ/Five SMARC EVK: - AX45MP CPU - CPG - PINCTRL - PLIC - SCIF0 - SYSC Useful links: ------------- [0] https://www.renesas.com/us/en/products/microcontrollers-microprocessors/rz-mpus/rzfive-risc-v-general-purpose-microprocessors-risc-v-cpu-core-andes-ax45mp-single-10-ghz-2ch-gigabit-ethernet [1] http://www.andestech.com/en/products-solutions/andescore-processors/riscv-ax45mp/ Patch series depends on: ----------------------- [0] https://patchwork.kernel.org/project/linux-renesas-soc/patch/20220914134211.199631-1-prabhakar.mahadev-lad.rj@bp.renesas.com/ [1] https://patchwork.kernel.org/project/linux-renesas-soc/cover/20220915165256.352843-1-prabhakar.mahadev-lad.rj@bp.renesas.com/ v2->v3: ------- * Re-used RZ/G2UL SMARC EVK SoM and carrier DTSI * Included RB tags * Rebased patches on -next v2: https://lore.kernel.org/all/20220815151451.23293-1-prabhakar.mahadev-lad.rj@bp.renesas.com/ v1: https://lore.kernel.org/lkml/20220726180623.1668-5-prabhakar.mahadev-lad.rj@bp.renesas.com/ Below are the logs from RZ/Five SMARC EVK: ------------------------------------------ / # uname -ra Linux (none) 6.0.0-rc5-next-20220915-00016-g0f0153102a13 #121 SMP Thu Sep 15 16:54:44 BST 2022 riscv64 GNU/Linux / # cat /proc/cpuinfo processor : 0 hart : 0 isa : rv64imafdc mmu : sv39 uarch : andestech,ax45mp mvendorid : 0x31e marchid : 0x8000000000008a45 mimpid : 0x500 / # cat /proc/interrupts CPU0 1: 0 SiFive PLIC 412 Level 1004b800.serial:rx err 2: 0 SiFive PLIC 414 Level 1004b800.serial:rx full 3: 178 SiFive PLIC 415 Level 1004b800.serial:tx empty 4: 0 SiFive PLIC 413 Level 1004b800.serial:break 5: 1879569 RISC-V INTC 5 Edge riscv-timer 6: 37 SiFive PLIC 416 Level 1004b800.serial:rx ready IPI0: 0 Rescheduling interrupts IPI1: 0 Function call interrupts IPI2: 0 CPU stop interrupts IPI3: 0 IRQ work interrupts IPI4: 0 Timer broadcast interrupts / # cat /proc/meminfo MemTotal: 882356 kB MemFree: 861740 kB MemAvailable: 859488 kB Buffers: 0 kB Cached: 1796 kB SwapCached: 0 kB Active: 0 kB Inactive: 80 kB Active(anon): 0 kB Inactive(anon): 80 kB Active(file): 0 kB Inactive(file): 0 kB Unevictable: 1796 kB Mlocked: 0 kB SwapTotal: 0 kB SwapFree: 0 kB Dirty: 0 kB Writeback: 0 kB AnonPages: 116 kB Mapped: 1136 kB Shmem: 0 kB KReclaimable: 6732 kB Slab: 11932 kB SReclaimable: 6732 kB SUnreclaim: 5200 kB KernelStack: 540 kB PageTables: 32 kB NFS_Unstable: 0 kB Bounce: 0 kB WritebackTmp: 0 kB CommitLimit: 441176 kB Committed_AS: 592 kB VmallocTotal: 67108864 kB VmallocUsed: 760 kB VmallocChunk: 0 kB Percpu: 84 kB HugePages_Total: 0 HugePages_Free: 0 HugePages_Rsvd: 0 HugePages_Surp: 0 Hugepagesize: 2048 kB Hugetlb: 0 kB / # Cheers, Prabhakar Lad Prabhakar (10): dt-bindings: soc: renesas: Move renesas.yaml from arm to soc dt-bindings: riscv: Sort the CPU core list alphabetically dt-bindings: riscv: Add Andes AX45MP core to the list dt-bindings: soc: renesas: renesas.yaml: Document Renesas RZ/Five SoC RISC-V: Kconfig.socs: Add Renesas RZ/Five SoC kconfig option riscv: dts: renesas: Add initial devicetree for Renesas RZ/Five SoC riscv: boot: dts: r9a07g043: Add placeholder nodes riscv: dts: renesas: Add minimal DTS for Renesas RZ/Five SMARC EVK MAINTAINERS: Add entry for Renesas RISC-V architecture RISC-V: configs: defconfig: Enable Renesas RZ/Five SoC .../devicetree/bindings/riscv/cpus.yaml | 11 +- .../{arm => soc/renesas}/renesas.yaml | 3 +- MAINTAINERS | 4 +- arch/riscv/Kconfig.socs | 14 + arch/riscv/boot/dts/Makefile | 1 + arch/riscv/boot/dts/renesas/Makefile | 2 + arch/riscv/boot/dts/renesas/r9a07g043.dtsi | 297 ++++++++++++++++++ .../boot/dts/renesas/r9a07g043f01-smarc.dts | 27 ++ .../boot/dts/renesas/rzfive-smarc-som.dtsi | 42 +++ arch/riscv/boot/dts/renesas/rzfive-smarc.dtsi | 56 ++++ arch/riscv/configs/defconfig | 2 + 11 files changed, 451 insertions(+), 8 deletions(-) rename Documentation/devicetree/bindings/{arm => soc/renesas}/renesas.yaml (99%) create mode 100644 arch/riscv/boot/dts/renesas/Makefile create mode 100644 arch/riscv/boot/dts/renesas/r9a07g043.dtsi create mode 100644 arch/riscv/boot/dts/renesas/r9a07g043f01-smarc.dts create mode 100644 arch/riscv/boot/dts/renesas/rzfive-smarc-som.dtsi create mode 100644 arch/riscv/boot/dts/renesas/rzfive-smarc.dtsi -- 2.25.1