zephyr/boards/renesas/ek_ra6m2/ek_ra6m2.dts
The Nguyen 8f8fb1c76d boards: renesas: add on-board button support on Renesas RA boards
Add gpio keys support for these boards: ek_ra2a1, ek_ra4e2, ek_ra4m2,
ek_ra4m3, ek_ra4w1, ek_ra6e2, ek_ra6m1, ek_ra6m2, ek_ra6m3, ek_ra6m4,
ek_ra6m5, ek_ra8d1, ek_ra8m1, fpb_ra6e1, fpb_ra6e2

Signed-off-by: The Nguyen <the.nguyen.yf@renesas.com>
2024-12-19 08:39:10 +01:00

112 lines
1.8 KiB
Text

/*
* Copyright (c) 2024 Renesas Electronics Corporation
* SPDX-License-Identifier: Apache-2.0
*/
/dts-v1/;
#include <renesas/ra/ra6/r7fa6m2af3cfb.dtsi>
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input-event-codes.h>
#include <zephyr/dt-bindings/adc/adc.h>
#include "ek_ra6m2-pinctrl.dtsi"
/ {
model = "Renesas EK-RA6M2";
compatible = "renesas,ra6m2", "renesas,ra";
chosen {
zephyr,sram = &sram0;
zephyr,flash = &flash0;
zephyr,console = &uart7;
zephyr,shell-uart = &uart7;
zephyr,entropy = &trng;
};
leds {
compatible = "gpio-leds";
led1: led1 {
gpios = <&ioport1 6 GPIO_ACTIVE_HIGH>;
label = "LED1";
};
};
buttons {
compatible = "gpio-keys";
button0: s1 {
gpios = <&ioport1 5 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
label = "Push button switch 1";
zephyr,code = <INPUT_KEY_0>;
};
};
aliases {
led0 = &led1;
sw0 = &button0;
};
};
&sci7 {
pinctrl-0 = <&sci7_default>;
pinctrl-names = "default";
status = "okay";
uart7: uart {
current-speed = <115200>;
status = "okay";
};
};
&iic2 {
status = "okay";
#address-cells = <1>;
#size-cells = <0>;
interrupts = <91 1>, <92 1>, <93 1>, <94 1>;
interrupt-names = "rxi", "txi", "tei", "eri";
clock-frequency = <DT_FREQ_M(1)>;
pinctrl-0 = <&iic2_default>;
pinctrl-names = "default";
};
&spi0 {
pinctrl-0 = <&spi0_default>;
pinctrl-names = "default";
status = "okay";
};
&ioport1 {
status = "okay";
};
&xtal {
clock-frequency = <DT_FREQ_M(12)>;
mosel = <0>;
#clock-cells = <0>;
status = "okay";
};
&subclk {
status = "okay";
};
&pll {
clocks = <&xtal>;
div = <1>;
mul = <20 0>;
status = "okay";
};
&trng {
status ="okay";
};
&adc0 {
status = "okay";
pinctrl-0 = <&adc0_default>;
pinctrl-names = "default";
};
&port_irq0 {
interrupts = <41 12>;
status = "okay";
};