2024-07-18 18:41:26 +07:00
|
|
|
/*
|
2025-03-28 13:40:15 +07:00
|
|
|
* Copyright (c) 2024-2025 Renesas Electronics Corporation
|
2024-07-18 18:41:26 +07:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <arm/renesas/ra/ra6/ra6-cm4-common.dtsi>
|
|
|
|
#include <zephyr/dt-bindings/clock/ra_clock.h>
|
2024-10-21 19:08:04 +07:00
|
|
|
#include <zephyr/dt-bindings/pwm/ra_pwm.h>
|
2025-03-28 13:40:15 +07:00
|
|
|
#include <zephyr/dt-bindings/misc/renesas/ra-elc/ra6m3-elc.h>
|
2024-07-18 18:41:26 +07:00
|
|
|
|
|
|
|
/ {
|
|
|
|
soc {
|
|
|
|
sram0: memory@1ffe0000 {
|
|
|
|
compatible = "mmio-sram";
|
|
|
|
reg = <0x1ffe0000 DT_SIZE_K(640)>;
|
|
|
|
};
|
|
|
|
|
|
|
|
ioport8: gpio@40040100 {
|
|
|
|
compatible = "renesas,ra-gpio-ioport";
|
|
|
|
reg = <0x40040100 0x20>;
|
|
|
|
port = <8>;
|
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
ngpios = <16>;
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
|
|
|
ioport9: gpio@40040120 {
|
|
|
|
compatible = "renesas,ra-gpio-ioport";
|
|
|
|
reg = <0x40040120 0x20>;
|
|
|
|
port = <9>;
|
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
ngpios = <16>;
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
|
|
|
ioporta: gpio@40040140 {
|
|
|
|
compatible = "renesas,ra-gpio-ioport";
|
|
|
|
reg = <0x40040140 0x20>;
|
|
|
|
port = <10>;
|
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
ngpios = <16>;
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
|
|
|
ioportb: gpio@40040160 {
|
|
|
|
compatible = "renesas,ra-gpio-ioport";
|
|
|
|
reg = <0x40040160 0x20>;
|
|
|
|
port = <11>;
|
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
ngpios = <16>;
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
|
|
|
sci5: sci5@400700a0 {
|
|
|
|
compatible = "renesas,ra-sci";
|
|
|
|
interrupts = <20 1>, <21 1>, <22 1>, <23 1>;
|
|
|
|
interrupt-names = "rxi", "txi", "tei", "eri";
|
|
|
|
reg = <0x400700a0 0x20>;
|
|
|
|
clocks = <&pclka MSTPB 26>;
|
|
|
|
status = "disabled";
|
|
|
|
uart {
|
|
|
|
compatible = "renesas,ra-sci-uart";
|
|
|
|
channel = <5>;
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
sci6: sci6@400700c0 {
|
|
|
|
compatible = "renesas,ra-sci";
|
|
|
|
interrupts = <24 1>, <25 1>, <26 1>, <27 1>;
|
|
|
|
interrupt-names = "rxi", "txi", "tei", "eri";
|
|
|
|
reg = <0x400700c0 0x20>;
|
|
|
|
clocks = <&pclka MSTPB 25>;
|
|
|
|
status = "disabled";
|
|
|
|
uart {
|
|
|
|
compatible = "renesas,ra-sci-uart";
|
|
|
|
channel = <6>;
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
sci7: sci7@400700e0 {
|
|
|
|
compatible = "renesas,ra-sci";
|
|
|
|
interrupts = <28 1>, <29 1>, <30 1>, <31 1>;
|
|
|
|
interrupt-names = "rxi", "txi", "tei", "eri";
|
|
|
|
reg = <0x400700e0 0x20>;
|
|
|
|
clocks = <&pclka MSTPB 24>;
|
|
|
|
status = "disabled";
|
|
|
|
uart {
|
|
|
|
compatible = "renesas,ra-sci-uart";
|
|
|
|
channel = <7>;
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
};
|
2024-10-18 09:42:43 +07:00
|
|
|
|
|
|
|
iic2: iic2@40053200 {
|
|
|
|
compatible = "renesas,ra-iic";
|
|
|
|
channel = <2>;
|
|
|
|
reg = <0x40053200 0x100>;
|
|
|
|
status = "disabled";
|
|
|
|
};
|
2024-11-26 17:48:31 +07:00
|
|
|
|
|
|
|
usbhs: usbhs@40060000 {
|
2024-11-26 18:17:25 +07:00
|
|
|
compatible = "renesas,ra-usbhs";
|
2024-11-26 17:48:31 +07:00
|
|
|
reg = <0x40060000 0x2000>;
|
2024-11-26 18:17:25 +07:00
|
|
|
interrupts = <54 12>;
|
|
|
|
interrupt-names = "usbhs-ir";
|
2024-11-26 17:48:31 +07:00
|
|
|
num-bidir-endpoints = <10>;
|
|
|
|
phys = <&usbhs_phy>;
|
2025-02-03 13:20:19 +07:00
|
|
|
phys-clock = <&uclk>;
|
2024-11-26 17:48:31 +07:00
|
|
|
status = "disabled";
|
|
|
|
udc {
|
|
|
|
compatible = "renesas,ra-udc";
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
};
|
dts: arm: renesas: Add dts node to support ADC for RA6, RA4
Add dts node to support canfd for RA6, RA4 MCU: r7fa6m5xh,
r7fa6m4ax, r7fa6m3ax, r7fa6m2ax, r7fa6m1ad3cfp, r7fa6e10x,
r7fa6e2bx, r7fa4w1ad2cng, r7fa4m3ax, r7fa4m2ax, r7fa4e2b93cfm
Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
2024-11-13 14:26:04 +07:00
|
|
|
|
|
|
|
adc@4005c000 {
|
|
|
|
channel-available-mask = <0x1f00ff>;
|
|
|
|
};
|
|
|
|
|
|
|
|
adc@4005c200 {
|
|
|
|
channel-available-mask = <0xf00ef>;
|
|
|
|
};
|
2024-10-21 19:08:04 +07:00
|
|
|
|
|
|
|
pwm13: pwm13@40078d00 {
|
|
|
|
compatible = "renesas,ra-pwm";
|
|
|
|
divider = <RA_PWM_SOURCE_DIV_1>;
|
|
|
|
channel = <RA_PWM_CHANNEL_13>;
|
|
|
|
clocks = <&pclkd MSTPD 6>;
|
|
|
|
reg = <0x40078d00 0x100>;
|
|
|
|
#pwm-cells = <3>;
|
|
|
|
status = "disabled";
|
|
|
|
};
|
2024-07-18 18:41:26 +07:00
|
|
|
};
|
|
|
|
|
|
|
|
clocks: clocks {
|
2024-08-08 16:15:05 +09:00
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
|
2024-09-11 20:07:20 +09:00
|
|
|
xtal: clock-main-osc {
|
2024-07-18 18:41:26 +07:00
|
|
|
compatible = "renesas,ra-cgc-external-clock";
|
|
|
|
clock-frequency = <DT_FREQ_M(24)>;
|
|
|
|
#clock-cells = <0>;
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
|
|
|
hoco: clock-hoco {
|
|
|
|
compatible = "fixed-clock";
|
|
|
|
clock-frequency = <DT_FREQ_M(20)>;
|
|
|
|
#clock-cells = <0>;
|
|
|
|
};
|
|
|
|
|
|
|
|
moco: clock-moco {
|
|
|
|
compatible = "fixed-clock";
|
|
|
|
clock-frequency = <DT_FREQ_M(8)>;
|
|
|
|
#clock-cells = <0>;
|
|
|
|
};
|
|
|
|
|
|
|
|
loco: clock-loco {
|
|
|
|
compatible = "fixed-clock";
|
|
|
|
clock-frequency = <32768>;
|
|
|
|
#clock-cells = <0>;
|
|
|
|
};
|
|
|
|
|
|
|
|
subclk: clock-subclk {
|
|
|
|
compatible = "renesas,ra-cgc-subclk";
|
|
|
|
clock-frequency = <32768>;
|
|
|
|
#clock-cells = <0>;
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
|
|
|
pll: pll {
|
|
|
|
compatible = "renesas,ra-cgc-pll";
|
|
|
|
#clock-cells = <0>;
|
|
|
|
|
|
|
|
/* PLL */
|
2024-09-12 23:04:31 +09:00
|
|
|
clocks = <&xtal>;
|
2024-09-12 23:15:27 +09:00
|
|
|
div = <2>;
|
2024-07-18 18:41:26 +07:00
|
|
|
mul = <20 0>;
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
2024-08-08 16:15:05 +09:00
|
|
|
pclkblock: pclkblock@4001e01c {
|
2024-07-18 18:41:26 +07:00
|
|
|
compatible = "renesas,ra-cgc-pclk-block";
|
2024-08-08 16:15:05 +09:00
|
|
|
reg = <0x4001e01c 4>, <0x40047000 4>, <0x40047004 4>,
|
|
|
|
<0x40047008 4>;
|
|
|
|
reg-names = "MSTPA", "MSTPB","MSTPC",
|
|
|
|
"MSTPD";
|
2024-07-18 18:41:26 +07:00
|
|
|
#clock-cells = <0>;
|
2024-09-12 23:04:31 +09:00
|
|
|
clocks = <&pll>;
|
2024-07-18 18:41:26 +07:00
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
iclk: iclk {
|
|
|
|
compatible = "renesas,ra-cgc-pclk";
|
2025-01-21 13:23:08 +07:00
|
|
|
clock-frequency = <120000000>;
|
2024-09-12 23:15:27 +09:00
|
|
|
div = <2>;
|
2024-07-18 18:41:26 +07:00
|
|
|
#clock-cells = <2>;
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
pclka: pclka {
|
|
|
|
compatible = "renesas,ra-cgc-pclk";
|
2024-09-12 23:15:27 +09:00
|
|
|
div = <2>;
|
2024-07-18 18:41:26 +07:00
|
|
|
#clock-cells = <2>;
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
pclkb: pclkb {
|
|
|
|
compatible = "renesas,ra-cgc-pclk";
|
2024-09-12 23:15:27 +09:00
|
|
|
div = <4>;
|
2024-07-18 18:41:26 +07:00
|
|
|
#clock-cells = <2>;
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
pclkc: pclkc {
|
|
|
|
compatible = "renesas,ra-cgc-pclk";
|
2024-09-12 23:15:27 +09:00
|
|
|
div = <4>;
|
2024-07-18 18:41:26 +07:00
|
|
|
#clock-cells = <2>;
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
pclkd: pclkd {
|
|
|
|
compatible = "renesas,ra-cgc-pclk";
|
2024-09-12 23:15:27 +09:00
|
|
|
div = <2>;
|
2024-07-18 18:41:26 +07:00
|
|
|
#clock-cells = <2>;
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
bclk: bclk {
|
|
|
|
compatible = "renesas,ra-cgc-pclk";
|
2024-09-12 23:15:27 +09:00
|
|
|
div = <2>;
|
2024-07-18 18:41:26 +07:00
|
|
|
bclkout: bclkout {
|
|
|
|
compatible = "renesas,ra-cgc-busclk";
|
2024-08-08 16:36:04 +09:00
|
|
|
clk-out-div = <2>;
|
2024-07-18 18:41:26 +07:00
|
|
|
sdclk = <1>;
|
|
|
|
#clock-cells = <0>;
|
|
|
|
};
|
|
|
|
#clock-cells = <2>;
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
uclk: uclk {
|
|
|
|
compatible = "renesas,ra-cgc-pclk";
|
2024-09-12 23:15:27 +09:00
|
|
|
div = <5>;
|
2024-07-18 18:41:26 +07:00
|
|
|
#clock-cells = <2>;
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
fclk: fclk {
|
|
|
|
compatible = "renesas,ra-cgc-pclk";
|
2024-09-12 23:15:27 +09:00
|
|
|
div = <4>;
|
2024-07-18 18:41:26 +07:00
|
|
|
#clock-cells = <2>;
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
clkout: clkout {
|
|
|
|
compatible = "renesas,ra-cgc-pclk";
|
|
|
|
#clock-cells = <2>;
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2024-11-26 17:48:31 +07:00
|
|
|
|
|
|
|
usbhs_phy: usbhs-phy {
|
|
|
|
compatible = "renesas,ra-usbphyc";
|
|
|
|
#phy-cells = <0>;
|
|
|
|
};
|
2024-07-18 18:41:26 +07:00
|
|
|
};
|
2024-11-21 11:24:15 +07:00
|
|
|
|
|
|
|
&ioport0 {
|
|
|
|
port-irqs = <&port_irq6 &port_irq7 &port_irq8
|
|
|
|
&port_irq9 &port_irq10 &port_irq11
|
|
|
|
&port_irq12 &port_irq13 &port_irq14>;
|
|
|
|
port-irq-names = "port-irq6",
|
|
|
|
"port-irq7",
|
|
|
|
"port-irq8",
|
|
|
|
"port-irq9",
|
|
|
|
"port-irq10",
|
|
|
|
"port-irq11",
|
|
|
|
"port-irq12",
|
|
|
|
"port-irq13",
|
|
|
|
"port-irq14";
|
|
|
|
port-irq6-pins = <0>;
|
|
|
|
port-irq7-pins = <1>;
|
|
|
|
port-irq8-pins = <2>;
|
|
|
|
port-irq9-pins = <4>;
|
|
|
|
port-irq10-pins = <5>;
|
|
|
|
port-irq11-pins = <6>;
|
|
|
|
port-irq12-pins = <8>;
|
|
|
|
port-irq13-pins = <9 15>;
|
|
|
|
port-irq14-pins = <10>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&ioport1 {
|
|
|
|
port-irqs = <&port_irq0 &port_irq1 &port_irq2
|
|
|
|
&port_irq3 &port_irq4>;
|
|
|
|
port-irq-names = "port-irq0",
|
|
|
|
"port-irq1",
|
|
|
|
"port-irq2",
|
|
|
|
"port-irq3",
|
|
|
|
"port-irq4";
|
|
|
|
port-irq0-pins = <5>;
|
|
|
|
port-irq1-pins = <1 4>;
|
|
|
|
port-irq2-pins = <0>;
|
|
|
|
port-irq3-pins = <10>;
|
|
|
|
port-irq4-pins = <11>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&ioport2 {
|
|
|
|
port-irqs = <&port_irq0 &port_irq1 &port_irq2
|
|
|
|
&port_irq3>;
|
|
|
|
port-irq-names = "port-irq0",
|
|
|
|
"port-irq1",
|
|
|
|
"port-irq2",
|
|
|
|
"port-irq3";
|
|
|
|
port-irq0-pins = <6>;
|
|
|
|
port-irq1-pins = <5>;
|
|
|
|
port-irq2-pins = <3 13>;
|
|
|
|
port-irq3-pins = <2 12>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&ioport3 {
|
|
|
|
port-irqs = <&port_irq5 &port_irq6
|
|
|
|
&port_irq8 &port_irq9>;
|
|
|
|
port-irq-names = "port-irq5",
|
|
|
|
"port-irq6",
|
|
|
|
"port-irq8",
|
|
|
|
"port-irq9";
|
|
|
|
port-irq5-pins = <2>;
|
|
|
|
port-irq6-pins = <1>;
|
|
|
|
port-irq8-pins = <5>;
|
|
|
|
port-irq9-pins = <4>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&ioport4 {
|
|
|
|
port-irqs = <&port_irq0 &port_irq4 &port_irq5
|
|
|
|
&port_irq6 &port_irq7 &port_irq8
|
|
|
|
&port_irq9>;
|
|
|
|
port-irq-names = "port-irq0",
|
|
|
|
"port-irq4",
|
|
|
|
"port-irq5",
|
|
|
|
"port-irq6",
|
|
|
|
"port-irq7",
|
|
|
|
"port-irq8",
|
|
|
|
"port-irq9";
|
|
|
|
port-irq0-pins = <0>;
|
|
|
|
port-irq4-pins = <2 11>;
|
|
|
|
port-irq5-pins = <1 10>;
|
|
|
|
port-irq6-pins = <9>;
|
|
|
|
port-irq7-pins = <8>;
|
|
|
|
port-irq8-pins = <15>;
|
|
|
|
port-irq9-pins = <14>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&ioport5 {
|
|
|
|
port-irqs = <&port_irq11 &port_irq12 &port_irq14
|
|
|
|
&port_irq15>;
|
|
|
|
port-irq-names = "port-irq11",
|
|
|
|
"port-irq12",
|
|
|
|
"port-irq14",
|
|
|
|
"port-irq15";
|
|
|
|
port-irq11-pins = <1>;
|
|
|
|
port-irq12-pins = <2>;
|
|
|
|
port-irq14-pins = <5 12>;
|
|
|
|
port-irq15-pins = <6 11>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&ioport7 {
|
|
|
|
port-irqs = <&port_irq7 &port_irq8 &port_irq10
|
|
|
|
&port_irq11>;
|
|
|
|
port-irq-names = "port-irq7",
|
|
|
|
"port-irq8",
|
|
|
|
"port-irq10",
|
|
|
|
"port-irq11";
|
|
|
|
port-irq7-pins = <6>;
|
|
|
|
port-irq8-pins = <7>;
|
|
|
|
port-irq10-pins = <9>;
|
|
|
|
port-irq11-pins = <8>;
|
|
|
|
};
|
2024-12-23 16:37:21 +07:00
|
|
|
|
|
|
|
&dac_global {
|
|
|
|
has-output-amplifier;
|
|
|
|
};
|