Skip to content

Commit 33bac2e

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 <quy.tran.pz@renesas.com>
1 parent 2e7018c commit 33bac2e

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
@@ -56,6 +56,13 @@
5656
};
5757
};
5858

59+
dtc: rx-dtc@82400 {
60+
compatible = "renesas,rx-dtc";
61+
reg = <0x00082400 0x1c>;
62+
clocks = <&iclk MSTPA 28>;
63+
status = "okay";
64+
};
65+
5966
soc {
6067
#address-cells = <1>;
6168
#size-cells = <1>;
@@ -471,6 +478,7 @@
471478
reg = <0x8A020 0x20>;
472479
clocks = <&pclkb MSTPB 30>;
473480
channel = <1>;
481+
dtc = <&dtc>;
474482
status = "disabled";
475483

476484
uart {
@@ -487,6 +495,7 @@
487495
<&group_irq_bl0 10 1>, <&group_irq_bl0 11 1>;
488496
interrupt-names = "rxi", "txi", "tei", "eri";
489497
channel = <5>;
498+
dtc = <&dtc>;
490499
status = "disabled";
491500

492501
uart {
@@ -503,6 +512,7 @@
503512
reg = <0x8A0C0 0x20>;
504513
clocks = <&pclkb MSTPB 25>;
505514
channel = <6>;
515+
dtc = <&dtc>;
506516
status = "disabled";
507517

508518
uart {
@@ -519,6 +529,7 @@
519529
reg = <0x8B300 0x20>;
520530
clocks = <&pclkb MSTPB 4>;
521531
channel = <12>;
532+
dtc = <&dtc>;
522533
status = "disabled";
523534

524535
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)