Skip to content

Commit f364d2c

Browse files
committed
dt-bindings: i2c: st,stm32-i2c: Make each example a separate entry
Each independent example should be a separate entry. This allows for 'interrupts' to have different cell sizes. Signed-off-by: Rob Herring <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 8b31766 commit f364d2c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Documentation/devicetree/bindings/i2c/st,stm32-i2c.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,9 @@ examples:
112112
clocks = <&rcc 0 149>;
113113
};
114114
115+
- |
116+
#include <dt-bindings/mfd/stm32f7-rcc.h>
117+
#include <dt-bindings/clock/stm32fx-clock.h>
115118
//Example 2 (with st,stm32f7-i2c compatible)
116119
i2c@40005800 {
117120
compatible = "st,stm32f7-i2c";
@@ -124,6 +127,9 @@ examples:
124127
clocks = <&rcc 1 CLK_I2C1>;
125128
};
126129
130+
- |
131+
#include <dt-bindings/mfd/stm32f7-rcc.h>
132+
#include <dt-bindings/clock/stm32fx-clock.h>
127133
//Example 3 (with st,stm32mp15-i2c compatible on stm32mp)
128134
#include <dt-bindings/interrupt-controller/arm-gic.h>
129135
#include <dt-bindings/clock/stm32mp1-clks.h>

0 commit comments

Comments
 (0)