Skip to content
Permalink
Browse files

dts: wb: enable I2C

Enable I2C on STM32WB

Signed-off-by: Roger N'Guessan <roger.nguessan@st.com>
  • Loading branch information...
rgf97 authored and nashif committed Jun 6, 2019
1 parent 0a9d547 commit ddcd4d5a2efd8129ef33939e1ad3f28c64c24a7f
Showing with 27 additions and 0 deletions.
  1. +27 −0 dts/arm/st/wb/stm32wb.dtsi
@@ -7,6 +7,7 @@
#include <arm/armv7-m.dtsi>
#include <dt-bindings/clock/stm32_clock.h>
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/i2c/i2c.h>

/ {
cpus {
@@ -122,6 +123,32 @@
label = "UART_1";
};

i2c1: i2c@40005400 {
compatible = "st,stm32-i2c-v2";
clock-frequency = <I2C_BITRATE_STANDARD>;
#address-cells = <1>;
#size-cells = <0>;
reg = <0x40005400 0x400>;
clocks = <&rcc STM32_CLOCK_BUS_APB1 0x00200000>;
interrupts = <30 0>, <31 0>;
interrupt-names = "event", "error";
status = "disabled";
label= "I2C_1";
};

i2c3: i2c@40005c00 {
compatible = "st,stm32-i2c-v2";
clock-frequency = <I2C_BITRATE_STANDARD>;
#address-cells = <1>;
#size-cells = <0>;
reg = <0x40005c00 0x400>;
clocks = <&rcc STM32_CLOCK_BUS_APB1 0x00800000>;
interrupts = <32 0>, <33 0>;
interrupt-names = "event", "error";
status = "disabled";
label= "I2C_3";
};

lpuart1: serial@40008000 {
compatible = "st,stm32-lpuart", "st,stm32-uart";
reg = <0x40008000 0x400>;

0 comments on commit ddcd4d5

Please sign in to comment.
You can’t perform that action at this time.