Initial work for gpio inputs