Jump to content

Recommended Posts

Posted

Hello.

I need to set a low level on a gpio pin PA6 on boot. I'm trying to do this through the device tree:

 

/dts-v1/;
/plugin/;
/ {
    compatible = "allwinner,sun8i-h3";
   fragment@0 {
    target = <&pio>;
    __overlay__ {
	pinctrl-0 = <&pull_pins>;
      
        pull_pins:pull_pins {
        	pins = "PA6";
        	function = "gpio_out";
		bias-disable;
		output-low;
        };
    };
    };
};

 

I need to set PA6 to low. 

After boot, I see my overlay in device tree, but the level on the PA6 is still high. I can easily control the level through libgpiod (gpioset gpiochip0 6=1 or gpioset gpiochip0 6=0), it works. But I can't set low level at start.
Full device tree - https://pastebin.com/dQKSYXjL

 

What am I doing wrong?

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