Message ID | 1568189911-31641-1-git-send-email-eugen.hristev@microchip.com (mailing list archive) |
---|---|
Headers | show |
Series | i2c: add support for filters | expand |
On Wed, Sep 11, 2019 at 10:24:14AM +0200, Eugen Hristev - M18282 wrote: > From: Eugen Hristev <eugen.hristev@microchip.com> > > 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 <ludovic.desroches@microchip.com> 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 >
On 11.09.2019 11:24, Eugen Hristev - M18282 wrote: > From: Eugen Hristev <eugen.hristev@microchip.com> > > 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. Hello Wolfram and Peter, Are you happy with the changes in this version? I haven't heard from you since this latest update. I am interested to know if anymore changes are required or maybe we can move further with this support. Thanks ! Eugen > > 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(-) >
On 07.10.2019 10:47, Eugen Hristev wrote: > > > On 11.09.2019 11:24, Eugen Hristev - M18282 wrote: >> From: Eugen Hristev <eugen.hristev@microchip.com> >> >> 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. > > Hello Wolfram and Peter, > > Are you happy with the changes in this version? I haven't heard from you > since this latest update. > I am interested to know if anymore changes are required or maybe we can > move further with this support. > > Thanks ! > Eugen > Gentle ping >> >> 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(-) >>
On Mon, Oct 07, 2019 at 07:53:21AM +0000, Eugen.Hristev@microchip.com wrote: > > > On 11.09.2019 11:24, Eugen Hristev - M18282 wrote: > > From: Eugen Hristev <eugen.hristev@microchip.com> > > > > 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. > > Hello Wolfram and Peter, > > Are you happy with the changes in this version? I haven't heard from you > since this latest update. > I am interested to know if anymore changes are required or maybe we can > move further with this support. So, I had a look now and I am happy. I will give Peter one more day to comment, otherwise I'll apply it tomorrow. Thanks for your patience and keeping at it!
On 2019-10-21 16:05, Wolfram Sang wrote: > On Mon, Oct 07, 2019 at 07:53:21AM +0000, Eugen.Hristev@microchip.com wrote: >> >> >> On 11.09.2019 11:24, Eugen Hristev - M18282 wrote: >>> From: Eugen Hristev <eugen.hristev@microchip.com> >>> >>> 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. >> >> Hello Wolfram and Peter, >> >> Are you happy with the changes in this version? I haven't heard from you >> since this latest update. >> I am interested to know if anymore changes are required or maybe we can >> move further with this support. > > So, I had a look now and I am happy. I will give Peter one more day to > comment, otherwise I'll apply it tomorrow. I had another read-through and only found one nit which is in a separate message. You can add Reviewed-by: Peter Rosin <peda@axentia.se> for the whole series. Cheers, Peter > Thanks for your patience and keeping at it! >
On 21.10.2019 18:23, Peter Rosin wrote: > > On 2019-10-21 16:05, Wolfram Sang wrote: >> On Mon, Oct 07, 2019 at 07:53:21AM +0000, Eugen.Hristev@microchip.com wrote: >>> >>> >>> On 11.09.2019 11:24, Eugen Hristev - M18282 wrote: >>>> From: Eugen Hristev <eugen.hristev@microchip.com> >>>> >>>> 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. >>> >>> Hello Wolfram and Peter, >>> >>> Are you happy with the changes in this version? I haven't heard from you >>> since this latest update. >>> I am interested to know if anymore changes are required or maybe we can >>> move further with this support. >> >> So, I had a look now and I am happy. I will give Peter one more day to >> comment, otherwise I'll apply it tomorrow. > > I had another read-through and only found one nit which is in a separate > message. You can add > > Reviewed-by: Peter Rosin <peda@axentia.se> > > for the whole series. Hello Peter and Wolfram, Thanks for reviewing. Send another version of the patch with the nit ? Or how would you like to proceed ? Thanks, Eugen > > Cheers, > Peter > >> Thanks for your patience and keeping at it! >> > > >
> Send another version of the patch with the nit ?
That would be easiest for me.
Thanks!
On Wed, Sep 11, 2019 at 08:24:14AM +0000, Eugen.Hristev@microchip.com wrote: > From: Eugen Hristev <eugen.hristev@microchip.com> > > 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. Applied patches 1-7 to for-next (patch 3 is v6). Thanks for your patience and thanks to Ludovic and Peter for the review! Patches 8-9 should go via the at91 tree.
On Thu, Oct 24, 2019 at 08:30:35PM +0200, Wolfram Sang wrote: > On Wed, Sep 11, 2019 at 08:24:14AM +0000, Eugen.Hristev@microchip.com wrote: > > From: Eugen Hristev <eugen.hristev@microchip.com> > > > > 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. > > Applied patches 1-7 to for-next (patch 3 is v6). Thanks for your > patience and thanks to Ludovic and Peter for the review! Patches 8-9 > should go via the at91 tree. > Thanks, patch 8 and 9 applied to at91-dt. Regards Ludovic
From: Eugen Hristev <eugen.hristev@microchip.com> 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. 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(-)