Jump to content

OrangePi Zero Devicetree GPIO pullup


hei-pa

Recommended Posts

Hi,

 

I need to configure a GPIO as input with pullup enabled and tried https://forum.armbian.com/topic/10462-nanopi-neo-2-set-input-pull-up-via-device-tree/

For some reason PIN PG06 is still floating. It is not pinned to 3,3V.

 

PG06 -> GPIO198 -> UART1_TX/PG06 right?

Multimeter shows ~0,447V

 

 

/dts-v1/;
/plugin/;

/ {
  compatible = "allwinner,sun8i-h3";
  
  /*
   * This fragment is needed only for the internal pull-up activation,
   * external pull-up resistor is highly recommended if using long wires
   */
  fragment@0 {
    target = <&pio>;
    __overlay__ {
      input_0: input_0 {
        pins = "PG6";
        function = "gpio_in";
        bias-pull-up;
      };
    };
  };

};

 

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines