Jump to content

Recommended Posts

Posted

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;
      };
    };
  };

};

 

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines