devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [RFC PATCH 1/4] spi: spidev: Add Google SPI flash compatible string
       [not found] ` <1432042454-19234-2-git-send-email-javier.martinez@collabora.co.uk>
@ 2015-05-19 19:53   ` Baruch Siach
  2015-05-20  7:35     ` Javier Martinez Canillas
  0 siblings, 1 reply; 2+ messages in thread
From: Baruch Siach @ 2015-05-19 19:53 UTC (permalink / raw)
  To: Javier Martinez Canillas
  Cc: Mark Brown, Krzysztof Kozlowski, linux-samsung-soc, Doug Anderson,
	linux-kernel, Kukjin Kim, Olof Johansson, David Hendricks,
	linux-arm-kernel, devicetree

Hi Javier,

On Tue, May 19, 2015 at 03:34:11PM +0200, Javier Martinez Canillas wrote:
> Google Chromebooks have a SPI flash that is used to store firmware and
> different system parameters and data (i.e: Google Binary Block flags).
> 
> Since there isn't a driver for it yet, the spidev interface is used to
> access the flash from user-space (i.e: using the flashrom tool).
> 
> Add a "google,spi-flash" compatible string so the Device Tree sources
> use it instead of the "spidev" compatible which does not describe the
> real HW and is just a Linux implementation detail.
> 
> A generic "google,spi-flash" OF device ID is used instead of the actual
> vendor/model because these chips are commodity parts that are sourced
> from multiple vendors. So specifying the exact vendor and model in the
> DTS will add a maintenance burden with no real gain (the parts are 100%
> compatible anyways) and will likely result in it simply being wrong for
> a sizeable fraction of the machines.

The compatible string and dt binding should be documented somewhere under 
Documentation/devicetree/bindings/. Also, please keep the dt list on Cc for dt 
related patches.

baruch

-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [RFC PATCH 1/4] spi: spidev: Add Google SPI flash compatible string
  2015-05-19 19:53   ` [RFC PATCH 1/4] spi: spidev: Add Google SPI flash compatible string Baruch Siach
@ 2015-05-20  7:35     ` Javier Martinez Canillas
  0 siblings, 0 replies; 2+ messages in thread
From: Javier Martinez Canillas @ 2015-05-20  7:35 UTC (permalink / raw)
  To: Baruch Siach
  Cc: Mark Brown, Krzysztof Kozlowski, linux-samsung-soc, Doug Anderson,
	linux-kernel, Kukjin Kim, Olof Johansson, David Hendricks,
	linux-arm-kernel, devicetree

Hello Baruch,

On 05/19/2015 09:53 PM, Baruch Siach wrote:
> Hi Javier,
> 
> On Tue, May 19, 2015 at 03:34:11PM +0200, Javier Martinez Canillas wrote:
>> Google Chromebooks have a SPI flash that is used to store firmware and
>> different system parameters and data (i.e: Google Binary Block flags).
>> 
>> Since there isn't a driver for it yet, the spidev interface is used to
>> access the flash from user-space (i.e: using the flashrom tool).
>> 
>> Add a "google,spi-flash" compatible string so the Device Tree sources
>> use it instead of the "spidev" compatible which does not describe the
>> real HW and is just a Linux implementation detail.
>> 
>> A generic "google,spi-flash" OF device ID is used instead of the actual
>> vendor/model because these chips are commodity parts that are sourced
>> from multiple vendors. So specifying the exact vendor and model in the
>> DTS will add a maintenance burden with no real gain (the parts are 100%
>> compatible anyways) and will likely result in it simply being wrong for
>> a sizeable fraction of the machines.
> 
> The compatible string and dt binding should be documented somewhere under 
> Documentation/devicetree/bindings/. Also, please keep the dt list on Cc for dt 
> related patches.
>

Yes, I didn't add a binding doc because this is mostly a RFC to see if
Mark finds the approach feasible but yes I should had included anyways,
sorry about that.

I'll add when posting as a proper patch if he agrees with the solution.
 
> baruch
> 

Best regards,
Javier

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-05-20  7:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1432042454-19234-1-git-send-email-javier.martinez@collabora.co.uk>
     [not found] ` <1432042454-19234-2-git-send-email-javier.martinez@collabora.co.uk>
2015-05-19 19:53   ` [RFC PATCH 1/4] spi: spidev: Add Google SPI flash compatible string Baruch Siach
2015-05-20  7:35     ` Javier Martinez Canillas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).