How to config the GPIO pin number as interrupt in dts

Hi

I’m using a custom board with jetpack6.0. And we use GPIO3_PM.07 as the interrupt pin of fusb301
image

the dts file

		i2c@31e0000 {
			status = "okay";

			fusb301@25 {
				compatible = "onsemi,fusb301";
				reg = <0x25>;
				status = "okay";
				#address-cells = <1>;
				#size-cells = <0>;
				interrupt-parent = <&gpio>;
				interrupts = <X IRQ_TYPE_LEVEL_LOW>;
				connector@0 {
					port@0 {
						fusb_p1: endpoint {
							remote-endpoint = <&typec_p1>;
						};
					};
				};
			};
		};

For GPIO3_PEE.02, I can use TEGRA234_AON_GPIO(EE, 2) to calculate the GPIO pin number.
But for GPIO3_PM.07, could you tell me how to config it as a interrupt pin in dts?

Thanks

Hi hanyang369,

You can specify TEGRA234_MAIN_GPIO(M, 7) for PM.07.

1 Like

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