Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Cannot put pin into High Impedance Input State

Featured Replies

I'm trying to use PA18/PA19 for custom purposes. I need to put these pins to Input state without any pullups/pulldowns.

 

What I can achieve is: to put these pins to input state via the command:

gpio mode 30 in

gpio mode 31 in

("tri" instead of "in" does not work, it accepts the command, but a multimeter shows the input is still high, as well as gpio readall)

 

These pins are probably pulled high because they are I2C pins. I want to disable the I2C functionality but have not found any means to do so.

I have tried this dts script:

#####

/dts-v1/;

/ {
  compatible = "allwinner,sun8i-h3","allwinner,sun50i-h5","friendlyarm,nanopi-neo2";

  fragment@0 {
    target-path = "/soc/pinctrl@1c20800";

    __overlay__ {
        i2c1 {
          function = "gpio_in";
          bias-high-impedance;
        };
    };
  };
};

######

 

and had a look at the device tree after a reboot:

dtc -I fs -O dts -o ./extracted.dts /proc/device-tree

 

The values got inserted right, but pin behaviour did not change. What I also cannot do is to activate pulldown on those pins. It has no effect.

Also tried a python library - https://github.com/duxingkei33/orangepi_PC_gpio_pyH3 - to no avail.

 

Board is an Orange Pi Zero +2 with H3 processor.

 

To sum it up:

Input mode is working (with pullup still activated)

Pulldown is not working

Deactivating Pullup is not working

Setting Pin to output mode and switching high/low is working

 

Kernel: 4.19.38-sunxi

Edited by maracuja
added kernel

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.