Setting GPIO PG04(input), PG05(output)

Hi, I am setting up RGMII by referring to this document. (Jetson AGX Orin Platform Adaptation and Bring-Up — NVIDIA Jetson Linux Developer Guide 1 documentation)

The problem is that GPIO PG04 and PG05 cannot be set.
This is my Pinmux setting.
tegra234-mb1-bct-pinmux-p3701-0000-a04-mpg.dtsi.txt (65.7 KB)

I set the setting below like a document.
eqos_txc_pe0, eqos_td0_pe1, eqos_td1_pe2, eqos_td2_pe3, eqos_td3_pe4, eqos_tx_ctl_pe5
eqos_rd0_pe6, eqos_rd1_pe7, eqos_rd2_pf0, eqos_rd3_pf1, eqos_rx_ctl_pf2, eqos_rxc_pf3
eqos_sma_mdio_pf4, eqos_sma_mdc_pf5
soc_gpio17_pg4, soc_gpio18_pg5

The following is my tegra234-p3737-0000+p3701-0000-mpg.dts file.
tegra234-p3737-0000+p3701-0000-mpg.dts.txt (16.0 KB)

After flash, boot and enter the sudo cat /sys/ kernel/debug/gpio | grep -i “PG” command,

gpio-347 (PGG.00 )
gpio-383 (PG.00 |Force Recovery ) in hi IRQ ACTIVE LOW
gpio-384 (PG.01 )
gpio-385 (PG.02 |Suspend ) in lo IRQ ACTIVE LOW
gpio-386 (PG.03 )
gpio-387 (PG.04 )
gpio-388 (PG.05 )
gpio-389 (PG.06 )
gpio-390 (PG.07 |cd ) in lo IRQ ACTIVE LOW

I think it should be “gpio-388 (PG.05 | phy_reset) out hi”, but PG.05 can’t set up.

Hi user121796,

Are you using the devkit or custom board for AGX Orin?
What’s the Jetpack version in use?

Could you use pinmux spreadsheet share with us how do you configure them?

Please also share the full dmesg for further check.

Hi, I use a custom board for AGX Orin. And Jetpack 6.0.

Here is my pinmux spreadsheet.
Orin_Jetson_Series_Pinmux_Config_Template_2.0_cellplus_sskim.txt (270.7 KB)

And This is full demsg.
dmesg.txt (51.9 KB)

I don’t see any info about ethernet@231000 in the dmesg you shared.
Have you confirmed if your driver has been probed correctly?

For GPIO control issue, I would also suggest you applying the patch from 40hdr - SPI1 gpio padctl register bit[10] effect by gpiod tools in JP6 - #20 by KevinFFF

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.