Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1443005rwr; Wed, 3 May 2023 15:35:16 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6XSIrKW92MMvqWwmqj1SHXLN6oC9ngjVfMk5jTcajCaiH2/wYmBe0Y2XoB28PUaXioIr89 X-Received: by 2002:a17:902:7c93:b0:1aa:eefb:2076 with SMTP id y19-20020a1709027c9300b001aaeefb2076mr1501830pll.11.1683153316570; Wed, 03 May 2023 15:35:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683153316; cv=none; d=google.com; s=arc-20160816; b=eZCaF6eAg998H+qBNXM/lpCzn7m7Q/dG0YjyE9bWOZuUHHcFQ/efickaP4vlQXNIP8 QkCx4XoJ2odUT9z6Bf61ehBwIVD3q5vanKbB2OqzYBRXG9nuaSbOsQfG+XRX/wwu1SrE Pz0hrU5ySR93aTOm5hx6wgtCrDCae0UrN+R/jqJjN4I08eUTtdV6AsYesDWRDeAhWGMU mEF5aGv28SFKBR6ETzMMIweuwv3RyBILv9bypt8D/6cPqcZn9EHKEOgJ8HU4asI8LiXL FAgHx/TMljMBslHXv4oKWt2fOikXLyxbRlYsJGPl9RJmEOWOP/SLXwIDUq93+6yNXm3u dE1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=5Mp6CzPotn9aMhYuP1SiSdnM3toCuetUTL6p1Pka30U=; b=V5KkgudilVPsQYGjGTBk7ykfs0+6WAMOW0zCAR9paxCePcrCI3QOd/jk1XTLv8rYYI YV+zaBviXHYf1ZFzf1Csv8OdViJENrljBZ29c/wqFFO3djwk1b1IMfmBDB0ldQuIxxOZ iUHEhGgd5GdU2y9jTozS5F4UTQs0MQhd+CJHzcW+C1YUtF63jwS9mxkLs3ei+mu1G0Pg ICwTKRAQ+ieglH1IhPUj00ksliUEubU3Pp9LNoOJvhRh1ZZZmjnT2IPsIKbAY+1WEQup u7GfKvMMwO/Fb+DHJfy8KsvsRSuBIr880ZsWUaqZd9HOUwNfEzU8G4ttlWvIfugTeR1O Xw8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=bNRlnnTF; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x6-20020a170902ec8600b0019f3c9d839dsi33846503plg.576.2023.05.03.15.35.02; Wed, 03 May 2023 15:35:16 -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=@gmail.com header.s=20221208 header.b=bNRlnnTF; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229626AbjECWaR (ORCPT + 99 others); Wed, 3 May 2023 18:30:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37440 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229449AbjECWaP (ORCPT ); Wed, 3 May 2023 18:30:15 -0400 Received: from mail-pg1-x52b.google.com (mail-pg1-x52b.google.com [IPv6:2607:f8b0:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A24EF83DD; Wed, 3 May 2023 15:30:12 -0700 (PDT) Received: by mail-pg1-x52b.google.com with SMTP id 41be03b00d2f7-51fdc1a1270so3889488a12.1; Wed, 03 May 2023 15:30:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683153012; x=1685745012; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=5Mp6CzPotn9aMhYuP1SiSdnM3toCuetUTL6p1Pka30U=; b=bNRlnnTF+SjZJvfO0HArhda1ki6KEyIa7yIRZQPDhMmTqTNNooLEQemu27nE0HCTDC ehg0UFT/VFvJrzxIMMpqs/LfyiZTcvfm3F+XeRCHeLKiHGTslEamAcA/igyUj1RUpYqb jGTv1DRSnyHXSO+6BklV+H0tQUegWEpRcj9ZpU3IZeJyr0OTp0uWflXKxNLt/Dv3Fo9Q lyreFoA/HC5oPSx7g0RJgiSEs9GwL3CQmot20cPJQBMw9eDNFCnNWmZeSQ/ZfOgd+UUX wLIk2ukG1JzFJdW7nk5OX9lr2jX57mY836CjkAxfeHIEUZ2uly4MzKA0lNXFe8yznUDm 6rKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683153012; x=1685745012; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=5Mp6CzPotn9aMhYuP1SiSdnM3toCuetUTL6p1Pka30U=; b=NUHsAJHDQtSfWi+rsNIZwIPAKaiVrKsyejFCbX1tHZYIIHoAdDnQr9KhRG/P2STqsB QPt5E3q3rtaTbNHnd13nV1pRY9SD+VCp5bMZIK/sqQIHgZvMkjv0koaQ9Wlx6Ntc5YxG 2FH01xMP+V4TSxf250YRL0voWJ0Gej/62U+uCkHNrZTnz++103e+5jhnXQn4oslCHQwm kwti/zE3tUWcGr4Pon0IfUqa+xO/WJw1iAKftH69LOY4Zq/IkvW8SHV3/lX5sOMtOiQK IyiACbSnc22aKH9/0gLZqbMtkzhxvu3AHMDKuwz73xfR+8DctNIczo4TZTZ4vYxvvhot O9Fg== X-Gm-Message-State: AC+VfDwKS/4gvOzbcxdI0I7sO4m1pvu0ZGebEq9zIIqcvpy79u8dNL+F 2+cAoAQTGIilum5JeltH14nG41Y2shM= X-Received: by 2002:a17:90a:a891:b0:247:bdd3:a039 with SMTP id h17-20020a17090aa89100b00247bdd3a039mr172899pjq.8.1683153011868; Wed, 03 May 2023 15:30:11 -0700 (PDT) Received: from [10.67.48.245] ([192.19.223.252]) by smtp.googlemail.com with ESMTPSA id jx12-20020a17090b46cc00b0024e0141353dsm1872551pjb.28.2023.05.03.15.30.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 03 May 2023 15:30:11 -0700 (PDT) Message-ID: Date: Wed, 3 May 2023 15:29:58 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [RFC PATCH 0/1] Categorize ARM dts directory Content-Language: en-US To: Rob Herring 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 References: <20220328000915.15041-1-ansuelsmth@gmail.com> <85eb14ec-f465-7447-ad77-a3dabc666f47@kernel.org> <720a2829-b6b5-411c-ac69-9a53e881f48d@app.fastmail.com> From: Florian Fainelli In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,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 5/2/23 18:04, Rob Herring wrote: > On Tue, May 2, 2023 at 6:02 PM Florian Fainelli wrote: >> >> On 5/2/23 12:40, Rob Herring wrote: >>> On Tue, May 2, 2023 at 3:15 AM Arnd Bergmann wrote: >>>> >>>> On Tue, Apr 25, 2023, at 17:57, Rob Herring wrote: >>>>> On Tue, Apr 25, 2023 at 2:28 AM 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 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