From: "Jérôme Pouiller" <jerome.pouiller@silabs.com>
To: devicetree@vger.kernel.org
Subject: Need some advices on Yaml conversion
Date: Tue, 06 Oct 2020 16:56:59 +0200 [thread overview]
Message-ID: <2367272.gIzBuxHi73@pc-42> (raw)
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
next reply other threads:[~2020-10-06 14:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-06 14:56 Jérôme Pouiller [this message]
2020-10-06 20:08 ` Need some advices on Yaml conversion Rob Herring
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2367272.gIzBuxHi73@pc-42 \
--to=jerome.pouiller@silabs.com \
--cc=devicetree@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).