From owner-freebsd-ppc@FreeBSD.ORG Thu Jul 24 23:20:56 2008 Return-Path: Delivered-To: powerpc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CEEF110656D1 for ; Thu, 24 Jul 2008 23:20:56 +0000 (UTC) (envelope-from benno@jeamland.net) Received: from mail.jeamland.net (rafe.jeamland.net [203.20.99.33]) by mx1.freebsd.org (Postfix) with ESMTP id 903818FC08 for ; Thu, 24 Jul 2008 23:20:56 +0000 (UTC) (envelope-from benno@jeamland.net) Received: from mail.jeamland.net (localhost [127.0.0.1]) by mail.jeamland.net (Postfix) with ESMTP id C3C351CC48; Fri, 25 Jul 2008 09:20:49 +1000 (EST) X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on rafe.jeamland.net X-Spam-Level: X-Spam-Status: No, score=-6.7 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from urtzweil.jeamland.net (ppp154-45.static.internode.on.net [150.101.154.45]) by mail.jeamland.net (Postfix) with ESMTPSA id 553991CC07; Fri, 25 Jul 2008 09:20:49 +1000 (EST) Message-Id: <6618A7BB-08EA-4963-94B8-560F48DE29A3@jeamland.net> From: Benno Rice To: Rafal Jaworowski In-Reply-To: <4888798B.2050903@semihalf.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v926) Date: Fri, 25 Jul 2008 09:20:30 +1000 References: <20080723.164741.163264646.imp@bsdimp.com> <20080723.213817.1661913390.imp@bsdimp.com> <4888798B.2050903@semihalf.com> X-Mailer: Apple Mail (2.926) X-Virus-Scanned: ClamAV using ClamSMTP at rafe.jeamland.net Cc: powerpc@freebsd.org, "M. Warner Losh" Subject: Re: Device trees X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Jul 2008 23:20:56 -0000 On 24/07/2008, at 10:46 PM, Rafal Jaworowski wrote: > M. Warner Losh wrote: >> In message: <106CEF8A-EA8A-48BC-BAF7-B9C112F58A92@mac.com> >> Marcel Moolenaar writes: >> : No, it doesn't. >> >> Is there any reason it doesn't? Having looked at the dtc stuff, it >> seems to have all the requirements of device enumeration that we >> talked about at BSDcan... > > At the time FreeBSD/MPC85xx was developed the flattened device tree > concept > was only getting momentum on Linux, so it was very much fluctuating. > But the > main reason was it's quite a bit of work to put everything together > and it > wasn't a critical item for the port. > > FDT is more or less what we discussed in May, and I think it was > mentioned as > one of the possible ways to go. Please note however the FDT > infrastructure is > quite heavy and getting it right needs to account for the non-code > dependencies and elements too: > > - adopting external (GPL) tools, or providing our own The libfdt part of dtc is dual licensed. One of the developers has also given me a lot of assistance in making it work in our kernel code. (I'm using it in some code I've got here) The userland parts are GPL but we can reimplement those if we really want. > - working out DTS layouts, OF bindings definitions and conventions > (and their > further maintenance) so that they can be used on architectures other > that > PowerPC (as having a modern device resources representation accross > different > architectures in FreeBSD was very important aspect of our discussions) We could open up a dialogue with the dtc developers if you think that'd help. My contact seemed very keen to have the code be used in FreeBSD. -- Benno Rice benno@jeamland.net