Skip to contentSkip to conversation

Add support for Renesas RZ/Five RISC-V SoC

RFC PATCH Prabhakar Mahadev Lad 1 participant 1 message Dec 21, 2023 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

Hi All,

Quoted 39 lines

-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of Lad Prabhakar via lists.cip-project.org
Sent: Wednesday, December 20, 2023 11:06 PM
To: [email protected]; Nobuhiro Iwamatsu <[email protected]>; Pavel Machek <[email protected]>
Cc: Biju Das <[email protected]>; Prabhakar Mahadev Lad <prabhakar.mahadev- [email protected]>
Subject: [cip-dev] [PATCH RFC 00/30] Add support for Renesas RZ/Five RISC-V SoC

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 which will be supported by this series:
- ADC
- AX45MP CPU
- CANFD
- CPG
- DMAC
- Ethernet
- I2C
- OSTM
- PINCTRL
- PLIC
- RSPI
- SCIF
- SDHI/eMMC
- SSIF
- SYSC
- Thermal
- USB Host/Device
- WDT

Quoted 2 lines

Apart from first two patches all the patches have been cherry picked from upstream kernel.

I missed to mention the CIP kernel version in the subject prefix. This patch series is intended v6.1-cip.

Cheers,
Prabhakar

Quoted 107 lines

Sending this series as an RFC mainly beacuse, as the kernel image is not generic to all RISC-V platforms as the HW is noncoherent.

Complete defconfig file for RZ/Five can be found at [0].

[0] https://gitlab.com/prabhakarlad/cip-
kernel-config%2F-%2Fraw%2Frzfive%2F6.1.y- cip%2Friscv%2Frenesas_defconfig&data=05%7C02%7Cprabhakar.mahadev- lad.rj%40bp.renesas.com%7C5480cc71b459408ca67b08dc01b05b94%7C53d82571da1947e49cb4625a166a4a2a%7C0%7C0% 7C638387104162652724%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXV CI6Mn0%3D%7C3000%7C%7C%7C&sdata=pGOu8cYF4I1naKC48q0muPihyt9avlwiOrOkU4T2NSE%3D&reserved=0

Cheers,
Prabhakar

Arnd Bergmann (2):
riscv: dma-mapping: only invalidate after DMA, not flush
riscv: dma-mapping: skip invalidation before bidirectional DMA

Conor Dooley (1):
riscv: dts: renesas: Clean up dtbs_check W=1 warning due to empty phy
node

Jisheng Zhang (1):
riscv: mm: mark noncoherent_supported as __ro_after_init

Lad Prabhakar (25):
arm64: dts: renesas: rzg2ul-smarc: Drop including RZ/G2UL SoM DTSI
arm64: dts: renesas: rzg2ul: Move PMOD_SCI0_EN macro to board DTS
mmc: host: Kconfig: Make MMC_SDHI_INTERNAL_DMAC config option
dependant on ARCH_RENESAS
clocksource/drivers/riscv: Get rid of clocksource_arch_init() callback
riscv: Kconfig: Enable cpufreq kconfig menu
dt-bindings: riscv: Sort the CPU core list alphabetically
dt-bindings: riscv: Add Andes AX45MP core to the list
riscv: dma-mapping: switch over to generic implementation
riscv: asm: vendorid_list: Add Andes Technology to the vendors list
riscv: errata: Add Andes alternative ports
riscv: mm: dma-noncoherent: nonstandard cache operations support
dt-bindings: cache: andestech,ax45mp-cache: Add DT binding
documentation for L2 cache controller
cache: Add L2 cache management for Andes AX45MP RISC-V core
soc: renesas: Kconfig: Select the required configs for RZ/Five SoC
riscv: Kconfig.socs: Add ARCH_RENESAS kconfig option
riscv: dts: renesas: Add initial devicetree for Renesas RZ/Five SoC
riscv: dts: renesas: Add minimal DTS for Renesas RZ/Five SMARC EVK
riscv: dts: renesas: r9a07g043f/rzfive-smarc-som: Enable
ADC/OPP/Thermal Zones/TSU
riscv: dts: renesas: rzfive-smarc: Enable CANFD/I2C
riscv: dts: renesas: rzfive-smarc-som: Enable WDT
riscv: dts: renesas: rzfive-smarc-som: Enable OSTM nodes
riscv: dts: renesas: rzfive-smarc-som: Drop PHY interrupt support for

    ETH{0,1}

riscv: dts: renesas: r9a07g043f: Add L2 cache node
riscv: dts: renesas: r9a07g043f: Add dma-noncoherent property
riscv: dts: renesas: rzfive-smarc: Enable the blocks which were
explicitly disabled

Samuel Holland (1):
clocksource/drivers/riscv: Increase the clock source rating

 .../cache/andestech,ax45mp-cache.yaml         |  81 +++++++
 .../devicetree/bindings/riscv/cpus.yaml       |  11 +-
 MAINTAINERS                                   |   7 +
 .../boot/dts/renesas/r9a07g043u11-smarc.dts   |   3 +
 arch/arm64/boot/dts/renesas/rzg2ul-smarc.dtsi |   4 -
 arch/riscv/Kconfig                            |  10 +-
 arch/riscv/Kconfig.erratas                    |  21 ++
 arch/riscv/Kconfig.socs                       |   5 +
 arch/riscv/boot/dts/Makefile                  |   1 +
 arch/riscv/boot/dts/renesas/Makefile          |   2 +
 arch/riscv/boot/dts/renesas/r9a07g043f.dtsi   |  72 ++++++
 .../boot/dts/renesas/r9a07g043f01-smarc.dts   |  27 +++
 .../boot/dts/renesas/rzfive-smarc-som.dtsi    |  24 ++
 arch/riscv/boot/dts/renesas/rzfive-smarc.dtsi |   8 +
 arch/riscv/errata/Makefile                    |   1 +
 arch/riscv/errata/andes/Makefile              |   1 +
 arch/riscv/errata/andes/errata.c              |  66 ++++++
 arch/riscv/include/asm/alternative.h          |   3 +
 arch/riscv/include/asm/dma-noncoherent.h      |  28 +++
 arch/riscv/include/asm/errata_list.h          |   5 +
 arch/riscv/include/asm/vendorid_list.h        |   1 +
 arch/riscv/kernel/alternative.c               |   5 +
 arch/riscv/kernel/time.c                      |   9 -
 arch/riscv/mm/dma-noncoherent.c               | 105 ++++++++-
 drivers/Kconfig                               |   2 +
 drivers/Makefile                              |   1 +
 drivers/cache/Kconfig                         |  11 +
 drivers/cache/Makefile                        |   3 +
 drivers/cache/ax45mp_cache.c                  | 213 ++++++++++++++++++
 drivers/clocksource/timer-riscv.c             |   7 +-
 drivers/mmc/host/Kconfig                      |   4 +-
 drivers/soc/renesas/Kconfig                   |   4 +
 32 files changed, 713 insertions(+), 32 deletions(-)  create mode 100644
Documentation/devicetree/bindings/cache/andestech,ax45mp-cache.yaml
 create mode 100644 arch/riscv/boot/dts/renesas/Makefile
 create mode 100644 arch/riscv/boot/dts/renesas/r9a07g043f.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
 create mode 100644 arch/riscv/errata/andes/Makefile  create mode 100644
arch/riscv/errata/andes/errata.c  create mode 100644 arch/riscv/include/asm/dma-noncoherent.h
 create mode 100644 drivers/cache/Kconfig  create mode 100644 drivers/cache/Makefile  create mode

100644 drivers/cache/ax45mp_cache.c

--
2.34.1