From owner-freebsd-mips@freebsd.org Wed Dec 16 18:01:13 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 C61B9A49852 for ; Wed, 16 Dec 2015 18:01:13 +0000 (UTC) (envelope-from ray@ddteam.net) Received: from mail-lb0-x241.google.com (mail-lb0-x241.google.com [IPv6:2a00:1450:4010:c04::241]) (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 3ECFA1A8F for ; Wed, 16 Dec 2015 18:01:13 +0000 (UTC) (envelope-from ray@ddteam.net) Received: by mail-lb0-x241.google.com with SMTP id yq9so780200lbb.0 for ; Wed, 16 Dec 2015 10:01:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ddteam-net.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=bs5zWdP1EHa3jg48xHINzJAagA3bvWe+AfDRffjs/HM=; b=i4RocrDiVNUhzSGFaQkLcEmcpFjG2wl0eEsNKyiJABAjosuUSjPofTVcr46CDhUEtC CASFFQGOPkwFro2cbNKMR8+vYzOakm41bkaA8BTU8oEoF7NajPIWK/58PeCdmIz99J+k Xr+rciWepMJkX1dgl0wFL42aS5cTko0VTzXgezNT5QP1yRtovSfp1hitFYLyQRlrHmIm FrGnfzCZ8LFqf+Owd06eI6UcKUZwQhg95+5FjE5X8b+j2ukFZ80NvQoBvFFHsgvRriqv ax+i9QcMCsQfZWe0j3BN/M1muKLM9lfnkjJ0D8Y+49HWamk4k0HEuGxYuf+o9CrxmuUl 0VCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-type:content-transfer-encoding; bh=bs5zWdP1EHa3jg48xHINzJAagA3bvWe+AfDRffjs/HM=; b=ed0CVQXWtwulWKT8+V1YBLAcTNyrm2hxjD07YLdC2luwHaQOrTTtYg6Mop6o1m4/3m udEHRAmO190W3tS1g8+Pr5YwVviKUaipvYCiuXL8juacZwYZWRafNQ+lt998yVnCb20f oF7RIYpmMZPHC+2Y5oB1ZxXUuShun0WqyVc7UXWc8f+TAS5GNo/p7+GfTJvq5W3zEZNP e+D6NSDOAKIIZpisoOcpliDvkmKQDlixhLjCO8sL9goGvknrYr4YHo765brCxxcXVIfe i4ZMUhu6+sHytOJxilx4tNst98w+wYIo2cFV2l76rK2AkqXn9RtQf+lA1yaZgu4vhYOh HlDQ== X-Gm-Message-State: ALoCoQkgYWUvsKbccgUuM+CMc0hqAv2TAUUOEG30EHoCDHpMvp9tyu8zlGKi0qEVcxuOEvXBBTBUyXBCxfZnNVHOvEqW/cyOEw== X-Received: by 10.112.25.40 with SMTP id z8mr19669180lbf.13.1450288870131; Wed, 16 Dec 2015 10:01:10 -0800 (PST) Received: from raynote.ddteam.net (0-211-52-37.pool.ukrtel.net. [37.52.211.0]) by smtp.gmail.com with ESMTPSA id n65sm1214494lfb.43.2015.12.16.10.01.08 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 16 Dec 2015 10:01:09 -0800 (PST) Date: Wed, 16 Dec 2015 20:01:07 +0200 From: Aleksandr Rybalko To: Stanislav Galabov Cc: freebsd-mips@freebsd.org Subject: Re: Initial support for MT7620 Message-Id: <20151216200107.15197a94af0d5f79c5a7c401@ddteam.net> In-Reply-To: <8E7B6604-AAE1-489B-82C1-BD935A7DCBE9@gmail.com> References: <1479DFB0-6B63-4886-B9BA-8F95A44A8ED9@gmail.com> <20151216140557.54abbafbc1a2093be65099dc@ddteam.net> <8E7B6604-AAE1-489B-82C1-BD935A7DCBE9@gmail.com> X-Mailer: Sylpheed 3.4.2 (GTK+ 2.24.25; amd64-portbld-freebsd11.0) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: Wed, 16 Dec 2015 18:01:14 -0000 On Wed, 16 Dec 2015 15:47:32 +0200 Stanislav Galabov wrote: > > > On Dec 16, 2015, at 14:05, Aleksandr Rybalko wrote: > > > > On Tue, 15 Dec 2015 16:58:31 +0200 > > 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’s board has MT7620 so it’s easier for him to help with the WiFi parts this way). > >> > >> I’ve done a bit today and I got an MT7620A based board to boot to 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=0 > >> > >> 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’m done with the SPI part. > >> > >> I would appreciate it if someone would jump in and help with the if_rt support - this way we’ll have something working quicker hopefully :-) > >> > >> I would also appreciate feedback for the attached patch... > >> > >> Best wishes, > >> Stanislav > >> _______________________________________________ > >> freebsd-mips@freebsd.org mailing list > >> https://lists.freebsd.org/mailman/listinfo/freebsd-mips > >> To unsubscribe, send any mail to "freebsd-mips-unsubscribe@freebsd.org" > > > > Hi Stanislav! > > > > There is patch #1 that did my friend, Alexander A. Mityaev. > > Patch cover to things: > > 1. enable support of RT5350 > > 2. enable FDT configuration for RTxxxx family > > > > First thing may help you to bring if_rt up. Second one may help to work > > in right direction, because FDT makes adding new SoC support to looks > > like writing config (except some new devices, which will require new > > driver for it). > > > > I'm glad to help, but currently limited in time I can spend. > > Anyway, I will try to answer your questions ASAP. > > > > Thank you! > > > > [1] http://dev.mt.mk.ua/patch-20150519.diff.gz) > > > > WBW > > -- > > Aleksandr Rybalko > > Hi Aleksandr, > > Thanks for the patch! I’ll have a look at it and will see what I can do. Also, thanks for your offer to answer my questions, I really appreciate it. Very welcome :) > > I was thinking of FDT for the Ralink/Mediatek support, but I figured it would be beneficial to see if there is interest in these platforms at all in the community or not, so that’s why I first started working on adding basic support for more SoCs before trying to move to FDT (although I agree that moving to FDT first may have been wiser :-)). I asking to use FDT, because it makes device drivers more generic. My experience show, that many devices (so called IP cores) frequently used in very different SoCs. (for example DWC USB OTG, used in RT305x, Cavium Octeon, Broadcom SoC from R-Pi). Unlike Adrian said, I think better to create mips/mediatek dir, but start it with FDT support for RT305x, RT5350, Mediateks you going to cover. And then ask users - are they still need mips/rt305x. If no, just remove it. Because, work Alexander done for making support non-FDT and FDT versions in same place are really hard and take a lot of time. That why it still not committed. > > I am willing to work on moving the Ralink/Mediatek family support to FDT and doing more work on supporting currently unsupported peripherals (as far as I can be of any use), but I would only do so if the changes I make would end up committed to FreeBSD - I have no interest in doing something that will go unused by anyone… > > So if any committer is willing to suffer going through my patches and getting them in the tree - I’ll do my best, provided I have some spare cycles to work on this. I am also willing to do the commits myself (under proper supervision, of course) if my work is considered useful and of acceptable standards. I think we (me and Adrian) will help you with that, so - go-go-go Stanislav!!! :) > > Best wishes, > Stanislav > WBW -- Aleksandr Rybalko