Skip to content

Commit da7f461

Browse files
Hieu Nguyenkartben
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 a82a518 commit da7f461

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

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

Lines changed: 34 additions & 0 deletions
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,13 @@
4041
#clock-cells = <0>;
4142
};
4243

44+
/* External CAN clock - to be overridden by boards that provide it */
45+
can_clk: can-clk {
46+
compatible = "fixed-clock";
47+
clock-frequency = <0>;
48+
#clock-cells = <0>;
49+
};
50+
4351
soc {
4452
cpg: clock-controller@41010000 {
4553
compatible = "renesas,rz-cpg";
@@ -466,6 +474,32 @@
466474
status = "disabled";
467475
};
468476

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

0 commit comments

Comments
 (0)