Commit bf12998e authored by Alain Volmat's avatar Alain Volmat Committed by Wolfram Sang

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: default avatarAlain Volmat <alain.volmat@foss.st.com>
Reviewed-by: default avatarConor Dooley <conor.dooley@microchip.com>
Signed-off-by: default avatarWolfram Sang <wsa@kernel.org>
parent 33a00d91
...@@ -19,6 +19,7 @@ allOf: ...@@ -19,6 +19,7 @@ allOf:
- st,stm32f7-i2c - st,stm32f7-i2c
- st,stm32mp13-i2c - st,stm32mp13-i2c
- st,stm32mp15-i2c - st,stm32mp15-i2c
- st,stm32mp25-i2c
then: then:
properties: properties:
i2c-scl-rising-time-ns: i2c-scl-rising-time-ns:
...@@ -41,6 +42,30 @@ allOf: ...@@ -41,6 +42,30 @@ allOf:
clock-frequency: clock-frequency:
enum: [100000, 400000] enum: [100000, 400000]
- if:
properties:
compatible:
contains:
enum:
- st,stm32f4-i2c
- st,stm32f7-i2c
- st,stm32mp13-i2c
- st,stm32mp15-i2c
then:
properties:
interrupts:
minItems: 2
interrupt-names:
minItems: 2
else:
properties:
interrupts:
maxItems: 1
interrupt-names:
maxItems: 1
properties: properties:
compatible: compatible:
enum: enum:
...@@ -48,6 +73,7 @@ properties: ...@@ -48,6 +73,7 @@ properties:
- st,stm32f7-i2c - st,stm32f7-i2c
- st,stm32mp13-i2c - st,stm32mp13-i2c
- st,stm32mp15-i2c - st,stm32mp15-i2c
- st,stm32mp25-i2c
reg: reg:
maxItems: 1 maxItems: 1
...@@ -56,11 +82,13 @@ properties: ...@@ -56,11 +82,13 @@ properties:
items: items:
- description: interrupt ID for I2C event - description: interrupt ID for I2C event
- description: interrupt ID for I2C error - description: interrupt ID for I2C error
minItems: 1
interrupt-names: interrupt-names:
items: items:
- const: event - const: event
- const: error - const: error
minItems: 1
resets: resets:
maxItems: 1 maxItems: 1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment