lkml.org 
[lkml]   [2018]   [Aug]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] spi: spi-geni-qcom: Add SPI driver support for GENI based QUP
Date
On Fri, 2018-08-10 at 21:59 +0530, dkota@codeaurora.org wrote:
>
> Here are my couple of cents:
> SPI controller maximum frequency can be lesser than or equal to Clock
> framework's maximum
> frequency, so should not rely on the Clock framework.

But there is probably some means, via the controller's IP block input
clock, combined with the controller's IP version (from the compatible
string and a device data table), to derive the controller's max clock.

At least, AFAICT, this has been the case for all existing master
drivers.

>
> Now the need is, how to communicate the SPI controller maximum frequency
> to SPI core framework?
> Is it by DTSI entry or hardcoding in the SPI controller driver?
>
> My stand is for providing the DTSI entry.
> Why because, this keeps SPI controller driver generic across the boards
> and portable.
> Also it is not against to Device tree usage because maximum frequency
> is describing the property of the hardware.

My point is that not everything that possibly can go in the device tree
should be placed there, just because it can be. If the master driver
can figure out its max speed, let it do that.
\
 
 \ /
  Last update: 2018-08-10 19:57    [W:2.024 / U:0.184 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site