zephyr/boards/renesas/rzt2m_starterkit/rzt2m_starter_kit_renesas_r...

92 lines
1.4 KiB
Plaintext

/*
* Copyright (c) 2023 Antmicro <www.antmicro.com>
*
* SPDX-License-Identifier: Apache-2.0
*/
/dts-v1/;
#include <dt-bindings/pinctrl/renesas-rzt2m-pinctrl.h>
#include <arm/renesas/rz/rzt2m.dtsi>
/ {
model = "RZT/2M Starter Kit";
compatible = "renesas,rzt2m_starter_kit";
chosen {
zephyr,sram = &cpu0_atcm;
zephyr,console = &uart0;
zephyr,shell-uart = &uart0;
};
aliases {
led0 = &led0;
sw0 = &sw1;
};
leds {
compatible = "gpio-leds";
led0: led0 {
gpios = <&gpio19 6 0>;
label = "led0";
};
led1: led1 {
gpios = <&gpio19 4 0>;
label = "led1";
};
led2: led2 {
gpios = <&gpio20 0 0>;
label = "led2";
};
led3: led3 {
gpios = <&gpio23 4 0>;
label = "led3";
};
};
gpio_keys {
compatible = "gpio-keys";
sw1: sw1 {
label = "sw1";
gpios = <&gpio10 5 0>;
};
sw2: sw2 {
label = "sw2";
gpios = <&gpio16 3 0>;
};
};
};
&pinctrl {
uart0_default: uart0_default {
group1 {
pinmux = <UART0TX_P16_5>;
};
group2 {
pinmux = <UART0RX_P16_6>;
input-enable;
};
};
uart3_default: uart3_default {
group1 {
pinmux = <UART3TX_P18_0>;
};
group2 {
pinmux = <UART3RX_P17_7>;
input-enable;
};
};
};
&uart0 {
status = "okay";
pinctrl-0 = <&uart0_default>;
pinctrl-names = "default";
};
&uart3 {
status = "okay";
pinctrl-0 = <&uart3_default>;
pinctrl-names = "default";
};