From owner-freebsd-arm@freebsd.org Sat Nov 10 11:31:16 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 9675B1130E73 for ; Sat, 10 Nov 2018 11:31:16 +0000 (UTC) (envelope-from sos@deepcore.dk) Received: from deepcore.dk (sos.hosted.netic.dk [77.243.53.222]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "sos.hosted.netic.dk", Issuer "sos.hosted.netic.dk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id AF60985B9B for ; Sat, 10 Nov 2018 11:31:15 +0000 (UTC) (envelope-from sos@deepcore.dk) Received: from mac.deepcore.dk (deepcore.dk [85.27.186.9]) by deepcore.dk (8.15.2/8.15.2) with ESMTPS id wAABSEMj006326 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sat, 10 Nov 2018 12:28:30 +0100 (CET) (envelope-from sos@deepcore.dk) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: Allwinner R40/V40 support anyone ? From: =?utf-8?Q?S=C3=B8ren_Schmidt?= In-Reply-To: <20181110121241.c016bfc2c0a324a5bb06fa9c@bidouilliste.com> Date: Sat, 10 Nov 2018 12:30:52 +0100 Cc: freebsd-arm@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <14FA23F3-03AA-4970-BA02-F57055C4FF64@deepcore.dk> <20181110121241.c016bfc2c0a324a5bb06fa9c@bidouilliste.com> To: Emmanuel Vadot X-Mailer: Apple Mail (2.3445.9.1) X-Rspamd-Queue-Id: AF60985B9B X-Spamd-Result: default: False [-0.32 / 200.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.84)[-0.845,0]; MX_INVALID(0.50)[cached]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[deepcore.dk]; NEURAL_HAM_LONG(-0.92)[-0.925,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_SHORT(-0.25)[-0.245,0]; RCPT_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:42697, ipnet:77.243.48.0/20, country:DK]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(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:31:16 -0000 HI Yeah its almost but not quite like the A20 :) So far I=E2=80=99ve just added the r40 to the following drivers: aw_ccu.c clkng/ccu_a10.c aw_gpio.c aw_machdep.c aw_mmc.c Which seem to do OK. However there are issues with the power chip (axp221) it does get found = by 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. USB finds the controller, but fails to attach the root hub with = uhub_attach: getting USB 2.0 HUB descriptor = failed,error=3DUSB_ERR_SHORT_XFER 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 = stock CAM). Haven=E2=80=99t tried video/audio as that has no interest to me for now. --S=C3=B8ren Schmidt sos@deepcore.dk / sos@freebsd.org "So much code to hack, so little time" > On 10 Nov 2018, at 12.12, Emmanuel Vadot = wrote: >=20 >=20 > Hi, >=20 > On Sat, 10 Nov 2018 11:23:56 +0100 > S=C3=B8ren Schmidt wrote: >=20 >> Hi >>=20 >> I?m looking into getting the BananaPi M2 Berry running, but before I = toss 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=C3=B8ren Schmidt >> sos@deepcore.dk / sos@freebsd.org >> "So much code to hack, so little time" >=20 >=20 > --=20 > Emmanuel Vadot