| /* |
| * Copyright (c) 2024-2025 Renesas Electronics Corporation |
| * SPDX-License-Identifier: Apache-2.0 |
| */ |
| |
| /dts-v1/; |
| |
| #include <renesas/ra/ra8/r7fa8t1ahecbd.dtsi> |
| #include <dt-bindings/gpio/gpio.h> |
| #include <zephyr/dt-bindings/adc/adc.h> |
| #include "mck_ra8t1-pinctrl.dtsi" |
| |
| / { |
| model = "Renesas MCK-RA8T1"; |
| compatible = "renesas,ra8t1", "renesas,ra8"; |
| |
| chosen { |
| zephyr,sram = &sram0; |
| zephyr,flash = &flash0; |
| zephyr,console = &uart3; |
| zephyr,shell-uart = &uart3; |
| zephyr,entropy = &trng; |
| zephyr,flash-controller = &flash1; |
| zephyr,canbus = &canfd1; |
| }; |
| |
| leds { |
| compatible = "gpio-leds"; |
| led1: led1 { |
| gpios = <&ioporta 12 GPIO_ACTIVE_HIGH>; |
| label = "LED1"; |
| }; |
| led2: led2 { |
| gpios = <&ioporta 14 GPIO_ACTIVE_HIGH>; |
| label = "LED2"; |
| }; |
| led3: led3 { |
| gpios = <&ioport6 6 GPIO_ACTIVE_HIGH>; |
| label = "LED3"; |
| }; |
| led4: led4 { |
| gpios = <&ioporta 6 GPIO_ACTIVE_HIGH>; |
| label = "LED4"; |
| }; |
| }; |
| |
| aliases { |
| led0 = &led1; |
| sdhc0 = &sdhc0; |
| watchdog0 = &wdt; |
| }; |
| }; |
| |
| &xtal { |
| clock-frequency = <DT_FREQ_M(24)>; |
| mosel = <0>; |
| #clock-cells = <0>; |
| status = "okay"; |
| }; |
| |
| &subclk { |
| status = "okay"; |
| }; |
| |
| &pll { |
| status = "okay"; |
| pllp { |
| status = "okay"; |
| }; |
| |
| pllq { |
| div = <4>; |
| freq = <DT_FREQ_M(240)>; |
| status = "okay"; |
| }; |
| |
| pllr { |
| status = "okay"; |
| }; |
| }; |
| |
| &sciclk { |
| clocks = <&pllp>; |
| div = <4>; |
| status = "okay"; |
| }; |
| |
| &canfdclk { |
| clocks = <&pllp>; |
| div = <6>; |
| status = "okay"; |
| }; |
| |
| &uclk { |
| clocks = <&pllq>; |
| div = <5>; |
| status = "okay"; |
| }; |
| |
| &i3cclk { |
| clocks = <&pllp>; |
| div = <3>; |
| status = "okay"; |
| }; |
| |
| &ioport3 { |
| status = "okay"; |
| }; |
| |
| &ioport6 { |
| status = "okay"; |
| }; |
| |
| &ioporta { |
| status = "okay"; |
| }; |
| |
| &sci3 { |
| pinctrl-0 = <&sci3_default>; |
| pinctrl-names = "default"; |
| status = "okay"; |
| uart3: uart { |
| current-speed = <115200>; |
| status = "okay"; |
| }; |
| }; |
| |
| &sci9 { |
| pinctrl-0 = <&sci9_default>; |
| pinctrl-names = "default"; |
| |
| i2c9: i2c { |
| sda-output-delay = <300>; |
| noise-filter-clock-select = <1>; |
| bit-rate-modulation; |
| }; |
| }; |
| |
| &trng { |
| status = "okay"; |
| }; |
| |
| &spi0 { |
| pinctrl-0 = <&spi0_default>; |
| pinctrl-names = "default"; |
| status = "okay"; |
| }; |
| |
| &i3c0 { |
| i2c-scl-hz = <DT_FREQ_K(400)>; |
| i3c-scl-hz = <DT_FREQ_M(4)>; |
| pinctrl-0 = <&i3c0_default>; |
| pinctrl-names = "default"; |
| interrupts = <60 1>, <61 1>, <62 1>, <63 1>, <64 1>, <65 1>; |
| interrupt-names = "resp", "rx", "tx", "rcv", "ibi", "eei"; |
| status = "okay"; |
| }; |
| |
| &flash1 { |
| partitions { |
| compatible = "fixed-partitions"; |
| #address-cells = <1>; |
| #size-cells = <1>; |
| |
| storage_partition: partition@0 { |
| label = "storage"; |
| reg = <0X0 DT_SIZE_K(12)>; |
| }; |
| }; |
| }; |
| |
| &pwm2 { |
| pinctrl-0 = <&pwm2_default>; |
| interrupts = <40 1>, <41 1>; |
| interrupt-names = "gtioca", "overflow"; |
| pinctrl-names = "default"; |
| status = "okay"; |
| }; |
| |
| &canfd_global { |
| status = "okay"; |
| canfd1 { |
| pinctrl-0 = <&canfd1_default>; |
| pinctrl-names = "default"; |
| rx-max-filters = <16>; |
| status = "okay"; |
| }; |
| }; |
| |
| &iic1 { |
| #address-cells = <1>; |
| #size-cells = <0>; |
| clock-frequency = <DT_FREQ_M(1)>; |
| pinctrl-0 = <&iic1_default>; |
| pinctrl-names = "default"; |
| }; |
| |
| ð { |
| local-mac-address = [74 90 50 6D 81 75]; |
| status = "okay"; |
| phy-handle = <&phy>; |
| }; |
| |
| &mdio { |
| pinctrl-0 = <ðer_default>; |
| pinctrl-names = "default"; |
| status = "okay"; |
| |
| phy: ethernet-phy@5 { |
| compatible = "ethernet-phy"; |
| reg = <5>; |
| status = "okay"; |
| }; |
| }; |
| |
| &adc0 { |
| status = "okay"; |
| pinctrl-0 = <&adc0_default>; |
| pinctrl-names = "default"; |
| average-count = <4>; |
| }; |
| |
| &dac0 { |
| pinctrl-0 = <&dac0_default>; |
| pinctrl-names = "default"; |
| status = "okay"; |
| }; |
| |
| &sdhc0 { |
| compatible = "renesas,ra-sdhc"; |
| pinctrl-0 = <&sdhc0_default>; |
| enable-gpios = <&ioport3 11 GPIO_ACTIVE_HIGH>; |
| pinctrl-names = "default"; |
| status = "okay"; |
| sdmmc { |
| compatible = "zephyr,sdmmc-disk"; |
| disk-name = "SD"; |
| status = "okay"; |
| }; |
| }; |
| |
| &usbfs { |
| pinctrl-0 = <&usbfs_default>; |
| pinctrl-names = "default"; |
| maximum-speed = "full-speed"; |
| status = "okay"; |
| zephyr_udc0: udc { |
| status = "okay"; |
| }; |
| }; |
| |
| &wdt { |
| status = "okay"; |
| }; |
| |
| &ulpt0 { |
| status = "okay"; |
| |
| timer { |
| status = "okay"; |
| }; |
| }; |
| |
| &ulpt1 { |
| status = "okay"; |
| |
| timer { |
| status = "okay"; |
| }; |
| }; |