Device Tree and Device Drivers

Device Tree and Device Drivers

This page contains helpful notes about Device Tree configurations and Device Driver details.

Table of Contents

BSP Manual Set

Documentation for the Linux Device Drivers contained in the Renesas BSP releases are released in a package called the "BSP Manual Set".

Use the links below for the SoC that you are using.

RZ Evaluation Board Device Tree Files

  • Device Tree files for Renesas SoC and evaluation boards are under the directory arch/arm64/boot/dts/renesas/

  • Below is the list of Device Tree files used for the Renesas Evaluation boards.

  • Because the evaluation kits share common boards, and have many different test/demo configurations, there are many include files (.dtsi) for any single device tree (.dts) build. For your custom board, you might only need your Device Tree for your board (my_board.dst) and that will only #include one other file which will be the base SoC file (RZ/G2H for example will #include "r8a774e1.dtsi").

  • RZ board names that end in "-dev" are internal Renesas boards. While their Device Trees files appear in the BSP, they are not mainlined.

If you want to see a list of which peripheral nodes are set in each dtsi file, you can use this "dts_parser" tool below. For example, you want to find all the the .dtsi files that configure the i2c channels because you are looking for examples.

 

RZ/G3 Series

File Description r9a09g047.dtsi RZ/G3E Device Tree containing all peripherals. r9a09g047e57-smarc.dts Top level Device Tree r9a09g047e57-smarc.dts └─rzg3e-smarc-common.dtsi │ ├─r9a09g047.dtsi │ ├─rzg3e-smarc-som.dtsi │ └─rzg3e-smarc.dtsi ├─rzg3e-smarc-lvds.dtsi └─rzg3e-smarc-rgb.dtsi
File Description r9a08g045.dtsi RZ/G3S Device Tree containing all peripherals. r9a08g045s33.dtsi RZ/G3S Device Tree containing all peripherals. Includes PCIe. r9a08g045s33-smarc.dts Top level Device Tree r9a08g045s33-smarc.dts ├─r9a08g045s33.dtsi │ └─r9a08g045.dtsi ├─rzg3s-smarc-som.dtsi └─rzg3s-smarc.dtsi

 

RZ/G2 Series

File Description r8a774e1.dtsi RZ/G2H Device Tree containing all peripherals   r8a774e1-hihope-rzg2h.dts Main board only r8a774e1-hihope-rzg2h.dts ├─r8a774e1.dtsi └─hihope-rev4.dtsi └─hihope-common.dtsi r8a774e1-hihope-rzg2h-ex.dts Main board + Sub board r8a774e1-hihope-rzg2h-ex.dts ├─r8a774e1-hihope-rzg2h.dts │ ├─r8a774e1.dtsi │ └─hihope-rev4.dtsi │ └─hihope-common.dtsi └─hihope-rzg2-ex.dtsi r8a774e1-hihope-rzg2h-ex-idk-1110wr.dts Main board + Sub board + LVDS panel r8a774e1-hihope-rzg2h-ex-idk-1110wr.dts ├─r8a774e1-hihope-rzg2h-ex.dts │ ├─r8a774e1-hihope-rzg2h.dts │ │ ├─r8a774e1.dtsi │ │ └─hihope-rev4.dtsi │ │ └─hihope-common.dtsi │ └─hihope-rzg2-ex.dtsi ├─hihope-rzg2-ex-lvds.dtsi └─rzg2-advantech-idk-1110wr-panel.dtsi r8a774e1-hihope-rzg2h-ex-mipi-2.1.dts Main board + Sub board + MIPI-CSI2 cameras r8a774e1-hihope-rzg2h-ex-mipi-2.1.dts ├─r8a774e1-hihope-rzg2h-ex.dts │ ├─r8a774e1-hihope-rzg2h.dts │ │ ├─r8a774e1.dtsi │ │ └─hihope-rev4.dtsi │ │ └─hihope-common.dtsi │ └─hihope-rzg2-ex.dtsi └─hihope-rzg2-ex-aistarvision-mipi-adapter-2.1.dtsi └─aistarvision-mipi-adapter-2.1.dtsi r8a774e1-hihope-rzg2h-ex-mipi-2.4.dts Main board + Sub board + MIPI-CSI2 cameras r8a774e1-hihope-rzg2h-ex-mipi-2.4.dts ├─r8a774e1-hihope-rzg2h-ex.dts │ ├─r8a774e1-hihope-rzg2h.dts │ │ ├─r8a774e1.dtsi │ │ └─hihope-rev4.dtsi │ │ └─hihope-common.dtsi │ └─hihope-rzg2-ex.dtsi └─hihope-rzg2-ex-aistarvision-mipi-adapter-2.4.dtsi └─aistarvision-mipi-adapter-2.4.dtsi
File Description r8a774a1.dtsi RZ/G2M Device Tree containing all peripherals r8a774a1-hihope-rzg2m.dts Main board only r8a774a1-hihope-rzg2m-ex.dts Main board + Sub board r8a774a1-hihope-rzg2m-ex-idk-1110wr.dts Main board + Sub board + LVDS panel rzg2-advantech-idk-1110wr-panel.dtsi Main board + Sub board + LVDS panel r8a774a1-hihope-rzg2m-ex-mipi-2.1.dts r8a774a1-hihope-rzg2m-ex-mipi-2.4.dts r8a774a1-hihope-rzg2m-rev2.dts r8a774a1-hihope-rzg2m-rev2-ex.dts r8a774a1-hihope-rzg2m-rev2-ex-idk-1110wr.dts r8a774a1-hihope-rzg2m-rev2-ex-mipi-2.1.dts Main board + Sub board + MIPI/CSI2 cameras r8a774a1-hihope-rzg2m-rev2-ex-mipi-2.4.dts Main board + Sub board + MIPI/CSI2 cameras r8a774a3.dtsi r8a774a3-hihope-rzg2m.dts r8a774a3-hihope-rzg2m-ex.dts r8a774a3-hihope-rzg2m-ex-idk-1110wr.dts rzg2-advantech-idk-1110wr-panel.dtsi r8a774a3-hihope-rzg2m-ex-mipi-2.1.dts Main board + Sub board + MIPI/CSI2 cameras r8a774a3-hihope-rzg2m-ex-mipi-2.4.dts Main board + Sub board + MIPI/CSI2 cameras
File Description r8a774b1.dtsi RZ/G2N Device Tree containing all peripherals r8a774b1-hihope-rzg2n.dts Main board only r8a774b1-hihope-rzg2n-ex.dts Main board + Sub board r8a774b1-hihope-rzg2n-ex-idk-1110wr.dts Main board + Sub board + LVDS panel r8a774b1-hihope-rzg2n-ex-mipi-2.1.dts Main board + Sub board + MIPI/CSI2 cameras r8a774b1-hihope-rzg2n-ex-mipi-2.4.dts Main board + Sub board + MIPI/CSI2 cameras r8a774b1-hihope-rzg2n-rev2.dts r8a774b1-hihope-rzg2n-rev2-ex.dts r8a774b1-hihope-rzg2n-rev2-ex-idk-1110wr.dts rzg2-advantech-idk-1110wr-panel.dtsi r8a774b1-hihope-rzg2n-rev2-ex-mipi-2.1.dts Main board + Sub board + MIPI/CSI2 cameras r8a774b1-hihope-rzg2n-rev2-ex-mipi-2.4.dts Main board + Sub board + MIPI/CSI2 cameras
File Description r8a774c0.dtsi RZ/G2E Device Tree containing all peripherals r8a774c0-cat874.dts Main board only r8a774c0-cat874.dts ├─r8a774c0.dtsi └─cat874-common.dtsi r8a774c0-ek874.dts Main board + Sub board r8a774c0-ek874.dts ├─r8a774c0-cat874.dts │ ├─r8a774c0.dtsi │ └─cat874-common.dtsi └─cat875.dtsi r8a774c0-ek874-idk-2121wr.dts Main board + Sub board + LVDS panel r8a774c0-ek874-mipi-2.1.dts Main board + Sub board + MIPI/CSI2 cameras r8a774c0-ek874-mipi-2.4.dts Main board + Sub board + MIPI/CSI2 cameras r8a774c0-cat874-revc.dts Main board only (older Rev C board) r8a774c0-ek874-revc.dts Main board + Sub board (older Rev C board) r8a774c0-ek874-revc-idk-2121wr.dts Main board + Sub board + LVDS panel (older Rev C board) r8a774c0-ek874-revc-mipi-2.1.dts Main board + Sub board + MIPI/CSI2 cameras (older Rev C board) r8a774c0-ek874-revc-mipi-2.4.dts Main board + Sub board + MIPI/CSI2 cameras (older Rev C board) r8a774c0-es10-cat874.dts Main board only (older Rev 1.0 board) r8a774c0-es10-ek874.dts Main board + Sub board (older Rev 1.0 board) r8a774c0-es10-ek874-idk-2121wr.dts Main board + Sub board + LVDS panel (older Rev 1.0 board) r8a774c0-es10-ek874-mipi-2.1.dts Main board + Sub board + MIPI/CSI2 cameras (older Rev 1.0 board) r8a774c0-es10-ek874-mipi-2.4.dts Main board + Sub board + MIPI/CSI2 cameras (older Rev 1.0 board
File Description r9a07g044.dtsi RZ/G2L family SoC common parts r9a07g044l.dtsi Specific to RZ/G2L (R9A07G044L) SoC r9a07g044l1.dtsi Specific to RZ/G2L (R9A07G044L single cortex A55) SoC r9a07g044l2.dtsi Specific to RZ/G2L (R9A07G044L dual cortex A55) SoC r9a07g044l2-smarc.dts Top level Device Tree Included files: r9a07g044l2-smarc.dts ├─r9a07g044l2.dtsi │ └─r9a07g044.dtsi ├─rzg2l-smarc-som.dtsi ├─rzg2l-smarc-pinfunction.dtsi ├─rz-smarc-common.dtsi └─rzg2l-smarc.dtsi
File Description r9a07g044c1.dtsi RZ/G2LC Device Tree containing all peripherals r9a07g044c2.dtsi RZ/G2LC Device Tree containing all peripherals r9a07g044c2-smarc.dts Top level Device Tree Included files: r9a07g044c2-smarc.dts ├─r9a07g044c2.dtsi │ └─r9a07g044.dtsi └─rzg2lc-smarc.dtsi ├─rzg2lc-smarc-som.dtsi ├─rzg2lc-smarc-pinfunction.dtsi └─rz-smarc-common.dtsi
File Description r9a07g043.dtsi RZ/G2UL Device Tree containing all peripherals r9a07g043u11-smarc.dts Top level Device Tree included files: r9a07g043u11-smarc.dts ├─r9a07g043.dtsi └─rzg2ul-smarc.dtsi ├─rzg2ul-smarc-som.dtsi ├─rzg2ul-smarc-pinfunction.dtsi └─rz-smarc-common.dtsi

 

RZ/V2 Series

File Description r9a09g057.dtsi RZ/V2H Device Tree containing all peripherals. r9a09g057h4-evk-ver1.dts Top level Device Tree included files: r9a09g057h4-evk-ver1.dts └─r9a09g057.dtsi
File Description r9a09g056.dtsi RZ/V2N Device Tree containing all peripherals. r9a09g056n44-evk.dts Top level Device Tree included files: r9a09g056n44-evk.dts └─r9a09g056.dtsi
File Description r9a07g054.dtsi RZ/V2L Device Tree containing all peripherals. r9a07g054l1.dtsi RZ/V2L Single Core CA55 version r9a07g054l2.dtsi RZ/V2L Dual Core CA55 version r9a07g054l2-smarc.dts Top level Device Tree included files: r9a07g054l2-smarc.dts ├─r9a07g054l2.dtsi │ └─r9a07g054.dtsi ├─rzg2l-smarc-som.dtsi ├─rzg2l-smarc-pinfunction.dtsi ├─rz-smarc-common.dtsi └─rzg2l-smarc.dtsi

 

SoC IDs

File in mainline that defines Renesas SoC IDs

 

Example of tables below:

SoC

CONFIG

.compatible =

pfc

Device Tree

Misc

SoC

CONFIG

.compatible =

pfc

Device Tree

Misc

RZ/G2H

CONFIG_ARCH_R8A774E1

"renesas,r8a774e1"

pfc-r8a7795.c

r8a774a1.dtsi

 

.

RZ/G3 Series SoC CONFIG .compatible = pfc Device Tree Misc RZ/G3S CONFIG_ARCH_R9A08G045 "renesas,r9a08g045" "renesas,r9a08g045", "renesas,r9a08g045s33" (with PCIEe) RZ/G3E CONFIG_ARCH_R9A09G047 "renesas,r9a09g047"; r9a09g047-cpg.c

.

RZ/G2 Series SoC CONFIG .compatible = pfc Device Tree Misc RZ/G2H CONFIG_ARCH_R8A774E1 "renesas,r8a774e1" pfc-r8a7795.c r8a774a1.dtsi RZ/G2M(v3.0) CONFIG_ARCH_R8A774A3 "renesas,r8a774a3" pfc-r8a7796.c r8a774a3.dtsi RZ/G2N CONFIG_ARCH_R8A774B1 "renesas,r8a774b1" pfc-r8a77965.c r8a774b1.dtsi RZ/G2E CONFIG_ARCH_R8A774C0 "renesas,r8a774c0" pfc-r8a77990.c r8a774c0.dtsi RZ/G2L CONFIG_ARCH_R9A07G044 "renesas,r9a07g044" pfc-r9a07g044l.c r9a07g044l2.dtsi RZ/G2LC CONFIG_ARCH_R9A07G044 "renesas,r9a07g044l2", "renesas,r9a07g044" pfc-r9a07g044c.c r9a07g044c1.dtsi RZ/G2UL CONFIG_ARCH_R9A07G043 "renesas,r9a07g043" r9a07g043.dtsi

.

RZ/V2 Series SoC CONFIG .compatible = pfc Device Tree Misc RZ/V2L CONFIG_ARCH_R9A07G054 "renesas,r9a07g054" pfc-r9a07g044l.c (uses G2L) r9a07g054.dtsi r9a07g054l1.dtsi (single core) r9a07g054l2.dtsi (dual core) RZ/V2H CONFIG_ARCH_R9A09G057 "renesas,r9a09g057" RZ/V2N CONFIG_ARCH_R9A09G056 "renesas,r9a09g056" RZ/V2M CONFIG_ARCH_R9A09G011 "renesas,r9a09g011" RZ/V2MA CONFIG_ARCH_R9A09G055 "renesas,r9a09g055"

.

Older Devices ---- RZ/A Series ---- RZ/A1H CONFIG_ARCH_R7S72100 .compatible = "renesas,r7s72100" RZ/A2M CONFIG_ARCH_R7S9210 .compatible = "renesas,r7s9210" ---- RZ/G1 Series ---- RZ/G1H CONFIG_ARCH_R8A7742 .compatible = "renesas,r8a7742" RZ/G1M CONFIG_ARCH_R8A7743 .compatible = "renesas,r8a7743" pfc-r8a7791.c RZ/G1N CONFIG_ARCH_R8A7744 .compatible = "renesas,r8a7744" RZ/G1E CONFIG_ARCH_R8A7745 .compatible = "renesas,r8a7745" pfc-r8a7794.c RZ/G1C CONFIG_ARCH_R8A77470 .compatible = "renesas,r8a77470" pfc-r8a77470.c ---- R-Car Gen 1 Series ---- R-Car M1A CONFIG_ARCH_R8A7778 .compatible = "renesas,r8a7778" R-Car H1 CONFIG_ARCH_R8A7779 .compatible = "renesas,r8a7779" R-Car H2 CONFIG_ARCH_R8A7790 .compatible = "renesas,r8a7790" R-Car M2W CONFIG_ARCH_R8A7791 .compatible = "renesas,r8a7791" R-Car V2H CONFIG_ARCH_R8A7792 .compatible = "renesas,r8a7792" ---- R-Car Gen 2 Series ---- R-Car M2N CONFIG_ARCH_R8A7793 .compatible = "renesas,r8a7793" R-Car E2 CONFIG_ARCH_R8A7794 .compatible = "renesas,r8a7794" R-Car H3 CONFIG_ARCH_R8A77950 .compatible = "renesas,r8a7795" R-Car H3 CONFIG_ARCH_R8A77951 .compatible = "renesas,r8a7795" ---- R-Car Gen 3 Series ---- R-Car H3 (v1) CONFIG_ARCH_R8A77950 R-Car H3 (v2+) CONFIG_ARCH_R8A77951 R-Car H3-N R-Car M3-W CONFIG_ARCH_R8A77960 .compatible = "renesas,r8a7796" R-Car M3-W+ CONFIG_ARCH_R8A77961 .compatible = "renesas,r8a77961" R-Car M3-N CONFIG_ARCH_R8A77965 .compatible = "renesas,r8a77965" R-Car V3M CONFIG_ARCH_R8A77970 .compatible = "renesas,r8a77970" R-Car V3H CONFIG_ARCH_R8A77980 .compatible = "renesas,r8a77980" R-Car E3 CONFIG_ARCH_R8A77990 .compatible = "renesas,r8a77990" R-Car D3 CONFIG_ARCH_R8A77995 .compatible = "renesas,r8a77995" ---- R-Mobile Series ---- R-Mobile APE6 CONFIG_ARCH_R8A73A4 .compatible = "renesas,r8a73a4" R-Mobile A1 CONFIG_ARCH_R8A7740 .compatible = "renesas,r8a7740" ---- SH-Mobile Series ---- SH-Mobile AG5 CONFIG_ARCH_SH73A0 .compatible = "renesas,sh73a0"