From owner-freebsd-mips@freebsd.org Sun Dec 20 05:25:16 2015 Return-Path: Delivered-To: freebsd-mips@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 39157A4D374 for ; Sun, 20 Dec 2015 05:25:16 +0000 (UTC) (envelope-from sgalabov@gmail.com) Received: from mail-vk0-x233.google.com (mail-vk0-x233.google.com [IPv6:2607:f8b0:400c:c05::233]) (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 EDCB01CB4 for ; Sun, 20 Dec 2015 05:25:15 +0000 (UTC) (envelope-from sgalabov@gmail.com) Received: by mail-vk0-x233.google.com with SMTP id a189so85809159vkh.2 for ; Sat, 19 Dec 2015 21:25:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=Bz5P782O0xniyjrG0mLO/A0Vlqg0GksZOvVlPD9hkSU=; b=NEaCyRaExzFhmfZvIZVNtdP7E1l2hN6WQv7Tf7n9Ejkfr+04pH85qGocaD1jigdHmp ldSL23/IbbDkyS4ubFCcBBR+jL1oxM6qo6pU/2y0Wu0zzMjUb6JSVp6ZUUxAEOqwy+GM lYn/PDgdGKg9ShhHdRbZ2CsrVWzgTIxHe75YCQsPtaf3NJwjpoFAE9t1DCiPNR4KDSos ghD+b4c/i6XJsmHY3yVLtzUa94HuYH4jmT2c4ato+SpL/8Aanw0SDwEFmfgmI/GXeYIy OtsqcidUF9l8JMikQedb0Qp3DewQTL8XfdWSP8FH5JvQ3sI9em4Urs3hKs8VOCWsE+qh aOKg== MIME-Version: 1.0 X-Received: by 10.31.140.74 with SMTP id o71mr8059031vkd.56.1450589114658; Sat, 19 Dec 2015 21:25:14 -0800 (PST) Received: by 10.31.175.201 with HTTP; Sat, 19 Dec 2015 21:25:14 -0800 (PST) In-Reply-To: References: <1479DFB0-6B63-4886-B9BA-8F95A44A8ED9@gmail.com> Date: Sun, 20 Dec 2015 07:25:14 +0200 Message-ID: Subject: Re: Initial support for MT7620 From: Stanislav Galabov To: freebsd-mips@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Dec 2015 05:25:16 -0000 Hi all, I went through all the Ralink/Mediatek boards I have at home and at the office and did a quick inventory of the SoCs I have available. Here's what I have: - RT3050F - RT3052F - RT5350F - RT3352F - RT6855 (with a Realtek gigabit switch) - MT7620N - MT7620A (several flavours) - MT7621 Here is what I don't have, but I'd like to add support for: - RT3662 - RT3883 - MT7628 (I may get one of these in the future) - MT7688 (I may get one of these in the future) At the moment I am planning to add support for all of the above with the following functionality, where applicable: - PCI/PCIe - USB - Ethernet - Switch - SPI I would appreciate it, if anyone has RT3662/RT3883 laying around not doing anything, if I could get my hands on these at some point. I'll continue looking on my end as well and see if I can obtain these around here... Also, if anyone has RT6855 datasheet/programming guide, I'd appreciate a copy of that. I think I am pretty much set for the others, with the exception of MT7688, but MT7688 is easier to figure out compared to RT6855. I may have missed some SoCs from the above list - if so, and if someone would like to see support for them - please let me know. I think if we manage to do all the above, FreeBSD will have pretty good support for Ralink/Mediatek router SoCs, especially if/once Adrian manages to work on the WiFi parts :-) Best wishes, Stanislav On Sat, Dec 19, 2015 at 8:31 AM, Stanislav Galabov wrote: > Hi all, > > Just to give an update: MT7620 now boots to multi user with EHCI, SPI and > basic Ethernet support (Ethernet is still a WIP, but at least can be used > now). > Thanks to Aleksandr Rybalko and Aleksandr Mityaev for RT5350 SPI and > ethernet patches they provided - these helped a lot :-) > > For the interested, the changes are here: > > https://github.com/sgalabov/freebsd/tree/local/sgalabov_mt7620/sys/mips/r= t305x > > Next is work on MT7620's PCIe support and fixing remaining issues with > MT7620 ethernet. > > Best wishes, > Stanislav > > > > On Tue, Dec 15, 2015 at 4:58 PM, Stanislav Galabov > wrote: > >> Hi all, >> >> After talking with Adrian off list we decided to start work on >> Mediatek/Ralink more recent SoCs with MT7620 instead of MT7621 (Adrian= =E2=80=99s >> board has MT7620 so it=E2=80=99s easier for him to help with the WiFi pa= rts this >> way). >> >> I=E2=80=99ve done a bit today and I got an MT7620A based board to boot t= o multi >> user with root filesystem on USB stick. >> >> If anyone is interested in the patch, it can be found here: >> https://www.dropbox.com/s/e880eutzvlms8h7/mt7620_patch.diff?dl=3D0 >> >> For the moment there is no support for sys/dev/rt (the Ethernet >> controller) with MT7620. This is going to be left for later. >> Next I am planning to work on SPI and PCI so that Adrian can start >> working on WiFi once I=E2=80=99m done with the SPI part. >> >> I would appreciate it if someone would jump in and help with the if_rt >> support - this way we=E2=80=99ll have something working quicker hopefull= y :-) >> >> I would also appreciate feedback for the attached patch... >> >> Best wishes, >> Stanislav > > >