Linux IIO development
 help / color / mirror / Atom feed
* inquiry: where to place iio/ bandpass filter driver
@ 2020-04-16  3:48 Chris Ruehl
  2020-04-17  9:23 ` Jonathan Cameron
  0 siblings, 1 reply; 5+ messages in thread
From: Chris Ruehl @ 2020-04-16  3:48 UTC (permalink / raw)
  To: linux-iio

Hi,

I'm working on implementation for ltc6602 dual match bandpass filter spi
driver.
The driver tree has a iio/frequency which has PLLs at time beeing and
I wondering to drop my driver there or have a new directory
freqfilter or bpf ?

This isn't urgent, but would be nice to know.

Regards
Chris

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

* Re: inquiry: where to place iio/ bandpass filter driver
  2020-04-16  3:48 inquiry: where to place iio/ bandpass filter driver Chris Ruehl
@ 2020-04-17  9:23 ` Jonathan Cameron
  2020-04-21  0:37   ` Chris Ruehl
  0 siblings, 1 reply; 5+ messages in thread
From: Jonathan Cameron @ 2020-04-17  9:23 UTC (permalink / raw)
  To: Chris Ruehl; +Cc: linux-iio

On Thu, 16 Apr 2020 11:48:31 +0800
Chris Ruehl <chris.ruehl@gtsys.com.hk> wrote:

> Hi,
> 
> I'm working on implementation for ltc6602 dual match bandpass filter spi
> driver.
> The driver tree has a iio/frequency which has PLLs at time beeing and
> I wondering to drop my driver there or have a new directory
> freqfilter or bpf ?
> 
> This isn't urgent, but would be nice to know.
> 

Perhaps iio/afe?  It's a type of analog front end (or might be used as such).
Is the intent to wrap these up as a consumer of an ADC?  So they ultimately provide
a unified device presentation to userspace of the ADC + filters. Or are
we looking at simply controlling a filter which doesn't connect to an ADC or DAC
visible to us?

I'm not against a new directory for filters though.  Don't be specific on the
type unless we need to be :)

Jonathan

> Regards
> Chris



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

* Re: inquiry: where to place iio/ bandpass filter driver
  2020-04-17  9:23 ` Jonathan Cameron
@ 2020-04-21  0:37   ` Chris Ruehl
  2020-04-22 17:25     ` Jonathan Cameron
  0 siblings, 1 reply; 5+ messages in thread
From: Chris Ruehl @ 2020-04-21  0:37 UTC (permalink / raw)
  To: Jonathan Cameron; +Cc: linux-iio

Jonathan,

On 17/4/2020 5:23 pm, Jonathan Cameron wrote:
> On Thu, 16 Apr 2020 11:48:31 +0800
> Chris Ruehl <chris.ruehl@gtsys.com.hk> wrote:
>
>> Hi,
>>
>> I'm working on implementation for ltc6602 dual match bandpass filter spi
>> driver.
>> The driver tree has a iio/frequency which has PLLs at time beeing and
>> I wondering to drop my driver there or have a new directory
>> freqfilter or bpf ?
>>
>> This isn't urgent, but would be nice to know.
>>
> Perhaps iio/afe?  It's a type of analog front end (or might be used as such).
> Is the intent to wrap these up as a consumer of an ADC?  So they ultimately provide
> a unified device presentation to userspace of the ADC + filters. Or are
> we looking at simply controlling a filter which doesn't connect to an ADC or DAC
> visible to us?
>
> I'm not against a new directory for filters though.  Don't be specific on the
> type unless we need to be :)
>
> Jonathan
I place the driver into afe, makes totally sense to me, but have to create a 
directory
linux/iio/afe which is not existing while I write this.

will be then:
drivers/iio/afe/ltc6602.c
include/linux/iio/afe/ltc6602.h
add entry to drivers/iio/afe/Kconfig + Makefile.

If i have the driver ready and checked I send my patches

Cheers
Chris

>> Regards
>> Chris
>

-- 
GTSYS Limited RFID Technology
9/F, Unit E, R07, Kwai Shing Industrial Building Phase 2,
42-46 Tai Lin Pai Road, Kwai Chung, N.T., Hong Kong
Tel (852) 9079 9521

Disclaimer: https://www.gtsys.com.hk/email/classified.html


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

* Re: inquiry: where to place iio/ bandpass filter driver
  2020-04-21  0:37   ` Chris Ruehl
@ 2020-04-22 17:25     ` Jonathan Cameron
  2020-04-23  4:52       ` Chris Ruehl
  0 siblings, 1 reply; 5+ messages in thread
From: Jonathan Cameron @ 2020-04-22 17:25 UTC (permalink / raw)
  To: Chris Ruehl; +Cc: linux-iio

On Tue, 21 Apr 2020 08:37:13 +0800
Chris Ruehl <chris.ruehl@gtsys.com.hk> wrote:

> Jonathan,
> 
> On 17/4/2020 5:23 pm, Jonathan Cameron wrote:
> > On Thu, 16 Apr 2020 11:48:31 +0800
> > Chris Ruehl <chris.ruehl@gtsys.com.hk> wrote:
> >  
> >> Hi,
> >>
> >> I'm working on implementation for ltc6602 dual match bandpass
> >> filter spi driver.
> >> The driver tree has a iio/frequency which has PLLs at time beeing
> >> and I wondering to drop my driver there or have a new directory
> >> freqfilter or bpf ?
> >>
> >> This isn't urgent, but would be nice to know.
> >>  
> > Perhaps iio/afe?  It's a type of analog front end (or might be used
> > as such). Is the intent to wrap these up as a consumer of an ADC?
> > So they ultimately provide a unified device presentation to
> > userspace of the ADC + filters. Or are we looking at simply
> > controlling a filter which doesn't connect to an ADC or DAC visible
> > to us?
> >
> > I'm not against a new directory for filters though.  Don't be
> > specific on the type unless we need to be :)
> >
> > Jonathan  
> I place the driver into afe, makes totally sense to me, but have to
> create a directory
> linux/iio/afe which is not existing while I write this.

curious.  It was introduced in 4.18.

What tree are you working on top of?

> 
> will be then:
> drivers/iio/afe/ltc6602.c
> include/linux/iio/afe/ltc6602.h

possibly on the header, but most IIO drivers don't have their own
header. For kernel code it is preferred to put as much as possible
directly in the c file.  The exceptions are drivers needing multiple
files or where the header is used in conjunction with a DT binding.

> add entry to drivers/iio/afe/Kconfig + Makefile.
> 
> If i have the driver ready and checked I send my patches

Great.

Jonathan
> 
> Cheers
> Chris
> 
> >> Regards
> >> Chris  
> >  
> 


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

* Re: inquiry: where to place iio/ bandpass filter driver
  2020-04-22 17:25     ` Jonathan Cameron
@ 2020-04-23  4:52       ` Chris Ruehl
  0 siblings, 0 replies; 5+ messages in thread
From: Chris Ruehl @ 2020-04-23  4:52 UTC (permalink / raw)
  To: Jonathan Cameron; +Cc: linux-iio

Hi,

On 23/4/2020 1:25 am, Jonathan Cameron wrote:
> On Tue, 21 Apr 2020 08:37:13 +0800
> Chris Ruehl <chris.ruehl@gtsys.com.hk> wrote:
>
>> Jonathan,
>>
>> On 17/4/2020 5:23 pm, Jonathan Cameron wrote:
>>> On Thu, 16 Apr 2020 11:48:31 +0800
>>> Chris Ruehl <chris.ruehl@gtsys.com.hk> wrote:
>>>   
>>>> Hi,
>>>>
>>>> I'm working on implementation for ltc6602 dual match bandpass
>>>> filter spi driver.
>>>> The driver tree has a iio/frequency which has PLLs at time beeing
>>>> and I wondering to drop my driver there or have a new directory
>>>> freqfilter or bpf ?
>>>>
>>>> This isn't urgent, but would be nice to know.
>>>>   
>>> Perhaps iio/afe?  It's a type of analog front end (or might be used
>>> as such). Is the intent to wrap these up as a consumer of an ADC?
>>> So they ultimately provide a unified device presentation to
>>> userspace of the ADC + filters. Or are we looking at simply
>>> controlling a filter which doesn't connect to an ADC or DAC visible
>>> to us?
>>>
>>> I'm not against a new directory for filters though.  Don't be
>>> specific on the type unless we need to be :)
>>>
>>> Jonathan
>> I place the driver into afe, makes totally sense to me, but have to
>> create a directory
>> linux/iio/afe which is not existing while I write this.
> curious.  It was introduced in 4.18.
>
> What tree are you working on top of?
linux-next , tag 20200408, 20200420

the include/linux/iio/afe not here.


>
>> will be then:
>> drivers/iio/afe/ltc6602.c
>> include/linux/iio/afe/ltc6602.h
> possibly on the header, but most IIO drivers don't have their own
> header. For kernel code it is preferred to put as much as possible
> directly in the c file.  The exceptions are drivers needing multiple
> files or where the header is used in conjunction with a DT binding.
>
>> add entry to drivers/iio/afe/Kconfig + Makefile.
>>
>> If i have the driver ready and checked I send my patches
> Great.
>
> Jonathan
>> Cheers
>> Chris
>>
>>>> Regards
>>>> Chris
>>>   

-- 
GTSYS Limited RFID Technology
9/F, Unit E, R07, Kwai Shing Industrial Building Phase 2,
42-46 Tai Lin Pai Road, Kwai Chung, N.T., Hong Kong
Tel (852) 9079 9521

Disclaimer: https://www.gtsys.com.hk/email/classified.html


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

end of thread, other threads:[~2020-04-23  4:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-16  3:48 inquiry: where to place iio/ bandpass filter driver Chris Ruehl
2020-04-17  9:23 ` Jonathan Cameron
2020-04-21  0:37   ` Chris Ruehl
2020-04-22 17:25     ` Jonathan Cameron
2020-04-23  4:52       ` Chris Ruehl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox