From owner-freebsd-arm@freebsd.org Mon Aug 20 15:46:14 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 98E541072E5E for ; Mon, 20 Aug 2018 15:46:14 +0000 (UTC) (envelope-from alexandru.elisei@gmail.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 2D853734F8 for ; Mon, 20 Aug 2018 15:46:14 +0000 (UTC) (envelope-from alexandru.elisei@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id E353A1072E5C; Mon, 20 Aug 2018 15:46:13 +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 A87A81072E5B for ; Mon, 20 Aug 2018 15:46:13 +0000 (UTC) (envelope-from alexandru.elisei@gmail.com) Received: from mail-qt0-x22d.google.com (mail-qt0-x22d.google.com [IPv6:2607:f8b0:400d:c0d::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3C511734F7 for ; Mon, 20 Aug 2018 15:46:13 +0000 (UTC) (envelope-from alexandru.elisei@gmail.com) Received: by mail-qt0-x22d.google.com with SMTP id e19-v6so16678252qtp.8 for ; Mon, 20 Aug 2018 08:46:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=0mljFFeTFlVekvx45rYpUiAc6CRg84EPLfMJDARzxQc=; b=sG3Alc3HoymgGVdzMywjxLu/7FRnje5BjLREgBiNO2pR9IWj8Vo6p+j/peunlFD5Si km5WX0Jc1cEVnba65nfwHhygo2Aa85jUDJeVaqCbC/iH8ikXpJg7bpMBLDVMu1RB61/7 CHtNcg3hdn6G/BHmgGC+xCGsPLiR1P/BCdACDLB0Yg9B6qbVCN+uHvpj9cdyLE6MWo0U e9M87ai6RVuQ0TFyLbgO/mO7ZW8zmDwgaWwV6h1LmrqicvXFbmFaX6rCTv4Ljop/QI/m rxS6oWyBbyZf8FvCf0F69An/g1Axq2cQgrT3PL+1eQUFX/IZzNnq7xZiu6kQGqaK1AH9 aFkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=0mljFFeTFlVekvx45rYpUiAc6CRg84EPLfMJDARzxQc=; b=D/myegMw+dNef0VfbPUXdA1R+Em8m71t51rkaPOzWD7fn4NQbURDioPF2X+j2Hg7Wx 1ANcAkjqfrNZ61w2W16u5g8NUXqOO7Cdi4yK5++FEr/n/qpeKmLY6ZSId93iBbTluqJx SumrejOrOvgyAp5n5Ir4FitFPe7ccpuEb68IHluP9HsxYKWHnkmisefKWF5GobSwLDOb VPJ+2kcvbwPWsrKAptPSYRODz93h5uffwz9WOaVkyH8AbcQUqtWsmw0LHGBmVQCSofNo qM0e4KdvCXRUu8JRlYd66zDcStRU11boMfymUSl1ZooUpc/+LM+Xwji7aGF+2I1pd7u3 +5tQ== X-Gm-Message-State: AOUpUlEtEkpj3jpqRyGLbXS+jLT/93D3puZexQ63DU20tJemg+FfMpFO dWbp0mjTmal3i1DAiUuUGqR1//J3damw2aDy6VKzgv7e X-Google-Smtp-Source: ANB0VdYfdIcqF1ziQjkn0BA/MSsOFxyBD3EN91XADJw2J2U+pZBDLV5i0yF8RPoPGQk8DejLAKPwLorzqab3hTzIow4= X-Received: by 2002:aed:3084:: with SMTP id 4-v6mr3718172qtf.424.1534779972467; Mon, 20 Aug 2018 08:46:12 -0700 (PDT) MIME-Version: 1.0 References: <20180820171150.cc8e08114a1d9553da6056f9@bidouilliste.com> In-Reply-To: <20180820171150.cc8e08114a1d9553da6056f9@bidouilliste.com> From: Alexandru Elisei Date: Mon, 20 Aug 2018 16:46:01 +0100 Message-ID: Subject: Re: Importing DTS for arm64 To: Emmanuel Vadot Cc: arm@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.27 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:46:14 -0000 Hello, Where do you plan to put the DTS files? In sys/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. 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" >