-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
dts: bindings: timer: move a few counter bindings to correct location #81473
dts: bindings: timer: move a few counter bindings to correct location #81473
Conversation
A few bindings in the timer directory (for kernel timing sources) were being used for counters (which can have alarms set, and have a distinct API). Move these bindings to the counters directory. Signed-off-by: Daniel DeGrasse <[email protected]>
9b1864c
to
3a09dd2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm ok with the change, but what would be the right place for hw timers that could be used either as a system timer or as a counter? perhaps the binding is defined in one place and the other binding inherits from it?
Currently there's only a counter driver for this hw counter, but in the future we may introduce a system timer driver as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is a good question. Personally, I would lean towards the timer
folder, but I am not sure if it matters too much. The reason for this PR was that I got myself confused when looking at some counter drivers, and assumed they were timer drivers because of their binding location.
@decsny any preference here?
A few bindings in the timer directory (for kernel timing sources) were being used for counters (which can have alarms set, and have a distinct API). Move these bindings to the counters directory.
Bindings found with: