mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-01 22:54:01 +00:00
dt-bindings: i2c: i2c-stm32f7: add st,stm32mp15-i2c compatible
Add a new stm32mp15 specific compatible to handle FastMode+ registers which are different on the stm32mp15 compared to the stm32f7 or stm32h7. Signed-off-by: Alain Volmat <alain.volmat@st.com> Signed-off-by: Rob Herring <robh@kernel.org>
This commit is contained in:
parent
470d4116ef
commit
d074684a26
1 changed files with 4 additions and 2 deletions
|
@ -17,6 +17,7 @@ allOf:
|
||||||
contains:
|
contains:
|
||||||
enum:
|
enum:
|
||||||
- st,stm32f7-i2c
|
- st,stm32f7-i2c
|
||||||
|
- st,stm32mp15-i2c
|
||||||
then:
|
then:
|
||||||
properties:
|
properties:
|
||||||
i2c-scl-rising-time-ns:
|
i2c-scl-rising-time-ns:
|
||||||
|
@ -52,6 +53,7 @@ properties:
|
||||||
enum:
|
enum:
|
||||||
- st,stm32f4-i2c
|
- st,stm32f4-i2c
|
||||||
- st,stm32f7-i2c
|
- st,stm32f7-i2c
|
||||||
|
- st,stm32mp15-i2c
|
||||||
|
|
||||||
reg:
|
reg:
|
||||||
maxItems: 1
|
maxItems: 1
|
||||||
|
@ -121,12 +123,12 @@ examples:
|
||||||
clocks = <&rcc 1 CLK_I2C1>;
|
clocks = <&rcc 1 CLK_I2C1>;
|
||||||
};
|
};
|
||||||
|
|
||||||
//Example 3 (with st,stm32f7-i2c compatible on stm32mp)
|
//Example 3 (with st,stm32mp15-i2c compatible on stm32mp)
|
||||||
#include <dt-bindings/interrupt-controller/arm-gic.h>
|
#include <dt-bindings/interrupt-controller/arm-gic.h>
|
||||||
#include <dt-bindings/clock/stm32mp1-clks.h>
|
#include <dt-bindings/clock/stm32mp1-clks.h>
|
||||||
#include <dt-bindings/reset/stm32mp1-resets.h>
|
#include <dt-bindings/reset/stm32mp1-resets.h>
|
||||||
i2c@40013000 {
|
i2c@40013000 {
|
||||||
compatible = "st,stm32f7-i2c";
|
compatible = "st,stm32mp15-i2c";
|
||||||
#address-cells = <1>;
|
#address-cells = <1>;
|
||||||
#size-cells = <0>;
|
#size-cells = <0>;
|
||||||
reg = <0x40013000 0x400>;
|
reg = <0x40013000 0x400>;
|
||||||
|
|
Loading…
Reference in a new issue