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

    Default GPIO state

    VOXL 2
    2
    3
    243
    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.
    • P
      Peter VW
      last edited by Peter VW 19 May 2023, 14:02 19 May 2023, 13:44

      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
      • M
        modaltb ModalAI Team
        last edited by 19 May 2023, 18:19

        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
        • P
          Peter VW
          last edited by 22 May 2023, 06:20

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

          1 Reply Last reply Reply Quote 0
          1 out of 3
          • First post
            1/3
            Last post
          Powered by NodeBB | Contributors