From: Mark Rutland <mark.rutland-5wv7dgnIgG8@public.gmane.org>
To: Jonas Bonn <jonas-A9uVI2HLR7kOP4wsBPIw7w@public.gmane.org>
Cc: Olof Kindgren
<olof.kindgren-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
Geert Uytterhoeven
<geert-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.org>,
"devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
"linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
Kevin Mehall <contact-U/VwWUtD1TkEIRV9q1A9vg@public.gmane.org>,
linux <linux-73nT9ZVIoz3k1uMJSBkQmQ@public.gmane.org>
Subject: Re: [ORLinux] [PATCH] openrisc: Add DTS and defconfig for DE0-Nano
Date: Fri, 15 Nov 2013 15:16:39 +0000 [thread overview]
Message-ID: <20131115151638.GC24831@e106331-lin.cambridge.arm.com> (raw)
In-Reply-To: <52860FC1.6050500-A9uVI2HLR7kOP4wsBPIw7w@public.gmane.org>
[...]
> >>>> Version number needed. OpenCores wanted "projectname-rtlsvn###" where
> >>>> ###
> >>>> is the SVN commit number of the RTL directory in the project's source
> >>>> repository.
> >>>>
> >>>
> >>> That's gonna need some information diving, as Stefan's orpsoc git
> >>> repositories
> >>> only contains references to orpsocv2 git-svn-ids, not the svn ids of
> >>> the original
> >>> component repositories.
> >>>
> >>
> >> Stefan? Where's the "official" home of these cores nowadays? Have they
> >> been modified since they were copied from OpenCores into orpsocv2?
> >>
> >>
> > Most cores are fetched directly from OpenCores SVN. Out of these, some are
> > patched on the fly by ORPSoC before they are being built. Most of the new
> > cores are only available on github
>
> The version number is important in order to ensure _driver_
> compatibility. As long as the patches don't make changes that requires
> changes to the Linux driver then it's OK to just put the SVN version
> number on them. If incompatible changes are being made, then we really
> need to find a "home" for these cores so that we can manage their
> version numbers in some way.
On this front, I note the CPU node has:
compatible = "opencores,or1200-rtlsvn481";
Should this not be something like:
compatible = "opencores,or1200-rtlsvn481", "opencores,or1200";
That way falling back to an always known compatible string is easier.
>
> >
> > More generally, can Linux use out-of-tree DTS files in an easy way? It's
> > handy to have them in the kernel, but the best fit might actually be to put
> > them in the corresponding orpsocv3 system directory. That would also make
> > it easier to have separate device trees for differently configured FPGAs
> > (they are reprogrammable after all).
>
> Yes, the DTS files don't really belong in the kernel tree at all. They
> belong "near the hardware". For these FPGA projects it definitely makes
> sense to keep (or automatically generate) the DTS files in the RTL build
> system, i.e. orpsoc.
>
> We generally build the DTB into the kernel image itself, but that's not
> really necessary. You just need to get the DTB into memory and pass the
> kernel a pointer to it. If you can find some way to build the DTB into
> the FPGA image (block RAM?) then you've got a self-describing HW image:
> have the OpenRISC core initialize itself with r3 containing the
> address of the DTB and jump to the kernel entry point (reset vector) and
> everything should just work. If you put device tree logic into newlib
> as well then you can use this HW description for (other) bare metal
> apps, as well.
>
> The device tree compiler is in the Linux kernel tree... but it's usable
> outside of the Linux build system, as well. You'll find the binary in
> script/dtc/dtc in the kernel tree... run it with --help to get an idea
> of how it's used. It really isn't supposed to have anything to do with
> Linux at all; it's a generic tool for a generic HW description.
It's worth noting the dtc is managed outside of the kernel [1] and
periodically new features are pulled in. It's available on it's own, and
several distributions package it.
As long as the bindings you are using are not in flux, then it's
entirely possible to use an out-of-tree dts.
Thanks,
Mark.
[1] http://git.jdl.com/gitweb/?p=dtc.git;a=summary
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2013-11-15 15:16 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-09 20:37 [PATCH] openrisc: Add DTS and defconfig for DE0-Nano Geert Uytterhoeven
2013-11-10 5:51 ` Stefan Kristiansson
2013-11-10 8:18 ` Geert Uytterhoeven
2013-11-15 9:52 ` Jonas Bonn
2013-11-15 10:04 ` Andrew Back
2013-11-15 10:10 ` Geert Uytterhoeven
2013-11-15 10:19 ` Andrew Back
2013-11-15 9:50 ` Jonas Bonn
2013-11-15 10:22 ` Geert Uytterhoeven
2013-11-15 10:47 ` Geert Uytterhoeven
2013-11-15 10:57 ` Jonas Bonn
2013-11-15 11:39 ` Olof Kindgren
2013-11-15 11:57 ` Geert Uytterhoeven
2013-11-15 12:12 ` Jonas Bonn
[not found] ` <52860FC1.6050500-A9uVI2HLR7kOP4wsBPIw7w@public.gmane.org>
2013-11-15 15:16 ` Mark Rutland [this message]
[not found] ` <5285EE5A.1070202-A9uVI2HLR7kOP4wsBPIw7w@public.gmane.org>
2013-11-15 15:07 ` Mark Rutland
2013-11-16 8:45 ` Stefan Kristiansson
2013-11-16 11:01 ` Olof Kindgren
2013-11-17 8:44 ` [ORLinux] " Jonas Bonn
2013-11-17 13:46 ` Stefan Kristiansson
[not found] ` <1384029451-16555-1-git-send-email-geert-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.org>
2013-11-20 20:45 ` 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=20131115151638.GC24831@e106331-lin.cambridge.arm.com \
--to=mark.rutland-5wv7dgnigg8@public.gmane.org \
--cc=contact-U/VwWUtD1TkEIRV9q1A9vg@public.gmane.org \
--cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=geert-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.org \
--cc=jonas-A9uVI2HLR7kOP4wsBPIw7w@public.gmane.org \
--cc=linux-73nT9ZVIoz3k1uMJSBkQmQ@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=olof.kindgren-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.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).