Thread (1 message) 1 message, 1 author, 2023-06-08

Re: [RFC PATCH 0/1] Categorize ARM dts directory

From: Rob Herring <robh+dt@kernel.org>
Date: 2023-06-08 20:36:27
Also in: chrome-platform, linux-amlogic, linux-arm-msm, linux-aspeed, linux-devicetree, linux-omap, linux-renesas-soc, linux-rockchip, linux-samsung-soc, linux-sunxi, linux-tegra, lkml

On Tue, May 9, 2023 at 4:55 PM Jonathan Neuschäfer
[off-list ref] wrote:
On Tue, May 02, 2023 at 02:40:19PM -0500, Rob Herring wrote:
[...]
quoted
I've dusted off my script and made a branch[1] with the result.
There's just a couple of fixes needed after the script is run (see the
top commit). The cross arch includes are all fixed up by the script.
dtbs_install maintains a flat install. I compared the number of .dtbs
before and after to check the script.

I think the only issue remaining is finalizing the mapping of
platforms to subdirs. What I have currently is a mixture of SoC
families and vendors. The most notable are all the Freescale/NXP
platforms, pxa, socfpga, and stm32. It's not consistent with arm64
either. Once that's finalized, I still need to go update MAINTAINERS.

Here's the current mapping:

vendor_map = {
[...]
quoted
    'aspeed' : 'aspeed',
    'ast2' : 'aspeed',
    'facebook' : 'aspeed',
    'ibm' : 'aspeed',
quoted
    'openbmc' : 'aspeed',
The openbmc flash layouts are currently only used by aspeed devicetrees,
but they don't really depend on any aspeed details. It would be possible
to reuse them in Nuvoton BMC devicetrees in the future, for example.

In that sense, I think putting them in a separate "openbmc" directory
would be slightly better.
Could be used on arm64 or riscv too at some point. We do some cross
arch includes, but IMO it would be better to move to
include/dt-bindings/ or somewhere outside of arch/. Other common
things I didn't move. I could do that here too. I prefer to that the
sub-directories are just chip vendors/families.

Rob

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help