mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-16 21:21:57 +00:00
Add I2C support to STM32F3DISCOVERY board Signed-off-by: Yannis Damigos <giannis.damigos@gmail.com>
44 lines
707 B
Plaintext
44 lines
707 B
Plaintext
/*
|
|
* Copyright (c) 2017 I-SENSE group of ICCS
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/dts-v1/;
|
|
#include <st/stm32f303.dtsi>
|
|
|
|
/ {
|
|
model = "STMicroelectronics STM32F3DISCOVERY board";
|
|
compatible = "st,stm32f3discovery", "st,stm32f303";
|
|
|
|
chosen {
|
|
zephyr,console = &usart1;
|
|
zephyr,sram = &sram0;
|
|
zephyr,flash = &flash0;
|
|
};
|
|
};
|
|
|
|
&usart1 {
|
|
current-speed = <115200>;
|
|
pinctrl-0 = <&usart1_pins_d>;
|
|
pinctrl-names = "default";
|
|
status = "ok";
|
|
};
|
|
|
|
&usart2 {
|
|
current-speed = <115200>;
|
|
pinctrl-0 = <&usart2_pins_a>;
|
|
pinctrl-names = "default";
|
|
status = "ok";
|
|
};
|
|
|
|
&i2c1 {
|
|
status = "ok";
|
|
clock-frequency = <I2C_BITRATE_FAST>;
|
|
};
|
|
|
|
&i2c2 {
|
|
status = "ok";
|
|
clock-frequency = <I2C_BITRATE_FAST>;
|
|
};
|