Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1162779rwb; Fri, 18 Nov 2022 13:50:39 -0800 (PST) X-Google-Smtp-Source: AA0mqf4ijOd3lvR8itlWyFZlbY4qPeJIGbYV+YIQG85l2xhjk/BOJVMDmHX13a/oeEZbg5seBfH7 X-Received: by 2002:a17:906:22d0:b0:7b2:a7aa:173d with SMTP id q16-20020a17090622d000b007b2a7aa173dmr5540107eja.140.1668808239490; Fri, 18 Nov 2022 13:50:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668808239; cv=none; d=google.com; s=arc-20160816; b=JPkEeA0e7MCmxHWDzM46IfOSnoApj3c3feHZWuek9aBFz5nHkM+RwBzI/nBEg6EtTM JscYzLOp4B8m83hbbYj9K7G7m/DesovqZg3wCue1lt1P8jA25tlBuAsiIejAKpo35cZ6 3swRCC+uhv4oZ1FxLkFvZWjqE8iWcE11rS3+iFYDZolaq8JGSG6rr/KQrPd+uSlNLEVR mPYEE6inxJi2m7TxMRkBoVN1KhCAz7/siH1NZ3JpOLooWhxsSK9bG6h9OoyuQ08AZLVl s/b1iCIafrDv50dTKAGWIoaopu7DvNkIsGV4daNmwzDLQzRDLp4G+5SMKGbV6oppkwAD Mo0Q== 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:dkim-signature; bh=ReZ67yUXBh/SVI44mRQjAhG9xv1rCnEve2160ce0les=; b=kbBO+9crKQNlJ8tHndMtJZsp+KvOKKet9RGQsZcFAO3h62FwTyw5l5KLTRoEklqUco Ffebidpn4Eq5R1SX1LmPN5MXaus2bVnmgO8HHwsF6amjLeJpvjuFxJgUGNK58yMZGXmv Quvr8jzLJCus4FZ1jBR/EQ97cM5h4QO98bq9/OHemDrhoX0eE133q4SfrR6iBYh0AptA 8MmQ/b04g7Gc3VMXI/k+iZ/WUSzEcPIw+UUNGES0/26Dr05/thOaeztnciimxCCfJHDr MQu3KzxyoGlleSoOAXOetRWcv78EWkFKJJJkt3qixs1pgcD2sFUfO0OIFvH69HI4G14M GMhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PMorCDQI; 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 xe14-20020a170907318e00b0078d148dafa3si3905110ejb.329.2022.11.18.13.50.17; Fri, 18 Nov 2022 13:50:39 -0800 (PST) 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=PMorCDQI; 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 S230475AbiKRVqH (ORCPT + 90 others); Fri, 18 Nov 2022 16:46:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49678 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229666AbiKRVqG (ORCPT ); Fri, 18 Nov 2022 16:46:06 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E59C65E58; Fri, 18 Nov 2022 13:46:05 -0800 (PST) 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 19A4062798; Fri, 18 Nov 2022 21:46:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7F2ECC43470; Fri, 18 Nov 2022 21:46:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1668807964; bh=RNBGyT8pOapfGmKmgkwMpgie8elalZGmmgERqozynsA=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=PMorCDQIGJ64l2Kqj3yXz+JZWMspa46YvciYFDwUiWbmVAGPwa63kOqwfs+MpBvq+ 3FmCyGXkMptzQm+Wb3NQrjkH/ffkrqp6QSSK6LLVEdBZ7dYuXHks82Nw7cj8ZlarPM FUmht1b2FmkX+myZzfjf0o+bVip8Y8f1pypP/V/0dui7hHR+ONuPfHvQf7/mhLqfLQ U8mgnOud2jNBdYwwnYUmHdm+kQTvD3Wp7OBqwRjFPl/yt4EcPphXJZtUkS4FE9iH1G lMGDQgS9Cj9fLNqq5ZSu2WZBW2Avbnrf0H7iI1916iMQrq5v0RD/i3NaS/2Df7RZWj /ySe9OFXuw4IQ== Received: by mail-lf1-f44.google.com with SMTP id c1so10299825lfi.7; Fri, 18 Nov 2022 13:46:04 -0800 (PST) X-Gm-Message-State: ANoB5pk+fWTSz0DWYS480uiMm0i8zaYthDb0kdYncgPLOLtjytf1EW3O H+rnfiKO5RbjryU/qNCy9cJM7kvSv1NktJaEtw== X-Received: by 2002:a05:6512:1291:b0:4af:eabf:3c57 with SMTP id u17-20020a056512129100b004afeabf3c57mr2788378lfs.449.1668807962519; Fri, 18 Nov 2022 13:46:02 -0800 (PST) MIME-Version: 1.0 References: <20221118190126.100895-1-linux@fw-web.de> <20221118190126.100895-12-linux@fw-web.de> In-Reply-To: From: Rob Herring Date: Fri, 18 Nov 2022 15:45:54 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v6 11/11] arm64: dts: mt7986: add BPI-R3 nand/nor overlays To: Frank Wunderlich Cc: linux-mediatek@lists.infradead.org, Frank Wunderlich , Ryder Lee , Jianjun Wang , Bjorn Helgaas , Krzysztof Kozlowski , Chunfeng Yun , Kishon Vijay Abraham I , Vinod Koul , Greg Kroah-Hartman , Matthias Brugger , Paolo Abeni , Lorenzo Bianconi , Bo Jiao , linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-phy@lists.infradead.org, linux-usb@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-7.1 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 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 Fri, Nov 18, 2022 at 3:39 PM Rob Herring wrote: > > On Fri, Nov 18, 2022 at 1:01 PM Frank Wunderlich wrote: > > > > From: Frank Wunderlich > > > > Add devicetree overlays for using nand and nor on BPI-R3. > > Can you not tell at runtime which one you booted from? If not, how > does one choose which overlay to apply? If you can, why not populate > both nodes and enable the right one? IMO, if all h/w is present, it > should all be in the DT. Selecting what h/w to use is a separate > problem and overlays aren't a great solution for that. > > > > Signed-off-by: Frank Wunderlich > > --- > > maybe rename to dtso? > > > > "kbuild: Allow DTB overlays to built from .dtso named source files" > > https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git/commit/?h=dt/next&id=363547d2191cbc32ca954ba75d72908712398ff2 > > > > more comments about the dt overlay-support: > > > > https://patchwork.kernel.org/comment/25092116/ > > https://patchwork.kernel.org/comment/25085681/ > > --- > > v4: > > - drop compile-comment from overlays > > - add author-information to dt-overlays > > --- > > arch/arm64/boot/dts/mediatek/Makefile | 2 + > > .../mediatek/mt7986a-bananapi-bpi-r3-nand.dts | 55 +++++++++++++++ > > .../mediatek/mt7986a-bananapi-bpi-r3-nor.dts | 69 +++++++++++++++++++ > > 3 files changed, 126 insertions(+) > > create mode 100644 arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3-nand.dts > > create mode 100644 arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3-nor.dts > > > > diff --git a/arch/arm64/boot/dts/mediatek/Makefile b/arch/arm64/boot/dts/mediatek/Makefile > > index e8902f2cc58f..d42208c4090d 100644 > > --- a/arch/arm64/boot/dts/mediatek/Makefile > > +++ b/arch/arm64/boot/dts/mediatek/Makefile > > @@ -8,6 +8,8 @@ dtb-$(CONFIG_ARCH_MEDIATEK) += mt6797-x20-dev.dtb > > dtb-$(CONFIG_ARCH_MEDIATEK) += mt7622-rfb1.dtb > > dtb-$(CONFIG_ARCH_MEDIATEK) += mt7622-bananapi-bpi-r64.dtb > > dtb-$(CONFIG_ARCH_MEDIATEK) += mt7986a-bananapi-bpi-r3-emmc.dtb > > +dtb-$(CONFIG_ARCH_MEDIATEK) += mt7986a-bananapi-bpi-r3-nand.dtbo > > +dtb-$(CONFIG_ARCH_MEDIATEK) += mt7986a-bananapi-bpi-r3-nor.dtbo > > These need rules to apply them to the base dtb(s). You just need: > > full.dtb := base.dtb overlay.dtb Oops, that should be: full-dtbs := base.dtb overlay.dtb dtb-y += full.dtb Just like multiple objs in a module. Rob