[BPI-R2 Pro] Mainline Linux Support

:slight_smile:

I think this is a temporary error and it will be fixed without me :slight_smile:

I am using the full set of patches of the entire series along with the latest version of the kernel sources (without intermediate patches). Perhaps the reason for the build error is this. But I know for sure that HDMI works with the latest kernel version and the latest V11 patches on all my rk356x devices. :slight_smile: By the way, I checked DTB for BPIR2pro only with your patches on my 5.18-rc4 core, HDMI works without problems.

hdmi itself works for me too, but not the hdmi-sound which is deferred on hdmi-node i don’t know why. analoge audio soundcard is initialized but left/right channel was mixed in my last test

This is a patch that also included HDMI and analog audio on BPIR2pro.

But you may need other patches as well.

etc

I have already

And for analog:

Wonder you have patch for switch…this needs modified driver to work…see my patches on patchwork

got hdmi and analog audio and rtc (found by driver after patch from peter) working:

last state (branches in my repo):

  • hdmi: 5.18-r2pro-hdmiv11
  • switch (mt7531): 5.18-mt7531-mainline2 (currently limited to 100M RX on r2pro by port5)
  • pcie3: 5.18-r2pro-pcie3-mainline3
2 Likes

hi frank-w,

Can linux-5.18 kernel support MT7531’s DSA feature, we hope that R2pro can support it. many peoples are

I have it basicly working,but not yet merged for 5.18. Try to get this state in 5.19. Mainline has still fixed CPU-port (6) which needs changes (currently reviewd by dsa maintainer but not yet mtk).

But it looks like there is something wrong in rgmii setup as tx on cpu-port is only 100mbit/s

what do you mean here?

have sent out v3 for pcie3-support

https://patchwork.kernel.org/project/linux-rockchip/list/?series=641646

@balbes150 , maybe you want to include it into your armbian

Hi frank-w, I’m trying to make it work OpenWrt on 5.18, not having the device,wonder if can boot with the quartz64 dtb.

do not use another dtb as iodomain will differ and may brick your board!

you’ll find the right dts-patches in my kernel-repo

I was referring to the u-boot , now I found your patches, I see you are using the evb.dts ,I will update that.

Yes,but this is save only if iodomain is not set…uboot does not set it in dts and not in code, so dts can be used.

Evb have same config for basic function like sd/emmc/clocks/main pinctrl like r2pro,so it can be used here…enough for bootup :slight_smile:

Btw. This thread is about linux,not uboot :slight_smile:

I’ll check out a new set of patches and create new versions of the images.

  • hdmi and rtc dts patches are added for next
  • rtc driver fix is unreviewed, but we have 5 Weeks left for 5.20
  • mt7531 patches for basic support are in net-next too
1 Like

Seems like upper usb-port is broken in 5.19,have not found out why (works in 5.18-main).already set drd-role back to host,but does not fix.

At least pcie ranges are now good without gap, wait for response on bindings and then send out new version with adding missing pinctrl.

I checked the latest version 5.19-rc5 with this set of patches (pay attention to patches 200 and 181) with them, USB works on two ports.

By the way, I’m currently downloading new images with kernel 5.19 for BPIR2pro where USB works.

Thx,200 looks indeed interesting

This patch was published earlier in the patchword.

Can you point to the patch in patchwork?

It seems a revert of this fix

https://www.spinics.net/lists/stable/msg556940.html

And additional change (i guess dropping initialization value does not change anything)

Edit this fixes usb issue:

https://patchwork.kernel.org/project/linux-rockchip/patch/[email protected]/

And of course the dts patch needed you’ll already have and i pushed to mainline today

https://patchwork.kernel.org/project/linux-rockchip/patch/[email protected]/