mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-02 01:22:25 +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>
29 lines
416 B
Plaintext
29 lines
416 B
Plaintext
/*
|
|
* Copyright (c) 2017 I-SENSE group of ICCS
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/dts-v1/;
|
|
#include <st/stm32f103Xb.dtsi>
|
|
|
|
/ {
|
|
model = "Olimex OLIMEXINO-STM32 board";
|
|
compatible = "st,olimexino_stm32", "st,stm32f103rb";
|
|
|
|
chosen {
|
|
zephyr,console = &usart1;
|
|
zephyr,sram = &sram0;
|
|
zephyr,flash = &flash0;
|
|
};
|
|
};
|
|
|
|
&usart1 {
|
|
current-speed = <115200>;
|
|
status = "ok";
|
|
};
|
|
|
|
&i2c2 {
|
|
status = "ok";
|
|
};
|