Thread (32 messages) 32 messages, 4 authors, 2022-12-08

Re: [PATCH v2 7/9] dt-bindings: spi: mtk-snfi: Add read latch latency property

From: Krzysztof Kozlowski <hidden>
Date: 2022-12-08 08:47:58
Also in: linux-devicetree, linux-mediatek, linux-spi, lkml

On 08/12/2022 02:15, Xiangsheng Hou (侯祥胜) wrote:
quoted
quoted
There have two rx related timing properties in spi-peripheral-
props.
The rx-sample-delay-ns have been used in Mediatek snfi driver to
adjust
controller sample delay.
However another spi-rx-delay-us is in microseconds. Take 52MHz for
example, the clock cycle will be 19.23ns which lower than 1us. This
may
not easy to by one clock cycle.
I agree, but nothing prevents you from adding your own property for
that.

I propose "mediatek,rx-latch-latency-ns" or "mediatek,rx-latency-ns", 
so that
we can specify the delay in nanoseconds: in that case, when we
specify 19ns,
the driver will safely round that resulting in 52MHz == 19.23ns =>
19ns valid.
Will be fixed in next series.
I am fine with this approach, but after explanations I was also fine
with clock cycles as unit. It's still quite specific unit and I think
several timings on buses are clock-cycle dependent, not time dependent.

Best regards,
Krzysztof


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help