Skip to content

Commit 4ba3aed

Browse files
benediktibkcarlescufi
authored andcommitted
dts: arm: st: add SMBus devices
Add SMBus devices to all SoCs which have either a st,stm32-i2c-v1 or st,stm32-i2c-v2. Signed-off-by: Benedikt Schmidt <benedikt.schmidt@embedded-solutions.at>
1 parent 0861395 commit 4ba3aed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+577
-0
lines changed

dts/arm/st/c0/stm32c0.dtsi

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,14 @@
343343
io-channels = <&adc1 10>;
344344
status = "disabled";
345345
};
346+
347+
smbus1: smbus1 {
348+
compatible = "st,stm32-smbus";
349+
#address-cells = <1>;
350+
#size-cells = <0>;
351+
i2c = <&i2c1>;
352+
status = "disabled";
353+
};
346354
};
347355

348356
&nvic {

dts/arm/st/f0/stm32f0.dtsi

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,14 @@
364364
io-channels = <&adc1 17>;
365365
status = "disabled";
366366
};
367+
368+
smbus1: smbus1 {
369+
compatible = "st,stm32-smbus";
370+
#address-cells = <1>;
371+
#size-cells = <0>;
372+
i2c = <&i2c1>;
373+
status = "disabled";
374+
};
367375
};
368376

369377
&nvic {

dts/arm/st/f0/stm32f030X8.dtsi

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,12 @@
7777
};
7878
};
7979
};
80+
81+
smbus2: smbus2 {
82+
compatible = "st,stm32-smbus";
83+
#address-cells = <1>;
84+
#size-cells = <0>;
85+
i2c = <&i2c2>;
86+
status = "disabled";
87+
};
8088
};

dts/arm/st/f0/stm32f051.dtsi

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,12 @@
7777
#io-channel-cells = <1>;
7878
};
7979
};
80+
81+
smbus2: smbus2 {
82+
compatible = "st,stm32-smbus";
83+
#address-cells = <1>;
84+
#size-cells = <0>;
85+
i2c = <&i2c2>;
86+
status = "disabled";
87+
};
8088
};

dts/arm/st/f0/stm32f070Xb.dtsi

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,4 +87,12 @@
8787
status = "disabled";
8888
};
8989
};
90+
91+
smbus2: smbus2 {
92+
compatible = "st,stm32-smbus";
93+
#address-cells = <1>;
94+
#size-cells = <0>;
95+
i2c = <&i2c2>;
96+
status = "disabled";
97+
};
9098
};

dts/arm/st/f1/stm32f1.dtsi

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,22 @@
362362
v25 = <1430>;
363363
ntc;
364364
};
365+
366+
smbus1: smbus1 {
367+
compatible = "st,stm32-smbus";
368+
#address-cells = <1>;
369+
#size-cells = <0>;
370+
i2c = <&i2c1>;
371+
status = "disabled";
372+
};
373+
374+
smbus2: smbus2 {
375+
compatible = "st,stm32-smbus";
376+
#address-cells = <1>;
377+
#size-cells = <0>;
378+
i2c = <&i2c2>;
379+
status = "disabled";
380+
};
365381
};
366382

367383
&nvic {

dts/arm/st/f2/stm32f2.dtsi

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -713,6 +713,30 @@
713713
compatible = "usb-nop-xceiv";
714714
#phy-cells = <0>;
715715
};
716+
717+
smbus1: smbus1 {
718+
compatible = "st,stm32-smbus";
719+
#address-cells = <1>;
720+
#size-cells = <0>;
721+
i2c = <&i2c1>;
722+
status = "disabled";
723+
};
724+
725+
smbus2: smbus2 {
726+
compatible = "st,stm32-smbus";
727+
#address-cells = <1>;
728+
#size-cells = <0>;
729+
i2c = <&i2c2>;
730+
status = "disabled";
731+
};
732+
733+
smbus3: smbus3 {
734+
compatible = "st,stm32-smbus";
735+
#address-cells = <1>;
736+
#size-cells = <0>;
737+
i2c = <&i2c3>;
738+
status = "disabled";
739+
};
716740
};
717741

718742
&nvic {

dts/arm/st/f3/stm32f3.dtsi

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,14 @@
463463
compatible = "usb-nop-xceiv";
464464
#phy-cells = <0>;
465465
};
466+
467+
smbus1: smbus1 {
468+
compatible = "st,stm32-smbus";
469+
#address-cells = <1>;
470+
#size-cells = <0>;
471+
i2c = <&i2c1>;
472+
status = "disabled";
473+
};
466474
};
467475

468476
&nvic {

dts/arm/st/f3/stm32f302.dtsi

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,4 +117,20 @@
117117
st,adc-sequencer = <FULLY_CONFIGURABLE>;
118118
};
119119
};
120+
121+
smbus2: smbus2 {
122+
compatible = "st,stm32-smbus";
123+
#address-cells = <1>;
124+
#size-cells = <0>;
125+
i2c = <&i2c2>;
126+
status = "disabled";
127+
};
128+
129+
smbus3: smbus3 {
130+
compatible = "st,stm32-smbus";
131+
#address-cells = <1>;
132+
#size-cells = <0>;
133+
i2c = <&i2c3>;
134+
status = "disabled";
135+
};
120136
};

dts/arm/st/f3/stm32f302Xc.dtsi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,4 @@
4949
};
5050

5151
/delete-node/ &i2c3;
52+
/delete-node/ &smbus3;

0 commit comments

Comments
 (0)