[BPI-R2 Pro] Mainline Linux Support

Might have been missed with the with the rev1.1 update.

That what i thought about, asked just in case if You knew or understood how to convert physical SoC pin to gpio/pinctrl. Thanks.

Patched 5.18 - works

bpi-r2pro ~ # lspci  
0001:00:00.0 PCI bridge: Rockchip Electronics Co., Ltd RK3568 Remote Signal Processor (rev 01)
0001:01:00.0 Network controller: MEDIATEK Corp. MT7921 802.11ax PCI Express Wireless Network Adapter
0002:00:00.0 PCI bridge: Rockchip Electronics Co., Ltd RK3568 Remote Signal Processor (rev 01)
0002:01:00.0 Unclassified device [0002]: MEDIATEK Corp. MT7615E 802.11ac PCI Express Wireless Network Adapter

P.S.

I’m not sure if regulator-always-on; is required for me it works without it - only replaced the gpio.

Bluetooth also works after enabled in kernel:

bpi-r2pro ~ # dmesg | grep hci0
[   12.621495] Bluetooth: hci0: Device setup in 3126391 usecs
[   12.691653] Bluetooth: hci0: AOSP extensions version v1.00
[   12.691680] Bluetooth: hci0: AOSP quality report is supported
bpi-r2pro ~ # /etc/init.d/bluetooth start
 * Starting bluetooth ...                                                                                                                                                                                                    [ ok ]
bpi-r2pro ~ # bluetoothctl 
Agent registered
[CHG] Controller 14:13:33:02:7C:C2 Pairable: yes
[bluetooth]# scan on
Discovery started
[CHG] Controller 14:13:33:02:7C:C2 Discovering: yes
[NEW] Device D0:49:7C:17:A5:51 OnePlus 9 Pro 5G
[bluetooth]# exit

Pcie v3 is now merged to mainline (v6.1) too

2 Likes