Skip to contentSkip to conversation

MT7623 Wifi SoC support questions

DISCUSSION John Crispin 2 participants 2 messages Jul 1, 2015 – Jul 3, 2015 1 message not in the archive Arm MediaTek

lore
Share & tools
lore
#0 lore raw

Hi all,

I am currently busy making the linux-mediatek support work on the MT7623 made by Mediatek/Ralink so we can add support to OpenWrt.

This SoC looks very similar to the MT8127. The main differences are that it uses a MT6232 pmic and has pcie/ethernet.

I already managed to get lots of drivers up and running based on what has been posted on this list. If do however have a few questions.

* I noticed that ARM_ARCH_TIMER is not selected in v4.1 If I only register the mtk_timer, SMP comes up but the 3 extra cores seem to get no timer irqs and the whole system seems to run very slow. Selecting ARM_ARCH_TIMER makes the system boot fine. Is mtk_timer enough for other MTK SoCs to work ?

* The MT7623 has a 7 port PWM that looks different to the display-pwm driver that was posted. This PWM has an old and new mode. Oldmode looks like classic period/duty cyle config, while the new mode has lots of complexe features. the kernel PWM subsystem can only handle oldmode style config right now so i was going to add a driver. is anyone working on this already ? is this core mt7623 specific or do other SoCs have it aswell ? The registers i have here are called PWMX_CON, PWMX_HDURATION, PWMX_LDURATION, PWMX_GDURATION ....

* Is anyone working on NAND drivers ?

* Are there any other SoC around that have PCIE ?

Thanks,
John

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw
Quoted 10 lines · John Crispin

Hi all,

I am currently busy making the linux-mediatek support work on the MT7623 made by Mediatek/Ralink so we can add support to OpenWrt.

This SoC looks very similar to the MT8127. The main differences are that it uses a MT6232 pmic and has pcie/ethernet.

I already managed to get lots of drivers up and running based on what has been posted on this list. If do however have a few questions.

It's good to hear, that you can take profit out of this effort. It clearly shows the value of getting a SoC mainline.

Quoted 6 lines

* I noticed that ARM_ARCH_TIMER is not selected in v4.1 If I only register the mtk_timer, SMP comes up but the 3 extra cores seem to get no timer irqs and the whole system seems to run very slow. Selecting ARM_ARCH_TIMER makes the system boot fine. Is mtk_timer enough for other MTK SoCs to work ?

I think the basic problem, at least with mt6589 was, that the cntfreq register was not set correctly by the bootloader, which made the ARM_ARCH_TIMER unusable.

Apart from that I think, the ARM_ARCH_TIMER will get turned off in some deep idle state, so that you need mtk_timer (I'm not sure if this holds for mt7623 as well).

Quoted 10 lines

* The MT7623 has a 7 port PWM that looks different to the display-pwm driver that was posted. This PWM has an old and new mode. Oldmode looks like classic period/duty cyle config, while the new mode has lots of complexe features. the kernel PWM subsystem can only handle oldmode style config right now so i was going to add a driver. is anyone working on this already ? is this core mt7623 specific or do other SoCs have it aswell ? The registers i have here are called PWMX_CON, PWMX_HDURATION, PWMX_LDURATION, PWMX_GDURATION ....

I it seems that this PWM is present in other SoCs as well.

Best regards,
Matthias