* 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 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-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
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 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-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 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-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-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 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 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-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-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: [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-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-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 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: [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
` (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-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