| Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision |
| docs:techref:hardware:soc:soc.mediatek [2023/12/24 03:24] – [Ralink ramips] mt7620 and mt7628 driver lmita | docs:techref:hardware:soc:soc.mediatek [2024/12/12 14:44] – formatting tweaks to DSL section palebloodsky |
|---|
| |
| ===== Ralink ramips ===== | ===== Ralink ramips ===== |
| * A quite good source for product specs on MediaTek/Ralink SoCs seems to be here: [[https://deviwiki.com/wiki/Ralink]]. | * A quite good source for product specs on MediaTek/Ralink SoCs is here: [[https://deviwiki.com/wiki/Ralink]]. |
| * OpenWrt specific: | * OpenWrt specific: |
| * all MediaTek/Ralink SoCs are merged under the target **''ramips''**. | * All old MediaTek/Ralink SoCs are merged under the target **''ramips''**. |
| * building a target requires a target-specific firmware (that is, most devices need customized firmware). The kernel is patched with the command line that has the board name in it. This mechanism is similar to what is done for [[docs:techref:hardware:soc:soc.qualcomm.ar71xx|ar71xx]] platforms. | * Building a target requires a target-specific firmware. The kernel is patched with the command line that has the board name in it. This mechanism is similar to what is done for [[docs:techref:hardware:soc:soc.qualcomm.ar71xx|ar71xx]] platforms. |
| * browse the source code: [[https://github.com/openwrt/openwrt/tree/master/target/linux/ramips]] | * Source code: [[https://github.com/openwrt/openwrt/tree/master/target/linux/ramips]] |
| * FIXME: there might still be some historical information in the OpenWrt dev wiki [[https://dev.openwrt.org/wiki/platforms]], but it must be well hidden then. Seems there is nothing that can be found today... | |
| |
| ^ Target ^ Subtarget ^ SoC ^ RAM ^ Ant ^MIPS ^ Devices ^ | ^ Target ^ Subtarget ^ SoC ^ RAM ^ Ant ^MIPS ^ Devices ^ |
| |
| * MT7620 vs. RT5350 | * MT7620 vs. RT5350 |
| * both chips are very similar on the software layer. | * Chips are similar on the software layer |
| * MT7620 is the successor, it's "faster and better", | * RT5350 is cheaper [[http://cdn.sparkfun.com/datasheets/Wireless/WiFi/RT5350.pdf]] |
| * [[http://www.mediatek.com/en/products/connectivity/wifi/home-network/wifi-ap/mt7620na]] | * MT7620 is the successor, it's "faster and better" |
| * [[http://www.anz.ru/files/mediatek/MT7620_Datasheet.pdf]] | * Both use the ''rt2800soc'' driver. |
| * RT5350 is still available and cheaper, [[http://cdn.sparkfun.com/datasheets/Wireless/WiFi/RT5350.pdf]] | * No hardware support for 802.11w thus limiting WPA3 speed to ~14 Mbps. Use WPA2 for full throughput. |
| * see here for a comparison: [[http://vonger.cn/?p=242]] | |
| * These use the ''rt2800soc'' driver. New features such as 802.11w (required for WPA3) are only supported in software, thus limiting your speed to ~14-18 Mbps. | |
| * MT7621 | * MT7621 |
| * 2 cores, 4 threads: | * 2 cores, 4 threads: |
| * MT7628N: Same as MT7628A, but without PCle and IoT modes | * MT7628N: Same as MT7628A, but without PCle and IoT modes |
| * MT7628DAN: 64MB integrated RAM | * MT7628DAN: 64MB integrated RAM |
| * The chip uses a driver from the ''mt76'' family. 802.11w is hardware accelerated. | * Chip uses a driver from the [[:docs:techref:driver.wlan:mt76]] family. 802.11w is hardware accelerated. |
| |
| ===== RGMII configuration ===== | ===== MediaTek ===== |
| On MT7620A and likely other Ralink / Mediatek SOCs, the RGMII delay is set with the Port I control register in the GSW (gigabit switch) subsystem | New MediaTek SoCs are released under the much more performant Filogic line: |
| | * Use quad core and hybrid core ARM architecture |
| | * Includes support for DSA and hardware acceleration for flow offloading (HFO) and wireless offloading (WED) |
| | * Depending on SoC includes Wi-Fi 6 and/or 7 under the [[:docs:techref:driver.wlan:mt76]] driver family |
| | * 802.11w and WPA3 included in hardware |
| | * Used in many devices such as OpenWrt One |
| | * See Filogic link under Devices below for supported targets |
| |
| for boards with uboot and an available console (option 4?), the register can be read with the command | ===== RGMII configuration ===== |
| | On MT7620A and likely other Ralink based SOCs, the RGMII delay is set with the Port I control register in the GSW (gigabit switch) subsystem. For boards with Uboot and an available console the register can be read with the command: |
| |
| md 0x10117014 1 | md 0x10117014 1 |
| |
| and the following bits tell you the OEM bootloader / chip defaults | The following bits tell you the OEM bootloader / chip defaults: |
| |
| |BIT(2)|RX no delay| | |BIT(2)|RX no delay| |
| |BITS(24, 28)|PHY_DISABLE| | |BITS(24, 28)|PHY_DISABLE| |
| |
| For a complete explanation, look for the register 0x7014 in the MT7620 Programming Guide | For a complete explanation, look for the register 0x7014 in the MT7620 Programming Guide. For example: |
| | |
| example: | |
| |
| 10117014: 1f08000c | 10117014: 1f08000c |
| |
| ---- | ---- |
| Remember: You have to read bits from right to left. | Remember to read bits from right to left. |
| For example ''1f08000c'' in binary becomes ''00011111000010000000000000001100'' | For example ''1f08000c'' in binary becomes ''00011111000010000000000000001100'' |
| <code> | <code> |
| === ADSL === | === ADSL === |
| * [[http://www.mediatek.com/_en/01_products/04_pro.php?sn=1031]] | * [[http://www.mediatek.com/_en/01_products/04_pro.php?sn=1031]] |
| * [[http://www.mediatek.com/_en/01_products/04_pro.php?sn=1031|TC3085/TC3086]] = AFE (Analog Front-End) for ADSL2+ | * [[http://www.mediatek.com/_en/01_products/04_pro.php?sn=1031|TC3085/TC3086]] includes AFE (Analog Front-End) for ADSL2+ |
| * [[http://www.mediatek.com/_en/01_products/04_pro.php?sn=1019|TC3162L2M]] It incorporates a 32-bit network processor and a DMT (Discrete Multi-Tone)-engine for ADSL2+ | * [[http://www.mediatek.com/_en/01_products/04_pro.php?sn=1019|TC3162L2M]] incorporates a 32-bit network processor and a DMT (Discrete Multi-Tone)-engine for ADSL2+ |
| * [[http://www.mediatek.com/_en/01_products/04_pro.php?sn=1019|TC3162LEM]] It incorporates a 32-bit network processor and a DMT (Discrete Multi-Tone)-engine for ADSL2+ | * [[http://www.mediatek.com/_en/01_products/04_pro.php?sn=1019|TC3162LEM]] incorporates a 32-bit network processor and a DMT (Discrete Multi-Tone)-engine for ADSL2+ |
| |
| === VDSL === | === VDSL === |
| * [[http://www.mediatek.com/en/products/connectivity/xdsl/adsl-wifi/rt63260/|RT63260]] The RT63260 is a highly integrated **single-chip solution** combining AFE (Analog Front End) chip technology and an ADSL2/2+ wired ADSL modem application together on one chip. It includes a 32-bit network processor and a Discrete Multi-Tone (DMT) engine for ADSL | * [[http://www.mediatek.com/en/products/connectivity/xdsl/adsl-wifi/rt63260/|RT63260]] is a integrated single-chip solution combining AFE (Analog Front End) and an ADSL2/2+ wired ADSL modem application together on one chip. It includes a 32-bit network processor and a Discrete Multi-Tone (DMT) engine for ADSL. |
| * [[http://www.mediatek.com/en/products/connectivity/xdsl/adsl-wifi/rt63365/|RT63365]] | * [[http://www.mediatek.com/en/products/connectivity/xdsl/adsl-wifi/rt63365/|RT63365]] |
| * combine with RT63087 AFE (Analog Front-End) for VDSL2 | * Combine with RT63087 AFE (Analog Front-End) for VDSL2 |
| * [[http://www.mediatek.com/en/products/connectivity/xdsl/adsl-wifi/rt63368/|RT63368]] It incorporates a MIPS 34Kc CPU and a DMT (Discrete Multi-Tone)-engine for VDSL2 | * [[http://www.mediatek.com/en/products/connectivity/xdsl/adsl-wifi/rt63368/|RT63368]] incorporates a MIPS 34Kc CPU and a DMT (Discrete Multi-Tone)-engine for VDSL2 |
| * combine with RT63087 AFE (Analog Front-End) for VDSL2 | * Combine with RT63087 AFE (Analog Front-End) for VDSL2 |
| * [[http://www.mediatek.com/en/products/connectivity/xdsl/adsl-wifi/RT65168/|RT65168]] It incorporates a MIPS 34Kc CPU and a DMT (Discrete Multi-Tone)-engine for VDSL2 | * [[http://www.mediatek.com/en/products/connectivity/xdsl/adsl-wifi/RT65168/|RT65168]] incorporates a MIPS 34Kc CPU and a DMT (Discrete Multi-Tone)-engine for VDSL2 |
| * combine with RT63095 AFE (Analog Front-End) for VDSL2 | * Combine with RT63095 AFE (Analog Front-End) for VDSL2 |
| | |
| | |
| | |
| ==== Linux support for MediaTek xDSL ==== | |
| **unknown** | |
| |
| ===== Devices ===== | ===== Devices ===== |
| The list of related devices: | The list of related devices:\\ |
| {{tagpage>MediaTek}}, | {{tagpage>MediaTek}}, |
| {{tagpage>MT7620a}}, | {{tagpage>MT7620a}}, |
| {{tagpage>MT7620N}}, | {{tagpage>MT7620N}}, |
| |
| {{tagpage>MT7621}}, | {{tagpage>MT7621}}, |
| {{tagpage>MT7628}}, | {{tagpage>MT7628}}, |
| {{tagpage>rt3662}}, | {{tagpage>rt3662}}, |
| {{tagpage>rt3883}}, | {{tagpage>rt3883}}, |
| {{tagpage>rt5350}} | {{tagpage>rt5350}}, |
| | {{tagpage>filogic}} |