Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp166335rwr; Tue, 2 May 2023 18:05:49 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5yKMYVM7up94xIigwWuDdWauWT7AKOrtIBCq7P8I40At64+wyY7dzQv8BD0I4kqPZ2XCnt X-Received: by 2002:a17:902:d2d2:b0:1a9:a87d:be1 with SMTP id n18-20020a170902d2d200b001a9a87d0be1mr146132plc.34.1683075949210; Tue, 02 May 2023 18:05:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683075949; cv=none; d=google.com; s=arc-20160816; b=jY+4QMZ6xym8DwQ705xDrygcTgQn4guZratm3isMpyV4i0o+xTLO30bUViTPGu1hMb vyaUAA3qA/n/s4/3ftO5yKpebMQ8M3vAjm82GqGjS+G4RuXyo0jK876ctdBNWO+w88Db ZBa7G29ifxq0C6/fp6m1SJrRtG56FO1hkW1E2efemHZT9FQfIcMqFBvOdTlykTaxTyEe KdMxl51wROq+5/u2YALMUifvM7/iDKGdiJYJf4Q8kW386q/AzUzlFp8H1u9sz9adxbPv TudrtTU755QBXzp8L8u643xUWHEPLIEGIvjW7ePtbAg0ZDcf+ZPMaAFl1QO65HbDqhBc MvPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=vRzuYSUkHTFb4IQekkfuoPXxGjlkLMi8kimY0jvqBfM=; b=Y9+LkQ//vlDmNW3tosa7Skhhik4NdIChohZci2pGcS7MQYT8h0TFI1+06I5C31PLH9 Gzk93F6mRIOiGf/amR1hMUKoF0WdRIfNUKWxTm9Cb6NwqSgzjb1wf0EX0eiUbTRjF4Fp UOwja3nXvlmaYV87RAosBOWmypIs8h0n735sfM0PxQlMeUZgrdtU3yxWkCC3/7lD1qQT NRCLqSd59kLAmK8w4x94PcZf7DEzVTDDgB5Lo6V+z0e4bvxh75I96p1TnblshcEKGuoH 4emWce5sauhHZJexbAuiv1goPh6xWWOsZkKaDGUyVbnbUd9SirM9PAO9MOuYZ4TdDNns Rd7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QoGLyyHr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e23-20020a170902ed9700b001ab147e4543si1701942plj.418.2023.05.02.18.05.33; Tue, 02 May 2023 18:05:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QoGLyyHr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229522AbjECBEg (ORCPT + 99 others); Tue, 2 May 2023 21:04:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229441AbjECBEf (ORCPT ); Tue, 2 May 2023 21:04:35 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A2C1B2D61; Tue, 2 May 2023 18:04:33 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 3C8EB629CC; Wed, 3 May 2023 01:04:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 94028C433AE; Wed, 3 May 2023 01:04:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1683075872; bh=3tzUPFXqJgNCRsublfj+ZgGaTs7KzeK4/lauS5NgXbw=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=QoGLyyHrVl2A+YTplbrnYiMEIz6wk+jP9SV8dz5UCtY76MWzNfxcDGsWDt7XzaFbR Xr4LoafVLAa94EjThKoFMtXLMkvCzIlI51WqQfPmq+42ZRGmwhqCuG73rtNFS7wUkc +fEXrSTR/j+xouT44ufNnuT7bR771W/YBDuqC0FtyyPhTIzbPY4lJHmmC4JrKp+LqL VUXrPWi4q/OV1Ezdi6st//MbXuMfXSMqmAVFzsUiMTdstEd3wZmJZlVLjAXQcv6nMA 7k3X1222URsa6zFwyiuGaddxH/mAzA1qAvda1W1zjhNGD1pbVwdRUepxFlVrtRcox8 yQNSGRSC9H6BA== Received: by mail-lj1-f175.google.com with SMTP id 38308e7fff4ca-2a8b3ecf59fso46418061fa.0; Tue, 02 May 2023 18:04:32 -0700 (PDT) X-Gm-Message-State: AC+VfDxrX1RTlyh35LQ1lyIfjVDZ9XSpUGaNTrbWR3iI+zmU2KY74l9I wqQLSzBVjWvuMwcKlKrtaLj1AvVmhDES5zIw/w== X-Received: by 2002:a2e:8402:0:b0:2a8:d103:dc8 with SMTP id z2-20020a2e8402000000b002a8d1030dc8mr4705375ljg.2.1683075870337; Tue, 02 May 2023 18:04:30 -0700 (PDT) MIME-Version: 1.0 References: <20220328000915.15041-1-ansuelsmth@gmail.com> <85eb14ec-f465-7447-ad77-a3dabc666f47@kernel.org> <720a2829-b6b5-411c-ac69-9a53e881f48d@app.fastmail.com> In-Reply-To: From: Rob Herring Date: Tue, 2 May 2023 20:04:17 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC PATCH 0/1] Categorize ARM dts directory To: Florian Fainelli Cc: Arnd Bergmann , Geert Uytterhoeven , Olof Johansson , Christian Marangi , Krzysztof Kozlowski , Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-actions@lists.infradead.org, linux-sunxi@lists.linux.dev, Linux-OMAP , linux-amlogic@lists.infradead.org, linux-arm-kernel@axis.com, linux-aspeed@lists.ozlabs.org, linux-rpi-kernel@lists.infradead.org, chrome-platform@lists.linux.dev, Linux-Renesas , linux-samsung-soc@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, kernel@dh-electronics.com, linux-mediatek@lists.infradead.org, openbmc@lists.ozlabs.org, linux-tegra@vger.kernel.org, "linux-oxnas@groups.io" , linux-arm-msm@vger.kernel.org, linux-unisoc@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-realtek-soc@lists.infradead.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 2, 2023 at 6:02=E2=80=AFPM Florian Fainelli wrote: > > On 5/2/23 12:40, Rob Herring wrote: > > On Tue, May 2, 2023 at 3:15=E2=80=AFAM Arnd Bergmann wr= ote: > >> > >> On Tue, Apr 25, 2023, at 17:57, Rob Herring wrote: > >>> On Tue, Apr 25, 2023 at 2:28=E2=80=AFAM Geert Uytterhoeven 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 th= at > >> we had the plan to move platforms out of the kernel tree to an externa= l > >> repository and I wanted to do this platform at a time and also only mo= ve > >> 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 =3D { > > '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