ModalAI Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Default GPIO state

    VOXL 2
    2
    3
    216
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Peter VWP
      Peter VW
      last edited by Peter VW

      Hello,

      I'm currently working on a reset pin for our hardware. Currently it's connected to GPIO 53 (on J3 pin 9)

      I would like this pin to be zero (instead of default HIGH). Currently i did it with a init script. But this runs after the initial value of input pullup.

      Is there an easy way to make this happen? At default we would like this pin to be OUTPUT and LOW.

      Thank you in advance.

      1 Reply Last reply Reply Quote 0
      • modaltbM
        modaltb ModalAI Team
        last edited by

        Hi @Peter-VW ,

        Yes correct, we have that defaulted HIGH for one of our modems, that's being set in the kernel here, which is the only way I know how to set a default value....

        https://gitlab.com/voxl-public/system-image-build/meta-voxl2-bsp/-/blob/master/recipes-kernel/linux-msm/files/dts/common/m0xxx-kona-pinctrl.dtsi#L125

        So, I don't know if this is 'easy' but a kernel rebuild to set default state is currently needed. We've not figured out a way to do DT changes 'run time' at this point.

        1 Reply Last reply Reply Quote 0
        • Peter VWP
          Peter VW
          last edited by

          Thank you, then we will take a look into this.
          For now, a simple RC circuit works.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Powered by NodeBB | Contributors