I have a question about HPS SPI pin, MISO. It's HPS dedicated pin once configured.
Was it able to MUX it with a HPS GPIO pin internally? Which means either one of them can go to HPS SPI controller.
There are two MISO signal pins available for the SPI masters and SPI slaves. Theses pins are routed and available to the HPS I/O, yes it can go to the SPI controller.
I recommend that you read our Arria 10 SoC HPS TRM SPI Controller section [page 3925], for more detailed information on the usage and interfaces of the SPI controller:
My question was not about general SPI and pins available from the HPS.
I like to know if it's possible to implement a 2:1 MUX that its inputs are connected to one of MISO pin and a HPS GPIO pin and the MUX output goes to a MISO port (not pin) of the HPS instant (or Soc subsystem).
Yes, you may do as such, but keep in mind you need to still close the timing for these. Also, make sure your are connecting to the correct MISO pins as both are in Master as Slave, which is an Input and Output respectively.