devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Need some advices on Yaml conversion
@ 2020-10-06 14:56 Jérôme Pouiller
  2020-10-06 20:08 ` Rob Herring
  0 siblings, 1 reply; 2+ messages in thread
From: Jérôme Pouiller @ 2020-10-06 14:56 UTC (permalink / raw)
  To: devicetree

Hello,

In order to get the wfx driver out of the staging area, I try to convert
the following DT bindings to YAML:

  drivers/staging/wfx/Documentation/devicetree/bindings/net/wireless/siliabs,wfx.txt  

Unfortunately, the conversion is not straight forward. The WFx device can
be connected on SPI or on SDIO. The requirement for the two interfaces are
different. For exemple:
  - <reg> should be set to 1 in SDIO, while it corresponds to the Chip
    Select in SPI
  - The attribute reset-gpios is not available in SDIO
  - The "interrupt" does not have the same exact meaning in SPI and SDIO
    (it is required in SPI, but not in SDIO)

I have considered to declare two different devices, but I am not sure the
dtbs_checker will appreciate to have two definitions of the same device.
In add, some attribute descriptions would be redundant.

I also considered to use conditional statements, but I didn't find how to
check the bus that the device currently use.

Does anyone has some advice about the way to achieve that?

Thank you,

-- 
Jérôme Pouiller



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

end of thread, other threads:[~2020-10-06 20:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-10-06 14:56 Need some advices on Yaml conversion Jérôme Pouiller
2020-10-06 20:08 ` Rob Herring

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).