Draghtnod Posted December 31, 2016 Posted December 31, 2016 I am using fresh installation of armbian legacy server version 3.4.113 on the Orange Pi Zero Rev v1.1. The FEX file seems to be incorrect. Some driver or process is blocking PA10, which is wired directly to the expansion header pin 26. According to the schematics, this port is not used anywhere else. # cat /sys/kernel/debug/gpio GPIOs 0-383, platform/sunxi-pinctrl, sunxi-pinctrl: gpio-10 (? ) out hi gpio-17 (red_led ) out lo gpio-202 (xradio_irq ) in lo gpio-354 (? ) out hi gpio-362 (green_led ) out hi In case i am the first one that tested this: gpio-10 aka PA10 aka ? is blocked gpio-17 aka PA17 aka red_led is correct, echo 1 > /sys/class/leds/red_led/brightness is workinggpio-202 aka PG10 aka xradio_irq is wired to WL-WAKE-AP, which is corrected to WL-WAKE-HOST of the XR819, seems legit gpio-354 aka PL2 aka ? is wired to USB0-DRVVBUS, which is not mentioned again in the schematics, may be legit, not sure, tell me how to test.. gpio-362 aka PL10 aka green_led is correct, echo 1 > /sys/class/leds/green_led/brightness is working I am new to armbian, please bare with me if the following questions are stupid. How do i fix this issue correctly? Where can i find and modify the FEX file that is used? How can i disable the occupation of the red/green leds, so i can export the GPIO myself? Thanks a lot
martinayotte Posted December 31, 2016 Posted December 31, 2016 PA10 is usually share for SPI1-CS1. I verified in Mainline, it is not define yet, so, therefore free for plain GPIO. In Legacy, maybe it is not the case, so search for SPI1 stuff and remove it as CS1, it should then work.
zador.blood.stained Posted December 31, 2016 Posted December 31, 2016 PA10 is defined as audio_pa_ctrl, so it needs to be moved to any other free pin (i.e. on port bank C)
Draghtnod Posted January 1, 2017 Author Posted January 1, 2017 Hyppy new year! \()/ I RTFM and changed audio_pa_ctrl to audio_pa_ctrl = Now PA10 is free to use and audio is still working prefectly fine. No need so associate that to some NC port.
Recommended Posts