mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-27 05:25:21 +00:00
Configure I2C using DT for the following STM32 boards: disco_l475_iot1 nucleo_f401re 96b_carbon olimexino_stm32 Signed-off-by: Yannis Damigos <giannis.damigos@gmail.com>
34 lines
456 B
Plaintext
34 lines
456 B
Plaintext
/*
|
|
* Copyright (c) 2017 Linaro Limited
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/dts-v1/;
|
|
#include <st/stm32f401.dtsi>
|
|
|
|
/ {
|
|
model = "Seeed Studio Carbon 96boards";
|
|
compatible = "seeed,carbon", "st,stm32f401";
|
|
|
|
chosen {
|
|
zephyr,console = &usart1;
|
|
zephyr,sram = &sram0;
|
|
zephyr,flash = &flash0;
|
|
};
|
|
};
|
|
|
|
&usart1 {
|
|
current-speed = <115200>;
|
|
status = "ok";
|
|
};
|
|
|
|
&usart2 {
|
|
current-speed = <115200>;
|
|
status = "ok";
|
|
};
|
|
|
|
&i2c1 {
|
|
status = "ok";
|
|
};
|