From nobody Wed May 19 20:03:16 2021 X-Original-To: freebsd-mips@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id F32FD8B55D5 for ; Wed, 19 May 2021 20:03:48 +0000 (UTC) (envelope-from trees@neti.ee) Received: from smtp-out.neti.ee (smtp-out.neti.ee [194.126.106.80]) (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 4FlkMm03KYz4nXv for ; Wed, 19 May 2021 20:03:47 +0000 (UTC) (envelope-from trees@neti.ee) Received: from localhost (localhost [127.0.0.1]) by vm-relay4.estpak.ee (Postfix) with ESMTP id 787B191 for ; Wed, 19 May 2021 23:03:39 +0300 (EEST) X-Virus-Scanned: Debian amavisd-new at vm-relay4.estpak.ee Received: from smtp-out.neti.ee ([127.0.0.1]) by localhost (vm-relay4.estpak.ee [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dfBE7g4tVnem for ; Wed, 19 May 2021 23:03:36 +0300 (EEST) Received: from mail.neti.ee (neti-relayhost1.estpak.ee [88.196.174.251]) by vm-relay4.estpak.ee (Postfix) with ESMTP id C228381 for ; Wed, 19 May 2021 23:03:36 +0300 (EEST) Received: from [10.65.101.25] (unknown [10.65.101.25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: norama0) by neti-relayhost1.estpak.ee (Postfix) with ESMTPSA id B7D131FB4A for ; Wed, 19 May 2021 23:03:33 +0300 (EEST) From: Priit Trees Content-Type: multipart/alternative; boundary="Apple-Mail=_E107CB57-855F-46CE-B336-A3C5E163B144" List-Id: Porting FreeBSD to MIPS List-Archive: https://lists.freebsd.org/archives/freebsd-mips List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-mips@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.60.0.2.21\)) Subject: Some drivers for Mediatek. Message-Id: <8912E486-5A25-49F3-A645-E583FB59737E@neti.ee> Date: Wed, 19 May 2021 23:03:16 +0300 To: freebsd-mips@freebsd.org X-Mailer: Apple Mail (2.3654.60.0.2.21) X-Rspamd-Queue-Id: 4FlkMm03KYz4nXv X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of trees@neti.ee designates 194.126.106.80 as permitted sender) smtp.mailfrom=trees@neti.ee X-Spamd-Result: default: False [-2.24 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:194.126.106.64/27:c]; MV_CASE(0.50)[]; TO_DN_NONE(0.00)[]; NEURAL_HAM_SHORT(-1.00)[-0.999]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RBL_DBL_DONT_QUERY_IPS(0.00)[194.126.106.80:from]; ASN(0.00)[asn:3249, ipnet:194.126.96.0/19, country:EE]; R_DKIM_NA(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; SUBJECT_ENDS_SPACES(0.50)[]; RCVD_COUNT_FIVE(0.00)[5]; NEURAL_HAM_MEDIUM(-1.00)[-0.996]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; RCVD_TLS_LAST(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-mips@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[194.126.106.80:from:127.0.2.255]; MANY_INVISIBLE_PARTS(0.05)[1]; DMARC_NA(0.00)[neti.ee]; MAILMAN_DEST(0.00)[freebsd-mips] X-Spam: Yes --Apple-Mail=_E107CB57-855F-46CE-B336-A3C5E163B144 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi, I wrote my first drivers for FreeBSD. I don=E2=80=99t know how good = quality they are. I'm not a programmer. But the drivers work when I = test them on my development boards. Maybe someone is interested in them. MMC for MT7620,7621,76[2|8]8 = https://github.com/freebsd/freebsd-src/compare/main...priittrees:mediatek_= mmc = IIC for MT7620, MT7621, MT76[2|8]8, RT5350 = =20 = https://github.com/freebsd/freebsd-src/compare/main...priittrees:mediatek_= iic = GDMA for MT7620, MT7621, MT76[2|8]8, RT5350 = and maybe some more devices = https://github.com/freebsd/freebsd-src/compare/main...priittrees:mediatek_= gdma = Simple I2S for MT76[2|8]8 and RT5350 = . Maybe future i can tested it on MT7620, MT7621 = . I use SoC audio framework = https://reviews.freebsd.org/D27830 = and patch it for use it with DMA channal. It not good patch but it work = for me. = https://github.com/freebsd/freebsd-src/commit/17f9656d45497ca32b0ea070898a= d7dca8c15d1f = = https://github.com/freebsd/freebsd-src/compare/main...priittrees:mediatek_= i2s = and Simple WM8960 Stereo CODEC = = https://github.com/freebsd/freebsd-src/compare/main...priittrees:wm8960_co= dec = Best Regard Priit Trees= --Apple-Mail=_E107CB57-855F-46CE-B336-A3C5E163B144 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
Hi,

I wrote my = first drivers for FreeBSD. I don=E2=80=99t know how good quality they = are. I'm not a programmer.  But the drivers work when I test them = on my development boards. Maybe someone is interested in them.

MMC = for  MT7620,7621,76[2|8]8


GDMA for MT7620, MT7621, MT76[2|8]8, RT5350 and maybe some = more devices

Simple I2S for MT76[2|8]8 and RT5350. Maybe future i can tested it on =  MT7620, MT7621. I use SoC audio framework https://reviews.freebsd.org/D27830 and patch it for use = it with DMA channal. It not good patch but it work for = me.

and Simple = WM8960 Stereo CODEC

Best Regard
Priit = Trees
= --Apple-Mail=_E107CB57-855F-46CE-B336-A3C5E163B144--