Skip to content

Commit bf12998

Browse files
Alain Volmatwsakernel
authored andcommitted
dt-bindings: i2c: document st,stm32mp25-i2c compatible
Add a new compatible st,stm32mp25-i2c for the STM32MP25 series which has only one interrupt line for both events and errors and differs in term of handling of FastModePlus. Signed-off-by: Alain Volmat <[email protected]> Reviewed-by: Conor Dooley <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
1 parent 33a00d9 commit bf12998

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

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

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ allOf:
1919
- st,stm32f7-i2c
2020
- st,stm32mp13-i2c
2121
- st,stm32mp15-i2c
22+
- st,stm32mp25-i2c
2223
then:
2324
properties:
2425
i2c-scl-rising-time-ns:
@@ -41,13 +42,38 @@ allOf:
4142
clock-frequency:
4243
enum: [100000, 400000]
4344

45+
- if:
46+
properties:
47+
compatible:
48+
contains:
49+
enum:
50+
- st,stm32f4-i2c
51+
- st,stm32f7-i2c
52+
- st,stm32mp13-i2c
53+
- st,stm32mp15-i2c
54+
then:
55+
properties:
56+
interrupts:
57+
minItems: 2
58+
59+
interrupt-names:
60+
minItems: 2
61+
else:
62+
properties:
63+
interrupts:
64+
maxItems: 1
65+
66+
interrupt-names:
67+
maxItems: 1
68+
4469
properties:
4570
compatible:
4671
enum:
4772
- st,stm32f4-i2c
4873
- st,stm32f7-i2c
4974
- st,stm32mp13-i2c
5075
- st,stm32mp15-i2c
76+
- st,stm32mp25-i2c
5177

5278
reg:
5379
maxItems: 1
@@ -56,11 +82,13 @@ properties:
5682
items:
5783
- description: interrupt ID for I2C event
5884
- description: interrupt ID for I2C error
85+
minItems: 1
5986

6087
interrupt-names:
6188
items:
6289
- const: event
6390
- const: error
91+
minItems: 1
6492

6593
resets:
6694
maxItems: 1

0 commit comments

Comments
 (0)