Currently, topic based ros2 control only iterates through the joints under a <ros2_control> tag to export state and command interfaces. Ideally, it should also export state and command interfaces from <gpio> tags.
Happy to work on this and create a PR.