Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp212846iob; Thu, 28 Apr 2022 00:13:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwN7hIO0d4HR8Uh0Frb9FfN2M4o1U/YSSjTrJssPXDavnJP7MMdbmo5joa/FU7R3U2m/glh X-Received: by 2002:a05:6402:40d5:b0:423:e40e:351c with SMTP id z21-20020a05640240d500b00423e40e351cmr34791983edb.52.1651129980391; Thu, 28 Apr 2022 00:13:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651129980; cv=none; d=google.com; s=arc-20160816; b=vV5HXSF1U+g5MaY5hQ4XdC9liIshKdiR8aV6Lv/5esbYo7FgssMGz8tzajF2yqgrFW zrzpzyM+tryInZFQxXfryGIjFgDrr7ZOOXfVj0FvykejFM5GmnBNJFbWNhInClaiQx+x R9JBtvMrD67F43x9kBqMg6xabp9pP2IJwOGms3/E5dQsyFui1so/maOaLFyHtCDiYyW/ VJHwW7ZjHUK04EpvteIYM6r3aCz7lTjzdWPQLgM43MOxWiWSOlgjaFbDYAhtTyl8KCX+ 7xIQpaRv2qWhW8ayc3yDGD5eYqWubbVoFZ/kwBn+1/U0/ZIX1prINRJFOWh7vw9w28/x jyVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=j6lRX8HkbDGmeYmMR2pBv8oehQI8eucp0kVSXCaIj8U=; b=LHsuu8WpdeAdteraWI29ohTavaofV0IV4WwzjqKxM4ypH6jd3qE66nrcTQYh6q+Hfg Oo9skDZp/IbLHWB5xatWKlK4+GDY3PMTMPuwjKU5tgIYheTQJGrp2bWCxt3uh6s0o6y+ 17qBgu+Y05CmzkynRMTs2nJRFBJcVRVzu1fAMWKgIAEITPbLgF0clQOrxDGZ3BmTqKYD AIGjWj87JCrRxHhUTXJWNVFGYGZroKESAF0JbZ2WwOYtGeLhb0Wda7QOMx3EBKzDom1D Gnbr/ziwW+KxIbk8disefBZSpiLV9NOM4N9Dzwqt7jubvoA+VQS+3mpvE/4Ko698Wyul 2rAA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s18-20020a170906501200b006e8c3fe34bdsi3098065ejj.972.2022.04.28.00.12.36; Thu, 28 Apr 2022 00:13:00 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244351AbiD1Grt (ORCPT + 99 others); Thu, 28 Apr 2022 02:47:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233790AbiD1Grq (ORCPT ); Thu, 28 Apr 2022 02:47:46 -0400 Received: from mail-qt1-f181.google.com (mail-qt1-f181.google.com [209.85.160.181]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 426B798584; Wed, 27 Apr 2022 23:44:32 -0700 (PDT) Received: by mail-qt1-f181.google.com with SMTP id t16so2789359qtr.9; Wed, 27 Apr 2022 23:44:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=j6lRX8HkbDGmeYmMR2pBv8oehQI8eucp0kVSXCaIj8U=; b=EYipAnCJWn/V7fK7OzwN2lFkpdkHW3LatWZL+KYXzAmse8QyRaAfPq4eXaMxdIqZBw xwuTt95hCVm4sruj9GVEqry56JGrwiTaEzH0KCEMFLoLJRRCwG54dg65SZOVQSlM03yr 0+lv7+YiwLMBXI5Z0c/tr+V51DBewflveGbdbUcdDDeT/qcXfvUAU/WiTxquiXRBOxWz AY/8l4d8xlU+GMtrsAEJJC5wRv1lcBYvWLGmS/VJnQUBJ/d8mdN58lHoh0ZrY4NOmdPL NBDaaMKAhkAy+9QXf0acPDEHZccLBv8qKGstbpZOVQRe69kE2WpzruoxnOfpHiSxPIKq uqTA== X-Gm-Message-State: AOAM5319prsWXsBSM48+HlJZoUMbn/ExxS2nNX7W5f+1ukqPhpOta/BA Zh50aHvfxe98/cpXMXzaZfqzTW7USrFDqQ== X-Received: by 2002:a05:622a:5d0:b0:2e1:d430:a5c9 with SMTP id d16-20020a05622a05d000b002e1d430a5c9mr21872100qtb.639.1651128271086; Wed, 27 Apr 2022 23:44:31 -0700 (PDT) Received: from mail-yw1-f177.google.com (mail-yw1-f177.google.com. [209.85.128.177]) by smtp.gmail.com with ESMTPSA id o134-20020a37a58c000000b0069f8e381167sm1796158qke.76.2022.04.27.23.44.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 27 Apr 2022 23:44:30 -0700 (PDT) Received: by mail-yw1-f177.google.com with SMTP id 00721157ae682-2f7d7e3b5bfso42417197b3.5; Wed, 27 Apr 2022 23:44:29 -0700 (PDT) X-Received: by 2002:a81:c703:0:b0:2d0:cc6b:3092 with SMTP id m3-20020a81c703000000b002d0cc6b3092mr30791811ywi.449.1651128269435; Wed, 27 Apr 2022 23:44:29 -0700 (PDT) MIME-Version: 1.0 References: <20220427185243.173594-1-detlev.casanova@collabora.com> <20220427185243.173594-4-detlev.casanova@collabora.com> In-Reply-To: From: Geert Uytterhoeven Date: Thu, 28 Apr 2022 08:44:17 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC PATCH v2 3/3] ARM: dto: Add bcm2711-rpi-7-inches-ts.dts overlay To: Rob Herring Cc: Detlev Casanova , Linux Kernel Mailing List , Arnd Bergmann , bcm-kernel-feedback-list , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Florian Fainelli , Frank Rowand , Linux ARM , linux-rpi-kernel , Masahiro Yamada , Michal Marek , Nick Desaulniers , Nicolas Saenz Julienne , Olof Johansson , Ray Jui , Scott Branden , arm-soc , Stefan Wahren Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS autolearn=no 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 Hi Rob, On Wed, Apr 27, 2022 at 11:23 PM Rob Herring wrote: > On Wed, Apr 27, 2022 at 02:52:43PM -0400, Detlev Casanova wrote: > > Add a device tree overlay to support the official Raspberrypi 7" touchscreen for > > the bcm2711 devices. > > > > The panel is connected on the DSI 1 port and uses the simple-panel > > driver. > > > > The device tree also makes sure to activate the pixelvalve[0-4] CRTC modules > > > > Signed-off-by: Detlev Casanova > > --- > > arch/arm/boot/dts/Makefile | 4 + > > arch/arm/boot/dts/overlays/Makefile | 3 + > > .../dts/overlays/bcm2711-rpi-7-inches-ts.dts | 125 ++++++++++++++++++ > > .dtso is preferred. I think... It was discussed, but I never got an > updated patch to switch. Unfortunately that switch indeed hasn't happened yet. My main gripe with .dts for overlays is that you cannot know whether it's an overlay or not without reading the file's contents. Hence tools like make also cannot know, and you need to e.g. list all files explicitly in a Makefile. > > arch/arm64/boot/dts/broadcom/Makefile | 4 + > > .../arm64/boot/dts/broadcom/overlays/Makefile | 3 + > > .../overlays/bcm2711-rpi-7-inches-ts.dts | 2 + > > 6 files changed, 141 insertions(+) > > create mode 100644 arch/arm/boot/dts/overlays/Makefile > > create mode 100644 arch/arm/boot/dts/overlays/bcm2711-rpi-7-inches-ts.dts > > A global (to arm) 'overlays' directory will create the same mess that we > have in arch/arm/boot/dts/. IMO, first you should move all the Broadcom > dts files to a 'broadcom' subdirectory like we have for arm64. As I believe this display is not only used with real Raspberry Pi devices, it makes sense to not have it a broadcom directory. In fact it may be used on other architectures than arm, too, so I think we need an arch-agnostic directory for overlays[1]? This may need remapping of labels. I'm aware the rpi infrastructure has support for remapping labels when applying overlays during boot, but AFAIK this is not yet supported by fdtoverlay (or perhaps by a fork?)? Note that the remapping is also needed if you want to apply two instances of the same overlay. > > create mode 100644 arch/arm64/boot/dts/broadcom/overlays/Makefile > > create mode 100644 arch/arm64/boot/dts/broadcom/overlays/bcm2711-rpi-7-inches-ts.dts And this one just includes the former, and thus sort-of serves as an example of my point above ;-) [1] Note that this does not only apply to overlays: soon we will have a full SoC peripheral description in r9a07g043.dtsi to share between RZ/G2UL (arm64) and RZ/Five (riscv)). 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