From owner-freebsd-arm@freebsd.org Mon Aug 20 17:13:31 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 95A1910760D6 for ; Mon, 20 Aug 2018 17:13:31 +0000 (UTC) (envelope-from mw@semihalf.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 3174A77C81 for ; Mon, 20 Aug 2018 17:13:31 +0000 (UTC) (envelope-from mw@semihalf.com) Received: by mailman.ysv.freebsd.org (Postfix) id EA59F10760D5; Mon, 20 Aug 2018 17:13:30 +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 C856610760D3 for ; Mon, 20 Aug 2018 17:13:30 +0000 (UTC) (envelope-from mw@semihalf.com) Received: from mail-io0-x22a.google.com (mail-io0-x22a.google.com [IPv6:2607:f8b0:4001:c06::22a]) (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 6901277C80 for ; Mon, 20 Aug 2018 17:13:30 +0000 (UTC) (envelope-from mw@semihalf.com) Received: by mail-io0-x22a.google.com with SMTP id l8-v6so2628249ioj.11 for ; Mon, 20 Aug 2018 10:13:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=r3RjYi2tBD7vUA8zE3yDGSDrIl8tYLvKI6MEbpDcrxU=; b=BbMQWDiTCSbkyW6xXlxlLGN4JdFyV0WMWAfDzZPOUjJGav5pG9r0ekRwm3W8d8bGg4 dsCJ0U6vO/A1l7r5/of/NxJSBsk74Dl14GAvHS8HEYlixxTTLncbfwQIXMt1feb3mkRv IULISSTPY7Ji/mekXuyWSU6hN6C/s0VvLFbu1AzB6BQjQ5SXfiPEBBtlo3rPqVMvUIDv SCaEQIq1gIoQbVFQXszcXRzueKAzY1hyNhXrW4mKgwltuxjcs3pJW2MZVtUBPYvTOKcH UB2/NzYcz+9NTkv7OlkiddHrsUZ884qtC2an+ACTLfeD8BZTyrnPhpK0pGjdiEXG1ncQ 8NKw== 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:content-transfer-encoding; bh=r3RjYi2tBD7vUA8zE3yDGSDrIl8tYLvKI6MEbpDcrxU=; b=OM+DzZsMDZfWmK1BFcgBnLppMxRfdv7GpxrcKHq0mhugiwVSpw+5hyZJ/4XTiniBhv CraX9a40SV3olGLhPs4ENueoE3hshOIT7Rvdnz1U2YN70++gl0NlS1PNWySqnb0OEzR4 Ko/89rtXQ6lJqzEMEecc3CSwrOaDakcAuM9n65DiGfNw3jtpbVdnMKdm3+VdcTNHybbA 88TzqO95A7RDobb3sVW0tQlHhXhk4b+z+KNvm0ULSNWD5MmJpMFaF15uFSH5OGetO0iY L/dhGwEr5yb4vcDJ0aem2+fqa5SZ5VwkZ2pvlEWyRiDFHYKutEc+nvbvkicE81wxtx9i Ni9g== X-Gm-Message-State: APzg51Ahr1pNiyVsURekutqjU3oSjNZT96MKEsj05HBGgoaHLquc377o EP6/lv6MISG80lJeeoNf+lD7bY0VsGw8GoG7mTJtlZNv X-Google-Smtp-Source: ANB0VdY713aRUsU/INHGcpiutVEIziAkNh24NMc8GSykRhGpJyydr5uu0SE3p/lFJVxmphP5HHtdGNPNy5C3bYy0fTI= X-Received: by 2002:a6b:198e:: with SMTP id 136-v6mr9319539ioz.248.1534785209760; Mon, 20 Aug 2018 10:13:29 -0700 (PDT) MIME-Version: 1.0 References: <20180820171150.cc8e08114a1d9553da6056f9@bidouilliste.com> In-Reply-To: <20180820171150.cc8e08114a1d9553da6056f9@bidouilliste.com> From: Marcin Wojtas Date: Mon, 20 Aug 2018 19:13:16 +0200 Message-ID: Subject: Re: Importing DTS for arm64 To: Emmanuel Vadot Cc: arm@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 17:13:31 -0000 Hi Manu, +1 to the idea. It gives more options to the users. pon., 20 sie 2018 o 17:12 Emmanuel Vadot napisa=C5= =82(a): > > > 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. There is 4th - UEFI, but it's aligned with most recent Linux + some minimal improvements (e.g. big PCIE windows). I recommend using Macchiato with this kind of firmware instead of U-Boot. Best regards, Marcin > 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"