Merge tag 'renesas-riscv-dt-for-v6.2-tag1' of git://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-devel into soc/dt

Renesas RISC-V DT updates for v6.2

  - Add initial support for the Renesas RZ/Five SoC and the Renesas
    RZ/Five SMARC EVK development board.

* tag 'renesas-riscv-dt-for-v6.2-tag1' of git://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-devel:
  riscv: dts: renesas: rzfive-smarc: Enable CANFD/I2C
  riscv: dts: renesas: r9a07g043f/rzfive-smarc-som: Enable ADC/OPP/Thermal Zones/TSU
  MAINTAINERS: Add entry for Renesas RISC-V
  riscv: dts: renesas: Add minimal DTS for Renesas RZ/Five SMARC EVK
  riscv: dts: renesas: Add initial devicetree for Renesas RZ/Five SoC

Link: https://lore.kernel.org/r/cover.1668788930.git.geert+renesas@glider.be
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
This commit is contained in:
Arnd Bergmann 2022-11-21 11:53:45 +01:00
commit 2092ad3a79
No known key found for this signature in database
GPG Key ID: 9A6C79EFE60018D9
7 changed files with 202 additions and 1 deletions

View File

@ -2694,7 +2694,7 @@ F: arch/arm/boot/dts/rtd*
F: arch/arm/mach-realtek/
F: arch/arm64/boot/dts/realtek/
ARM/RENESAS ARCHITECTURE
ARM/RISC-V/RENESAS ARCHITECTURE
M: Geert Uytterhoeven <geert+renesas@glider.be>
M: Magnus Damm <magnus.damm@gmail.com>
L: linux-renesas-soc@vger.kernel.org
@ -2715,6 +2715,7 @@ F: arch/arm/configs/shmobile_defconfig
F: arch/arm/include/debug/renesas-scif.S
F: arch/arm/mach-shmobile/
F: arch/arm64/boot/dts/renesas/
F: arch/riscv/boot/dts/renesas/
F: drivers/soc/renesas/
F: include/linux/soc/renesas/

View File

@ -3,5 +3,6 @@ subdir-y += sifive
subdir-y += starfive
subdir-$(CONFIG_SOC_CANAAN_K210_DTB_BUILTIN) += canaan
subdir-y += microchip
subdir-y += renesas
obj-$(CONFIG_BUILTIN_DTB) := $(addsuffix /, $(subdir-y))

View File

@ -0,0 +1,2 @@
# SPDX-License-Identifier: GPL-2.0
dtb-$(CONFIG_ARCH_R9A07G043) += r9a07g043f01-smarc.dtb

View File

@ -0,0 +1,59 @@
// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
/*
* Device Tree Source for the RZ/Five SoC
*
* Copyright (C) 2022 Renesas Electronics Corp.
*/
#include <dt-bindings/interrupt-controller/irq.h>
#define SOC_PERIPHERAL_IRQ(nr) (nr + 32)
#include <arm64/renesas/r9a07g043.dtsi>
/ {
cpus {
#address-cells = <1>;
#size-cells = <0>;
timebase-frequency = <12000000>;
cpu0: cpu@0 {
compatible = "andestech,ax45mp", "riscv";
device_type = "cpu";
#cooling-cells = <2>;
reg = <0x0>;
status = "okay";
riscv,isa = "rv64imafdc";
mmu-type = "riscv,sv39";
i-cache-size = <0x8000>;
i-cache-line-size = <0x40>;
d-cache-size = <0x8000>;
d-cache-line-size = <0x40>;
clocks = <&cpg CPG_CORE R9A07G043_CLK_I>;
operating-points-v2 = <&cluster0_opp>;
cpu0_intc: interrupt-controller {
#interrupt-cells = <1>;
compatible = "riscv,cpu-intc";
interrupt-controller;
};
};
};
};
&soc {
interrupt-parent = <&plic>;
plic: interrupt-controller@12c00000 {
compatible = "renesas,r9a07g043-plic", "andestech,nceplic100";
#interrupt-cells = <2>;
#address-cells = <0>;
riscv,ndev = <511>;
interrupt-controller;
reg = <0x0 0x12c00000 0 0x400000>;
clocks = <&cpg CPG_MOD R9A07G043_NCEPLIC_ACLK>;
power-domains = <&cpg>;
resets = <&cpg R9A07G043_NCEPLIC_ARESETN>;
interrupts-extended = <&cpu0_intc 11 &cpu0_intc 9>;
};
};

View File

@ -0,0 +1,27 @@
// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
/*
* Device Tree Source for the RZ/Five SMARC EVK
*
* Copyright (C) 2022 Renesas Electronics Corp.
*/
/dts-v1/;
/*
* DIP-Switch SW1 setting
* 1 : High; 0: Low
* SW1-2 : SW_SD0_DEV_SEL (0: uSD; 1: eMMC)
* SW1-3 : SW_ET0_EN_N (0: ETHER0; 1: CAN0, CAN1, SSI1, RSPI1)
* Please change below macros according to SW1 setting on the SoM
*/
#define SW_SW0_DEV_SEL 1
#define SW_ET0_EN_N 1
#include "r9a07g043f.dtsi"
#include "rzfive-smarc-som.dtsi"
#include "rzfive-smarc.dtsi"
/ {
model = "Renesas SMARC EVK based on r9a07g043f01";
compatible = "renesas,smarc-evk", "renesas,r9a07g043f01", "renesas,r9a07g043";
};

View File

@ -0,0 +1,47 @@
// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
/*
* Device Tree Source for the RZ/Five SMARC EVK SOM
*
* Copyright (C) 2022 Renesas Electronics Corp.
*/
#include <arm64/renesas/rzg2ul-smarc-som.dtsi>
/ {
aliases {
/delete-property/ ethernet0;
/delete-property/ ethernet1;
};
chosen {
bootargs = "ignore_loglevel";
};
};
&dmac {
status = "disabled";
};
&eth0 {
status = "disabled";
};
&eth1 {
status = "disabled";
};
&ostm1 {
status = "disabled";
};
&ostm2 {
status = "disabled";
};
&sdhi0 {
status = "disabled";
};
&wdt0 {
status = "disabled";
};

View File

@ -0,0 +1,64 @@
// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
/*
* Device Tree Source for the RZ/Five SMARC EVK carrier board
*
* Copyright (C) 2022 Renesas Electronics Corp.
*/
#include <arm64/renesas/rzg2ul-smarc.dtsi>
&ehci0 {
status = "disabled";
};
&ehci1 {
status = "disabled";
};
&hsusb {
status = "disabled";
};
&ohci0 {
status = "disabled";
};
&ohci1 {
status = "disabled";
};
&phyrst {
status = "disabled";
};
&sdhi1 {
status = "disabled";
};
&snd_rzg2l {
status = "disabled";
};
&spi1 {
status = "disabled";
};
&ssi1 {
status = "disabled";
};
&usb0_vbus_otg {
status = "disabled";
};
&usb2_phy0 {
status = "disabled";
};
&usb2_phy1 {
status = "disabled";
};
&vccq_sdhi1 {
status = "disabled";
};