* Devicetree Workshop Follow Up: Adding hierarchy to arch/arm/boot/dts
@ 2017-10-30 16:46 Moritz Fischer
[not found] ` <20171030164626.GA14993-KFgJe6S/L2nknyRNNOXSQ2IaLvZF3x2V0E9HWUfgJXw@public.gmane.org>
0 siblings, 1 reply; 5+ messages in thread
From: Moritz Fischer @ 2017-10-30 16:46 UTC (permalink / raw)
To: devicetree-u79uwXL29TY76Z2rM5mHXA
Cc: grant.likely-s3s/WqlpOiPyB63q8FvJNQ,
rob.herring-QSEj5FYQhm4dnm+yROfE0A,
pantelis.antoniou-OWPKS81ov/FWk0Htik3J/w,
frowand.list-Re5JQEeQqe8AvxtiuMwx3w, linux-I+IVW8TIWO2tmTQ+vhA3Yw
[-- Attachment #1: Type: text/plain, Size: 1256 bytes --]
Hi all,
as discussed in Prague last week, here's my follow up.
A bit of background again as refresher: Some time ago I submitted a
patchset adding dts for some of upcoming boards ([1]).
Arguments brought up against merging it were that we have too many Zynq
based boards already in tree.
During the Devicetree Workshop we had a brief discussion and most people
in the room seemed to be ok with adding the boards, someone suggested
(Arnd?) to add vendor subdirectories like in arm64, i.e. something
like:
arch/arm/boot/dts/xilinx/ni/<board>
where Xilinx would be the SoC vendor and NI the integrator.
or:
arch/arm/boot/dts/xilinx/<board>
arch/arm/boot/dts/ni/<board>
where right now we have:
arch/arm/boot/dts/<board>
The conclusion was I'd follow up on the mailing list and we discuss
here.
So open questions:
1) Is anyone fundamentally opposed to having sub-directories there?
2) Does anyone see any reason why this wouldn't work, i.e. what do we
break?
3) If we do this, should we do it for all boards (I can send a patch for
that) in that case
If we decide to move forward with this, I'll add a bit to documentation,
so next time around it's clear for people what they have to do.
Thanks,
Moritz
[1] https://lkml.org/lkml/2017/9/11/459
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread[parent not found: <20171030164626.GA14993-KFgJe6S/L2nknyRNNOXSQ2IaLvZF3x2V0E9HWUfgJXw@public.gmane.org>]
* Re: Devicetree Workshop Follow Up: Adding hierarchy to arch/arm/boot/dts [not found] ` <20171030164626.GA14993-KFgJe6S/L2nknyRNNOXSQ2IaLvZF3x2V0E9HWUfgJXw@public.gmane.org> @ 2017-10-30 17:09 ` Russell King - ARM Linux [not found] ` <20171030170917.GC27404-l+eeeJia6m9URfEZ8mYm6t73F7V6hmMc@public.gmane.org> 0 siblings, 1 reply; 5+ messages in thread From: Russell King - ARM Linux @ 2017-10-30 17:09 UTC (permalink / raw) To: Moritz Fischer Cc: devicetree-u79uwXL29TY76Z2rM5mHXA, grant.likely-s3s/WqlpOiPyB63q8FvJNQ, rob.herring-QSEj5FYQhm4dnm+yROfE0A, pantelis.antoniou-OWPKS81ov/FWk0Htik3J/w, frowand.list-Re5JQEeQqe8AvxtiuMwx3w On Mon, Oct 30, 2017 at 09:46:26AM -0700, Moritz Fischer wrote: > Hi all, > > as discussed in Prague last week, here's my follow up. > A bit of background again as refresher: Some time ago I submitted a > patchset adding dts for some of upcoming boards ([1]). > Arguments brought up against merging it were that we have too many Zynq > based boards already in tree. > > During the Devicetree Workshop we had a brief discussion and most people > in the room seemed to be ok with adding the boards, someone suggested > (Arnd?) to add vendor subdirectories like in arm64, i.e. something > like: > > arch/arm/boot/dts/xilinx/ni/<board> > > where Xilinx would be the SoC vendor and NI the integrator. I utterly hate deep levels of directories, but I think the ARM64 solution where we /generally/ have one level of additional directories under dts is a good compromise. With 1640 files in arch/arm/boot/dts, it does need splitting up. I'm not sure that splitting it by "integrator" is a good idea for a single level of directory - using the SoC, SoC group, or SoC manufacturer is better. It needs to be a balance between number of subdirectories and number of files in the subdirectory, so using guidance and not setting it as a hard and fast rule makes sense too. What is right for one SoC group may not be right for another group of SoCs. What I think we should avoid is having to needlessly descend into all of the subdirectories, so it needs to be based around the Kconfig symbols we're already using. -- RMK's Patch system: http://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line in suburbia: sync at 8.8Mbps down 630kbps up According to speedtest.net: 8.21Mbps down 510kbps up -- 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] 5+ messages in thread
[parent not found: <20171030170917.GC27404-l+eeeJia6m9URfEZ8mYm6t73F7V6hmMc@public.gmane.org>]
* Re: Devicetree Workshop Follow Up: Adding hierarchy to arch/arm/boot/dts [not found] ` <20171030170917.GC27404-l+eeeJia6m9URfEZ8mYm6t73F7V6hmMc@public.gmane.org> @ 2017-10-30 18:14 ` Moritz Fischer [not found] ` <20171030181409.6mvjud3yq3kiidfv-Ppq/Onv5LareNifRVEsEL8tP64cpqEsb9YMAkpvKFVYYEKSXGTPxz3fg1oLTg1jAAL8bYrjMMd8@public.gmane.org> 0 siblings, 1 reply; 5+ messages in thread From: Moritz Fischer @ 2017-10-30 18:14 UTC (permalink / raw) To: Russell King - ARM Linux Cc: Moritz Fischer, devicetree-u79uwXL29TY76Z2rM5mHXA, grant.likely-s3s/WqlpOiPyB63q8FvJNQ, rob.herring-QSEj5FYQhm4dnm+yROfE0A, pantelis.antoniou-OWPKS81ov/FWk0Htik3J/w, frowand.list-Re5JQEeQqe8AvxtiuMwx3w Hi Russell, On Mon, Oct 30, 2017 at 05:09:17PM +0000, Russell King - ARM Linux wrote: > On Mon, Oct 30, 2017 at 09:46:26AM -0700, Moritz Fischer wrote: > > Hi all, > > > > as discussed in Prague last week, here's my follow up. > > A bit of background again as refresher: Some time ago I submitted a > > patchset adding dts for some of upcoming boards ([1]). > > Arguments brought up against merging it were that we have too many Zynq > > based boards already in tree. > > > > During the Devicetree Workshop we had a brief discussion and most people > > in the room seemed to be ok with adding the boards, someone suggested > > (Arnd?) to add vendor subdirectories like in arm64, i.e. something > > like: > > > > arch/arm/boot/dts/xilinx/ni/<board> > > > > where Xilinx would be the SoC vendor and NI the integrator. > > I utterly hate deep levels of directories, but I think the ARM64 > solution where we /generally/ have one level of additional > directories under dts is a good compromise. With 1640 files in > arch/arm/boot/dts, it does need splitting up. > > I'm not sure that splitting it by "integrator" is a good idea > for a single level of directory - using the SoC, SoC group, or > SoC manufacturer is better. It needs to be a balance between > number of subdirectories and number of files in the subdirectory, > so using guidance and not setting it as a hard and fast rule > makes sense too. What is right for one SoC group may not be > right for another group of SoCs. Ok so in our case that would be: arch/arm/boot/dts/zynq-*.dts -> arch/arm/boot/dts/xilinx or: arch/arm/boot/dts/zynq-*.dts -> arch/arm/boot/dts/zynq > > What I think we should avoid is having to needlessly descend into > all of the subdirectories, so it needs to be based around the > Kconfig symbols we're already using. So as example only add the arch/arm/boot/dts/xilinx subdirectory based on CONFIG_ARCH_ZYNQ? > > -- > RMK's Patch system: http://www.armlinux.org.uk/developer/patches/ > FTTC broadband for 0.8mile line in suburbia: sync at 8.8Mbps down 630kbps up > According to speedtest.net: 8.21Mbps down 510kbps up Cheers, Moritz -- 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] 5+ messages in thread
[parent not found: <20171030181409.6mvjud3yq3kiidfv-Ppq/Onv5LareNifRVEsEL8tP64cpqEsb9YMAkpvKFVYYEKSXGTPxz3fg1oLTg1jAAL8bYrjMMd8@public.gmane.org>]
* Re: Devicetree Workshop Follow Up: Adding hierarchy to arch/arm/boot/dts [not found] ` <20171030181409.6mvjud3yq3kiidfv-Ppq/Onv5LareNifRVEsEL8tP64cpqEsb9YMAkpvKFVYYEKSXGTPxz3fg1oLTg1jAAL8bYrjMMd8@public.gmane.org> @ 2017-10-30 19:51 ` Rob Herring [not found] ` <CAL_Jsq+VkULu=1q6aPT9GKQhR2b1V1ATWB5yA6EWAr69xY1_8Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 0 siblings, 1 reply; 5+ messages in thread From: Rob Herring @ 2017-10-30 19:51 UTC (permalink / raw) To: Moritz Fischer Cc: Russell King - ARM Linux, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Grant Likely, Rob Herring, Pantelis Antoniou, Frank Rowand On Mon, Oct 30, 2017 at 1:14 PM, Moritz Fischer <mdf-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> wrote: > Hi Russell, > > On Mon, Oct 30, 2017 at 05:09:17PM +0000, Russell King - ARM Linux wrote: >> On Mon, Oct 30, 2017 at 09:46:26AM -0700, Moritz Fischer wrote: >> > Hi all, >> > >> > as discussed in Prague last week, here's my follow up. >> > A bit of background again as refresher: Some time ago I submitted a >> > patchset adding dts for some of upcoming boards ([1]). >> > Arguments brought up against merging it were that we have too many Zynq >> > based boards already in tree. First I've seen this. Are the revX versions long lived? I could see some pushback on having multiple revisions, but adding the board itself seems silly. >> > During the Devicetree Workshop we had a brief discussion and most people >> > in the room seemed to be ok with adding the boards, someone suggested >> > (Arnd?) to add vendor subdirectories like in arm64, i.e. something >> > like: >> > >> > arch/arm/boot/dts/xilinx/ni/<board> >> > >> > where Xilinx would be the SoC vendor and NI the integrator. >> >> I utterly hate deep levels of directories, but I think the ARM64 >> solution where we /generally/ have one level of additional >> directories under dts is a good compromise. With 1640 files in >> arch/arm/boot/dts, it does need splitting up. Agreed. >> I'm not sure that splitting it by "integrator" is a good idea >> for a single level of directory - using the SoC, SoC group, or >> SoC manufacturer is better. It needs to be a balance between >> number of subdirectories and number of files in the subdirectory, >> so using guidance and not setting it as a hard and fast rule >> makes sense too. What is right for one SoC group may not be >> right for another group of SoCs. > > Ok so in our case that would be: > > arch/arm/boot/dts/zynq-*.dts -> arch/arm/boot/dts/xilinx Yes. I would like the rule to be "use the SoC vendor prefix". Unfortunately, we haven't quite followed that for arm64 with things like exynos and freescale. > or: > > arch/arm/boot/dts/zynq-*.dts -> arch/arm/boot/dts/zynq No. >> >> What I think we should avoid is having to needlessly descend into >> all of the subdirectories, so it needs to be based around the >> Kconfig symbols we're already using. > > So as example only add the arch/arm/boot/dts/xilinx subdirectory based on > CONFIG_ARCH_ZYNQ? No. Look at arch/arm64/boot/dts/Makefile and you will see why that doesn't work. If this can be entirely scripted, I would suggest writing the script and we provide the script to Linus to run just before an -rc1 (or arm-soc folks can run it as long as all dts changes go thru their tree). Also, pay attention that we don't break the devicetree-rebasing.git tree. Rob -- 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] 5+ messages in thread
[parent not found: <CAL_Jsq+VkULu=1q6aPT9GKQhR2b1V1ATWB5yA6EWAr69xY1_8Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: Devicetree Workshop Follow Up: Adding hierarchy to arch/arm/boot/dts [not found] ` <CAL_Jsq+VkULu=1q6aPT9GKQhR2b1V1ATWB5yA6EWAr69xY1_8Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2017-10-30 20:51 ` Moritz Fischer 0 siblings, 0 replies; 5+ messages in thread From: Moritz Fischer @ 2017-10-30 20:51 UTC (permalink / raw) To: Rob Herring Cc: Moritz Fischer, Russell King - ARM Linux, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Grant Likely, Rob Herring, Pantelis Antoniou, Frank Rowand Hi Rob, On Mon, Oct 30, 2017 at 07:51:26PM +0000, Rob Herring wrote: > On Mon, Oct 30, 2017 at 1:14 PM, Moritz Fischer <mdf-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> wrote: > > Hi Russell, > > > > On Mon, Oct 30, 2017 at 05:09:17PM +0000, Russell King - ARM Linux wrote: > >> On Mon, Oct 30, 2017 at 09:46:26AM -0700, Moritz Fischer wrote: > >> > Hi all, > >> > > >> > as discussed in Prague last week, here's my follow up. > >> > A bit of background again as refresher: Some time ago I submitted a > >> > patchset adding dts for some of upcoming boards ([1]). > >> > Arguments brought up against merging it were that we have too many Zynq > >> > based boards already in tree. > > First I've seen this. Are the revX versions long lived? I could see > some pushback on having multiple revisions, but adding the board > itself seems silly. Well, RevC were shipped to customer X and are deployed in the field, revD has some fixes, customers have them, RevE might have some more fixes, meanwhile I need to support all of them. Note how I did not send a Rev1, which is the one no customer will ever get hands on. > > >> > During the Devicetree Workshop we had a brief discussion and most people > >> > in the room seemed to be ok with adding the boards, someone suggested > >> > (Arnd?) to add vendor subdirectories like in arm64, i.e. something > >> > like: > >> > > >> > arch/arm/boot/dts/xilinx/ni/<board> > >> > > >> > where Xilinx would be the SoC vendor and NI the integrator. > >> > >> I utterly hate deep levels of directories, but I think the ARM64 > >> solution where we /generally/ have one level of additional > >> directories under dts is a good compromise. With 1640 files in > >> arch/arm/boot/dts, it does need splitting up. > > Agreed. > > >> I'm not sure that splitting it by "integrator" is a good idea > >> for a single level of directory - using the SoC, SoC group, or > >> SoC manufacturer is better. It needs to be a balance between > >> number of subdirectories and number of files in the subdirectory, > >> so using guidance and not setting it as a hard and fast rule > >> makes sense too. What is right for one SoC group may not be > >> right for another group of SoCs. > > > > Ok so in our case that would be: > > > > arch/arm/boot/dts/zynq-*.dts -> arch/arm/boot/dts/xilinx > > Yes. I would like the rule to be "use the SoC vendor prefix". > Unfortunately, we haven't quite followed that for arm64 with things > like exynos and freescale. Ok, let's do this then. > > > or: > > > > arch/arm/boot/dts/zynq-*.dts -> arch/arm/boot/dts/zynq > > No. > > >> > >> What I think we should avoid is having to needlessly descend into > >> all of the subdirectories, so it needs to be based around the > >> Kconfig symbols we're already using. > > > > So as example only add the arch/arm/boot/dts/xilinx subdirectory based on > > CONFIG_ARCH_ZYNQ? > > No. Look at arch/arm64/boot/dts/Makefile and you will see why that doesn't work. Ok, will take a look. > > If this can be entirely scripted, I would suggest writing the script > and we provide the script to Linus to run just before an -rc1 (or > arm-soc folks can run it as long as all dts changes go thru their > tree). Also, pay attention that we don't break the > devicetree-rebasing.git tree. Alright, let me see if I can make this work, > > Rob Thanks for your feedback, Moritz -- 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] 5+ messages in thread
end of thread, other threads:[~2017-10-30 20:51 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-30 16:46 Devicetree Workshop Follow Up: Adding hierarchy to arch/arm/boot/dts Moritz Fischer
[not found] ` <20171030164626.GA14993-KFgJe6S/L2nknyRNNOXSQ2IaLvZF3x2V0E9HWUfgJXw@public.gmane.org>
2017-10-30 17:09 ` Russell King - ARM Linux
[not found] ` <20171030170917.GC27404-l+eeeJia6m9URfEZ8mYm6t73F7V6hmMc@public.gmane.org>
2017-10-30 18:14 ` Moritz Fischer
[not found] ` <20171030181409.6mvjud3yq3kiidfv-Ppq/Onv5LareNifRVEsEL8tP64cpqEsb9YMAkpvKFVYYEKSXGTPxz3fg1oLTg1jAAL8bYrjMMd8@public.gmane.org>
2017-10-30 19:51 ` Rob Herring
[not found] ` <CAL_Jsq+VkULu=1q6aPT9GKQhR2b1V1ATWB5yA6EWAr69xY1_8Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-10-30 20:51 ` Moritz Fischer
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox