|
9 | 9 | #include <mem.h>
|
10 | 10 | #include <freq.h>
|
11 | 11 | #include <zephyr/dt-bindings/adc/adc.h>
|
| 12 | +#include <zephyr/dt-bindings/clock/renesas_rzg_clock.h> |
12 | 13 |
|
13 | 14 | / {
|
14 | 15 | compatible = "renesas,r9a08g045";
|
|
40 | 41 | #clock-cells = <0>;
|
41 | 42 | };
|
42 | 43 |
|
| 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 | + |
43 | 51 | soc {
|
44 | 52 | cpg: clock-controller@41010000 {
|
45 | 53 | compatible = "renesas,rz-cpg";
|
|
466 | 474 | status = "disabled";
|
467 | 475 | };
|
468 | 476 |
|
| 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 | + |
469 | 503 | i2c0: i2c@40090000 {
|
470 | 504 | compatible = "renesas,rz-riic";
|
471 | 505 | channel = <0>;
|
|
0 commit comments