1/* 2 * Copyright (C) 2025 Savoir-faire Linux, Inc. 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7/dts-v1/; 8#include <st/mp2/stm32mp257_m33.dtsi> 9#include <st/mp2/stm32mp257faix-pinctrl.dtsi> 10#include <zephyr/dt-bindings/input/input-event-codes.h> 11 12/ { 13 model = "STMicroelectronics STM32MP257F-EV1 board"; 14 compatible = "st,stm32mp257f-ev1", "st,stm32mp25"; 15 16 chosen { 17 zephyr,console = &uart5; 18 zephyr,shell-uart = &uart5; 19 zephyr,flash = &ddr_code; 20 zephyr,sram = &ddr_sys; 21 }; 22 23 leds { 24 compatible = "gpio-leds"; 25 26 orange_led_3: led_3 { 27 gpios = <&gpioj 6 GPIO_ACTIVE_HIGH>; 28 label = "LD3"; 29 }; 30 }; 31 32 gpio_keys { 33 compatible = "gpio-keys"; 34 35 button_user2: button2 { 36 label = "User 2"; 37 gpios = <&gpiog 8 GPIO_ACTIVE_LOW>; 38 zephyr,code = <INPUT_KEY_0>; 39 }; 40 }; 41 42 aliases { 43 led0 = &orange_led_3; 44 sw0 = &button_user2; 45 }; 46}; 47 48&clk_hsi { 49 status = "okay"; 50}; 51 52&clk_hse { 53 clock-frequency = <DT_FREQ_M(40)>; 54 status = "okay"; 55}; 56 57&rcc { 58 clock-frequency = <DT_FREQ_M(400)>; 59}; 60 61&gpiog { 62 status = "okay"; 63}; 64 65&gpioj { 66 status = "okay"; 67}; 68 69&gpioz { 70 status = "okay"; 71}; 72 73&uart5 { 74 pinctrl-0 = <&uart5_tx_pg9 &uart5_rx_pg10>; 75 pinctrl-names = "default"; 76 current-speed = <115200>; 77 status = "okay"; 78}; 79 80&usart6 { 81 pinctrl-0 = <&usart6_tx_pf13 &usart6_rx_pf14>; 82 pinctrl-names = "default"; 83 current-speed = <115200>; 84 status = "disabled"; 85}; 86 87&i2c8 { 88 pinctrl-0 = <&i2c8_scl_pz4 &i2c8_sda_pz3>; 89 pinctrl-names = "default"; 90 status = "okay"; 91}; 92