2024-01-11 14:38:53 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2024 Renesas Electronics Corporation
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
/dts-v1/;
|
|
|
|
|
|
|
|
#include <renesas/ra/ra8/r7fa8m1ahecbd.dtsi>
|
|
|
|
#include <dt-bindings/gpio/gpio.h>
|
2024-08-16 17:20:31 +08:00
|
|
|
#include <zephyr/dt-bindings/adc/adc.h>
|
2024-01-11 14:38:53 +08:00
|
|
|
#include "ek_ra8m1-pinctrl.dtsi"
|
|
|
|
|
|
|
|
/ {
|
|
|
|
model = "Renesas EK-RA8M1";
|
|
|
|
compatible = "renesas,ra8m1", "renesas,ra8";
|
|
|
|
|
|
|
|
chosen {
|
|
|
|
zephyr,sram = &sram0;
|
|
|
|
zephyr,flash = &flash0;
|
2024-01-12 16:20:54 +08:00
|
|
|
zephyr,console = &uart9;
|
|
|
|
zephyr,shell-uart = &uart9;
|
2024-06-18 13:17:23 +08:00
|
|
|
zephyr,entropy = &trng;
|
2024-01-11 14:38:53 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
leds {
|
|
|
|
compatible = "gpio-leds";
|
|
|
|
led1: led1 {
|
|
|
|
gpios = <&ioport6 0 GPIO_ACTIVE_HIGH>;
|
|
|
|
label = "LED1";
|
|
|
|
};
|
|
|
|
led2: led2 {
|
|
|
|
gpios = <&ioport4 14 GPIO_ACTIVE_HIGH>;
|
|
|
|
label = "LED2";
|
|
|
|
};
|
|
|
|
led3: led3 {
|
|
|
|
gpios = <&ioport1 7 GPIO_ACTIVE_HIGH>;
|
|
|
|
label = "LED3";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-07-02 23:53:17 +08:00
|
|
|
mikrobus_header: mikrobus-connector {
|
|
|
|
compatible = "mikro-bus";
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
gpio-map-mask = <0xffffffff 0xffffffc0>;
|
|
|
|
gpio-map-pass-thru = <0 0x3f>;
|
|
|
|
gpio-map = <0 0 &ioport0 4 0>, /* AN */
|
|
|
|
<1 0 &ioport5 2 0>, /* RST */
|
|
|
|
<2 0 &ioport4 13 0>, /* CS */
|
|
|
|
<3 0 &ioport4 12 0>, /* SCK */
|
|
|
|
<4 0 &ioport4 10 0>, /* MISO */
|
|
|
|
<5 0 &ioport4 11 0>, /* MOSI */
|
|
|
|
/* +3.3V */
|
|
|
|
/* GND */
|
|
|
|
<6 0 &ioport9 7 0>, /* PWM */
|
|
|
|
<7 0 &ioport0 10 0>, /* INT */
|
|
|
|
<8 0 &ioport3 9 0>, /* RX */
|
|
|
|
<9 0 &ioport3 10 0>, /* TX */
|
|
|
|
<10 0 &ioport4 0 0>, /* SCL */
|
|
|
|
<11 0 &ioport4 1 0>; /* SDA */
|
|
|
|
/* +5V */
|
|
|
|
/* GND */
|
|
|
|
};
|
|
|
|
|
2024-01-11 14:38:53 +08:00
|
|
|
aliases {
|
|
|
|
led0 = &led1;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&xtal {
|
|
|
|
clock-frequency = <DT_FREQ_M(20)>;
|
|
|
|
mosel = <0>;
|
|
|
|
#clock-cells = <0>;
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&subclk {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&pll {
|
|
|
|
source = <RA_PLL_SOURCE_MAIN_OSC>;
|
|
|
|
div = <RA_PLL_DIV_2>;
|
|
|
|
mul = <96 0>;
|
|
|
|
divp = <RA_PLL_DIV_2>;
|
|
|
|
freqp = <DT_FREQ_M(480)>;
|
|
|
|
divq = <RA_PLL_DIV_2>;
|
|
|
|
freqq = <DT_FREQ_M(480)>;
|
|
|
|
divr = <RA_PLL_DIV_2>;
|
|
|
|
freqr = <DT_FREQ_M(480)>;
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2024-01-12 16:20:54 +08:00
|
|
|
&sciclk {
|
|
|
|
clk_src = <RA_CLOCK_SOURCE_PLL1P>;
|
|
|
|
clk_div = <RA_SCI_CLOCK_DIV_4>;
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2024-07-02 23:53:17 +08:00
|
|
|
&ioport0 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2024-01-11 14:38:53 +08:00
|
|
|
&ioport1 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2024-07-02 23:53:17 +08:00
|
|
|
&ioport3 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2024-01-11 14:38:53 +08:00
|
|
|
&ioport4 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2024-07-02 23:53:17 +08:00
|
|
|
&ioport5 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2024-01-11 14:38:53 +08:00
|
|
|
&ioport6 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
2024-01-12 16:20:54 +08:00
|
|
|
|
2024-07-02 23:53:17 +08:00
|
|
|
&ioport9 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&sci3 {
|
|
|
|
pinctrl-0 = <&sci3_default>;
|
|
|
|
pinctrl-names = "default";
|
|
|
|
status = "okay";
|
|
|
|
uart3: uart {
|
|
|
|
current-speed = <115200>;
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-01-12 16:20:54 +08:00
|
|
|
&sci9 {
|
|
|
|
pinctrl-0 = <&sci9_default>;
|
|
|
|
pinctrl-names = "default";
|
|
|
|
status = "okay";
|
|
|
|
uart9: uart {
|
|
|
|
current-speed = <115200>;
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
};
|
2024-07-02 23:53:17 +08:00
|
|
|
|
|
|
|
mikrobus_serial: &uart3 {};
|
2024-07-29 00:10:12 +08:00
|
|
|
|
|
|
|
&iic1 {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
clock-frequency = <DT_FREQ_M(1)>;
|
|
|
|
pinctrl-0 = <&iic1_default>;
|
|
|
|
pinctrl-names = "default";
|
|
|
|
};
|
2024-08-16 17:20:31 +08:00
|
|
|
|
|
|
|
&adc0 {
|
|
|
|
status = "okay";
|
|
|
|
pinctrl-0 = <&adc0_default>;
|
|
|
|
pinctrl-names = "default";
|
|
|
|
};
|
2024-06-18 13:17:23 +08:00
|
|
|
|
|
|
|
&trng {
|
|
|
|
status = "okay";
|
|
|
|
};
|