* Re: [RFC PATCH 0/1] Categorize ARM dts directory
[not found] ` <CAMuHMdWNTE48MFy6fqxAsfMWz9b6E7dVNXtXtESP95sxk2PGwA@mail.gmail.com>
@ 2023-04-25 15:57 ` Rob Herring
2023-04-27 7:37 ` Matthias Brugger
2023-05-02 8:15 ` Arnd Bergmann
0 siblings, 2 replies; 35+ messages in thread
From: Rob Herring @ 2023-04-25 15:57 UTC (permalink / raw)
To: Geert Uytterhoeven, Arnd Bergmann, Olof Johansson
Cc: Ansuel Smith, Krzysztof Kozlowski, Krzysztof Kozlowski,
linux-arm-kernel, devicetree, linux-kernel, linux-actions,
linux-sunxi, linux-omap, linux-amlogic, linux-arm-kernel,
linux-aspeed, linux-rpi-kernel, chrome-platform,
linux-renesas-soc, linux-samsung-soc, linux-stm32, kernel,
linux-mediatek, openbmc, linux-tegra, linux-oxnas, linux-arm-msm,
linux-unisoc, linux-rockchip, linux-realtek-soc
On Tue, Apr 25, 2023 at 2:28 AM Geert Uytterhoeven <geert@linux-m68k.org> wrote:
>
> Hi Rob,
>
> On Tue, Apr 25, 2023 at 12:16 AM Rob Herring <robh+dt@kernel.org> wrote:
> > I have a script[1] that does the conversion written the last time this
> > came up. Just have to agree on directory names. I think the easiest
> > would be for Arnd/Olof to run it at the end of a merge window before
> > rc1.
>
> "emev2" and "sh7" are missing for renesas.
No doubt it's been bitrotting (or I may have missed some).
> Does your script also cater for .dts files not matching any pattern,
> but including a .dtsi file that does match a pattern?
I assume I built everything after moving, but maybe not...
That's all just "details". First, we need agreement on a) moving
things to subdirs and b) doing it 1-by-1 or all at once. So far we've
been stuck on a) for being 'too much churn'.
One nice thing with subdirs is 'make CHECK_DTBS=y
arch/arm/boot/dts/foo/' can build everything for a platform family
without having to mess with the kconfig. Maybe most folks don't care,
but I do. My CI job running schema checks looks like this to deal with
grouping the arm dts files (this list is probably out of date too, but
less so):
if [ "$ARCH" = "arm" ]; then
VENDOR_LIST="alphascale alpine artpec aspeed axm bcm cx9
(ecx|highbank) \
efm ep7 imx1 imx23 imx28 imx27 imx5 imx6 imx7 ls vf qcom \
(am3|am4|am5|dra|keystone|omap|compulab|logicpd|elpida|motorola-cpcap|da|dm)
\
nspire armada dove kirkwood orion mvebu mmp2 berlin pxa
(arm-|integ|mps|ve) \
(at91|sama|usb_|tny_|mpa1600|animeo_ip|aks-cdu|ethernut5|evk-pro3|pm9g45|ge86)
\
exynos s3c s5p gemini (hisi|hi3|hip) mt meson moxa nuvo
lpc owl ox8 \
(r7|r8|r9|emev2|sh73a|gr-|iwg) (rk|rv11) socfpga stm
(sti|st-pin) ste \
spear (sun|axp) tegra uniph (vt8500|wm8) xen zynq"
else
VENDOR_LIST=$(ls arch/$ARCH/boot/dts/ | xargs)
fi
Rob
^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: [RFC PATCH 0/1] Categorize ARM dts directory
[not found] ` <CA+_ehUw3eAEHRsi1ATSKeK4jtX+EoVSwUodNL3bcpTJaX-r9cA@mail.gmail.com>
@ 2023-04-27 7:34 ` Matthias Brugger
0 siblings, 0 replies; 35+ messages in thread
From: Matthias Brugger @ 2023-04-27 7:34 UTC (permalink / raw)
To: Ansuel Smith, Rob Herring
Cc: Krzysztof Kozlowski, Krzysztof Kozlowski, linux-arm-kernel,
devicetree, linux-kernel, linux-actions, linux-sunxi, linux-omap,
linux-amlogic, linux-arm-kernel, linux-aspeed, linux-rpi-kernel,
chrome-platform, linux-renesas-soc, linux-samsung-soc,
linux-stm32, kernel, linux-mediatek, openbmc, linux-tegra,
linux-oxnas, linux-arm-msm, linux-unisoc, linux-rockchip,
linux-realtek-soc, Arnd Bergmann, Olof Johansson
On 25/04/2023 00:23, Ansuel Smith wrote:
> Il giorno mar 25 apr 2023 alle ore 00:10 Rob Herring
> <robh+dt@kernel.org> ha scritto:
>>
>> On Tue, Mar 29, 2022 at 8:27 AM Ansuel Smith <ansuelsmth@gmail.com> wrote:
>>>
>>> On Tue, Mar 29, 2022 at 03:20:18PM +0200, Krzysztof Kozlowski wrote:
>>>> On 28/03/2022 02:09, Ansuel Smith wrote:
>>>>> Hi,
>>>>> as the title say, the intention of this ""series"" is to finally categorize
>>>>> the ARM dts directory in subdirectory for each oem.
>>>>>
>>>>> The main reason for this is that it became unpractical to handle 2600
>>>>> dts files and try to even understand/edit/check the situation for a
>>>>> specific target.
>>>>>
>>>>> In arm64 we already have this kind of separation and I honestly think
>>>>> that this was never proposed for ARM due to the fact that there are
>>>>> 2600+ files to sort and the fact that it will be a mess to merge this
>>>>> entirely but IMHO with a little bit of effort we can finally solve this
>>>>> problem and have a well organized directory just like arm64.
>>>>>
>>>>> Some prerequisite on how this work was done:
>>>>> - This comes entirely from a python script created by me for the task.
>>>>> linked here [1]
>>>>> - I had to manually categorize all the different arch in the makefile
>>>>> based on the oem. I searched every arch on the internet trying to
>>>>> understand the correct oem. I hope they are correct but I would love
>>>>> some comments about them.
>>>>> - This current ""series"" is all squashed in one big commit to better
>>>>> receive comments for this. The final version ideally would have all
>>>>> changes in separate commits. The script can already do this, it's just
>>>>> commented.
>>>>>
>>>>> Here is a list of some discoveries while doing all the sorting.
>>>>> These are totally additional reason why we need this.
>>>>>
>>>>> While creating the script I discovered some funny things:
>>>>> - We have orphan dts! There are dts that are never compiled and are
>>>>> there just for reference. We would never have noticed this without this
>>>>> change and probably nobody noticed it. They are currently all listed
>>>>> in the python script.
>>>>> - We have dtsi shared across different oem. My current solution for them
>>>>> is: NOT SORT THEM and leave them in the generic directory and create a
>>>>> link in each oem dts that points to these dtsi. This is to try in
>>>>> every way possible to skip any additional changes to the dts.
>>>>> Current dtsi that suffers from this are only 3. (listed in the script)
>>>>> - arm64 dts and dtsi reference ARM dts. Obviously this change would cause
>>>>> broken include for these special dtsi. The script creates a dependency
>>>>> table of the entire arm64 directory and fix every broken dependency
>>>>> (hoping they all use a sane include logic... regex is used to parse
>>>>> all the different dependency)
>>>>>
>>>>> So in short the script does the following steps:
>>>>> 1. Enumerate all the action to do... (dts to move, scan dependency for
>>>>> the dts...)
>>>>> 2. Generate the arm64 dependency
>>>>> 3. Creates the Makefile
>>>>> 4. Generate the Makefiles for the current oem
>>>>> 5. Move all the related dts and dtsi for the current oem
>>>>> 6. Check broken dependency and fix them by editing the dts and writing
>>>>> the correct include (or fix any symbolic link)
>>>>>
>>>>> This is an output that describes all the things done by the script [2]
>>>>>
>>>>> I really hope I didn't commit any logic mistake in the script but most
>>>>> of the work should be done.
>>>>>
>>>>
>>>> +Cc Arnd and Olof,
>>>>
>>>> Ansuel,
>>>> Thanks for you patch. Please cc the SoC maintainers in such submissions.
>>>> It seems that you got some quite nice discussion, but still the core
>>>> folks are not Cced, so no one would be able to take your patch...
>>>>
>>>
>>> I had some problem with gmail and sending mail too much users. I put Rob
>>> and You and all the various list to try to workaround the "gmail spam
>>> protection"
>>>
>>>> I am pretty sure we were discussing such split idea in the past and it
>>>> did not get traction, but I cannot recall the exact discussion.
>>>>
>>>
>>> I think the main issue here is how to handle bot and how problematic is
>>> to merge this. As written in the cover letter the final version of this
>>> should be a big series of 50+ patch with every commit specific to each
>>> oem. In theory we should be able to merge the different oem separately
>>> and try to at least start the categorization.
>>> Another idea I got to at least have a "migration path" is to convert
>>> every dts in the dts/ directory to a symbolic link that target the dts
>>> in the correct oem. But I assume that would fix only part of the problem
>>> and git am will still be problematic.
>>
>> I have a script[1] that does the conversion written the last time this
>> came up. Just have to agree on directory names. I think the easiest
>> would be for Arnd/Olof to run it at the end of a merge window before
>> rc1.
>>
>> I'm very much in favor of this happening especially before *any*
>> overlays are added to add to the mess (it's probably already
>> happened).
>>
>> Rob
>>
>> [1] https://lore.kernel.org/all/20181204183649.GA5716@bogus/
>
> Hi Rob,
> thanks for recovering this. I remember also providing a script.
>
> Anyway considering the amount of stuff to move, I feel like some
> OEM might be problematic to move due to rebase and merging problems.
>
> We should consider accepting moving only some and keep other
> in the unsorted path. And move them at the first time possible with
> the help of the maintainers.
>
> One main blocker of this is some qcom dts that are linked to arm64
> directory, so for some dts special care is needed.
>
Same happens for broadcom RaspberryPi DTS. The arm64 ones include the arm ones.
Regards,
Matthias
^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: [RFC PATCH 0/1] Categorize ARM dts directory
2023-04-25 15:57 ` [RFC PATCH 0/1] Categorize ARM dts directory Rob Herring
@ 2023-04-27 7:37 ` Matthias Brugger
2023-04-27 7:46 ` Geert Uytterhoeven
2023-05-02 8:15 ` Arnd Bergmann
1 sibling, 1 reply; 35+ messages in thread
From: Matthias Brugger @ 2023-04-27 7:37 UTC (permalink / raw)
To: Rob Herring, Geert Uytterhoeven, Arnd Bergmann, Olof Johansson
Cc: Ansuel Smith, Krzysztof Kozlowski, Krzysztof Kozlowski,
linux-arm-kernel, devicetree, linux-kernel, linux-actions,
linux-sunxi, linux-omap, linux-amlogic, linux-arm-kernel,
linux-aspeed, linux-rpi-kernel, chrome-platform,
linux-renesas-soc, linux-samsung-soc, linux-stm32, kernel,
linux-mediatek, openbmc, linux-tegra, linux-oxnas, linux-arm-msm,
linux-unisoc, linux-rockchip, linux-realtek-soc
On 25/04/2023 17:57, Rob Herring wrote:
> On Tue, Apr 25, 2023 at 2:28 AM Geert Uytterhoeven <geert@linux-m68k.org> wrote:
>>
>> Hi Rob,
>>
>> On Tue, Apr 25, 2023 at 12:16 AM Rob Herring <robh+dt@kernel.org> wrote:
>>> I have a script[1] that does the conversion written the last time this
>>> came up. Just have to agree on directory names. I think the easiest
>>> would be for Arnd/Olof to run it at the end of a merge window before
>>> rc1.
>>
>> "emev2" and "sh7" are missing for renesas.
>
> No doubt it's been bitrotting (or I may have missed some).
>
>> Does your script also cater for .dts files not matching any pattern,
>> but including a .dtsi file that does match a pattern?
>
> I assume I built everything after moving, but maybe not...
>
> That's all just "details". First, we need agreement on a) moving
> things to subdirs and b) doing it 1-by-1 or all at once. So far we've
> been stuck on a) for being 'too much churn'.
>
I think it makes sense to move them and probably the best way to do so is, as
you proposed: that Arnd or Olof run the script to move them just before -rc1
Regards,
Matthias
> One nice thing with subdirs is 'make CHECK_DTBS=y
> arch/arm/boot/dts/foo/' can build everything for a platform family
> without having to mess with the kconfig. Maybe most folks don't care,
> but I do. My CI job running schema checks looks like this to deal with
> grouping the arm dts files (this list is probably out of date too, but
> less so):
>
> if [ "$ARCH" = "arm" ]; then
> VENDOR_LIST="alphascale alpine artpec aspeed axm bcm cx9
> (ecx|highbank) \
> efm ep7 imx1 imx23 imx28 imx27 imx5 imx6 imx7 ls vf qcom \
> (am3|am4|am5|dra|keystone|omap|compulab|logicpd|elpida|motorola-cpcap|da|dm)
> \
> nspire armada dove kirkwood orion mvebu mmp2 berlin pxa
> (arm-|integ|mps|ve) \
> (at91|sama|usb_|tny_|mpa1600|animeo_ip|aks-cdu|ethernut5|evk-pro3|pm9g45|ge86)
> \
> exynos s3c s5p gemini (hisi|hi3|hip) mt meson moxa nuvo
> lpc owl ox8 \
> (r7|r8|r9|emev2|sh73a|gr-|iwg) (rk|rv11) socfpga stm
> (sti|st-pin) ste \
> spear (sun|axp) tegra uniph (vt8500|wm8) xen zynq"
> else
> VENDOR_LIST=$(ls arch/$ARCH/boot/dts/ | xargs)
> fi
>
> Rob
^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: [RFC PATCH 0/1] Categorize ARM dts directory
2023-04-27 7:37 ` Matthias Brugger
@ 2023-04-27 7:46 ` Geert Uytterhoeven
0 siblings, 0 replies; 35+ messages in thread
From: Geert Uytterhoeven @ 2023-04-27 7:46 UTC (permalink / raw)
To: Matthias Brugger
Cc: Rob Herring, Arnd Bergmann, Olof Johansson, Ansuel Smith,
Krzysztof Kozlowski, Krzysztof Kozlowski, linux-arm-kernel,
devicetree, linux-kernel, linux-actions, linux-sunxi, linux-omap,
linux-amlogic, linux-arm-kernel, linux-aspeed, linux-rpi-kernel,
chrome-platform, linux-renesas-soc, linux-samsung-soc,
linux-stm32, kernel, linux-mediatek, openbmc, linux-tegra,
linux-oxnas, linux-arm-msm, linux-unisoc, linux-rockchip,
linux-realtek-soc
On Thu, Apr 27, 2023 at 9:37 AM Matthias Brugger <matthias.bgg@gmail.com> wrote:
> On 25/04/2023 17:57, Rob Herring wrote:
> > On Tue, Apr 25, 2023 at 2:28 AM Geert Uytterhoeven <geert@linux-m68k.org> wrote:
> >> On Tue, Apr 25, 2023 at 12:16 AM Rob Herring <robh+dt@kernel.org> wrote:
> >>> I have a script[1] that does the conversion written the last time this
> >>> came up. Just have to agree on directory names. I think the easiest
> >>> would be for Arnd/Olof to run it at the end of a merge window before
> >>> rc1.
> >>
> >> "emev2" and "sh7" are missing for renesas.
> >
> > No doubt it's been bitrotting (or I may have missed some).
> >
> >> Does your script also cater for .dts files not matching any pattern,
> >> but including a .dtsi file that does match a pattern?
> >
> > I assume I built everything after moving, but maybe not...
> >
> > That's all just "details". First, we need agreement on a) moving
> > things to subdirs and b) doing it 1-by-1 or all at once. So far we've
> > been stuck on a) for being 'too much churn'.
> >
>
> I think it makes sense to move them and probably the best way to do so is, as
> you proposed: that Arnd or Olof run the script to move them just before -rc1
FTR, no objections from my side.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: [RFC PATCH 0/1] Categorize ARM dts directory
2023-04-25 15:57 ` [RFC PATCH 0/1] Categorize ARM dts directory Rob Herring
2023-04-27 7:37 ` Matthias Brugger
@ 2023-05-02 8:15 ` Arnd Bergmann
2023-05-02 19:40 ` Rob Herring
1 sibling, 1 reply; 35+ messages in thread
From: Arnd Bergmann @ 2023-05-02 8:15 UTC (permalink / raw)
To: Rob Herring, Geert Uytterhoeven, Olof Johansson
Cc: Christian Marangi, Krzysztof Kozlowski, Krzysztof Kozlowski,
linux-arm-kernel, devicetree, linux-kernel, linux-actions,
linux-sunxi, Linux-OMAP, linux-amlogic, linux-arm-kernel,
linux-aspeed, linux-rpi-kernel, chrome-platform, Linux-Renesas,
linux-samsung-soc, linux-stm32, kernel, linux-mediatek, openbmc,
linux-tegra, linux-oxnas@groups.io, linux-arm-msm, linux-unisoc,
linux-rockchip, linux-realtek-soc
On Tue, Apr 25, 2023, at 17:57, Rob Herring wrote:
> On Tue, Apr 25, 2023 at 2:28 AM Geert Uytterhoeven <geert@linux-m68k.org> wrote:
>
>> Does your script also cater for .dts files not matching any pattern,
>> but including a .dtsi file that does match a pattern?
>
> I assume I built everything after moving, but maybe not...
>
> That's all just "details". First, we need agreement on a) moving
> things to subdirs and b) doing it 1-by-1 or all at once. So far we've
> been stuck on a) for being 'too much churn'.
Sorry for missing most of the discussion last week. The script sounds
fine to me, the only reason I didn't want to do this in the past is that
we had the plan to move platforms out of the kernel tree to an external
repository and I wanted to do this platform at a time and also only move
each one once. I don't think that is going to happen anytime soon now,
so let's just do your script.
Can you send me the script and/or a pull request of the resulting
tree based on my soc/dt branch? Everything is merged upstream,
and I think git-merge would handle the remaining merges with any
other changes in mainline.
Arnd
^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: [RFC PATCH 0/1] Categorize ARM dts directory
[not found] ` <45bc13a8-1442-2dd3-b9ea-1ed2f5962bac@arm.com>
@ 2023-05-02 19:01 ` Rob Herring
0 siblings, 0 replies; 35+ messages in thread
From: Rob Herring @ 2023-05-02 19:01 UTC (permalink / raw)
To: Robin Murphy
Cc: Nicolas Ferre, Daniel Palmer, Ansuel Smith, Claudiu Beznea,
Alexandre Belloni, Santiago Esteban, Cristian Birsan,
Krzysztof Kozlowski, linux-arm-kernel, DTML,
Linux Kernel Mailing List, linux-actions, linux-sunxi, linux-omap,
linux-amlogic, linux-arm-kernel, linux-aspeed, linux-rpi-kernel,
chrome-platform, linux-renesas-soc, linux-samsung-soc,
linux-stm32, kernel, linux-mediatek, openbmc, linux-tegra,
linux-oxnas, linux-arm-msm, linux-unisoc, linux-rockchip,
linux-realtek-soc
On Tue, Apr 25, 2023 at 11:21 AM Robin Murphy <robin.murphy@arm.com> wrote:
>
> On 29/03/2022 9:50 am, Nicolas Ferre wrote:
> > Ansuel, All,
> >
> > On 28/03/2022 at 10:55, Daniel Palmer wrote:
> >> Hi Ansuel
> >>
> >> On Mon, 28 Mar 2022 at 09:09, Ansuel Smith <ansuelsmth@gmail.com> wrote:
> >>>
> >>> Hi,
> >>> as the title say, the intention of this ""series"" is to finally
> >>> categorize
> >>> the ARM dts directory in subdirectory for each oem.
> >>
> >> While I agree with this change and think it's for the good (browsing
> >> the ARM dts directory at the moment is frustrating..) I think
> >> buildroot and others need to be told about this as it'll potentially
> >> break their kernel build scripting for ARM and probably messes up the
> >> configs they have for existing boards.
> >
> > This aspect mustn't be underestimated and I anticipate lots of issues
> > during a long time on this particular topic of "build systems".
> >
> > Another aspect is CI and public or private testing farms we all have
> > running.
>
> Yet another is if this affects what `make dtbs_install` does (I don't
> know for sure, but I'd be inclined to suspect it might). Some distros
> use that to deliver the DTBs as part of their kernel package, so if
> paths suddenly change it could break end users' bootloader setups too.
Indeed, this came up last time. Turns out I had already implemented
support to maintain the flat install. I just re-wrote it since
Makefile.dtbinst changed completely since then.
Rob
^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: [RFC PATCH 0/1] Categorize ARM dts directory
2023-05-02 8:15 ` Arnd Bergmann
@ 2023-05-02 19:40 ` Rob Herring
2023-05-02 20:02 ` Krzysztof Kozlowski
` (9 more replies)
0 siblings, 10 replies; 35+ messages in thread
From: Rob Herring @ 2023-05-02 19:40 UTC (permalink / raw)
To: Arnd Bergmann
Cc: Geert Uytterhoeven, Olof Johansson, Christian Marangi,
Krzysztof Kozlowski, Krzysztof Kozlowski, linux-arm-kernel,
devicetree, linux-kernel, linux-actions, linux-sunxi, Linux-OMAP,
linux-amlogic, linux-arm-kernel, linux-aspeed, linux-rpi-kernel,
chrome-platform, Linux-Renesas, linux-samsung-soc, linux-stm32,
kernel, linux-mediatek, openbmc, linux-tegra,
linux-oxnas@groups.io, linux-arm-msm, linux-unisoc,
linux-rockchip, linux-realtek-soc
On Tue, May 2, 2023 at 3:15 AM Arnd Bergmann <arnd@arndb.de> wrote:
>
> On Tue, Apr 25, 2023, at 17:57, Rob Herring wrote:
> > On Tue, Apr 25, 2023 at 2:28 AM Geert Uytterhoeven <geert@linux-m68k.org> wrote:
> >
> >> Does your script also cater for .dts files not matching any pattern,
> >> but including a .dtsi file that does match a pattern?
> >
> > I assume I built everything after moving, but maybe not...
> >
> > That's all just "details". First, we need agreement on a) moving
> > things to subdirs and b) doing it 1-by-1 or all at once. So far we've
> > been stuck on a) for being 'too much churn'.
>
> Sorry for missing most of the discussion last week. The script sounds
> fine to me, the only reason I didn't want to do this in the past is that
> we had the plan to move platforms out of the kernel tree to an external
> repository and I wanted to do this platform at a time and also only move
> each one once. I don't think that is going to happen anytime soon now,
> so let's just do your script.
>
> Can you send me the script and/or a pull request of the resulting
> tree based on my soc/dt branch? Everything is merged upstream,
> and I think git-merge would handle the remaining merges with any
> other changes in mainline.
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 = {
'alphascale' : 'alphascale',
'alpine' : 'alpine',
'artpec' : 'axis',
'axm' : 'lsi',
'cx9' : 'cnxt',
'ecx' : 'calxeda',
'highbank' : 'calxeda',
'ep7' : 'cirrus',
'mxs': 'mxs',
'imx23': 'mxs',
'imx28': 'mxs',
'sun' : 'allwinner',
'imx': 'imx',
'e6' : 'imx',
'e7' : 'imx',
'mba6' : 'imx',
'ls': 'fsl',
'vf': 'fsl',
'qcom': 'qcom',
'am3' : 'ti',
'am4' : 'ti',
'am5' : 'ti',
'dra' : 'ti',
'keystone' : 'ti',
'omap' : 'ti',
'compulab' : 'ti',
'logicpd' : 'ti',
'elpida' : 'ti',
'motorola' : 'ti',
'twl' : 'ti',
'da' : 'ti',
'dm' : 'ti',
'nspire' : 'nspire',
'armada' : 'marvell',
'dove' : 'marvell',
'kirkwood' : 'marvell',
'orion' : 'marvell',
'mvebu' : 'marvell',
'mmp' : 'marvell',
'berlin' : 'berlin',
'pxa2' : 'pxa',
'pxa3' : 'pxa',
'pxa' : 'marvell',
'arm-' : 'arm',
'integ' : 'arm',
'mps' : 'arm',
've' : 'arm',
'aspeed' : 'aspeed',
'ast2' : 'aspeed',
'facebook' : 'aspeed',
'ibm' : 'aspeed',
'openbmc' : 'aspeed',
'en7' : 'airoha',
'at91' : 'microchip',
'sama' : 'microchip',
'sam9' : 'microchip',
'usb_' : 'microchip',
'tny_' : 'microchip',
'mpa1600' : 'microchip',
'animeo_ip' : 'microchip',
'aks-cdu' : 'microchip',
'ethernut5' : 'microchip',
'evk-pro3' : 'microchip',
'pm9g45' : 'microchip',
'ge86' : 'microchip',
'bcm' : 'brcm',
'exynos' : 'samsung',
's3c' : 'samsung',
's5p' : 'samsung',
'gemini' : 'gemini',
'hi3' : 'hisilicon',
'hip' : 'hisilicon',
'hisi' : 'hisilicon',
'sd5' : 'hisilicon',
'hpe' : 'hpe',
'intel': 'intel',
'mt' : 'mediatek',
'meson' : 'meson',
'moxa' : 'moxa',
'mstar' : 'mstar',
'nuvo' : 'nuvoton',
'lpc' : 'lpc',
'lan96' : 'microchip',
'owl' : 'actions',
'ox8' : 'oxsemi',
'rda' : 'rda',
'rtd' : 'realtek',
'r7' : 'renesas',
'r8' : 'renesas',
'r9' : 'renesas',
'emev2' : 'renesas',
'sh73a' : 'renesas',
'gr-' : 'renesas',
'iwg' : 'renesas',
'rk' : 'rockchip',
'rv11' : 'rockchip',
'rockchip' : 'rockchip',
'socfpga' : 'socfpga',
'stm' : 'stm32',
'sti' : 'sti',
'st-pin' : 'sti',
'ste' : 'st-ericsson',
'spear' : 'spear',
'axp' : 'allwinner',
'tegra' : 'nvidia',
'milbeaut' : 'socionext',
'uniph' : 'socionext',
'vt8500' : 'vt8500',
'wm8' : 'vt8500',
'xen' : 'xen',
'zx' : 'zte',
'zynq' : 'xilinx',
}
Rob
[1] git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git arm-dts-move-v2
^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: [RFC PATCH 0/1] Categorize ARM dts directory
2023-05-02 19:40 ` Rob Herring
@ 2023-05-02 20:02 ` Krzysztof Kozlowski
2023-05-03 1:19 ` Shawn Guo
2023-05-02 21:18 ` Linus Walleij
` (8 subsequent siblings)
9 siblings, 1 reply; 35+ messages in thread
From: Krzysztof Kozlowski @ 2023-05-02 20:02 UTC (permalink / raw)
To: Rob Herring, Arnd Bergmann
Cc: Geert Uytterhoeven, Olof Johansson, Christian Marangi,
Krzysztof Kozlowski, linux-arm-kernel, devicetree, linux-kernel,
linux-actions, linux-sunxi, Linux-OMAP, linux-amlogic,
linux-arm-kernel, linux-aspeed, linux-rpi-kernel, chrome-platform,
Linux-Renesas, linux-samsung-soc, linux-stm32, kernel,
linux-mediatek, openbmc, linux-tegra, linux-oxnas@groups.io,
linux-arm-msm, linux-unisoc, linux-rockchip, linux-realtek-soc,
Shawn Guo
On 02/05/2023 21:40, Rob Herring wrote:
> On Tue, May 2, 2023 at 3:15 AM Arnd Bergmann <arnd@arndb.de> wrote:
>>
>> On Tue, Apr 25, 2023, at 17:57, Rob Herring wrote:
>>> On Tue, Apr 25, 2023 at 2:28 AM Geert Uytterhoeven <geert@linux-m68k.org> wrote:
>>>
>>>> Does your script also cater for .dts files not matching any pattern,
>>>> but including a .dtsi file that does match a pattern?
>>>
>>> I assume I built everything after moving, but maybe not...
>>>
>>> That's all just "details". First, we need agreement on a) moving
>>> things to subdirs and b) doing it 1-by-1 or all at once. So far we've
>>> been stuck on a) for being 'too much churn'.
>>
>> Sorry for missing most of the discussion last week. The script sounds
>> fine to me, the only reason I didn't want to do this in the past is that
>> we had the plan to move platforms out of the kernel tree to an external
>> repository and I wanted to do this platform at a time and also only move
>> each one once. I don't think that is going to happen anytime soon now,
>> so let's just do your script.
>>
>> Can you send me the script and/or a pull request of the resulting
>> tree based on my soc/dt branch? Everything is merged upstream,
>> and I think git-merge would handle the remaining merges with any
>> other changes in mainline.
>
> 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 = {
> 'alphascale' : 'alphascale',
> 'alpine' : 'alpine',
> 'artpec' : 'axis',
> 'axm' : 'lsi',
> 'cx9' : 'cnxt',
> 'ecx' : 'calxeda',
> 'highbank' : 'calxeda',
> 'ep7' : 'cirrus',
> 'mxs': 'mxs',
> 'imx23': 'mxs',
> 'imx28': 'mxs',
> 'sun' : 'allwinner',
> 'imx': 'imx',
> 'e6' : 'imx',
> 'e7' : 'imx',
> 'mba6' : 'imx',
> 'ls': 'fsl',
> 'vf': 'fsl',
If I remember correctly, Vybrid are a bit closer to iMX than to LS
(Layerscape), but it should be Shawn's call (+Cc).
> 'qcom': 'qcom',
> 'am3' : 'ti',
> 'am4' : 'ti',
> 'am5' : 'ti',
> 'dra' : 'ti',
> 'keystone' : 'ti',
> 'omap' : 'ti',
> 'compulab' : 'ti',
> 'logicpd' : 'ti',
> 'elpida' : 'ti',
> 'motorola' : 'ti',
> 'twl' : 'ti',
> 'da' : 'ti',
> 'dm' : 'ti',
> 'nspire' : 'nspire',
> 'armada' : 'marvell',
> 'dove' : 'marvell',
> 'kirkwood' : 'marvell',
> 'orion' : 'marvell',
> 'mvebu' : 'marvell',
> 'mmp' : 'marvell',
> 'berlin' : 'berlin',
> 'pxa2' : 'pxa',
> 'pxa3' : 'pxa',
> 'pxa' : 'marvell',
> 'arm-' : 'arm',
> 'integ' : 'arm',
> 'mps' : 'arm',
> 've' : 'arm',
> 'aspeed' : 'aspeed',
> 'ast2' : 'aspeed',
> 'facebook' : 'aspeed',
> 'ibm' : 'aspeed',
> 'openbmc' : 'aspeed',
> 'en7' : 'airoha',
> 'at91' : 'microchip',
> 'sama' : 'microchip',
> 'sam9' : 'microchip',
> 'usb_' : 'microchip',
> 'tny_' : 'microchip',
> 'mpa1600' : 'microchip',
> 'animeo_ip' : 'microchip',
> 'aks-cdu' : 'microchip',
> 'ethernut5' : 'microchip',
> 'evk-pro3' : 'microchip',
> 'pm9g45' : 'microchip',
> 'ge86' : 'microchip',
> 'bcm' : 'brcm',
> 'exynos' : 'samsung',
> 's3c' : 'samsung',
> 's5p' : 'samsung',
For samsung looks good.
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> 'gemini' : 'gemini',
> 'hi3' : 'hisilicon',
> 'hip' : 'hisilicon',
> 'hisi' : 'hisilicon',
> 'sd5' : 'hisilicon',
> 'hpe' : 'hpe',
> 'intel': 'intel',
> 'mt' : 'mediatek',
> 'meson' : 'meson',
> 'moxa' : 'moxa',
> 'mstar' : 'mstar',
> 'nuvo' : 'nuvoton',
> 'lpc' : 'lpc',
> 'lan96' : 'microchip',
> 'owl' : 'actions',
> 'ox8' : 'oxsemi',
> 'rda' : 'rda',
> 'rtd' : 'realtek',
> 'r7' : 'renesas',
> 'r8' : 'renesas',
> 'r9' : 'renesas',
> 'emev2' : 'renesas',
> 'sh73a' : 'renesas',
> 'gr-' : 'renesas',
> 'iwg' : 'renesas',
> 'rk' : 'rockchip',
> 'rv11' : 'rockchip',
> 'rockchip' : 'rockchip',
> 'socfpga' : 'socfpga',
> 'stm' : 'stm32',
> 'sti' : 'sti',
> 'st-pin' : 'sti',
> 'ste' : 'st-ericsson',
> 'spear' : 'spear',
> 'axp' : 'allwinner',
> 'tegra' : 'nvidia',
> 'milbeaut' : 'socionext',
> 'uniph' : 'socionext',
> 'vt8500' : 'vt8500',
> 'wm8' : 'vt8500',
> 'xen' : 'xen',
> 'zx' : 'zte',
> 'zynq' : 'xilinx',
The rest looks good to me, but I don't know half of these :)
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: [RFC PATCH 0/1] Categorize ARM dts directory
2023-05-02 19:40 ` Rob Herring
2023-05-02 20:02 ` Krzysztof Kozlowski
@ 2023-05-02 21:18 ` Linus Walleij
2023-05-02 21:27 ` Rob Herring
2023-05-02 22:01 ` Christian Hewitt
` (7 subsequent siblings)
9 siblings, 1 reply; 35+ messages in thread
From: Linus Walleij @ 2023-05-02 21:18 UTC (permalink / raw)
To: Rob Herring
Cc: Arnd Bergmann, Geert Uytterhoeven, Olof Johansson,
Christian Marangi, Krzysztof Kozlowski, Krzysztof Kozlowski,
linux-arm-kernel, devicetree, linux-kernel, linux-actions,
linux-sunxi, Linux-OMAP, linux-amlogic, linux-arm-kernel,
linux-aspeed, linux-rpi-kernel, chrome-platform, Linux-Renesas,
linux-samsung-soc, linux-stm32, kernel, linux-mediatek, openbmc,
linux-tegra, linux-oxnas@groups.io, linux-arm-msm, linux-unisoc,
linux-rockchip, linux-realtek-soc
On Tue, May 2, 2023 at 9:40 PM Rob Herring <robh+dt@kernel.org> wrote:
> 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.
I see my nits were fixed like I wanted them, and it's now mostly a
mix of soc and vendor names that make sense so from my point of view:
Acked-by: Linus Walleij <linus.walleij@linaro.org>
NB:
arch/arm64/boot/dts/arm$
vexpress-v2m-rs1.dtsi -> ../../../../arm/boot/dts/vexpress-v2m-rs1.dtsi
This still works after the script, yes?
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: [RFC PATCH 0/1] Categorize ARM dts directory
2023-05-02 21:18 ` Linus Walleij
@ 2023-05-02 21:27 ` Rob Herring
0 siblings, 0 replies; 35+ messages in thread
From: Rob Herring @ 2023-05-02 21:27 UTC (permalink / raw)
To: Linus Walleij
Cc: Arnd Bergmann, Geert Uytterhoeven, Olof Johansson,
Christian Marangi, Krzysztof Kozlowski, Krzysztof Kozlowski,
linux-arm-kernel, devicetree, linux-kernel, linux-actions,
linux-sunxi, Linux-OMAP, linux-amlogic, linux-arm-kernel,
linux-aspeed, linux-rpi-kernel, chrome-platform, Linux-Renesas,
linux-samsung-soc, linux-stm32, kernel, linux-mediatek, openbmc,
linux-tegra, linux-oxnas@groups.io, linux-arm-msm, linux-unisoc,
linux-rockchip, linux-realtek-soc
On Tue, May 2, 2023 at 4:19 PM Linus Walleij <linus.walleij@linaro.org> wrote:
>
> On Tue, May 2, 2023 at 9:40 PM Rob Herring <robh+dt@kernel.org> wrote:
>
> > 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.
>
> I see my nits were fixed like I wanted them, and it's now mostly a
> mix of soc and vendor names that make sense so from my point of view:
> Acked-by: Linus Walleij <linus.walleij@linaro.org>
>
> NB:
> arch/arm64/boot/dts/arm$
> vexpress-v2m-rs1.dtsi -> ../../../../arm/boot/dts/vexpress-v2m-rs1.dtsi
>
> This still works after the script, yes?
Yes, because in the script I do:
git grep -l -F "vexpress-v2m-rs1" arch/arm64/boot/dts | xargs perl -p
-i -e "s/vexpress-v2m-rs1/arm\/arm\/vexpress-v2m-rs1/"
Rob
^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: [RFC PATCH 0/1] Categorize ARM dts directory
2023-05-02 19:40 ` Rob Herring
2023-05-02 20:02 ` Krzysztof Kozlowski
2023-05-02 21:18 ` Linus Walleij
@ 2023-05-02 22:01 ` Christian Hewitt
2023-05-03 10:42 ` Neil Armstrong
2023-05-02 22:52 ` Dmitry Baryshkov
` (6 subsequent siblings)
9 siblings, 1 reply; 35+ messages in thread
From: Christian Hewitt @ 2023-05-02 22:01 UTC (permalink / raw)
To: Rob Herring
Cc: Arnd Bergmann, Geert Uytterhoeven, Olof Johansson,
Christian Marangi, Krzysztof Kozlowski, Krzysztof Kozlowski,
linux-arm-kernel, devicetree, linux-kernel, linux-actions,
linux-sunxi, Linux-OMAP, linux-amlogic, linux-arm-kernel,
linux-aspeed, linux-rpi-kernel, chrome-platform, Linux-Renesas,
linux-samsung-soc, linux-stm32, kernel, linux-mediatek, openbmc,
linux-tegra, linux-oxnas@groups.io, linux-arm-msm, linux-unisoc,
linux-rockchip, linux-realtek-soc
> On 2 May 2023, at 8:40 pm, Rob Herring <robh+dt@kernel.org> wrote:
>
> On Tue, May 2, 2023 at 3:15 AM Arnd Bergmann <arnd@arndb.de> wrote:
>>
>> On Tue, Apr 25, 2023, at 17:57, Rob Herring wrote:
>>> On Tue, Apr 25, 2023 at 2:28 AM Geert Uytterhoeven <geert@linux-m68k.org> wrote:
>>>
>>>> Does your script also cater for .dts files not matching any pattern,
>>>> but including a .dtsi file that does match a pattern?
>>>
>>> I assume I built everything after moving, but maybe not...
>>>
>>> That's all just "details". First, we need agreement on a) moving
>>> things to subdirs and b) doing it 1-by-1 or all at once. So far we've
>>> been stuck on a) for being 'too much churn'.
>>
>> Sorry for missing most of the discussion last week. The script sounds
>> fine to me, the only reason I didn't want to do this in the past is that
>> we had the plan to move platforms out of the kernel tree to an external
>> repository and I wanted to do this platform at a time and also only move
>> each one once. I don't think that is going to happen anytime soon now,
>> so let's just do your script.
>>
>> Can you send me the script and/or a pull request of the resulting
>> tree based on my soc/dt branch? Everything is merged upstream,
>> and I think git-merge would handle the remaining merges with any
>> other changes in mainline.
>
> 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 = {
> 'alphascale' : 'alphascale',
> 'alpine' : 'alpine',
> 'artpec' : 'axis',
> 'axm' : 'lsi',
> 'cx9' : 'cnxt',
> 'ecx' : 'calxeda',
> 'highbank' : 'calxeda',
> 'ep7' : 'cirrus',
> 'mxs': 'mxs',
> 'imx23': 'mxs',
> 'imx28': 'mxs',
> 'sun' : 'allwinner',
> 'imx': 'imx',
> 'e6' : 'imx',
> 'e7' : 'imx',
> 'mba6' : 'imx',
> 'ls': 'fsl',
> 'vf': 'fsl',
> 'qcom': 'qcom',
> 'am3' : 'ti',
> 'am4' : 'ti',
> 'am5' : 'ti',
> 'dra' : 'ti',
> 'keystone' : 'ti',
> 'omap' : 'ti',
> 'compulab' : 'ti',
> 'logicpd' : 'ti',
> 'elpida' : 'ti',
> 'motorola' : 'ti',
> 'twl' : 'ti',
> 'da' : 'ti',
> 'dm' : 'ti',
> 'nspire' : 'nspire',
> 'armada' : 'marvell',
> 'dove' : 'marvell',
> 'kirkwood' : 'marvell',
> 'orion' : 'marvell',
> 'mvebu' : 'marvell',
> 'mmp' : 'marvell',
> 'berlin' : 'berlin',
> 'pxa2' : 'pxa',
> 'pxa3' : 'pxa',
> 'pxa' : 'marvell',
> 'arm-' : 'arm',
> 'integ' : 'arm',
> 'mps' : 'arm',
> 've' : 'arm',
> 'aspeed' : 'aspeed',
> 'ast2' : 'aspeed',
> 'facebook' : 'aspeed',
> 'ibm' : 'aspeed',
> 'openbmc' : 'aspeed',
> 'en7' : 'airoha',
> 'at91' : 'microchip',
> 'sama' : 'microchip',
> 'sam9' : 'microchip',
> 'usb_' : 'microchip',
> 'tny_' : 'microchip',
> 'mpa1600' : 'microchip',
> 'animeo_ip' : 'microchip',
> 'aks-cdu' : 'microchip',
> 'ethernut5' : 'microchip',
> 'evk-pro3' : 'microchip',
> 'pm9g45' : 'microchip',
> 'ge86' : 'microchip',
> 'bcm' : 'brcm',
> 'exynos' : 'samsung',
> 's3c' : 'samsung',
> 's5p' : 'samsung',
> 'gemini' : 'gemini',
> 'hi3' : 'hisilicon',
> 'hip' : 'hisilicon',
> 'hisi' : 'hisilicon',
> 'sd5' : 'hisilicon',
> 'hpe' : 'hpe',
> 'intel': 'intel',
> 'mt' : 'mediatek',
> 'meson' : 'meson',
‘meson’ : ‘amlogic’,
^ to match the SoC vendor name (and arm64)
Christian
> 'moxa' : 'moxa',
> 'mstar' : 'mstar',
> 'nuvo' : 'nuvoton',
> 'lpc' : 'lpc',
> 'lan96' : 'microchip',
> 'owl' : 'actions',
> 'ox8' : 'oxsemi',
> 'rda' : 'rda',
> 'rtd' : 'realtek',
> 'r7' : 'renesas',
> 'r8' : 'renesas',
> 'r9' : 'renesas',
> 'emev2' : 'renesas',
> 'sh73a' : 'renesas',
> 'gr-' : 'renesas',
> 'iwg' : 'renesas',
> 'rk' : 'rockchip',
> 'rv11' : 'rockchip',
> 'rockchip' : 'rockchip',
> 'socfpga' : 'socfpga',
> 'stm' : 'stm32',
> 'sti' : 'sti',
> 'st-pin' : 'sti',
> 'ste' : 'st-ericsson',
> 'spear' : 'spear',
> 'axp' : 'allwinner',
> 'tegra' : 'nvidia',
> 'milbeaut' : 'socionext',
> 'uniph' : 'socionext',
> 'vt8500' : 'vt8500',
> 'wm8' : 'vt8500',
> 'xen' : 'xen',
> 'zx' : 'zte',
> 'zynq' : 'xilinx',
> }
>
> Rob
>
> [1] git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git arm-dts-move-v2
>
> _______________________________________________
> linux-amlogic mailing list
> linux-amlogic@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-amlogic
^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: [RFC PATCH 0/1] Categorize ARM dts directory
2023-05-02 19:40 ` Rob Herring
` (2 preceding siblings ...)
2023-05-02 22:01 ` Christian Hewitt
@ 2023-05-02 22:52 ` Dmitry Baryshkov
2023-05-03 1:17 ` Rob Herring
2023-05-02 23:02 ` Florian Fainelli
` (5 subsequent siblings)
9 siblings, 1 reply; 35+ messages in thread
From: Dmitry Baryshkov @ 2023-05-02 22:52 UTC (permalink / raw)
To: Rob Herring, Arnd Bergmann
Cc: Geert Uytterhoeven, Olof Johansson, Christian Marangi,
Krzysztof Kozlowski, Krzysztof Kozlowski, linux-arm-kernel,
devicetree, linux-kernel, linux-actions, linux-sunxi, Linux-OMAP,
linux-amlogic, linux-arm-kernel, linux-aspeed, linux-rpi-kernel,
chrome-platform, Linux-Renesas, linux-samsung-soc, linux-stm32,
kernel, linux-mediatek, openbmc, linux-tegra,
linux-oxnas@groups.io, linux-arm-msm, linux-unisoc,
linux-rockchip, linux-realtek-soc
On 02/05/2023 22:40, Rob Herring wrote:
> On Tue, May 2, 2023 at 3:15 AM Arnd Bergmann <arnd@arndb.de> wrote:
>>
>> On Tue, Apr 25, 2023, at 17:57, Rob Herring wrote:
>>> On Tue, Apr 25, 2023 at 2:28 AM Geert Uytterhoeven <geert@linux-m68k.org> wrote:
>>>
>>>> Does your script also cater for .dts files not matching any pattern,
>>>> but including a .dtsi file that does match a pattern?
>>>
>>> I assume I built everything after moving, but maybe not...
>>>
>>> That's all just "details". First, we need agreement on a) moving
>>> things to subdirs and b) doing it 1-by-1 or all at once. So far we've
>>> been stuck on a) for being 'too much churn'.
>>
>> Sorry for missing most of the discussion last week. The script sounds
>> fine to me, the only reason I didn't want to do this in the past is that
>> we had the plan to move platforms out of the kernel tree to an external
>> repository and I wanted to do this platform at a time and also only move
>> each one once. I don't think that is going to happen anytime soon now,
>> so let's just do your script.
>>
>> Can you send me the script and/or a pull request of the resulting
>> tree based on my soc/dt branch? Everything is merged upstream,
>> and I think git-merge would handle the remaining merges with any
>> other changes in mainline.
>
> 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 = {
> 'alphascale' : 'alphascale',
> 'alpine' : 'alpine',
> 'artpec' : 'axis',
> 'axm' : 'lsi',
> 'cx9' : 'cnxt',
> 'ecx' : 'calxeda',
> 'highbank' : 'calxeda',
> 'ep7' : 'cirrus',
> 'mxs': 'mxs',
> 'imx23': 'mxs',
> 'imx28': 'mxs',
> 'sun' : 'allwinner',
> 'imx': 'imx',
> 'e6' : 'imx',
> 'e7' : 'imx',
> 'mba6' : 'imx',
> 'ls': 'fsl',
> 'vf': 'fsl',
> 'qcom': 'qcom',
> 'am3' : 'ti',
> 'am4' : 'ti',
> 'am5' : 'ti',
> 'dra' : 'ti',
> 'keystone' : 'ti',
> 'omap' : 'ti',
> 'compulab' : 'ti',
> 'logicpd' : 'ti',
> 'elpida' : 'ti',
> 'motorola' : 'ti',
> 'twl' : 'ti',
> 'da' : 'ti',
> 'dm' : 'ti',
> 'nspire' : 'nspire',
> 'armada' : 'marvell',
> 'dove' : 'marvell',
> 'kirkwood' : 'marvell',
> 'orion' : 'marvell',
> 'mvebu' : 'marvell',
> 'mmp' : 'marvell',
> 'berlin' : 'berlin',
> 'pxa2' : 'pxa',
> 'pxa3' : 'pxa',
> 'pxa' : 'marvell',
I'd question if it makes sense to split the pxa line. Yes, it was sold
by Intel to Marvell, but IIRC the devices still had some inheritance.
So, if we have the 'pxa' subdir, I'd move Marvell PXAs to that dir too.
> 'arm-' : 'arm',
> 'integ' : 'arm',
> 'mps' : 'arm',
> 've' : 'arm',
> 'aspeed' : 'aspeed',
> 'ast2' : 'aspeed',
> 'facebook' : 'aspeed',
> 'ibm' : 'aspeed',
> 'openbmc' : 'aspeed',
> 'en7' : 'airoha',
> 'at91' : 'microchip',
> 'sama' : 'microchip',
> 'sam9' : 'microchip',
> 'usb_' : 'microchip',
> 'tny_' : 'microchip',
> 'mpa1600' : 'microchip',
> 'animeo_ip' : 'microchip',
> 'aks-cdu' : 'microchip',
> 'ethernut5' : 'microchip',
> 'evk-pro3' : 'microchip',
> 'pm9g45' : 'microchip',
> 'ge86' : 'microchip',
> 'bcm' : 'brcm',
> 'exynos' : 'samsung',
> 's3c' : 'samsung',
> 's5p' : 'samsung',
> 'gemini' : 'gemini',
> 'hi3' : 'hisilicon',
> 'hip' : 'hisilicon',
> 'hisi' : 'hisilicon',
> 'sd5' : 'hisilicon',
> 'hpe' : 'hpe',
> 'intel': 'intel',
> 'mt' : 'mediatek',
> 'meson' : 'meson',
> 'moxa' : 'moxa',
> 'mstar' : 'mstar',
> 'nuvo' : 'nuvoton',
> 'lpc' : 'lpc',
> 'lan96' : 'microchip',
> 'owl' : 'actions',
> 'ox8' : 'oxsemi',
> 'rda' : 'rda',
> 'rtd' : 'realtek',
> 'r7' : 'renesas',
> 'r8' : 'renesas',
> 'r9' : 'renesas',
> 'emev2' : 'renesas',
> 'sh73a' : 'renesas',
> 'gr-' : 'renesas',
> 'iwg' : 'renesas',
> 'rk' : 'rockchip',
> 'rv11' : 'rockchip',
> 'rockchip' : 'rockchip',
> 'socfpga' : 'socfpga',
> 'stm' : 'stm32',
> 'sti' : 'sti',
> 'st-pin' : 'sti',
> 'ste' : 'st-ericsson',
> 'spear' : 'spear',
> 'axp' : 'allwinner',
> 'tegra' : 'nvidia',
> 'milbeaut' : 'socionext',
> 'uniph' : 'socionext',
> 'vt8500' : 'vt8500',
> 'wm8' : 'vt8500',
> 'xen' : 'xen',
> 'zx' : 'zte',
> 'zynq' : 'xilinx',
> }
>
> Rob
>
> [1] git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git arm-dts-move-v2
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: [RFC PATCH 0/1] Categorize ARM dts directory
2023-05-02 19:40 ` Rob Herring
` (3 preceding siblings ...)
2023-05-02 22:52 ` Dmitry Baryshkov
@ 2023-05-02 23:02 ` Florian Fainelli
2023-05-03 1:04 ` Rob Herring
2023-05-03 8:56 ` Geert Uytterhoeven
` (4 subsequent siblings)
9 siblings, 1 reply; 35+ messages in thread
From: Florian Fainelli @ 2023-05-02 23:02 UTC (permalink / raw)
To: Rob Herring, Arnd Bergmann
Cc: Geert Uytterhoeven, Olof Johansson, Christian Marangi,
Krzysztof Kozlowski, Krzysztof Kozlowski, linux-arm-kernel,
devicetree, linux-kernel, linux-actions, linux-sunxi, Linux-OMAP,
linux-amlogic, linux-arm-kernel, linux-aspeed, linux-rpi-kernel,
chrome-platform, Linux-Renesas, linux-samsung-soc, linux-stm32,
kernel, linux-mediatek, openbmc, linux-tegra,
linux-oxnas@groups.io, linux-arm-msm, linux-unisoc,
linux-rockchip, linux-realtek-soc
On 5/2/23 12:40, Rob Herring wrote:
> On Tue, May 2, 2023 at 3:15 AM Arnd Bergmann <arnd@arndb.de> wrote:
>>
>> On Tue, Apr 25, 2023, at 17:57, Rob Herring wrote:
>>> On Tue, Apr 25, 2023 at 2:28 AM Geert Uytterhoeven <geert@linux-m68k.org> wrote:
>>>
>>>> Does your script also cater for .dts files not matching any pattern,
>>>> but including a .dtsi file that does match a pattern?
>>>
>>> I assume I built everything after moving, but maybe not...
>>>
>>> That's all just "details". First, we need agreement on a) moving
>>> things to subdirs and b) doing it 1-by-1 or all at once. So far we've
>>> been stuck on a) for being 'too much churn'.
>>
>> Sorry for missing most of the discussion last week. The script sounds
>> fine to me, the only reason I didn't want to do this in the past is that
>> we had the plan to move platforms out of the kernel tree to an external
>> repository and I wanted to do this platform at a time and also only move
>> each one once. I don't think that is going to happen anytime soon now,
>> so let's just do your script.
>>
>> Can you send me the script and/or a pull request of the resulting
>> tree based on my soc/dt branch? Everything is merged upstream,
>> and I think git-merge would handle the remaining merges with any
>> other changes in mainline.
>
> 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 = {
> 'alphascale' : 'alphascale',
> 'alpine' : 'alpine',
> 'artpec' : 'axis',
> 'axm' : 'lsi',
> 'cx9' : 'cnxt',
> 'ecx' : 'calxeda',
> 'highbank' : 'calxeda',
> 'ep7' : 'cirrus',
> 'mxs': 'mxs',
> 'imx23': 'mxs',
> 'imx28': 'mxs',
> 'sun' : 'allwinner',
> 'imx': 'imx',
> 'e6' : 'imx',
> 'e7' : 'imx',
> 'mba6' : 'imx',
> 'ls': 'fsl',
> 'vf': 'fsl',
> 'qcom': 'qcom',
> 'am3' : 'ti',
> 'am4' : 'ti',
> 'am5' : 'ti',
> 'dra' : 'ti',
> 'keystone' : 'ti',
> 'omap' : 'ti',
> 'compulab' : 'ti',
> 'logicpd' : 'ti',
> 'elpida' : 'ti',
> 'motorola' : 'ti',
> 'twl' : 'ti',
> 'da' : 'ti',
> 'dm' : 'ti',
> 'nspire' : 'nspire',
> 'armada' : 'marvell',
> 'dove' : 'marvell',
> 'kirkwood' : 'marvell',
> 'orion' : 'marvell',
> 'mvebu' : 'marvell',
> 'mmp' : 'marvell',
> 'berlin' : 'berlin',
> 'pxa2' : 'pxa',
> 'pxa3' : 'pxa',
> 'pxa' : 'marvell',
> 'arm-' : 'arm',
> 'integ' : 'arm',
> 'mps' : 'arm',
> 've' : 'arm',
> 'aspeed' : 'aspeed',
> 'ast2' : 'aspeed',
> 'facebook' : 'aspeed',
> 'ibm' : 'aspeed',
> 'openbmc' : 'aspeed',
> 'en7' : 'airoha',
> 'at91' : 'microchip',
> 'sama' : 'microchip',
> 'sam9' : 'microchip',
> 'usb_' : 'microchip',
> 'tny_' : 'microchip',
> 'mpa1600' : 'microchip',
> 'animeo_ip' : 'microchip',
> 'aks-cdu' : 'microchip',
> 'ethernut5' : 'microchip',
> 'evk-pro3' : 'microchip',
> 'pm9g45' : 'microchip',
> 'ge86' : 'microchip',
> 'bcm' : 'brcm',
How about we use 'broadcom' here, to follow what arm64 does? I could
rename arch/mips/boot/dts/brcm to arch/mips/boot/dts/broadcom for
consistency, too?
--
Florian
^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: [RFC PATCH 0/1] Categorize ARM dts directory
2023-05-02 23:02 ` Florian Fainelli
@ 2023-05-03 1:04 ` Rob Herring
2023-05-03 22:29 ` Florian Fainelli
0 siblings, 1 reply; 35+ messages in thread
From: Rob Herring @ 2023-05-03 1:04 UTC (permalink / raw)
To: Florian Fainelli
Cc: Arnd Bergmann, Geert Uytterhoeven, Olof Johansson,
Christian Marangi, Krzysztof Kozlowski, Krzysztof Kozlowski,
linux-arm-kernel, devicetree, linux-kernel, linux-actions,
linux-sunxi, Linux-OMAP, linux-amlogic, linux-arm-kernel,
linux-aspeed, linux-rpi-kernel, chrome-platform, Linux-Renesas,
linux-samsung-soc, linux-stm32, kernel, linux-mediatek, openbmc,
linux-tegra, linux-oxnas@groups.io, linux-arm-msm, linux-unisoc,
linux-rockchip, linux-realtek-soc
On Tue, May 2, 2023 at 6:02 PM Florian Fainelli <f.fainelli@gmail.com> wrote:
>
> On 5/2/23 12:40, Rob Herring wrote:
> > On Tue, May 2, 2023 at 3:15 AM Arnd Bergmann <arnd@arndb.de> wrote:
> >>
> >> On Tue, Apr 25, 2023, at 17:57, Rob Herring wrote:
> >>> On Tue, Apr 25, 2023 at 2:28 AM Geert Uytterhoeven <geert@linux-m68k.org> wrote:
> >>>
> >>>> Does your script also cater for .dts files not matching any pattern,
> >>>> but including a .dtsi file that does match a pattern?
> >>>
> >>> I assume I built everything after moving, but maybe not...
> >>>
> >>> That's all just "details". First, we need agreement on a) moving
> >>> things to subdirs and b) doing it 1-by-1 or all at once. So far we've
> >>> been stuck on a) for being 'too much churn'.
> >>
> >> Sorry for missing most of the discussion last week. The script sounds
> >> fine to me, the only reason I didn't want to do this in the past is that
> >> we had the plan to move platforms out of the kernel tree to an external
> >> repository and I wanted to do this platform at a time and also only move
> >> each one once. I don't think that is going to happen anytime soon now,
> >> so let's just do your script.
> >>
> >> Can you send me the script and/or a pull request of the resulting
> >> tree based on my soc/dt branch? Everything is merged upstream,
> >> and I think git-merge would handle the remaining merges with any
> >> other changes in mainline.
> >
> > 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 = {
> > 'alphascale' : 'alphascale',
> > 'alpine' : 'alpine',
> > 'artpec' : 'axis',
> > 'axm' : 'lsi',
> > 'cx9' : 'cnxt',
> > 'ecx' : 'calxeda',
> > 'highbank' : 'calxeda',
> > 'ep7' : 'cirrus',
> > 'mxs': 'mxs',
> > 'imx23': 'mxs',
> > 'imx28': 'mxs',
> > 'sun' : 'allwinner',
> > 'imx': 'imx',
> > 'e6' : 'imx',
> > 'e7' : 'imx',
> > 'mba6' : 'imx',
> > 'ls': 'fsl',
> > 'vf': 'fsl',
> > 'qcom': 'qcom',
> > 'am3' : 'ti',
> > 'am4' : 'ti',
> > 'am5' : 'ti',
> > 'dra' : 'ti',
> > 'keystone' : 'ti',
> > 'omap' : 'ti',
> > 'compulab' : 'ti',
> > 'logicpd' : 'ti',
> > 'elpida' : 'ti',
> > 'motorola' : 'ti',
> > 'twl' : 'ti',
> > 'da' : 'ti',
> > 'dm' : 'ti',
> > 'nspire' : 'nspire',
> > 'armada' : 'marvell',
> > 'dove' : 'marvell',
> > 'kirkwood' : 'marvell',
> > 'orion' : 'marvell',
> > 'mvebu' : 'marvell',
> > 'mmp' : 'marvell',
> > 'berlin' : 'berlin',
> > 'pxa2' : 'pxa',
> > 'pxa3' : 'pxa',
> > 'pxa' : 'marvell',
> > 'arm-' : 'arm',
> > 'integ' : 'arm',
> > 'mps' : 'arm',
> > 've' : 'arm',
> > 'aspeed' : 'aspeed',
> > 'ast2' : 'aspeed',
> > 'facebook' : 'aspeed',
> > 'ibm' : 'aspeed',
> > 'openbmc' : 'aspeed',
> > 'en7' : 'airoha',
> > 'at91' : 'microchip',
> > 'sama' : 'microchip',
> > 'sam9' : 'microchip',
> > 'usb_' : 'microchip',
> > 'tny_' : 'microchip',
> > 'mpa1600' : 'microchip',
> > 'animeo_ip' : 'microchip',
> > 'aks-cdu' : 'microchip',
> > 'ethernut5' : 'microchip',
> > 'evk-pro3' : 'microchip',
> > 'pm9g45' : 'microchip',
> > 'ge86' : 'microchip',
> > 'bcm' : 'brcm',
>
> How about we use 'broadcom' here, to follow what arm64 does? I could
> rename arch/mips/boot/dts/brcm to arch/mips/boot/dts/broadcom for
> consistency, too?
Okay, though if starting clean I'd somewhat prefer to use the vendor
prefix. I guess since arm and arm64 share dtsi files, they should
match.
Rob
^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: [RFC PATCH 0/1] Categorize ARM dts directory
2023-05-02 22:52 ` Dmitry Baryshkov
@ 2023-05-03 1:17 ` Rob Herring
2023-05-03 10:38 ` Arnd Bergmann
0 siblings, 1 reply; 35+ messages in thread
From: Rob Herring @ 2023-05-03 1:17 UTC (permalink / raw)
To: Dmitry Baryshkov
Cc: Arnd Bergmann, Geert Uytterhoeven, Olof Johansson,
Christian Marangi, Krzysztof Kozlowski, Krzysztof Kozlowski,
linux-arm-kernel, devicetree, linux-kernel, linux-actions,
linux-sunxi, Linux-OMAP, linux-amlogic, linux-arm-kernel,
linux-aspeed, linux-rpi-kernel, chrome-platform, Linux-Renesas,
linux-samsung-soc, linux-stm32, kernel, linux-mediatek, openbmc,
linux-tegra, linux-oxnas@groups.io, linux-arm-msm, linux-unisoc,
linux-rockchip, linux-realtek-soc
On Tue, May 2, 2023 at 5:52 PM Dmitry Baryshkov
<dmitry.baryshkov@linaro.org> wrote:
>
> On 02/05/2023 22:40, Rob Herring wrote:
> > On Tue, May 2, 2023 at 3:15 AM Arnd Bergmann <arnd@arndb.de> wrote:
> >>
> >> On Tue, Apr 25, 2023, at 17:57, Rob Herring wrote:
> >>> On Tue, Apr 25, 2023 at 2:28 AM Geert Uytterhoeven <geert@linux-m68k.org> wrote:
> >>>
> >>>> Does your script also cater for .dts files not matching any pattern,
> >>>> but including a .dtsi file that does match a pattern?
> >>>
> >>> I assume I built everything after moving, but maybe not...
> >>>
> >>> That's all just "details". First, we need agreement on a) moving
> >>> things to subdirs and b) doing it 1-by-1 or all at once. So far we've
> >>> been stuck on a) for being 'too much churn'.
> >>
> >> Sorry for missing most of the discussion last week. The script sounds
> >> fine to me, the only reason I didn't want to do this in the past is that
> >> we had the plan to move platforms out of the kernel tree to an external
> >> repository and I wanted to do this platform at a time and also only move
> >> each one once. I don't think that is going to happen anytime soon now,
> >> so let's just do your script.
> >>
> >> Can you send me the script and/or a pull request of the resulting
> >> tree based on my soc/dt branch? Everything is merged upstream,
> >> and I think git-merge would handle the remaining merges with any
> >> other changes in mainline.
> >
> > 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 = {
> > 'alphascale' : 'alphascale',
> > 'alpine' : 'alpine',
> > 'artpec' : 'axis',
> > 'axm' : 'lsi',
> > 'cx9' : 'cnxt',
> > 'ecx' : 'calxeda',
> > 'highbank' : 'calxeda',
> > 'ep7' : 'cirrus',
> > 'mxs': 'mxs',
> > 'imx23': 'mxs',
> > 'imx28': 'mxs',
> > 'sun' : 'allwinner',
> > 'imx': 'imx',
> > 'e6' : 'imx',
> > 'e7' : 'imx',
> > 'mba6' : 'imx',
> > 'ls': 'fsl',
> > 'vf': 'fsl',
> > 'qcom': 'qcom',
> > 'am3' : 'ti',
> > 'am4' : 'ti',
> > 'am5' : 'ti',
> > 'dra' : 'ti',
> > 'keystone' : 'ti',
> > 'omap' : 'ti',
> > 'compulab' : 'ti',
> > 'logicpd' : 'ti',
> > 'elpida' : 'ti',
> > 'motorola' : 'ti',
> > 'twl' : 'ti',
> > 'da' : 'ti',
> > 'dm' : 'ti',
> > 'nspire' : 'nspire',
> > 'armada' : 'marvell',
> > 'dove' : 'marvell',
> > 'kirkwood' : 'marvell',
> > 'orion' : 'marvell',
> > 'mvebu' : 'marvell',
> > 'mmp' : 'marvell',
> > 'berlin' : 'berlin',
> > 'pxa2' : 'pxa',
> > 'pxa3' : 'pxa',
> > 'pxa' : 'marvell',
>
> I'd question if it makes sense to split the pxa line. Yes, it was sold
> by Intel to Marvell, but IIRC the devices still had some inheritance.
> So, if we have the 'pxa' subdir, I'd move Marvell PXAs to that dir too.
I think I probably split it because it was different maintainers.
Though it doesn't look like pxa168 or pxa910 have any maintainer. They
are a mixture of pxa and mmp I think.
Rob
^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: [RFC PATCH 0/1] Categorize ARM dts directory
2023-05-02 20:02 ` Krzysztof Kozlowski
@ 2023-05-03 1:19 ` Shawn Guo
2023-05-03 10:43 ` Arnd Bergmann
0 siblings, 1 reply; 35+ messages in thread
From: Shawn Guo @ 2023-05-03 1:19 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: Rob Herring, Arnd Bergmann, Geert Uytterhoeven, Olof Johansson,
Christian Marangi, Krzysztof Kozlowski, linux-arm-kernel,
devicetree, linux-kernel, linux-actions, linux-sunxi, Linux-OMAP,
linux-amlogic, linux-arm-kernel, linux-aspeed, linux-rpi-kernel,
chrome-platform, Linux-Renesas, linux-samsung-soc, linux-stm32,
kernel, linux-mediatek, openbmc, linux-tegra,
linux-oxnas@groups.io, linux-arm-msm, linux-unisoc,
linux-rockchip, linux-realtek-soc
On Tue, May 02, 2023 at 10:02:03PM +0200, Krzysztof Kozlowski wrote:
> On 02/05/2023 21:40, Rob Herring wrote:
> > On Tue, May 2, 2023 at 3:15 AM Arnd Bergmann <arnd@arndb.de> wrote:
> >>
> >> On Tue, Apr 25, 2023, at 17:57, Rob Herring wrote:
> >>> On Tue, Apr 25, 2023 at 2:28 AM Geert Uytterhoeven <geert@linux-m68k.org> wrote:
> >>>
> >>>> Does your script also cater for .dts files not matching any pattern,
> >>>> but including a .dtsi file that does match a pattern?
> >>>
> >>> I assume I built everything after moving, but maybe not...
> >>>
> >>> That's all just "details". First, we need agreement on a) moving
> >>> things to subdirs and b) doing it 1-by-1 or all at once. So far we've
> >>> been stuck on a) for being 'too much churn'.
> >>
> >> Sorry for missing most of the discussion last week. The script sounds
> >> fine to me, the only reason I didn't want to do this in the past is that
> >> we had the plan to move platforms out of the kernel tree to an external
> >> repository and I wanted to do this platform at a time and also only move
> >> each one once. I don't think that is going to happen anytime soon now,
> >> so let's just do your script.
> >>
> >> Can you send me the script and/or a pull request of the resulting
> >> tree based on my soc/dt branch? Everything is merged upstream,
> >> and I think git-merge would handle the remaining merges with any
> >> other changes in mainline.
> >
> > 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 = {
> > 'alphascale' : 'alphascale',
> > 'alpine' : 'alpine',
> > 'artpec' : 'axis',
> > 'axm' : 'lsi',
> > 'cx9' : 'cnxt',
> > 'ecx' : 'calxeda',
> > 'highbank' : 'calxeda',
> > 'ep7' : 'cirrus',
> > 'mxs': 'mxs',
> > 'imx23': 'mxs',
> > 'imx28': 'mxs',
> > 'sun' : 'allwinner',
> > 'imx': 'imx',
> > 'e6' : 'imx',
> > 'e7' : 'imx',
> > 'mba6' : 'imx',
> > 'ls': 'fsl',
> > 'vf': 'fsl',
>
> If I remember correctly, Vybrid are a bit closer to iMX than to LS
> (Layerscape), but it should be Shawn's call (+Cc).
I would suggest to have all Freescale/NXP platforms in a single
directory, which includes all mxs, imx, fsl ones.
Shawn
>
> > 'qcom': 'qcom',
> > 'am3' : 'ti',
> > 'am4' : 'ti',
> > 'am5' : 'ti',
> > 'dra' : 'ti',
> > 'keystone' : 'ti',
> > 'omap' : 'ti',
> > 'compulab' : 'ti',
> > 'logicpd' : 'ti',
> > 'elpida' : 'ti',
> > 'motorola' : 'ti',
> > 'twl' : 'ti',
> > 'da' : 'ti',
> > 'dm' : 'ti',
> > 'nspire' : 'nspire',
> > 'armada' : 'marvell',
> > 'dove' : 'marvell',
> > 'kirkwood' : 'marvell',
> > 'orion' : 'marvell',
> > 'mvebu' : 'marvell',
> > 'mmp' : 'marvell',
> > 'berlin' : 'berlin',
> > 'pxa2' : 'pxa',
> > 'pxa3' : 'pxa',
> > 'pxa' : 'marvell',
> > 'arm-' : 'arm',
> > 'integ' : 'arm',
> > 'mps' : 'arm',
> > 've' : 'arm',
> > 'aspeed' : 'aspeed',
> > 'ast2' : 'aspeed',
> > 'facebook' : 'aspeed',
> > 'ibm' : 'aspeed',
> > 'openbmc' : 'aspeed',
> > 'en7' : 'airoha',
> > 'at91' : 'microchip',
> > 'sama' : 'microchip',
> > 'sam9' : 'microchip',
> > 'usb_' : 'microchip',
> > 'tny_' : 'microchip',
> > 'mpa1600' : 'microchip',
> > 'animeo_ip' : 'microchip',
> > 'aks-cdu' : 'microchip',
> > 'ethernut5' : 'microchip',
> > 'evk-pro3' : 'microchip',
> > 'pm9g45' : 'microchip',
> > 'ge86' : 'microchip',
> > 'bcm' : 'brcm',
> > 'exynos' : 'samsung',
> > 's3c' : 'samsung',
> > 's5p' : 'samsung',
>
> For samsung looks good.
>
> Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
>
> > 'gemini' : 'gemini',
> > 'hi3' : 'hisilicon',
> > 'hip' : 'hisilicon',
> > 'hisi' : 'hisilicon',
> > 'sd5' : 'hisilicon',
> > 'hpe' : 'hpe',
> > 'intel': 'intel',
> > 'mt' : 'mediatek',
> > 'meson' : 'meson',
> > 'moxa' : 'moxa',
> > 'mstar' : 'mstar',
> > 'nuvo' : 'nuvoton',
> > 'lpc' : 'lpc',
> > 'lan96' : 'microchip',
> > 'owl' : 'actions',
> > 'ox8' : 'oxsemi',
> > 'rda' : 'rda',
> > 'rtd' : 'realtek',
> > 'r7' : 'renesas',
> > 'r8' : 'renesas',
> > 'r9' : 'renesas',
> > 'emev2' : 'renesas',
> > 'sh73a' : 'renesas',
> > 'gr-' : 'renesas',
> > 'iwg' : 'renesas',
> > 'rk' : 'rockchip',
> > 'rv11' : 'rockchip',
> > 'rockchip' : 'rockchip',
> > 'socfpga' : 'socfpga',
> > 'stm' : 'stm32',
> > 'sti' : 'sti',
> > 'st-pin' : 'sti',
> > 'ste' : 'st-ericsson',
> > 'spear' : 'spear',
> > 'axp' : 'allwinner',
> > 'tegra' : 'nvidia',
> > 'milbeaut' : 'socionext',
> > 'uniph' : 'socionext',
> > 'vt8500' : 'vt8500',
> > 'wm8' : 'vt8500',
> > 'xen' : 'xen',
> > 'zx' : 'zte',
> > 'zynq' : 'xilinx',
>
> The rest looks good to me, but I don't know half of these :)
>
> Best regards,
> Krzysztof
>
^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: [RFC PATCH 0/1] Categorize ARM dts directory
2023-05-02 19:40 ` Rob Herring
` (4 preceding siblings ...)
2023-05-02 23:02 ` Florian Fainelli
@ 2023-05-03 8:56 ` Geert Uytterhoeven
2023-05-03 11:02 ` Arnd Bergmann
` (3 subsequent siblings)
9 siblings, 0 replies; 35+ messages in thread
From: Geert Uytterhoeven @ 2023-05-03 8:56 UTC (permalink / raw)
To: Rob Herring
Cc: Arnd Bergmann, Olof Johansson, Christian Marangi,
Krzysztof Kozlowski, Krzysztof Kozlowski, linux-arm-kernel,
devicetree, linux-kernel, linux-actions, linux-sunxi, Linux-OMAP,
linux-amlogic, linux-arm-kernel, linux-aspeed, linux-rpi-kernel,
chrome-platform, Linux-Renesas, linux-samsung-soc, linux-stm32,
kernel, linux-mediatek, openbmc, linux-tegra,
linux-oxnas@groups.io, linux-arm-msm, linux-unisoc,
linux-rockchip, linux-realtek-soc
Hi Rob,
On Tue, May 2, 2023 at 9:40 PM Rob Herring <robh+dt@kernel.org> wrote:
> 'r7' : 'renesas',
> 'r8' : 'renesas',
> 'r9' : 'renesas',
> 'emev2' : 'renesas',
> 'sh73a' : 'renesas',
> 'gr-' : 'renesas',
> 'iwg' : 'renesas',
Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: [RFC PATCH 0/1] Categorize ARM dts directory
2023-05-03 1:17 ` Rob Herring
@ 2023-05-03 10:38 ` Arnd Bergmann
2023-05-03 12:13 ` Dmitry Baryshkov
0 siblings, 1 reply; 35+ messages in thread
From: Arnd Bergmann @ 2023-05-03 10:38 UTC (permalink / raw)
To: Rob Herring, Dmitry Baryshkov
Cc: Geert Uytterhoeven, Olof Johansson, Christian Marangi,
Krzysztof Kozlowski, Krzysztof Kozlowski, linux-arm-kernel,
devicetree, linux-kernel, linux-actions, linux-sunxi, Linux-OMAP,
linux-amlogic, linux-arm-kernel, linux-aspeed, linux-rpi-kernel,
chrome-platform, Linux-Renesas, linux-samsung-soc, linux-stm32,
kernel, linux-mediatek, openbmc, linux-tegra,
linux-oxnas@groups.io, linux-arm-msm, linux-unisoc,
linux-rockchip, linux-realtek-soc
On Wed, May 3, 2023, at 03:17, Rob Herring wrote:
> On Tue, May 2, 2023 at 5:52 PM Dmitry Baryshkov <dmitry.baryshkov@linaro.org> wrote:
>> On 02/05/2023 22:40, Rob Herring wrote:
>> > 'berlin' : 'berlin',
>> > 'pxa2' : 'pxa',
>> > 'pxa3' : 'pxa',
>> > 'pxa' : 'marvell',
>>
>> I'd question if it makes sense to split the pxa line. Yes, it was sold
>> by Intel to Marvell, but IIRC the devices still had some inheritance.
>> So, if we have the 'pxa' subdir, I'd move Marvell PXAs to that dir too.
>
> I think I probably split it because it was different maintainers.
> Though it doesn't look like pxa168 or pxa910 have any maintainer. They
> are a mixture of pxa and mmp I think.
I think the original split here is probably the best we can do,
but there is no good way to do it because of the confusing naming
and the problem that there is no clear line between pxa and mmp.
As far as I can tell, the release timeline was:
Intel pxa2xx (mach-pxa, xscale, still exists)
Intel pxa3xx (mach-pxa, xscale, still exists)
Intel pxa90x (never merged)
Marvell pxa93x (mach-pxa, xscale, removed in Linux-6.3, no DT)
Marvell pxa92x (never merged)
Marvell pxa91x (mach-mmp, pj1, still exists)
Marvell pxa168 (mach-mmp, pj1, still exists)
Marvell pxa95x (mach-pxa, pj4, long gone)
Marvell pxa688 (mach-mmp, pj4, known as mmp2)
So with pxa93x out of the picture, we can simplify it as using
'pxa' as the name for all the above chips with an Intel XScale
core, and 'marvell' for all the other ones that have a Marvell
core and exist in mach-mmp.
Arnd
^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: [RFC PATCH 0/1] Categorize ARM dts directory
2023-05-02 22:01 ` Christian Hewitt
@ 2023-05-03 10:42 ` Neil Armstrong
0 siblings, 0 replies; 35+ messages in thread
From: Neil Armstrong @ 2023-05-03 10:42 UTC (permalink / raw)
To: Christian Hewitt, Rob Herring
Cc: Arnd Bergmann, Geert Uytterhoeven, Olof Johansson,
Christian Marangi, Krzysztof Kozlowski, Krzysztof Kozlowski,
linux-arm-kernel, devicetree, linux-kernel, linux-actions,
linux-sunxi, Linux-OMAP, linux-amlogic, linux-arm-kernel,
linux-aspeed, linux-rpi-kernel, chrome-platform, Linux-Renesas,
linux-samsung-soc, linux-stm32, kernel, linux-mediatek, openbmc,
linux-tegra, linux-oxnas@groups.io, linux-arm-msm, linux-unisoc,
linux-rockchip, linux-realtek-soc
On 03/05/2023 00:01, Christian Hewitt wrote:
>
>
>> On 2 May 2023, at 8:40 pm, Rob Herring <robh+dt@kernel.org> wrote:
>>
>> On Tue, May 2, 2023 at 3:15 AM Arnd Bergmann <arnd@arndb.de> wrote:
>>>
>>> On Tue, Apr 25, 2023, at 17:57, Rob Herring wrote:
>>>> On Tue, Apr 25, 2023 at 2:28 AM Geert Uytterhoeven <geert@linux-m68k.org> wrote:
>>>>
>>>>> Does your script also cater for .dts files not matching any pattern,
>>>>> but including a .dtsi file that does match a pattern?
>>>>
>>>> I assume I built everything after moving, but maybe not...
>>>>
>>>> That's all just "details". First, we need agreement on a) moving
>>>> things to subdirs and b) doing it 1-by-1 or all at once. So far we've
>>>> been stuck on a) for being 'too much churn'.
>>>
>>> Sorry for missing most of the discussion last week. The script sounds
>>> fine to me, the only reason I didn't want to do this in the past is that
>>> we had the plan to move platforms out of the kernel tree to an external
>>> repository and I wanted to do this platform at a time and also only move
>>> each one once. I don't think that is going to happen anytime soon now,
>>> so let's just do your script.
>>>
>>> Can you send me the script and/or a pull request of the resulting
>>> tree based on my soc/dt branch? Everything is merged upstream,
>>> and I think git-merge would handle the remaining merges with any
>>> other changes in mainline.
>>
>> 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 = {
>> 'alphascale' : 'alphascale',
>> 'alpine' : 'alpine',
>> 'artpec' : 'axis',
>> 'axm' : 'lsi',
>> 'cx9' : 'cnxt',
>> 'ecx' : 'calxeda',
>> 'highbank' : 'calxeda',
>> 'ep7' : 'cirrus',
>> 'mxs': 'mxs',
>> 'imx23': 'mxs',
>> 'imx28': 'mxs',
>> 'sun' : 'allwinner',
>> 'imx': 'imx',
>> 'e6' : 'imx',
>> 'e7' : 'imx',
>> 'mba6' : 'imx',
>> 'ls': 'fsl',
>> 'vf': 'fsl',
>> 'qcom': 'qcom',
>> 'am3' : 'ti',
>> 'am4' : 'ti',
>> 'am5' : 'ti',
>> 'dra' : 'ti',
>> 'keystone' : 'ti',
>> 'omap' : 'ti',
>> 'compulab' : 'ti',
>> 'logicpd' : 'ti',
>> 'elpida' : 'ti',
>> 'motorola' : 'ti',
>> 'twl' : 'ti',
>> 'da' : 'ti',
>> 'dm' : 'ti',
>> 'nspire' : 'nspire',
>> 'armada' : 'marvell',
>> 'dove' : 'marvell',
>> 'kirkwood' : 'marvell',
>> 'orion' : 'marvell',
>> 'mvebu' : 'marvell',
>> 'mmp' : 'marvell',
>> 'berlin' : 'berlin',
>> 'pxa2' : 'pxa',
>> 'pxa3' : 'pxa',
>> 'pxa' : 'marvell',
>> 'arm-' : 'arm',
>> 'integ' : 'arm',
>> 'mps' : 'arm',
>> 've' : 'arm',
>> 'aspeed' : 'aspeed',
>> 'ast2' : 'aspeed',
>> 'facebook' : 'aspeed',
>> 'ibm' : 'aspeed',
>> 'openbmc' : 'aspeed',
>> 'en7' : 'airoha',
>> 'at91' : 'microchip',
>> 'sama' : 'microchip',
>> 'sam9' : 'microchip',
>> 'usb_' : 'microchip',
>> 'tny_' : 'microchip',
>> 'mpa1600' : 'microchip',
>> 'animeo_ip' : 'microchip',
>> 'aks-cdu' : 'microchip',
>> 'ethernut5' : 'microchip',
>> 'evk-pro3' : 'microchip',
>> 'pm9g45' : 'microchip',
>> 'ge86' : 'microchip',
>> 'bcm' : 'brcm',
>> 'exynos' : 'samsung',
>> 's3c' : 'samsung',
>> 's5p' : 'samsung',
>> 'gemini' : 'gemini',
>> 'hi3' : 'hisilicon',
>> 'hip' : 'hisilicon',
>> 'hisi' : 'hisilicon',
>> 'sd5' : 'hisilicon',
>> 'hpe' : 'hpe',
>> 'intel': 'intel',
>> 'mt' : 'mediatek',
>> 'meson' : 'meson',
>
> ‘meson’ : ‘amlogic’,
>
> ^ to match the SoC vendor name (and arm64)
Ack we're trying to get rid of meson, so it would be time.
Neil
>
> Christian
>
>> 'moxa' : 'moxa',
>> 'mstar' : 'mstar',
>> 'nuvo' : 'nuvoton',
>> 'lpc' : 'lpc',
>> 'lan96' : 'microchip',
>> 'owl' : 'actions',
>> 'ox8' : 'oxsemi',
>> 'rda' : 'rda',
>> 'rtd' : 'realtek',
>> 'r7' : 'renesas',
>> 'r8' : 'renesas',
>> 'r9' : 'renesas',
>> 'emev2' : 'renesas',
>> 'sh73a' : 'renesas',
>> 'gr-' : 'renesas',
>> 'iwg' : 'renesas',
>> 'rk' : 'rockchip',
>> 'rv11' : 'rockchip',
>> 'rockchip' : 'rockchip',
>> 'socfpga' : 'socfpga',
>> 'stm' : 'stm32',
>> 'sti' : 'sti',
>> 'st-pin' : 'sti',
>> 'ste' : 'st-ericsson',
>> 'spear' : 'spear',
>> 'axp' : 'allwinner',
>> 'tegra' : 'nvidia',
>> 'milbeaut' : 'socionext',
>> 'uniph' : 'socionext',
>> 'vt8500' : 'vt8500',
>> 'wm8' : 'vt8500',
>> 'xen' : 'xen',
>> 'zx' : 'zte',
>> 'zynq' : 'xilinx',
>> }
>>
>> Rob
>>
>> [1] git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git arm-dts-move-v2
>>
>> _______________________________________________
>> linux-amlogic mailing list
>> linux-amlogic@lists.infradead.org
>> http://lists.infradead.org/mailman/listinfo/linux-amlogic
>
^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: [RFC PATCH 0/1] Categorize ARM dts directory
2023-05-03 1:19 ` Shawn Guo
@ 2023-05-03 10:43 ` Arnd Bergmann
0 siblings, 0 replies; 35+ messages in thread
From: Arnd Bergmann @ 2023-05-03 10:43 UTC (permalink / raw)
To: Shawn Guo, Krzysztof Kozlowski
Cc: Rob Herring, Geert Uytterhoeven, Olof Johansson,
Christian Marangi, Krzysztof Kozlowski, linux-arm-kernel,
devicetree, linux-kernel, linux-actions, linux-sunxi, Linux-OMAP,
linux-amlogic, linux-arm-kernel, linux-aspeed, linux-rpi-kernel,
chrome-platform, Linux-Renesas, linux-samsung-soc, linux-stm32,
kernel, linux-mediatek, openbmc, linux-tegra,
linux-oxnas@groups.io, linux-arm-msm, linux-unisoc,
linux-rockchip, linux-realtek-soc
On Wed, May 3, 2023, at 03:19, Shawn Guo wrote:
> On Tue, May 02, 2023 at 10:02:03PM +0200, Krzysztof Kozlowski wrote:
>> On 02/05/2023 21:40, Rob Herring wrote:
>>
>> If I remember correctly, Vybrid are a bit closer to iMX than to LS
>> (Layerscape), but it should be Shawn's call (+Cc).
>
> I would suggest to have all Freescale/NXP platforms in a single
> directory, which includes all mxs, imx, fsl ones.
I'd go with 'nxp' for all of those then, and also include the lpc* ones.
It's fine to stay with historic names if changing it causes problems,
but if we are going to change anyway, then let's call it the current
owner's name. It will get messy again soon enough with the next round
of mergers and acquisitions.
Arnd
^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: [RFC PATCH 0/1] Categorize ARM dts directory
2023-05-02 19:40 ` Rob Herring
` (5 preceding siblings ...)
2023-05-03 8:56 ` Geert Uytterhoeven
@ 2023-05-03 11:02 ` Arnd Bergmann
2023-05-03 13:08 ` Rob Herring
` (2 more replies)
2023-05-03 12:01 ` Jesper Nilsson
` (2 subsequent siblings)
9 siblings, 3 replies; 35+ messages in thread
From: Arnd Bergmann @ 2023-05-03 11:02 UTC (permalink / raw)
To: Rob Herring
Cc: Geert Uytterhoeven, Olof Johansson, Christian Marangi,
Krzysztof Kozlowski, Krzysztof Kozlowski, linux-arm-kernel,
devicetree, linux-kernel, linux-actions, linux-sunxi, Linux-OMAP,
linux-amlogic, linux-arm-kernel, linux-aspeed, linux-rpi-kernel,
chrome-platform, Linux-Renesas, linux-samsung-soc, linux-stm32,
kernel, linux-mediatek, openbmc, linux-tegra,
linux-oxnas@groups.io, linux-arm-msm, linux-unisoc,
linux-rockchip, linux-realtek-soc
On Tue, May 2, 2023, at 21:40, Rob Herring wrote:
> On Tue, May 2, 2023 at 3:15 AM Arnd Bergmann <arnd@arndb.de> wrote:
> vendor_map = {
> 'alphascale' : 'alphascale',
> 'alpine' : 'alpine',
I would make this one 'amazon' if we go with current manufacturers.
> 'nspire' : 'nspire',
nspire is the name of the end-user product, so that doesn't quite
fit. The SoC was apparently an LSI logic Zevio, which is now owned
by Broadcom.
> 'mvebu' : 'marvell',
> 'mmp' : 'marvell',
> 'berlin' : 'berlin',
While berlin is related to pxa/mmp, this one is now owned
by Synaptics, and the 64-bit versions are already in the
synaptics subdir, so I'd go with teh same here.
> 'openbmc' : 'aspeed',
> 'en7' : 'airoha',
airoha is a separate company now, but the hardware is still
shared with mediatek, so we could consider lumping it into
that subdir, but a separate one may be better long-term.
> 'gemini' : 'gemini',
This one is also a product name, not a company. Apparently,
gemini was originally made by Storm Semiconductor, and then
by Cortina, which was subsequently acquired by Inphi, and that ended
up in Marvell after the product was already discontinued.
Out of the four, I'd probably go with 'cortina' as the
directory name.
> 'meson' : 'meson',
-> amlogic
> 'moxa' : 'moxa',
> 'mstar' : 'mstar',
-> sigmastar
> 'nuvo' : 'nuvoton',
> 'lpc' : 'lpc',
-> nxp
> 'lan96' : 'microchip',
> 'owl' : 'actions',
> 'ox8' : 'oxsemi',
> 'rda' : 'rda',
-> unisoc
> 'rtd' : 'realtek',
> 'r7' : 'renesas',
> 'r8' : 'renesas',
> 'r9' : 'renesas',
> 'emev2' : 'renesas',
> 'sh73a' : 'renesas',
> 'gr-' : 'renesas',
> 'iwg' : 'renesas',
> 'rk' : 'rockchip',
> 'rv11' : 'rockchip',
> 'rockchip' : 'rockchip',
> 'socfpga' : 'socfpga',
-> intel
> 'stm' : 'stm32',
> 'sti' : 'sti',
> 'st-pin' : 'sti',
> 'ste' : 'st-ericsson',
> 'spear' : 'spear',
I would put all five of these into 'st'. The ux500 was developed
in st-ericsson, but last sold by st, and the other ones are all
original st products.
Arnd
^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: [RFC PATCH 0/1] Categorize ARM dts directory
2023-05-02 19:40 ` Rob Herring
` (6 preceding siblings ...)
2023-05-03 11:02 ` Arnd Bergmann
@ 2023-05-03 12:01 ` Jesper Nilsson
2023-05-04 10:11 ` Russell King (Oracle)
2023-05-09 22:54 ` Jonathan Neuschäfer
9 siblings, 0 replies; 35+ messages in thread
From: Jesper Nilsson @ 2023-05-03 12:01 UTC (permalink / raw)
To: Rob Herring
Cc: Arnd Bergmann, linux-aspeed, linux-realtek-soc, linux-arm-kernel,
linux-stm32, chrome-platform, linux-samsung-soc, openbmc,
Krzysztof Kozlowski, linux-rockchip, Geert Uytterhoeven,
linux-sunxi, devicetree, linux-arm-msm, linux-actions,
linux-unisoc, linux-mediatek, linux-rpi-kernel, linux-tegra,
linux-amlogic, Linux-OMAP, linux-arm-kernel, linux-kernel,
Christian Marangi, Linux-Renesas, kernel,
Olof Johansson <olof@lixom.net>, Krzysztof Kozlowski <krzk+dt@kernel.org>, linux-oxnas@groups.io
On Tue, May 02, 2023 at 02:40:19PM -0500, Rob Herring wrote:
> On Tue, May 2, 2023 at 3:15 AM Arnd Bergmann <arnd@arndb.de> wrote:
> 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 = {
> [...]
> 'artpec' : 'axis',
Looks good for our platforms also, thanks!
/^JN - Jesper Nilsson
--
Jesper Nilsson -- jesper.nilsson@axis.com
^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: [RFC PATCH 0/1] Categorize ARM dts directory
2023-05-03 10:38 ` Arnd Bergmann
@ 2023-05-03 12:13 ` Dmitry Baryshkov
2023-05-03 12:18 ` Arnd Bergmann
0 siblings, 1 reply; 35+ messages in thread
From: Dmitry Baryshkov @ 2023-05-03 12:13 UTC (permalink / raw)
To: Arnd Bergmann
Cc: Rob Herring, Geert Uytterhoeven, Olof Johansson,
Christian Marangi, Krzysztof Kozlowski, Krzysztof Kozlowski,
linux-arm-kernel, devicetree, linux-kernel, linux-actions,
linux-sunxi, Linux-OMAP, linux-amlogic, linux-arm-kernel,
linux-aspeed, linux-rpi-kernel, chrome-platform, Linux-Renesas,
linux-samsung-soc, linux-stm32, kernel, linux-mediatek, openbmc,
linux-tegra, linux-oxnas@groups.io, linux-arm-msm, linux-unisoc,
linux-rockchip, linux-realtek-soc
On Wed, 3 May 2023 at 13:39, Arnd Bergmann <arnd@arndb.de> wrote:
>
> On Wed, May 3, 2023, at 03:17, Rob Herring wrote:
> > On Tue, May 2, 2023 at 5:52 PM Dmitry Baryshkov <dmitry.baryshkov@linaro.org> wrote:
> >> On 02/05/2023 22:40, Rob Herring wrote:
> >> > 'berlin' : 'berlin',
> >> > 'pxa2' : 'pxa',
> >> > 'pxa3' : 'pxa',
> >> > 'pxa' : 'marvell',
> >>
> >> I'd question if it makes sense to split the pxa line. Yes, it was sold
> >> by Intel to Marvell, but IIRC the devices still had some inheritance.
> >> So, if we have the 'pxa' subdir, I'd move Marvell PXAs to that dir too.
> >
> > I think I probably split it because it was different maintainers.
> > Though it doesn't look like pxa168 or pxa910 have any maintainer. They
> > are a mixture of pxa and mmp I think.
>
> I think the original split here is probably the best we can do,
> but there is no good way to do it because of the confusing naming
> and the problem that there is no clear line between pxa and mmp.
> As far as I can tell, the release timeline was:
>
> Intel pxa2xx (mach-pxa, xscale, still exists)
> Intel pxa3xx (mach-pxa, xscale, still exists)
> Intel pxa90x (never merged)
> Marvell pxa93x (mach-pxa, xscale, removed in Linux-6.3, no DT)
> Marvell pxa92x (never merged)
> Marvell pxa91x (mach-mmp, pj1, still exists)
> Marvell pxa168 (mach-mmp, pj1, still exists)
> Marvell pxa95x (mach-pxa, pj4, long gone)
> Marvell pxa688 (mach-mmp, pj4, known as mmp2)
>
> So with pxa93x out of the picture, we can simplify it as using
> 'pxa' as the name for all the above chips with an Intel XScale
> core, and 'marvell' for all the other ones that have a Marvell
> core and exist in mach-mmp.
Should it be 'intel' for pxa[23]xx then?
>
> Arnd
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: [RFC PATCH 0/1] Categorize ARM dts directory
2023-05-03 12:13 ` Dmitry Baryshkov
@ 2023-05-03 12:18 ` Arnd Bergmann
2023-05-03 13:16 ` Rob Herring
0 siblings, 1 reply; 35+ messages in thread
From: Arnd Bergmann @ 2023-05-03 12:18 UTC (permalink / raw)
To: Dmitry Baryshkov
Cc: Rob Herring, Geert Uytterhoeven, Olof Johansson,
Christian Marangi, Krzysztof Kozlowski, Krzysztof Kozlowski,
linux-arm-kernel, devicetree, linux-kernel, linux-actions,
linux-sunxi, Linux-OMAP, linux-amlogic, linux-arm-kernel,
linux-aspeed, linux-rpi-kernel, chrome-platform, Linux-Renesas,
linux-samsung-soc, linux-stm32, kernel, linux-mediatek, openbmc,
linux-tegra, linux-oxnas@groups.io, linux-arm-msm, linux-unisoc,
linux-rockchip, linux-realtek-soc
On Wed, May 3, 2023, at 14:13, Dmitry Baryshkov wrote:
> On Wed, 3 May 2023 at 13:39, Arnd Bergmann <arnd@arndb.de> wrote:
>> So with pxa93x out of the picture, we can simplify it as using
>> 'pxa' as the name for all the above chips with an Intel XScale
>> core, and 'marvell' for all the other ones that have a Marvell
>> core and exist in mach-mmp.
>
> Should it be 'intel' for pxa[23]xx then?
Probably yes, that would put it next to ixp4xx, which makes
a lot of sense (same vintage, same cpu core), though it is
a bit funny to have these together with lsi axxia and
altera socfpga, both of which are also in the intel
directory. socfpga is of course the only one that anybody
at Intel cares about these days.
Arnd
^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: [RFC PATCH 0/1] Categorize ARM dts directory
2023-05-03 11:02 ` Arnd Bergmann
@ 2023-05-03 13:08 ` Rob Herring
2023-05-03 20:25 ` Linus Walleij
2023-05-04 7:09 ` [Linux-stm32] " Alexandre TORGUE
2 siblings, 0 replies; 35+ messages in thread
From: Rob Herring @ 2023-05-03 13:08 UTC (permalink / raw)
To: Arnd Bergmann
Cc: Geert Uytterhoeven, Olof Johansson, Christian Marangi,
Krzysztof Kozlowski, Krzysztof Kozlowski, linux-arm-kernel,
devicetree, linux-kernel, linux-actions, linux-sunxi, Linux-OMAP,
linux-amlogic, linux-arm-kernel, linux-aspeed, linux-rpi-kernel,
chrome-platform, Linux-Renesas, linux-samsung-soc, linux-stm32,
kernel, linux-mediatek, openbmc, linux-tegra,
linux-oxnas@groups.io, linux-arm-msm, linux-unisoc,
linux-rockchip, linux-realtek-soc
On Wed, May 3, 2023 at 6:02 AM Arnd Bergmann <arnd@arndb.de> wrote:
>
> On Tue, May 2, 2023, at 21:40, Rob Herring wrote:
> > On Tue, May 2, 2023 at 3:15 AM Arnd Bergmann <arnd@arndb.de> wrote:
>
> > vendor_map = {
> > 'alphascale' : 'alphascale',
> > 'alpine' : 'alpine',
>
> I would make this one 'amazon' if we go with current manufacturers.
>
> > 'nspire' : 'nspire',
>
> nspire is the name of the end-user product, so that doesn't quite
> fit. The SoC was apparently an LSI logic Zevio, which is now owned
> by Broadcom.
I'm inclined to leave it. I put it in the category of a one-off thing
that's not sharing anything
> > 'mvebu' : 'marvell',
> > 'mmp' : 'marvell',
> > 'berlin' : 'berlin',
>
> While berlin is related to pxa/mmp, this one is now owned
> by Synaptics, and the 64-bit versions are already in the
> synaptics subdir, so I'd go with teh same here.
>
> > 'openbmc' : 'aspeed',
> > 'en7' : 'airoha',
>
> airoha is a separate company now, but the hardware is still
> shared with mediatek, so we could consider lumping it into
> that subdir, but a separate one may be better long-term.
>
> > 'gemini' : 'gemini',
>
> This one is also a product name, not a company. Apparently,
> gemini was originally made by Storm Semiconductor, and then
> by Cortina, which was subsequently acquired by Inphi, and that ended
> up in Marvell after the product was already discontinued.
>
> Out of the four, I'd probably go with 'cortina' as the
> directory name.
I had 'cortina' previously. Linus wanted gemini...
Rob
^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: [RFC PATCH 0/1] Categorize ARM dts directory
2023-05-03 12:18 ` Arnd Bergmann
@ 2023-05-03 13:16 ` Rob Herring
2023-05-03 20:37 ` Arnd Bergmann
0 siblings, 1 reply; 35+ messages in thread
From: Rob Herring @ 2023-05-03 13:16 UTC (permalink / raw)
To: Arnd Bergmann
Cc: Dmitry Baryshkov, Geert Uytterhoeven, Olof Johansson,
Christian Marangi, Krzysztof Kozlowski, Krzysztof Kozlowski,
linux-arm-kernel, devicetree, linux-kernel, linux-actions,
linux-sunxi, Linux-OMAP, linux-amlogic, linux-arm-kernel,
linux-aspeed, linux-rpi-kernel, chrome-platform, Linux-Renesas,
linux-samsung-soc, linux-stm32, kernel, linux-mediatek, openbmc,
linux-tegra, linux-oxnas@groups.io, linux-arm-msm, linux-unisoc,
linux-rockchip, linux-realtek-soc
On Wed, May 3, 2023 at 7:19 AM Arnd Bergmann <arnd@arndb.de> wrote:
>
> On Wed, May 3, 2023, at 14:13, Dmitry Baryshkov wrote:
> > On Wed, 3 May 2023 at 13:39, Arnd Bergmann <arnd@arndb.de> wrote:
>
> >> So with pxa93x out of the picture, we can simplify it as using
> >> 'pxa' as the name for all the above chips with an Intel XScale
> >> core, and 'marvell' for all the other ones that have a Marvell
> >> core and exist in mach-mmp.
> >
> > Should it be 'intel' for pxa[23]xx then?
>
> Probably yes, that would put it next to ixp4xx, which makes
> a lot of sense (same vintage, same cpu core), though it is
> a bit funny to have these together with lsi axxia and
> altera socfpga, both of which are also in the intel
> directory. socfpga is of course the only one that anybody
> at Intel cares about these days.
We could do a second level of directories here:
intel/pxa/
intel/ixp/
intel/socfpga/
arm64 broadcom dts files are structured that way.
Rob
^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: [RFC PATCH 0/1] Categorize ARM dts directory
2023-05-03 11:02 ` Arnd Bergmann
2023-05-03 13:08 ` Rob Herring
@ 2023-05-03 20:25 ` Linus Walleij
2023-05-04 7:09 ` [Linux-stm32] " Alexandre TORGUE
2 siblings, 0 replies; 35+ messages in thread
From: Linus Walleij @ 2023-05-03 20:25 UTC (permalink / raw)
To: Arnd Bergmann
Cc: Rob Herring, Geert Uytterhoeven, Olof Johansson,
Christian Marangi, Krzysztof Kozlowski, Krzysztof Kozlowski,
linux-arm-kernel, devicetree, linux-kernel, linux-actions,
linux-sunxi, Linux-OMAP, linux-amlogic, linux-arm-kernel,
linux-aspeed, linux-rpi-kernel, chrome-platform, Linux-Renesas,
linux-samsung-soc, linux-stm32, kernel, linux-mediatek, openbmc,
linux-tegra, linux-oxnas@groups.io, linux-arm-msm, linux-unisoc,
linux-rockchip, linux-realtek-soc
On Wed, May 3, 2023 at 1:03 PM Arnd Bergmann <arnd@arndb.de> wrote:
> > 'gemini' : 'gemini',
>
> This one is also a product name, not a company. Apparently,
> gemini was originally made by Storm Semiconductor, and then
> by Cortina, which was subsequently acquired by Inphi, and that ended
> up in Marvell after the product was already discontinued.
>
> Out of the four, I'd probably go with 'cortina' as the
> directory name.
>
StorLink was the initial company, thus SL3516, SL3512
the name of the chips.
Then that company changed name to Storm Semiconductor.
Git acquired by Cortina.
Then Inphi acquired Cortina.
Then Marvell scooped up the IP.
If we *have* to use a company name I would use storlink,
because the chips are named after that.
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: [RFC PATCH 0/1] Categorize ARM dts directory
2023-05-03 13:16 ` Rob Herring
@ 2023-05-03 20:37 ` Arnd Bergmann
2023-05-03 20:39 ` Linus Walleij
2023-05-03 22:22 ` Rob Herring
0 siblings, 2 replies; 35+ messages in thread
From: Arnd Bergmann @ 2023-05-03 20:37 UTC (permalink / raw)
To: Rob Herring
Cc: Dmitry Baryshkov, Geert Uytterhoeven, Olof Johansson,
Christian Marangi, Krzysztof Kozlowski, Krzysztof Kozlowski,
linux-arm-kernel, devicetree, linux-kernel, linux-actions,
linux-sunxi, Linux-OMAP, linux-amlogic, linux-arm-kernel,
linux-aspeed, linux-rpi-kernel, chrome-platform, Linux-Renesas,
linux-samsung-soc, linux-stm32, kernel, linux-mediatek, openbmc,
linux-tegra, linux-oxnas@groups.io, linux-arm-msm, linux-unisoc,
linux-rockchip, linux-realtek-soc
On Wed, May 3, 2023, at 15:16, Rob Herring wrote:
> We could do a second level of directories here:
Works for me, but at that point, I'd really also want to do it
for nxp with its five or more product lines (mxs, imx, lpc,
s32, layerscape, vybrid)
> intel/pxa/
> intel/ixp/
> intel/socfpga/
and intel/axxia I guess.
Arnd
^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: [RFC PATCH 0/1] Categorize ARM dts directory
2023-05-03 20:37 ` Arnd Bergmann
@ 2023-05-03 20:39 ` Linus Walleij
2023-05-03 22:22 ` Rob Herring
1 sibling, 0 replies; 35+ messages in thread
From: Linus Walleij @ 2023-05-03 20:39 UTC (permalink / raw)
To: Arnd Bergmann
Cc: Rob Herring, Dmitry Baryshkov, Geert Uytterhoeven, Olof Johansson,
Christian Marangi, Krzysztof Kozlowski, Krzysztof Kozlowski,
linux-arm-kernel, devicetree, linux-kernel, linux-actions,
linux-sunxi, Linux-OMAP, linux-amlogic, linux-arm-kernel,
linux-aspeed, linux-rpi-kernel, chrome-platform, Linux-Renesas,
linux-samsung-soc, linux-stm32, kernel, linux-mediatek, openbmc,
linux-tegra, linux-oxnas@groups.io, linux-arm-msm, linux-unisoc,
linux-rockchip, linux-realtek-soc
On Wed, May 3, 2023 at 10:37 PM Arnd Bergmann <arnd@arndb.de> wrote:
> On Wed, May 3, 2023, at 15:16, Rob Herring wrote:
>
> > We could do a second level of directories here:
>
> Works for me, but at that point, I'd really also want to do it
> for nxp with its five or more product lines (mxs, imx, lpc,
> s32, layerscape, vybrid)
>
> > intel/pxa/
> > intel/ixp/
> > intel/socfpga/
>
> and intel/axxia I guess.
This looks neat. I like it.
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: [RFC PATCH 0/1] Categorize ARM dts directory
2023-05-03 20:37 ` Arnd Bergmann
2023-05-03 20:39 ` Linus Walleij
@ 2023-05-03 22:22 ` Rob Herring
1 sibling, 0 replies; 35+ messages in thread
From: Rob Herring @ 2023-05-03 22:22 UTC (permalink / raw)
To: Arnd Bergmann
Cc: Dmitry Baryshkov, Geert Uytterhoeven, Olof Johansson,
Christian Marangi, Krzysztof Kozlowski, Krzysztof Kozlowski,
linux-arm-kernel, devicetree, linux-kernel, linux-actions,
linux-sunxi, Linux-OMAP, linux-amlogic, linux-arm-kernel,
linux-aspeed, linux-rpi-kernel, chrome-platform, Linux-Renesas,
linux-samsung-soc, linux-stm32, kernel, linux-mediatek, openbmc,
linux-tegra, linux-oxnas@groups.io, linux-arm-msm, linux-unisoc,
linux-rockchip, linux-realtek-soc
On Wed, May 3, 2023 at 3:37 PM Arnd Bergmann <arnd@arndb.de> wrote:
>
> On Wed, May 3, 2023, at 15:16, Rob Herring wrote:
>
> > We could do a second level of directories here:
>
> Works for me, but at that point, I'd really also want to do it
> for nxp with its five or more product lines (mxs, imx, lpc,
> s32, layerscape, vybrid)
And marvell, microchip(lan96), ti, and broadcom probably. I think I
withdraw my suggestion...
Rob
^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: [RFC PATCH 0/1] Categorize ARM dts directory
2023-05-03 1:04 ` Rob Herring
@ 2023-05-03 22:29 ` Florian Fainelli
0 siblings, 0 replies; 35+ messages in thread
From: Florian Fainelli @ 2023-05-03 22:29 UTC (permalink / raw)
To: Rob Herring
Cc: Arnd Bergmann, Geert Uytterhoeven, Olof Johansson,
Christian Marangi, Krzysztof Kozlowski, Krzysztof Kozlowski,
linux-arm-kernel, devicetree, linux-kernel, linux-actions,
linux-sunxi, Linux-OMAP, linux-amlogic, linux-arm-kernel,
linux-aspeed, linux-rpi-kernel, chrome-platform, Linux-Renesas,
linux-samsung-soc, linux-stm32, kernel, linux-mediatek, openbmc,
linux-tegra, linux-oxnas@groups.io, linux-arm-msm, linux-unisoc,
linux-rockchip, linux-realtek-soc
On 5/2/23 18:04, Rob Herring wrote:
> On Tue, May 2, 2023 at 6:02 PM Florian Fainelli <f.fainelli@gmail.com> wrote:
>>
>> On 5/2/23 12:40, Rob Herring wrote:
>>> On Tue, May 2, 2023 at 3:15 AM Arnd Bergmann <arnd@arndb.de> wrote:
>>>>
>>>> On Tue, Apr 25, 2023, at 17:57, Rob Herring wrote:
>>>>> On Tue, Apr 25, 2023 at 2:28 AM Geert Uytterhoeven <geert@linux-m68k.org> wrote:
>>>>>
>>>>>> Does your script also cater for .dts files not matching any pattern,
>>>>>> but including a .dtsi file that does match a pattern?
>>>>>
>>>>> I assume I built everything after moving, but maybe not...
>>>>>
>>>>> That's all just "details". First, we need agreement on a) moving
>>>>> things to subdirs and b) doing it 1-by-1 or all at once. So far we've
>>>>> been stuck on a) for being 'too much churn'.
>>>>
>>>> Sorry for missing most of the discussion last week. The script sounds
>>>> fine to me, the only reason I didn't want to do this in the past is that
>>>> we had the plan to move platforms out of the kernel tree to an external
>>>> repository and I wanted to do this platform at a time and also only move
>>>> each one once. I don't think that is going to happen anytime soon now,
>>>> so let's just do your script.
>>>>
>>>> Can you send me the script and/or a pull request of the resulting
>>>> tree based on my soc/dt branch? Everything is merged upstream,
>>>> and I think git-merge would handle the remaining merges with any
>>>> other changes in mainline.
>>>
>>> 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 = {
>>> 'alphascale' : 'alphascale',
>>> 'alpine' : 'alpine',
>>> 'artpec' : 'axis',
>>> 'axm' : 'lsi',
>>> 'cx9' : 'cnxt',
>>> 'ecx' : 'calxeda',
>>> 'highbank' : 'calxeda',
>>> 'ep7' : 'cirrus',
>>> 'mxs': 'mxs',
>>> 'imx23': 'mxs',
>>> 'imx28': 'mxs',
>>> 'sun' : 'allwinner',
>>> 'imx': 'imx',
>>> 'e6' : 'imx',
>>> 'e7' : 'imx',
>>> 'mba6' : 'imx',
>>> 'ls': 'fsl',
>>> 'vf': 'fsl',
>>> 'qcom': 'qcom',
>>> 'am3' : 'ti',
>>> 'am4' : 'ti',
>>> 'am5' : 'ti',
>>> 'dra' : 'ti',
>>> 'keystone' : 'ti',
>>> 'omap' : 'ti',
>>> 'compulab' : 'ti',
>>> 'logicpd' : 'ti',
>>> 'elpida' : 'ti',
>>> 'motorola' : 'ti',
>>> 'twl' : 'ti',
>>> 'da' : 'ti',
>>> 'dm' : 'ti',
>>> 'nspire' : 'nspire',
>>> 'armada' : 'marvell',
>>> 'dove' : 'marvell',
>>> 'kirkwood' : 'marvell',
>>> 'orion' : 'marvell',
>>> 'mvebu' : 'marvell',
>>> 'mmp' : 'marvell',
>>> 'berlin' : 'berlin',
>>> 'pxa2' : 'pxa',
>>> 'pxa3' : 'pxa',
>>> 'pxa' : 'marvell',
>>> 'arm-' : 'arm',
>>> 'integ' : 'arm',
>>> 'mps' : 'arm',
>>> 've' : 'arm',
>>> 'aspeed' : 'aspeed',
>>> 'ast2' : 'aspeed',
>>> 'facebook' : 'aspeed',
>>> 'ibm' : 'aspeed',
>>> 'openbmc' : 'aspeed',
>>> 'en7' : 'airoha',
>>> 'at91' : 'microchip',
>>> 'sama' : 'microchip',
>>> 'sam9' : 'microchip',
>>> 'usb_' : 'microchip',
>>> 'tny_' : 'microchip',
>>> 'mpa1600' : 'microchip',
>>> 'animeo_ip' : 'microchip',
>>> 'aks-cdu' : 'microchip',
>>> 'ethernut5' : 'microchip',
>>> 'evk-pro3' : 'microchip',
>>> 'pm9g45' : 'microchip',
>>> 'ge86' : 'microchip',
>>> 'bcm' : 'brcm',
>>
>> How about we use 'broadcom' here, to follow what arm64 does? I could
>> rename arch/mips/boot/dts/brcm to arch/mips/boot/dts/broadcom for
>> consistency, too?
>
> Okay, though if starting clean I'd somewhat prefer to use the vendor
> prefix. I guess since arm and arm64 share dtsi files, they should
> match.
Sounds good to me, let's go with "brcm" then.
--
Florian
^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: [Linux-stm32] [RFC PATCH 0/1] Categorize ARM dts directory
2023-05-03 11:02 ` Arnd Bergmann
2023-05-03 13:08 ` Rob Herring
2023-05-03 20:25 ` Linus Walleij
@ 2023-05-04 7:09 ` Alexandre TORGUE
2 siblings, 0 replies; 35+ messages in thread
From: Alexandre TORGUE @ 2023-05-04 7:09 UTC (permalink / raw)
To: Arnd Bergmann, Rob Herring
Cc: linux-aspeed, linux-realtek-soc, linux-arm-kernel, linux-stm32,
chrome-platform, linux-samsung-soc, openbmc, Krzysztof Kozlowski,
linux-rockchip, Geert Uytterhoeven, linux-sunxi, devicetree,
linux-arm-msm, linux-actions, linux-unisoc, linux-mediatek,
linux-rpi-kernel, linux-tegra, linux-amlogic, Linux-OMAP,
linux-arm-kernel, linux-kernel, Christian Marangi, Linux-Renesas,
kernel, Olof Johansson, Krzysztof Kozlowski,
linux-oxnas@groups.io
On 5/3/23 13:02, Arnd Bergmann wrote:
> On Tue, May 2, 2023, at 21:40, Rob Herring wrote:
>> On Tue, May 2, 2023 at 3:15 AM Arnd Bergmann <arnd@arndb.de> wrote:
>
...
>
>> 'stm' : 'stm32',
>> 'sti' : 'sti',
>> 'st-pin' : 'sti',
>> 'ste' : 'st-ericsson',
>> 'spear' : 'spear',
>
> I would put all five of these into 'st'. The ux500 was developed
> in st-ericsson, but last sold by st, and the other ones are all
> original st products.
Acked-by: Alexandre TORGUE <alexandre.torgue@st.com>
thanks
Alex
>
> Arnd
> _______________________________________________
> Linux-stm32 mailing list
> Linux-stm32@st-md-mailman.stormreply.com
> https://st-md-mailman.stormreply.com/mailman/listinfo/linux-stm32
^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: [RFC PATCH 0/1] Categorize ARM dts directory
2023-05-02 19:40 ` Rob Herring
` (7 preceding siblings ...)
2023-05-03 12:01 ` Jesper Nilsson
@ 2023-05-04 10:11 ` Russell King (Oracle)
2023-05-04 11:44 ` Arnd Bergmann
2023-05-09 22:54 ` Jonathan Neuschäfer
9 siblings, 1 reply; 35+ messages in thread
From: Russell King (Oracle) @ 2023-05-04 10:11 UTC (permalink / raw)
To: Rob Herring
Cc: Arnd Bergmann, Geert Uytterhoeven, Olof Johansson,
Christian Marangi, Krzysztof Kozlowski, Krzysztof Kozlowski,
linux-arm-kernel, devicetree, linux-kernel, linux-actions,
linux-sunxi, Linux-OMAP, linux-amlogic, linux-arm-kernel,
linux-aspeed, linux-rpi-kernel, chrome-platform, Linux-Renesas,
linux-samsung-soc, linux-stm32, kernel, linux-mediatek, openbmc,
linux-tegra, linux-oxnas@groups.io, linux-arm-msm, linux-unisoc,
linux-rockchip, linux-realtek-soc
On Tue, May 02, 2023 at 02:40:19PM -0500, Rob Herring wrote:
> 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.
I haven't followed this discussion at all, so here's a question.
What does this mean for the _installed_ dtb files? Do they move
location? If they do, lots is going to break, because there will
be u-boot configurations and other scripts that assume the flat
directory structure for the installed dtb files.
I don't think changing the installed dtb structure is acceptable
at this point in time. It's something that _should_ have been
thought about when ARM was converted to dtb, it's too late to be
changing that now.
--
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!
^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: [RFC PATCH 0/1] Categorize ARM dts directory
2023-05-04 10:11 ` Russell King (Oracle)
@ 2023-05-04 11:44 ` Arnd Bergmann
0 siblings, 0 replies; 35+ messages in thread
From: Arnd Bergmann @ 2023-05-04 11:44 UTC (permalink / raw)
To: Russell King, Rob Herring
Cc: Geert Uytterhoeven, Olof Johansson, Christian Marangi,
Krzysztof Kozlowski, Krzysztof Kozlowski, linux-arm-kernel,
devicetree, linux-kernel, linux-actions, linux-sunxi, Linux-OMAP,
linux-amlogic, linux-arm-kernel, linux-aspeed, linux-rpi-kernel,
chrome-platform, Linux-Renesas, linux-samsung-soc, linux-stm32,
kernel, linux-mediatek, openbmc, linux-tegra,
linux-oxnas@groups.io, linux-arm-msm, linux-unisoc,
linux-rockchip, linux-realtek-soc
On Thu, May 4, 2023, at 12:11, Russell King (Oracle) wrote:
> On Tue, May 02, 2023 at 02:40:19PM -0500, Rob Herring wrote:
>> 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.
>
> I haven't followed this discussion at all, so here's a question.
>
> What does this mean for the _installed_ dtb files? Do they move
> location? If they do, lots is going to break, because there will
> be u-boot configurations and other scripts that assume the flat
> directory structure for the installed dtb files.
>
> I don't think changing the installed dtb structure is acceptable
> at this point in time. It's something that _should_ have been
> thought about when ARM was converted to dtb, it's too late to be
> changing that now.
Rob said earlier that his script does keep a flat directory
for the output of 'make dtbs_install'.
Arnd
^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: [RFC PATCH 0/1] Categorize ARM dts directory
2023-05-02 19:40 ` Rob Herring
` (8 preceding siblings ...)
2023-05-04 10:11 ` Russell King (Oracle)
@ 2023-05-09 22:54 ` Jonathan Neuschäfer
9 siblings, 0 replies; 35+ messages in thread
From: Jonathan Neuschäfer @ 2023-05-09 22:54 UTC (permalink / raw)
To: Rob Herring
Cc: Arnd Bergmann, linux-aspeed, linux-realtek-soc, linux-arm-kernel,
linux-stm32, chrome-platform, linux-samsung-soc, openbmc,
Krzysztof Kozlowski, linux-rockchip, Geert Uytterhoeven,
linux-sunxi, devicetree, linux-arm-msm, linux-actions,
linux-unisoc, linux-mediatek, linux-rpi-kernel, linux-tegra,
linux-amlogic, Linux-OMAP, linux-arm-kernel, linux-kernel,
Christian Marangi, Linux-Renesas, kernel, Olof Johansson,
Krzysztof Kozlowski, linux-oxnas@groups.io
[-- Attachment #1: Type: text/plain, Size: 1432 bytes --]
On Tue, May 02, 2023 at 02:40:19PM -0500, Rob Herring wrote:
[...]
> 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 = {
[...]
> 'aspeed' : 'aspeed',
> 'ast2' : 'aspeed',
> 'facebook' : 'aspeed',
> 'ibm' : 'aspeed',
> '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.
Jonathan
[...]
> 'nuvo' : 'nuvoton',
[...]
> }
>
> Rob
>
> [1] git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git arm-dts-move-v2
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 35+ messages in thread
end of thread, other threads:[~2023-05-09 22:54 UTC | newest]
Thread overview: 35+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20220328000915.15041-1-ansuelsmth@gmail.com>
[not found] ` <85eb14ec-f465-7447-ad77-a3dabc666f47@kernel.org>
[not found] ` <YkKRYnN84D9VZhGj@Ansuel-xps.localdomain>
[not found] ` <CAL_Jsq+RQQ-ADMxLPUFwk6S6kGmb6oNDy4k52fnU0EtbUvqmSA@mail.gmail.com>
[not found] ` <CAMuHMdWNTE48MFy6fqxAsfMWz9b6E7dVNXtXtESP95sxk2PGwA@mail.gmail.com>
2023-04-25 15:57 ` [RFC PATCH 0/1] Categorize ARM dts directory Rob Herring
2023-04-27 7:37 ` Matthias Brugger
2023-04-27 7:46 ` Geert Uytterhoeven
2023-05-02 8:15 ` Arnd Bergmann
2023-05-02 19:40 ` Rob Herring
2023-05-02 20:02 ` Krzysztof Kozlowski
2023-05-03 1:19 ` Shawn Guo
2023-05-03 10:43 ` Arnd Bergmann
2023-05-02 21:18 ` Linus Walleij
2023-05-02 21:27 ` Rob Herring
2023-05-02 22:01 ` Christian Hewitt
2023-05-03 10:42 ` Neil Armstrong
2023-05-02 22:52 ` Dmitry Baryshkov
2023-05-03 1:17 ` Rob Herring
2023-05-03 10:38 ` Arnd Bergmann
2023-05-03 12:13 ` Dmitry Baryshkov
2023-05-03 12:18 ` Arnd Bergmann
2023-05-03 13:16 ` Rob Herring
2023-05-03 20:37 ` Arnd Bergmann
2023-05-03 20:39 ` Linus Walleij
2023-05-03 22:22 ` Rob Herring
2023-05-02 23:02 ` Florian Fainelli
2023-05-03 1:04 ` Rob Herring
2023-05-03 22:29 ` Florian Fainelli
2023-05-03 8:56 ` Geert Uytterhoeven
2023-05-03 11:02 ` Arnd Bergmann
2023-05-03 13:08 ` Rob Herring
2023-05-03 20:25 ` Linus Walleij
2023-05-04 7:09 ` [Linux-stm32] " Alexandre TORGUE
2023-05-03 12:01 ` Jesper Nilsson
2023-05-04 10:11 ` Russell King (Oracle)
2023-05-04 11:44 ` Arnd Bergmann
2023-05-09 22:54 ` Jonathan Neuschäfer
[not found] ` <CA+_ehUw3eAEHRsi1ATSKeK4jtX+EoVSwUodNL3bcpTJaX-r9cA@mail.gmail.com>
2023-04-27 7:34 ` Matthias Brugger
[not found] ` <CAFr9PXkgrRe-=E=GhNnZ4w1x_FMb97-_RmX6ND1vEd74_TbZSw@mail.gmail.com>
[not found] ` <4ff4f171-c5f8-87af-aad1-5e7686292288@microchip.com>
[not found] ` <45bc13a8-1442-2dd3-b9ea-1ed2f5962bac@arm.com>
2023-05-02 19:01 ` Rob Herring
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox