On Tue, Dec 4, 2018 at 12:47 PM Alexandre Belloni <alexandre.belloni@xxxxxxxxxxx> wrote: > > Hello Rob, > > On 04/12/2018 12:36:49-0600, Rob Herring wrote: > > Olof, Arnd, > > > > I've put together a script to move the dts files and update the > > makefiles. It doesn't handle files not following a common prefix which > > isn't many and some includes within the dts files will need some fixups > > by hand. > > > > MAINTAINERS will also need updating. > > > > A few questions: > > > > Do we want to move absolutely everything to subdirs? There's quite a > > few platforms with only 1-2 platforms. I haven't added these to the > > list yet, but can. > > > > Do any vendors need another level of directories? davinci, omap, nspire, > > etc. for TI for example. > > > > What to do with armv7m.dtsi? I guess it should remain and we just fixup > > the include. There may be a few other cross vendor things. > > > > > > Sub-arch maintainers, > > 'vendor_map' below is the mapping of file prefix to new subdirectory > > (the SoC vendor prefix). Please comment if there are any issues. > > > > Rob > > > > 8<----------------------------------------------------------- > > #!/usr/bin/env python3 > > > > import os > > import re > > from git import Git > > import glob > > > > vendor_map = { > > 'imx': 'fsl', > > 'ls': 'fsl', > > 'vf': 'fsl', > > 'qcom': 'qcom', > > 'am3' : 'ti', > > 'am4' : 'ti', > > 'am5' : 'ti', > > 'da' : 'ti', > > 'dm' : 'ti', > > 'dra' : 'ti', > > 'keystone' : 'ti', > > 'omap' : 'ti', > > 'nspire' : 'ti', > > 'armada' : 'marvell', > > 'berlin' : 'marvell', > > 'dove' : 'marvell', > > 'kirkwood' : 'marvell', > > 'orion' : 'marvell', > > 'pxa' : 'marvell', > > 'mvebu' : 'marvell', > > 'mmp2' : 'marvell', > > 'arm-' : 'arm', > > 'integ' : 'arm', > > 've' : 'arm', > > 'aspeed' : 'aspeed', > > 'at91' : 'atmel', > > 'sama' : 'atmel', > > Unfortunately, we have many boards without a proper prefix. Wouldn't it > be better to use arch/arm/boot/dts/Makefile and map dtb-$(CONFIG_*) to a > vendor directory? Only 13 boards by my count Atmel. And 2 boards each for omap3 and Renesas. That's manageable to do by hand or just add to the map. Though in hindsight I probably would have used the config. > This way you would be sure to not miss any. This would also ease the > creation of subdirs if we decide to do that.