Banana Pi BPI-R64 open source router with MTK MT7622 64 bit chip design


(Frank W.) #21

most things need porting (started 2nd gmac,but dsa2.c changed too much) maybe my config…


(moore liu) #22

1.DSA framework cannot support 2nd GMAC, and it’s not an easy job to upstream core-layer. In my opinion, it shouldn’t be a problem because TRGMII is 2.5Gbps so LAN/WAN NAT can be 2Gbps if HNAT is enabled.

2.HNAT framework was accepted in 4.16 kernel, and you can refer to openwrt trunk to see the HNAT support based on new framework.

3.Did you mean this patch? https://lore.kernel.org/patchwork/patch/935905/

  1. MTK is working on it, and they’re preparing V2 patch…

  2. MTK reference board/upstream driver is USB3x1 and PCIex3, but BPI-R2 is USB3x2 and PCIex2, so there is no plan to upstream this parts.


(Frank W.) #23
  1. I know it’s not easy because its hard to debug…i don’t understand why only 1 cpu is supported. Structure itself allows it,but with the get-first cpu function the cpu-dp is overridden if previous defined. imho we need to load cpu-dp from dts (maybe currently no standard defined) and include them in tearup and teardown

Right,but i had some trouble with it in 4.14…but i try in 4.18…

Imho r2 is the only official board with mt7623,why code matches a reference-board and not the public board?


(moore liu) #24

what is your purpose to apply this patch. it seem upstream driver can support pciex2 and usb3x2 natively. did you need 3rd pcie slot instead of usb3?


(Frank W.) #25

no, but sata (connected to a pcie) was unstable


#26
  1. The patch is used to switch usb3 1 (0, 1) to PCIe port 2 (0,1,2) . Anyway, I don’t have plan to send this one to mainline as it will break the common flow.

  2. The R2 DRM patches will be merged in mainline eventually.(4.19 or 4.20 rc cycle)

  3. The good news is we add built-in Bluetooth 5 support for R64. https://patchwork.kernel.org/patch/10566283/

  4. I’m now working on upstreaming uboot (R2/R64) to community.

Todo list:

  1. We have plan to add MT7615/R64 built-in WIFI mainline support

  2. HNAT in mainline.


(Frank W.) #27

anyone working on r2 BT-Module (MT8590 or mt6625l)? which is the right name? BT shows name “MTK MT8590 #1” but from spec it should be mt6625l, where google does not find anything except on this domain (forum,wiki,mainpage)

have you added the missing resolutions and is the patch available on patchwork or can i get it here for testing?

is usb3 1 (0, 1) the second usb-port or the usb3-controller itself?


#28

Please ignore MT8590. BT-Module is MT6625 - it’s hard to upstream due to many reasons.

is usb3 1 (0, 1) the second usb-port or the usb3-controller itself?

=> usb2: usb@1a240000

have you added the missing resolutions and is the patch available on patchwork or can i get it here for testing?

hmm, I will consider about this but I can’t give you any answer for that since it mostly falls under the spare time work .

BTW, we will add USB2 (mini usb port) support in mainline in the future .


(Frank W.) #29

Is this the mini-usb-port?

If i understand you right,i have to revert pcie-patch if i want to use both usb3-ports…

@moore

include/linux/rtc/mt6397.h does not exist in 4.18…definitions are in drivers/rtc/rtc-mt6397.c, but i cannot patch this, because the header-file is included…seems it is separated by any ohter patch (seems to be this: https://lore.kernel.org/patchwork/patch/935908/)

currently i try to merge the dts-nodes from 4.14…also after merging nodes, power-off still not works…can you take a look whats missing?

in 4.18 mt6323/pwrap is defined in arch/arm/boot/dts/mt6323.dtsi so i tried it like this:

compiles fine, but no poweroff


#30

Is this the mini-usb-port?

If i understand you right,i have to revert pcie-patch if i want to use both usb3-ports…

MT7623 has two usb3 xhci ports and one usb2 (musb) port (mini-usb-port), but we just support XHCI in upstream version now.

And one of the PCIe ports (0,1, “2”) shares its PHY with usb3 xhci port (0, “1”) =>usb@1a240000


(Frank W.) #31

have reverted the pcie-patch in 4.14

@moore on 4.14 (fc6285a3f9bde6c7bb32c4f79675d696ff2667d3) i have additional patches for

mtk-pmic-keys.c
mt6323-poweroff.c
mt6397-rtc-poweroff.c

did not found this in related patches on patchwork…