Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp2492125ybe; Sat, 14 Sep 2019 16:31:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqwIPGW4xXfjDLEXZ17hTDsendHACBRDN+Q4uOZkoNX3bI+JHued+BIewiSWzJwdo8b7dJDU X-Received: by 2002:a50:935d:: with SMTP id n29mr54595235eda.294.1568503894906; Sat, 14 Sep 2019 16:31:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568503894; cv=none; d=google.com; s=arc-20160816; b=XVNnCRuuqY4/c3UKRR6bNRLQ7Tma/8+uyln4cZ4W9IY+p4EkUVs0PkoqEZBC28gRHc 5mcM3JhCH4+C5qXbIwWqwVYAXtN6/bp8Vvyot7KwQ+8Mnc0vMDVanVFG8YWLOY7y3pe6 IKwMGxXF3y4i8ZnCC3VDRyAIhAbMr8cf5vn/eWvDwyzvVP2Sm9NnHWuFRBt/9kRGqUyC AcwPEK3ztussjnWMNIq8V6zHSlpRTpsKsE6OnxM1KpDwetwIG7T3Na7uQpIPC3ME4D1n W3W5KTwJDn3xge/fZsEm/zD1bDp/YbxF2mF83Jq/73ZeFAw1XVha8hh0d2jhrSUjqa91 dykg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date:ironport-sdr; bh=iUxVk6fxgKgC8UVUnTxpgQVAROWaBQUU0UFiQBCKUzk=; b=ZzlohzJCPkiD9BCtQbEJs32RDActzISA755gz9bu1iAINxO3tt4byGAvuUmL79TR1r tQk/93Rz7ClIISbYjrSbDrbLSBwJIOM6MhbOb8rrXaqkHJL6HbaLQ1NMvB6J0X7lWImS Y+WIAexeKduOkLve3wP6Ps4dVnYuTHN8woP/EY+Yrj7vYG6/7FVBGejDAIkQD4yHDtX7 e0vDMeZOCJjQjHpQO2uxLxorPHvqqtHE1vwHd8+gJuuFlbooTMK1eP5XaXA3Mc3FTVz7 OEGrlkHqrk2NEE+QSHYHcSKE3IQ37rPnHe/hQH2xwO5kADHNjBldoO4oBUuq8BBATVQT L6Tg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=microchip.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m14si649372ejq.70.2019.09.14.16.31.10; Sat, 14 Sep 2019 16:31:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731126AbfINTcM (ORCPT + 99 others); Sat, 14 Sep 2019 15:32:12 -0400 Received: from esa2.microchip.iphmx.com ([68.232.149.84]:3691 "EHLO esa2.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731090AbfINTcM (ORCPT ); Sat, 14 Sep 2019 15:32:12 -0400 Received-SPF: Pass (esa2.microchip.iphmx.com: domain of Ludovic.Desroches@microchip.com designates 198.175.253.82 as permitted sender) identity=mailfrom; client-ip=198.175.253.82; receiver=esa2.microchip.iphmx.com; envelope-from="Ludovic.Desroches@microchip.com"; x-sender="Ludovic.Desroches@microchip.com"; x-conformance=spf_only; x-record-type="v=spf1"; x-record-text="v=spf1 mx a:ushub1.microchip.com a:smtpout.microchip.com a:mx1.microchip.iphmx.com a:mx2.microchip.iphmx.com include:servers.mcsv.net include:mktomail.com include:spf.protection.outlook.com ~all" Received-SPF: None (esa2.microchip.iphmx.com: no sender authenticity information available from domain of postmaster@email.microchip.com) identity=helo; client-ip=198.175.253.82; receiver=esa2.microchip.iphmx.com; envelope-from="Ludovic.Desroches@microchip.com"; x-sender="postmaster@email.microchip.com"; x-conformance=spf_only Authentication-Results: esa2.microchip.iphmx.com; dkim=none (message not signed) header.i=none; spf=Pass smtp.mailfrom=Ludovic.Desroches@microchip.com; spf=None smtp.helo=postmaster@email.microchip.com; dmarc=pass (p=none dis=none) d=microchip.com IronPort-SDR: oW5LYTzx9aHQrEJoXyCr+VTZ7OWOhkV996jUWnEAAKCHr/jTdKs2BEWrZ/PAZFK5bmuV2i//PJ x62mB0xMCV1T03Mdv3IA3IfJjZ6HAY0LDSYzrMJCMBB4i7fYt4Dk8vcGsYga4IP82Ri4eNaW9/ oPevkgVK4m3pSkw8lYavj9KllDwbRFjLbA+24wiAyrl6tiTglvu/saZqQFiIVa9XrDUGPuYpju vDsHjQjg82qk43hd6NgdB5O9EMDOFAK/WDNG4PDgAQ8qJOxtnxl2Xqi61Ng/WbyICRgxbBg3DZ y9w= X-IronPort-AV: E=Sophos;i="5.64,506,1559545200"; d="scan'208";a="48928776" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa2.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 14 Sep 2019 12:32:09 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Sat, 14 Sep 2019 12:32:09 -0700 Received: from localhost (10.10.85.251) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.1713.5 via Frontend Transport; Sat, 14 Sep 2019 12:32:09 -0700 Date: Sat, 14 Sep 2019 21:32:08 +0200 From: Ludovic Desroches To: Eugen Hristev - M18282 CC: "wsa@the-dreams.de" , "peda@axentia.se" , "mark.rutland@arm.com" , "linux-i2c@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "alexandre.belloni@bootlin.com" , "robh+dt@kernel.org" , Nicolas Ferre - M43238 Subject: Re: [PATCH v5 0/9] i2c: add support for filters Message-ID: <20190914193208.ranoecmdcstvbapl@sekiro> Mail-Followup-To: Eugen Hristev - M18282 , "wsa@the-dreams.de" , "peda@axentia.se" , "mark.rutland@arm.com" , "linux-i2c@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "alexandre.belloni@bootlin.com" , "robh+dt@kernel.org" , Nicolas Ferre - M43238 References: <1568189911-31641-1-git-send-email-eugen.hristev@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <1568189911-31641-1-git-send-email-eugen.hristev@microchip.com> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 11, 2019 at 10:24:14AM +0200, Eugen Hristev - M18282 wrote: > From: Eugen Hristev > > Hello, > > This series adds support for analog and digital filters for i2c controllers > > This series is based on the series: > [PATCH v2 0/9] i2c: at91: filters support for at91 SoCs > and later > [PATCH v4 0/9] i2c: add support for filters > and enhanced to add the bindings for all controllers plus an extra bindings > for the width of the spikes in nanoseconds (digital filters) and cut-off > frequency (analog filters) > > First, bindings are created for > 'i2c-analog-filter' > 'i2c-digital-filter' > 'i2c-digital-filter-width-ns' > 'i2c-analog-filter-cutoff-frequency' > > The support is added in the i2c core to retrieve filter width/cutoff frequency > and add it to the timings structure. > Next, the at91 driver is enhanced for supporting digital filter, advanced > digital filter (with selectable spike width) and the analog filter. > > Finally the device tree for two boards are modified to make use of the > new properties. > > This series is the result of the comments on the ML in the direction > requested: to make the bindings globally available for i2c drivers. > > Changes in v5: > - renamed i2c-filter-width-ns to i2c-digital-filter-width-ns as this > is applicable only to digital filter > - created new binding i2c-digital-filter-width-ns for analog filters. Acked-by: Ludovic Desroches for at91 stuff. You can keep it for the future if needed as long as changes mainly concerned the generic binding. Regards Ludovic > > Changes in v4: > - renamed i2c-ana-filter to i2c-analog-filter > - renamed i2c-dig-filter to i2c-digital-filter > > Changes in v3: > - made bindings global for i2c controllers and modified accordingly > - gave up PADFCDF bit because it's a lack in datasheet > - the computation on the width of the spike is based on periph clock as it > is done for hold time. > > Changes in v2: > - added device tree bindings and support for enable-ana-filt and > enable-dig-filt > - added the new properties to the DT for sama5d4_xplained/sama5d2_xplained > > Eugen Hristev (9): > dt-bindings: i2c: at91: add new compatible > dt-bindings: i2c: add bindings for i2c analog and digital filter > i2c: add support for filters optional properties > i2c: at91: add new platform support for sam9x60 > i2c: at91: add support for digital filtering > i2c: at91: add support for advanced digital filtering > i2c: at91: add support for analog filtering > ARM: dts: at91: sama5d2_xplained: add analog and digital filter for > i2c > ARM: dts: at91: sama5d4_xplained: add digital filter for i2c > > Documentation/devicetree/bindings/i2c/i2c-at91.txt | 3 +- > Documentation/devicetree/bindings/i2c/i2c.txt | 18 ++++++++ > arch/arm/boot/dts/at91-sama5d2_xplained.dts | 6 +++ > arch/arm/boot/dts/at91-sama5d4_xplained.dts | 1 + > drivers/i2c/busses/i2c-at91-core.c | 38 +++++++++++++++++ > drivers/i2c/busses/i2c-at91-master.c | 49 ++++++++++++++++++++-- > drivers/i2c/busses/i2c-at91.h | 13 ++++++ > drivers/i2c/i2c-core-base.c | 6 +++ > include/linux/i2c.h | 6 +++ > 9 files changed, 136 insertions(+), 4 deletions(-) > > -- > 2.7.4 >