Pin modes for gsm module

hello everyone, im using a gsm module SIM7600G-H 4G HAY with my arduino. I watched youtube tutorials in how to setup the project, but i cant seem to understand why the GSM_PWR pin is set up this way.
pinMode(GSM_PWR, OUTPUT);
pinMode(GSM_PWR, INPUT_PULLUP);

so fat i understand the PWR pin is to determine whether or not to activate the module automatically or manually. what i dont understand is why input_pullup? since its output why not just set it to pinMode(GSM_PWR, HIGH); ?

thank you

That combined, double declaration makes no sense to me as well.
Can You provide a link to the datasheet of the board?

definitely, i believe this is the datasheet for the module

datasheet:

i might as well put in the tutorial link i followed:

this is the wiki of the module

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