Hi,please refer the picture[Interface definition diagram];

CM4 has gpio0,gpio1;

ID_SD of CM4 corresponds to GPIO0, ID_SC is GPIO1