From owner-freebsd-arm@freebsd.org Sat Nov 10 11:43:19 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 F12521131297 for ; Sat, 10 Nov 2018 11:43:18 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mail.blih.net (mail.blih.net [212.83.177.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.blih.net", Issuer "mail.blih.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 39A0B861A3 for ; Sat, 10 Nov 2018 11:43:18 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mail.blih.net (mail.blih.net [212.83.177.182]) by mail.blih.net (OpenSMTPD) with ESMTP id 841954e2; Sat, 10 Nov 2018 12:43:16 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=bidouilliste.com; h=date :from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; s=mail; bh=M1Uw91sGmeCSdOncsvZsTJcjVq0=; b=N6tbdllRC2htFB/WCaLgAUNLUyyl FdOcFki/KgPAHh8JE/o8aGnxhtq3f5mj/nU52YUjL8m8rc8LpzWIbWZNBA89pGb9 dfI9KxiS+DeOXQLIfQ8l7NR0eHFnxHd0i+1qXRvHrPXIMMHcm8A8wu/DEe+K4utW B+YfKnG9pgXVjLY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=bidouilliste.com; h=date :from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; q=dns; s= mail; b=hzMvi34MhjtkQC0zNcETicY2Qg1sLJFf3I0waupRGyHn8oKvHFF9+34h D3wVq/FQOIdLBrluCru5U/mdeP2sGcmA32GKL7EBOI5jqFIfped7hvWYNQHcyLHY cldH+bFnERybbueYkl/2zKJk6ZFgeiqV7tDwDnyNp8/5ljdHrO0= Received: from knuckles.blih.net (ip-9.net-89-3-105.rev.numericable.fr [89.3.105.9]) by mail.blih.net (OpenSMTPD) with ESMTPSA id 6b01b859 TLS version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Sat, 10 Nov 2018 12:43:16 +0100 (CET) Date: Sat, 10 Nov 2018 12:43:16 +0100 From: Emmanuel Vadot To: =?ISO-8859-1?Q?S=F8ren?= Schmidt Cc: freebsd-arm@freebsd.org Subject: Re: Allwinner R40/V40 support anyone ? Message-Id: <20181110124316.d92ea7293ad46f440e4fe605@bidouilliste.com> In-Reply-To: References: <14FA23F3-03AA-4970-BA02-F57055C4FF64@deepcore.dk> <20181110121241.c016bfc2c0a324a5bb06fa9c@bidouilliste.com> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; amd64-portbld-freebsd13.0) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 39A0B861A3 X-Spamd-Result: default: False [-1.33 / 200.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[bidouilliste.com]; NEURAL_HAM_MEDIUM(-0.99)[-0.988,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:212.83.177.182/32]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[bidouilliste.com]; NEURAL_HAM_LONG(-0.99)[-0.994,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[bidouilliste.com:+]; RCPT_COUNT_TWO(0.00)[2]; MX_GOOD(-0.01)[cached: mx-backup.blih.net]; NEURAL_HAM_SHORT(-0.36)[-0.357,0]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; IP_SCORE(-0.08)[asn: 12876(-0.38), country: FR(-0.02)]; ASN(0.00)[asn:12876, ipnet:212.83.160.0/19, country:FR]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Server: mx1.freebsd.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Nov 2018 11:43:19 -0000 On Sat, 10 Nov 2018 12:30:52 +0100 S=F8ren Schmidt wrote: > HI >=20 > Yeah its almost but not quite like the A20 :) >=20 > So far I?ve just added the r40 to the following drivers: >=20 > aw_ccu.c > clkng/ccu_a10.c > aw_gpio.c > aw_machdep.c > aw_mmc.c Doesn't the A64 support in it is enough ? > Which seem to do OK. >=20 > However there are issues with the power chip (axp221) it does get found b= y the axp209 driver, but it immediately shuts down and holds NMI active so = that needs work at least, bandaid for now is just disable its IRQ. Ok weird. > USB finds the controller, but fails to attach the root hub with uhub_atta= ch: getting USB 2.0 HUB descriptor failed,error=3DUSB_ERR_SHORT_XFER You will need to add support for the phy too. (aw_usbphy.c) > The GMAC has trouble finding its PHY. > Both could be due to proper power missing I guess. > It finds the SATA part and that works quite well (my own ATA stack, not s= tock CAM). Does it work with CAM ? > Haven?t tried video/audio as that has no interest to me for now. Video and Audio were always hackish on Allwinner, we will need to do something to fix that. > --S=F8ren Schmidt > sos@deepcore.dk / sos@freebsd.org > "So much code to hack, so little time" >=20 > > On 10 Nov 2018, at 12.12, Emmanuel Vadot wrote: > >=20 > >=20 > > Hi, > >=20 > > On Sat, 10 Nov 2018 11:23:56 +0100 > > S=F8ren Schmidt wrote: > >=20 > >> Hi > >>=20 > >> I?m looking into getting the BananaPi M2 Berry running, but before I t= oss too much time into it I?d like to hear if anybody else is working on it= ? > >=20 > > R40 just contain most of the IP present in the A20. What would be > > needed is a r40 ccu driver. I haven't read the datasheet but I assume > > that it could be possible to adapt ccu_a10 for it easily. > >=20 > >> I?m so far that it boots but with bandaids and sticks :) > >=20 > > What are they ? > >=20 > >> -- > >> S=F8ren Schmidt > >> sos@deepcore.dk / sos@freebsd.org > >> "So much code to hack, so little time" > >=20 > >=20 > > --=20 > > Emmanuel Vadot --=20 Emmanuel Vadot