Skip to content

Commit

Permalink
dts: wb: enable I2C
Browse files Browse the repository at this point in the history
Enable I2C on STM32WB

Signed-off-by: Roger N'Guessan <roger.nguessan@st.com>
  • Loading branch information
rogernguessan authored and nashif committed Jun 7, 2019
1 parent 0a9d547 commit ddcd4d5
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions dts/arm/st/wb/stm32wb.dtsi
Expand Up @@ -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 {
Expand Down Expand Up @@ -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>;
Expand Down

0 comments on commit ddcd4d5

Please sign in to comment.