Skip to content

Commit deff189

Browse files
committed
dts: renesas: rx: Add dtc node support on RX26T
Add dtc property node on RX26T dts, and ram section for dtc_vector_table on RX26T SoC for dtc support Signed-off-by: Quy Tran <[email protected]>
1 parent c161257 commit deff189

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

dts/rx/renesas/rx26t-common.dtsi

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,13 @@
5555
};
5656
};
5757

58+
dtc: rx-dtc@82400 {
59+
compatible = "renesas,rx-dtc";
60+
reg = <0x00082400 0x1c>;
61+
clocks = <&iclk MSTPA 28>;
62+
status = "okay";
63+
};
64+
5865
soc {
5966
#address-cells = <1>;
6067
#size-cells = <1>;
@@ -470,6 +477,7 @@
470477
reg = <0x8A020 0x20>;
471478
clocks = <&pclkb MSTPB 30>;
472479
channel = <1>;
480+
dtc = <&dtc>;
473481
status = "disabled";
474482

475483
uart {
@@ -486,6 +494,7 @@
486494
<&group_irq_bl0 10 1>, <&group_irq_bl0 11 1>;
487495
interrupt-names = "rxi", "txi", "tei", "eri";
488496
channel = <5>;
497+
dtc = <&dtc>;
489498
status = "disabled";
490499

491500
uart {
@@ -502,6 +511,7 @@
502511
reg = <0x8A0C0 0x20>;
503512
clocks = <&pclkb MSTPB 25>;
504513
channel = <6>;
514+
dtc = <&dtc>;
505515
status = "disabled";
506516

507517
uart {
@@ -518,6 +528,7 @@
518528
reg = <0x8B300 0x20>;
519529
clocks = <&pclkb MSTPB 4>;
520530
channel = <12>;
531+
dtc = <&dtc>;
521532
status = "disabled";
522533

523534
uart {

soc/renesas/rx/rx26t/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@ zephyr_sources(
88
)
99

1010
zephyr_linker_sources(SECTIONS ofsm.ld)
11+
zephyr_linker_sources(RAM_SECTIONS ram_sections.ld)
1112

1213
set(SOC_LINKER_SCRIPT ${ZEPHYR_BASE}/include/zephyr/arch/rx/linker.ld CACHE INTERNAL "")
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/*
2+
* Copyright (c) 2025 Renesas Electronics Corporation
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#ifdef CONFIG_RENESAS_RX_DTC
8+
SECTION_DATA_PROLOGUE(.dtc_vector_table,(NOLOAD),)
9+
{
10+
/* If DTC is used, put the DTC vector table at the start of SRAM.
11+
This avoids memory holes due to 1K alignment required by it. */
12+
*(.dtc_vector_table)
13+
} GROUP_DATA_LINK_IN(RAMABLE_REGION, RAMABLE_REGION)
14+
#endif

0 commit comments

Comments
 (0)