Hello.
I'm using i.MX8DualX. Some GPIO3 pins will be accessed by A35 and the other GPIO3 pins by M4. My wrote some code in board_system_config for that like this
BRD_ERR(rm_assign_resource(pt_boot, pt_sh, SC_R_GPIO_3));
BRD_ERR(rm_set_peripheral_permissions(pt_sh,
SC_R_GPIO_3, pt_boot, SC_RM_PERM_FULL));
BRD_ERR(rm_set_peripheral_permissions(pt_sh,
SC_R_GPIO_3, pt_m4_0, SC_RM_PERM_FULL));
I also moved those pads for M4 to the M4 partition:
BRD_ERR(rm_set_pad_movable(pt_boot, SC_P_QSPI0B_SCLK,
SC_P_COMP_CTL_GPIO_1V8_3V3_QSPI0B, SC_TRUE));
but it doesn't work.