Does the micro SD share interface with SPI GPIO?
All I have stated is about there is no relationship about SD card interface pins with SPI pins.
On the other hand, the on-board Flash ROM is using the SPI pins.
@ccs-hello, thank you! Am I right understand that it means that I could safely use SPI MISO pin as GPIO for my needs without worrying that it has any impact on other system functionality?
You cannot use this pin for custom purpose unless you are running from a ramdisk and are confident that nothing will try to talk to the SPI flash on which booting depends. Corrupt that and your system is basically bricked - as far as anyone knows, requiring removing the shield can to fix.
@Chris-Stratton Following the schematics (https://github.com/OnionIoT/Onion-Hardware/blob/master/Schematics/Omega.pdf) GPIO 9 8 7 6 are floating by default, while hardware SPI (B51, B50, A54, B49) connected to internal FLASH MX25L1605DM2I. So it is logical to assume that GPIO 9 8 7 6 are used for software SPI emulation, which could be utilized as microSD interface (not clear from schematics) and in the same time as external SPI (for that developers, who not using microSD, maybe). Native SPI most probably staying aside anyway.
Сould you give a link to the source that provides comprehensive information on this?
RESET. Omega 1 or Omega 2?
That is the schematic of Omega (Qualcomm Atheros AR9331 SoC)
Please read at least this part of the official Onion Omega2(+) (MediaTek MT7688 SoC) Documentation.
Important & Special GPIOs - SPI Pins & Onboard Flash Storage
GPIOs 7, 8, and 9 (SPI CLK, MOSI and MISO) cannot be used as regular GPIOs.
The SPI CS1 pin, GPIO 6, may be still used as a regular GPIO when configured as a GPIO using
omega2-ctrl gpiomux set spi_cs1 gpio
See also this warning: Pins Important for Booting the Omega ie Omega2(+).
BTW MISO is an input pin (SPI Flash Data_Out --> MT7688 SPI_MISO)
@György-Farkas thank you. The only detail that still makes me doubt that the GPIO 6 should floating on boot. Obviously LED + resistor to GND will work as pull-down connection... :/
The only detail that still makes me doubt that the GPIO 6 should floating on boot. Obviously LED + resistor to GND will work as pull-down connection... :/
No, it won't - even a red LED has a forward voltage that would easily exceed the threshold for unambiguous interpretation as a logic 0, and that of other colors can exceed 3v.
If a pin needs to be low at boot for config strapping, it needs a direct pulldown resistor, not routing through an LED.
@Chris-Stratton thank you for the answer! I just tried with the LED on GPIO1 and it booting and working just fine.
However, my attempt of connection to FW_RST was fall to the factory reset by some reason...
maybe you have any idea?
my attempt of connection to FW_RST was fall to the factory reset by some reason
What does that even mean?
Try saying it again, specifically and clearly - what exactly did you do, what were you expecting, and what exactly happened?