Date: Wed, 19 May 2021 23:03:16 +0300 From: Priit Trees <trees@neti.ee> To: freebsd-mips@freebsd.org Subject: Some drivers for Mediatek. Message-ID: <8912E486-5A25-49F3-A645-E583FB59737E@neti.ee>
next in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] Hi, I wrote my first drivers for FreeBSD. I don’t 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 <https://github.com/freebsd/freebsd-src/compare/main...priittrees:mediatek_mmc> IIC for MT7620, MT7621, MT76[2|8]8, RT5350 <https://github.com/freebsd/freebsd-src/commit/16c366c73897aad963e817f934d14756bbe9b376> https://github.com/freebsd/freebsd-src/compare/main...priittrees:mediatek_iic <https://github.com/freebsd/freebsd-src/compare/main...priittrees:mediatek_iic> GDMA for MT7620, MT7621, MT76[2|8]8, RT5350 <https://github.com/freebsd/freebsd-src/commit/16c366c73897aad963e817f934d14756bbe9b376> and maybe some more devices https://github.com/freebsd/freebsd-src/compare/main...priittrees:mediatek_gdma <https://github.com/freebsd/freebsd-src/compare/main...priittrees:mediatek_gdma> Simple I2S for MT76[2|8]8 and RT5350 <https://github.com/freebsd/freebsd-src/commit/16c366c73897aad963e817f934d14756bbe9b376>. Maybe future i can tested it on MT7620, MT7621 <https://github.com/freebsd/freebsd-src/commit/16c366c73897aad963e817f934d14756bbe9b376>. I use SoC audio framework https://reviews.freebsd.org/D27830 <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/17f9656d45497ca32b0ea070898ad7dca8c15d1f <https://github.com/freebsd/freebsd-src/commit/17f9656d45497ca32b0ea070898ad7dca8c15d1f> https://github.com/freebsd/freebsd-src/compare/main...priittrees:mediatek_i2s <https://github.com/freebsd/freebsd-src/compare/main...priittrees:mediatek_i2s> and Simple WM8960 Stereo CODEC <https://github.com/freebsd/freebsd-src/commit/0042c6e4eea742498c26f603f94f34fd360308fa> https://github.com/freebsd/freebsd-src/compare/main...priittrees:wm8960_codec <https://github.com/freebsd/freebsd-src/compare/main...priittrees:wm8960_codec> Best Regard Priit Trees [-- Attachment #2 --] <html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class="">Hi,</div><div class=""><br class=""></div>I wrote my first drivers for FreeBSD. I don’t 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.<div class=""><br class=""></div><div class="">MMC for MT7620,7621,76[2|8]8</div><div class=""><a href="https://github.com/freebsd/freebsd-src/compare/main...priittrees:mediatek_mmc" class="">https://github.com/freebsd/freebsd-src/compare/main...priittrees:mediatek_mmc</a></div><div class=""><br class=""></div><div class="">IIC for <a title="Added iic support for MT7620, MT7621, MT76[2|8]8, RT5350 When scanning slave devices with the MTK_IIC v1 driver, not all slave devices are found. Example BME680. Support up to 64 read sequential bytes. Max sequential byte write is depends device addressing width. It support together address and data up to 64 bytes sequential. Example: 2 bytes address + 62 data bytes. Tested with WyBox-7620(MT7620) and RT5350F-OLINUXINO-EVB(RT5350F) with lm75 and AT24C1 MTK_IIC v2 driver is tested with U7621(MT7621), BOJINGnet(MT7688) and lm75 and AT24C12 8 EEPROM." data-pjax="true" class="Link--secondary markdown-title" href="https://github.com/freebsd/freebsd-src/commit/16c366c73897aad963e817f934d14756bbe9b376" style="box-sizing: border-box; text-decoration: none; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; color: var(--color-text-secondary) !important;">MT7620, MT7621, MT76[2|8]8, RT5350</a><span class="" style="caret-color: rgb(68, 77, 86); color: rgb(68, 77, 86); font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; background-color: rgb(255, 255, 255);"> </span></div><div class=""><a href="https://github.com/freebsd/freebsd-src/compare/main...priittrees:mediatek_iic" class="">https://github.com/freebsd/freebsd-src/compare/main...priittrees:mediatek_iic</a></div><div class=""><br class=""></div><div class="">GDMA for <a title="Added iic support for MT7620, MT7621, MT76[2|8]8, RT5350 When scanning slave devices with the MTK_IIC v1 driver, not all slave devices are found. Example BME680. Support up to 64 read sequential bytes. Max sequential byte write is depends device addressing width. It support together address and data up to 64 bytes sequential. Example: 2 bytes address + 62 data bytes. Tested with WyBox-7620(MT7620) and RT5350F-OLINUXINO-EVB(RT5350F) with lm75 and AT24C1 MTK_IIC v2 driver is tested with U7621(MT7621), BOJINGnet(MT7688) and lm75 and AT24C12 8 EEPROM." data-pjax="true" class="Link--secondary markdown-title" href="https://github.com/freebsd/freebsd-src/commit/16c366c73897aad963e817f934d14756bbe9b376" style="box-sizing: border-box; text-decoration: none; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; color: var(--color-text-secondary) !important;">MT7620, MT7621, MT76[2|8]8, RT5350</a> and maybe some more devices</div><div class=""><a href="https://github.com/freebsd/freebsd-src/compare/main...priittrees:mediatek_gdma" class="">https://github.com/freebsd/freebsd-src/compare/main...priittrees:mediatek_gdma</a></div><div class=""><br class=""></div><div class="">Simple I2S for <a title="Added iic support for MT7620, MT7621, MT76[2|8]8, RT5350 When scanning slave devices with the MTK_IIC v1 driver, not all slave devices are found. Example BME680. Support up to 64 read sequential bytes. Max sequential byte write is depends device addressing width. It support together address and data up to 64 bytes sequential. Example: 2 bytes address + 62 data bytes. Tested with WyBox-7620(MT7620) and RT5350F-OLINUXINO-EVB(RT5350F) with lm75 and AT24C1 MTK_IIC v2 driver is tested with U7621(MT7621), BOJINGnet(MT7688) and lm75 and AT24C12 8 EEPROM." data-pjax="true" class="Link--secondary markdown-title" href="https://github.com/freebsd/freebsd-src/commit/16c366c73897aad963e817f934d14756bbe9b376" style="box-sizing: border-box; text-decoration: none; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; color: var(--color-text-secondary) !important;">MT76[2|8]8 and RT5350</a>. Maybe future i can tested it on <a title="Added iic support for MT7620, MT7621, MT76[2|8]8, RT5350 When scanning slave devices with the MTK_IIC v1 driver, not all slave devices are found. Example BME680. Support up to 64 read sequential bytes. Max sequential byte write is depends device addressing width. It support together address and data up to 64 bytes sequential. Example: 2 bytes address + 62 data bytes. Tested with WyBox-7620(MT7620) and RT5350F-OLINUXINO-EVB(RT5350F) with lm75 and AT24C1 MTK_IIC v2 driver is tested with U7621(MT7621), BOJINGnet(MT7688) and lm75 and AT24C12 8 EEPROM." data-pjax="true" class="Link--secondary markdown-title" href="https://github.com/freebsd/freebsd-src/commit/16c366c73897aad963e817f934d14756bbe9b376" style="box-sizing: border-box; text-decoration: none; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; color: var(--color-text-secondary) !important;">MT7620, MT7621</a>. I use <span class="" style="color: var(--color-auto-gray-7); font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; white-space: pre-wrap;">SoC audio framework </span><font face="SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace" class=""><span class="" style="white-space: pre-wrap; box-sizing: border-box; color: var(--color-text-link);"><a href="https://reviews.freebsd.org/D27830" class="">https://reviews.freebsd.org/D27830</a> and patch it for use it with DMA channal. It not good patch but it work for me.</span></font></div><div class=""><a href="https://github.com/freebsd/freebsd-src/commit/17f9656d45497ca32b0ea070898ad7dca8c15d1f" class="" style="font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; white-space: pre-wrap;">https://github.com/freebsd/freebsd-src/commit/17f9656d45497ca32b0ea070898ad7dca8c15d1f</a></div><div class=""><span class="" style="box-sizing: border-box; white-space: pre-wrap;"><font face="SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace" class=""><a href="https://github.com/freebsd/freebsd-src/compare/main...priittrees:mediatek_i2s" class="">https://github.com/freebsd/freebsd-src/compare/main...priittrees:mediatek_i2s</a></font></span></div><div class=""></div><div class=""><br class=""></div><div class="">and Simple WM8960 <a title="Added WM8960 Stereo CODEC Use SoC audio framework https://reviews.freebsd.org/D27830 Tested with board BOJINGnet. WM8960 Audio HAT should be work" data-pjax="true" class="Link--secondary markdown-title" href="https://github.com/freebsd/freebsd-src/commit/0042c6e4eea742498c26f603f94f34fd360308fa" style="box-sizing: border-box; text-decoration: none; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; color: var(--color-text-secondary) !important;">Stereo CODEC</a></div><div class=""><a href="https://github.com/freebsd/freebsd-src/compare/main...priittrees:wm8960_codec" class="">https://github.com/freebsd/freebsd-src/compare/main...priittrees:wm8960_codec</a></div><div class=""><br class=""></div><div class="">Best Regard</div><div class="">Priit Trees</div></body></html>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8912E486-5A25-49F3-A645-E583FB59737E>
