Rock4 led gpio conflicts with mainline i2s0

Tested with mainline 6.3.11 kernel.

[  243.584597] rockchip-pinctrl pinctrl: pin gpio3-29 already requested by leds; cannot claim for ff880000.i2s
[  243.584645] rockchip-pinctrl pinctrl: pin-125 (ff880000.i2s) status -22
[  243.584675] rockchip-pinctrl pinctrl: could not request pin 125 (gpio3-29) from group i2s0-8ch-bus-bclk-off  on device rockchip-pinctrl
[  243.584706] rockchip-i2s ff880000.i2s: Error applying setting, reverse things back
[  243.584771] rockchip-i2s ff880000.i2s: bclk disable failed -22

GPIO3 RK_PD5 is used in i2s0_8ch_bus_bclk_off: https://github.com/torvalds/linux/commit/91419ae0420f0c91a326655d687b740826d0a3f9

1 Like

Does there exist a fix for this issue? I believe this to break GPIO entirely. I see the same error messages and mraa-gpio list is not able to detect any pins.

Edit: The GPIO issue I was seeing was entirely unrelated.

You can disable the led node in devicetree if it breaks something.

1 Like