* [PATCH 1/2] ARM: dts: add arm/arm64 include symlinks @ 2017-02-26 6:00 Heiko Stuebner 2017-02-26 6:00 ` [PATCH 2/2] arm64: " Heiko Stuebner 0 siblings, 1 reply; 4+ messages in thread From: Heiko Stuebner @ 2017-02-26 6:00 UTC (permalink / raw) To: linux-arm-kernel Cc: devicetree, Heiko Stuebner, arnd, briannorris, dianders, linux-rockchip, robh+dt, olof Allow including of dtsi files in an architecture-independent manner. Some dtsi files may be shared between architectures and one suggestion was to have symlinks and let these includes get accessed via a #include <arm64/foo.dtsi> So add the necessary symlinks for arm32. Suggested-by: Olof Johansson <olof@lixom.net> Signed-off-by: Heiko Stuebner <heiko@sntech.de> --- Suggested by Olof in response to the patch adding direct symlinks for cros-ec includes. arch/arm/boot/dts/include/arm | 1 + arch/arm/boot/dts/include/arm64 | 1 + 2 files changed, 2 insertions(+) create mode 120000 arch/arm/boot/dts/include/arm create mode 120000 arch/arm/boot/dts/include/arm64 diff --git a/arch/arm/boot/dts/include/arm b/arch/arm/boot/dts/include/arm new file mode 120000 index 000000000000..a96aa0ea9d8c --- /dev/null +++ b/arch/arm/boot/dts/include/arm @@ -0,0 +1 @@ +.. \ No newline at end of file diff --git a/arch/arm/boot/dts/include/arm64 b/arch/arm/boot/dts/include/arm64 new file mode 120000 index 000000000000..074a835fca3e --- /dev/null +++ b/arch/arm/boot/dts/include/arm64 @@ -0,0 +1 @@ +../../../../arm64/boot/dts \ No newline at end of file -- 2.11.0 ^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] arm64: dts: add arm/arm64 include symlinks 2017-02-26 6:00 [PATCH 1/2] ARM: dts: add arm/arm64 include symlinks Heiko Stuebner @ 2017-02-26 6:00 ` Heiko Stuebner [not found] ` <20170226060058.5841-2-heiko-4mtYJXux2i+zQB+pC5nmwQ@public.gmane.org> 0 siblings, 1 reply; 4+ messages in thread From: Heiko Stuebner @ 2017-02-26 6:00 UTC (permalink / raw) To: linux-arm-kernel Cc: devicetree, Heiko Stuebner, arnd, briannorris, dianders, linux-rockchip, robh+dt, olof Allow including of dtsi files in an architecture-independent manner. Some dtsi files may be shared between architectures and one suggestion was to have symlinks and let these includes get accessed via a #include <arm64/foo.dtsi> So add the necessary symlinks for arm32. Suggested-by: Olof Johansson <olof@lixom.net> Signed-off-by: Heiko Stuebner <heiko@sntech.de> --- Suggested by Olof in response to the patch adding direct symlinks for cros-ec includes. Tested with adapted rk3399-Gru dtsi files and while we only need this arm64 version right now, it might make sense to already have both the arm32 and arm64 versions ready. arch/arm64/boot/dts/include/arm | 1 + arch/arm64/boot/dts/include/arm64 | 1 + 2 files changed, 2 insertions(+) create mode 120000 arch/arm64/boot/dts/include/arm create mode 120000 arch/arm64/boot/dts/include/arm64 diff --git a/arch/arm64/boot/dts/include/arm b/arch/arm64/boot/dts/include/arm new file mode 120000 index 000000000000..cf63d80e2b93 --- /dev/null +++ b/arch/arm64/boot/dts/include/arm @@ -0,0 +1 @@ +../../../../arm/boot/dts \ No newline at end of file diff --git a/arch/arm64/boot/dts/include/arm64 b/arch/arm64/boot/dts/include/arm64 new file mode 120000 index 000000000000..a96aa0ea9d8c --- /dev/null +++ b/arch/arm64/boot/dts/include/arm64 @@ -0,0 +1 @@ +.. \ No newline at end of file -- 2.11.0 ^ permalink raw reply related [flat|nested] 4+ messages in thread
[parent not found: <20170226060058.5841-2-heiko-4mtYJXux2i+zQB+pC5nmwQ@public.gmane.org>]
* Re: [PATCH 2/2] arm64: dts: add arm/arm64 include symlinks [not found] ` <20170226060058.5841-2-heiko-4mtYJXux2i+zQB+pC5nmwQ@public.gmane.org> @ 2017-03-20 23:03 ` Brian Norris [not found] ` <20170320230337.GB78325-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org> 0 siblings, 1 reply; 4+ messages in thread From: Brian Norris @ 2017-03-20 23:03 UTC (permalink / raw) To: Heiko Stuebner Cc: devicetree-u79uwXL29TY76Z2rM5mHXA, arnd-r2nGTMty4D4, dianders-F7+t8E8rja9g9hUCZPvPmw, linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, robh+dt-DgEjT+Ai2ygdnm+yROfE0A, olof-nZhT3qVonbNeoWH0uzbU5w, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r Hi, On Sun, Feb 26, 2017 at 07:00:58AM +0100, Heiko Stuebner wrote: > Allow including of dtsi files in an architecture-independent manner. > Some dtsi files may be shared between architectures and one suggestion > was to have symlinks and let these includes get accessed via a > #include <arm64/foo.dtsi> > So add the necessary symlinks for arm32. > > Suggested-by: Olof Johansson <olof-nZhT3qVonbNeoWH0uzbU5w@public.gmane.org> > Signed-off-by: Heiko Stuebner <heiko-4mtYJXux2i+zQB+pC5nmwQ@public.gmane.org> > --- > Suggested by Olof in response to the patch adding direct symlinks > for cros-ec includes. > > Tested with adapted rk3399-Gru dtsi files and while we only need this arm64 > version right now, it might make sense to already have both the arm32 and > arm64 versions ready. FWIW, tested fine here too (for the same platform). I guess this works fine, if it makes people happy. It also allows some weird #include paths. e.g.: #include <arm64/include/arm/include/arm64/rockchip/rk3399.dtsi> I guess we can call that an entertaining feature, and not a bug? Reviewed-by: Brian Norris <briannorris-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org> Tested-by: Brian Norris <briannorris-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org> Where should this go? I'd like not to wait another few months before sending my Gru/Kevin DTS again. Brian > arch/arm64/boot/dts/include/arm | 1 + > arch/arm64/boot/dts/include/arm64 | 1 + > 2 files changed, 2 insertions(+) > create mode 120000 arch/arm64/boot/dts/include/arm > create mode 120000 arch/arm64/boot/dts/include/arm64 > > diff --git a/arch/arm64/boot/dts/include/arm b/arch/arm64/boot/dts/include/arm > new file mode 120000 > index 000000000000..cf63d80e2b93 > --- /dev/null > +++ b/arch/arm64/boot/dts/include/arm > @@ -0,0 +1 @@ > +../../../../arm/boot/dts > \ No newline at end of file > diff --git a/arch/arm64/boot/dts/include/arm64 b/arch/arm64/boot/dts/include/arm64 > new file mode 120000 > index 000000000000..a96aa0ea9d8c > --- /dev/null > +++ b/arch/arm64/boot/dts/include/arm64 > @@ -0,0 +1 @@ > +.. > \ No newline at end of file > -- > 2.11.0 > ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <20170320230337.GB78325-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>]
* Re: [PATCH 2/2] arm64: dts: add arm/arm64 include symlinks [not found] ` <20170320230337.GB78325-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org> @ 2017-03-22 0:20 ` Olof Johansson 0 siblings, 0 replies; 4+ messages in thread From: Olof Johansson @ 2017-03-22 0:20 UTC (permalink / raw) To: Brian Norris Cc: Heiko Stuebner, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, dianders-F7+t8E8rja9g9hUCZPvPmw, linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, arnd-r2nGTMty4D4, devicetree-u79uwXL29TY76Z2rM5mHXA, robh+dt-DgEjT+Ai2ygdnm+yROfE0A On Mon, Mar 20, 2017 at 04:03:37PM -0700, Brian Norris wrote: > Hi, > > On Sun, Feb 26, 2017 at 07:00:58AM +0100, Heiko Stuebner wrote: > > Allow including of dtsi files in an architecture-independent manner. > > Some dtsi files may be shared between architectures and one suggestion > > was to have symlinks and let these includes get accessed via a > > #include <arm64/foo.dtsi> > > So add the necessary symlinks for arm32. > > > > Suggested-by: Olof Johansson <olof-nZhT3qVonbNeoWH0uzbU5w@public.gmane.org> > > Signed-off-by: Heiko Stuebner <heiko-4mtYJXux2i+zQB+pC5nmwQ@public.gmane.org> > > --- > > Suggested by Olof in response to the patch adding direct symlinks > > for cros-ec includes. > > > > Tested with adapted rk3399-Gru dtsi files and while we only need this arm64 > > version right now, it might make sense to already have both the arm32 and > > arm64 versions ready. > > FWIW, tested fine here too (for the same platform). > > I guess this works fine, if it makes people happy. It also allows some > weird #include paths. e.g.: > > #include <arm64/include/arm/include/arm64/rockchip/rk3399.dtsi> > > I guess we can call that an entertaining feature, and not a bug? > > Reviewed-by: Brian Norris <briannorris-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org> > Tested-by: Brian Norris <briannorris-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org> > > Where should this go? I'd like not to wait another few months before > sending my Gru/Kevin DTS again. Checked into shared/dt-symlinks on the arm-soc repo now (and merged into next/dt and next/dt64). Please use that branch as a base for DT material that will use this. -Olof -- 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 ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-03-22 0:20 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2017-02-26 6:00 [PATCH 1/2] ARM: dts: add arm/arm64 include symlinks Heiko Stuebner 2017-02-26 6:00 ` [PATCH 2/2] arm64: " Heiko Stuebner [not found] ` <20170226060058.5841-2-heiko-4mtYJXux2i+zQB+pC5nmwQ@public.gmane.org> 2017-03-20 23:03 ` Brian Norris [not found] ` <20170320230337.GB78325-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org> 2017-03-22 0:20 ` Olof Johansson
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).