* [PATCH 0/5] i2c: st: add power-domains on stm32mp2x and enable i2c-analog-filter
@ 2025-12-15 12:19 Alain Volmat
2025-12-15 12:19 ` [PATCH 1/5] dt-bindings: i2c: st,stm32-i2c: add 'power-domains' property Alain Volmat
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: Alain Volmat @ 2025-12-15 12:19 UTC (permalink / raw)
To: Andi Shyti, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Maxime Coquelin, Alexandre Torgue, Pierre-Yves MORDRET
Cc: linux-i2c, devicetree, linux-stm32, linux-arm-kernel,
linux-kernel, Alain Volmat
This series add the possibility to indicate a power-domains for an i2c
instance and set the related property for all i2c instances on
stm32mp2x.
It also enables by default the i2c-analog-filter on all instances on
stm32mp2x.
Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
---
Alain Volmat (5):
dt-bindings: i2c: st,stm32-i2c: add 'power-domains' property
arm64: dts: st: add power-domains in all i2c of stm32mp251.dtsi
arm64: dts: st: add power-domains in all i2c of stm32mp231.dtsi
arm64: dts: st: enable i2c analog-filter in stm32mp251.dtsi
arm64: dts: st: enable i2c analog-filter in stm32mp231.dtsi
Documentation/devicetree/bindings/i2c/st,stm32-i2c.yaml | 3 +++
arch/arm64/boot/dts/st/stm32mp231.dtsi | 8 ++++++++
arch/arm64/boot/dts/st/stm32mp251.dtsi | 16 ++++++++++++++++
3 files changed, 27 insertions(+)
---
base-commit: a6961e2ced5190c68acd78a7e372de07f565fcd6
change-id: 20251214-stm32-i2c-mp2x-dt-updates-e3747a0ab68c
Best regards,
--
Alain Volmat <alain.volmat@foss.st.com>
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH 1/5] dt-bindings: i2c: st,stm32-i2c: add 'power-domains' property
2025-12-15 12:19 [PATCH 0/5] i2c: st: add power-domains on stm32mp2x and enable i2c-analog-filter Alain Volmat
@ 2025-12-15 12:19 ` Alain Volmat
2025-12-15 12:19 ` [PATCH 2/5] arm64: dts: st: add power-domains in all i2c of stm32mp251.dtsi Alain Volmat
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Alain Volmat @ 2025-12-15 12:19 UTC (permalink / raw)
To: Andi Shyti, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Maxime Coquelin, Alexandre Torgue, Pierre-Yves MORDRET
Cc: linux-i2c, devicetree, linux-stm32, linux-arm-kernel,
linux-kernel, Alain Volmat
STM32 I2C may be in a power domain which is the case for the STM32MP2x
based boards. Allow a single 'power-domains' entry for STM32 I2C.
Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
---
Documentation/devicetree/bindings/i2c/st,stm32-i2c.yaml | 3 +++
1 file changed, 3 insertions(+)
diff --git a/Documentation/devicetree/bindings/i2c/st,stm32-i2c.yaml b/Documentation/devicetree/bindings/i2c/st,stm32-i2c.yaml
index 457bb0702ed9..64aaa0dfa8fa 100644
--- a/Documentation/devicetree/bindings/i2c/st,stm32-i2c.yaml
+++ b/Documentation/devicetree/bindings/i2c/st,stm32-i2c.yaml
@@ -127,6 +127,9 @@ properties:
wakeup-source: true
+ power-domains:
+ maxItems: 1
+
access-controllers:
minItems: 1
maxItems: 2
--
2.34.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH 2/5] arm64: dts: st: add power-domains in all i2c of stm32mp251.dtsi
2025-12-15 12:19 [PATCH 0/5] i2c: st: add power-domains on stm32mp2x and enable i2c-analog-filter Alain Volmat
2025-12-15 12:19 ` [PATCH 1/5] dt-bindings: i2c: st,stm32-i2c: add 'power-domains' property Alain Volmat
@ 2025-12-15 12:19 ` Alain Volmat
2025-12-15 12:19 ` [PATCH 3/5] arm64: dts: st: add power-domains in all i2c of stm32mp231.dtsi Alain Volmat
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Alain Volmat @ 2025-12-15 12:19 UTC (permalink / raw)
To: Andi Shyti, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Maxime Coquelin, Alexandre Torgue, Pierre-Yves MORDRET
Cc: linux-i2c, devicetree, linux-stm32, linux-arm-kernel,
linux-kernel, Alain Volmat
Add the power-domains property in all i2c instances available
on the stm32mp251.dtsi
Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
---
arch/arm64/boot/dts/st/stm32mp251.dtsi | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/arch/arm64/boot/dts/st/stm32mp251.dtsi b/arch/arm64/boot/dts/st/stm32mp251.dtsi
index a8e6e0f77b83..4d5222698a16 100644
--- a/arch/arm64/boot/dts/st/stm32mp251.dtsi
+++ b/arch/arm64/boot/dts/st/stm32mp251.dtsi
@@ -780,6 +780,7 @@ i2c1: i2c@40120000 {
<&hpdma 28 0x20 0x3021>;
dma-names = "rx", "tx";
access-controllers = <&rifsc 41>;
+ power-domains = <&CLUSTER_PD>;
status = "disabled";
};
@@ -796,6 +797,7 @@ i2c2: i2c@40130000 {
<&hpdma 31 0x20 0x3021>;
dma-names = "rx", "tx";
access-controllers = <&rifsc 42>;
+ power-domains = <&CLUSTER_PD>;
status = "disabled";
};
@@ -812,6 +814,7 @@ i2c3: i2c@40140000 {
<&hpdma 34 0x20 0x3021>;
dma-names = "rx", "tx";
access-controllers = <&rifsc 43>;
+ power-domains = <&CLUSTER_PD>;
status = "disabled";
};
@@ -828,6 +831,7 @@ i2c4: i2c@40150000 {
<&hpdma 37 0x20 0x3021>;
dma-names = "rx", "tx";
access-controllers = <&rifsc 44>;
+ power-domains = <&CLUSTER_PD>;
status = "disabled";
};
@@ -844,6 +848,7 @@ i2c5: i2c@40160000 {
<&hpdma 40 0x20 0x3021>;
dma-names = "rx", "tx";
access-controllers = <&rifsc 45>;
+ power-domains = <&CLUSTER_PD>;
status = "disabled";
};
@@ -860,6 +865,7 @@ i2c6: i2c@40170000 {
<&hpdma 43 0x20 0x3021>;
dma-names = "rx", "tx";
access-controllers = <&rifsc 46>;
+ power-domains = <&CLUSTER_PD>;
status = "disabled";
};
@@ -876,6 +882,7 @@ i2c7: i2c@40180000 {
<&hpdma 46 0x20 0x3021>;
dma-names = "rx", "tx";
access-controllers = <&rifsc 47>;
+ power-domains = <&CLUSTER_PD>;
status = "disabled";
};
@@ -1460,6 +1467,7 @@ i2c8: i2c@46040000 {
<&hpdma 169 0x20 0x3021>;
dma-names = "rx", "tx";
access-controllers = <&rifsc 48>;
+ power-domains = <&CLUSTER_PD>;
status = "disabled";
};
--
2.34.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH 3/5] arm64: dts: st: add power-domains in all i2c of stm32mp231.dtsi
2025-12-15 12:19 [PATCH 0/5] i2c: st: add power-domains on stm32mp2x and enable i2c-analog-filter Alain Volmat
2025-12-15 12:19 ` [PATCH 1/5] dt-bindings: i2c: st,stm32-i2c: add 'power-domains' property Alain Volmat
2025-12-15 12:19 ` [PATCH 2/5] arm64: dts: st: add power-domains in all i2c of stm32mp251.dtsi Alain Volmat
@ 2025-12-15 12:19 ` Alain Volmat
2025-12-15 12:19 ` [PATCH 4/5] arm64: dts: st: enable i2c analog-filter in stm32mp251.dtsi Alain Volmat
2025-12-15 12:19 ` [PATCH 5/5] arm64: dts: st: enable i2c analog-filter in stm32mp231.dtsi Alain Volmat
4 siblings, 0 replies; 6+ messages in thread
From: Alain Volmat @ 2025-12-15 12:19 UTC (permalink / raw)
To: Andi Shyti, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Maxime Coquelin, Alexandre Torgue, Pierre-Yves MORDRET
Cc: linux-i2c, devicetree, linux-stm32, linux-arm-kernel,
linux-kernel, Alain Volmat
Add the power-domains property in all i2c instances available
on the stm32mp231.dtsi
Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
---
arch/arm64/boot/dts/st/stm32mp231.dtsi | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/arch/arm64/boot/dts/st/stm32mp231.dtsi b/arch/arm64/boot/dts/st/stm32mp231.dtsi
index 88e214d395ab..3d2a71e0341f 100644
--- a/arch/arm64/boot/dts/st/stm32mp231.dtsi
+++ b/arch/arm64/boot/dts/st/stm32mp231.dtsi
@@ -359,6 +359,7 @@ i2c1: i2c@40120000 {
<&hpdma 28 0x20 0x3021>;
dma-names = "rx", "tx";
access-controllers = <&rifsc 41>;
+ power-domains = <&cluster_pd>;
status = "disabled";
};
@@ -375,6 +376,7 @@ i2c2: i2c@40130000 {
<&hpdma 31 0x20 0x3021>;
dma-names = "rx", "tx";
access-controllers = <&rifsc 42>;
+ power-domains = <&cluster_pd>;
status = "disabled";
};
@@ -391,6 +393,7 @@ i2c7: i2c@40180000 {
<&hpdma 46 0x20 0x3021>;
dma-names = "rx", "tx";
access-controllers = <&rifsc 47>;
+ power-domains = <&cluster_pd>;
status = "disabled";
};
@@ -664,6 +667,7 @@ i2c8: i2c@46040000 {
<&hpdma 169 0x20 0x3021>;
dma-names = "rx", "tx";
access-controllers = <&rifsc 48>;
+ power-domains = <&cluster_pd>;
status = "disabled";
};
--
2.34.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH 4/5] arm64: dts: st: enable i2c analog-filter in stm32mp251.dtsi
2025-12-15 12:19 [PATCH 0/5] i2c: st: add power-domains on stm32mp2x and enable i2c-analog-filter Alain Volmat
` (2 preceding siblings ...)
2025-12-15 12:19 ` [PATCH 3/5] arm64: dts: st: add power-domains in all i2c of stm32mp231.dtsi Alain Volmat
@ 2025-12-15 12:19 ` Alain Volmat
2025-12-15 12:19 ` [PATCH 5/5] arm64: dts: st: enable i2c analog-filter in stm32mp231.dtsi Alain Volmat
4 siblings, 0 replies; 6+ messages in thread
From: Alain Volmat @ 2025-12-15 12:19 UTC (permalink / raw)
To: Andi Shyti, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Maxime Coquelin, Alexandre Torgue, Pierre-Yves MORDRET
Cc: linux-i2c, devicetree, linux-stm32, linux-arm-kernel,
linux-kernel, Alain Volmat
By default enable the analog filter on all i2c instances on
the stm32mp25x series.
Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
---
arch/arm64/boot/dts/st/stm32mp251.dtsi | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/arch/arm64/boot/dts/st/stm32mp251.dtsi b/arch/arm64/boot/dts/st/stm32mp251.dtsi
index 4d5222698a16..a334e92cac4a 100644
--- a/arch/arm64/boot/dts/st/stm32mp251.dtsi
+++ b/arch/arm64/boot/dts/st/stm32mp251.dtsi
@@ -781,6 +781,7 @@ i2c1: i2c@40120000 {
dma-names = "rx", "tx";
access-controllers = <&rifsc 41>;
power-domains = <&CLUSTER_PD>;
+ i2c-analog-filter;
status = "disabled";
};
@@ -798,6 +799,7 @@ i2c2: i2c@40130000 {
dma-names = "rx", "tx";
access-controllers = <&rifsc 42>;
power-domains = <&CLUSTER_PD>;
+ i2c-analog-filter;
status = "disabled";
};
@@ -815,6 +817,7 @@ i2c3: i2c@40140000 {
dma-names = "rx", "tx";
access-controllers = <&rifsc 43>;
power-domains = <&CLUSTER_PD>;
+ i2c-analog-filter;
status = "disabled";
};
@@ -832,6 +835,7 @@ i2c4: i2c@40150000 {
dma-names = "rx", "tx";
access-controllers = <&rifsc 44>;
power-domains = <&CLUSTER_PD>;
+ i2c-analog-filter;
status = "disabled";
};
@@ -849,6 +853,7 @@ i2c5: i2c@40160000 {
dma-names = "rx", "tx";
access-controllers = <&rifsc 45>;
power-domains = <&CLUSTER_PD>;
+ i2c-analog-filter;
status = "disabled";
};
@@ -866,6 +871,7 @@ i2c6: i2c@40170000 {
dma-names = "rx", "tx";
access-controllers = <&rifsc 46>;
power-domains = <&CLUSTER_PD>;
+ i2c-analog-filter;
status = "disabled";
};
@@ -883,6 +889,7 @@ i2c7: i2c@40180000 {
dma-names = "rx", "tx";
access-controllers = <&rifsc 47>;
power-domains = <&CLUSTER_PD>;
+ i2c-analog-filter;
status = "disabled";
};
@@ -1468,6 +1475,7 @@ i2c8: i2c@46040000 {
dma-names = "rx", "tx";
access-controllers = <&rifsc 48>;
power-domains = <&CLUSTER_PD>;
+ i2c-analog-filter;
status = "disabled";
};
--
2.34.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH 5/5] arm64: dts: st: enable i2c analog-filter in stm32mp231.dtsi
2025-12-15 12:19 [PATCH 0/5] i2c: st: add power-domains on stm32mp2x and enable i2c-analog-filter Alain Volmat
` (3 preceding siblings ...)
2025-12-15 12:19 ` [PATCH 4/5] arm64: dts: st: enable i2c analog-filter in stm32mp251.dtsi Alain Volmat
@ 2025-12-15 12:19 ` Alain Volmat
4 siblings, 0 replies; 6+ messages in thread
From: Alain Volmat @ 2025-12-15 12:19 UTC (permalink / raw)
To: Andi Shyti, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Maxime Coquelin, Alexandre Torgue, Pierre-Yves MORDRET
Cc: linux-i2c, devicetree, linux-stm32, linux-arm-kernel,
linux-kernel, Alain Volmat
By default enable the analog filter on all i2c instances on
the stm32mp23x series.
Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
---
arch/arm64/boot/dts/st/stm32mp231.dtsi | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/arch/arm64/boot/dts/st/stm32mp231.dtsi b/arch/arm64/boot/dts/st/stm32mp231.dtsi
index 3d2a71e0341f..65c0a0de4141 100644
--- a/arch/arm64/boot/dts/st/stm32mp231.dtsi
+++ b/arch/arm64/boot/dts/st/stm32mp231.dtsi
@@ -360,6 +360,7 @@ i2c1: i2c@40120000 {
dma-names = "rx", "tx";
access-controllers = <&rifsc 41>;
power-domains = <&cluster_pd>;
+ i2c-analog-filter;
status = "disabled";
};
@@ -377,6 +378,7 @@ i2c2: i2c@40130000 {
dma-names = "rx", "tx";
access-controllers = <&rifsc 42>;
power-domains = <&cluster_pd>;
+ i2c-analog-filter;
status = "disabled";
};
@@ -394,6 +396,7 @@ i2c7: i2c@40180000 {
dma-names = "rx", "tx";
access-controllers = <&rifsc 47>;
power-domains = <&cluster_pd>;
+ i2c-analog-filter;
status = "disabled";
};
@@ -668,6 +671,7 @@ i2c8: i2c@46040000 {
dma-names = "rx", "tx";
access-controllers = <&rifsc 48>;
power-domains = <&cluster_pd>;
+ i2c-analog-filter;
status = "disabled";
};
--
2.34.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
end of thread, other threads:[~2025-12-15 12:20 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-15 12:19 [PATCH 0/5] i2c: st: add power-domains on stm32mp2x and enable i2c-analog-filter Alain Volmat
2025-12-15 12:19 ` [PATCH 1/5] dt-bindings: i2c: st,stm32-i2c: add 'power-domains' property Alain Volmat
2025-12-15 12:19 ` [PATCH 2/5] arm64: dts: st: add power-domains in all i2c of stm32mp251.dtsi Alain Volmat
2025-12-15 12:19 ` [PATCH 3/5] arm64: dts: st: add power-domains in all i2c of stm32mp231.dtsi Alain Volmat
2025-12-15 12:19 ` [PATCH 4/5] arm64: dts: st: enable i2c analog-filter in stm32mp251.dtsi Alain Volmat
2025-12-15 12:19 ` [PATCH 5/5] arm64: dts: st: enable i2c analog-filter in stm32mp231.dtsi Alain Volmat
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).