1/* 2 * Copyright (c) 2024 Renesas Electronics Corporation 3 * SPDX-License-Identifier: Apache-2.0 4 */ 5 6/dts-v1/; 7 8#include <renesas/ra/ra6/r7fa6e10f2cfp.dtsi> 9#include <dt-bindings/gpio/gpio.h> 10#include <dt-bindings/input/input-event-codes.h> 11#include <zephyr/dt-bindings/adc/adc.h> 12 13#include "fpb_ra6e1-pinctrl.dtsi" 14 15/ { 16 model = "Renesas FPB-RA6E1"; 17 compatible = "renesas,ra6e1", "renesas,ra"; 18 19 chosen { 20 zephyr,sram = &sram0; 21 zephyr,flash = &flash0; 22 zephyr,console = &uart0; 23 zephyr,shell-uart = &uart0; 24 }; 25 26 leds { 27 compatible = "gpio-leds"; 28 led1: led1 { 29 gpios = <&ioport4 7 GPIO_ACTIVE_HIGH>; 30 label = "LED1"; 31 }; 32 led2: led2 { 33 gpios = <&ioport4 8 GPIO_ACTIVE_HIGH>; 34 label = "LED2"; 35 }; 36 }; 37 38 buttons { 39 compatible = "gpio-keys"; 40 button0: s1 { 41 gpios = <&ioport2 5 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; 42 label = "Push button switch 1"; 43 zephyr,code = <INPUT_KEY_0>; 44 }; 45 }; 46 47 aliases { 48 led0 = &led1; 49 sw0 = &button0; 50 }; 51}; 52 53&sci0 { 54 pinctrl-0 = <&sci0_default>; 55 pinctrl-names = "default"; 56 status = "okay"; 57 uart0: uart { 58 current-speed = <115200>; 59 status = "okay"; 60 }; 61}; 62 63&iic0 { 64 status = "okay"; 65 #address-cells = <1>; 66 #size-cells = <0>; 67 interrupts = <91 1>, <92 1>, <93 1>, <94 1>; 68 interrupt-names = "rxi", "txi", "tei", "eri"; 69 clock-frequency = <DT_FREQ_M(1)>; 70 pinctrl-0 = <&iic0_default>; 71 pinctrl-names = "default"; 72}; 73 74&spi1 { 75 pinctrl-0 = <&spi1_default>; 76 pinctrl-names = "default"; 77 status = "okay"; 78}; 79 80&ioport2 { 81 status = "okay"; 82}; 83 84&ioport4 { 85 status = "okay"; 86}; 87 88&subclk { 89 status = "okay"; 90}; 91 92&pll { 93 clocks = <&hoco>; 94 div = <2>; 95 mul = <20 0>; 96 status = "okay"; 97}; 98 99&flash0 { 100 partitions { 101 compatible = "fixed-partitions"; 102 #address-cells = <1>; 103 #size-cells = <1>; 104 105 boot_partition: partition@0 { 106 label = "application"; 107 reg = <0x00000000 DT_SIZE_K(512)>; 108 }; 109 110 storage_partition: partition@80000 { 111 label = "storage"; 112 reg = <0x80000 DT_SIZE_K(512)>; 113 }; 114 }; 115}; 116 117&adc0 { 118 status = "okay"; 119 pinctrl-0 = <&adc0_default>; 120 pinctrl-names = "default"; 121}; 122 123&port_irq1 { 124 interrupts = <41 12>; 125 status = "okay"; 126}; 127 128&pwm1 { 129 pinctrl-0 = <&pwm1_default>; 130 pinctrl-names = "default"; 131 interrupts = <63 1>, <64 1>; 132 interrupt-names = "gtioca", "overflow"; 133 status = "okay"; 134}; 135