From owner-freebsd-current@freebsd.org Sat Jul 23 04:16:43 2016 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4F6CCBA2D04 for ; Sat, 23 Jul 2016 04:16:43 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-it0-x242.google.com (mail-it0-x242.google.com [IPv6:2607:f8b0:4001:c0b::242]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 110DA1BBD for ; Sat, 23 Jul 2016 04:16:43 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-it0-x242.google.com with SMTP id u186so4248167ita.1 for ; Fri, 22 Jul 2016 21:16:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-transfer-encoding; bh=R4NqIfYPOLps56bbK8Fe9MBAMvxWeXSHMmjV9YRa/7A=; b=hmVT6YggCAe0fK6CMb1OqaoN5BhRegEDE8u4MbUkf7M7MVK/KSnkMOC/k4xi8HsBUP YBF45PMa1TcOBDmNspoYiEYS42sAVJx5DW5gsvU4xpN5Jq30swG9qq0XwSWy/baTX+M5 VggfJrw1tdLIebk3ui0sLaWCKnAd/rVSOg2ymmPw06VkXr135B4kS2fRaYk6FWlA2K7R MaGRr8XcjTGEJkUgsGWht7SG2JNKM98DcOlG9+1v28SGhZaktoONzbYcSpYN0JajelKt lm6jWEzy98so7hhq79oyOTyDZ0tRnPk0Bg8u3iebCRFRjanZm4atLhAZaK8qEiDLVdln 0ZkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-transfer-encoding; bh=R4NqIfYPOLps56bbK8Fe9MBAMvxWeXSHMmjV9YRa/7A=; b=h36EDPD953+CIl9ZRow6uIt7Ma0QPOSrtZvchbq2PIUP4LMOOgCYi3vIHXIyyPU1EL 12ykya3rKkXd9F78QC4A+UW8HeW43skJOq/6aBTLXLrPAvkuNRvvf76tWff9S2voJpba hcwW0gViMVkrAHW0jdoE2LYPf7wRB8MXBa0vGO4DwaZCB84Ho7KT+A3NwARnZee0JZlt ecarTnddWn9SK/u4ALSb4JJYqQsQpr4XiI5aSGQI9twcta5KBq+eLdF1EErH2A2H7C9E mt7FjIP3rtPjzAn6/yZjwvRRHw2E3XeUJJ35gzc4XsaU/gG3KAj4PkmgB403MzEsui4d hO8w== X-Gm-Message-State: AEkoous69OBowtWjB3Y4VdglDhMIOqVoO9EtBeCMuOewj9i0u6xt4yw/ds1lD7QXQoOhpIu5YVpJfheMJgHZCg== X-Received: by 10.36.39.195 with SMTP id g186mr7924786ita.53.1469247401545; Fri, 22 Jul 2016 21:16:41 -0700 (PDT) MIME-Version: 1.0 Sender: wlosh@bsdimp.com Received: by 10.79.137.131 with HTTP; Fri, 22 Jul 2016 21:16:41 -0700 (PDT) X-Originating-IP: [72.168.176.80] In-Reply-To: <10FBB716-E0BA-4146-92FD-F90AB4F8987C@FreeBSD.org> References: <10FBB716-E0BA-4146-92FD-F90AB4F8987C@FreeBSD.org> From: Warner Losh Date: Fri, 22 Jul 2016 22:16:41 -0600 X-Google-Sender-Auth: JgYva_uJNgzHHXciugnCSEeogK8 Message-ID: Subject: Re: Call for Testing: Switching back to our BSD licensed dtc(1) To: David Chisnall Cc: Ed Maste , FreeBSD Current Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Jul 2016 04:16:43 -0000 On Fri, Jul 22, 2016 at 1:03 AM, David Chisnall wrot= e: > On 22 Jul 2016, at 03:40, Warner Losh wrote: >> >> On Wed, Jul 20, 2016 at 9:51 AM, David Chisnall w= rote: >>> On 20 Jul 2016, at 16:46, Warner Losh wrote: >>>> >>>> I've been trying to get the final spec for it. Right now it's a >>>> disorganized series >>>> of patches, some of which have been merge some that haven't. I'll send= you a >>>> copy when I can find something better than "here's the code." >>> >>> Thanks. From the information I can find, it looks as if most of the ma= chinery required to implement it is already in dtc, so it should (hopefully= ) just be a matter of adding a new keyword to detect plugins, a scan to fin= d the cross-references (or possibly reusing the existing one) and then a li= ttle bit of extra logic. >> >> https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/Doc= umentation/devicetree/overlay-notes.txt >> has the specs. > > Hmm, that=E2=80=99s even less complete than the docs that I=E2=80=99d fou= nd. Can you share that then? >From that, it seems as if the only thing that dtc needs to do is support t= he /plugin/ syntax and emit a section describing unresolved references? I believe so, yes. >Or is dtc also expected to be able to do the merging? I think that's TBD. We'll need, at the very least, an update libfdt from upstream that knows how to do the merging, as well as changes to /boot/loader to be able to pick and choose which plugins to add to the base. If we can do all that with the BSDL DTC and it passes all the other GPL test cases, then we may have a winner and we can get started integrating plugin support to /boot/loader. I know my RPi would be happier if it had a 'standard' DTB with a plugin for whatever 1-wire stuff I'm playing with today. Warner