Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1156837rwb; Fri, 18 Nov 2022 13:43:12 -0800 (PST) X-Google-Smtp-Source: AA0mqf7+bmWFd7KEEiSkNUshRyqxWFZY+ky38SRTbidb0ORq+r094DVHh6Ueq8eHIBHAMV+s1hZk X-Received: by 2002:a17:906:1e48:b0:7ad:a943:ee49 with SMTP id i8-20020a1709061e4800b007ada943ee49mr7403875ejj.311.1668807792100; Fri, 18 Nov 2022 13:43:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668807792; cv=none; d=google.com; s=arc-20160816; b=CauXv7SVQd1A8CFkJGwP58z55hphPPl10Mn231wIMYPGrmr49Jbw3I+oQHkOWFEWQO UNmMqf5ZWBy73JwBSXEPFazliflKMame6uKwHCmn0c56EZWypkQftR7i/ZO9KKBHv6Ly /+Meu16k7R9d8miedA0ILn8Rn7h5KtQZQiBfLaCdcpcfiioimBuBIzjjE1oHUIdYfbB4 PgThisUzy6sedxXyz16Nys2nTiIf+lzDaRSz4EVVEN3kEv2DVO7EnrkqbjcwTtMFSGg4 8ytjLQCv3oG5yDit6ZIVI3uvdM0DrWHtUIPfU6ah2Z7YP0uUKmAMomQVldZT+ZEi26qA FA+A== 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=ds1uWo+x8dLTwb+pOu9wYnAIjnjKj8wYXFb8TgcM+lo=; b=Rp6SOSEkM8kOOKFmgcEvP22q+ioMXzqYllROy6hUtrAhLw1i/JRvRvB5K0nQLYrmkJ b713GtM2xq5B4DyX5HwEKReqkn/HELxtSLl/XFy9x1HE8rj7Td1uAys6mdKKoPbnkbBe uUQ2LsFF1SjJGvYf4Kv0CtnwbyTwN1nsPXnrX/vz2HxqAaFDw2eXA7AUM/DQsDufp6bD rT2/AXekFKZYTITwMh0aFtyYplvT5/YPnIjuxdOTnZ7VCv3bxuDrcgIkt96BVrDOv91F SMOh3I6wcyHhhLPc9dciPwodvwbBXy7gt7H0adT6d6juaHDI0oZhLXxcQUPni1vqCwAo orlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UVFQhAZq; 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 lc24-20020a170906f91800b0078d027ceb41si3472404ejb.857.2022.11.18.13.42.49; Fri, 18 Nov 2022 13:43:12 -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=UVFQhAZq; 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 S230466AbiKRVYC (ORCPT + 90 others); Fri, 18 Nov 2022 16:24:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35996 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229992AbiKRVYA (ORCPT ); Fri, 18 Nov 2022 16:24:00 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 76EB793CCE; Fri, 18 Nov 2022 13:23:59 -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 E4DA56271A; Fri, 18 Nov 2022 21:23:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3FFD1C433D7; Fri, 18 Nov 2022 21:23:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1668806638; bh=mtZwhXDF+3XRcueQS8GYk6YH7EKVzSJYMCs2J1Z9w3A=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=UVFQhAZqjkOPybZV3BjmP/iJkMwmr9Lxh0+VR7QSw3/urHqQsWdMq2Rv7RdzsiX9m +L33+3ggJZIy93hnHyXZJGm6SQsEaRO5gLPM3IoqcS44rBZUyz60+yS49Ec3N728yf oOFZlciWKy/Obldz0p/lby3+IgHP781G53t/Zmyrj+VvfNIQcXyNco8jGBg6BQf+fw 96vyJzDAG5KvORkuZAPrT94bFCEPoPuJy10/g5HUBzbc+sQt/OjavPnC2hcXZF+6Gn scLP0yKZxzi01EWTWFpq50uqMbYrBDp+YMEtpLknZdaTLcKgVzSGmaiyv0p7xhp30j eg7oBw1yYcrDw== Received: by mail-lf1-f50.google.com with SMTP id bp15so10193415lfb.13; Fri, 18 Nov 2022 13:23:58 -0800 (PST) X-Gm-Message-State: ANoB5plEEP+wB/Uj9uzVg2h0C30PRQfhNHGkXlNhSvM/vpm4E39DaOYi jKAVBXwrsJ2avjKAi+MSZgh18/CEyrVu1ru5FA== X-Received: by 2002:a05:6512:1291:b0:4af:eabf:3c57 with SMTP id u17-20020a056512129100b004afeabf3c57mr2774151lfs.449.1668806636064; Fri, 18 Nov 2022 13:23:56 -0800 (PST) MIME-Version: 1.0 References: <20221106085034.12582-1-linux@fw-web.de> <20221106085034.12582-12-linux@fw-web.de> <5ece2b19-cbc7-5ecf-c29a-8f0258f260f4@gmail.com> In-Reply-To: <5ece2b19-cbc7-5ecf-c29a-8f0258f260f4@gmail.com> From: Rob Herring Date: Fri, 18 Nov 2022 15:23:47 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC v3 11/11] arm64: dts: mt7986: add BPI-R3 nand/nor overlays To: Matthias Brugger Cc: Frank Wunderlich , linux-mediatek@lists.infradead.org, Krzysztof Kozlowski , Frank Wunderlich , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@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 11, 2022 at 3:16 AM Matthias Brugger wrote: > > Rob, Krzysztof, > > On 06/11/2022 09:50, Frank Wunderlich wrote: > > From: Frank Wunderlich > > > > Add devicetree overlays for using nand and nor on BPI-R3. Overlays are necessary because ...? > > Signed-off-by: Frank Wunderlich > > --- > > arch/arm64/boot/dts/mediatek/Makefile | 2 + > > .../mediatek/mt7986a-bananapi-bpi-r3-nand.dts | 53 +++++++++++++++ > > .../mediatek/mt7986a-bananapi-bpi-r3-nor.dts | 67 +++++++++++++++++++ > > 3 files changed, 122 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 > > Do we allow the inclusion of overlays in the kernel? > I don't think so. I see there are some dtbos for some freescale platforms, but I > wasn't aware that we support that. I thought it is all about dtsi includes. Yes, we do. > @frank In any case we would need to apply these overlays to some base board to > create a valis dtb. Indeed. The build system supports this and it's a requirement (though not easily enforced) that overlays apply to something. It works much like how kbuild combines multiple .o files into a module. Please rename to .dtso though. I copied you all on the PR I just sent. Rob