linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] ARM: dts: at91: sama5d2_icp: enable digital filter for I2C nodes
@ 2021-07-27 13:41 Codrin Ciubotariu
  2021-07-27 14:45 ` Nicolas Ferre
  0 siblings, 1 reply; 2+ messages in thread
From: Codrin Ciubotariu @ 2021-07-27 13:41 UTC (permalink / raw)
  To: devicetree, linux-arm-kernel, linux-kernel
  Cc: robh+dt, nicolas.ferre, alexandre.belloni, ludovic.desroches,
	Codrin Ciubotariu

SAMA5D2's I2C controller supports digital filter, so let's enable it.

Signed-off-by: Codrin Ciubotariu <codrin.ciubotariu@microchip.com>
---

Changes in v2:
 - removed Acked-by tag

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

diff --git a/arch/arm/boot/dts/at91-sama5d2_icp.dts b/arch/arm/boot/dts/at91-sama5d2_icp.dts
index bd64721fa23c..1c235fc5f788 100644
--- a/arch/arm/boot/dts/at91-sama5d2_icp.dts
+++ b/arch/arm/boot/dts/at91-sama5d2_icp.dts
@@ -184,6 +184,8 @@ i2c6: i2c@600 {
 		dmas = <0>, <0>;
 		pinctrl-names = "default";
 		pinctrl-0 = <&pinctrl_flx4_default>;
+		i2c-digital-filter;
+		i2c-digital-filter-width-ns = <35>;
 		status = "okay";
 
 		mcp16502@5b {
@@ -307,6 +309,8 @@ regulator-state-mem {
 &i2c0 { /* mikrobus i2c */
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_mikrobus_i2c>;
+	i2c-digital-filter;
+	i2c-digital-filter-width-ns = <35>;
 	status = "okay";
 };
 
@@ -314,6 +318,8 @@ &i2c1 {
 	dmas = <0>, <0>;
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_i2c1_default>;
+	i2c-digital-filter;
+	i2c-digital-filter-width-ns = <35>;
 	status = "okay";
 
 	eeprom@50 {
-- 
2.30.2


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH v2] ARM: dts: at91: sama5d2_icp: enable digital filter for I2C nodes
  2021-07-27 13:41 [PATCH v2] ARM: dts: at91: sama5d2_icp: enable digital filter for I2C nodes Codrin Ciubotariu
@ 2021-07-27 14:45 ` Nicolas Ferre
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Ferre @ 2021-07-27 14:45 UTC (permalink / raw)
  To: Codrin Ciubotariu, devicetree, linux-arm-kernel, linux-kernel
  Cc: robh+dt, alexandre.belloni, ludovic.desroches

On 27/07/2021 at 15:41, Codrin Ciubotariu wrote:
> SAMA5D2's I2C controller supports digital filter, so let's enable it.
> 
> Signed-off-by: Codrin Ciubotariu <codrin.ciubotariu@microchip.com>
> ---
> 
> Changes in v2:
>   - removed Acked-by tag

And I add it back here ;-) :
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>

I queue the patch in at91-dt for 5.15.

Thanks Codrin, best regards,
   Nicolas

> 
>   arch/arm/boot/dts/at91-sama5d2_icp.dts | 6 ++++++
>   1 file changed, 6 insertions(+)
> 
> diff --git a/arch/arm/boot/dts/at91-sama5d2_icp.dts b/arch/arm/boot/dts/at91-sama5d2_icp.dts
> index bd64721fa23c..1c235fc5f788 100644
> --- a/arch/arm/boot/dts/at91-sama5d2_icp.dts
> +++ b/arch/arm/boot/dts/at91-sama5d2_icp.dts
> @@ -184,6 +184,8 @@ i2c6: i2c@600 {
>   		dmas = <0>, <0>;
>   		pinctrl-names = "default";
>   		pinctrl-0 = <&pinctrl_flx4_default>;
> +		i2c-digital-filter;
> +		i2c-digital-filter-width-ns = <35>;
>   		status = "okay";
>   
>   		mcp16502@5b {
> @@ -307,6 +309,8 @@ regulator-state-mem {
>   &i2c0 { /* mikrobus i2c */
>   	pinctrl-names = "default";
>   	pinctrl-0 = <&pinctrl_mikrobus_i2c>;
> +	i2c-digital-filter;
> +	i2c-digital-filter-width-ns = <35>;
>   	status = "okay";
>   };
>   
> @@ -314,6 +318,8 @@ &i2c1 {
>   	dmas = <0>, <0>;
>   	pinctrl-names = "default";
>   	pinctrl-0 = <&pinctrl_i2c1_default>;
> +	i2c-digital-filter;
> +	i2c-digital-filter-width-ns = <35>;
>   	status = "okay";
>   
>   	eeprom@50 {
> 


-- 
Nicolas Ferre

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-07-27 14:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-27 13:41 [PATCH v2] ARM: dts: at91: sama5d2_icp: enable digital filter for I2C nodes Codrin Ciubotariu
2021-07-27 14:45 ` Nicolas Ferre

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).