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

gpio-issue solved so far…gpio was blocked by activated i2c1…so if the special-function is enabled in dts, the direct gpio-access is blocked

How did you deactivate i2c?

As pointed by @linkerosa it’s defined in dts

https://elixir.bootlin.com/linux/v5.0-rc5/source/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts#L139

Here status needs to be set to disabled

But that doesn’t work for PWM. Changing the status to disable I have all the same error

[ 56.553047] mt7622-pinctrl 10211000.pinctrl: pin PWM7 already requested by 11006000.pwm; cannot claim for pinctrl_moore:510 [ 56.564211] mt7622-pinctrl 10211000.pinctrl: pin-101 (pinctrl_moore:510) status -22

https://elixir.bootlin.com/linux/v5.0-rc5/source/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts#L476

maybe you need this:

Am I understanding correctly that the SATA and mPCIe (CN8 or CN25?) cannot both be used at the same time?

According to https://wiki.banana-pi.org/Getting_Started_with_R64#Sata needs echo 0 > /sys/class/gpio/gpio499/value while mPCIe (CN8 or CN25?) need echo 1 > /sys/class/gpio/gpio499/value which are opposing.

This would mean that it can’t do both WAN AND SATA at the same time? Or is CN8 the correct mPCIe port for WAN? Was CN25 meant for mPCIe SSD?

Also, I assume that the PoE module needs to be soldered on to the BPi-R64 board. Does this supply power to the ethernet ports, or only allow the board to be powered by the WAN port?

You can use PCIE1/cn8 or SATA by switching GPIO90 via gpio-hog (asm_sel) in dts,so it is blocked in userspace

Has anyone tried to attach multiple AX card like MT7915 non DBDC? or should i choose bpi-r3 route and add m.2 AX card? planning to make tri-radio AP.

thanks