Skip to contentSkip to conversation

ARM: dts: at91: sama5d27_som1_ek: add i2c filters properties

PATCH Applied [email protected] 2 participants 2 messages Dec 5, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 ARM: dts: at91: sama5d27_som1_ek: add i2c filters properties

From: Eugen Hristev <[email protected]>

Add properties for i2c filters for i2c0 and i2c1 on sama5d27_som1_ek. Noise is affecting communication on i2c for example when connecting i2c camera sensors.

---

Changes in v2:
- properties were at the wrong node for i2c0, need to be at the i2c node not the parent flexcom

 arch/arm/boot/dts/at91-sama5d27_som1_ek.dts | 6 ++++++
 1 file changed, 6 insertions(+)
arch/arm/boot/dts/at91-sama5d27_som1_ek.dts +6 -0
index fca5716..b0853bf 100644
@@ -131,6 +131,9 @@
 					interrupts = <20 IRQ_TYPE_LEVEL_HIGH 7>;
 					dmas = <0>, <0>;
 					dma-names = "tx", "rx";
+					i2c-analog-filter;
+					i2c-digital-filter;
+					i2c-digital-filter-width-ns = <35>;
 					#address-cells = <1>;
 					#size-cells = <0>;
 					clocks = <&pmc PMC_TYPE_PERIPHERAL 20>;
@@ -246,6 +249,9 @@
 
 			i2c1: i2c@fc028000 {
 				dmas = <0>, <0>;
+				i2c-analog-filter;
+				i2c-digital-filter;
+				i2c-digital-filter-width-ns = <35>;
 				pinctrl-names = "default";
 				pinctrl-0 = <&pinctrl_i2c1_default>;
 				status = "okay";
Signature · 1 line
2.7.4
maintainer Applied
#1 lore raw
Quoted 7 lines · On 05/12/2019 07:43:59+0000, [email protected] wrote:

From: Eugen Hristev <[email protected]>

Add properties for i2c filters for i2c0 and i2c1 on sama5d27_som1_ek. Noise is affecting communication on i2c for example when connecting i2c camera sensors.

Quoted 9 lines

---

Changes in v2:
- properties were at the wrong node for i2c0, need to be at the i2c node not the parent flexcom

 arch/arm/boot/dts/at91-sama5d27_som1_ek.dts | 6 ++++++
 1 file changed, 6 insertions(+)

Applied, thanks.

Signature · 3 lines
Alexandre Belloni, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com