tipine9824 Posted October 7, 2022 Share Posted October 7, 2022 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? 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.