1/* 2 * Copyright (c) 2024 Ian Morris 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7/dts-v1/; 8#include <renesas/ra/r7fa4m1ab3cfm.dtsi> 9#include <zephyr/dt-bindings/pinctrl/renesas/pinctrl-r7fa4m1xxxxxx.h> 10#include <zephyr/dt-bindings/gpio/gpio.h> 11#include <zephyr/dt-bindings/input/input-event-codes.h> 12 13/ { 14 model = "Mikroe Clicker RA4M1"; 15 compatible = "renesas,r7fa4m1ab3cfm"; 16 17 chosen { 18 zephyr,console = &uart0; 19 zephyr,shell-uart = &uart0; 20 zephyr,sram = &sram0; 21 zephyr,flash = &flash0; 22 }; 23 24 leds { 25 compatible = "gpio-leds"; 26 ld1: led_1 { 27 gpios = <&ioport4 9 GPIO_ACTIVE_HIGH>; 28 label = "User LED 1"; 29 }; 30 ld2: led_2 { 31 gpios = <&ioport4 8 GPIO_ACTIVE_HIGH>; 32 label = "User LED 2"; 33 }; 34 }; 35 36 buttons { 37 compatible = "gpio-keys"; 38 btn1: button_1 { 39 gpios = <&ioport3 4 GPIO_ACTIVE_LOW>; 40 label = "User Button 1"; 41 zephyr,code = <INPUT_KEY_0>; 42 }; 43 }; 44 45 aliases { 46 led0 = &ld1; 47 led1 = &ld2; 48 sw0 = &btn1; 49 }; 50}; 51 52&pinctrl { 53 sci0_default: sci0_default { 54 group1 { 55 pinmux = <P410_RXD0>, <P411_TXD0>; 56 }; 57 }; 58}; 59 60&sci0 { 61 status = "okay"; 62 pinctrl-0 = <&sci0_default>; 63 pinctrl-names = "default"; 64 uart0: uart { 65 current-speed = <115200>; 66 status = "okay"; 67 }; 68}; 69 70&ioport3 { 71 status = "okay"; 72}; 73 74&ioport4 { 75 status = "okay"; 76}; 77 78&fcu { 79 status = "okay"; 80}; 81 82&mosc { 83 status = "okay"; 84 clock-frequency = <12000000>; 85}; 86 87&cgc { 88 clock-source = <&mosc>; 89 iclk-div = <1>; 90 pclka-div = <1>; 91 pclkb-div = <2>; 92 pclkc-div = <1>; 93 pclkd-div = <1>; 94 fclk-div = <2>; 95}; 96