|  | /* | 
|  | * Copyright (c) 2024-2025 Renesas Electronics Corporation | 
|  | * SPDX-License-Identifier: Apache-2.0 | 
|  | */ | 
|  |  | 
|  | /dts-v1/; | 
|  |  | 
|  | #include <renesas/ra/ra6/r7fa6e2bb3cfm.dtsi> | 
|  | #include <dt-bindings/gpio/gpio.h> | 
|  | #include <dt-bindings/input/input-event-codes.h> | 
|  | #include <zephyr/dt-bindings/adc/adc.h> | 
|  |  | 
|  | #include "ek_ra6e2-pinctrl.dtsi" | 
|  |  | 
|  | / { | 
|  | model = "Renesas EK-RA6E2"; | 
|  | compatible = "renesas,ra6e2", "renesas,ra"; | 
|  |  | 
|  | chosen { | 
|  | zephyr,sram = &sram0; | 
|  | zephyr,flash-controller = &flash1; | 
|  | zephyr,flash = &flash0; | 
|  | zephyr,console = &uart0; | 
|  | zephyr,shell-uart = &uart0; | 
|  | zephyr,canbus = &canfd0; | 
|  | zephyr,entropy = &trng; | 
|  | }; | 
|  |  | 
|  | leds { | 
|  | compatible = "gpio-leds"; | 
|  | led1: led1 { | 
|  | gpios = <&ioport2 7 GPIO_ACTIVE_HIGH>; | 
|  | label = "LED1"; | 
|  | }; | 
|  | led2: led2 { | 
|  | gpios = <&ioport4 0 GPIO_ACTIVE_HIGH>; | 
|  | label = "LED2"; | 
|  | }; | 
|  | led3: led3 { | 
|  | gpios = <&ioport1 13 GPIO_ACTIVE_HIGH>; | 
|  | label = "LED3"; | 
|  | }; | 
|  | }; | 
|  |  | 
|  | buttons { | 
|  | compatible = "gpio-keys"; | 
|  | button0: s1 { | 
|  | gpios = <&ioport0 5 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; | 
|  | label = "Push button switch 1"; | 
|  | zephyr,code = <INPUT_KEY_0>; | 
|  | }; | 
|  | button1: s2 { | 
|  | gpios = <&ioport3 4 (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; | 
|  | }; | 
|  | }; | 
|  |  | 
|  | &sci0 { | 
|  | pinctrl-0 = <&sci0_default>; | 
|  | pinctrl-names = "default"; | 
|  | status = "okay"; | 
|  | uart0: uart { | 
|  | current-speed = <115200>; | 
|  | status = "okay"; | 
|  | }; | 
|  | }; | 
|  |  | 
|  | &ioport0 { | 
|  | status = "okay"; | 
|  | }; | 
|  |  | 
|  | &ioport1 { | 
|  | status = "okay"; | 
|  | }; | 
|  |  | 
|  | &spi0 { | 
|  | pinctrl-0 = <&spi0_default>; | 
|  | pinctrl-names = "default"; | 
|  | status = "okay"; | 
|  | }; | 
|  |  | 
|  | &ioport2 { | 
|  | status = "okay"; | 
|  | }; | 
|  |  | 
|  | &ioport3 { | 
|  | status = "okay"; | 
|  | }; | 
|  |  | 
|  | &ioport4 { | 
|  | status = "okay"; | 
|  | }; | 
|  |  | 
|  | &xtal { | 
|  | clock-frequency = <DT_FREQ_M(20)>; | 
|  | mosel = <0>; | 
|  | #clock-cells = <0>; | 
|  | status = "okay"; | 
|  | }; | 
|  |  | 
|  | &subclk { | 
|  | status = "okay"; | 
|  | }; | 
|  |  | 
|  | &pll { | 
|  | clocks = <&xtal>; | 
|  | div = <1>; | 
|  | mul = <10 0>; | 
|  | status = "okay"; | 
|  | }; | 
|  |  | 
|  | &canfdclk { | 
|  | clocks = <&pll>; | 
|  | div = <8>; | 
|  | status = "okay"; | 
|  | }; | 
|  |  | 
|  | &canfd_global { | 
|  | status = "okay"; | 
|  | canfd0 { | 
|  | pinctrl-0 = <&canfd0_default>; | 
|  | pinctrl-names = "default"; | 
|  | rx-max-filters = <16>; | 
|  | status = "okay"; | 
|  |  | 
|  | can-transceiver { | 
|  | max-bitrate = <5000000>; | 
|  | }; | 
|  | }; | 
|  | }; | 
|  |  | 
|  | &adc0 { | 
|  | status = "okay"; | 
|  | pinctrl-0 = <&adc0_default>; | 
|  | pinctrl-names = "default"; | 
|  | }; | 
|  |  | 
|  | &dac0 { | 
|  | pinctrl-0 = <&dac0_default>; | 
|  | pinctrl-names = "default"; | 
|  | status = "okay"; | 
|  | }; | 
|  |  | 
|  | &port_irq9 { | 
|  | interrupts = <4 12>; | 
|  | status = "okay"; | 
|  | }; | 
|  |  | 
|  | &port_irq10 { | 
|  | interrupts = <5 12>; | 
|  | status = "okay"; | 
|  | }; | 
|  |  | 
|  | &pwm1 { | 
|  | pinctrl-0 = <&pwm1_default>; | 
|  | pinctrl-names = "default"; | 
|  | interrupts = <63 1>, <64 1>; | 
|  | interrupt-names = "gtioca", "overflow"; | 
|  | divider = <RA_PWM_SOURCE_DIV_256>; | 
|  | status = "okay"; | 
|  | }; | 
|  |  | 
|  | &trng { | 
|  | status ="okay"; | 
|  | }; | 
|  |  | 
|  | &flash1 { | 
|  | partitions { | 
|  | compatible = "fixed-partitions"; | 
|  | #address-cells = <1>; | 
|  | #size-cells = <1>; | 
|  |  | 
|  | storage_partition: partition@0 { | 
|  | label = "storage"; | 
|  | reg = <0X0 DT_SIZE_K(4)>; | 
|  | }; | 
|  | }; | 
|  | }; | 
|  |  | 
|  | &wdt { | 
|  | status = "okay"; | 
|  | }; |