Skip to content

Commit 40f26f8

Browse files
Hieu Nguyennhutnguyenkc
Hieu Nguyen
authored andcommitted
dts: renesas: Add CAN support for RZ/G3S
Add CAN nodes to Renesas RZ/G3S devicetree Signed-off-by: Hieu Nguyen <[email protected]> Signed-off-by: Nhut Nguyen <[email protected]>
1 parent 3495c6c commit 40f26f8

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

dts/arm/renesas/rz/rzg/r9a08g045.dtsi

+33
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#include <mem.h>
1010
#include <freq.h>
1111
#include <zephyr/dt-bindings/adc/adc.h>
12+
#include <zephyr/dt-bindings/clock/renesas_rzg_clock.h>
1213

1314
/ {
1415
compatible = "renesas,r9a08g045";
@@ -40,6 +41,12 @@
4041
#clock-cells = <0>;
4142
};
4243

44+
can_clk: can-clk {
45+
compatible = "fixed-clock";
46+
clock-frequency = <0>;
47+
#clock-cells = <0>;
48+
};
49+
4350
soc {
4451
cpg: clock-controller@41010000 {
4552
compatible = "renesas,rz-cpg";
@@ -466,6 +473,32 @@
466473
status = "disabled";
467474
};
468475

476+
canfd_global: canfd-global@400c0000 {
477+
compatible = "renesas,rz-canfd-global";
478+
reg = <0x400c0000 DT_SIZE_K(128)>;
479+
interrupts = <373 1>, <374 1>;
480+
interrupt-names = "g_err", "g_recc";
481+
status = "disabled";
482+
483+
canfd0: canfd0 {
484+
compatible = "renesas,rz-canfd";
485+
channel = <0>;
486+
interrupts = <375 1>, <377 1>, <379 1>;
487+
interrupt-names = "ch_rec", "ch_err", "ch_trx";
488+
status = "disabled";
489+
clocks = <&cpg RZ_CLOCK_CANFD(0)>;
490+
};
491+
492+
canfd1: canfd1 {
493+
compatible = "renesas,rz-canfd";
494+
channel = <1>;
495+
interrupts = <376 1>, <378 1>, <380 1>;
496+
interrupt-names = "ch_rec", "ch_err", "ch_trx";
497+
status = "disabled";
498+
clocks = <&cpg RZ_CLOCK_CANFD(1)>;
499+
};
500+
};
501+
469502
i2c0: i2c@40090000 {
470503
compatible = "renesas,rz-riic";
471504
channel = <0>;

0 commit comments

Comments
 (0)