-
Notifications
You must be signed in to change notification settings - Fork 6.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dt-binding for timers #20262
Comments
This is what I've come up with so far:
It has a |
@maxvankessel, I'd suggest to have a look to latest timers/pwm bindings. I think this should answer your querry. |
I wanted to use the functionality of master/slave modes on an stm32-h7a3zi-q. @erwango The Datasheet of STM32-H7A2ZI-Q tells there is the "Timer Link feature" avalible. |
@krebsbstn This issue is 3 years old. Lot of things changed during this time. Please open a new issue describing your need. |
Done, can be found here: #52490 |
I can' t wrap my head around the timer binding.
Currently I'm developing on a STM32F4 soc. And using the timer for multiple things.
So I've created an out-of-tree timer driver to support reading HALL sensors (which is a feature of the timer)
I've also supported the advanced timer functionality of the timer to drive a motor.
But every time I copy code from driver to driver to do the same thing, like
get_cycles_per_sec
to read absolute motor speed.Normal procedure would be to ask the base what the tick rate is.
But the stm32 timer has no module.
I do not mind creating code out-of-tree, actually I find it liberating. But the extensibility of the timer-binding is a bit unnatural. Its not as natural as the
spi-controller
spi-device
bindings, e.g.This way, the (bridge-)driver does know on which bus its working.
So timer2 has 4 channels, and I'm using only three of the hall driver, but I would like to know what my who parent is and use parent specific functions. And use the instances instead of using the
dts_fixups.h
Maybe throw in a
#address-cells
andsize
, to make a relative offset. Something like thisAnd eventually support something like this:
Side note: capture would then be part of the iio drivers.
My goal is to start a discussion, maybe it's already on the agenda, then I would like to know where I could find more information.
Thanks
The text was updated successfully, but these errors were encountered: