Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp593985rdb; Thu, 22 Feb 2024 13:06:09 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWl58utAXL/mQiUdPjuSKLtX0Wwuh9LpN060f6Y5kHyhp9CgHbf0aL3vjl3DeyZvh+eUbUHrm+SjsKrNb1YrkmZ8An1yGUp5hpmvxDw6w== X-Google-Smtp-Source: AGHT+IGeAtHLPR69OjJApgULTLdN2Q5JMSBiy4IbhWLVi62hcurLQrMIDZdP7w0olp6IkpRG3PeD X-Received: by 2002:a05:6808:1289:b0:3c1:85ed:ba52 with SMTP id a9-20020a056808128900b003c185edba52mr82006oiw.45.1708635968930; Thu, 22 Feb 2024 13:06:08 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708635968; cv=pass; d=google.com; s=arc-20160816; b=XwwZvU8nj4DIdjR8wJ/Hi27s605iri6Q/NBadFszGfs0xMZjokcMPZvm81HgDXTwTV XsralOw/0RvJmlfO/5R4IXpzBuMAyQMLIEcN1jSIe2553cx9fz0jh8DY2I+L8um0A3iB yDMNGpg7aoS9UdH7jmz887R4fG45O/Ncbq9pnpWxRhJYOPjsZPRJJIpIT48nlUGdy1hi z65wMTdURw83FrThXF17aZLFO0ZjBBY8OK4YZSRBOqwvSIsTH+a7zdfv3ul3VbMSpQwg BPAjTr2g5ZEHfQUzhY+HU1KMWRWMf1UnJffxHKR4+8OpsX/o+eeysrBiJl7d5nymxOJU Mlzw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=majPbP4/ze76iozpk1J/ftr6/E8M93DoQUWhPDSYrcs=; fh=rsC2MaRTsggPYuDfi4QdLi9xg7Limckht3vl5o3nGbk=; b=nOUV9eeNBXZWVfZa2NB3n0Z4b0bsBxOrWj35WnZiBqeDUhed8BvwBqXhzYPnTCg4sF k8two1Rp5vpIWkiaeqgwgR3Lsu08abfipLbrp/GFFBXrLvFRNicvGFAkqOWcX1byOcr8 n/TfeK49oLh7b3R/l3vF4R7fokzP2JF3mjnp2/flublAvFDO2T7PslI4eJ0Xz1FECJAG 0JdFWGMKGa88K3t8RqcZ6JKZMAkiLAbJq+uFvpalrK5gWoHUDlNlHDjNKw+0EFs0Pa8S HeSzonKuTwdUGh4mVr1lGhdGkPylhHh+qogejOUfP160CjJOAt3v2W5pZ/GtcjOC5+U4 HRFg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LzRRZwXi; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-77360-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77360-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id o11-20020ac872cb000000b0042c2ca241b9si12217235qtp.200.2024.02.22.13.06.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 13:06:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-77360-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LzRRZwXi; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-77360-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77360-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id A83FF1C22471 for ; Thu, 22 Feb 2024 21:06:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 003D373F17; Thu, 22 Feb 2024 21:06:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="LzRRZwXi" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 21B956E5F8; Thu, 22 Feb 2024 21:05:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708635960; cv=none; b=EpLNoZDOUcJ3jvfH9htZ46+0PIQSsJZRIIrSZIxY6rrjPgQGFMU8+rCc4KwsieNw5F+ZX/FSjmpwpHGJ/0MfWzwXM2bxmojfjTAsWxIU+FRxhjf3bk642IAqpzO4Vt5edYLqGSs0TiNBz/eoiSn/r1nBOhnMQ7xbHZFRDvvk/XI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708635960; c=relaxed/simple; bh=U58sud556eDeQ1ZmImtKrBLUvfMuIE+mzW0XTCAiPso=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Z+u48kuAh3K253BvEOD0ujutPZur9Q2/yufMIHDRPzrMKsf7G7JTdDZPZ2mU07qL4LzvySruvrW8InvHnEOAx+YecgWmBsV9Dk92Smbshz9AVkRNyeIgX75rNZkEp4vfKe/mB1LEusC20tghbW/OCdaEBOw47RidxyqbMmJQc0c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=LzRRZwXi; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id A7AE9C433C7; Thu, 22 Feb 2024 21:05:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708635959; bh=U58sud556eDeQ1ZmImtKrBLUvfMuIE+mzW0XTCAiPso=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=LzRRZwXidNQzDxeJIbnP4nNXwp+aEQYkFr6bel+eg3jxqQJtKMRG5WULKe+Az0SJH QTWLexadcq60LJgYMmy/t2OD1pRUKuLkjMjxZ49eutxO0Rd4LnylMLRymWOy0KgEZQ abHQdGj5bxoqH3xKhLrgVbJrVE4Rc74QSkEMbIiQig0vu6kO5yCE58FYNzDmkUKSF9 UCNoS7zUQfcTFRLXHgcnrDGhglnCpGcgBfaaHMCXZ/tiDP/WMzn8bnd+EHSKO7D6f8 8HTO8hxVXSNdQiumIaFDZmZf4Cus+wCT1ZKAcTJ3EzypWz2VW5WhyPxJUul6x/wYDr JzQn38Zj1f3Xw== Date: Thu, 22 Feb 2024 21:05:55 +0000 From: Conor Dooley To: Yangyu Chen Cc: linux-riscv@lists.infradead.org, Paul Walmsley , Palmer Dabbelt , Albert Ou , linux-kernel@vger.kernel.org, Masahiro Yamada , Alexandre Ghiti , Rob Herring , devicetree@vger.kernel.org Subject: Re: [RFC PATCH 1/1] riscv: dts: Allow BUILTIN_DTB for all socs Message-ID: <20240222-wound-dedicate-8622374372c0@spud> References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="5zmUS5d2XUx6ACNS" Content-Disposition: inline In-Reply-To: --5zmUS5d2XUx6ACNS Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hey, On Wed, Feb 21, 2024 at 03:03:57AM +0800, Yangyu Chen wrote: > The BUILTIN_DTB kernel feature on RISC-V only works on K210 SoC only. This > patch moved this configuration to entire riscv. >=20 > Signed-off-by: Yangyu Chen > --- > arch/riscv/Kconfig | 16 ++++++++++++++- > arch/riscv/Kconfig.socs | 32 ----------------------------- > arch/riscv/boot/dts/Makefile | 2 +- > arch/riscv/boot/dts/canaan/Makefile | 2 -- > 4 files changed, 16 insertions(+), 36 deletions(-) >=20 > diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig > index b49016bb5077..23d501561e64 100644 > --- a/arch/riscv/Kconfig > +++ b/arch/riscv/Kconfig > @@ -996,7 +996,21 @@ config RISCV_ISA_FALLBACK > config BUILTIN_DTB > bool "Built-in device tree" > depends on OF && NONPORTABLE > - default y if XIP_KERNEL > + default y if XIP_KERNEL || SOC_CANAAN s/SOC/ARCH/ > + help > + Build a device tree into the Linux image. > + This option should be selected if no bootloader is being used. > + If unsure, say Y. > + > + > +config BUILTIN_DTB_SOURCE > + string "Built-in device tree source" > + depends on BUILTIN_DTB > + default "canaan/k210_generic" if SOC_CANAAN I think we should drop this default, I don't think that "k210_generic" should really exist in the first place. And suggest that there are platform-wide default devicetrees isn't something I think should be encouraged. > + help > + DTS file path (without suffix, relative to arch/riscv/boot/dts) > + for the DTS file that will be used to produce the DTB linked into the > + kernel. > =20 > endmenu # "Boot options" > -config SOC_CANAAN_K210_DTB_BUILTIN > -config SOC_CANAAN_K210_DTB_SOURCE > diff --git a/arch/riscv/boot/dts/canaan/Makefile b/arch/riscv/boot/dts/ca= naan/Makefile > index 520623264c87..987d1f0c41f0 100644 > --- a/arch/riscv/boot/dts/canaan/Makefile > +++ b/arch/riscv/boot/dts/canaan/Makefile > @@ -5,5 +5,3 @@ dtb-$(CONFIG_ARCH_CANAAN) +=3D sipeed_maix_bit.dtb > dtb-$(CONFIG_ARCH_CANAAN) +=3D sipeed_maix_dock.dtb > dtb-$(CONFIG_ARCH_CANAAN) +=3D sipeed_maix_go.dtb > dtb-$(CONFIG_ARCH_CANAAN) +=3D sipeed_maixduino.dtb > - > -obj-$(CONFIG_ARCH_CANAAN_K210_DTB_BUILTIN) +=3D $(addsuffix .dtb.o, $(CO= NFIG_ARCH_CANAAN_K210_DTB_SOURCE)) There are two more instances of this that need to be removed. Thanks, Conor. --5zmUS5d2XUx6ACNS Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZde3MwAKCRB4tDGHoIJi 0ryjAP911F6vJIsVOELuA0YuESC2m71QaGZIPmuzmNmO5beULgEA3vRKcYuNh9// rbNn0MGJyAPpzfbA5l3oinawqjujDgA= =abz2 -----END PGP SIGNATURE----- --5zmUS5d2XUx6ACNS--