1/* 2 * Copyright (c) 2024 TOKITA Hiroshi 3 * SPDX-License-Identifier: Apache-2.0 4 */ 5 6/dts-v1/; 7 8#include <renesas/ra/ra2/r7fa2a1ab3cfm.dtsi> 9#include <zephyr/dt-bindings/gpio/gpio.h> 10#include <zephyr/dt-bindings/input/input-event-codes.h> 11 12#include "ek_ra2a1-pinctrl.dtsi" 13 14/ { 15 model = "Renesas EK-RA2A1"; 16 compatible = "renesas,ra2a1", "renesas,ra2"; 17 18 chosen { 19 zephyr,sram = &sram0; 20 zephyr,flash = &flash0; 21 zephyr,console = &uart0; 22 zephyr,shell-uart = &uart0; 23 zephyr,entropy = &trng; 24 }; 25 26 leds { 27 compatible = "gpio-leds"; 28 led1: led1 { 29 gpios = <&ioport2 5 GPIO_ACTIVE_HIGH>; 30 label = "LED1"; 31 }; 32 }; 33 34 buttons { 35 compatible = "gpio-keys"; 36 button0: s1 { 37 gpios = <&ioport2 6 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; 38 label = "Push button switch 1"; 39 zephyr,code = <INPUT_KEY_0>; 40 }; 41 }; 42 43 aliases { 44 led0 = &led1; 45 sw0 = &button0; 46 }; 47}; 48 49&xtal { 50 clock-frequency = <DT_FREQ_M(12)>; 51 mosel = <0>; 52 #clock-cells = <0>; 53 status = "okay"; 54}; 55 56&subclk { 57 status = "okay"; 58}; 59 60&ioport2 { 61 status = "okay"; 62}; 63 64&sci0 { 65 pinctrl-0 = <&sci0_default>; 66 pinctrl-names = "default"; 67 status = "okay"; 68 uart0: uart { 69 current-speed = <115200>; 70 status = "okay"; 71 }; 72}; 73 74&spi1 { 75 pinctrl-0 = <&spi1_default>; 76 pinctrl-names = "default"; 77 cs-gpios = <&ioport1 2 GPIO_ACTIVE_LOW>; 78 status = "okay"; 79}; 80 81&ioport1 { 82 status = "okay"; 83}; 84 85&port_irq6 { 86 interrupts = <29 3>; 87 status = "okay"; 88}; 89 90&pwm0 { 91 pinctrl-0 = <&pwm0_default>; 92 pinctrl-names = "default"; 93 interrupts = <28 1>, <31 1>; 94 interrupt-names = "gtioca", "overflow"; 95 status = "okay"; 96}; 97 98&trng { 99 status = "okay"; 100}; 101 102&iic0 { 103 pinctrl-0 = <&iic0_default>; 104 pinctrl-names = "default"; 105 #address-cells = <1>; 106 #size-cells = <0>; 107 clock-frequency = <DT_FREQ_M(1)>; 108 interrupts = <0 1>, <1 1>, <2 1>, <3 1>; 109 interrupt-names = "rxi", "txi", "tei", "eri"; 110 status = "okay"; 111}; 112