blob: 3f7e15acd91a4d598bbae37e875eb4d8d7b89e0b [file] [log] [blame]
/*
* Copyright (c) 2025 Renesas Electronics Corporation
* SPDX-License-Identifier: Apache-2.0
*/
/dts-v1/;
#include <renesas/ra/ra4/r7fa4l1bd4cfp.dtsi>
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input-event-codes.h>
#include <zephyr/dt-bindings/adc/adc.h>
#include "ek_ra4l1-pinctrl.dtsi"
/ {
model = "Renesas EK-RA4L1";
compatible = "renesas,ra4l1", "renesas,ra";
chosen {
zephyr,sram = &sram0;
zephyr,flash-controller = &flash1;
zephyr,flash = &flash0;
zephyr,console = &uart5;
zephyr,shell-uart = &uart5;
zephyr,canbus = &canfd0;
};
leds {
compatible = "gpio-leds";
led1: led1 {
gpios = <&ioport6 9 GPIO_ACTIVE_HIGH>;
label = "LED1";
};
led2: led2 {
gpios = <&ioport6 10 GPIO_ACTIVE_HIGH>;
label = "LED2";
};
led3: led3 {
gpios = <&ioport6 1 GPIO_ACTIVE_HIGH>;
label = "LED3";
};
};
buttons {
compatible = "gpio-keys";
button0: s1 {
gpios = <&ioport0 0 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
label = "Push button switch 1";
zephyr,code = <INPUT_KEY_0>;
};
button1: s2 {
gpios = <&ioport0 1 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
label = "Push button switch 2";
zephyr,code = <INPUT_KEY_1>;
};
};
aliases {
led0 = &led1;
sw0 = &button0;
sw1 = &button1;
watchdog0 = &wdt;
};
transceiver0: can-phy0 {
compatible = "microchip,mcp2562fd", "can-transceiver-gpio";
standby-gpios = <&ioport1 6 GPIO_ACTIVE_LOW>;
max-bitrate = <5000000>;
#phy-cells = <0>;
};
zephyr,user {
i3c-pullup-gpios = <&ioport5 8 GPIO_ACTIVE_LOW>,
<&ioport5 9 GPIO_ACTIVE_LOW>;
};
};
&xtal {
clock-frequency = <DT_FREQ_M(8)>;
mosel = <0>;
#clock-cells = <0>;
status = "okay";
};
&subclk {
status = "okay";
};
&pll {
clocks = <&xtal>;
div = <1>;
mul = <10 0>;
status = "okay";
};
&canfdclk {
clocks = <&pll>;
div = <2>;
status = "okay";
};
&i3cclk {
clocks = <&pll>;
div = <1>;
status = "okay";
};
&sci5 {
pinctrl-0 = <&sci5_default>;
pinctrl-names = "default";
status = "okay";
uart5: uart {
current-speed = <115200>;
status = "okay";
};
};
&ioport0 {
status = "okay";
};
&ioport1 {
status = "okay";
};
&ioport4 {
status = "okay";
};
&ioport5 {
status = "okay";
};
&ioport6 {
status = "okay";
};
&spi0 {
pinctrl-0 = <&spi0_default>;
pinctrl-names = "default";
status = "okay";
};
&i3c0 {
i2c-scl-hz = <DT_FREQ_K(400)>;
i3c-scl-hz = <DT_FREQ_M(4)>;
pinctrl-0 = <&i3c0_default>;
pinctrl-names = "default";
interrupts = <32 1>, <33 1>, <34 1>, <35 1>, <36 1>, <37 1>;
interrupt-names = "resp", "rx", "tx", "rcv", "ibi", "eei";
status = "okay";
};
&adc0 {
status = "okay";
pinctrl-0 = <&adc0_default>;
pinctrl-names = "default";
};
&dac0 {
pinctrl-0 = <&dac0_default>;
pinctrl-names = "default";
status = "okay";
};
&port_irq6 {
interrupts = <14 12>;
status = "okay";
};
&port_irq7 {
interrupts = <15 12>;
status = "okay";
};
&pwm1 {
pinctrl-0 = <&pwm1_default>;
pinctrl-names = "default";
interrupts = <8 1>, <9 1>;
interrupt-names = "gtioca", "overflow";
status = "okay";
};
&iic0 {
pinctrl-0 = <&iic0_default>;
pinctrl-names = "default";
#address-cells = <1>;
#size-cells = <0>;
clock-frequency = <DT_FREQ_M(1)>;
interrupts = <10 1>, <11 1>, <12 1>, <13 1>;
interrupt-names = "rxi", "txi", "tei", "eri";
status = "okay";
};
&canfd_global {
status = "okay";
canfd0 {
pinctrl-0 = <&canfd0_default>;
pinctrl-names = "default";
phys = <&transceiver0>;
rx-max-filters = <16>;
status = "okay";
};
};
&wdt {
status = "okay";
};
&flash1 {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
storage_partition: partition@0 {
label = "storage";
reg = <0x0 DT_SIZE_K(8)>;
};
};
};