Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp7321214rwr; Tue, 2 May 2023 12:50:45 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5B4+h5UxD8Z8RRVdsqgshemJr8rbyzXzHxg8qEmsLPXaSJoVbIBhO0nBmNbe+PRc8uffl7 X-Received: by 2002:a05:6a20:4414:b0:ef:1057:d80 with SMTP id ce20-20020a056a20441400b000ef10570d80mr25412554pzb.39.1683057045223; Tue, 02 May 2023 12:50:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683057045; cv=none; d=google.com; s=arc-20160816; b=FNf2fi+smsSnZ119LQiIQzvymGd583LQAN8l+6iE1CJ7FIxfx46twV3HmyiN6CqCdd SoKInLMUkTwCD/cJGNSCLTsihDWVe3bo6+2W1SrEf4ybVUKvG0kz2yFSDNEsHTRVXLSB KVb4o4NDcBCAlz8rTUhqoT4dE5OQThh2g2IMON2uU51xjdc2maq+6w+eAMV27NRBs89l tjbyxaSNWvAyB2t+eCp4cr6eCBjbzSfeZRAEERv3trBwVvqitYV9rvufOeVAsZzdq7xR m62HfWZvatBnab3OxYx/pC9KDR5PLu+DGtY1Ai/QdwfK48FMp0u/yLM9fQMkEHfX0bJP 30sg== 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=hwmxbQs3uadswqxcX+xyvRuqC7LwH6z/8oK+Wy2wDnU=; b=Xc9Ysm2aYMeDc4k3KPbqHSgFTQVfkFW7UmLxFXL2U2brgYNL3WDv/jTG0Iqhz4gS3t yPdUhFK85AmyDA32FqdR56W5Rpa087cF8ATzdxRbKbe1B0Go7++Fj6zvN140tlOZ/oPw PkejSsvvwjUZPFifwkXJzadvnEpr6tu/P2NYvFojDDZ7piNdAco5aG/GDYCqebchKdSv jpnxhy57hNuUSc7RRMvQZlzu7AXore5jkxyJBtpVe9loYFT4Zq+h25lejjR5kF/VZlZR N1LGsTOrM5ICoEKa0JlPA/M9VB0oJgCMswlGzvtHgA1zWqw1vXPAQxffrtsjX2+GNNz1 mjAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=iGl2fDpG; 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 4-20020a630404000000b0051446aaeae9si31570097pge.598.2023.05.02.12.50.29; Tue, 02 May 2023 12:50:45 -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=iGl2fDpG; 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 S229672AbjEBTki (ORCPT + 99 others); Tue, 2 May 2023 15:40:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55252 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229441AbjEBTkh (ORCPT ); Tue, 2 May 2023 15:40:37 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 290869E; Tue, 2 May 2023 12:40:36 -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 B2E7D620AE; Tue, 2 May 2023 19:40:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 18AD3C4339E; Tue, 2 May 2023 19:40:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1683056435; bh=9Dokck6Jc4naZGVhGmqgJoJLIGEOHwC1dkDJ1O4Mipg=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=iGl2fDpG6u+V7nw9XiF//RgP2qeZBecdfPEueb6HbN4e9bmh+rMmyTGvoJLh7U0IN LT34Sz26U9ehDgNU9xWS2cGEUZMofynDqCr3NMtbyMjGcM7Ig7XSHoWMlWBe61LHXK foLe03MQ+bujtF/31rycC13DeFqREes6CUthTP2NucBb4VgBQHzmK8qPa10Q9tcJfT kGl1UrAJYytqHUS+kOaWhu7l1nLj3tflKoPvaGU5xVR382p8EsxG5UXDV4YqhNrt0H gKKH9JwAQNWbY4QwmuAxfFPQMrV5eeoP/Nm8Xjp3aXp2elQ+yUvR0d0n0PahunLwSd cPLAVqB30txpQ== Received: by mail-lj1-f175.google.com with SMTP id 38308e7fff4ca-2ab25e8a4a7so42562611fa.3; Tue, 02 May 2023 12:40:34 -0700 (PDT) X-Gm-Message-State: AC+VfDzz4UFGujsu7oNd6erhc3aE43prRHFuJi1VoB6g0h/RU/rMPrjt w8YGHihaI1wzdcDXtg3QuRn5oWdubKmfNswUEQ== X-Received: by 2002:a2e:8801:0:b0:2a8:b995:ffe5 with SMTP id x1-20020a2e8801000000b002a8b995ffe5mr4898960ljh.25.1683056432976; Tue, 02 May 2023 12:40:32 -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: <720a2829-b6b5-411c-ac69-9a53e881f48d@app.fastmail.com> From: Rob Herring Date: Tue, 2 May 2023 14:40:19 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC PATCH 0/1] Categorize ARM dts directory To: Arnd Bergmann Cc: 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=-4.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 3:15=E2=80=AFAM Arnd Bergmann wrote: > > 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 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 =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', '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-mo= ve-v2