External binary inputs on M5Stack Pin

  • I want to make an external pull-up connection, with pushbuttons, and an input of a binary expansion module as interruption. It is not clear to me, that the inputs available on the sides, are compatible with these functions.
    We have R0,T0,R2,T2,G2,G5, my question is , can all these entries be used freely without damaging the equipment? . Are they connected to other circuits on the board and can be damaged? Even though I've tried to see the schemes that exist, it's not clear to me.
    I'd appreciate some information about this.