From owner-freebsd-arm@freebsd.org Mon Aug 20 15:53:22 2018 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 79DE81073172 for ; Mon, 20 Aug 2018 15:53:22 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 0B837738DF for ; Mon, 20 Aug 2018 15:53:22 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: by mailman.ysv.freebsd.org (Postfix) id C48371073170; Mon, 20 Aug 2018 15:53:21 +0000 (UTC) Delivered-To: arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A291B107316F for ; Mon, 20 Aug 2018 15:53:21 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mail.blih.net (mail.blih.net [212.83.177.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.blih.net", Issuer "mail.blih.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 198EF738DE for ; Mon, 20 Aug 2018 15:53:20 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mail.blih.net (mail.blih.net [212.83.177.182]) by mail.blih.net (OpenSMTPD) with ESMTP id 37e631ee; Mon, 20 Aug 2018 17:53:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=bidouilliste.com; h=date :from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; s=mail; bh=05DzX2eVbv5Yvh5ITRn+yuXpRFI=; b=XDXhgJUYfzSOH5gfHV+zkSuEgjMh g9nz6eZJQyjXVqPvcwNlvfLnW611v2NRa1uaCPUDkoMANB8sJvrTgr//fHK9khyE Ue5QyKHAhPzFDZFkcgBkRWUoB2H0sUTFPFg1hIwIc09LkeKlm/CBjcYHlDKppeWU zffeMpdO8pZ7ZqU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=bidouilliste.com; h=date :from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; q=dns; s= mail; b=JG1hE+1CcU80PkObwYieujtdyhYbGJfvcZ+sWP8C7OOPHZDiD2252Mr8 VNtVcn3+dyiRJvubZz3BpmKlvBDiyYAiUn+ZVZcGAPA1TnRk413a+5g2cICgfICq TrJXGAIp2RcP1jKrKqrhoQgtvA1zLYFsw9NsoWe3wm8Upse8xfo= Received: from skull.home.blih.net (ip-9.net-89-3-105.rev.numericable.fr [89.3.105.9]) by mail.blih.net (OpenSMTPD) with ESMTPSA id 03fa7f49 TLS version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Mon, 20 Aug 2018 17:53:19 +0200 (CEST) Date: Mon, 20 Aug 2018 17:53:19 +0200 From: Emmanuel Vadot To: Alexandru Elisei Cc: arm@freebsd.org Subject: Re: Importing DTS for arm64 Message-Id: <20180820175319.e3c4ebbc8b805da931d2239c@bidouilliste.com> In-Reply-To: References: <20180820171150.cc8e08114a1d9553da6056f9@bidouilliste.com> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; amd64-portbld-freebsd12.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Aug 2018 15:53:22 -0000 On Mon, 20 Aug 2018 16:46:01 +0100 Alexandru Elisei wrote: > Hello, > > Where do you plan to put the DTS files? In sys/dts/arm64? No sys/gnu/dts/arm64 > I am using a custom DTS for bhyve guest (in that location), I think having > a standard directory for arm64 DTS files is a good idea. I plan to make overlays in sys/dts/arm64, we could put the bhyve DTS here, or if you plan to generate one based on bhyve option having the base one in share/ would be better I think. > Regards, > Alex > > On Mon, Aug 20, 2018 at 4:12 PM Emmanuel Vadot > wrote: > > > > > Hello arm@ > > > > I would like to import the DTS for arm64 in the tree and use them like > > we do for the arm ones. We currently rely on the bootloader/firmware to > > give us a DTB to work with, this works nicely until it doesn't. Here is > > why I want to import the DTS : > > > > - Most of the boards are using U-Boot, u-boot embed a DTB that isn't > > compiled with -@ (overlay ready) so we cannot use overlays. We want > > overlays, overlays are nice. > > - The DTS life is going to linux, then sometimes it's imported in > > U-Boot but it depend on the SoC family, U-Boot doesn't batch import > > every DTS like we do. So sometimes to U-Boot DTS are very old. Or when > > an interesting patch in commited upstream it is in Linux X+2 (roughly 4 > > months from now), we then have to wait for U-Boot to catch up, that > > give us between 4 and 6 months to have an update. > > - Some boards like the Marvell ones have 3 DTS, the one in the > > vendor U-Boot made by Marvell themselves, the one in u-boot mainline > > and the one in Linux. I found that the DTS in the Marvell U-Boot have > > some problem with FreeBSD (especially the macchiatobin that declare > > node with the same address but not the same size, that is not something > > that the rman code can handle, it could be modified, I don't know the > > code well enough). Also some compatible are used when they shouldn't, > > for example they declare the gpio being orion-gpio while this binding > > requires interrupts supports, which the node doesn't have. > > - The above situation is mostly the same with RockChip SoCs (possibly > > others, those are the only SoCs I work on that have this problem). > > > > Note that importing the DTS doesn't mean that every board will use > > them, I don't intend to copy the DTB to the GENERIC memstick image for > > the Overdrive 1000/3000 for example, the ones provided by the firmware > > works fine. > > RPI3 will still stay an exception as we use the DTB provided by the > > rpi-firmware package, so they come from the rpi foundation linux fork. > > > > I would love to do that for 12 even if we are approching code freeze, > > this will allow FreeBSD 12 to be more than awesome on arm64. > > > > Cheers, > > > > -- > > Emmanuel Vadot > > _______________________________________________ > > freebsd-arm@freebsd.org mailing list > > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" > > -- Emmanuel Vadot