Re: [PATCH 1/2] dt-bindings: counter: Add new ti,omap-dmtimer-cap compatible

From
Krzysztof Kozlowski <krzk@kernel.org>
Date
2025-10-07 06:35:34
Also in
lkml
Reply to
Gokul Praveen, 2025-09-26
On 26/09/2025 18:06, Gokul Praveen wrote:
quoted
quoted
+
+  ti,timers:
+    description: Timer instance phandle for the Capture
So the only resource is phandle? That's completely fake device then. NAK.

The OMAP Timer IP can operate in 3 modes: Timer, PWM mode or capture
(mutually exclusive).
The timer/ti,timer-dm.yaml file describes the timer mode of operation.
It encapsulates base IP block and reg property is also part the same
binding.

This node represents the capture mode with phandle reference to the
timer DT node. This is modeled all the same lines as how PWM
functionality is implemented in pwm/ti,omap-dmtimer-pwm.yaml
Different modes do not have their own device nodes. It is still one
device, so one device node.
Now, if this needs to change, please suggest alternate.

One solution is perhaps to add a new property to ti,timer-dm.yaml itself
to indicate the mode of IP?
Not sure, depends what this really is and how it is used. I can also
imagine that consumer defines the mod of operation.

Or mode of operation could be even configured runtime, thus not suitable
for DT at all.

Best regards,
Krzysztof
Thread (12 messages) 12 messages, 4 authors, last reply 2025-10-07
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help