From owner-freebsd-arm@freebsd.org Mon Oct 23 06:43:01 2017 Return-Path: Delivered-To: freebsd-arm@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 36557E424CC for ; Mon, 23 Oct 2017 06:43:01 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-211-161.reflexion.net [208.70.211.161]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D5EC26420D for ; Mon, 23 Oct 2017 06:43:00 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 28068 invoked from network); 23 Oct 2017 06:42:59 -0000 Received: from unknown (HELO mail-cs-01.app.dca.reflexion.local) (10.81.19.1) by 0 (rfx-qmail) with SMTP; 23 Oct 2017 06:42:59 -0000 Received: by mail-cs-01.app.dca.reflexion.local (Reflexion email security v8.40.3) with SMTP; Mon, 23 Oct 2017 02:42:59 -0400 (EDT) Received: (qmail 7896 invoked from network); 23 Oct 2017 06:42:58 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (AES256-SHA encrypted) SMTP; 23 Oct 2017 06:42:58 -0000 Received: from [192.168.1.25] (c-76-115-7-162.hsd1.or.comcast.net [76.115.7.162]) by iron2.pdx.net (Postfix) with ESMTPSA id 2F284EC8166; Sun, 22 Oct 2017 23:42:58 -0700 (PDT) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: head -r323640 kernel+.dtb works on BPI-M3; did -r323641 and later remove some legacy dtb support? (same .dtb until -r324820 changed it) Date: Sun, 22 Oct 2017 23:42:57 -0700 References: <3AD6B1F8-512C-43BB-AC76-7721454AD02F@dsl-only.net> <20171021195812.5bdb902401b8e756b6abfe40@bidouilliste.com> <20171021204356.47e3cd6066144bcd07f46699@bidouilliste.com> <50728566-11C2-45EB-8367-00CAF38D4548@dsl-only.net> <8696CCFA-AE7D-4324-90A8-BB73402FA124@dsl-only.net> <06B9A4AD-EA28-41A8-91B9-FE368EF622FE@dsl-only.net> To: Emmanuel Vadot , freebsd-arm In-Reply-To: <06B9A4AD-EA28-41A8-91B9-FE368EF622FE@dsl-only.net> Message-Id: <68CB464E-6FC6-4CB9-963B-9E7A683041EB@dsl-only.net> X-Mailer: Apple Mail (2.3273) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Oct 2017 06:43:01 -0000 [The notes here presume that mp_ncpu <=3D cpuid is considered valid for the BPI-M3. Otherwise what I'm running is a workaround allowing other aspects of things to be explored.] [Reminder: Most of the BPI-M3 *.dt* material is not from sys/gnu/dts/ at all but from sys/boot/fdt/dts/ instead: not updated with LINUX 4.?? updates. But some included *.dt* files are from sys/gnu/dts/ .] I was able to buildkernel for -r323640 and install and boot it on the BPI-M3. Basic operation seems okay so far. It appears to me that -r323641 and later can not interpret the same .dtb that -r323640 uses correctly. My guess is some legacy support has been (implicitly?) removed. (This may well be deliberate and more important than having the BPI-M3 working from an overall point of view.) FYI for what I've tried in order to show some context: Revision 320834 - Directory Listing=20 Modified Sun Jul 9 13:53:32 2017 UTC (3 months, 2 weeks ago) by manu Update DTS files from Linux 4.12 Notable changes: Allwinner: * H3/H5 were merged into a common dtsi file * include/dt-bindings/sun4i-a10.h is not included anymore in a lot of dts files * Add sun8i-h3-nanopi-neo-air board DTS file . . . Revision 323640 - Directory Listing=20 Modified Sat Sep 16 15:50:31 2017 UTC (5 weeks, 1 day ago) by manu A64 CCUNG: Correct gate and reset for OHCI0/1 Reported by: jmcneill Pointy Hat: manu Then the very next update changes some things about interpreting the .dtb greatly . . . Revision 323641 - Directory Listing=20 Modified Sat Sep 16 15:58:20 2017 UTC (5 weeks, 1 day ago) by manu Allwinner usb phy: Rework resource allocation The usbphy node for allwinner have two kind of resources, one for the phy_ctrl and one per phy. Instead of blindy allocating resources, alloc the phy_ctrl and pmu ones separately. Also add a configuration struct for all different phy that hold the = difference between them (number of phys, unknow needed register write etc ...). While here remove A83T code as upstream and FreeBSD dts don't have nodes for USB. This (plus 323640) re-enable OHCI on Pine64 on the bottom USB port. The top USB port is routed to the OHCI0/EHCI0 which is by default in OTG = mode. While the phy code can handle the re-route to standard OHCI/EHCI we = still need a driver for musb to probe and configure it in host mode. EHCI is still buggy on Pine64 (hang the board) so do not enable it for = now. Tested On: Bananapi (A20), BananapiM2 (A31S), OrangePi One (H3) = Pine64 (A64) . . . Revision 324820 - Directory Listing=20 Modified Sat Oct 21 15:47:40 2017 UTC (38 hours, 31 minutes ago) by manu dts: Update our device tree sources file fomr Linux 4.13 (I have not tried a .dtb partially based on -r324820 *.dts* material from sys/gnu/dts/ used with a -r323640 kernel.) =3D=3D=3D Mark Millard markmi at dsl-only.net