From: Daniel Palmer <daniel@0x0f.com>
To: DTML <devicetree@vger.kernel.org>
Cc: Daniel Palmer <daniel@0x0f.com>
Subject: How to describe a device that sits across two busses.
Date: Sat, 28 Nov 2020 12:53:13 +0900 [thread overview]
Message-ID: <CAFr9PXkX3UnLzGsPntXSum1978BkDJ1sn5XCp9Ze9KnHdmBDrw@mail.gmail.com> (raw)
Hi all,
I have a driver for a SPI flash controller that I want to mainline
soon and I'm cleaning up the device tree part for it at the moment.
This device has registers that are children in a "simple bus" and a
memory mapped area that is in the soc simple bus because it's not
connected via the same bus as the registers.
Right now I have the driver's node in the soc simple bus like this:
isp: isp@1f001000 {
compatible = "mstar,msc313-isp";
reg = <0x1f001000 0x400>,
<0x1f002c00 0x200>,
<0x1f002e00 0x200>,
<0x14000000 0x1000000>;
};
Really the first 3 reg values belong to this simple bus:
riu: bus@1f000000 {
compatible = "simple-bus";
reg = <0x1f000000 0x00400000>;
};
Is there a good way to describe this? I think maybe the memory mapped
area should be another node (syscon?) and that should be referenced in
the driver node and the driver node itself nested in the riu simple
bus where the registers are.
Thanks,
Daniel
next reply other threads:[~2020-11-28 18:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-28 3:53 Daniel Palmer [this message]
2020-11-30 19:11 ` How to describe a device that sits across two busses Rob Herring
2020-12-01 12:45 ` Daniel Palmer
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=CAFr9PXkX3UnLzGsPntXSum1978BkDJ1sn5XCp9Ze9KnHdmBDrw@mail.gmail.com \
--to=daniel@0x0f.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).