Part Number: AM6422
Other Parts Discussed in Thread: PCA9534
Hi experts
I have a question about GPIO initialization.
My customer used an I2C-to-GPIO chip (PCA9534) to control the reset signal of the PHY, and then the PCA9534 shares I2C3 with an EEPROM for some other reason. The 4052 chip enables 1 to 4 I2C channel selection.
That is, the I2C channel is selected via GPIO, the PCA9534 is selected, and the reset of the PHY is controlled via PCA9534. Subsequent optimizations will be made, but the GPIO selection I2C channel design will still be retained.
The issue that is being encountered is a failed request for GPIO. We need to request GPIO in the probe of CPSW and EEPROM.
As shown in the figure below, they used GPIO1_40 and GPIO1_41 in EEPROM@57, but request GPIO failed, and the code is EPROBE_DEFER 517.
later we added the following two lines of dependencies, which can be requested to GPIO via devm_gpiod_get_optional in the EEPROM's probe (they actually use no interrupts needed, just output capability). What is this mechanism?
interrupt-parent = <&main_gpio1>;
interrupts = <38 IRQ_TYPE_EDGE_FALLING>;
Then they added it in the same way in the CPSW node, but the probe in am65-cpsw-nuss cannot request GPIO, return code is 517, we thought that the GPIO module has not completed initialization. How should this be configured?
BR
Ethan